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 82883C433F5 for ; Wed, 4 May 2022 14:24:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351333AbiEDO23 (ORCPT ); Wed, 4 May 2022 10:28:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351298AbiEDO2R (ORCPT ); Wed, 4 May 2022 10:28:17 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D46B2CE39; Wed, 4 May 2022 07:24:41 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id C615B92009C; Wed, 4 May 2022 16:24:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id C2FE592009B; Wed, 4 May 2022 15:24:39 +0100 (BST) Date: Wed, 4 May 2022 15:24:39 +0100 (BST) From: "Maciej W. Rozycki" To: Arnd Bergmann cc: Bjorn Helgaas , Niklas Schnelle , Arnd Bergmann , Greg Kroah-Hartman , Linux Kernel Mailing List , linux-arch , linux-pci , Dominik Brodowski Subject: Re: [RFC v2 25/39] pcmcia: add HAS_IOPORT dependencies In-Reply-To: Message-ID: References: <20220429135108.2781579-44-schnelle@linux.ibm.com> <20220503233802.GA420374@bhelgaas> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 May 2022, Arnd Bergmann wrote: > > POWER9 is another architecture with no port I/O space[1]: > > POWER9 is just an implementation of the power architecture > that has a particular PCI host bridge. I would assume that > arch/powerpc/ would continue to set HAS_IOPORT because > it knows how to access I/O ports at compile-time. Well, yes, except I would expect POWER9_CPU (and any higher versions we eventually get) to clear HAS_IOPORT. Generic configurations (GENERIC_CPU) would set HAS_IOPORT of course, as would any lower architecture variants that do or may support port I/O (it's not clear to me if there are any that do not). Ideally a generic configuration would not issue accesses to random MMIO locations for port I/O accesses via `inb'/`outb', etc. for systems that do not support port I/O (which it now does, or at least used to until recently). Maciej