From a044f1fe31a7d2d51636ea01330c5138a34d0bd0 Mon Sep 17 00:00:00 2001 From: SeongChan Lee Date: Wed, 26 Jun 2024 17:49:45 +0900 Subject: [PATCH] GpuIntelIntegrated initial power value should be read from MSR_PP1_ENERGY_STATUS, not from MSR_RAPL_POWER_UNIT (#1366) --- LibreHardwareMonitorLib/Hardware/Gpu/IntelIntegratedGpu.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LibreHardwareMonitorLib/Hardware/Gpu/IntelIntegratedGpu.cs b/LibreHardwareMonitorLib/Hardware/Gpu/IntelIntegratedGpu.cs index 1441b1d..60ace33 100644 --- a/LibreHardwareMonitorLib/Hardware/Gpu/IntelIntegratedGpu.cs +++ b/LibreHardwareMonitorLib/Hardware/Gpu/IntelIntegratedGpu.cs @@ -8,7 +8,6 @@ namespace LibreHardwareMonitor.Hardware.Gpu; internal class IntelIntegratedGpu : GenericGpu { private const uint MSR_PP1_ENERGY_STATUS = 0x641; - private const uint MSR_RAPL_POWER_UNIT = 0x606; private readonly Sensor _dedicatedMemoryUsage; private readonly Sensor _sharedMemoryLimit; @@ -46,7 +45,7 @@ internal class IntelIntegratedGpu : GenericGpu _sharedMemoryLimit = new Sensor("D3D Shared Memory Total", memorySensorIndex++, SensorType.SmallData, this, settings); } - if (Ring0.ReadMsr(MSR_RAPL_POWER_UNIT, out uint eax, out uint _)) + if (Ring0.ReadMsr(MSR_PP1_ENERGY_STATUS, out uint eax, out uint _)) { _energyUnitMultiplier = intelCpu.EnergyUnitsMultiplier; if (_energyUnitMultiplier != 0)