• Vince Weaver's avatar
    perf/x86: Fix Broadwell-EP DRAM RAPL events · d85d4c87
    Vince Weaver authored
    commit 33b88e70 upstream.
    
    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: default avatarVince 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
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    d85d4c87
rapl.c 21.6 KB