diff options
| author | Andrey Grodzovsky <[email protected]> | 2020-12-08 20:16:15 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-12-10 04:17:03 +0000 |
| commit | f8aab60422c371425365d386dfd51e0c6c5b1041 (patch) | |
| tree | 565ca049f29fa75953a74153ff062267fccf7e11 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | drm/amdgpu: fix size calculation with stolen vga memory (diff) | |
| download | kernel-f8aab60422c371425365d386dfd51e0c6c5b1041.tar.gz kernel-f8aab60422c371425365d386dfd51e0c6c5b1041.zip | |
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: d693def4fd1c ("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 <[email protected]>
Signed-off-by: Andrey Grodzovsky <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
