artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b10449e
)
drm/amdkfd: Use gpu_offset for user queue's wptr
author
jsg
<jsg@openbsd.org>
Mon, 9 Oct 2023 02:37:14 +0000
(
02:37
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 9 Oct 2023 02:37:14 +0000
(
02:37
+0000)
From YuBiao Wang
b60028c81e463b0930191a4fa2ba770ff6d40e3a
in linux-6.1.y/6.1.56
cc39f9ccb82426e576734b493e1777ea01b144a8
in mainline linux
sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
b/sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
index
c06ada0
..
0b87034
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/
sys/dev/pci/drm/amd/amdkfd/kfd_device_queue_manager.c
@@
-201,7
+201,7
@@
static int add_queue_mes(struct device_queue_manager *dqm, struct queue *q,
if (q->wptr_bo) {
wptr_addr_off = (uint64_t)q->properties.write_ptr & (PAGE_SIZE - 1);
- queue_input.wptr_mc_addr =
((uint64_t)q->wptr_bo->tbo.resource->start << PAGE_SHIFT
) + wptr_addr_off;
+ queue_input.wptr_mc_addr =
amdgpu_bo_gpu_offset(q->wptr_bo
) + wptr_addr_off;
}
queue_input.is_kfd_process = 1;