drm/i915/hwmon: Enable PL1 limit when writing limit value to HW
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Thu, 16 Feb 2023 16:49:44 +0000 (08:49 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 16 Feb 2023 21:53:51 +0000 (16:53 -0500)
commit6fd3d8bf89fc6525264552910accb09c93abba02
tree47a793a1ad66258c6bfeed45a33f1010d5ca0d69
parentf99926383bd62d2b707e4599b4e096e943f63d42
drm/i915/hwmon: Enable PL1 limit when writing limit value to HW

Previous documentation suggested that the PL1 power limit is always enabled
in HW. However we now find this not to be the case on some platforms (such
as ATSM). Therefore enable the PL1 power limit (by setting the enable bit)
when writing the PL1 limit value to HW.

Bspec: 51864

Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230216164944.2366150-3-ashutosh.dixit@intel.com
drivers/gpu/drm/i915/i915_hwmon.c