drm/amdgpu: use GFP_NOWAIT for memory allocations
In the critical submission path memory allocations can't wait for reclaim since that can potentially wait for submissions to finish. Finally clean that up and mark most memory allocations in the critical path with GFP_NOWAIT. The only exception left is the dma_fence_array() used when no VMID is available, but that will be cleaned up later on. Signed-off-by:Christian König <christian.koenig@amd.com> Acked-by:
Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
Showing
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c 4 additions, 4 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c 11 additions, 7 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c 7 additions, 4 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c 6 additions, 5 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h 2 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/amdgpu_sync.h
Loading
Please register or sign in to comment