drm/amd/pm: Fetch current power limit from FW
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 18 Jan 2024 08:55:35 +0000 (14:25 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 20:46:41 +0000 (15:46 -0500)
commitf1807682de0edbff6c1e46b19642a517d2e15c57
tree65ec92f808db81302cc50a5009f9fe074e62fe55
parentbc8f6d42b1334f486980d57c8d12f3128d30c2e3
drm/amd/pm: Fetch current power limit from FW

Power limit of SMUv13.0.6 SOCs can be updated by out-of-band ways. Fetch
the limit from firmware instead of using cached values.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.7.x
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c