summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2024-07-11 14:39:43 +0200
committerAlex Deucher <alexander.deucher@amd.com>2024-09-18 16:15:13 -0400
commit6dcba0975d39b30be65dd038fed69e1aa111c73a (patch)
tree9fb223f3effe6eca716c40d251fb8588406ffe1e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
parent87d749a6aab73d8069d0345afaa98297816cb220 (diff)
downloadlinux-6dcba0975d39b30be65dd038fed69e1aa111c73a.tar.gz
linux-6dcba0975d39b30be65dd038fed69e1aa111c73a.tar.bz2
linux-6dcba0975d39b30be65dd038fed69e1aa111c73a.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
index f30264782ba2..3a8f57900a3a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.h
@@ -33,6 +33,8 @@
#define AMDGPU_GEM_DOMAIN_MAX 0x3
#define gem_to_amdgpu_bo(gobj) container_of((gobj), struct amdgpu_bo, tbo.base)
+extern const struct drm_gem_object_funcs amdgpu_gem_object_funcs;
+
unsigned long amdgpu_gem_timeout(uint64_t timeout_ns);
/*