[PATCH v2 0/2] drm/amd: Avoid using import_attach directly
Christian König
christian.koenig at amd.com
Wed Jun 25 11:25:23 UTC 2025
On 25.06.25 10:42, Thomas Zimmermann wrote:
> The field import_attach of struct drm_gem_object is often only
> required by PRIME code. In other places, replace its use with
> clearer alternatives.
Reviewed-by: Christian König <christian.koenig at amd.com> for the entire series.
>
> v2:
> - keep amdgpu_bo_print_info() as-is (Christian)
>
> Thomas Zimmermann (2):
> drm/amdgpu: Test for imported buffers with drm_gem_is_imported()
> drm/amdgpu: Use dma_buf from GEM object instance
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +-
> drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 4 ++--
> drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5 ++---
> drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 10 +++++-----
> drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
> drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 +++---
> 6 files changed, 14 insertions(+), 15 deletions(-)
>
More information about the dri-devel
mailing list