OSDN Git Service

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)
commit0f04e538580c086046e3b31cbc7ef4307a5b771d
tree5873e244303d1001cc2583ba884f07a957c85fbb
parent5aae7335b1ee609da13e5c9fa535802654171e10
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