X-Received: by 2002:a50:9b45:0:b0:410:7cdb:5d3a with SMTP id a5-20020a509b45000000b004107cdb5d3amr527937edj.275.1645638364680; Wed, 23 Feb 2022 09:46:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645638364; cv=none; d=google.com; s=arc-20160816; b=IxwOnK8FD3JJqm4KUbOi9ciFJnPpMwyRjN3x1Pk7UvxhM/4KGeGeZmQU0eUWn/a8D4 etqCu5qPZnTy9DNxVUlggk643oFjMTNGyx8LJkiJtJ0ZQqAuWSqc+UYTqTB2fKldjptN hvVjuR8LBRlYagKSj2Wx8toN6rF2LyacTBk9MzcTO8dyYHliOPuuqXW/129065oxTfHf chfZ/lmWXibXRfWYTM2leDRhR+50I30iqnkxFHcJyDtJ9ekOgOhyk1RfhvUS38lEAGSx A2fpEqmON0t//ukHkTS8a2u4/UxsUnxoILEMoYeCCS1PjEDjY0vSOKMJGrn+61vX+a1u HrcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DGpNWIzimOmkGMHx8swUjUOLKcCPIYnfCFHbWku+6rU=; b=sJSkqm5DlPW7Of9il6MVOBpMiPLdFzz8bXL0wmO9AU2Pu3SxHvKU/ABsuzABQJp1hH /tMrgJSswgTgDn0VkynKadkccz1HaIrRp8bH4WYU9FEKttQpVqRSpkPDM6JGickMccA+ GyNby1QXWQsswBxVB0yPTHJHscxpeFERPE5FnvX89jxdiEBZmcIoF4+4u+zb0RZEHlP7 1WgLLNA40OBTKAHsxsUeXC5OBHwjb8MVMyTJZEkccK0viENhLDkxewmu9/wNCf7IE+76 8nHiXYM8KtdPvaQZWkCQgOUqbR1El6XSD9YFgq+DwtVVSOZtjtKwodI/xwlJ80eFveXA cXrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mm-sol.com header.s=201706 header.b=QPZtU3pd; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=mm-sol.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9si133262edd.23.2022.02.23.09.45.42; Wed, 23 Feb 2022 09:46:04 -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; dkim=pass header.i=@mm-sol.com header.s=201706 header.b=QPZtU3pd; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=mm-sol.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237844AbiBWKkA (ORCPT + 99 others); Wed, 23 Feb 2022 05:40:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbiBWKj7 (ORCPT ); Wed, 23 Feb 2022 05:39:59 -0500 X-Greylist: delayed 513 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 23 Feb 2022 02:39:31 PST Received: from extserv.mm-sol.com (ns.mm-sol.com [37.157.136.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D4DE2981F; Wed, 23 Feb 2022 02:39:31 -0800 (PST) Received: from [192.168.1.9] (hst-221-41.medicom.bg [84.238.221.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: svarbanov@mm-sol.com) by extserv.mm-sol.com (Postfix) with ESMTPSA id 97409D266; Wed, 23 Feb 2022 12:30:54 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mm-sol.com; s=201706; t=1645612254; bh=ajxAmhJ/kg+ZW0t22kOED7gRVLvKb3z8gDoN8cYcEQQ=; h=Date:Subject:To:Cc:From:From; b=QPZtU3pdaZvbL/HcGGdgNWKrtT1f5AWuiuW5mSbxsbV31xvQd7cTT41yWWUytymlT X+GB0OBwK3WM660G1eVrWxRFwyKQ32w5XXCjJMIQtVnjvby2XDX6HuKeR7lvXzCARh UFi1K6SJS/HObOZPhyuXaOwglQwk0kYpqY0advgQ/29TNzZWWPIKGsuyUq2QUUhToQ 3JbM2QJ3salFHproQeSYqy6DsDnVDVPhPP2Mbj1cBgKjLWKUXrjtcNUziS/J8FDAEM hx2s3EsFaqhyNPALiKThUaibh9IUe22Ij8V7fPoI7wqtFHF/eHQWbbsM3ScpxUK+MI 3KHb/GnqU6ywg== Message-ID: Date: Wed, 23 Feb 2022 12:30:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] PCI: qcom: Add support for handling MSIs from 8 endpoints Content-Language: en-US To: Manivannan Sadhasivam , lorenzo.pieralisi@arm.com, bhelgaas@google.com Cc: bjorn.andersson@linaro.org, robh@kernel.org, linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211214101319.25258-1-manivannan.sadhasivam@linaro.org> From: Stanimir Varbanov In-Reply-To: <20211214101319.25258-1-manivannan.sadhasivam@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 12/14/21 12:13, 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(+) Acked-by: Stanimir Varbanov > > 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; > -- regards, Stan