diff options
author | Felix Kuehling | 2018-04-10 23:33:12 +0200 |
---|---|---|
committer | Oded Gabbay | 2018-04-10 23:33:12 +0200 |
commit | bebfd2f4126a115420a2b04f44a05552c12e5b46 (patch) | |
tree | 9a660a51fa4bbbae0c29396518649c05a2715537 | |
parent | drm/amdkfd: Fix goto usage (diff) | |
download | kernel-qcow2-linux-bebfd2f4126a115420a2b04f44a05552c12e5b46.tar.gz kernel-qcow2-linux-bebfd2f4126a115420a2b04f44a05552c12e5b46.tar.xz kernel-qcow2-linux-bebfd2f4126a115420a2b04f44a05552c12e5b46.zip |
drm/amdkfd: Fix kernel queue rollback_packet
kq->queue->properties.write_ptr is a GPU address which can'd be
derefenced in the kernel. Use kq->wptr_kernel instead, which is the
kernel CPU address of the same buffer.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c index 23e586b0507c..9f381612afd7 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c @@ -279,7 +279,7 @@ static void submit_packet(struct kernel_queue *kq) static void rollback_packet(struct kernel_queue *kq) { - kq->pending_wptr = *kq->queue->properties.write_ptr; + kq->pending_wptr = *kq->wptr_kernel; } struct kernel_queue *kernel_queue_init(struct kfd_dev *dev, |