From patchwork Wed Dec 4 06:59:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pingfan Liu X-Patchwork-Id: 296417 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 7B5FC2C04C7 for ; Wed, 4 Dec 2013 17:59:20 +1100 (EST) Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 713A62C012D for ; Wed, 4 Dec 2013 17:58:18 +1100 (EST) Received: by mail-ie0-f176.google.com with SMTP id at1so26153952iec.35 for ; Tue, 03 Dec 2013 22:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=rAZXQexgWdnk2TvZeqNuN1f6wEdeeca3+kjzBYl+K5Y=; b=yZYZBrlBTkeylpVuIMHjoVNh6SERXU2JTuPBGFZFnNGUU4A6OK6YqG5cC5mB7/iYZW S0+pt6dq6py7ONqgA+sKiqsvtPHKzgpia/AAEYPlbsfMI0ptjCJKfP5qPz37yo7jp0HO Tf1QtT++zdxJ1C51fkSx2tNtkiLGwI7S6iZPT20X4aAKSSpHNkOHgOlFXT6u4LcaRNFQ ARO6ofOw7+AsiKoVZooLtfwIJ1IKzs8NtAtr2JMY/DVs7u+wORQxe0/TGnc6uJuTQNSv GXwUXdUNAwUAjXNo4AwnLUk02XW7C2MNzPv3U7de2+D4IG0CpFKG4VhB/z5Nj1CSPw9E H1Fw== X-Received: by 10.43.170.130 with SMTP id nq2mr244108icc.69.1386140295646; Tue, 03 Dec 2013 22:58:15 -0800 (PST) Received: from localhost ([202.108.130.138]) by mx.google.com with ESMTPSA id i11sm2864334igh.0.2013.12.03.22.58.14 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 22:58:15 -0800 (PST) From: Liu Ping Fan To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/3] powerpc: mm: make _PAGE_NUMA take effect Date: Wed, 4 Dec 2013 14:59:06 +0800 Message-Id: <1386140348-7854-2-git-send-email-pingfank@linux.vnet.ibm.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1386140348-7854-1-git-send-email-pingfank@linux.vnet.ibm.com> References: <1386140348-7854-1-git-send-email-pingfank@linux.vnet.ibm.com> Cc: Paul Mackerras , "Aneesh Kumar K.V" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" To enable the do_numa_page(), we should not fix _PAGE_NUMA in hash_page(), so bail out for the case of pte_numa(). Signed-off-by: Liu Ping Fan --- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index fb176e9..9bf1195 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c @@ -1033,7 +1033,7 @@ int hash_page(unsigned long ea, unsigned long access, unsigned long trap) /* Get PTE and page size from page tables */ ptep = find_linux_pte_or_hugepte(pgdir, ea, &hugeshift); - if (ptep == NULL || !pte_present(*ptep)) { + if (ptep == NULL || !pte_present(*ptep) || pte_numa(*ptep)) { DBG_LOW(" no PTE !\n"); rc = 1; goto bail;