]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Allow CPU access for all VRAM BOs
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 7 Jul 2021 21:55:55 +0000 (17:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Jul 2021 15:58:38 +0000 (11:58 -0400)
commit0956a2b5113a967f011c3c31fd03542f2651f8de
tree9f23c6893ecdee4c08d2b699a5457c3b600ea47c
parentca3f25a50a4da4f04bf48e9b81f2bec639c1f0d4
drm/amdkfd: Allow CPU access for all VRAM BOs

The thunk needs to mmap all BOs for CPU access to allow the debugger to
access them. Invisible ones are mapped with PROT_NONE.

Fixes: 9137f1585efe ("drm/amdgpu: Implement mmap as GEM object function")
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c