perf/x86: Fix Broadwell-EP DRAM RAPL events
commit33b88e708e7dfa58dc896da2a98f5719d2eb315c
authorVince Weaver <vincent.weaver@maine.edu>
Tue, 2 May 2017 18:08:50 +0000 (2 14:08 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 May 2017 12:40:37 +0000 (3 14:40 +0200)
treebeb3ad54b25b056e9710d0028bfb0951d0026a70
parenta351e9b9fc24e982ec2f0e76379a49826036da12
perf/x86: Fix Broadwell-EP DRAM RAPL events

It appears as though the Broadwell-EP DRAM units share the special
units quirk with Haswell-EP/KNL.

Without this patch, you get really high results (a single DRAM using 20W
of power).

The powercap driver in drivers/powercap/intel_rapl.c already has this
change.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Cc: <stable@vger.kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/rapl.c