X-Received: by 2002:a65:6bd4:0:b0:374:1fe3:e18a with SMTP id e20-20020a656bd4000000b003741fe3e18amr525839pgw.621.1645638539116; Wed, 23 Feb 2022 09:48:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645638539; cv=none; d=google.com; s=arc-20160816; b=KMRNFrwRTv2bSKC0PHAKz60Psgy5mXkjn76fePO3a1PzNyCEFmWJgrQpz11aGAYBGR degX/1EzBaa6WgABp+xARUyZBYmMNwxNAPFA/zlOssNg89+CCT6bPTr1eL87tNJPD8oy gVBoLDCxhhvCWsCiIAsUbAkIwimJy6V/N3t0BvrcxWJ1CEim7LHIO4ttFPnxHQ9oQ4Q8 SGh4nGQN7HEAmtBNB9X3MNa1+iDIzP60fVqDN1w9nbZlZOGKmngqdusQiFvViOIU2xg7 HKJbRjlFh6P8VwYXfePOXd8jEmWRIZOr9JNjS2+I44yiOk9pe0F2ptmnmlRSg0MV2zFc ikuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=bK5nBajnAAmCNr3qjPNz8nuHzbFl/taj/vgQf6A5GKU=; b=nx7BVuWmJ+FfzPUZhp8rO8qlLDImGPH8qgm06JO0fcpIHXItUuCZYv99JAbUpsc/zK zhohN8lUQ9YHqo1+gqFcDy9EDxopbJk6/tMEJ/7SwP4bkra8gvmRUZ/Hbghssv5dK+8r G3nYXeDpWyJn9sdmbRS3wY51hSi/jOP2cslbYsQtWioz7Hmfz38QusunlMQ3h64nMhT4 B7nUrnfDVURkm1hjsHmGkbRGW9eUbn9SdCvZlhLy2zH1mWpif54ylkS6PoHvKhnPeFoN /FXTeViDScuvK/Vczu9CQLWU6+aPwxzxCQrj65gjxMRBRWwlprnpWaG1HAaDivZ61bHh wlXw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w24si228421ply.197.2022.02.23.09.48.43; Wed, 23 Feb 2022 09:48:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239415AbiBWKCV (ORCPT + 99 others); Wed, 23 Feb 2022 05:02:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236112AbiBWKCU (ORCPT ); Wed, 23 Feb 2022 05:02:20 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3ADF63F332; Wed, 23 Feb 2022 02:01:53 -0800 (PST) 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 063E41042; Wed, 23 Feb 2022 02:01:53 -0800 (PST) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DE24E3F70D; Wed, 23 Feb 2022 02:01:51 -0800 (PST) Date: Wed, 23 Feb 2022 10:01:45 +0000 From: Lorenzo Pieralisi To: Manivannan Sadhasivam , bjorn.andersson@linaro.org Cc: bhelgaas@google.com, svarbanov@mm-sol.com, robh@kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: qcom: Add support for handling MSIs from 8 endpoints Message-ID: <20220223100145.GA26873@lpieralisi> References: <20211214101319.25258-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211214101319.25258-1-manivannan.sadhasivam@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 14, 2021 at 03:43:19PM +0530, Manivannan Sadhasivam wrote: > The DWC controller used in the Qcom Platforms are capable of addressing the > MSIs generated from 8 different endpoints each with 32 vectors (256 in > total). Currently the driver is using the default value of addressing the > MSIs from 1 endpoint only. Extend it by passing the MAX_MSI_IRQS to the > num_vectors field of pcie_port structure. > > Signed-off-by: Manivannan Sadhasivam > --- > drivers/pci/controller/dwc/pcie-qcom.c | 1 + > 1 file changed, 1 insertion(+) Need an ACK from qcom maintainers. Thanks, Lorenzo > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > index 1c3d1116bb60..8a4c08d815a5 100644 > --- a/drivers/pci/controller/dwc/pcie-qcom.c > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > @@ -1550,6 +1550,7 @@ static int qcom_pcie_probe(struct platform_device *pdev) > pci->dev = dev; > pci->ops = &dw_pcie_ops; > pp = &pci->pp; > + pp->num_vectors = MAX_MSI_IRQS; > > pcie->pci = pci; > > -- > 2.25.1 >