drm/amdgpu/pm: Fix the power source flag error
authorMa Jun <Jun.Ma2@amd.com>
Wed, 17 Jan 2024 06:35:29 +0000 (14:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Jan 2024 20:41:06 +0000 (15:41 -0500)
commitca1ffb174f16b699c536734fc12a4162097c49f4
tree8266995c5fdfe1938168fdafec29e112cda162af
parenta58371d632ebab9ea63f10893a6b6731196b6f8d
drm/amdgpu/pm: Fix the power source flag error

The power source flag should be updated when
[1] System receives an interrupt indicating that the power source
has changed.
[2] System resumes from suspend or runtime suspend

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c