drm/amd/powerplay: update swSMU VCN/JPEG PG logics
authorEvan Quan <evan.quan@amd.com>
Mon, 3 Aug 2020 03:15:14 +0000 (11:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Aug 2020 21:48:57 +0000 (17:48 -0400)
commit2c34c960cee0dfdfe33ddf1b3835c250a9503ef6
treebce9994590b7b70d0dfe98669bfd182a378b24d9
parentf2e2573c0823c07dc8aac4a8e0947881af2340bd
drm/amd/powerplay: update swSMU VCN/JPEG PG logics

Add lock protections and avoid unnecessary actions
if the PG state is already the same as required.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Tested-by: Matt Coffin <mcoffin13@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/renoir_ppt.c
drivers/gpu/drm/amd/powerplay/sienna_cichlid_ppt.c
drivers/gpu/drm/amd/powerplay/smu_internal.h