]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Support synchronized indirect reg access
authorRoy Chan <roy.chan@amd.com>
Sun, 23 Jan 2022 18:20:09 +0000 (13:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 23:00:35 +0000 (18:00 -0500)
commitc48ec9ed9e0253778052554af7d4b2bbfa519456
treedabc720d7160493af22c37238943c231658699db
parent22cdb5eefc50996937cf3ca3f0caf203cdff683e
drm/amd/display: Support synchronized indirect reg access

[Why]
indirect register index/data pair may be used by multi-threads.  when it
happens, it would cause register access issue that is hard to trace.

[How]
Using cgs service, which provide a sync indirect reg access api.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Roy Chan <roy.chan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_helper.c
drivers/gpu/drm/amd/display/dc/inc/reg_helper.h