Skip to content

Commit ee892ea

Browse files
ashutoshxjnikula
authored andcommitted
drm/i915/hwmon: Enable PL1 power limit
Previous documentation suggested that PL1 power limit is always enabled. However we now find this not to be the case on some platforms (such as ATSM). Therefore enable PL1 power limit during hwmon initialization. Bspec: 51864 v2: Add Bspec reference (Gwan-gyeong) v3: Add Fixes tag Fixes: 99f55ef ("drm/i915/hwmon: Power PL1 limit and TDP setting") Signed-off-by: Ashutosh Dixit <[email protected]> Reviewed-by: Gwan-gyeong Mun <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 0349c41) Signed-off-by: Jani Nikula <[email protected]>
1 parent eeac8ed commit ee892ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/i915/i915_hwmon.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,11 @@ hwm_get_preregistration_info(struct drm_i915_private *i915)
687687
for_each_gt(gt, i915, i)
688688
hwm_energy(&hwmon->ddat_gt[i], &energy);
689689
}
690+
691+
/* Enable PL1 power limit */
692+
if (i915_mmio_reg_valid(hwmon->rg.pkg_rapl_limit))
693+
hwm_locked_with_pm_intel_uncore_rmw(ddat, hwmon->rg.pkg_rapl_limit,
694+
PKG_PWR_LIM_1_EN, PKG_PWR_LIM_1_EN);
690695
}
691696

692697
void i915_hwmon_register(struct drm_i915_private *i915)

0 commit comments

Comments
 (0)