]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Use dma_buf from GEM object instance
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 25 Jun 2025 08:42:18 +0000 (10:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Jun 2025 15:55:16 +0000 (11:55 -0400)
commit515986100d176663d0a03219a3056e4252f729e6
treecb4b6e77484590b42318a7d81cc07ff6a81d6b55
parent4948e6c7fb2a88bbf961e60009f896aaa07fe57f
drm/amdgpu: Use dma_buf from GEM object instance

Avoid dereferencing struct drm_gem_object.import_attach for the
imported dma-buf. The dma_buf field in the GEM object instance refers
to the same buffer. Prepares to make import_attach an implementation
detail of PRIME.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
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
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c