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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16F3EC77B62 for ; Wed, 5 Apr 2023 20:33:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbjDEUdF (ORCPT ); Wed, 5 Apr 2023 16:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232369AbjDEUct (ORCPT ); Wed, 5 Apr 2023 16:32:49 -0400 Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F2CCE; Wed, 5 Apr 2023 13:32:40 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 4BC55582365; Wed, 5 Apr 2023 16:31:58 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 05 Apr 2023 16:31:58 -0400 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:sender :subject:subject:to:to; s=fm2; t=1680726718; x=1680733918; bh=xf daTsCHqQK0cfzJzYIzL0UBOi13djzmqCvgs31u5gk=; b=OkqCZBl+YcgCNi2zCF z+S6GrwBuIl6Ybb/60B7UTSZ+Pdl6SMPl6F3mCMD/ygiBAoVDmjO6iZbgG+BvZqP FJp56qultp3KLcNVD7I6T6SbFuumt9wmECk/dUaR17cR4GQpGkoEBAh2WI/LHnEs tRtdYFHZ4NMBoWYMYmvFaMBg7GD3x5xpvmK3U0V/x0pOHxJc4bkLKjN7Y9aXdD4b 9PZZEqgvLzpxA8clvAMppQKJpGlzRCmqOnerwJkqZ521LgD/e9+I0pKOZ+X47cEr IOwPqu0LneXOw6vgvQli/4q9wkrwsFQF822kZhouO9JGBEdW9sOjWe1N5IPSWW04 51GA== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680726718; x=1680733918; bh=xfdaTsCHqQK0c fzJzYIzL0UBOi13djzmqCvgs31u5gk=; b=geihRaK61byXChNC3DahtZt2Xv2RS FFhZDdc0yLbZ9E+bnHVb+fFtY2FiPoHzIXRVzoG5Dii4ZbiRMdAbmcY/lNFU52Qd X40CSDb7sDMsJLMccoAsBE7gT+JLUNJkKBgExf5hT5ogC7MAhwtFw/0ef0okhqgb 236ZS33ng4gzR+Q2VbQcqRhD+wXY0PdL/qaZGmr1CwMhA58qBzKhc1/EzCQUfHpJ 8bH8S4rUoDN1iFVaohbfwhHbejxPHSnwexuqKa4wzcZ25fDcaUzCN8iD66iaRY7C fwRTIL8hs7/xBJLA4QnHM5GOh/xqucxyyEN8EbDhNy0n3ocmjgTGCbRrQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejuddgudehvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C4228B60089; Wed, 5 Apr 2023 16:31:56 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-334-g8c072af647-fm-20230330.001-g8c072af6 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230323163354.1454196-1-schnelle@linux.ibm.com> <248a41a536d5a3c9e81e8e865b34c5bf74cd36d4.camel@linux.ibm.com> Date: Wed, 05 Apr 2023 22:31:33 +0200 From: "Arnd Bergmann" To: "H. Peter Anvin" , "Niklas Schnelle" , "Richard Henderson" , "Ivan Kokshaysky" , "Matt Turner" , "Russell King" , "Catalin Marinas" , "Will Deacon" , "Huacai Chen" , "WANG Xuerui" , "Geert Uytterhoeven" , "Michal Simek" , "Thomas Bogendoerfer" , "James E . J . Bottomley" , "Helge Deller" , "Michael Ellerman" , "Nicholas Piggin" , "Christophe Leroy" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Yoshinori Sato" , "Rich Felker" , "John Paul Adrian Glaubitz" , "David S . Miller" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , x86@kernel.org Cc: "Greg Kroah-Hartman" , "Bjorn Helgaas" , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , "Mauro Carvalho Chehab" , "Alan Stern" , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Linux-Arch , linux-pci@vger.kernel.org, "Arnd Bergmann" , "Johannes Berg" , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org Subject: Re: [PATCH v4] Kconfig: introduce HAS_IOPORT option and select it as necessary Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 5, 2023, at 22:00, H. Peter Anvin wrote: > On April 5, 2023 8:12:38 AM PDT, Niklas Schnelle wrote: >>On Thu, 2023-03-23 at 17:33 +0100, Niklas Schnelle wrote: >>> We introduce a new HAS_IOPORT Kconfig option to indicate support for I/O >>> Port access. In a future patch HAS_IOPORT=n will disable compilation of >>> the I/O accessor functions inb()/outb() and friends on architectures >>> which can not meaningfully support legacy I/O spaces such as s390. >>> >> >>Gentle ping. As far as I can tell this hasn't been picked to any tree >>sp far but also hasn't seen complains so I'm wondering if I should send >>a new version of the combined series of this patch plus the added >>HAS_IOPORT dependencies per subsystem or wait until this is picked up. > > You need this on a system supporting not just ISA but also PCI. > > Typically on non-x86 architectures this is simply mapped into a memory window. I'm pretty confident that the list is correct here, as the HAS_IOPORT symbol is enabled exactly for the architectures that have a way to map the I/O space. PCIe generally works fine without I/O space, the only exception are drivers for devices that were around as early PCI. Arnd