perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events
authorNatarajan, Janakarajan <Janakarajan.Natarajan@amd.com>
Thu, 27 Sep 2018 15:51:55 +0000 (15:51 +0000)
committerIngo Molnar <mingo@kernel.org>
Tue, 2 Oct 2018 07:38:04 +0000 (09:38 +0200)
commitd7cbbe49a9304520181fb8c9272d1327deec8453
tree4c4e6db0a4b0a631b25aeb17e8778be05283af40
parent9d92cfeaf5215158d26d2991be7f7ff865cb98f3
perf/x86/amd/uncore: Set ThreadMask and SliceMask for L3 Cache perf events

In Family 17h, some L3 Cache Performance events require the ThreadMask
and SliceMask to be set. For other events, these fields do not affect
the count either way.

Set ThreadMask and SliceMask to 0xFF and 0xF respectively.

Signed-off-by: Janakarajan Natarajan <Janakarajan.Natarajan@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H . Peter Anvin <hpa@zytor.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Suravee <Suravee.Suthikulpanit@amd.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/Message-ID:
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/amd/uncore.c
arch/x86/include/asm/perf_event.h