]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Avoid thrashing of stack and heap
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 27 Oct 2021 21:40:51 +0000 (17:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:07 +0000 (12:22 -0400)
commitf9fe2ae1b5c3b9b0858fd4b997bc3fd52c85fae1
treeee02235f5f2718a19ea701d7a2a638a8c75e334a
parent7041f20f494a94a8537967fccd29ac3d7a539f04
drm/amdkfd: Avoid thrashing of stack and heap

Stack and heap pages tend to be shared by many small allocations.
Concurrent access by CPU and GPU is therefore likely, which can lead to
thrashing. Avoid this by setting the preferred location to system memory.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c