Skip to content

RFC drm/amdgpu: Convert to ttm_bo_vmap()

Thomas Zimmermann amd-gfx dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/amdgpu: Unmap BO memory before calling amdgpu_bo_unref()drivers/gpu/drm/amd/amdgpu/amdgpu_object.c+7 -43 replies
2/2drm/amdgpu: Convert to ttm_bo_vmap() et aldrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_object.h+13 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] drm/amdgpu: Convert to ttm_bo_vmap()

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/[email protected]/

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(-)
Signature · 1 line
2.45.2