Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932868AbcDLIWf (ORCPT ); Tue, 12 Apr 2016 04:22:35 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35258 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932311AbcDLIWd (ORCPT ); Tue, 12 Apr 2016 04:22:33 -0400 From: Jan Glauber X-Google-Original-From: Jan Glauber Date: Tue, 12 Apr 2016 10:22:29 +0200 To: Jeremy Linton Cc: linux-kernel@vger.kernel.org, will.deacon@arm.com, mark.rutland@arm.com, peterz@infradead.org, mingo@redhat.com, catalin.marinas@arm.com, msalter@redhat.com, timur@codeaurora.org, nleeder@codeaurora.org, agustinv@codeaurora.org, sfr@canb.auug.org.au Subject: Re: [PATCH 2/4] arm64: pmu: add fallback probe table Message-ID: <20160412082228.GA3389@wintermute> References: <1460152627-3248-1-git-send-email-jeremy.linton@arm.com> <1460152627-3248-3-git-send-email-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460152627-3248-3-git-send-email-jeremy.linton@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1343 Lines: 39 On Fri, Apr 08, 2016 at 04:57:05PM -0500, Jeremy Linton wrote: > From: Mark Salter > > In preparation for ACPI support, add a pmu_probe_info table to > the arm_pmu_device_probe() call. This table gets used when > probing in the absence of a devicetree node for PMU. > > Signed-off-by: Mark Salter > Signed-off-by: Jeremy Linton > --- > arch/arm64/kernel/perf_event.c | 10 +++++++++- > include/linux/perf/arm_pmu.h | 3 +++ > 2 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/perf_event.c b/arch/arm64/kernel/perf_event.c > index f419a7c..8f12eac 100644 > --- a/arch/arm64/kernel/perf_event.c > +++ b/arch/arm64/kernel/perf_event.c > @@ -867,9 +867,17 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = { > {}, > }; > > +static const struct pmu_probe_info armv8_pmu_probe_table[] = { > + ARMV8_PMU_PART_PROBE(ARM_CPU_PART_CORTEX_A53, armv8_a53_pmu_init), > + ARMV8_PMU_PART_PROBE(ARM_CPU_PART_CORTEX_A57, armv8_a57_pmu_init), > + PMU_PROBE(0, 0, armv8_pmuv3_init), /* if all else fails... */ > + { /* sentinel value */ } > +}; > + Hi Jeremy, with 4.6 ThunderX PMU support was added, so I think above table is missing a line like: ARMV8_PMU_PART_PROBE(CAVIUM_CPU_PART_THUNDERX, armv8_thunder_pmu_init) Thanks, Jan