Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Prevent (sleeping) wm updates under vblank evasion
@ 2015-06-23  1:30 Matt Roper
  2015-06-23  1:30 ` [PATCH 1/2] drm/i915: Drop parameters to intel_update_sprite_watermarks() Matt Roper
  2015-06-23  1:30 ` [PATCH 2/2] drm/i915: Update sprite watermarks outside vblank evasion Matt Roper
  0 siblings, 2 replies; 6+ messages in thread
From: Matt Roper @ 2015-06-23  1:30 UTC (permalink / raw)
  To: intel-gfx

Our low-level plane update functions, which get called while we're under vblank
evasion with IRQ's disabled, currently call intel_update_sprite_watermarks
which is a potentially sleeping operation.  This fumble has been present in the
code ever since we added atomic vblank evasion.  We actually do have a
mechanism to flag the need for wm updates and then perform them once evasion is
finished, but our handling of that flag is a bit busted at the moment (i.e.,
currently only being used when a plane gets disabled).  Let's fix that...

Matt Roper (2):
  drm/i915: Drop parameters to intel_update_sprite_watermarks()
  drm/i915: Update sprite watermarks outside vblank evasion

 drivers/gpu/drm/i915/intel_display.c | 26 +++++++++++++++++---------
 drivers/gpu/drm/i915/intel_drv.h     |  6 +-----
 drivers/gpu/drm/i915/intel_pm.c      | 21 +++++++++++++++------
 drivers/gpu/drm/i915/intel_sprite.c  | 21 ---------------------
 4 files changed, 33 insertions(+), 41 deletions(-)

-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-23 15:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23  1:30 [PATCH 0/2] Prevent (sleeping) wm updates under vblank evasion Matt Roper
2015-06-23  1:30 ` [PATCH 1/2] drm/i915: Drop parameters to intel_update_sprite_watermarks() Matt Roper
2015-06-23  1:30 ` [PATCH 2/2] drm/i915: Update sprite watermarks outside vblank evasion Matt Roper
2015-06-23  7:34   ` Daniel Vetter
2015-06-23 14:29     ` Matt Roper
2015-06-23 15:24       ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox