Re: [PATCH V2] accel/amdxdna: Check interrupt register before mailbox_rx_worker exits

From: Mario Limonciello
Date: Thu Feb 27 2025 - 10:08:37 EST


On 2/27/2025 02:36, Jacek Lawrynowicz wrote:
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@xxxxxxxxxxxxxxx>

On 2/26/2025 5:18 PM, Lizhi Hou wrote:
There is a timeout failure been found during stress tests. If the firmware
generates a mailbox response right after driver clears the mailbox channel
interrupt register, the hardware will not generate an interrupt for the
response. This causes the unexpected mailbox command timeout.

To handle this failure, driver checks the interrupt register before
exiting mailbox_rx_worker(). If there is a new response, driver goes back
to process it.

Signed-off-by: Lizhi Hou <lizhi.hou@xxxxxxx>
---

Applied to drm-misc-next.

cd740b873f8f6 accel/amdxdna: Check interrupt register before mailbox_rx_worker exits