Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp721345rdb; Fri, 2 Feb 2024 01:45:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEncxqQYe49d8O/Vkw+cItt/m9ISeV68u3e3Ls9WCo2UBFSvbA9LATWUjSJ8wlX+qBSVQv6 X-Received: by 2002:a05:622a:d6:b0:42b:f17f:8db2 with SMTP id p22-20020a05622a00d600b0042bf17f8db2mr5650750qtw.51.1706867129852; Fri, 02 Feb 2024 01:45:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706867129; cv=pass; d=google.com; s=arc-20160816; b=NuomWqoNwo8ufpUTM6QmgkUAZGDsgatJov5X8suYzm/CNUsOoueQR6dzd+OQS7CVkn Q6js6y7BNHEiwdp6vuSABruFGBAllX8Qn+SbPet2FiMqjZH17MIuRAYPJN9w5j/+XF3o g5AeKJX398+CzIdZnkiWtce52TttPgwzHLaSUMiPocmcQHHGbPyhhb0b0H3K88kLFkZD BJsRjL/Mb0xYnARpIx4RMI2HMjYO1SaMXLOvgspQQIbkJV3fvMY02Qo8aJtewHK5uqEl nsN8qfMcyeGVd1C2sqHFpOmongN9UCgdDaRBeznf/KmgGRXwnB9PlvHc08IVPohwteJp g4bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=lu0P7MbFFFt26li7WbAVE5d4QrcTX4IgFehhwG1hhXo=; fh=23qeIVR2diRIGHCcBQNL+WTo2pbDTcuOLYSCygV00iE=; b=IldHVwNAKA8uolC1Pgi4tdKxkgfq5jZM2m+YU+7r774NkqlknsCGg14pXCCEqQA+sI B+9V+0dFRXScfH0WoHC6tjsqez50znYsvxa0EJWKCtTQlXhT0eaJ6g7uKwYBIZwlhULI dSJO/0LpLeWbcBgVstmhaoREYHdyhG90adds7E6E6O7w9LFvpsj0iOfRH6P/KnUGJ6Om 9saB4shOfia6a08469CnzUgDVzQ/ZTnEG0YnQyuYYZ+vS7mbxXkm5H5bYRnWYe9o5w/7 S6UeLGWvFlivIc+qO7oAa8yxTjx49ozwjCvbm4BKH6CALaCPD9P/WDTP6eQTSoVhJ6l+ NErQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=Qy6Htbzc; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=qOtBOZIp; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-49346-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de X-Forwarded-Encrypted: i=1; AJvYcCW+0iCai0EMhi6N1/SMb72lZrB3inf/blOo8DIoOIxM7gf404/BxKcQQCjIyDD/kXJPMUMu1Py/TfJVUaEsfAzLQ7JqtU3HCuK8MSaI6A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a9-20020a05622a02c900b0042a7cead6c1si1561614qtx.382.2024.02.02.01.45.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:45:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49346-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=Qy6Htbzc; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=qOtBOZIp; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-49346-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BCACC1C254DE for ; Fri, 2 Feb 2024 07:06:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCF161799F; Fri, 2 Feb 2024 07:05:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="Qy6Htbzc"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="qOtBOZIp" Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6D9E1774A; Fri, 2 Feb 2024 07:04:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706857499; cv=none; b=kF/G0OM5mjeQcqVbyHhwh3I3mt8u71jpkRrAr0SAGa+PIl0JvaszkLl1YMQ635sg8Kp44/WjsfxaZBMzFyk/wgIXpwR1Zf/jSY22RXPvU2hUIp4taQIz9EQNC6cR1eKe0DM3FdoOGBM6kDX6zUqZr5HgaLS9l8Svygcdt2Maqok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706857499; c=relaxed/simple; bh=B42XzyrQHcl1SjCEGkJPm45lI8Bl00Hv4yoLYPmcQxA=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=FutDYupeY/6meDKv4BdF7l3/gc384aRUPElBmWsOVE5Wgy9yyIWwZ+Uy9xyxvf+o1oHQjzDA6aQas+fZ3jA6Sk7QPGklcutt+y6onNTDkOZ8jJbS7JFawev721KeMdifTDsl6OJFeatcB3iiiQegm9IRJtIk4pC/GfQM4Xjb2zY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=Qy6Htbzc; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=qOtBOZIp; arc=none smtp.client-ip=66.111.4.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 8F70D5C0100; Fri, 2 Feb 2024 02:04:56 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 02 Feb 2024 02:04:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1706857496; x=1706943896; bh=lu0P7MbFFF t26li7WbAVE5d4QrcTX4IgFehhwG1hhXo=; b=Qy6HtbzcWStGTi/SQa6zvMIdeX ia6/J2AyWEBTyipgZODWpCfjcEEXTaNc8ZK0VA9+9aKcGHDABrOwpuNefkrmdGFt fP0R5dMEtF9nzlp5ORdHw1uVs7rsfNTIuyN869oj6tJUBdT12C5E0zByB3TsBujX BBQZ+nzi+2nCUpxkkyEc+F2IyL51Il/X6/GlhbIq/rZv454FNxnYwQcRnrxxP95d gDj6oeEuuoL1GCANx0GKW4687yo03ijMd2wnT3Nldr24fmpV0xchq128834QEHY6 hab7Yschu2B+uzt/7lvRcvvL9q2FHgZm9lJRK9Rt1CGiG3LpNxbIwnqIZwAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1706857496; x=1706943896; bh=lu0P7MbFFFt26li7WbAVE5d4QrcT X4IgFehhwG1hhXo=; b=qOtBOZIpCnOYr+DDduWsKs/lW+/wYKZdQx4lVtgjoztS 6DLwG4QqJuUcdShbOH9fzDFVt0T1np0TGujKpRKeOSjxelmLIHcTObrQD/TR+Ht7 zITykQJlPNPGdF12QdqD/cMD7iXYF1sKkXTZFqpGxNZs+G5MStD7MwVCbPtXIlEf meNchvyTXC1PL4dW8n/TSx8yqO40hrFQ2sF/FUF45w+WwIZGqr9d7uAcB+4WNbZK XZZAxpLukhUe3P16SO4wJ+fvZtS4ksPdKxQw2yEM9btzdUM8vyDSmdZdMABHuOvw HS1EjSUzK1AnACYxHGbf2A13Ktc784S09K3GrPMRog== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedufedgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id E7616B6008D; Fri, 2 Feb 2024 02:04:54 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-144-ge5821d614e-fm-20240125.002-ge5821d61 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <33a5d3a9-3154-4dad-afae-18b16e6cf61e@app.fastmail.com> In-Reply-To: References: <20240131055159.2506-1-yan.y.zhao@intel.com> <5e55b5c0-6c8d-45b4-ac04-cf694bcb08d3@app.fastmail.com> <9f27c23b-ea8b-443c-b09c-03ecaa210cd5@app.fastmail.com> Date: Fri, 02 Feb 2024 08:04:34 +0100 From: "Arnd Bergmann" To: "Yan Zhao" Cc: "Linus Walleij" , guoren , "Brian Cain" , "Jonas Bonn" , "Stefan Kristiansson" , "Stafford Horne" , Linux-Arch , linux-kernel@vger.kernel.org, "linux-csky@vger.kernel.org" , linux-hexagon@vger.kernel.org, "linux-openrisc@vger.kernel.org" Subject: Re: [PATCH 0/4] apply page shift to PFN instead of VA in pfn_to_virt Content-Type: text/plain On Fri, Feb 2, 2024, at 02:02, Yan Zhao wrote: > On Thu, Feb 01, 2024 at 06:46:46AM +0100, Arnd Bergmann wrote: >> >> I think it's fair to assume we won't need asm-generic/page.h any >> more, as we likely won't be adding new NOMMU architectures. >> I can have a look myself at removing any such unused headers in >> include/asm-generic/, it's probably not the only one. >> >> Can you just send a patch to remove the unused pfn_to_virt() >> functions? > Ok. I'll do it! > BTW: do you think it's also good to keep this fixing series though we'll > remove the unused function later? > So if people want to revert the removal some day, they can get right one. > > Or maybe I'm just paranoid, and explanation about the fix in the commit > message of patch for function removal is enough. > > What's your preference? :) I would just remove it, there is no point in having both pfn_to_kaddr() and pfn_to_virt() when they do the exact same thing aside from this bug. Just do a single patch for all architectures, no need to have three or four identical ones when I'm going to merge them all through the same tree anyway. Just make sure you explain in the changelog what the bug was and how you noticed it, in case anyone is ever tempted to bring the function back. Arnd