Skip to content

drm/i915, drm/ttm: Update the ttm_move_memcpy() interface

Thomas Hellström dri-devel intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Don't initialize memcpy iterators until they are actually needed (Patch 1).
- Added proper R-B:s and Cc:s

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/i915/ttm: Reorganize the ttm move code somewhatdrivers/gpu/drm/i915/gem/i915_gem_ttm.c+44 -330 replies
2/2drm/ttm, drm/i915: Update ttm_move_memcpy for async usedrivers/gpu/drm/i915/gem/i915_gem_ttm.c drivers/gpu/drm/ttm/ttm_bo_util.c include/drm/ttm/ttm_bo_driver.h+12 -121 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMatthew AuldChristian König
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] drm/i915, drm/ttm: Update the ttm_move_memcpy() interface

The ttm_move_memcpy() function was intended to be able to be used async under a fence.
We are going to utilize that as a fallback if the gpu clearing blit fails before we set up CPU- or GPU ptes to the memory region.
But to accomplish that the bo argument to ttm_move_memcpy() needs to be replaced.

Patch 1 reorganizes the i915 ttm move code a bit to make the change in patch 2 smaller.
Patch 2 updates the ttm_move_memcpy() interface.

v2:
- Don't initialize memcpy iterators until they are actually needed (Patch 1).
- Added proper R-B:s and Cc:s

Thomas Hellström (2):
drm/i915/ttm: Reorganize the ttm move code somewhat drm/ttm, drm/i915: Update ttm_move_memcpy for async use

 drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 77 ++++++++++++++-----------
 drivers/gpu/drm/ttm/ttm_bo_util.c       | 20 +++----
 include/drm/ttm/ttm_bo_driver.h         |  2 +-
 3 files changed, 55 insertions(+), 44 deletions(-)
Cc Christian König <[email protected]>
Signature · 1 line
2.31.1