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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28CBDC433FE for ; Sun, 16 Oct 2022 11:52:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0AB8E8E0002; Sun, 16 Oct 2022 07:52:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 05C678E0001; Sun, 16 Oct 2022 07:52:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E17688E0002; Sun, 16 Oct 2022 07:52:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CF3FB8E0001 for ; Sun, 16 Oct 2022 07:52:22 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A02B51A0678 for ; Sun, 16 Oct 2022 11:52:22 +0000 (UTC) X-FDA: 80026649724.23.A6D7932 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by imf21.hostedemail.com (Postfix) with ESMTP id BBB931C0023 for ; Sun, 16 Oct 2022 11:52:21 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 404C0320031A; Sun, 16 Oct 2022 07:52:19 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute3.internal (MEProxy); Sun, 16 Oct 2022 07:52:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1665921138; x=1666007538; bh=3j8ISkoR6c dwfWmQo4rJN/bj92WrzimiU8KQFUYoUF0=; b=BwiqToW3oTdY5zXr35/AZUAY86 Rwm1kHuwPS3CtxuwCPPV10aM+fZSs+Wm1T8C7x6OoJCJlnlBGyiz1oZ11AGE+p0D AO71Sdg9wdEAc4YbWVzw3PlNjC2iIzRMoqDwPhkMHee/Be30DQciPSU490SwroEH S1XhXZTmzaffK/+IOlGEEcxhqVs6eaHiOzeeFxziHSAbeN3LSoz4xLdjjCRQhBkf QP9T+bhdlvm/oj5xAYoIr4vPGBg2hVNNQIH2P3cmYW+yN8+jbACLeTWXB/3HjpjD D2Mm9qm4DdtO2W/2pUotuISFbrk6gSUeu6E6Q1vc8iqGPOH1nM7NNmzgKyDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1665921138; x=1666007538; bh=3j8ISkoR6cdwfWmQo4rJN/bj92Wr zimiU8KQFUYoUF0=; b=dCq2XjpLGT/z2XwOBjLsH8c0uzJQ0IJen9keOEt6Yct1 593a4qk+PDeJnCF7kOWoHla2MAOjwltIASuFOOqJYl9tRPrJ6HiPI8ToRphpjEel DJ8s4bBZ/3hZu30HAoytUYaHbBKy1lpwRY/oT1n65DIJdUjx6OI1B+MimKBaJP9j TX16kxUzDtXAj5pjUVHm77NJxWvIxbt/8VDmbFpzAacohdCYb8PzKnFSyHsLJJiY KZQHEGPh8/3wQ18o9UE4XZ2GWWwjHGZP9dL/sISOllvtK573zFdpqgsw5XcjifdC caL6JOctDn3qyHvOQYsW2BpgNrR3AjZp8ILYym/h6Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeekjedggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 77C46B60086; Sun, 16 Oct 2022 07:52:17 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1047-g9e4af4ada4-fm-20221005.001-g9e4af4ad Mime-Version: 1.0 Message-Id: In-Reply-To: References: <8c7ac4667c6a3cc48f98110117536f60d51ece4a.1665568707.git.christophe.leroy@csgroup.eu> Date: Sun, 16 Oct 2022 13:51:57 +0200 From: "Arnd Bergmann" To: "Alexander Gordeev" Cc: "Christophe Leroy" , "Baoquan He" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Linux-Arch , "Andrew Morton" , "Christoph Hellwig" , wangkefeng.wang@huawei.com, schnelle@linux.ibm.com, "David Laight" , "Stafford Horne" , "Benjamin Herrenschmidt" Subject: Re: [RFC PATCH 7/8] mm/ioremap: Consider IOREMAP space in generic ioremap Content-Type: text/plain ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665921142; a=rsa-sha256; cv=none; b=aYsplz+8yQ0Kp192Vb1q2if2PMoPeoVHZS88yPrW/z58Zt71cAnsbmRXOM0ACE30NjiRFE DG94qeOdUbtvBO/da6w9lpuOrexIlqVmak1uchiug7u28X7451mHUwFWpE9gCD0d0Tc0zz Txpvj3vUsQeUzb5fkL2QDm1WZ4UvsJY= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=arndb.de header.s=fm2 header.b=BwiqToW3; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=dCq2XjpL; spf=pass (imf21.hostedemail.com: domain of arnd@arndb.de designates 64.147.123.20 as permitted sender) smtp.mailfrom=arnd@arndb.de; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665921142; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=3j8ISkoR6cdwfWmQo4rJN/bj92WrzimiU8KQFUYoUF0=; b=UkJOUUy4WVg2l3YIhKy9QUyrrXv/VSr2kB2VOmdgG6IPf8dMutmWxaBSTSyDaiorUg/r/x 3NUwZCGeO1G9HHb6bNL1He5/KAQ/BPZ9qAKvhHRukth0CvC758LEVfiEuP6JQ/jwG8ZD9U NypmC+VqJxD3A+w4ut8KacgPW9ZTHy4= X-Stat-Signature: mxgkx5ruy5doqyczxk4yn5at6ngati95 X-Rspamd-Queue-Id: BBB931C0023 X-Rspam-User: X-Rspamd-Server: rspam08 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=arndb.de header.s=fm2 header.b=BwiqToW3; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=dCq2XjpL; spf=pass (imf21.hostedemail.com: domain of arnd@arndb.de designates 64.147.123.20 as permitted sender) smtp.mailfrom=arnd@arndb.de; dmarc=none X-HE-Tag: 1665921141-267702 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Oct 16, 2022, at 9:54 AM, Alexander Gordeev wrote: > On Wed, Oct 12, 2022 at 12:39:11PM +0200, Arnd Bergmann wrote: >> "Some" means exactly powerpc64, right? It looks like microblaze >> and powerpc32 still share some of this code, but effectively >> just use the vmalloc area once the slab allocator is up. >> >> Is the special case still useful for powerpc64 or could this be >> changed to do it the same as everything else? > > Or make it the other way around and set IOREMAP_START/IOREMAP_END > to VMALLOC_START/VMALLOC_END by default? Sure, if there is a reason for actually making them different. >From the git history, it appears that before commit 3d5134ee8341 ("[POWERPC] Rewrite IO allocation & mapping on powerpc64"), the ioremap() and vmalloc() handling was largely duplicated. Ben cleaned it up by making most of the implementation shared but left the separate address spaces. My guess is that there was no technical reason for this, other than having no reason to change the behavior at the time. Arnd