mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 05:22:49 -04:00
drm/amdkfd: Validate user queue buffers
Find user queue rptr, ring buf, eop buffer and cwsr area BOs, and check BOs are mapped on the GPU with correct size and take the BO reference. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
9c7e69d2e1
commit
68e599db7a
@@ -524,6 +524,10 @@ struct queue_properties {
|
||||
uint64_t exception_status;
|
||||
|
||||
struct amdgpu_bo *wptr_bo;
|
||||
struct amdgpu_bo *rptr_bo;
|
||||
struct amdgpu_bo *ring_bo;
|
||||
struct amdgpu_bo *eop_buf_bo;
|
||||
struct amdgpu_bo *cwsr_bo;
|
||||
};
|
||||
|
||||
#define QUEUE_IS_ACTIVE(q) ((q).queue_size > 0 && \
|
||||
|
||||
Reference in New Issue
Block a user