]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use GEM obj reference for KFD BOs
authorFelix Kuehling <Felix.Kuehling@amd.com>
Tue, 5 May 2020 18:02:43 +0000 (14:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 May 2020 20:51:29 +0000 (16:51 -0400)
commitebd048bfa460fa610163e7deff70ad41a895fb7a
tree7b2688e21c65025782588331d53faa31c2307dae
parent0052624fce35a364f9646f4e02a61f2e6b96454a
drm/amdgpu: Use GEM obj reference for KFD BOs

Releasing the AMDGPU BO ref directly leads to problems when BOs were
exported as DMA bufs. Releasing the GEM reference makes sure that the
AMDGPU/TTM BO is not freed too early.

Also take a GEM reference when importing BOs from DMABufs to keep
references to imported BOs balances properly.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Tested-by: Alex Sierra <alex.sierra@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c