]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56cee7c4a1db11246c7f7b089844bc73249c5899
treebce9994590b7b70d0dfe98669bfd182a378b24d9
parent57a2e683d338069c37fb6962cf8dba81d19077d3
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