summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dmub/src
diff options
context:
space:
mode:
authorCruise Hung <Cruise.Hung@amd.com>2022-05-13 09:16:42 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-04-21 08:49:15 -0400
commitb0dc10428460ac2408cf5f82fc3562e9e57324e1 (patch)
tree66a17bf80936f340fe548d221fbbe8238eb76a56 /drivers/gpu/drm/amd/display/dmub/src
parent4e7f84ec068cec6a9a72fe0f558e0ae4cf765c51 (diff)
downloadlinux-b0dc10428460ac2408cf5f82fc3562e9e57324e1.tar.gz
linux-b0dc10428460ac2408cf5f82fc3562e9e57324e1.tar.bz2
linux-b0dc10428460ac2408cf5f82fc3562e9e57324e1.zip
drm/amd/display: Reset OUTBOX0 r/w pointer on DMUB reset
[Why & How] We missed resetting OUTBOX0 mailbox r/w pointer on DMUB reset. Fix it. Fixes: 6ecf9773a503 ("drm/amd/display: Fix DMUB outbox trace in S4 (#4465)") Signed-off-by: Cruise Hung <Cruise.Hung@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src')
-rw-r--r--drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
index 568a2702d5f7..b45ac31ba555 100644
--- a/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
+++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
@@ -126,6 +126,8 @@ void dmub_dcn32_reset(struct dmub_srv *dmub)
REG_WRITE(DMCUB_INBOX1_WPTR, 0);
REG_WRITE(DMCUB_OUTBOX1_RPTR, 0);
REG_WRITE(DMCUB_OUTBOX1_WPTR, 0);
+ REG_WRITE(DMCUB_OUTBOX0_RPTR, 0);
+ REG_WRITE(DMCUB_OUTBOX0_WPTR, 0);
REG_WRITE(DMCUB_SCRATCH0, 0);
/* Clear the GPINT command manually so we don't reset again. */