dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] drm/amdgpu: Convert to ttm_bo_vmap()
@ 2024-06-20 14:44 Thomas Zimmermann
  2024-06-20 14:44 ` [PATCH 1/2] drm/amdgpu: Unmap BO memory before calling amdgpu_bo_unref() Thomas Zimmermann
  2024-06-20 14:44 ` [PATCH 2/2] drm/amdgpu: Convert to ttm_bo_vmap() et al Thomas Zimmermann
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Zimmermann @ 2024-06-20 14:44 UTC (permalink / raw)
  To: alexander.deucher, christian.koenig, Xinhui.Pan, airlied, daniel,
	felix.kuehling
  Cc: amd-gfx, dri-devel, Thomas Zimmermann

Convert amdgpu to use ttm_bo_vmap() instead of ttm_bo_kmap(). The
latter is deprecated. Passing ttm_bo_vmap()'s locking validation 
requires to remove the implicit unmap from the BO release path.

Smoke-tested with an Radeon RX 460.

There's similar patchset for xe at [1], which requires additional
changes.

[1] https://lore.kernel.org/dri-devel/20240614133556.11378-1-tzimmermann@suse.de/

Thomas Zimmermann (2):
  drm/amdgpu: Unmap BO memory before calling amdgpu_bo_unref()
  drm/amdgpu: Convert to ttm_bo_vmap() et al

 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 25 ++++++++++++++--------
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |  4 +++-
 2 files changed, 19 insertions(+), 10 deletions(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-21  8:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-20 14:44 [RFC PATCH 0/2] drm/amdgpu: Convert to ttm_bo_vmap() Thomas Zimmermann
2024-06-20 14:44 ` [PATCH 1/2] drm/amdgpu: Unmap BO memory before calling amdgpu_bo_unref() Thomas Zimmermann
2024-06-20 15:50   ` Christian König
2024-06-21  7:32     ` Thomas Zimmermann
2024-06-21  8:21       ` Christian König
2024-06-20 14:44 ` [PATCH 2/2] drm/amdgpu: Convert to ttm_bo_vmap() et al Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox