Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1405441rwi; Wed, 19 Oct 2022 10:09:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QE8m9930y2My3226+DSTBkxbGejYBn9r/cRKoDy+5VLn1BWIxQOrqmjJmv9tr9I+gSkeJ X-Received: by 2002:a65:6e0d:0:b0:42d:707c:94ee with SMTP id bd13-20020a656e0d000000b0042d707c94eemr7782741pgb.260.1666199378468; Wed, 19 Oct 2022 10:09:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666199378; cv=none; d=google.com; s=arc-20160816; b=gURmL0qaxWAYdU2OSPlIK9TJ8PqHw/yseagsgbJ5UBESUAGj/mrm9ohPRoulQWHqVN TPNlnCONTwDBLsRBgHGpt2D6vcMSvxRLJn31qIarIhwRXT77XBLLwC+6b+JU1zv98X3o dXEt2VrN1xek99Dj/88mZzCbikswgXLK5/1mKMy8LmlZeA+tVvUe4GcoQ3QJlzW24pdZ 0ZKeHrTyJlDfExpNENCH//HUT0dEX0auTod2pfUWqKceGp9igyQA7WOEz861U0bAdr1y ULvyU9tW5tWlUdPQ4qjEUcv8o6btXtxLBA/N9/9NvhiNmGAX1Y/HvHxyHYhVRAv+7S2q ct3A== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=EvwZBrB7TqkUq7wBkk0xoJFm3Apem/xANPxoXgVQ84k=; b=Hc871GyGLEYIMrMZn34nhPojWHtTVZjHGoDjbdRQwBkRNb7VbM0RgQqTVqU4+egxJi dI2XzKfB5dZ0NUhYBUzT0lCvF1ZUnrRXQHmIIhj9wOcqCyL0C9yynpK8sXhAt4JzCLxN yqOvBFvIjZDcX4VUV3QMLABrPsjgYN5gy7mTAgRcNugUIDBmaAYDAdeqmTxLTtuFx6Y+ dTyslELxquwoUOvS7i+ASP/+P5ZdUMb23CI4sf3vFNGgYDUjkGIblw6ze8DERe3K5tV/ iU/uqjMktlvzvMBlACXNs6FpoElBGBTxse5GjfpsDaEZL/PKvinXB91U+QYutRNG2rvg Lkgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=MwPNcV8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u24-20020a631418000000b0045c59e9a8a9si19477883pgl.322.2022.10.19.10.09.25; Wed, 19 Oct 2022 10:09:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=MwPNcV8w; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbiJSQ3V (ORCPT + 99 others); Wed, 19 Oct 2022 12:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbiJSQ3M (ORCPT ); Wed, 19 Oct 2022 12:29:12 -0400 Received: from smtpcmd02102.aruba.it (smtpcmd02102.aruba.it [62.149.158.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E3EF21C906C for ; Wed, 19 Oct 2022 09:29:10 -0700 (PDT) Received: from [192.168.50.220] ([146.241.87.206]) by Aruba Outgoing Smtp with ESMTPSA id lBwJo6MaJsjaWlBwJoQS9y; Wed, 19 Oct 2022 18:29:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1666196948; bh=KWsCb7oSfeaVAXK7sDGwYaVZUTsD5X0vw6E+Eo89lmQ=; h=Date:MIME-Version:Subject:To:From:Content-Type; b=MwPNcV8wK12n91NymN56jBSo3LSW9ItFJpXWJ/UpNLhm19mo9MzCOwZBNPCAGXHxW 4C+eVO75telqGgVPlv7L/eiIIcUwzXsNOkhvi1DfMhYaIifDULVhiwT7jLR1qlPclK CEFI9Oi07xVIL4svdmHdUcUxlk69UYRTJG+pAhPp8xbkMAlN+eAXECt6QLzFY8Ic6O f8PQYZZ43KFWxukhd2Z5wADHUeHGvlY+s3L9xH75rxUHKe8kSgXt1vB3ezCGJoP2D0 4cEF80qQOQWkvmx92UKcujhLdRebWlxc2/O02n+iUZkv6h2iSJ7mwK2jI+3GhSNOKT TH8xKgWSubG9Q== Message-ID: <55de7884-a564-72a4-fe83-173a80aac6ad@benettiengineering.com> Date: Wed, 19 Oct 2022 18:29:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH v2 2/2] ARM: mm: convert empty_zero_page to array for consistency Content-Language: en-US To: "Russell King (Oracle)" Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anshuman Khandual , Andrew Morton , Kefeng Wang , Arnd Bergmann , Will Deacon References: <20221018222503.90118-1-giulio.benetti@benettiengineering.com> <20221018222503.90118-2-giulio.benetti@benettiengineering.com> From: Giulio Benetti In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfDFMFHFFTX76a7US2qRhumCRZocCh9AOvE2xr2bwIdRt51fLDpJ1X5JdZzSqq8qq4t72OvjRMsrNYGkF4bYB24gpPNMMU4WDiWvRuvfvxJYYzlpJ+UVg y9ui8Fdi8rgh+NL+uxQadOkiXj74ysGRiHn9DB8Pd723WZ2OTRapCNqCSme+IfV2rpGilNdGGAa7V6HitPvqZVdjKwF3axRMiCZPxM7kIyGKdgMFZNIinoDI e/9qQZAKPasjBtGxL5VpQp1vSpLbhFrvWERKOZh/uDiVwxBe1XADQnytgIWAIuuzcwQHiwFolp4/4rS7RAAH32qRUXb9QdHqZygBUJSeZSdqDUuU4uVkXNRX Jo5YCbzC9dbImmYfbPPdxIHC9p34I3pAg3/YRi50cqlTTv4jRjDHX9EF/jSZHbLgzUpad79MNsEqJmqRidyAOA7VdEDbqIg4HDdTLjYpsc2b1dW4W3xEIkXA t5RTTdIXO2yBnOeq X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Hello Russell, On 19/10/22 16:44, Russell King (Oracle) wrote: > On Wed, Oct 19, 2022 at 12:25:03AM +0200, Giulio Benetti wrote: >> ARM architecture is the only one to have empty_zero_page to be a >> struct page pointer, while in all other implementations empty_zero_page is >> a data pointer or directly an array(the zero page itself). So let's convert >> empty_zero_page to an array for consistency and to avoid an early >> allocation+dcache flush. Being the array in .bss it will be cleared earlier >> in a more linear way(and a bit faster) way. >> >> Suggested-by: Arnd Bergmann >> Signed-off-by: Giulio Benetti > > I'm completely against this approach. It introduces inefficiencies in > paths we don't need, and also means that the zero page is at a fixed > location relative to the kernel, neither of which I like in the > slightest. I haven't considered those details, I'm pretty new in this topic. I was thinking with a no-mmu approach in my mind, that's why the .bss approach. And also the exposure of the entire array to the other subsystem is not a good idea. Thank you for pointing me Best regads -- Giulio Benetti CEO/CTO@Benetti Engineering sas