Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1634559

[patch] perf_event DRAM RAPL uses wrong units on Broadwell-EP

From Vince Weaver <vincent.weaver@maine.edu>
Newsgroups linux.kernel
Subject [patch] perf_event DRAM RAPL uses wrong units on Broadwell-EP
Date 2017-05-02 20:10 +0200
Message-ID <tCKpk-1FQ-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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>

diff --git a/arch/x86/events/intel/rapl.c b/arch/x86/events/intel/rapl.c
index 9d05c7e67f60..a45e2114a846 100644
--- a/arch/x86/events/intel/rapl.c
+++ b/arch/x86/events/intel/rapl.c
@@ -761,7 +761,7 @@ static const struct x86_cpu_id rapl_cpu_match[] __initconst = {
 
 	X86_RAPL_MODEL_MATCH(INTEL_FAM6_BROADWELL_CORE,   hsw_rapl_init),
 	X86_RAPL_MODEL_MATCH(INTEL_FAM6_BROADWELL_GT3E,   hsw_rapl_init),
-	X86_RAPL_MODEL_MATCH(INTEL_FAM6_BROADWELL_X,	  hsw_rapl_init),
+	X86_RAPL_MODEL_MATCH(INTEL_FAM6_BROADWELL_X,	  hsx_rapl_init),
 	X86_RAPL_MODEL_MATCH(INTEL_FAM6_BROADWELL_XEON_D, hsw_rapl_init),
 
 	X86_RAPL_MODEL_MATCH(INTEL_FAM6_XEON_PHI_KNL, knl_rapl_init),

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[patch] perf_event DRAM RAPL uses wrong units on Broadwell-EP Vince Weaver <vincent.weaver@maine.edu> - 2017-05-02 20:10 +0200

csiph-web