FBC (+stolen) locking, v4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | drm/i915: add simple wrappers for stolen node insertion/removaldrivers/ drivers/ | +32 | 6 replies | |
| 2/7 | drm/i915: move FBC code out of i915_gem_stolen.cdrivers/ drivers/ drivers/ +2 more | +127 | 4 replies | |
| 3/7 | drm/i915: add dev_priv->mm.stolen_lockdrivers/ drivers/ drivers/ | +77 | 1 reply | |
| 4/7 | drm/i915: add the FBC mutexdrivers/ drivers/ drivers/ +2 more | +91 | 2 replies | |
| 5/7 | drm/i915: intel_frontbuffer_flip_prepare() doesn't need struct_mutexdrivers/ | +1 | 0 replies | |
| 6/7 | drm/i915: intel_unregister_dsm_handler() doesn't need struct_mutexdrivers/ | +1 | 0 replies | |
| 7/7 | drm/i915: FBC doesn't need struct_mutex anymoredrivers/ drivers/ drivers/ | +3 | 1 reply |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Chris Wilson |
|---|---|
| 1/7 | Requested-by |
| 2/7 | Requested-by |
| 3/7 | |
| 4/7 | R-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.
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