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: 181156 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2109944dyi; Tue, 19 Dec 2023 09:48:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHDOTFjhBpjeNVV4pkMiwRyCNmBVDIvdIVQGLVdq7hgxm80xAXj9YwcJSIOUL9hLj5G2QNk X-Received: by 2002:a17:902:eb91:b0:1d3:c3f0:463a with SMTP id q17-20020a170902eb9100b001d3c3f0463amr3758958plg.137.1703008104732; Tue, 19 Dec 2023 09:48:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703008104; cv=none; d=google.com; s=arc-20160816; b=hhLhEhQiNIJw083WXVa6xdKctb2fNkwTo9Ae55MH/kZ0yVJzKMUXidWt7BkYuOAKeI YZqV40ZbETVRMZmw6IlL2sAE04R+1Ra6FuSvIujx6oT86PmibgWV/Ywr6U1RZuEJ8wAH bmIOE+rDYQIkaeIyZEVQZJgYge/9tgEy/djVUYZGBqSUVgnkR0ivOm/aKqgnJTEKokga 9sHI8J37kbCwtteD0xk3f+fdsovu3niLL2lzJkYHVm0W0JWvDhGlYcn0fsZgH05m/fmw KJUwEP5eBz6frpWiZYVmkQXgvyisIRa8Q3smgQu0vhMa+GXcnuyZcYVSETgHtjWKSuoQ xIXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BmjC4RdyrxsTphcSUlyn0FA/9YESGtMGM8wLh/XfFs8=; fh=G3MkS2cP7FkeH+7kxy0LRzNpJgfwnUWZciURRBohxGI=; b=sWgtK8BSncWwOggsocM2YF6BwC58pQH25ku5OGEdcsKg/bY6uDO8BKfPLf8XtH61HP UQOTKxYERuR30+1F2Z4pWe0FIUY7O95IcO3kkxXrRZBS2J+7s/0+65uMXmgrgsuGw5Tt aOfSpZoJAk4wHF2h/SwJPOFfAvs75bejUFEkFxWq2dR58vYFoBkk9fa2xIt5UOqBSbgn YxaaM2vfd6I4QR/938+SQP48zgcYif9gHYHKEvv9MfedecIkisSY7GnWkYY1R87+EGaT fTZrgkDfrSsOJru6azGlx300atOlpeCdDQykHcyxfsAy6HJyJPIIf9/x1WV6d22UceEE BXPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=VYk5jQLL; spf=pass (google.com: domain of linux-kernel+bounces-5715-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5715-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a5-20020a62d405000000b006d944e5fb34si12047pfh.265.2023.12.19.09.48.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:48:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5715-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=VYk5jQLL; spf=pass (google.com: domain of linux-kernel+bounces-5715-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5715-ouuuleilei=gmail.com@vger.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 4547DB234BE for ; Tue, 19 Dec 2023 17:47:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B548C38DF9; Tue, 19 Dec 2023 17:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="VYk5jQLL" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD9ED381CA for ; Tue, 19 Dec 2023 17:45:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d3d0faf262so14927965ad.3 for ; Tue, 19 Dec 2023 09:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1703007952; x=1703612752; darn=vger.kernel.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=VYk5jQLLM4AbCuQyveyo78khOaNC9MRdSg+6Dx5b9GxOcudFQ7e7UJJJaklvbLhJnY bY3e0algfYGfVnuOZzN6+rEPV3BJ2dMv4ITFO/bMo259fRd4gvzv2evbiomE3p+VL0mi qkS5wrT0bn44s7/FLO5cQ3NkS43mVdlsW5aO62DAyjN/tI/bnl0uBiSiGjC19PR4cHyS QPQYwzYHxESdkXgQb4APPQ1zW/RFmjylwuF4IAwghlOoYX9MSFCxnjhNAp0UMo6ICWe/ vqzJZBAh6R5RGgQA7HW5CG9B5IS8SM6UjtYz6NyMcIzTUpxdcgmPKkr06SiKeM/OKO9m wG+w== 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=kVgWFgVZt5rz0oPSqvxlvy8rpzWNFgp+cqgAd2TWdAv81Tq5GF/gT6VtEmKlphPORI 7Vcb3AbDjxUrBYMDj8R/HMsEM3CBWzUL05aXAFjqTegvvMYJvLg6fE5E/P728wpGcacy gVhtlxtL8IzJjKLoMbJZIvD3et0xo8gVbKRuFpgSU971eG/b4Zv5UdcirvIaKmO8Tod9 VedjShpsAi/ypT/WF7zgP1DJT4y4CJ4lW+Tvvc8yd2OK/q+1XWAAV23l80heSyMVL1Is asc/F+4H1u577JTOqu60rNOYi+6TAsOzjNRtFGHKdrT0kKXAKWuKPBQNJx2/WcU57n/c sZyg== X-Gm-Message-State: AOJu0YyrRi1F5FnwCqsV7QJzbM2NsWJ369TtxTnpazsDO4vJaQUF/vYT 4iNttgRmmSFHC9rv6oHevt7SuA== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785733426196751862 X-GMAIL-MSGID: 1785733426196751862 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)