Skip to content

FBC (+stolen) locking, v4

Paulo Zanoni intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/i915: add simple wrappers for stolen node insertion/removaldrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_stolen.c+32 -166 replies
2/7drm/i915: move FBC code out of i915_gem_stolen.cdrivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_stolen.c +2 more+127 -1314 replies
3/7drm/i915: add dev_priv->mm.stolen_lockdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_stolen.c drivers/gpu/drm/i915/intel_fbc.c+77 -281 reply
4/7drm/i915: add the FBC mutexdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c +2 more+91 -172 replies
5/7drm/i915: intel_frontbuffer_flip_prepare() doesn't need struct_mutexdrivers/gpu/drm/i915/intel_display.c+1 -10 replies
6/7drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutexdrivers/gpu/drm/i915/intel_display.c+1 -30 replies
7/7drm/i915: FBC doesn't need struct_mutex anymoredrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_fbc.c+3 -171 reply

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchChris Wilson
1/7Requested-by
2/7Requested-by
3/7
4/7R-b
5/7
6/7
7/7

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

Read the v1 thread

Cover letter [PATCH 0/7] FBC (+stolen) locking, v4

From: Paulo Zanoni <[email protected]>

Hi

So, based on the reviews, here's v4 of the series, now with dev_priv->mm.stolen_lock. This allows us to completely get rid of struct_mutex locking around FBC calls. Kudos to Chris for the suggestion.

The patch that added intel_fbc_stop() got removed from this series because the addition of mm.stolen_lock turned it into just an optimization instead of a bugfix. Let's leave it to another series, where I'll also try to clarify all the function names involved.

Since we didn't seem to reach any conclusions on the lockdep_assert_held vs WARN_ON discussion, I kept using WARN_ON since it's what the maintainer is asking and since it's what's winning in usage count. If we decide to change it, we can always do it in a later patch.

Thanks,
Paulo

Paulo Zanoni (7):
drm/i915: add simple wrappers for stolen node insertion/removal drm/i915: move FBC code out of i915_gem_stolen.c drm/i915: add dev_priv->mm.stolen_lock
drm/i915: add the FBC mutex
drm/i915: intel_frontbuffer_flip_prepare() doesn't need struct_mutex drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutex drm/i915: FBC doesn't need struct_mutex anymore

 drivers/gpu/drm/i915/i915_debugfs.c    |   8 +-
 drivers/gpu/drm/i915/i915_dma.c        |   1 +
 drivers/gpu/drm/i915/i915_drv.h        |  14 +-
 drivers/gpu/drm/i915/i915_gem_stolen.c | 215 +++++++++--------------------
 drivers/gpu/drm/i915/intel_display.c   |  20 +--
 drivers/gpu/drm/i915/intel_drv.h       |   2 +
 drivers/gpu/drm/i915/intel_fbc.c       | 239 ++++++++++++++++++++++++++++++---
 7 files changed, 309 insertions(+), 190 deletions(-)
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx