]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Clear GPINT after DMCUB has reset
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 3 Aug 2021 16:00:12 +0000 (12:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Aug 2021 19:43:55 +0000 (15:43 -0400)
commited3f4c780a879b34d3ac331941d5d8e36bd2f0f9
tree061ec173977678ec5d86880cfa99997e84c61d12
parentfa98d0a49598a25c8eff8fa04d835e97c978b8bd
drm/amd/display: Clear GPINT after DMCUB has reset

[Why]
Otherwise we can end up processing whatever was left in the register
if the DMCUB was previously reset.

If DMCUB gets force reset too early from another client then we might
not have even acked the disable yet - causing DMCUB instantly shutdown
if the command was 10020000.

[How]
Move the GPINT clear outside of the reset loop and do it unconditionally
after the DMCUB has been properly reset.

Reviewed-by: Roy Chan <roy.chan@amd.com>
Reviewed-by: Eric Yang <Eric.Yang2@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn31.c