Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp571475pxb; Thu, 25 Feb 2021 09:24:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEGFEsKozlWSnIEJM/c6n7HDyAhwPBIuMvIqO1XCcRP15vt2UG9MUhsJExpo2prCnXjiwL X-Received: by 2002:a17:906:780b:: with SMTP id u11mr3640842ejm.492.1614273897936; Thu, 25 Feb 2021 09:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614273897; cv=none; d=google.com; s=arc-20160816; b=YrKeSMrE6798A14Ih+dXrT7PYyRXJGQoFQ20Ideb6Kt4n/8EGwqfNNXGfePnPojnNi AnEbA1zzbH0o4WkTlmhVCI2Gijo+LZ4IrZ2GbdVwENZMoT8dcWl4NEjUps11ORxqRfq8 8zVDrFdJqhAIJiZbnIvNJ15NOigACuMrh8SLUpLI1xP3ILxd3WDlB1sidVoXPYc75p+v 8gBH9P/wtqkdlQQsOAZf5Vt1bls3ne5F/bt4y1X7YYIr1j35kdqWdvWroihXiWk6c0jI DI2sjIF0Z3ycF1bkvY8ppXrEXXqhBXVQEsnm1iXkfd6H2IE9yFcPhXrfOTg/NghF0tiG j/iQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RLy9ZG/W231HwhxaAABcB3VV7rw9p755/wYCTM4T60o=; b=avIO6vIrwrmyfaAnjOMdd/ye8Po/PJxcG1grqYLIlJyl0sU7dPWxsYdJaZYwHkUDLA YCULBy9RkbiHcDd+2kzymkOZJJEZ2IWEgDg65WCiJtcGpbwhgqQ1stpn68gJxgG8lqHU ieBTAA00pwWvyZC3Su17ibaudJJmajMgVP3fuS9flq3/S3fHL/2kJgLI8wZhGFBkxajD amAUjHEb6QXAig8dD9vs9zuAIJvGjdy/WJusIoM9PxubS5i3f7kkzwM7RvPuhWGDCqCH 5i2OV+tx6wUZ/bOlx/JmwgZLtTFJ4p9c1xCN49zZMDePPMlVMO16vNOEq0JzC1TlT+FV EHdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si3776908eds.150.2021.02.25.09.24.31; Thu, 25 Feb 2021 09:24:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbhBYPZE (ORCPT + 99 others); Thu, 25 Feb 2021 10:25:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:43306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhBYPYX (ORCPT ); Thu, 25 Feb 2021 10:24:23 -0500 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A170664F0C; Thu, 25 Feb 2021 15:23:41 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lFIIH-00Fscv-Po; Thu, 25 Feb 2021 15:11:09 +0000 From: Marc Zyngier To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Frank Wunderlich , Thierry Reding , Thomas Gleixner , Rob Herring , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Thierry Reding , Jonathan Hunter , Ryder Lee , Marek Vasut , Yoshihiro Shimoda , Michal Simek , Paul Walmsley , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 11/13] PCI: Make pci_host_common_probe() declare its reliance on MSI domains Date: Thu, 25 Feb 2021 15:10:21 +0000 Message-Id: <20210225151023.3642391-12-maz@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210225151023.3642391-1-maz@kernel.org> References: <20210225151023.3642391-1-maz@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: lorenzo.pieralisi@arm.com, bhelgaas@google.com, frank-w@public-files.de, treding@nvidia.com, tglx@linutronix.de, robh@kernel.org, will@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, ryder.lee@mediatek.com, marek.vasut+renesas@gmail.com, yoshihiro.shimoda.uh@renesas.com, michal.simek@xilinx.com, paul.walmsley@sifive.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The generic PCI host driver relies on MSI domains for MSIs to be provided to its end-points. Make this dependency explicit. This cures the warnings occuring on arm/arm64 VMs when booted with PCI virtio devices and no MSI controller (no GICv3 ITS, for example). It is likely that other drivers will need to express the same dependency. Signed-off-by: Marc Zyngier --- drivers/pci/controller/pci-host-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/pci-host-common.c b/drivers/pci/controller/pci-host-common.c index 6ce34a1deecb..603f6fbbe68a 100644 --- a/drivers/pci/controller/pci-host-common.c +++ b/drivers/pci/controller/pci-host-common.c @@ -77,6 +77,7 @@ int pci_host_common_probe(struct platform_device *pdev) bridge->sysdata = cfg; bridge->ops = (struct pci_ops *)&ops->pci_ops; + bridge->msi_domain = true; platform_set_drvdata(pdev, bridge); -- 2.29.2