Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6088854rdb; Mon, 18 Sep 2023 04:03:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFN2BrBEHmY4M7Uk/rI2BlB3J05/kXQuiv7H/mLI27d9BN9zPQydn+IlpE4ztGM2mMW7prn X-Received: by 2002:a17:902:ab5d:b0:1c3:8679:6ed4 with SMTP id ij29-20020a170902ab5d00b001c386796ed4mr8066475plb.8.1695034985911; Mon, 18 Sep 2023 04:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695034985; cv=none; d=google.com; s=arc-20160816; b=o1m+BbnnhWeiS2/f3ivn2wNpPnoSeiidcrMAaiSdi0o9aTeK3OlPKdJLDMtuQferDT Jm6X2I1kH0msv8/wBEql7OZL/+Qx+gatnWVtlxAlta9a64qqWYjVac+zS4LBwIbD0c/e Z/gE4+mu2IQESdwReH/GwQ8dIgh0hvyvUH1tA22DMpNxgu6NRoPVXitozr7q2i8nbp2S +JfNZafqFR7FKw8/xi1lR1IA/Tauvk9B5fb2zhmoxOHQiEij4S/83jsIiZeVu8MGHDTF Vrz6gJ4409F3KacX0ieDmZpJOPIKKC0dVomDoLbH+Fd7TXX/CH/JMZf4D+UwJwXnVKd3 2TxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Pf2MO0f4sQ9Q2mBQVlT7sgyRQLy6uHDvwNdr63HNgiA=; fh=AiXQ4MWcAadvXKHdOkhxz4WujoyPlSdwptH50Ob7Mo4=; b=I1+rI+0LOzTs2nKoDODRpJ/tMWFIoOgmQZ2D77S5RVTh7vp8TBXTFRjuoBJEe1MX3b ba+HojQzq2RSzxF5JW88hIM+CpSvS2xck0TJulRaIjTrF7fXLL6uVYYwyZQfF0XOARfu CMk5yvnvn0DiMmkltr+bVCGEq7XEAH4A5sOElSf9DUcvwEQYgR3bV6f5MpOpnrjltEpW E+y0R80f21r9H+gHV5SnTIY86l5JfXj2qQrOVstQIYx78G5Q3tf50YVCAtSg5F+FY+Qe wZCUuAFfSBR3sjxvDdAwTc2iN4nOufbBBT32CUKbJWxcS5DRhv+G5wzSUW/GxI5cmKgh nAzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y8-20020a17090322c800b001bf2437b876si6222012plg.305.2023.09.18.04.03.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 04:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4977980930F7; Mon, 18 Sep 2023 03:55:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231944AbjIRKzH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Sep 2023 06:55:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234888AbjIRKyq (ORCPT ); Mon, 18 Sep 2023 06:54:46 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B88EB115; Mon, 18 Sep 2023 03:54:13 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Rq1ks3Z2Qz6J7Db; Mon, 18 Sep 2023 18:49:25 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 18 Sep 2023 11:54:11 +0100 Date: Mon, 18 Sep 2023 11:54:10 +0100 From: Jonathan Cameron To: Andy Shevchenko CC: Herve Codina , Rob Herring , Lizhi Hou , Andrew Lunn , , , , , , Subject: Re: [PATCH V13 0/5] Generate device tree node for pci devices Message-ID: <20230918115410.00007421@Huawei.com> In-Reply-To: References: <1692120000-46900-1-git-send-email-lizhi.hou@amd.com> <20230915193008.6d87b8a0@bootlin.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml100004.china.huawei.com (7.191.162.219) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 03:55:35 -0700 (PDT) On Mon, 18 Sep 2023 10:17:26 +0300 Andy Shevchenko wrote: > On Fri, Sep 15, 2023 at 07:30:08PM +0200, Herve Codina wrote: > > On Wed, 13 Sep 2023 14:17:30 +0300 > > Andy Shevchenko wrote: > > > On Tue, Sep 12, 2023 at 02:12:04PM -0500, Rob Herring wrote: > > > > On Mon, Sep 11, 2023 at 3:37 PM Andy Shevchenko > > > > wrote: > > > > > On Tue, Aug 15, 2023 at 10:19:55AM -0700, Lizhi Hou wrote: > > ... > > > > > > Can you point out to the ACPI excerpt(s) of the description of anything related > > > > > to the device(s) in question? > > > > > > > > I don't understand what you are asking for. > > > > > > Through the email thread it was mentioned that this series was tested on the > > > ACPI enabled platform, Jonathan (IIRC) asked why do we need to have a shadow > > > DT for the something that ACPI already describes. That's why I'm trying to > > > understand if it's the case. and if so, how can we improve the approach. > > > > Patches from Frank Rowand series [1] are needed to create an of_root_node if a DT > > was not provided by the firmware, bootloader, etc that run the kernel. > > > > [1]: https://lore.kernel.org/lkml/20220624034327.2542112-1-frowand.list@gmail.com/ > > > > Current Lizhi's series creates nodes from the PCI host node during the PCI > > enumeration. It creates PCI-PCI bridge and PCI device nodes. > > > > I use these series on an ACPI system. > > > > I need one more missing component: the node related to the PCI host bridge > > This was the purpose of Clement's work. This work was not sent upstream yet and I > > am working on it in order to have a full tree from the of_root to the PCI device > > ie: > > of_root <-- Frank Rowand series > > + of_host_pci_bridge <-- Clement's work > > + pci_bridge <-- Current Lizhi series > > + pci_bridge <-- Current Lizhi series > > ... > > + pci_dev <-- Current Lizhi series > > > > Hope that this status helped. > > Thanks for the explanation! I suppose it's better to have three series combined > into one and being sent with a better cover letter to explain all this. Also it > might make sense (in my opinion) to Cc Jonathan (I did it here). Sorry, Jonathan, > if you are not wanting this. > I'm lurking anyway via linux-pci :) Indeed very interested in this. I'm carrying a local copy of Clement's series but more than happy if Herve gets that bit ready for upstream. I think we are still some way from this all working for a non trivial PCI card on an ACPI system though. Maybe I'm wrong and the rest will turn out to be easy! Jonathan