From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968251AbdEWOxP (ORCPT ); Tue, 23 May 2017 10:53:15 -0400 Received: from foss.arm.com ([217.140.101.70]:53016 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967074AbdEWOxN (ORCPT ); Tue, 23 May 2017 10:53:13 -0400 From: Punit Agrawal To: Arnd Bergmann Cc: Andrew Morton , Linux-MM , Linux Kernel Mailing List , Linux ARM , Catalin Marinas , Will Deacon , n-horiguchi@ah.jp.nec.com, "Kirill A . Shutemov" , mike.kravetz@oracle.com, steve.capper@arm.com, Mark Rutland , linux-arch , "Aneesh Kumar K.V" , Martin Schwidefsky , Heiko Carstens Subject: Re: [PATCH v3.1 4/6] mm/hugetlb: Allow architectures to override huge_pte_clear() References: <20170522133604.11392-5-punit.agrawal@arm.com> <20170522162555.4313-1-punit.agrawal@arm.com> Date: Tue, 23 May 2017 15:53:10 +0100 In-Reply-To: (Arnd Bergmann's message of "Mon, 22 May 2017 22:34:45 +0200") Message-ID: <87efvfhbft.fsf@e105922-lin.cambridge.arm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal wrote: >> When unmapping a hugepage range, huge_pte_clear() is used to clear the >> page table entries that are marked as not present. huge_pte_clear() >> internally just ends up calling pte_clear() which does not correctly >> deal with hugepages consisting of contiguous page table entries. >> >> Add a size argument to address this issue and allow architectures to >> override huge_pte_clear() by wrapping it in a #ifndef block. >> >> Update s390 implementation with the size parameter as well. >> >> Note that the change only affects huge_pte_clear() - the other generic >> hugetlb functions don't need any change. >> >> Signed-off-by: Punit Agrawal >> Cc: Martin Schwidefsky >> Cc: Heiko Carstens >> Cc: Arnd Bergmann >> Cc: "Aneesh Kumar K.V" >> Cc: Mike Kravetz > > Acked-by: Arnd Bergmann Thanks, Arnd. I've applied the tag locally. > > -- > 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: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id CC39D6B0279 for ; Tue, 23 May 2017 10:53:14 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id c10so167407688pfg.10 for ; Tue, 23 May 2017 07:53:14 -0700 (PDT) Received: from foss.arm.com (foss.arm.com. [217.140.101.70]) by mx.google.com with ESMTP id b5si21629608plk.75.2017.05.23.07.53.13 for ; Tue, 23 May 2017 07:53:13 -0700 (PDT) From: Punit Agrawal Subject: Re: [PATCH v3.1 4/6] mm/hugetlb: Allow architectures to override huge_pte_clear() References: <20170522133604.11392-5-punit.agrawal@arm.com> <20170522162555.4313-1-punit.agrawal@arm.com> Date: Tue, 23 May 2017 15:53:10 +0100 In-Reply-To: (Arnd Bergmann's message of "Mon, 22 May 2017 22:34:45 +0200") Message-ID: <87efvfhbft.fsf@e105922-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: owner-linux-mm@kvack.org List-ID: To: Arnd Bergmann Cc: Andrew Morton , Linux-MM , Linux Kernel Mailing List , Linux ARM , Catalin Marinas , Will Deacon , n-horiguchi@ah.jp.nec.com, "Kirill A . Shutemov" , mike.kravetz@oracle.com, steve.capper@arm.com, Mark Rutland , linux-arch , "Aneesh Kumar K.V" , Martin Schwidefsky , Heiko Carstens Arnd Bergmann writes: > On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal wrote: >> When unmapping a hugepage range, huge_pte_clear() is used to clear the >> page table entries that are marked as not present. huge_pte_clear() >> internally just ends up calling pte_clear() which does not correctly >> deal with hugepages consisting of contiguous page table entries. >> >> Add a size argument to address this issue and allow architectures to >> override huge_pte_clear() by wrapping it in a #ifndef block. >> >> Update s390 implementation with the size parameter as well. >> >> Note that the change only affects huge_pte_clear() - the other generic >> hugetlb functions don't need any change. >> >> Signed-off-by: Punit Agrawal >> Cc: Martin Schwidefsky >> Cc: Heiko Carstens >> Cc: Arnd Bergmann >> Cc: "Aneesh Kumar K.V" >> Cc: Mike Kravetz > > Acked-by: Arnd Bergmann Thanks, Arnd. I've applied the tag locally. > > -- > 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 -- 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 From: punit.agrawal@arm.com (Punit Agrawal) Date: Tue, 23 May 2017 15:53:10 +0100 Subject: [PATCH v3.1 4/6] mm/hugetlb: Allow architectures to override huge_pte_clear() In-Reply-To: (Arnd Bergmann's message of "Mon, 22 May 2017 22:34:45 +0200") References: <20170522133604.11392-5-punit.agrawal@arm.com> <20170522162555.4313-1-punit.agrawal@arm.com> Message-ID: <87efvfhbft.fsf@e105922-lin.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Arnd Bergmann writes: > On Mon, May 22, 2017 at 6:25 PM, Punit Agrawal wrote: >> When unmapping a hugepage range, huge_pte_clear() is used to clear the >> page table entries that are marked as not present. huge_pte_clear() >> internally just ends up calling pte_clear() which does not correctly >> deal with hugepages consisting of contiguous page table entries. >> >> Add a size argument to address this issue and allow architectures to >> override huge_pte_clear() by wrapping it in a #ifndef block. >> >> Update s390 implementation with the size parameter as well. >> >> Note that the change only affects huge_pte_clear() - the other generic >> hugetlb functions don't need any change. >> >> Signed-off-by: Punit Agrawal >> Cc: Martin Schwidefsky >> Cc: Heiko Carstens >> Cc: Arnd Bergmann >> Cc: "Aneesh Kumar K.V" >> Cc: Mike Kravetz > > Acked-by: Arnd Bergmann Thanks, Arnd. I've applied the tag locally. > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo at kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: email at kvack.org