Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp443502rwi; Mon, 10 Oct 2022 02:39:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/8m+BhenXlLq6tsJyxAONS3p/8pPhkG09yfYwX78rp8UPl5bFniZM7/r2rbQGy+KWXUv4 X-Received: by 2002:aa7:c642:0:b0:458:e065:105b with SMTP id z2-20020aa7c642000000b00458e065105bmr17069700edr.354.1665394775076; Mon, 10 Oct 2022 02:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665394775; cv=none; d=google.com; s=arc-20160816; b=xgTTa/n1NrGJZCXPBKD+WVVU8TWbEkjolFFX8HPw7mhhIntdmMmysodBcQ9oYw60RL cPzO1Gjosgzr0m9l9lr0Toa5gcMYHEQXVG9lcYPt5ha7s+EQWin09G+ro2s4SuJpg9TS NtwSB5K/uPvWPEeZp8NLmYCm54DsvC5d4XZv/tZ0v4TOaB2assQhmfkynJ7YwGLI53PK 0D+2G6Apib7WpVw+pLu/EOh8Ruy2ETT5J2CQ2sz3cgBsUaPwZCM9RzkG6fZj9h64x15f x/kOnYPJrVBWGCXmcxsTmb9uOJIsi1oXbeS0Vj0dcUbUMyWlmNnhgUIey6y/DTe0Q763 Fliw== 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=IH3Uk2GfkbPihU2hvHcjAG3NBNjHwnM0BC6JQtLzRTQ=; b=CRkr9Jx3bAhiDyMlhbXJkU0/9bVYt+Ea1KmJLDyV+6bCMOCKoh7AG/jYxuvPts3OvZ zH3dF7ZcXUrUNXTH3J7ZdYO/oEQO4erktn85C92ac4FtLKJn5L58fkvYfn+T0A6SbVlb y2heXubmM1zsc60vkbAOCWQVjmZvdJYLHaah5mGauiWGlHGfYALLoeKSTpmEiZXiUDE/ W0/0bkAIoxKrh3Xt/X4qdCHP9Zsj41zNgswti4CPvD3yTTM0Icghx1GvwvPxV6vluDvA O5jjWLcIfR/BXlFmxdbgQDgr7pRV9vOpzK/Rx+lrimJ3bV4F0kQbSy9v0wyfUl8RznYn sHQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AzLFfeEk; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di8-20020a170906730800b007882926c01asi10465562ejc.820.2022.10.10.02.39.04; Mon, 10 Oct 2022 02:39:35 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AzLFfeEk; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbiJJI5f (ORCPT + 99 others); Mon, 10 Oct 2022 04:57:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230437AbiJJI5e (ORCPT ); Mon, 10 Oct 2022 04:57:34 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B01D066A53; Mon, 10 Oct 2022 01:57:29 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 88BF6240016; Mon, 10 Oct 2022 08:57:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1665392247; 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=IH3Uk2GfkbPihU2hvHcjAG3NBNjHwnM0BC6JQtLzRTQ=; b=AzLFfeEkvWe2UL5KNHiK+DNUBQisbdzmJr4PdECK/GiU0xv+Br6X2oO5Wab+Ki/Q+x81PB cL+vxSc1W6KyYipGRXPJPbG+styWdreqiui35F9S9B4/DUgTUh1BgZnwqV9H4AYpxAR7LM 0tnP7bahbBlGh8Y/4sjP7mFBxDbxFWwxpPInw74Fr18yco32tYStDXq9wjDxRaYZasgW4a N625sL+9O31dkBow/DNIh5yoMECdTlmpXijOAgBkcPVfxsbY1n5lkRsrvhJJfIaDqa87Dv HAPflFJxyMgMX6sgPbs9o2HbLkcVuXZKrZfQfZNo+GZUIZFvQgwUmbNZbgmtQA== Date: Mon, 10 Oct 2022 10:58:58 +0200 From: =?UTF-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= To: Sonal Santan Cc: Rob Herring , Frank Rowand , Lizhi Hou , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, helgaas@kernel.org, max.zhen@amd.com, larry.liu@amd.com, brian.xu@amd.com, stefano.stabellini@xilinx.com, trix@redhat.com, Thomas Petazzoni , Alexandre Belloni , "Allan.Nielsen@microchip.com" , "Horatiu.Vultur@microchip.com" , "Steen.Hegelund@microchip.com" Subject: Re: [PATCH RFC 0/2] Generate device tree node for pci devices Message-ID: <20221010105858.140a8e98@fixe.home> In-Reply-To: <7f2dc633-23a2-16dc-8a55-0611e2cd6b7c@amd.com> References: <1661809417-11370-1-git-send-email-lizhi.hou@amd.com> <8ea70992-d4e9-8bbd-0fca-d5700f84e071@amd.com> <7f2dc633-23a2-16dc-8a55-0611e2cd6b7c@amd.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Le Fri, 7 Oct 2022 15:45:17 -0700, Sonal Santan a =C3=A9crit : > >> Bringing this thread back into focus. Any thoughts on how to move forw= ard? =20 > >=20 > > Reviewers raise concerns/issues and the submitters work to address > > them or explain why they aren't an issue. The submitter has to push > > things forward. That's how the process works. > > =20 Up to now, there does not seems to be a better solution to this problem in term of maintainability, reusability and ease of use. Again, patching the pre-boot description (ACPI or DT) is not an option, the user is entitled to plug the card in whatever PCI slot he wants. This is either probbly not possible and ACPI based system and would require a difficult setup to even try to achieve that. This would also result in two different description to support the same device. > We are working on updating the patch set to address the feedback. The=20 > design is still based on device tree overlay infrastructure. Agreed, moreover saying that "the overlay support is fragile" seems to be a shortcut to do nothing and move all the support outside of the kernel. If buggy, then it would be better to fix this support (if there are real problems encountered with it) or kill it by removing it entirely if not usable (option 1 would of course be preferred). >=20 > > As I noted, much of this is needed on a DT system with PCI device not > > described in DT. So you could split out any ACPI system support to > > avoid that concern for example. Enabling others to exercise these > > patches may help too. Perhaps use QEMU to create some imaginary > > device. =20 > To verify this patch set, in addition to a x86_64/ACPI based system, we=20 > also have an AARCH64/DT QEMU setup where we have attached a physical=20 > Alveo device. We haven't run into any ACPI or DTO issues so far. I've been able to use the same patch set with a X86 QEMU system by attaching my physical PCI card to it. No issues were encountered (although the usage was rather limited). Gaining some users of this support would allow to gather more feedback. >=20 > Perhaps we can introduce this feature in a phased manner where we first=20 > enable DT based platforms and then enable ACPI based platforms? >=20 > -Sonal > >=20 > > Rob =20 --=20 Cl=C3=A9ment L=C3=A9ger, Embedded Linux and Kernel engineer at Bootlin https://bootlin.com