Skip to content

drm/mm: Add an iterator to optimally walk over holes suitable for an allocation

Vivek Kasireddy dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

v2 from the cover letter

- Added a new patch to this series to fix a potential NULL dereference.
- Fixed a typo associated with the iterator introduced in the drm core patch.
- Added locking around the snippet in the i915 patch that traverses the GGTT hole nodes.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/mm: Add an iterator to optimally walk over holes for an allocation (v5)drivers/gpu/drm/drm_mm.c include/drm/drm_mm.h+51 -170 replies
2/2drm/i915/gem: Don't try to map and fence large scanout buffers (v9)drivers/gpu/drm/i915/i915_gem.c+94 -340 replies

Reviews trailers per patch

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

PatchTvrtko UrsulinChristian König
1/2R-b A-b
2/2R-b

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

Read the v1 thread

Cover letter [CI 0/2] drm/mm: Add an iterator to optimally walk over holes suitable for an allocation

The first patch is a drm core patch that replaces the for loop in drm_mm_insert_node_in_range() with the iterator and would not cause any functional changes. The second patch is a i915 driver specific patch that also uses the iterator but solves a different problem.

v2:
- Added a new patch to this series to fix a potential NULL dereference.
- Fixed a typo associated with the iterator introduced in the drm core patch.
- Added locking around the snippet in the i915 patch that traverses the GGTT hole nodes.

v3: (Tvrtko)
- Replaced mutex_lock with mutex_lock_interruptible_nested() in the i915 patch.

v4: (Tvrtko)
- Dropped the patch added in v2 as it was deemed unnecessary.

v5: (Tvrtko)
- Fixed yet another typo in the drm core patch: should have passed caller_mode instead of mode to the iterator.

Cc Tvrtko Ursulin <[email protected]>
Cc Nirmoy Das <[email protected]>
Cc Christian König <[email protected]>

Vivek Kasireddy (2):
drm/mm: Add an iterator to optimally walk over holes for an allocation

    (v5)

drm/i915/gem: Don't try to map and fence large scanout buffers (v9)

 drivers/gpu/drm/drm_mm.c        |  32 ++++----
 drivers/gpu/drm/i915/i915_gem.c | 128 +++++++++++++++++++++++---------
 include/drm/drm_mm.h            |  36 +++++++++
 3 files changed, 145 insertions(+), 51 deletions(-)
Signature · 1 line
2.34.1