New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 820661 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit 20 days ago
Closed: Mar 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature



Sign in to add a comment

Add support for Kabylake PMU to kernel 4.4

Project Member Reported by gmx@chromium.org, Mar 10 2018

Issue description

We don't collect any LBR data from Kabylake devices.

I noticed that kernel 4.4 doesn't have Kabylake PMU support, so we have to backport it from upstream.

 

Comment 1 by gmx@chromium.org, Mar 10 2018

Kabylake uses the same PMU as Skylake. The relevant patch just adds the Kabylake model numbers.

I cherry picked a few more commits that improve PEBS support, which were touching nearby lines.

Comment 2 by gmx@chromium.org, Mar 12 2018

Cc: groeck@chromium.org
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 26 2018

Labels: merge-merged-release-R66-10452.B-chromeos-4.4
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/kernel/+/47f40e2994b267887bd87a5d3b64665a941b780e

commit 47f40e2994b267887bd87a5d3b64665a941b780e
Author: Andi Kleen <ak@linux.intel.com>
Date: Mon Mar 26 17:48:42 2018

BACKPORT: perf/x86: Add model numbers for Kabylake CPUs

Everything the same as Skylake, just new model numbers.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1461977748-17616-1-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit cba1b3798e2c4c094f2079a0d4c1ba4ec2c5a9ac)
Signed-off-by: Gabriel Marin <gmx@chromium.org>

Conflicts:
	arch/x86/events/intel/core.c
	Added changes to arch/x86/kernel/cpu/perf_event_intel.c, which is the
	old location of Intel perf events before code reorganization upstream.

BUG= chromium:820661 ,b:74020465
TEST=Build and run. Verified that collection of LBR traces, and iTLB and dTLB
     misses on Kabylake works.

Change-Id: I5b5751c945ddef1f7da43012b41c4d279234066f
Reviewed-on: https://chromium-review.googlesource.com/957973
Commit-Ready: Gabriel Marin <gmx@chromium.org>
Tested-by: Gabriel Marin <gmx@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
(cherry picked from commit 16dad81c709341c9d4cb515931ece299fde318fd)
Reviewed-on: https://chromium-review.googlesource.com/980920
Trybot-Ready: Gabriel Marin <gmx@chromium.org>
Commit-Queue: Gabriel Marin <gmx@chromium.org>

[modify] https://crrev.com/47f40e2994b267887bd87a5d3b64665a941b780e/arch/x86/kernel/cpu/perf_event_intel.c

Comment 4 by gmx@chromium.org, Mar 27 2018

Status: Fixed (was: Untriaged)

Sign in to add a comment