]> 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)
commitfc1c652eced684cc38adb1d0b623a89eb34c3348
tree5873e244303d1001cc2583ba884f07a957c85fbb
parent890c92c0d6b9881f40012e445a5f0d82d19b15da
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