Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1600037imj; Thu, 14 Feb 2019 08:59:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IY5FPo+l9BQrPcql5QpO3hXbvcNMk54avNfhi694lNVi5R88dhMwocq9wusb/q6KLzaOhIa X-Received: by 2002:a62:61c3:: with SMTP id v186mr5086574pfb.55.1550163589972; Thu, 14 Feb 2019 08:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550163589; cv=none; d=google.com; s=arc-20160816; b=iMO+ZsR5AFXVfv2sU71cx/uWxH9ZCPzyrSJRW0KKLlQJpjno7ylxviA3uEQW8TM8Hi yO/RIW+WyXPt5SIujcgsqcQ80tOyqNMxvH438uTNcs/8i8FR2uN56emwNrCSJ1cmaKrF 5tY56tXa0MfMGsCWvk1BI0Y/oNuOKLzjh/FpIR7XZ/qNgmVlRE7YTWxJdm6wW2T1SWLE ieYFkquhrT22E9VXe3hdGWiVw77WZtxbWuskus4RGuumTI7ruqAMMz8blkQM10ogjhZr 86C/hdInNcdEuseT1SQZAh76PkwZCtTtmfuZLpOdHy5ZuUmBuEjcOeQ1tHF0anJctw5X aKhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=YBAQAMm33x4b8HbaUCsI/EoQtJB1UUHWqI/yIXCTtTI=; b=ySP9vbm4p2wB/Jhti+Dj9w39RagMxk/A1mhV2OiV09lO3+5S3uMHaECxE2vuWiC/fj 9BXdCGarGPAc/ZfN0UWHlaYms4q2SPzDWfhfp717uWkIzDOh7IV792/jFOed0LQsIA/T YCi7YqqT3inyXKh1KT8cvtUamAnnBSpVHTaPkQC/aRHO+umZemA4uoTP+2nnu+r52+HP z48avVzM93W6sPt4CbOj6HZV57ZJ2vY/qCNwBqvfU9oc65rdnXd51+NmvvNdXIxT7wLM a6BIKL0m5bmIxpEiztN7ue67AATUBsB3itAep4oRQpCHy8YIDnpTt3KAcMKXzNUcthm0 tkGw== 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 y4si2675332pgv.520.2019.02.14.08.58.51; Thu, 14 Feb 2019 08:59:49 -0800 (PST) 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 S1732407AbfBNHaK (ORCPT + 99 others); Thu, 14 Feb 2019 02:30:10 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:56470 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726955AbfBNHaK (ORCPT ); Thu, 14 Feb 2019 02:30:10 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 263DD6085CA6669C385D; Thu, 14 Feb 2019 15:30:06 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Thu, 14 Feb 2019 15:29:57 +0800 Subject: Re: [PATCH v6 4/4] perf/smmuv3_pmu: Enable HiSilicon Erratum 162001800 quirk To: Shameer Kolothum , , CC: , , , , , , , , , , , , References: <20190204121324.11460-1-shameerali.kolothum.thodi@huawei.com> <20190204121324.11460-5-shameerali.kolothum.thodi@huawei.com> From: Hanjun Guo Message-ID: <91fa1e08-a905-90a9-3577-fa3486bb951f@huawei.com> Date: Thu, 14 Feb 2019 15:29:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20190204121324.11460-5-shameerali.kolothum.thodi@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/2/4 20:13, Shameer Kolothum wrote: > HiSilicon erratum 162001800 describes the limitation of > SMMUv3 PMCG implementation on HiSilicon Hip08 platforms. > > On these platforms, the PMCG event counter registers > (SMMU_PMCG_EVCNTRn) are read only and as a result it > is not possible to set the initial counter period value > on event monitor start. > > To work around this, the current value of the counter > is read and used for delta calculations. OEM information > from ACPI header is used to identify the affected hardware > platforms. > > Signed-off-by: Shameer Kolothum > --- > drivers/acpi/arm64/iort.c | 16 ++++++++++++++- > drivers/perf/arm_smmuv3_pmu.c | 48 ++++++++++++++++++++++++++++++++++++------- > include/linux/acpi_iort.h | 1 + > 3 files changed, 57 insertions(+), 8 deletions(-) For this patch, Reviewed-by: Hanjun Guo Thanks Hanjun