Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1740217lqp; Mon, 15 Apr 2024 16:15:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4p9Jmt8MC8yejleJ3yU0IJRV5kpVja5pugPrLuWQh3BdV5/Nv64FaHo0ZDZhlpFfhjKXNuEuTciqdTCDRcXHhgOFVJPbUozJMrSeJ7A== X-Google-Smtp-Source: AGHT+IGRRQTFZ/sXHFBM7qPBclWYoPC+gICK3h8gKcsibkU4p+gsmYwtdytUrqt8AR2EIjslRNGn X-Received: by 2002:a17:90a:cb86:b0:29c:1eb6:7347 with SMTP id a6-20020a17090acb8600b0029c1eb67347mr8859292pju.6.1713222938628; Mon, 15 Apr 2024 16:15:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713222938; cv=pass; d=google.com; s=arc-20160816; b=Au2lYUH//i4oVboqBY511C56C+hyjW1WEEgAbblEy+8oaLYAjtjE6cKCgLfrPXRajB 0sSsIWp53Q2MpRRe93A3y8Nv+LsrnJA7pmRYcaXCYjgzMwaQiDbxBJ4cwOvG5NxBAPQO mxL5ZgJH10LBrnOxRB7N/KNg+ONW6bNQDzfQkcWUcpJHSE6vtquC7o1zpC5CUNMSiBV8 lFfUszu6AmIU+rnvLBcKKJ692wwwM1mDs3Dw3ohnd/wIGHGkYdYfeH453Gwmdcw83sJU qCtav2B1pTDCYgCqs3gGOOONghvyHHUSaCOI8Q7Mk91Sohee2uC7qEyd6gqZmND3KqyX gLFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=wq5go5KW8H7jsVsWHC1tkzm6F2MCC3qhsdmduxp8fZo=; fh=WrETNwrS7PSeOVIBcQDiJaJS6hNJf/pvqmSRaoix+Lk=; b=BGHjSWnmNv2yf95CZbbj4qxW5dJ9a6SQEeRiJawPUXr+h1lAbaV1XH+im6aPm6GXEb XH/pxu19bz9sq3WfEv4vumchDLO30ldmAbJsRhw6z282hyc4xgcunui05rhDBrq7x2Jx bWnYF3dZX6RCWU2/6GdNWFjwXQQsjkB23q8SqeFlmBXRUFKd1JQE7anO/Guo/KcH2pHK tvZDkuL/OrX0OX5E7WWVLOR9G9iUd7rb57uEiNA8BG1Eyc36VFlNjYzTsztnpWLjigFk 5zC3C+zk7JpeCeNmHont8srvpuSASp0hvYE1Ew0hheH5vD9XZ/We/fbqTXco6zDz3frg ncyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p6cKqEvB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b22-20020a63cf56000000b005f3c4e7e7fasi8331075pgj.316.2024.04.15.16.15.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 16:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p6cKqEvB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-145996-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145996-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 600ABB21921 for ; Mon, 15 Apr 2024 23:15:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57C57158DB5; Mon, 15 Apr 2024 23:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p6cKqEvB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AF8737163; Mon, 15 Apr 2024 23:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713222925; cv=none; b=UfX0OSeIjTcqEaNZOfgbd4sCCKL5StHA8L08ka7jQ8fvAA17s+O03B5bRPGmLY8XOQTZNi8vpKqnkt4lHCf1iv7zfvnyGF1hcnJcnbRQTdZLN/qmUAE/xMrvzslxEPT/XFi2dYT9UTHmEyCAwocsOURyqBdgjMsr4ELaRwyzgGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713222925; c=relaxed/simple; bh=g/+U37u84szEx/7PZiBV5MUYHjoIlyB1hUCoTjwWbPc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=bdhEaDAzUPlwtmYM7ffnJ5WN6nYxFdOPolWvFUIofhjsO7BNL3wVmHVDT0WWs0q0/iRRkknkXqIu2DKcCjHusVnaQkybMlX1Q2rdgaeA3EdpKm6w5KrB2qOE405NN8NP8u4ArJBRl5L+Jp5szAjxWG8/d63WJ58fyavjr7e2GOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p6cKqEvB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A82CBC2BD11; Mon, 15 Apr 2024 23:15:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713222925; bh=g/+U37u84szEx/7PZiBV5MUYHjoIlyB1hUCoTjwWbPc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=p6cKqEvBtdkXDLHMpexoT3q0o5wpBwL9yufwCM7y/K2OWhX2p2yO3SS+pIOOvJ/0k EvKTPpKgOKs9JyFFQRwOISlc2zpXCHMASoRpHNE/emJQ8/VP1tnNa0LFcsYkIx2fgD 6/E4Fn3eTDMJV0SUn6lH0nKjASXmhSRhzypyfYT4KWtG2sDrSSMPvtzsYgY1DZ0Cdd n3LYvKqv+KqegGjjdXIzmv+j2R1WQb7OaMnJsAqCw6b8ZB4A8MIiILf8SChFHHLshL lO9o/ffpYt21j+Joczzy/+1atdVBrrpFojYeTfDkFOJ4LPX/EyqA1dA8mI9PYnyl2g 2wPeEU90TsBpw== Date: Mon, 15 Apr 2024 18:15:23 -0500 From: Bjorn Helgaas To: Sunil V L Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, acpica-devel@lists.linux.dev, Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Robert Moore , Haibo1 Xu , Conor Dooley , Andrew Jones , Atish Kumar Patra , Andrei Warkentin , Marc Zyngier , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= Subject: Re: [RFC PATCH v4 03/20] PCI: Make pci_create_root_bus() declare its reliance on MSI domains Message-ID: <20240415231523.GA139682@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240415170113.662318-4-sunilvl@ventanamicro.com> On Mon, Apr 15, 2024 at 10:30:56PM +0530, Sunil V L wrote: > Similar to commit 9ec37efb8783 ("PCI/MSI: Make > pci_host_common_probe() declare its reliance on MSI domains"), declare > this dependency for PCI probe in ACPI based flow. > > This is required especially for RISC-V platforms where MSI controller > can be absent. However, setting this for all architectures seem to cause > issues on non RISC-V architectures [1]. Hence, enabled this only for > RISC-V. > > [1] - https://lore.kernel.org/oe-lkp/202403041047.791cb18e-oliver.sang@intel.com > > Signed-off-by: Sunil V L > --- > drivers/pci/probe.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c > index 1325fbae2f28..e09915bee2ee 100644 > --- a/drivers/pci/probe.c > +++ b/drivers/pci/probe.c > @@ -3048,6 +3048,9 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus, > bridge->sysdata = sysdata; > bridge->busnr = bus; > bridge->ops = ops; > +#ifdef CONFIG_RISCV > + bridge->msi_domain = true; > +#endif Ugh. I looked at [1], but that's not a very good justification for this #ifdef. The fault mentioned in [1] would need to be fixed, but not this way. > error = pci_register_host_bridge(bridge); > if (error < 0) > -- > 2.40.1 >