]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Reset DMUB mailbox SW state after HW reset
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 20 Jan 2023 16:14:30 +0000 (11:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:44 +0000 (12:59 +0100)
commit488770cbddd8a873fb3bb8866e8a46211570c367
tree20533486b0a37356e60c703a96d52c86914f0a51
parent383e32fa274a330dbf2d2db538b6bf2f9ef390aa
drm/amd/display: Reset DMUB mailbox SW state after HW reset

[ Upstream commit 154711aa5759ef9b45903124fa813c4c29ee681c ]

[Why]
Otherwise we can be out of sync with what's in the hardware, leading
to us rerunning every command that's presently in the ringbuffer.

[How]
Reset software state for the mailboxes in hw_reset callback.
This is already done as part of the mailbox init in hw_init, but we
do need to remember to reset the last cached wptr value as well here.

Reviewed-by: Hansen Dsouza <hansen.dsouza@amd.com>
Acked-by: Alex Hung <alex.hung@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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c