Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2348244rdb; Thu, 21 Sep 2023 16:28:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWrW+gIltSL04ToEq8HgjiAaKW9EMZGFWn/KQz7PgKtWDItvEAS1PLs965xEXh4XL2yXDz X-Received: by 2002:a05:6808:1512:b0:3ad:f535:7e9a with SMTP id u18-20020a056808151200b003adf5357e9amr6330827oiw.5.1695338937374; Thu, 21 Sep 2023 16:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695338937; cv=none; d=google.com; s=arc-20160816; b=OXiNKMgeGNqJHJLWGuJ+cm+3dKGa0yCNtu3s49qpLRVupmdGln0CgT5kUZIalQ0SJt Vv4Fx2UwxFEZIMI8aOknwcoUEKcp/7uvSC7qL9fjySSaBTRd8TrDADZhGuD0UTp8PtA+ 3PZPWA5Dg6lZMTgzLOl+vEcacDjZ/2ETpMscoSFxAhofm/vjqYufEg31OZHzxzvtKyRv ZJzD4pQ+1rzvhw9yZk36+QNE3msqSyr0JnMDotpwBDfPWiXeu4kosOslvfk0zwb96zNf 9K0wh5G90BKWHeQjziqOp+jpGkXQkk6e0XsbXaQUsvMWgQ9E2ONyfj6nAPYHYMIzfn33 8MwA== 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:dkim-signature; bh=Kj1DdUWkzlgEljhadlQHHpn2eO93iRvKozJKFFaqhJ8=; fh=xmNagnEJSsNjYv0jF+OE/N9afZJWbPcxWmymJYX8/Yw=; b=UM7lBJv+sHaYEElmtT+S8b4Hz9FdzZ4auTYkY9mkG3E4ulSJWOrMU9Fa92cv8gIRlI VvZDIklg3805HnO8Lrvlf2vAnJkaSRwDxBzJ1pzaKNSo0Sdefu5mzjPvP6y6f+O6fLkm s87/hl6g5CYW6U4nD7LYk8w28WqqgURXJlrac+M96ESLeWtiH1B11pJFu0MVzy3tQG6j 3vDjO6SxHRl7hbNouEUdY5G4bX/k4ZLnaXuJs8vJo7rghDArZE15dH6gLfD9+LLXOHg9 NyDE8paZRwFXA6wESnLdwP7C3kJS7vYAMk8ymNjMWeVZe8FG6UR2ad/u5e3TRAJ4d+4R 9MNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="k/IBP72I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cg10-20020a056a00290a00b00690f8063627si2469677pfb.38.2023.09.21.16.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 16:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="k/IBP72I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 287ED801CFEF; Thu, 21 Sep 2023 11:13:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230351AbjIUSMH (ORCPT + 99 others); Thu, 21 Sep 2023 14:12:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbjIUSLQ (ORCPT ); Thu, 21 Sep 2023 14:11:16 -0400 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71B6566F4; Thu, 21 Sep 2023 10:18:11 -0700 (PDT) Received: from relay3-d.mail.gandi.net (unknown [217.70.183.195]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 44DA2D2A89; Thu, 21 Sep 2023 13:27:08 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 19EC960004; Thu, 21 Sep 2023 13:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695302806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kj1DdUWkzlgEljhadlQHHpn2eO93iRvKozJKFFaqhJ8=; b=k/IBP72ImwLm+awCTGPrjbS+9xPBl/wQE7MrB0pTrwtdaHL0T3h2bgW/tfGWDJX5/FaUzZ ucasGuuEi2qGwTfUXODyhmvGuZPGLxrMiktcTXKLnxyAJb115p2g+RnZ1p2Vn0//jG0AP2 VJZe3/2LTYjSwv08HPPS7EMm9C910Pm/W8pf/u/tiDR0S6ZRADeJOlRaVqOEFhm4Uixu4U NPSruaQ85lvz9znzHKhRpWXFd0aglRj3mpJvbUIxEFvBt3LuimSgHl1XHedffeFwluZjEz +v8DwwjSLp26HyR7BGLIzfnGQnkleztC4200qm3Ds7BDgzel0IWUcvAQKLXPmA== Date: Thu, 21 Sep 2023 15:26:43 +0200 From: Herve Codina To: Rob Herring Cc: Andy Shevchenko , Jonathan Cameron , Lizhi Hou , Andrew Lunn , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, max.zhen@amd.com, sonal.santan@amd.com, stefano.stabellini@xilinx.com, Thomas Petazzoni Subject: Re: [PATCH V13 0/5] Generate device tree node for pci devices Message-ID: <20230921152611.19e07907@bootlin.com> In-Reply-To: References: <1692120000-46900-1-git-send-email-lizhi.hou@amd.com> <20230915193008.6d87b8a0@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:13:16 -0700 (PDT) On Thu, 21 Sep 2023 07:20:46 -0500 Rob Herring wrote: > On Mon, Sep 18, 2023 at 2:17 AM 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. > > You can go back (years now) and see that. I asked for this to be split > up into manageable chunks and not solve multiple problems at once. No > point in trying to do DT on top of ACPI if DT on top of DT doesn't > work first. I agree. Hervé > > Rob -- Hervé Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com