drm/amd/pm: correct gfx and pcie settings on umd pstate switching(V2)
authorEvan Quan <evan.quan@amd.com>
Tue, 18 Aug 2020 04:43:25 +0000 (12:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Oct 2020 16:20:46 +0000 (12:20 -0400)
commitf2b75bc24dee364f7c251539a9bc0d1730efee8b
treea77cd0d35ef82b83a8bc50038ab0cbdbd2df3846
parent585584dbaa47e814addb8a41bddbc2c303173bad
drm/amd/pm: correct gfx and pcie settings on umd pstate switching(V2)

For entering UMD stable Pstate, the operations to enter rlc_safe
mode, disable mgcg_perfmon and disable PCIE aspm are needed. And
the opposite operations should be performed on UMD stable Pstate
exiting.

V2: take those ASICs(CI/SI/VI) which may not support this into
    consideration

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c