Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp548476qtb; Wed, 19 Oct 2022 08:37:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kWzPHwqJ00m2eEy5hjDCFsxn66/LESWDd1tQV2+ldlYLWB368zsFI4PpMn+Q/fCEE4nEY X-Received: by 2002:a62:1e81:0:b0:563:8689:d295 with SMTP id e123-20020a621e81000000b005638689d295mr9375365pfe.6.1666193844179; Wed, 19 Oct 2022 08:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666193844; cv=none; d=google.com; s=arc-20160816; b=eS2AN0jAb2sp8cQwj8pJwnyAHbL7b6p1DXQThfXdpmtnShfFUpL/ry+cmLEEuakDHq 3RtYGp9m/mPK4NvqVPQRAXEsX2EEBV7ku+EN8XXqAZINpYTTPyB+kmsSFxj8APHt3QNJ bS1E+HxoXVOc44NT6Yv4aBGZkHXTmiiYun2/uusmRBcw1H2jj8Z7g+uqtG49APDJ8hC2 zY9wOxfJR0DnzINDI5badk09DJAhMHP693uOShrTA04V941Dqs4RblSOf6lOTHj5d3Zi 1jJ6e+m12Fbs8mzbKg+EiO+tIXhr/dm2VE6db6f6b+h0STGokqLl9eh1mn22MYuDNq9E 6DOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5mYsxjFeGKpcm5KRoXtnujxHXSvElTxW7YBXE+XahDo=; b=WcV0jRuJLRGhS2NYfMHdiecpAjLqES7Qmv+H6QYIEy4krpnXAaTKMHuEp+vcPuPPbI +qhiesR7ryxM/Rh6TcaJYkQe5/JLYgxorzpKupXqTl2QZ3iPWjkFr7rkhIdQoi9Oz4O9 JqLIByIYb879FSYrumd7BZE0SrSTqyj9KQ2Ug3tiaxPyiZ7ZLIZYI0N/FjbH/7HUs2P+ z01BzeuGaSjuoM2BjawjOAAM4xIjyYS6i80y9CBdKAKwTfhDSuvQ6i/p7VrFq+fjjulG 3qVdAnCsAumJ89xlRIUUbYnrkMaGKlVdPKorC3rdsEycL06yzXhdpPnETlruFU1JnJwh 0oeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GYpzJ4IZ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn15-20020a056a00340f00b005655fc278f3si15780197pfb.201.2022.10.19.08.37.12; Wed, 19 Oct 2022 08:37:24 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=GYpzJ4IZ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231653AbiJSOxn (ORCPT + 99 others); Wed, 19 Oct 2022 10:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230183AbiJSOxD (ORCPT ); Wed, 19 Oct 2022 10:53:03 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E02782875 for ; Wed, 19 Oct 2022 07:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5mYsxjFeGKpcm5KRoXtnujxHXSvElTxW7YBXE+XahDo=; b=GYpzJ4IZIEfobfw2od09Tue2PV 4elW8HRHpOe79w1JijJ0TPTMFxGt3XDEFxytqo1o4IEXBn0Jl6GG1UAN5ndNpIdibD+jcICdO8hi1 itO01Z3AXa1DzUKuW6CQUdmH0SvB+9jnoZL3lqzkbXW3+VJGaXLkPzaEw0o7KN8qJdm2NzTHuBhfS BYnmWChb87rwU/Hn2dZilJdNHidtz4w9EcQudXpnm+nxGNe+/QS4TVsuFq9LRSfdlzyzO5mY/ExNK wcmVKKRtjnBBWonp0yslD/t5D6O0ynqDxw0n05xcJkhUpvATyFzFnczZmeY/95wkr6ilgN9jh8VqL 13yPXzsg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34806) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1olAJL-0005qQ-Aa; Wed, 19 Oct 2022 15:44:47 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1olAJH-0002Ea-5V; Wed, 19 Oct 2022 15:44:43 +0100 Date: Wed, 19 Oct 2022 15:44:43 +0100 From: "Russell King (Oracle)" To: Giulio Benetti Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Anshuman Khandual , Andrew Morton , Kefeng Wang , Arnd Bergmann , Will Deacon Subject: Re: [PATCH v2 2/2] ARM: mm: convert empty_zero_page to array for consistency Message-ID: References: <20221018222503.90118-1-giulio.benetti@benettiengineering.com> <20221018222503.90118-2-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221018222503.90118-2-giulio.benetti@benettiengineering.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!