From patchwork Wed Nov 15 07:39:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu YiPing X-Patchwork-Id: 118919 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3997929qgn; Tue, 14 Nov 2017 23:41:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMZFHz/DQeTCwjFoJwg6d4NcIHZ999A6cqCieEdgdQS5c0OWGoSSGTO1zcQuzs0psxuxvFvu X-Received: by 10.98.24.207 with SMTP id 198mr10402002pfy.3.1510731707677; Tue, 14 Nov 2017 23:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510731707; cv=none; d=google.com; s=arc-20160816; b=s9RmsXcVCqHBgnb9ECERzp5niLhgQz0kPxG9EaJKy6RsmqoQrDAFrnvvfpy6n/OCI5 kre4XAzesc40/kV18Zr+955X2IRqOXg/pBucity6zcJJg6f8Wa8PQ8idneF6bmn7TY2U F9w7WDGr3TCwnKPaKt/cuKAmR7xqgV0//oFEwuKkT9W84FHR2VaJ86dWPL0ZS0umy2oT kusLOx2MuFYAD30fDr4/6S7bfz8Jsg1Ef/TgNVlzofPc+wczWA5vvK3vng4yk63B8mqz z6iWaGgqgA3BqIj+43raZUzd+FydFgVFBZF2x2gWm08OuiNBXMJRnEuJmvlaGzPwbKs7 FhfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=YxgeNN7UZpR7nDBGHbU2/fjafyP/uMMkl2h8A4X5C8A=; b=qv55SB8N3jJ776Ad9lfyyeVSJHD4gmMhXyNKJWXlzlfiqBvYzFENPyaztdkvm5HpzP xLRu3PEpsp5brABTnEXHrK1i/PHCBDqKpIYaZSjKcHn/EST11ajyYDec1XjV4jmC3DGV f78hCryCHWLllWgWouGhW3N7sxjuDtCXXR5tfIUNHCGZsBdkV7xc7CavNMFlSttcPhIl FXREz29EIyLCrYb+PB0LiWGUsSiibVEJ1QZmr1S19okL5cxsPL2BKi6V0NXmEevJNnGC m3cOrbFGLn5PirxD0+sFkCkGqUfzxxgBXwTj6+fYRFdtw3z+n+RIheCJp50abu31C4i8 8D4g== 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 a70si19185738pfa.391.2017.11.14.23.41.47; Tue, 14 Nov 2017 23:41:47 -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 S1755279AbdKOHlp (ORCPT + 28 others); Wed, 15 Nov 2017 02:41:45 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10540 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbdKOHli (ORCPT ); Wed, 15 Nov 2017 02:41:38 -0500 Received: from 172.30.72.60 (EHLO DGGEMS405-HUB.china.huawei.com) ([172.30.72.60]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DKZ37512; Wed, 15 Nov 2017 15:40:26 +0800 (CST) Received: from vm167-7.huawei.com (10.177.167.7) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.361.1; Wed, 15 Nov 2017 15:39:27 +0800 From: Xu YiPing To: , , , , , , , , , , CC: , Subject: [PATCH v2] arm64: perf: remove unsupported events for Cortex-A73 Date: Wed, 15 Nov 2017 15:39:26 +0800 Message-ID: <1510731566-22016-1-git-send-email-xuyiping@hisilicon.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.177.167.7] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.5A0BEF6B.0020, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 260d81314b77080b7f81528eb710ac71 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bus access read/write events are not supported in A73, based on the Cortex-A73 TRM r0p2, section 11.9 Events (pages 11-457 to 11-460). Fixes: 5561b6c5e981 "arm64: perf: add support for Cortex-A73" Signed-off-by: Xu YiPing --- arch/arm64/kernel/perf_event.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.7.4 Acked-by: Julien Thierry diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c index 9eaef51..3affca3 100644 --- a/arch/arm64/kernel/perf_event.c +++ b/arch/arm64/kernel/perf_event.c @@ -262,12 +262,6 @@ static const unsigned armv8_a73_perf_cache_map[PERF_COUNT_HW_CACHE_MAX] [C(L1D)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_L1D_CACHE_RD, [C(L1D)][C(OP_WRITE)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_L1D_CACHE_WR, - - [C(NODE)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_RD, - [C(NODE)][C(OP_WRITE)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_WR, - - [C(NODE)][C(OP_READ)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_RD, - [C(NODE)][C(OP_WRITE)][C(RESULT_ACCESS)] = ARMV8_IMPDEF_PERFCTR_BUS_ACCESS_WR, }; static const unsigned armv8_thunder_perf_cache_map[PERF_COUNT_HW_CACHE_MAX]