perf/x86/msr: Add Tiger Lake CPU support
authorKan Liang <kan.liang@linux.intel.com>
Tue, 8 Oct 2019 15:50:09 +0000 (08:50 -0700)
committerIngo Molnar <mingo@kernel.org>
Sat, 12 Oct 2019 13:13:09 +0000 (15:13 +0200)
Tiger Lake is the followon to Ice Lake. PPERF and SMI_COUNT MSRs are
also supported.

The External Design Specification (EDS) is not published yet. It comes
from an authoritative internal source.

The patch has been tested on real hardware.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1570549810-25049-9-git-send-email-kan.liang@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/msr.c

index 8515512e98ef3c4d633a07053c1d101e6a249fad..6f86650b3f77d73cc5dd6ebec2dbca8241a18ed2 100644 (file)
@@ -95,6 +95,8 @@ static bool test_intel(int idx, void *data)
        case INTEL_FAM6_ICELAKE:
        case INTEL_FAM6_ICELAKE_X:
        case INTEL_FAM6_ICELAKE_D:
+       case INTEL_FAM6_TIGERLAKE_L:
+       case INTEL_FAM6_TIGERLAKE:
                if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF)
                        return true;
                break;