Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2309454ybi; Mon, 17 Jun 2019 02:34:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqykR2Dw3+flvafhQveX/fDT3o9liijFGCSI/Xthbz0DGw2256CpVSU5R0wGJ6hfvB6LruhC X-Received: by 2002:a17:902:f216:: with SMTP id gn22mr88666205plb.118.1560764085902; Mon, 17 Jun 2019 02:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560764085; cv=none; d=google.com; s=arc-20160816; b=u2vqJvDcbABL1nOMVwsxrmbp6W/s0AuRTWNfISISl6maDZePA/4aPufzrz0ZNJucfz ffZPbZWT7PzsuX1danhTFcphP/qvfxcip1HltN/6Puynr8zKDtj+U0h2HxvUBu0axz8y hmzXBVelVrg3PIYjFAmXBobE9Qeubu4HPOp/Z+KZ9bH1nlhDkY0TAB+WuhVyqj+17qPM 0mH6fQ1S3rkCXNE5uNAB3szMl6Xv2UUEp3MnesN+3T/9yK7fX4xKhWYB1SBuLBLVnJ1c 0oRMiDds9FOOwtB9aQbhi2ivVgVWBf+M+UPj7pKnDxmxBrqjaYJxaYfWkhSoVi5Ic84s 5LGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=PTyBC4FBYdMpjdqa3tbjTMOrNsCseW9/GSYY40Afsuo=; b=LDj2yMhC/D20yxwOLn+mm9d7RZmZNbJMgfZ9jqKUSwKRo216N2tsOwgihGgE7/F67b kjUwCdxmTmyJZ4Npiz7mdBtpwkRRHvf7RBb0vf5EuXeEbVbI0bat+Ta4wzk40q5mV9g/ 3a/JLCDF5ChxTO04FIZJcbAHKqwxxua07uAKqu9t5xnGkMQvS5hNCmGQ5Cm723o84uzj 65IO1N//sYL3CjB+6WaBmLLOScA3R6EjAerMV4nIwI3Fnp2Mp8i/qIkJL3uApUGmDYFP Xwtmovr0HKasx6C2eu8H80UP5D+Yyu0ZQaIOOLNNbsc6UEM6nMBYlbmLDGMtNNCDjuGG d77Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q125si4006457pgq.483.2019.06.17.02.34.29; Mon, 17 Jun 2019 02:34:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbfFQJdm (ORCPT + 99 others); Mon, 17 Jun 2019 05:33:42 -0400 Received: from foss.arm.com ([217.140.110.172]:43130 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfFQJdm (ORCPT ); Mon, 17 Jun 2019 05:33:42 -0400 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 A35D8344; Mon, 17 Jun 2019 02:33:41 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9CA903F246; Mon, 17 Jun 2019 02:33:39 -0700 (PDT) Date: Mon, 17 Jun 2019 10:33:37 +0100 From: Lorenzo Pieralisi To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: Re: [PATCHv5 04/20] PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI Message-ID: <20190617093337.GD18020@e121166-lin.cambridge.arm.com> References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-5-Zhiqiang.Hou@nxp.com> <20190611165935.GA22836@redmoon> <20190612130813.GA15747@redmoon> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 15, 2019 at 01:30:39AM +0000, Z.q. Hou wrote: > Hi Lorenzo, > > > -----Original Message----- > > From: Lorenzo Pieralisi [mailto:lorenzo.pieralisi@arm.com] > > Sent: 2019年6月12日 21:08 > > To: Z.q. Hou > > Cc: linux-pci@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; > > bhelgaas@google.com; robh+dt@kernel.org; mark.rutland@arm.com; > > l.subrahmanya@mobiveil.co.in; shawnguo@kernel.org; Leo Li > > ; catalin.marinas@arm.com; will.deacon@arm.com; > > Mingkai Hu ; M.h. Lian ; > > Xiaowei Bao > > Subject: Re: [PATCHv5 04/20] PCI: mobiveil: Remove the flag > > MSI_FLAG_MULTI_PCI_MSI > > > > On Wed, Jun 12, 2019 at 11:34:51AM +0000, Z.q. Hou wrote: > > > Hi Lorenzo, > > > > > > Thanks a lot for your comments! > > > > > > > -----Original Message----- > > > > From: Lorenzo Pieralisi > > > > Sent: 2019年6月12日 1:00 > > > > To: Z.q. Hou > > > > Cc: linux-pci@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > > > > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; > > > > bhelgaas@google.com; robh+dt@kernel.org; mark.rutland@arm.com; > > > > l.subrahmanya@mobiveil.co.in; shawnguo@kernel.org; Leo Li > > > > ; catalin.marinas@arm.com; > > will.deacon@arm.com; > > > > Mingkai Hu ; M.h. Lian > > ; > > > > Xiaowei Bao > > > > Subject: Re: [PATCHv5 04/20] PCI: mobiveil: Remove the flag > > > > MSI_FLAG_MULTI_PCI_MSI > > > > > > > > On Fri, Apr 12, 2019 at 08:35:36AM +0000, Z.q. Hou wrote: > > > > > From: Hou Zhiqiang > > > > > > > > > > The current code does not support multiple MSIs, so remove the > > > > > corresponding flag from the msi_domain_info structure. > > > > > > > > Please explain me what's the problem before removing multi MSI support. > > > > > > NXP LX2 PCIe use the GIC-ITS instead of Mobiveil IP internal MSI > > > controller, so, I didn't encounter problem. > > > > Well, you sent a patch to fix an issue, explain me the issue you are fixing then, > > aka what have you sent this patch for ? > > I did not face issue, as I have explained NXP does not use the > Mobiveil IP's MSI controller. But obviously the MSI allocate function > does not support multiple MSI, so I submitted this patch. There is nothing obvious. Write what you are fixing in the commit log and I will apply the patch, I won't write the commit log for you. Anyone should be able to understand why a patch was needed by reading the commit log, it is as important as writing the code itself. Thanks, Lorenzo > Thanks, > Zhiqiang > > > > > Lorenzo > > > > > Subbu, did you test with Endpoint supporting multi MSI? > > > > > > Thanks, > > > Zhiqiang > > > > > > > > > > > Thanks, > > > > Lorenzo > > > > > > > > > Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") > > > > > Signed-off-by: Hou Zhiqiang > > > > > Reviewed-by: Minghuan Lian > > > > > --- > > > > > V5: > > > > > - Corrected the subject. > > > > > > > > > > drivers/pci/controller/pcie-mobiveil.c | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/pci/controller/pcie-mobiveil.c > > > > > b/drivers/pci/controller/pcie-mobiveil.c > > > > > index 563210e731d3..a0dd337c6214 100644 > > > > > --- a/drivers/pci/controller/pcie-mobiveil.c > > > > > +++ b/drivers/pci/controller/pcie-mobiveil.c > > > > > @@ -703,7 +703,7 @@ static struct irq_chip mobiveil_msi_irq_chip = > > > > > { > > > > > > > > > > static struct msi_domain_info mobiveil_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 = &mobiveil_msi_irq_chip, > > > > > }; > > > > > > > > > > -- > > > > > 2.17.1 > > > > >