From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e28smtp02.in.ibm.com (e28smtp02.in.ibm.com [122.248.162.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 534091A0A0E for ; Thu, 4 Dec 2014 04:20:43 +1100 (AEDT) Received: from /spool/local by e28smtp02.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 3 Dec 2014 22:50:40 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id AC182E005A for ; Wed, 3 Dec 2014 22:51:06 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay04.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sB3HLCTb62324912 for ; Wed, 3 Dec 2014 22:51:12 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sB3HKZDV005080 for ; Wed, 3 Dec 2014 22:50:36 +0530 From: "Aneesh Kumar K.V" To: Mel Gorman Subject: Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa In-Reply-To: <20141203155242.GE6043@suse.de> References: <1416578268-19597-1-git-send-email-mgorman@suse.de> <1416578268-19597-4-git-send-email-mgorman@suse.de> <1417473762.7182.8.camel@kernel.crashing.org> <87k32ah5q3.fsf@linux.vnet.ibm.com> <1417551115.27448.7.camel@kernel.crashing.org> <87lhmobvuu.fsf@linux.vnet.ibm.com> <20141203155242.GE6043@suse.de> Date: Wed, 03 Dec 2014 22:50:35 +0530 Message-ID: <87d280bqfw.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Cc: Rik van Riel , LinuxPPC-dev , Hugh Dickins , Linux Kernel , Linux-MM , Ingo Molnar , Paul Mackerras , Dave Jones , Sasha Levin , Linus Torvalds , Kirill Shutemov List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mel Gorman writes: > On Wed, Dec 03, 2014 at 08:53:37PM +0530, Aneesh Kumar K.V wrote: >> Benjamin Herrenschmidt writes: >> >> > On Tue, 2014-12-02 at 12:57 +0530, Aneesh Kumar K.V wrote: >> >> Now, hash_preload can possibly insert an hpte in hash page table even if >> >> the access is not allowed by the pte permissions. But i guess even that >> >> is ok. because we will fault again, end-up calling hash_page_mm where we >> >> handle that part correctly. >> > >> > I think we need a test case... >> > >> >> I ran the subpageprot test that Paul had written. I modified it to ran >> with selftest. >> > > It's implied but can I assume it passed? Yes. -bash-4.2# ./subpage_prot test: subpage_prot tags: git_version:v3.17-rc3-13511-g0cd3756 allocated malloc block of 0x4000000 bytes at 0x0x3fffb0d10000 testing malloc block... OK success: subpage_prot -bash-4.2# From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by kanga.kvack.org (Postfix) with ESMTP id 66F296B0038 for ; Wed, 3 Dec 2014 12:20:48 -0500 (EST) Received: by mail-pd0-f169.google.com with SMTP id z10so690239pdj.0 for ; Wed, 03 Dec 2014 09:20:48 -0800 (PST) Received: from e28smtp04.in.ibm.com ([122.248.162.4]) by mx.google.com with ESMTPS id vv1si2305948pbc.109.2014.12.03.09.20.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Dec 2014 09:20:46 -0800 (PST) Received: from /spool/local by e28smtp04.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 3 Dec 2014 22:50:40 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 7306B125804F for ; Wed, 3 Dec 2014 22:50:55 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay01.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sB3HKTGh63832192 for ; Wed, 3 Dec 2014 22:50:30 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sB3HKZDP005080 for ; Wed, 3 Dec 2014 22:50:35 +0530 From: "Aneesh Kumar K.V" Subject: Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa In-Reply-To: <20141203155242.GE6043@suse.de> References: <1416578268-19597-1-git-send-email-mgorman@suse.de> <1416578268-19597-4-git-send-email-mgorman@suse.de> <1417473762.7182.8.camel@kernel.crashing.org> <87k32ah5q3.fsf@linux.vnet.ibm.com> <1417551115.27448.7.camel@kernel.crashing.org> <87lhmobvuu.fsf@linux.vnet.ibm.com> <20141203155242.GE6043@suse.de> Date: Wed, 03 Dec 2014 22:50:35 +0530 Message-ID: <87d280bqfw.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Rik van Riel , Linus Torvalds , Hugh Dickins , Linux Kernel , Linux-MM , Ingo Molnar , Paul Mackerras , Sasha Levin , Dave Jones , LinuxPPC-dev , Kirill Shutemov Mel Gorman writes: > On Wed, Dec 03, 2014 at 08:53:37PM +0530, Aneesh Kumar K.V wrote: >> Benjamin Herrenschmidt writes: >> >> > On Tue, 2014-12-02 at 12:57 +0530, Aneesh Kumar K.V wrote: >> >> Now, hash_preload can possibly insert an hpte in hash page table even if >> >> the access is not allowed by the pte permissions. But i guess even that >> >> is ok. because we will fault again, end-up calling hash_page_mm where we >> >> handle that part correctly. >> > >> > I think we need a test case... >> > >> >> I ran the subpageprot test that Paul had written. I modified it to ran >> with selftest. >> > > It's implied but can I assume it passed? Yes. -bash-4.2# ./subpage_prot test: subpage_prot tags: git_version:v3.17-rc3-13511-g0cd3756 allocated malloc block of 0x4000000 bytes at 0x0x3fffb0d10000 testing malloc block... OK success: subpage_prot -bash-4.2# -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751468AbaLCRUm (ORCPT ); Wed, 3 Dec 2014 12:20:42 -0500 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:44184 "EHLO e28smtp01.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbaLCRUk (ORCPT ); Wed, 3 Dec 2014 12:20:40 -0500 From: "Aneesh Kumar K.V" To: Mel Gorman Cc: Rik van Riel , Linus Torvalds , Hugh Dickins , Linux Kernel , Linux-MM , Ingo Molnar , Paul Mackerras , Sasha Levin , Dave Jones , LinuxPPC-dev , Kirill Shutemov Subject: Re: [PATCH 03/10] mm: Convert p[te|md]_numa users to p[te|md]_protnone_numa In-Reply-To: <20141203155242.GE6043@suse.de> References: <1416578268-19597-1-git-send-email-mgorman@suse.de> <1416578268-19597-4-git-send-email-mgorman@suse.de> <1417473762.7182.8.camel@kernel.crashing.org> <87k32ah5q3.fsf@linux.vnet.ibm.com> <1417551115.27448.7.camel@kernel.crashing.org> <87lhmobvuu.fsf@linux.vnet.ibm.com> <20141203155242.GE6043@suse.de> User-Agent: Notmuch/0.19+2~g32855b9 (http://notmuchmail.org) Emacs/25.0.50.1 (x86_64-pc-linux-gnu) Date: Wed, 03 Dec 2014 22:50:35 +0530 Message-ID: <87d280bqfw.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14120317-4790-0000-0000-0000055C7436 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mel Gorman writes: > On Wed, Dec 03, 2014 at 08:53:37PM +0530, Aneesh Kumar K.V wrote: >> Benjamin Herrenschmidt writes: >> >> > On Tue, 2014-12-02 at 12:57 +0530, Aneesh Kumar K.V wrote: >> >> Now, hash_preload can possibly insert an hpte in hash page table even if >> >> the access is not allowed by the pte permissions. But i guess even that >> >> is ok. because we will fault again, end-up calling hash_page_mm where we >> >> handle that part correctly. >> > >> > I think we need a test case... >> > >> >> I ran the subpageprot test that Paul had written. I modified it to ran >> with selftest. >> > > It's implied but can I assume it passed? Yes. -bash-4.2# ./subpage_prot test: subpage_prot tags: git_version:v3.17-rc3-13511-g0cd3756 allocated malloc block of 0x4000000 bytes at 0x0x3fffb0d10000 testing malloc block... OK success: subpage_prot -bash-4.2#