]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Test for imported buffers with drm_gem_is_imported()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 25 Jun 2025 08:42:17 +0000 (10:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Jun 2025 15:54:59 +0000 (11:54 -0400)
commit4948e6c7fb2a88bbf961e60009f896aaa07fe57f
tree361360dcaf91fa8e24c3c9ba5653592bd4813428
parenta3e510fd69c315a6b55f7a982caadee4e3ba6301
drm/amdgpu: Test for imported buffers with drm_gem_is_imported()

Instead of testing import_attach for imported GEM buffers, invoke
drm_gem_is_imported() to do the test.

v2:
- keep amdgpu_bo_print_info() as-is (Christian)

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_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c