• Jacob Pan's avatar
    powercap / RAPL: handle domains with different energy units · d474a4d3
    Jacob Pan authored
    The current driver assumes all RAPL domains within a CPU package
    have the same energy unit. This is no longer true for HSW server
    CPUs since DRAM domain has is own fixed energy unit which can be
    different than the package energy unit enumerated by package
    power MSR. In fact, the default HSW EP package power unit is 61uJ
    whereas DRAM domain unit is 15.3uJ. The result is that DRAM power
    consumption is counted 4x more than real power reported by energy
    counters, similarly for max_energy_range_uj of DRAM domain.
    
    This patch adds domain specific energy unit per cpu type, it allows
    domain energy unit to override package energy unit if non zero.
    
    Please see this document for details.
    "Intel Xeon Processor E5-1600 and E5-2600 v3 Product Families, Volume 2 of 2.
     Datasheet, September 2014, Reference Number: 330784-001 "
    Signed-off-by: default avatarJacob Pan <jacob.jun.pan@linux.intel.com>
    Cc: 3.10+ <stable@vger.kernel.org> # 3.10+
    Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    d474a4d3
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
intel_rapl.c Loading commit data...
powercap_sys.c Loading commit data...