summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2025-12-04 10:16:03 -0800
committerSasha Levin <sashal@kernel.org>2026-03-04 07:19:49 -0500
commit0e95546a09d2af51dadb2e03cb3cdabb167e148d (patch)
treeffc03cb4e67f3644ef4bcc240c6348b678ed9427 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent306378db76a2878c09a0469c959c1a3873c0aaeb (diff)
accel/amdxdna: Fix tail-pointer polling in mailbox_get_msg()
[ Upstream commit cd77d5a4aaf8c5c1d819f47cf814bf7d4920b0a2 ] In mailbox_get_msg(), mailbox_reg_read_non_zero() is called to poll for a non-zero tail pointer. This assumed that a zero value indicates an error. However, certain corner cases legitimately produce a zero tail pointer. To handle these cases, remove mailbox_reg_read_non_zero(). The zero tail pointer will be treated as a valid rewind event. Reviewed-by: Maciej Falkowski <maciej.falkowski@linux.intel.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20251204181603.793824-1-lizhi.hou@amd.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions