From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754592AbeAQSyG (ORCPT ); Wed, 17 Jan 2018 13:54:06 -0500 Received: from foss.arm.com ([217.140.101.70]:46404 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754066AbeAQSyF (ORCPT ); Wed, 17 Jan 2018 13:54:05 -0500 Subject: Re: [PATCH] iommu/arm-smmu-v3: suppress MSI allocation failure message To: Nate Watterson , Will Deacon , Joerg Roedel , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Sinan Kaya , Marc Zyngier References: <1516214399-24012-1-git-send-email-nwatters@codeaurora.org> From: Robin Murphy Message-ID: <2f651cfe-e006-cf1d-b624-08e2ba5340fc@arm.com> Date: Wed, 17 Jan 2018 18:54:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1516214399-24012-1-git-send-email-nwatters@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ +Marc just in case ] On 17/01/18 18:39, Nate Watterson wrote: > From: Sinan Kaya > > Even though QDF2400 supports MSI interrupts with SMMUv3, it is not enabled > in ACPI FW to preserve compatibility with older kernel versions. Code is > emitting warning message during boot. > > This is causing some test tools to record a false warning and is causing > support issues. > > Better reduce the message level. Ugh, that's unfortunate, since there are also plenty of genuine error conditions encapsulated in there which we *would* want to report as such (but still then fall back to wired IRQs if possible). Is the return value sufficient to differentiate the "there is no MSI parent" and "there are MSIs but something went wrong" cases, or is it more complicated than that? Robin. > Signed-off-by: Sinan Kaya > Signed-off-by: Nate Watterson > --- > drivers/iommu/arm-smmu-v3.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c > index 744592d..2118fda 100644 > --- a/drivers/iommu/arm-smmu-v3.c > +++ b/drivers/iommu/arm-smmu-v3.c > @@ -2331,7 +2331,7 @@ static void arm_smmu_setup_msis(struct arm_smmu_device *smmu) > /* Allocate MSIs for evtq, gerror and priq. Ignore cmdq */ > ret = platform_msi_domain_alloc_irqs(dev, nvec, arm_smmu_write_msi_msg); > if (ret) { > - dev_warn(dev, "failed to allocate MSIs\n"); > + dev_info(dev, "failed to allocate MSIs\n"); > return; > } > >