]> 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)
commit79e5ce261d4a4c2b621a77aded73659766fa227f
treedabc720d7160493af22c37238943c231658699db
parent8a9d748dc0aa0da268e6b39e05ed509ae2b8b1b8
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