]> 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:35:03 +0000 (11:35 -0400)
commitf7a7276f695aca3b0712b1d0f9222defddb3b13e
tree18db2ff725f1d5f8f4a27f931da90f557d77fc16
parentf058d7d42b6d6bcdd65eb36d525b24d2d4999a64
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: b1211109167f ("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