drm/amd/display: Reset OUTBOX0 r/w pointer on DMUB reset
authorjsg <jsg@openbsd.org>
Tue, 13 Jun 2023 02:46:50 +0000 (02:46 +0000)
committerjsg <jsg@openbsd.org>
Tue, 13 Jun 2023 02:46:50 +0000 (02:46 +0000)
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

index a76da01..b0adbf7 100644 (file)
@@ -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);
 }