Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1049084imi; Fri, 22 Jul 2022 16:05:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uXXF+JZRvvVyLVLh2S5yuDTolrI1JNED6UuAD6HwHQNrGc5TJAq6EN3v7euC9hYoMeHrh1 X-Received: by 2002:a17:907:a067:b0:72b:8f93:dff with SMTP id ia7-20020a170907a06700b0072b8f930dffmr1652326ejc.238.1658531133788; Fri, 22 Jul 2022 16:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658531133; cv=none; d=google.com; s=arc-20160816; b=Kr3VK/MZVMkrLwAPGNDr1VrdUcyoipySKuwFhrxRJMKn5Q4FtArNLOgvWAuAwY7CYW 4w3Y92kQQDYIv4QaQAalKnyyuQUfx5zeK63pK5z3wSsy4/UJrm3Cme3/PS68cfNqF2RS rW7UH5APZHRyzYm/Yptpc41Fxokm2wEP56O6aCv5o0ofZereFZH8LsIT4nIqBZgB5hE4 1Yppy0tD4FkzxOSOpjhwXKLygFrWXLX6EMaeI+rC5dD4IWDqkzslcT4Pp4IgDKDsWqIX 9BCAgtE5JiIMVgDkWOsXCAELkFkebtDTiyQwcBcUab5qTqMuG0Z4+8X1Te1BW1fqhsRd myhQ== 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=593oUIO7n6VcqjhtWelUG9RjOOPBlW6UK9ZOqk5cYu0=; b=ktFePvQ9jgatp/J/1g3N+qgyCIXC5uwhVQLOrKtRUzHqg/UnwQwVd2z/OXXdy5cKyv J+EVW/UIvM6+pbFLpMZncNAP/sI6dndl3itFt1EKJ2dtcz6sp2f9Cr31JN1at1DQit29 0sjNiUHkq0tWPjkvcSmJYAzLl6MdDX71i3fvNlTkM9+eV9mdqK33VfoSgHLqerf/tti3 wSDx0eEgJf5OsugMYbO6XDkyjL1o+NDVWfyaGOL/vw5IxDTZr5NfVveNu2FJozHg3TBe l4PaJgA+5epkO0hr9KXDuEkHFjkTBJRCbIfzcFNhpCZpvsE/TFnqZ+c+GoVrxyVENZG+ BVwg== 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 o11-20020a056402038b00b0043bbb2e5d3fsi3923222edv.343.2022.07.22.16.05.08; Fri, 22 Jul 2022 16:05:33 -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 S236913AbiGVWmR (ORCPT + 99 others); Fri, 22 Jul 2022 18:42:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236916AbiGVWmE (ORCPT ); Fri, 22 Jul 2022 18:42:04 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5EC3713E2E; Fri, 22 Jul 2022 15:41:55 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 5D6F792009C; Sat, 23 Jul 2022 00:41:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 598B392009B; Fri, 22 Jul 2022 23:41:54 +0100 (BST) Date: Fri, 22 Jul 2022 23:41:54 +0100 (BST) From: "Maciej W. Rozycki" To: Rob Herring cc: Arnd Bergmann , Palmer Dabbelt , Bjorn Helgaas , Stafford Horne , "linux-kernel@vger.kernel.org" , Catalin Marinas , Will Deacon , Guo Ren , Paul Walmsley , Albert Ou , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-arm-kernel , linux-csky@vger.kernel.org, linux-riscv , linux-um , PCI , "open list:GENERIC INCLUDE/ASM HEADER FILES" Subject: Re: [PATCH v3 2/2] asm-generic: Add new pci.h and use it In-Reply-To: Message-ID: References: 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 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 Fri, 22 Jul 2022, Rob Herring wrote: > P.S. I really wish I/O space would disappear completely. Some systems make it happen already, such as the POWER9 platform and its PHB4 host bridge (which doesn't handle PCIe TLP I/O read or write commands at all), however some PCI/e devices do require I/O space, such as IEEE 1284 parallel port adapters. Some PCI devices dating back as far as to 1990s provide dual mapping of their resources via an I/O and a memory BAR both at a time, so we can choose which to use depending on circumstances. FWIW, Maciej