]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Initialise drm_gem_object_funcs for imported BOs
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 8 Dec 2020 20:16:15 +0000 (15:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Dec 2020 04:17:03 +0000 (23:17 -0500)
commit8d69a39a9c3e7c8450bcaebf1cc29b5b5f62b2d9
tree565ca049f29fa75953a74153ff062267fccf7e11
parent323d34fa67ea5df30f6bc0ef8580162a8172be40
drm/amdgpu: Initialise drm_gem_object_funcs for imported BOs

For BOs imported from outside of amdgpu, setting of amdgpu_gem_object_funcs
was missing in amdgpu_dma_buf_create_obj. Fix by refactoring BO creation
and amdgpu_gem_object_funcs setting into single function called
from both code paths.

Fixes: 2c24464688b9 ("drm: Remove obsolete GEM and PRIME callbacks from struct drm_driver")
v2: Use use amdgpu_gem_object_create() directly
v3: fix warning

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c