]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix KFD doorbell SG BO mapping
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 3 May 2018 21:37:56 +0000 (17:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Nov 2018 19:01:12 +0000 (14:01 -0500)
commit2f82d9de950b6215a0c270db4c904bb5e1edf3d4
tree5873e244303d1001cc2583ba884f07a957c85fbb
parentfb1f684f5616b7a48fe43e41c2d2aeb3a742a323
drm/amdgpu: Fix KFD doorbell SG BO mapping

This change prepares for adding SG BOs that will be used for mapping
doorbells into GPUVM address space.

This type of BO would be mistaken for an invalid userptr BO. Improve
that check to test that it's actually a userptr BO so that SG BOs that
are still in the CPU domain can be validated and mapped correctly.

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