drm/amd/display: Include udelay when waiting for INBOX0 ACK
authorAlvin Lee <alvin.lee2@amd.com>
Mon, 6 Nov 2023 16:20:15 +0000 (11:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2023 07:52:17 +0000 (08:52 +0100)
commit 3c9ea68cb61bd7e5bd312c06a12adada74ff5805 upstream.

When waiting for the ACK for INBOX0 message,
we have to ensure to include the udelay
for proper wait time

Cc: stable@vger.kernel.org # 6.1+
Reviewed-by: Samson Tam <samson.tam@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c

index d1922dde5b8bf422a259841b53187ae53ed631e6..6c45e216c709c26b56933b3e7169d810bab71d66 100644 (file)
@@ -997,6 +997,7 @@ enum dmub_status dmub_srv_wait_for_inbox0_ack(struct dmub_srv *dmub, uint32_t ti
                ack = dmub->hw_funcs.read_inbox0_ack_register(dmub);
                if (ack)
                        return DMUB_STATUS_OK;
+               udelay(1);
        }
        return DMUB_STATUS_TIMEOUT;
 }