From patchwork Mon Apr 15 17:00:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 13630376 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34F49C4345F for ; Mon, 15 Apr 2024 17:02:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ms27MspqJMUSNuN3Mc5CofbizDrPnomVRe6iOszBijc=; b=VWgPcsybqNcGU/ sic6QcV6pLEEoiY5NIy8ME8IHv3DWtJoXyAkkJiAWoxqNOjKTanlTuBv8w9BI7u6Be5xlkQVfFuAd tlau85rdulKdtebD60TrPxGS6NSyiXnTnrs7v4umRb3GFtfe8YgAKMg0CXfM35W5Jh7BLQiythU4g iLqUOP0YburqzaJXxBieFO1qF4VwEjKS9ar66Hv/pRN/4UxXS8axwxW6trMGCL6MrZAIaIzqruzjH ImQkKKxP3kWJh9FX8j7ZFIQlli68KhXwGFTe/FXdZGu49Vgsqq1VIAWPipKAohGTPPkI40WrpY1XR ueOj3zNbg+6YZ9CPP9Yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwPin-00000009BpQ-3A4e; Mon, 15 Apr 2024 17:02:21 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwPiD-00000009BRc-0LMw for linux-arm-kernel@lists.infradead.org; Mon, 15 Apr 2024 17:01:55 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6ecec796323so3653705b3a.3 for ; Mon, 15 Apr 2024 10:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1713200503; x=1713805303; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VoHprznTatfd3jPIiDLel21Ov4h1fvX4qo25ti25gdk=; b=NkD/6adJbx2WWaW9g0LNJguAANigcw3RghTTUvkhYp2ODNntWwnFTRNv89+1V7elsy HLEFYKn2zidm9CwRndZJUsO8uWN1FVwgWc6fvW0N5GwKon0NmyS/zN5qiKSoN/ImVV52 3ZkC3XnIR2DYUnTCvGF3Ya8F+Vl4Amft6CYNtnhy5EyAAqvym6CREOaTayfuDrKQWinD w1ZsdWcDKM5d/qCCq1FTtd2wJR0xHkn3A/BHDpO1dR5o4y226h9IphcXU1snon8x2F16 mgVwyVgpFALI8dKetjU8IJOXEc/JKPDm7hgafXV7K6X40W+YrYI5hSn2iiQvGSO1R8Dl P4dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713200503; x=1713805303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VoHprznTatfd3jPIiDLel21Ov4h1fvX4qo25ti25gdk=; b=JB4pLDEcqYGDxBsG3r7mG/SHp07VZuwpAEj5hZA2Zc0oMvUoNvDCZgc8WYv3gbHPcT JrNM8Af8GI9SFn/Ii2L+zxpU4R5Q4l4YgzMrECXcOkVp9h1TgfNAQbrtQjTtbiqcr5BJ +PwFsVY+UJ/+oLCdYd5Y4665pwhdXWkS4M4IwoDO3xDcLystQQOI0LRkIIRZqN+ok11v +dKiD07JdkykEEMlGYfKKqWiYp3XJuRD68zz6nRp63F9exk017/gL5SkABU6YbIfsHfp dymd/tRilnH/57T1s0UfWtSvAzULxNRXaHaqWfYms3XecCsWZO/SFMLn99NJMUAvcIqA qaSw== X-Gm-Message-State: AOJu0YzbZC+trxJ7BL3dzx/hLzHoUiDaJZshNMVpKzoyoN3n+cmhru8X lsDnnqMyDhgEsPpskcyoA1HxWpGs53aquRrcqkTFAPYysEGTET1o6140vvFq4rHy1i1RJl24HLd Y+Vs= X-Google-Smtp-Source: AGHT+IEZTBakzY6PKzMTgs/zcMBONEtbNskqJbnRsI44xNlUKHaklyMLmZlZj49QTc7g7/a+/pPcjw== X-Received: by 2002:a05:6a21:3381:b0:1a7:58ca:cdf3 with SMTP id yy1-20020a056a21338100b001a758cacdf3mr14872194pzb.8.1713200503358; Mon, 15 Apr 2024 10:01:43 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.187.230]) by smtp.gmail.com with ESMTPSA id 1-20020a056a00072100b006ed045e3a70sm7433158pfm.25.2024.04.15.10.01.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 10:01:42 -0700 (PDT) From: Sunil V L To: 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 Cc: 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==?= , Sunil V L Subject: [RFC PATCH v4 03/20] PCI: Make pci_create_root_bus() declare its reliance on MSI domains Date: Mon, 15 Apr 2024 22:30:56 +0530 Message-Id: <20240415170113.662318-4-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240415170113.662318-1-sunilvl@ventanamicro.com> References: <20240415170113.662318-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240415_100145_205798_8290B64D X-CRM114-Status: GOOD ( 10.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 error = pci_register_host_bridge(bridge); if (error < 0)