Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5751018ybi; Wed, 12 Jun 2019 07:53:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAN1IChg/5vm6pFicqtvIwVEYAclDsTHoPUgYB+3T4GT40JGLXBJeB2nwlzRiD1fnhllrC X-Received: by 2002:aa7:8705:: with SMTP id b5mr66001396pfo.27.1560351223288; Wed, 12 Jun 2019 07:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560351223; cv=none; d=google.com; s=arc-20160816; b=tM3pwDfMa5n9nUQwL0yO1af6hdXxFgLvrM4K5t/53+qtcxAnoF0hACU8VMOwb/LW5U Y4q0ePvhvPaeKqvAdUkOgsoDpSRrg4K3tzyaQDzcDoKeRLoG7oCKkB+l2lvrw0Z7YaF5 9qOJZfxcIIRqeEsj/rW73QB5krtP2DEhmZK3fMWsc/osgVdqKzhxSrmmF5Jsm5BmQ0ij 0UcUTWMkIF3tqfTFlK79e1g8U9fowvS7/E+12ydZXcYuVTOnohoBHhepGEhWKKuEUeQK dWivr69aWanR0QtU9J//SjaBLSNAM6Vsf7X6AtWCGQjsn5RStV07vloSvXbIg8gcAC9z 5ouQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=0plcbixVMok57VTAmm9GfNbnf4eUojWqfX7/uK+G8to=; b=q1rj5z1kSV76EI6aUJZ4XHSth6qdqmT1O9gGL22IW/n23fOunGBbTkEag557wtIlin Hle0/7rVzCqaIb9LNlWmqAg/9NlzfO99iC4MYpECqhrNI8r4pfxIAS0jqGmXmxJcmBRs gtsWO4DCH2vOjcvmVj85p022Unhr3Yyum7uQr6zDXjYoOP4NI3nBEQ45k+5aqPX35Jq7 vTZL5PRBZ11HGXHRGbut676mg+E4+qdbt6xPa1uj2wGUR5umz/ajnAduk1NsKX4diGaz RNbGGVPsF/A0vbPEUVVDil82Gtv6xAtbJxPRaROlbLRSS/CzQW7uCM2y7Hol5zbvJJbh v9wQ== 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 m7si74755pjs.63.2019.06.12.07.53.27; Wed, 12 Jun 2019 07:53:43 -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 S2408073AbfFLKyS (ORCPT + 99 others); Wed, 12 Jun 2019 06:54:18 -0400 Received: from foss.arm.com ([217.140.110.172]:50176 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406068AbfFLKyS (ORCPT ); Wed, 12 Jun 2019 06:54:18 -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 0017028; Wed, 12 Jun 2019 03:54:17 -0700 (PDT) Received: from redmoon (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B18973F246; Wed, 12 Jun 2019 03:55:57 -0700 (PDT) Date: Wed, 12 Jun 2019 11:54:10 +0100 From: Lorenzo Pieralisi To: Marc Zyngier Cc: "Z.q. Hou" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , Xiaowei Bao , "linux-pci@vger.kernel.org" , "l.subrahmanya@mobiveil.co.in" , "will.deacon@arm.com" , "linux-kernel@vger.kernel.org" , Leo Li , "M.h. Lian" , "robh+dt@kernel.org" , Mingkai Hu , "catalin.marinas@arm.com" , "bhelgaas@google.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCHv5 04/20] PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI Message-ID: <20190612105410.GA9918@redmoon> References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-5-Zhiqiang.Hou@nxp.com> <20190611165935.GA22836@redmoon> <3b883516-1d63-1504-bdc9-22ac9c6f2d46@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3b883516-1d63-1504-bdc9-22ac9c6f2d46@arm.com> 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 Tue, Jun 11, 2019 at 06:29:49PM +0100, Marc Zyngier wrote: > On 11/06/2019 17:59, Lorenzo Pieralisi wrote: > > 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. > > The reason seems to be the following code in the allocator: > > WARN_ON(nr_irqs != 1); > mutex_lock(&msi->lock); > > bit = find_first_zero_bit(msi->msi_irq_in_use, msi->num_of_vectors); > if (bit >= msi->num_of_vectors) { > mutex_unlock(&msi->lock); > return -ENOSPC; > } > > set_bit(bit, msi->msi_irq_in_use); > > So instead of fixing the allocator, the author prefers disabling > the feature. I'm not sure whether that is an acceptable outcome... :) No it is not that's why I asked and I am waiting for an answer. Lorenzo