From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C50EC433EF for ; Fri, 22 Apr 2022 04:45:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443986AbiDVEsf (ORCPT ); Fri, 22 Apr 2022 00:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231707AbiDVEsb (ORCPT ); Fri, 22 Apr 2022 00:48:31 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0517183B6 for ; Thu, 21 Apr 2022 21:45:38 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 586821570; Thu, 21 Apr 2022 21:45:38 -0700 (PDT) Received: from [10.163.40.48] (unknown [10.163.40.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EEC4F3F5A1; Thu, 21 Apr 2022 21:45:30 -0700 (PDT) Message-ID: <17625223-cc3d-d62a-57db-f7bb5274369f@arm.com> Date: Fri, 22 Apr 2022 10:16:18 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH -next v5 1/5] mm: page_table_check: using PxD_SIZE instead of PxD_PAGE_SIZE Content-Language: en-US To: Pasha Tatashin , Tong Tiangen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Andrew Morton , Catalin Marinas , LKML , linux-mm , Paul Walmsley , Will Deacon , Albert Ou , Palmer Dabbelt , Linux ARM , Kefeng Wang , linux-riscv@lists.infradead.org, Guohanjun References: <20220421082042.1167967-1-tongtiangen@huawei.com> <20220421082042.1167967-2-tongtiangen@huawei.com> From: Anshuman Khandual In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/22/22 00:10, Pasha Tatashin wrote: > On 4/21/22 11:28, Pasha Tatashin wrote: >> On Thu, Apr 21, 2022 at 4:02 AM Tong Tiangen wrote: >>> Macro PUD_SIZE/PMD_SIZE is more general in various architectures. Using >>> PUD_SIZE/PMD_SIZE instead of PUD_PAGE_SIZE/PMD_PAGE_SIZE can better >>> support page table check in architectures other than x86 and it is no >>> functional impact on x86. >>> >>> Suggested-by: Anshuman Khandual >>> Signed-off-by: Tong Tiangen >> Acked-by: Pasha Tatashin > > To avoid similar problems in the future, please also include the following patch after the current series: > > ----------------8<-------------[ cut here ]------------------ >>>From cccef7ba2433f8e97d1948f85e3bfb2ef5d32a0a Mon Sep 17 00:00:00 2001 > From: Pasha Tatashin > Date: Thu, 21 Apr 2022 18:04:43 +0000 > Subject: [PATCH] x86: removed P*D_PAGE_MASK and P*D_PAGE_SIZE > > Other architectures and the common mm/ use P*D_MASK, and P*D_SIZE. > Remove the duplicated P*D_PAGE_MASK and P*D_PAGE_SIZE which are only > used in x86/*. > > Signed-off-by: Pasha Tatashin Absolutely, helps in minimizing arch specific stuff wrt to page table mapping. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2DE0C433F5 for ; Fri, 22 Apr 2022 04:46:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GvH6T0TTPb59qfqkpXAM3vEDBThm1lXsx+6DQEyEP+o=; b=k1eGsVzBdOxLGY bqFhLiaKXbr/bkVA+k7tLWCMA6Sv/ev7MecgsciE/POYR/hhySSspQJvHEsJslDvZeyo60x9W+6hv /yTC64xpvehk8FI2BSfa8MeWKk4pAJ36y/K0a+Yft+TOoE8fuhD6LzzQ7XMtFMHiFaIK3lv13UR3x +DbKiRswaaFdF/AloPw2gm5WtLKaGQWbPsIzUJQGLDzEZsC4J7OK64rz7sXDxvQuGYNptM6otaSLx R1qJDKlSyurrLdyidolQAinNuGP80TVXXPXV4kIk+uwrbpSYq+lqy2rE4D0NX89Qa0HXx8HfYa3fX DjsFBgyACINCeCFkuxWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhlB0-00G6GP-T7; Fri, 22 Apr 2022 04:45:50 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhlAp-00G6Db-Hj; Fri, 22 Apr 2022 04:45:40 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 586821570; Thu, 21 Apr 2022 21:45:38 -0700 (PDT) Received: from [10.163.40.48] (unknown [10.163.40.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EEC4F3F5A1; Thu, 21 Apr 2022 21:45:30 -0700 (PDT) Message-ID: <17625223-cc3d-d62a-57db-f7bb5274369f@arm.com> Date: Fri, 22 Apr 2022 10:16:18 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH -next v5 1/5] mm: page_table_check: using PxD_SIZE instead of PxD_PAGE_SIZE Content-Language: en-US To: Pasha Tatashin , Tong Tiangen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Andrew Morton , Catalin Marinas , LKML , linux-mm , Paul Walmsley , Will Deacon , Albert Ou , Palmer Dabbelt , Linux ARM , Kefeng Wang , linux-riscv@lists.infradead.org, Guohanjun References: <20220421082042.1167967-1-tongtiangen@huawei.com> <20220421082042.1167967-2-tongtiangen@huawei.com> From: Anshuman Khandual In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_214539_683071_91D1F0AD X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On 4/22/22 00:10, Pasha Tatashin wrote: > On 4/21/22 11:28, Pasha Tatashin wrote: >> On Thu, Apr 21, 2022 at 4:02 AM Tong Tiangen wrote: >>> Macro PUD_SIZE/PMD_SIZE is more general in various architectures. Using >>> PUD_SIZE/PMD_SIZE instead of PUD_PAGE_SIZE/PMD_PAGE_SIZE can better >>> support page table check in architectures other than x86 and it is no >>> functional impact on x86. >>> >>> Suggested-by: Anshuman Khandual >>> Signed-off-by: Tong Tiangen >> Acked-by: Pasha Tatashin > > To avoid similar problems in the future, please also include the following patch after the current series: > > ----------------8<-------------[ cut here ]------------------ >>>From cccef7ba2433f8e97d1948f85e3bfb2ef5d32a0a Mon Sep 17 00:00:00 2001 > From: Pasha Tatashin > Date: Thu, 21 Apr 2022 18:04:43 +0000 > Subject: [PATCH] x86: removed P*D_PAGE_MASK and P*D_PAGE_SIZE > > Other architectures and the common mm/ use P*D_MASK, and P*D_SIZE. > Remove the duplicated P*D_PAGE_MASK and P*D_PAGE_SIZE which are only > used in x86/*. > > Signed-off-by: Pasha Tatashin Absolutely, helps in minimizing arch specific stuff wrt to page table mapping. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0F65C433EF for ; Fri, 22 Apr 2022 04:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+7VUBCLmcTpJS9hGqUZ4MrofOHKNvmgFcF8L6Q8HYhk=; b=hNwSDot4LGmdY3 jTMUu1EJXl4sZ3vrlTCaFKriT6mi2f4DD1zsPZ0N89y5Sks4CBYv5BKNPwOfk3wwwTzsO2OjSYVBc QMUGDVLo5yfcb3pkBzdt/Tm32nh6FOIv9DqgfrC+W+sAY/N7306N6S/wH9Q7Bu3rXv18TaDaKl/x9 +K7iFjtLSrVOlcInrYmU45WMBlrC8wtHdk0trQ4RqjdLWTHGLedHF6ynFGOjkwsWYNRQUWOZWao5t Y/yzbqYpz6KRbEt21P8cWcwTfe7aauPYEOAOpsytuw4jBK3fCrXo4abGYoyDc9fykmPoNT+rypWfC bRAl8oQdv5ZkaGmoJDSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhlAs-00G6EX-Qj; Fri, 22 Apr 2022 04:45:42 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhlAp-00G6Db-Hj; Fri, 22 Apr 2022 04:45:40 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 586821570; Thu, 21 Apr 2022 21:45:38 -0700 (PDT) Received: from [10.163.40.48] (unknown [10.163.40.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EEC4F3F5A1; Thu, 21 Apr 2022 21:45:30 -0700 (PDT) Message-ID: <17625223-cc3d-d62a-57db-f7bb5274369f@arm.com> Date: Fri, 22 Apr 2022 10:16:18 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH -next v5 1/5] mm: page_table_check: using PxD_SIZE instead of PxD_PAGE_SIZE Content-Language: en-US To: Pasha Tatashin , Tong Tiangen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Andrew Morton , Catalin Marinas , LKML , linux-mm , Paul Walmsley , Will Deacon , Albert Ou , Palmer Dabbelt , Linux ARM , Kefeng Wang , linux-riscv@lists.infradead.org, Guohanjun References: <20220421082042.1167967-1-tongtiangen@huawei.com> <20220421082042.1167967-2-tongtiangen@huawei.com> From: Anshuman Khandual In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220421_214539_683071_91D1F0AD X-CRM114-Status: GOOD ( 12.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 4/22/22 00:10, Pasha Tatashin wrote: > On 4/21/22 11:28, Pasha Tatashin wrote: >> On Thu, Apr 21, 2022 at 4:02 AM Tong Tiangen wrote: >>> Macro PUD_SIZE/PMD_SIZE is more general in various architectures. Using >>> PUD_SIZE/PMD_SIZE instead of PUD_PAGE_SIZE/PMD_PAGE_SIZE can better >>> support page table check in architectures other than x86 and it is no >>> functional impact on x86. >>> >>> Suggested-by: Anshuman Khandual >>> Signed-off-by: Tong Tiangen >> Acked-by: Pasha Tatashin > > To avoid similar problems in the future, please also include the following patch after the current series: > > ----------------8<-------------[ cut here ]------------------ >>>From cccef7ba2433f8e97d1948f85e3bfb2ef5d32a0a Mon Sep 17 00:00:00 2001 > From: Pasha Tatashin > Date: Thu, 21 Apr 2022 18:04:43 +0000 > Subject: [PATCH] x86: removed P*D_PAGE_MASK and P*D_PAGE_SIZE > > Other architectures and the common mm/ use P*D_MASK, and P*D_SIZE. > Remove the duplicated P*D_PAGE_MASK and P*D_PAGE_SIZE which are only > used in x86/*. > > Signed-off-by: Pasha Tatashin Absolutely, helps in minimizing arch specific stuff wrt to page table mapping. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel