]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: use GFP_NOWAIT for memory allocations
authorChristian König <christian.koenig@amd.com>
Wed, 15 Jan 2025 14:10:13 +0000 (15:10 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Mar 2025 16:15:08 +0000 (12:15 -0400)
commit16590745b571c07869ef8958e0bbe44ab6f08d1f
tree997101d3406b365a00c3cade8727c09c996951df
parenta67f0094c9d7a0310321d154e5b370a098759661
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h