Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp918376pxb; Fri, 22 Apr 2022 14:16:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpcr3ifHKAat8YhXQ2jooC8u4mLbkuKq0sKnZzuVZ7IWqyee+Wc5LiSgWD32/11im5SFTB X-Received: by 2002:a17:90a:4fe5:b0:1d0:e5e1:5bbc with SMTP id q92-20020a17090a4fe500b001d0e5e15bbcmr18103266pjh.235.1650662213158; Fri, 22 Apr 2022 14:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650662213; cv=none; d=google.com; s=arc-20160816; b=X2e11Q151iaaQy3P0zUw3qiA6x6c7atu2roelE06BSxj+YKAd/5O3V4y6Wi7sMQ0TS c7U+zU6t2kVjOgykP4pdK7BKUw5PJambfsFDU4s9aG97hn4IUuRa4em7+8ALhdhH11m8 E8gCd5ZvlohO8AwX+QAQLZzLf0m3CyQGNcZpMbqnRc2zb/3w9H1B+YPy+M93xsJ2AKr8 1W9+p1CLmkog1BdwqP5aSnprdNYWvhtp5bHnfZpDIUSe7eyzFK1UYytv35f1iHG/TfQ6 HOUZJGMVNehCoPkqAQx1yBvg+lRot15creuxh14R5J9R6zSxHlaEeEpauEuMm1YamyEH 3nWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=TGn15EL4C0T3taYAweNmkYu/5auUttkdzLDZmczjMS0=; b=Ua4I40wMF+Nalro9/hTh3w28zBb/e9kQjlOQFKSLKPdA2zUoTIc1903k0raMGA5ieT vWtW7rP3I/9+FFFTlXfOmqruVna2hsqBW7TjiPGdfp9+EF7aRlSzAjDhziuujT9jAY3+ Svsgx80Bmkav2//OX6HcuKR6Zye7bQjrUdBUWIRnElheMm0T4n4dCAx24PGMFUCv4I8Q 2UTow03Be6N4duZJP5tSiWj0eqarxvwWDUgAC1vwfx/QQnfVXeKVY0LxJg3Q+7/jRL8e XFP5I/LWNcVhZ/4DKJftJzBlzzHQss4hve3aElgJuisXbZdHl14fDwUwO5akCoX3IrfE 807w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id rm10-20020a17090b3eca00b001cd51f48295si9950550pjb.174.2022.04.22.14.16.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C64A02A740B; Fri, 22 Apr 2022 12:24:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443983AbiDVEse (ORCPT + 99 others); Fri, 22 Apr 2022 00:48:34 -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 X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.