summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2024-06-20 18:53:50 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-07-24 00:35:04 +0300
commitfb91065851cd5f2735348c5f3eddeeca3d7c2973 (patch)
tree5915ac247b3fa03df7ada920fa42cc84f19335f7 /scripts
parentdb54a725d57985c869f6fe4153a36cd229ab0b73 (diff)
downloadlinux-fb91065851cd5f2735348c5f3eddeeca3d7c2973.tar.xz
drm/amdkfd: Refactor queue wptr_bo GART mapping
Add helper function kfd_queue_acquire_buffers to get queue wptr_bo reference from queue write_ptr if it is mapped to the KFD node with expected size. Add wptr_bo to structure queue_properties because structure queue is allocated after queue buffers are validated, then we can remove wptr_bo parameter from pqm_create_queue. Rename structure queue wptr_bo_gart to hold wptr_bo reference for GART mapping and umapping. Move MES wptr_bo_gart mapping to init_user_queue, the same location with queue ctx_bo GART mapping. 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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions