Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp482277pxb; Thu, 25 Feb 2021 07:29:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzDdcLnoDNJf0ZpYkv2IMcSepbMG9yQi3iMBnfTl+MTkixEY6SQXB8kqL6c7UqggrlaUJM X-Received: by 2002:aa7:d41a:: with SMTP id z26mr3404949edq.359.1614266951337; Thu, 25 Feb 2021 07:29:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614266951; cv=none; d=google.com; s=arc-20160816; b=DSh9FOFrA6QNI+HvhKmbj1DDnGXkDjn9xmWOQv9ZNbhHElBsVagPS258gk9YXjHknx X2eLG6VGD/REnY8vFsbLsJTTp1p0iILw0h0r82839NVbPwwYfN/u7dYx5PiF93PlDtrN SU83EzKf4kYZPaKtsfOT0h1v1uJCC4xurAuLh2mC7yuUNuTpuqy4XKTeetTdwCTFm70P CgDzCy/DxR7qCsu9+WiKejDdNh1Kc38irLpWGafBT1KpyI/vVyYWRdNBd/LLEbuPe58a 3SeblGPUnuZ8Ks1Zumxi3uzFjKcyuZqb6BviEhc/3KISvyuSI0t3HOqrTH/qozkB7n5+ v8Lg== 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=6tDTNcA4MjvF7yAo3MdeCA7/fbVUACx1g0LdSUx+to8=; b=yfHo62OVhVJItcVwc7v/c5xQVzHE8aLJ37SWSx2Vq6fJAoF50HoWqpsaTxsqRvwVLg GVE9DkeaLGmCblFdxO/2fpfia4R4e/lj6FsUVQLkXnCZ9qOjSw8gndEKEOhHttgx4i96 1YVX+AC9aSGKzSADKuy6j3BQ+lqYG8YAJLcg12uLwu2CeBngIVX0+LqNdxMAC71MQNKF C6OX+9Ao8/DvFbS7l6V1oUCCt/GZLJcpFTMraVfLYcc10KkaS2ZXTIIc6x/CBN0me5tB +p2KFcAN6B2q4ufxWfxaqjq8Mtqs7kyVZMc+T9nRKba22+BM/U1wYzwclNkzVpdvrTl+ iCvA== 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 p7si3373156edy.122.2021.02.25.07.28.48; Thu, 25 Feb 2021 07:29:11 -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 S231320AbhBYPYf (ORCPT + 99 others); Thu, 25 Feb 2021 10:24:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:43258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbhBYPYV (ORCPT ); Thu, 25 Feb 2021 10:24:21 -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 AD84864F11; Thu, 25 Feb 2021 15:23:39 +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 1lFIII-00Fscv-RS; Thu, 25 Feb 2021 15:11:11 +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 12/13] PCI: MSI: Document the various ways of ending up with NO_MSI Date: Thu, 25 Feb 2021 15:10:22 +0000 Message-Id: <20210225151023.3642391-13-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 We have now 4 ways of ending up with NO_MSI being set. Document them. Signed-off-by: Marc Zyngier --- drivers/pci/msi.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index d9c73c173c14..425abcdfcaca 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -871,8 +871,16 @@ static int pci_msi_supported(struct pci_dev *dev, int nvec) * Any bridge which does NOT route MSI transactions from its * secondary bus to its primary bus must set NO_MSI flag on * the secondary pci_bus. - * We expect only arch-specific PCI host bus controller driver - * or quirks for specific PCI bridges to be setting NO_MSI. + * + * The NO_MSI flag can either be set directly by: + * - arch-specific PCI host bus controller drivers (deprecated) + * - quirks for specific PCI bridges + * + * or indirectly by platform-specific PCI host bridge drivers by: + * - unconditionally advertising the 'no_msi' property + * - advertising the 'msi_domain' property, which results in + * the NO_MSI flag when no MSI domain is found for this bridge + * at probe time. */ for (bus = dev->bus; bus; bus = bus->parent) if (bus->bus_flags & PCI_BUS_FLAGS_NO_MSI) -- 2.29.2