diff options
| author | 2026-09-23 17:43:06 +0800 | |
|---|---|---|
| committer | 2026-10-01 12:01:03 -0400 | |
| commit | c7ae3b2043282da8de92bd925c8f6bb614633181 (patch) | |
| tree | a8c2e9e7b23a653dc55cd565e3ea12c47c4c184f /scripts/Makefile.thinlto | |
| parent | drm/amdgpu/gmc12: properly pass flush_type to gmc_v12_0_flush_vm_hub() (diff) | |
drm/amdgpu/userq: fix reading the WPTR at a non-zero BO offset
The user queue UAPI permits the WPTR at any 8-byte aligned offset within a
BO. amdgpu_userq_fence_read_wptr() locates the mapping containing the WPTR
address, but amdgpu_bo_kmap() returns the start of the BO, so the code read
the first u64 regardless of the WPTR offset. USERQ_SIGNAL uses this value as
the exported fence seqno, so a wrong read makes the fence signal early (or
never), breaking dependency synchronization.
Translate the WPTR GPU address to a byte offset within the BO, accounting
for the VA mapping start and the mapping's BO offset, before reading it.
Fixes: a292fdecd728 ("drm/amdgpu: Implement userqueue signal/wait IOCTL")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
