From 5439ab1da629e926888d053b18f10ed6a086762d Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 13 Jun 2023 02:46:50 +0000 Subject: [PATCH] drm/amd/display: Reset OUTBOX0 r/w pointer on DMUB reset From Cruise Hung ccb0ad946adc43d9b146323228a365aa7400fd42 in linux-6.1.y/6.1.29 425afa0ac99a05b39e6cd00704fa0e3e925cee2b in mainline linux --- sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c b/sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c index a76da0131ad..b0adbf783aa 100644 --- a/sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c +++ b/sys/dev/pci/drm/amd/display/dmub/src/dmub_dcn32.c @@ -130,6 +130,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); } -- 2.20.1