From patchwork Tue Dec 19 17:45:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 13498717 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 DCF67C41535 for ; Tue, 19 Dec 2023 17:46:29 +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=JbJI8r6GrfcjQrXgIF/p11bxNW24AWqQp224KNQLm/M=; b=OXYNJhjsVlmIjL MfmTLfds/WEavVv6OIpMPHkMygn4VpxPPbuqIMfaGFi4EL/RvSBSIT9CU9DXhL3A1KmL75lwnTJYl o8wjJ4NaA3TxPxlt2AOxyeRwD9so8uH2iboSGLug6/ELN6fBlAT3YBNNF4qLKUNNxat957zmKj6yF 7t7lp/MWABXPh+kGcpZYtQ7IHl3ZpE+pNtY9FUrBd0npcuh7rrvj1Tj0gA4YefwkexiZKoLSSmzG9 LJZzEDA7Nr8Fm0pSJkXxO9CGKzgf5B2OLFKr/n3LeSVh7yS+i/76o+rMLSoefVmgjL57+8j5AnMza x04jyXzcX7+53Kvuh6wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFeAQ-00F0is-2R; Tue, 19 Dec 2023 17:46:06 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFeAJ-00F0fk-2M for linux-arm-kernel@bombadil.infradead.org; Tue, 19 Dec 2023 17:45:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=BmjC4RdyrxsTphcSUlyn0FA/9YESGtMGM8wLh/XfFs8=; b=csgJeXqb1gIddKjmnoFJGn/aNi s3/2olcl6XGjP3IjIJv2/FQaO4p0xjkL+6o03R1iPYBr09eSz/IKE6YYlmYkd2LOHE53OiSK8OXec SZTq7QNuF3qb4tBaTSM8BJYBIIZ1OQxBEnHUUeSD4xklcJvT2Ehi35J2rwA5DYZpQlWFwmzxCC/V5 DncrE6/5kwBbD5LuF8rWiq0FfMgzUjzNpIwIbdx8YbXZdXFlc37eq/ULcGziWnF2j35V80gVlTp+f HF3CcDztfmmlplmO+O7PD8/gtPf/Jza44Y6T5Src3k9yvMYK6SMPIu9xGrjU3nATMj+KJV4uBd8gC qI2Gj1zQ==; Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFeAF-00DXw5-0p for linux-arm-kernel@lists.infradead.org; Tue, 19 Dec 2023 17:45:58 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1d3d0faf262so14928175ad.3 for ; Tue, 19 Dec 2023 09:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1703007952; x=1703612752; 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=BmjC4RdyrxsTphcSUlyn0FA/9YESGtMGM8wLh/XfFs8=; b=oXJpzElgdocsq4cKSIWKDKJOpynKYUA6msSj3xM2pgp74Mnnlx1i7fYDnSJ/z7MauV chfJ467z+CEFtk1eu0OpgWGOmeEB668M0vcUCP6gBHRgyGv0ofObyLCDQCOyA5ACqYyg heRnMqP/5UQaSRuY8PRL4S7sanQ1jyC6hYbjwgkytTK4YdxVKlc5TimnwMPeOXAQiX2b cADzyp5YWL6sf/PCZ0sVEUgQJZ8HGGAR9iS2dwddr47H0M1+shi0goQTP8Lh3q8gIU9e SX4PK3wIDmRWglgNUU7a/O8Kp+rL9htc288M/xEjQvewNtHLRSWL9MEnawZVq+KfLDon GA5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703007952; x=1703612752; 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=BmjC4RdyrxsTphcSUlyn0FA/9YESGtMGM8wLh/XfFs8=; b=MBtDd0QgKivjh0y/hw38IvwtDyFJAN0GGW98+jOmOKMLzbVOW4zp6uOuADKfvY+/2m m+Cv8Fr+nARv2aHxTLUfXG6P0sKRXFODUSpR2qQOaFdYvFhlm6dqDR2jq0XjyvSUl6rT OkwARvY2yq/YyVjGefQezPHNBjuhUFaRmQRvN3IjAkAAP5KzwUtK/sePK0ml7xhJ109Q 6nBuIKjQNcFfAuo+j3iUUmPwWmP3y41m2rY/UkqqqlneRh4XETiHh8uvBYF9OGAkIMiQ s4JHax5Qf5MGX/awOtgzsee/JA8RlYvLjHSvFJgMexWTo/MQ0Qa665o8LBrudiVQa89K gQqg== X-Gm-Message-State: AOJu0YwCx9xfGyB6r1JSmVHj8XegOqVk4ARiKDL/0y6gvxBql9d7BHj4 /xb0uknwHQaJxNL8UJ6M7L+bLm8ViE8XgjY4pis= X-Google-Smtp-Source: AGHT+IGWi2Va1Qi6uqFOhvnkUNZMLVftSlFBeT8Hj5dDFOU/lfjLFJQW6CDFmhglgioUotv/TL88Sg== X-Received: by 2002:a17:903:32c9:b0:1d3:c201:3bbb with SMTP id i9-20020a17090332c900b001d3c2013bbbmr3333704plr.18.1703007952281; Tue, 19 Dec 2023 09:45:52 -0800 (PST) Received: from sunil-pc.Dlink ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id n16-20020a170903111000b001d3320f6143sm14453015plh.269.2023.12.19.09.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:45:51 -0800 (PST) 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 Cc: Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Anup Patel , Thomas Gleixner , Bjorn Helgaas , Haibo Xu , Conor Dooley , Andrew Jones , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , Marc Zyngier , Sunil V L Subject: [RFC PATCH v3 03/17] PCI: Make pci_create_root_bus() declare its reliance on MSI domains Date: Tue, 19 Dec 2023 23:15:12 +0530 Message-Id: <20231219174526.2235150-4-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231219174526.2235150-1-sunilvl@ventanamicro.com> References: <20231219174526.2235150-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231219_174555_414124_B60E4E65 X-CRM114-Status: GOOD ( 10.04 ) 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 [1], declare this dependency for PCI probe in ACPI based flow. This is required especially for RISC-V platforms where MSI controller can be absent. [1] - https://lore.kernel.org/all/20210330151145.997953-12-maz@kernel.org/ Signed-off-by: Sunil V L --- drivers/pci/probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 795534589b98..9e941cf55d87 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -3054,6 +3054,7 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus, bridge->sysdata = sysdata; bridge->busnr = bus; bridge->ops = ops; + bridge->msi_domain = true; error = pci_register_host_bridge(bridge); if (error < 0)