drm/amd/pm: fix possible power mode mismatch between driver and PMFW
authorEvan Quan <evan.quan@amd.com>
Thu, 11 May 2023 07:41:27 +0000 (15:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:39:15 +0000 (09:39 -0400)
commit572773992e31e0e31692adf6797a3bf7e094097c
treeced25506a7c0bb56f1b8d1627f8b26da84eaf36c
parent3083b1007d4b8d377f8e2b5ce349a275a2fff725
drm/amd/pm: fix possible power mode mismatch between driver and PMFW

PMFW may boots the ASIC with a different power mode from the system's
real one. Notify PMFW explicitly the power mode the system in. This
is needed only when ACDC switch via gpio is not supported.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c