]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amdgpu: use GEM references instead of TTMs v2
authorChristian König <christian.koenig@amd.com>
Thu, 11 Jul 2024 12:39:43 +0000 (14:39 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Sep 2024 20:15:13 +0000 (16:15 -0400)
commit6dcba0975d39b30be65dd038fed69e1aa111c73a
tree9fb223f3effe6eca716c40d251fb8588406ffe1e
parent87d749a6aab73d8069d0345afaa98297816cb220
drm/amdgpu: use GEM references instead of TTMs v2

Instead of a TTM reference grab a GEM reference whenever necessary.

v2: fix typo in amdgpu_bo_unref pointed out by Vitaly,
    initialize the GEM funcs for kernel allocations as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v1)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c