drm/amd/display: Switch DMCUB notify idle command to NO_WAIT
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 12 Dec 2023 17:10:49 +0000 (12:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jan 2024 15:47:05 +0000 (10:47 -0500)
commit4e7738bcfb6765ca669fdbd2be2f7f6f239ed3e5
tree2926790f2fbe4c484c237a0b0fe4ee7127e890a2
parent4b5c5f5ad38b9435518730cc7f8f1e8de9c5cb2f
drm/amd/display: Switch DMCUB notify idle command to NO_WAIT

[Why]
Race condition between notification of driver idle and the command being
processed. We could theoretically enter idle between the submission and
the wait for idle that occurs after.

[How]
Switch the notification to NO_WAIT to avoid the RPTR access.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Sung joon Kim <sungjoon.kim@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c