1. 06 12月, 2012 2 次提交
    • C
      drm/i915: Close race between processing unpin task and queueing the flip · e7d841ca
      Chris Wilson 提交于
      Before queuing the flip but crucially after attaching the unpin-work to
      the crtc, we continue to setup the unpin-work. However, should the
      hardware fire early, we see the connected unpin-work and queue the task.
      The task then promptly runs and unpins the fb before we finish taking
      the required references or even pinning it... Havoc.
      
      To close the race, we use the flip-pending atomic to indicate when the
      flip is finally setup and enqueued. So during the flip-done processing,
      we can check more accurately whether the flip was expected.
      
      v2: Add the appropriate mb() to ensure that the writes to the page-flip
      worker are complete prior to marking it active and emitting the MI_FLIP.
      On the read side, the mb should be enforced by the spinlocks.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: stable@vger.kernel.org
      [danvet: Review the barriers a bit, we need a write barrier both
      before and after updating ->pending. Similarly we need a read barrier
      in the interrupt handler both before and after reading ->pending. With
      well-ordered irqs only one barrier in each place should be required,
      but since this patch explicitly sets out to combat spurious interrupts
      with is staged activation of the unpin work we need to go full-bore on
      the barriers, too. Discussed with Chris Wilson on irc and changes
      acked by him.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      e7d841ca
    • D
      drm/i915: fixup l3 parity sysfs access check · ebf69cb8
      Daniel Vetter 提交于
      When l3 parity support for Haswell was enabled in
      
      commit f27b9265
      Author: Ben Widawsky <benjamin.widawsky@intel.com>
      Date:   Tue Jul 24 20:47:32 2012 -0700
      
          drm/i915: Expand DPF support to Haswell
      
      no one noticed that the patch which introduced this macro
      
      commit e1ef7cc2
      Author: Ben Widawsky <benjamin.widawsky@intel.com>
      Date:   Tue Jul 24 20:47:31 2012 -0700
      
          drm/i915: Macro to determine DPF support
      
      missed one spot. Fix this.
      
      Cc: Ben Widawsky <benjamin.widawsky@intel.com>
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57441Reviewed-by: NBen Widawsky <benjamin.widawsky@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      ebf69cb8
  2. 05 12月, 2012 2 次提交
  3. 04 12月, 2012 2 次提交
  4. 29 11月, 2012 12 次提交
  5. 24 11月, 2012 1 次提交
  6. 23 11月, 2012 2 次提交
  7. 22 11月, 2012 19 次提交