Skip to content

FBC locking v3

Paulo Zanoni intel-gfx 1 version Applied

Status from this message: Queued for -next, thanks for the patch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 21 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8drm/i915: don't increment the FBC threshold at fbc_enabledrivers/gpu/drm/i915/intel_fbc.c+6 -42 replies
2/8drm/i915: add the FBC mutexdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_stolen.c +3 more+89 -204 replies
3/8drm/i915: remove unneded locks on debugs FBC functionsdrivers/gpu/drm/i915/i915_debugfs.c+0 -40 replies
4/8drm/i915: remove struct_mutex lock from the FBC work functiondrivers/gpu/drm/i915/intel_fbc.c+0 -20 replies
5/8drm/i915: simplify FBC start/stop at invalidate/flushdrivers/gpu/drm/i915/intel_fbc.c+14 -43 replies
6/8drm/i915: add struct_mutex WARNs to i915_gem_stolen.cdrivers/gpu/drm/i915/i915_gem_stolen.c+13 -012 replies
7/8drm/i915: reduce struct_mutex coverage at intel_crtc_page_flip()drivers/gpu/drm/i915/intel_display.c+1 -10 replies
8/8drm/i915: remove struct_mutex lock from intel_modeset_cleanup()drivers/gpu/drm/i915/intel_display.c+0 -40 replies

Reviews trailers per patch

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

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

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/8] FBC locking v3

From: Paulo Zanoni <[email protected]>

Hi

So this is a new take on the FBC locking improvements. This time I continue with the "introduce fbc.lock first, then reduce struct_mutex later" strategy in order to minimize the risks and facilitate review.

I also fixed a "lack of struct_mutex lock" regression I introduced when I first moved FBC to the frontbuffer tracking infrastructure.

Right now the only places where we should be holding the struct_mutex lock for FBC is on the 2 intel_fbc_update() calls: one at intel_post_plane_update() and another at intel_unpin_work_fn(). Notice that we'll probably remove the intel_fbc_update() call that's inside intel_unpin_work_fn() later, so we'll only required struct_mutex locking once. We can't get rid of the single struct_mutex lock requirement since we need to deal with the CFB allocation. Of course we can always rework that code a little bit more, but let's do it on later patches.

Thanks,
Paulo

Paulo Zanoni (8):
drm/i915: don't increment the FBC threshold at fbc_enable drm/i915: add the FBC mutex
drm/i915: remove unneded locks on debugs FBC functions drm/i915: remove struct_mutex lock from the FBC work function drm/i915: simplify FBC start/stop at invalidate/flush drm/i915: add struct_mutex WARNs to i915_gem_stolen.c drm/i915: reduce struct_mutex coverage at intel_crtc_page_flip() drm/i915: remove struct_mutex lock from intel_modeset_cleanup()

 drivers/gpu/drm/i915/i915_debugfs.c    |   8 +--
 drivers/gpu/drm/i915/i915_drv.h        |   1 +
 drivers/gpu/drm/i915/i915_gem_stolen.c |  20 ++++++
 drivers/gpu/drm/i915/intel_display.c   |  16 +----
 drivers/gpu/drm/i915/intel_drv.h       |   1 +
 drivers/gpu/drm/i915/intel_fbc.c       | 110 +++++++++++++++++++++++++++------
 6 files changed, 120 insertions(+), 36 deletions(-)
Signature · 6 lines
2.1.4

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