Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751756AbdCMMPr (ORCPT ); Mon, 13 Mar 2017 08:15:47 -0400 Received: from foss.arm.com ([217.140.101.70]:48334 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbdCMMPl (ORCPT ); Mon, 13 Mar 2017 08:15:41 -0400 Subject: Re: [PATCH] iommu/arm-smmu: Print message when Cavium erratum 27704 was detected To: Robert Richter , Will Deacon , Joerg Roedel References: <20170313103902.17423-1-rrichter@cavium.com> Cc: linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org From: Robin Murphy Message-ID: <0522dbbc-99e6-6cc5-788f-c498f7244ca1@arm.com> Date: Mon, 13 Mar 2017 12:15:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170313103902.17423-1-rrichter@cavium.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 33 On 13/03/17 10:39, Robert Richter wrote: > Firmware is responsible for properly enabling smmu workarounds. Print > a message for better diagnostics when Cavium erratum 27704 was > detected. The wording there could possibly be misinterpreted as the firmware actively having to do something to the hardware prior to handing it off to Linux, as opposed to merely supplying a correct FDT or IORT table, but I'm not sure it matters all that much, and the patch itself is fine: Reviewed-by: Robin Murphy Thanks, Robin. > Signed-off-by: Robert Richter > --- > drivers/iommu/arm-smmu.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c > index abf6496843a6..c88bf8deb958 100644 > --- a/drivers/iommu/arm-smmu.c > +++ b/drivers/iommu/arm-smmu.c > @@ -1887,6 +1887,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu) > atomic_add_return(smmu->num_context_banks, > &cavium_smmu_context_count); > smmu->cavium_id_base -= smmu->num_context_banks; > + dev_notice(smmu->dev, "\tenabling workaround for Cavium erratum 27704\n"); > } > > /* ID2 */ >