From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20AF4C48BC2 for ; Mon, 21 Jun 2021 14:48:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id DC7CB60C3E for ; Mon, 21 Jun 2021 14:48:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC7CB60C3E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R6FuGr2WII5a+raEewFrKZaSWLkdnUytecx0VFnAvgc=; b=S2F72oqbAd6wiy 7zEfUzpqF2RuIuUaUxlTDwBoCghfko1oQAbz6bOnefnPKxryPEkfLfZ9043cySRSrjp6TTrmRARB8 LhuSVtABJI4WIE5Lm8zyZF5Ie5QEDDvZ6e4nVoevelZIdttcoi0RZHrGfr4sskt2CWIdtFi+Dlynd soR6vZjiNys3XaHNZkRBFBhc7Gh+kuFRCARE5g1n11odh+em5XjseDsWrlLglKEXxdN5PqKLLvk7Z qKPvFWAuYIEIfzheK/AqtJjHUg1ikhE8JBiWOaT33GuSsapwHRO5AJkzgoJsc4QvblG4ZXSUT08Em H6HzpZe+5dnmohIxa7bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvLCj-003pgc-A2; Mon, 21 Jun 2021 14:47:13 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvLCf-003pfd-8z for linux-arm-kernel@lists.infradead.org; Mon, 21 Jun 2021 14:47:10 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 35629D6E; Mon, 21 Jun 2021 07:47:06 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BCBE43F694; Mon, 21 Jun 2021 07:47:04 -0700 (PDT) Date: Mon, 21 Jun 2021 15:47:02 +0100 From: Lorenzo Pieralisi To: Sandor Bodo-Merle Cc: Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Marc Zyngier Subject: Re: [PATCH 2/2] PCI: iproc: Support multi-MSI only on uniprocessor kernel Message-ID: <20210621144702.GD27516@lpieralisi> References: <20210606123044.31250-1-sbodomerle@gmail.com> <20210606123044.31250-2-sbodomerle@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210606123044.31250-2-sbodomerle@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210621_074709_411462_6BEDFD41 X-CRM114-Status: GOOD ( 19.81 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Jun 06, 2021 at 02:30:44PM +0200, Sandor Bodo-Merle wrote: > The interrupt affinity scheme used by this driver is incompatible with > multi-MSI as it implies moving the doorbell address to that of another MSI > group. This isn't possible for multi-MSI, as all the MSIs must have the > same doorbell address. As such it is restricted to systems with a single > CPU. > > Fixes: fc54bae28818 ("PCI: iproc: Allow allocation of multiple MSIs") > Reported-by: Marc Zyngier > Signed-off-by: Sandor Bodo-Merle > --- > drivers/pci/controller/pcie-iproc-msi.c | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) Can you just resend the series with the very minor changes requested fixed please ? Please carry/apply the review tags as well. Thanks, Lorenzo > diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c > index 557d93dcb3bc..81b4effeb130 100644 > --- a/drivers/pci/controller/pcie-iproc-msi.c > +++ b/drivers/pci/controller/pcie-iproc-msi.c > @@ -171,7 +171,7 @@ static struct irq_chip iproc_msi_irq_chip = { > > static struct msi_domain_info iproc_msi_domain_info = { > .flags = MSI_FLAG_USE_DEF_DOM_OPS | MSI_FLAG_USE_DEF_CHIP_OPS | > - MSI_FLAG_MULTI_PCI_MSI | MSI_FLAG_PCI_MSIX, > + MSI_FLAG_PCI_MSIX, > .chip = &iproc_msi_irq_chip, > }; > > @@ -250,6 +250,9 @@ static int iproc_msi_irq_domain_alloc(struct irq_domain *domain, > struct iproc_msi *msi = domain->host_data; > int hwirq, i; > > + if (msi->nr_cpus > 1 && nr_irqs > 1) > + return -EINVAL; > + > mutex_lock(&msi->bitmap_lock); > > /* > @@ -540,6 +543,9 @@ int iproc_msi_init(struct iproc_pcie *pcie, struct device_node *node) > mutex_init(&msi->bitmap_lock); > msi->nr_cpus = num_possible_cpus(); > > + if (msi->nr_cpus == 1) > + iproc_msi_domain_info.flags |= MSI_FLAG_MULTI_PCI_MSI; > + > msi->nr_irqs = of_irq_count(node); > if (!msi->nr_irqs) { > dev_err(pcie->dev, "found no MSI GIC interrupt\n"); > -- > 2.31.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel