1. 08 Dec, 2012 1 commit
    • Paulo Zanoni's avatar
      drm/i915: fix hsw_fdi_link_train "retry" code · 248138b5
      Paulo Zanoni authored
      We were previously doing exactly what the "mode set sequence for CRT"
      document mandates, but whenever we failed to train the link in the
      first tentative, all the other subsequent retries always failed. In
      one of my monitors that has 47 modes, I was usually getting around 3
      failures when running "testdisplay -a".
      
      After this patch, even if we fail in the first tentative, we can
      succeed in the next ones. So now when running "testdisplay -a" I see
      around 3 times the message "FDI link training done on step 1" and no
      failures.
      
      Notice that now the "retry" code looks a lot like the DP retry code.
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      248138b5
  2. 06 Dec, 2012 1 commit
    • Chris Wilson's avatar
      drm/i915: Close race between processing unpin task and queueing the flip · e7d841ca
      Chris Wilson authored
      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: default avatarChris 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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      e7d841ca
  3. 05 Dec, 2012 1 commit
  4. 04 Dec, 2012 2 commits
  5. 03 Dec, 2012 2 commits
  6. 29 Nov, 2012 12 commits
  7. 23 Nov, 2012 1 commit
  8. 22 Nov, 2012 3 commits
  9. 21 Nov, 2012 17 commits