Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp886410iob; Wed, 4 May 2022 09:57:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG6YhOvrQE7+4BKe6p7A0hnXuXCEz6hCIRRlZTjfJW/RYhNR2zozw+P2Je3bP6506hx61x X-Received: by 2002:a17:90b:3b4c:b0:1dc:7edf:c92f with SMTP id ot12-20020a17090b3b4c00b001dc7edfc92fmr430839pjb.91.1651683427947; Wed, 04 May 2022 09:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651683427; cv=none; d=google.com; s=arc-20160816; b=ZtlAc0ctB39qJPHTSjNqFBPKDqi4zIUMX0QKEApMDZFxhTYsJANetOdd6caulIe/SD gN4mE0LW0cMldMJsuHteQeXWcLJZ54gToTuxxZkpK3kDMVOERIPPvT757RX+Hkl3Sy0b qnzGvqWOE8P5WStpG5NUJHi0J2ytkqBOt3gOdADzfQ3KdvuP6X6cg3w5RAOd4ITBq4db 6jajADxxY+GIEQ617P3ceIDBYWShR2yTq2Mx/+U+9UhsD34TF9r4zl61AWfZh0SV8WK9 6EEpKFXpHnrVZ7iVdmfA7CB153OMG21jl9ASOSGZOV+EJt2CMvhA04CZ9u/YuqEU8CFn xdPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=byoURZvtWvncZIeb9aZr4V2zqyENXJhmbcLDk2nGc6w=; b=Vicg753OC4dhIXr3vjCa0yDd6ed+XRtIgHfssD7f2fCyLGxc/fpvIM9GaOWo2trPuA ruik5ELkVkj6kI/+3sUd8eRlnOIvUBjDKVjuAWjU6QGtYOpZj74ynIvYvPGrtGtIRz+m wDBE/2iDZYZHQk7qYRovSmGZMcQs3mLK63GXtOgnLRHGQE/qdxivmCUDuuKnlwMAv2md 7MWtYrmkn98nlan6S0j0k8nblaSVkSb8QDKx2U+cWUmlIFTovvwp/R5jVgvZ7TItKf2Y GW60FHfNk2LfOan1O7x/bnAQfXxbgplwPRNKP70M7wQZs2pzkwRfzaVPLOzlNu5rFJtH I+tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x127-20020a633185000000b003c18351c4c1si19333037pgx.673.2022.05.04.09.56.52; Wed, 04 May 2022 09:57:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351300AbiEDO22 (ORCPT + 99 others); Wed, 4 May 2022 10:28:28 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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