Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp848846rdb; Wed, 1 Nov 2023 04:56:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhQ1RKhF52HHb008RvesB1RFC/AvhA5CvP0V9AjkAe4ONeD8u7MMu72eUSOFSUPHgCBMcd X-Received: by 2002:a05:6871:10b:b0:1ea:137:7dba with SMTP id y11-20020a056871010b00b001ea01377dbamr19872283oab.10.1698839789741; Wed, 01 Nov 2023 04:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698839789; cv=none; d=google.com; s=arc-20160816; b=WsUVOF9CHt7b3CzM8I2mxmaG34Zpr4TWdOVDPOaL33irINuDUwsky1weINv4i/aHmF 82bbpSPuEFMiZuDGkFt7tjOX57WwDY0l97m4OHgWvla3FS2CbXlniM71qyXzcwArdWyJ tXZWOd61QZCvOOa4jta5QEWiEdbttQz2ugdaudKrgZWAJVQaZhOD1/4sHEOotsswfiFq 6M1dWyPRnaQ5Vb+dAvOEyC6chnXwAX3+SlHmST3mHWwZ033YmUCIhSzXWFH+XZzw/c2p w//bG2+8U/RQTw+46lFEs598hktJhNDxxaYLcTTFB/hm9G/lBe4JjjPBygwTaxSullme 9iAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=IPh9CsqLU4u3dCRavOB07s+Kjay/eRFWrX3L+KjfSiU=; fh=CEXXOs4KQVftY3muoSrqx9ibgv9XqWcrb42DvUOBhxw=; b=ORt6gTEU/7kX20EjPI3ALoeN0b1ysc7uvoWfLnzwtkAPOuwLV9MYjb27AkDoaQe816 /reAy/ccZqldszXR2zvva0wwdJ+Kbc89Yt1LnBx9P85z5oCdZf2cURHlNwyKtfZgCZWE NCAVuWmCxmDcQxpdiQ3fdrVkpji4TWMBAKlQvymiuAax1hU87uGOKIzaB+UZ/JYtlgM0 9hICL+so5k54iHMUDcfcb8JrO728bAouk63kDpXebKH6CBmgcG63scfuVG2BBOp9G4Aq dzW/0VwX5WmlBE/5+q/oLMI16d8PhSikLHZoeuby0jjfuwVdLEdeeaDR5P/isQ0IbBjs aFGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=Y7z0PKTY; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=oVhBir7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 18-20020a630112000000b005b7fb04f1fdsi2985294pgb.140.2023.11.01.04.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 04:56:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=Y7z0PKTY; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=oVhBir7M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 40B4D80C0349; Wed, 1 Nov 2023 04:56:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235372AbjKAL4P (ORCPT + 99 others); Wed, 1 Nov 2023 07:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235288AbjKAL4N (ORCPT ); Wed, 1 Nov 2023 07:56:13 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0B7B10F; Wed, 1 Nov 2023 04:56:04 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id C74A33200922; Wed, 1 Nov 2023 07:56:03 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute3.internal (MEProxy); Wed, 01 Nov 2023 07:56:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type: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=fm1; t= 1698839763; x=1698926163; bh=IPh9CsqLU4u3dCRavOB07s+Kjay/eRFWrX3 L+KjfSiU=; b=Y7z0PKTYBfI6u68m8CQDLFZwHj/6XtUJfZWUYhhuOK+zw1Purk8 lm2A9wJEjNGZT1faNrWvvr98l86UhDK/LQhvZRfvHMdlNzT5mHKeD9ldKaIPgns2 yRYLZPde2LQXlZCm/IXTCNWdgstuFXIr+msWhNW7t9G8IlpAVsUz9CxQKppRAoIb Xn1ybU4FVBz39SfQnn+p/ukJ7s+nkBqA3vZdY9WTJOLQQ7dI52dTLLucvvMZXEUt 7q7dcZiSMJTTC6/qbVvtLGgRzSu9i5un1y1cIdjJWpfb3y5Fr4hv9bNLKJLY+sO2 /q6Me5qNEgEPI34Q75Q9XfForgJAgjbsBwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698839763; x=1698926163; bh=IPh9CsqLU4u3dCRavOB07s+Kjay/eRFWrX3 L+KjfSiU=; b=oVhBir7M5Iwo2BKPZCIHt9eANhp3dqvhEP5KIhOh+E5NzHbctiO oWEB1OZK3P54rNE6F5SvtFBMOnaPZHRzod076DAgzpybNj98bkO3EB0HZlTrbbuR /7aAK4oD0GR5/SaHdD41ddTTrX8X/1TsTkQGRWsBkLmhIDbmdra7kbhEUgeQU2SY rJ4BGfnl07xERP5Q8PJTzptp9krw/kSlbsiluwt2w65wszeBMp/D8a/4rXcoEN7D MgXytY2torbiswy5tjnHu/ybk+Pdpz4+Qxmfu2sGJmgZ0NeUIuXq8MO03/zQYq8j 3V7Mrq9HwKoNEGoj6l8ge5qI1K7FHepptTQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddtgedgfeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfl ihgrgihunhcujggrnhhgfdcuoehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtoh hmqeenucggtffrrghtthgvrhhnpedufeegfeetudeghefftdehfefgveffleefgfehhfej ueegveethfduuddvieehgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 979B036A0075; Wed, 1 Nov 2023 07:56:02 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1048-g9229b632c5-fm-20231019.001-g9229b632 MIME-Version: 1.0 Message-Id: <04275b02-0f04-4aed-9e05-7346daf7f102@app.fastmail.com> In-Reply-To: References: <82076999-9346-473d-8841-1480cd70b527@app.fastmail.com> Date: Wed, 01 Nov 2023 11:55:29 +0000 From: "Jiaxun Yang" To: "Arnd Bergmann" , Linux-Arch Cc: x86@kernel.org, linux-kernel@vger.kernel.org, "Baoquan He" Subject: Re: Overhead of io{read,write}{8,16,32,64} on x86 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 04:56:18 -0700 (PDT) =E5=9C=A82023=E5=B9=B411=E6=9C=881=E6=97=A5=E5=8D=81=E4=B8=80=E6=9C=88 =E4= =B8=8A=E5=8D=889:08=EF=BC=8CArnd Bergmann=E5=86=99=E9=81=93=EF=BC=9A [...] > My feeling is that converting to ioread/iowrite is generally a win > for any driver that already needs to support both cases (e.g. > serial-8250) since this can unify the two code paths. > > However, for drivers that only support inb()/outb() today, I don't > see a real benefit in converting them from the traditional methods. Unfortunately, there are tons of old system trying to mimic PC do rely on those drivers :-( I think the universal target is to remove provision of inb()/outb() family on archs other than x86, and perhaps remove PCI_IOBASE as well because we can manage io regions with ioremap afterwards. Besides PnP system may need an overhaul to handle enablement of ISA device, presumably the ability of receiving information from OF and platform code can be helpful. > Another question is whether we actually want to keep the ISA-only > drivers around. Usually once you look closely, any particular > ISA driver tends to be entirely unused already and can be removed, > aside from a few known devices that are either soldered-down on > motherboards or that have an LPC variant using the same ISA driver. Well for MIPS Alpha PPC m68k I guess that's worth it. Those systems tends to have random hardware pieces from PC, including ISA EISA slots. Thanks. > > Arnd --=20 - Jiaxun