Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1032197imi; Fri, 22 Jul 2022 15:35:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sTF9NfmJkV0A+foTD8Np/Gkkun48uRUWOcm4shfo1BZPWk3mUibKyT0kpMjuthzQLUHIJm X-Received: by 2002:a05:6402:190b:b0:43a:c95d:ec93 with SMTP id e11-20020a056402190b00b0043ac95dec93mr1872919edz.44.1658529337951; Fri, 22 Jul 2022 15:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658529337; cv=none; d=google.com; s=arc-20160816; b=Efl30DNTWB8ovzH/n10VpfKwYwP+TO7N9kDdVR4YufCNFuaLvDsB8yrJaRQKTbtT8K a5KmpKHxrff2f+DMiOqiKeTe3gGI2SF69E7DPTezjBsIjEHIerlHMRR1XJKyxh50XFzH T5Josj5LXjFpZgOEq/nBAFzW6WkB9be/7XfrGkLoDOP1x9zCUAtFfl93JTipvehcOmPM oWgqGe7THKWEzToFhS1dtd+CYcFT7AkF7P2hxIpzz0JPZHQMW7PHIWJk8haZqFF8p2Ld gnnhVlPCFlyR912ZdT/xbywzfPew+87MUxEi012wmMpJ6//fmnq0K2XAkgHTP1MdYb59 KWrg== 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=b57uQss0hMcnnqQAtRxNt2fIy0OptltIKYV/lJQ6Ons=; b=ojO0Q0HNbztmVdmVNIE7uflFDZBsxm6+PUgBZsHzoKszJel3gqiicSbiJkHpWVneHz /0FYU+zGQ5dpbl3Lv0zd/84xrPUE79blixUXZ/4Ei5RAs3qXscgXhVxLrjncxPIqigXl 28HyBModMMW5BHlSONU2+RsFNi1YrRebah9ypzm7RJDIHPQk5hzYheDyO8+4UUbE2vPO s2lQGlBua2XTc7NaEsXuEyHm871nNYlRJTBpAmks0bWd8KnXkSmYtgk3xpvvO2OyXPyp eN7biXZsrmAWGBic537B16aCF6MDyZJ+pet+WLPZWKmRJ4bJtCZjJlmTZDcSOdoH079w 5RfA== 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 e13-20020a056402190d00b0043a492a4a11si8481901edz.426.2022.07.22.15.35.10; Fri, 22 Jul 2022 15:35:37 -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 S236820AbiGVW2J (ORCPT + 99 others); Fri, 22 Jul 2022 18:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234255AbiGVW2I (ORCPT ); Fri, 22 Jul 2022 18:28:08 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 26D109362E; Fri, 22 Jul 2022 15:28:07 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 0E55392009D; Sat, 23 Jul 2022 00:28:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 0992892009C; Fri, 22 Jul 2022 23:28:06 +0100 (BST) Date: Fri, 22 Jul 2022 23:28:05 +0100 (BST) From: "Maciej W. Rozycki" To: Rob Herring cc: Palmer Dabbelt , Bjorn Helgaas , Stafford Horne , "linux-kernel@vger.kernel.org" , Arnd Bergmann , 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@lists.infradead.org, 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: > > > So again, how does one get a 0 address handed out when that's not even > > > a valid region according to DT? Is there some legacy stuff that > > > ignores the bridge windows? > > > > It doesn't matter as just sets it as a generic parameter for > > the platform, reflecting the limitation of PCI core, which in the course > > of the discussion referred was found rather infeasible to remove. The > > FU740 does not decode to PCI at 0, but another RISC-V device could. And I > > think that DT should faithfully describe hardware and not our software > > limitations. > > Let me ask this another way. When would a 0 memory or i/o address ever > work? It doesn't seem this s/w limitation has anything specific to > Risc-V. Given pci_iomap_range() rejects 0, I can't see how it could > ever work. Maybe only for legacy ISA? So should the generic defaults > just be what Risc-V is using instead of 0? Absolutely, cf.: . Maciej