]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/amdxdna: Check interrupt register before mailbox_rx_worker exits
authorLizhi Hou <lizhi.hou@amd.com>
Wed, 26 Feb 2025 16:18:10 +0000 (08:18 -0800)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 27 Feb 2025 14:41:46 +0000 (08:41 -0600)
commitcd740b873f8f6f5f4558723241ba9c09eb36d0ba
tree6c71ff28f8e6bdec7f7b384c61bfb98f245c9c9f
parent4444e4d789d64f053435713e5984f0ef31a7633b
accel/amdxdna: Check interrupt register before mailbox_rx_worker exits

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@amd.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250226161810.4188334-1-lizhi.hou@amd.com
drivers/accel/amdxdna/amdxdna_mailbox.c