OSDN Git Service

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)
commit5f2c1192eba42f6926253a1f2c9b18da05b3c31f
treedabc720d7160493af22c37238943c231658699db
parent9cc370435cde6b672b6e2221115c2f535e8bd4ec
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