From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753429AbdEQIb4 (ORCPT ); Wed, 17 May 2017 04:31:56 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34510 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbdEQIbw (ORCPT ); Wed, 17 May 2017 04:31:52 -0400 From: Jan Glauber To: Will Deacon Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Borislav Petkov , Jan Glauber Subject: [PATCH v5 0/3] Cavium ARM64 uncore PMU support Date: Wed, 17 May 2017 10:31:19 +0200 Message-Id: <20170517083122.5050-1-jglauber@cavium.com> X-Mailer: git-send-email 2.9.0.rc0.21.g7777322 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here is another attempt of adding support for some PMU counters on Cavium SOCs. The major change is that I quit trying to merge the counters as it would not fit with your requirements [1]. Another big change is that now the EDAC driver for the devices carrying the PMU counters is upstream. I've added a simple callback to the EDAC driver which owns the devices, so probing is much simpler now. The driver still provides common "uncore" functions to avoid code duplication and support adding more device PMUs (like L2 cache) in the future. [1] https://marc.info/?l=linux-arm-kernel&m=147940675216946&w=4 Jan Glauber (3): perf: export perf_event_update_userpage() perf: cavium: Support memory controller PMU counters perf: cavium: Support transmit-link PMU counters drivers/edac/thunderx_edac.c | 19 +- drivers/perf/Kconfig | 8 + drivers/perf/Makefile | 1 + drivers/perf/cavium_pmu.c | 629 ++++++++++++++++++++++++++++++++++++++++ include/linux/cpuhotplug.h | 1 + include/linux/perf/cavium_pmu.h | 35 +++ kernel/events/core.c | 1 + 7 files changed, 693 insertions(+), 1 deletion(-) create mode 100644 drivers/perf/cavium_pmu.c create mode 100644 include/linux/perf/cavium_pmu.h -- 2.9.0.rc0.21.g7777322