1. 03 5月, 2016 1 次提交
  2. 17 3月, 2016 1 次提交
  3. 10 3月, 2016 1 次提交
  4. 08 3月, 2016 1 次提交
    • L
      Revert "drm/radeon: call hpd_irq_event on resume" · 256faedc
      Linus Torvalds 提交于
      This reverts commit dbb17a21.
      
      It turns out that commit can cause problems for systems with multiple
      GPUs, and causes X to hang on at least a HP Pavilion dv7 with hybrid
      graphics.
      
      This got noticed originally in 4.4.4, where this patch had already
      gotten back-ported, but 4.5-rc7 was verified to have the same problem.
      
      Alexander Deucher says:
       "It looks like you have a muxed system so I suspect what's happening is
        that one of the display is being reported as connected for both the
        IGP and the dGPU and then the desktop environment gets confused or
        there some sort problem in the detect functions since the mux is not
        switched to the dGPU.  I don't see an easy fix unless Dave has any
        ideas.  I'd say just revert for now"
      Reported-by: NJörg-Volker Peetz <jvpeetz@web.de>
      Acked-by: NAlexander Deucher <Alexander.Deucher@amd.com>
      Cc: Dave Airlie <airlied@gmail.com>
      Cc: stable@kernel.org  # wherever dbb17a21 got back-ported
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      256faedc
  5. 09 1月, 2016 1 次提交
  6. 03 12月, 2015 1 次提交
  7. 03 10月, 2015 1 次提交
  8. 24 9月, 2015 1 次提交
  9. 09 7月, 2015 2 次提交
  10. 11 6月, 2015 1 次提交
  11. 26 5月, 2015 1 次提交
  12. 20 3月, 2015 1 次提交
  13. 23 1月, 2015 1 次提交
  14. 12 11月, 2014 1 次提交
  15. 17 10月, 2014 1 次提交
  16. 03 10月, 2014 1 次提交
  17. 23 9月, 2014 1 次提交
  18. 19 9月, 2014 1 次提交
  19. 01 9月, 2014 1 次提交
    • M
      drm/radeon: use common fence implementation for fences, v4 · 954605ca
      Maarten Lankhorst 提交于
      Changes since v1:
      - Kill the sw interrupt dance, add and use
        radeon_irq_kms_sw_irq_get_delayed instead.
      - Change custom wait function, lockdep complained about it.
        Holding exclusive_lock in the wait function might cause deadlocks.
        Instead do all the processing in .enable_signaling, and wait
        on the global fence_queue to pick up gpu resets.
      - Process all fences in radeon_gpu_reset after reset to close a race
        with the trylock in enable_signaling.
      Changes since v2:
      - Small changes to work with the rewritten lockup recovery patches.
      Changes since v3:
      - Call radeon_fence_schedule_check when exclusive_lock cannot be
        acquired to always cause a wake up.
      - Reset irqs from hangup check.
      - Drop reading seqno in the callback, use cached value.
      - Fix indentation in radeon_fence_default_wait
      - Add a radeon_test_signaled function, drop a few test_bit calls.
      - Make to_radeon_fence global.
      Signed-off-by: NMaarten Lankhorst <maarten.lankhorst@canonical.com>
      Reviewed-by: NChristian König <christian.koenig@amd.com>
      954605ca
  20. 28 8月, 2014 4 次提交
  21. 19 8月, 2014 2 次提交
  22. 11 8月, 2014 1 次提交
  23. 05 8月, 2014 3 次提交
  24. 22 7月, 2014 1 次提交
  25. 14 7月, 2014 1 次提交
  26. 10 6月, 2014 2 次提交
  27. 02 6月, 2014 1 次提交
  28. 31 5月, 2014 1 次提交
    • D
      drm/radeon: Resume fbcon last · 18ee37a4
      Daniel Vetter 提交于
      So a few people complained that
      
      commit 177cf92d
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Tue Apr 1 22:14:59 2014 +0200
      
          drm/crtc-helpers: fix dpms on logic
      
      which was merged into 3.15-rc1, broke resume on radeons. Strangely git
      bisect lead everyone to
      
      commit 25f397a4
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Fri Jul 19 18:57:11 2013 +0200
      
          drm/crtc-helper: explicit DPMS on after modeset
      
      which was merged long ago and actually part of 3.14.
      
      Digging deeper I've noticed (again) that the call to
      drm_helper_resume_force_mode in the radeon resume handlers was a no-op
      previously because everything gets shut down on suspend. radeon does
      this with explicit calls to drm_helper_connector_dpms with DPMS_OFF.
      But with 177c we now force the dpms state to ON, so suddenly
      resume_force_mode actually forced the crtcs back on.
      
      This is the intention of the change after all, the problem is that
      radeon resumes the fbdev console layer _before_ restoring the display,
      through calling fb_set_suspend. And fbcon does an immediate ->set_par,
      which in turn causes the same forced mode restore to happen.
      
      Two concurrent modeset operations didn't lead to happiness. Fix this
      by delaying the fbcon resume until the end of the readeon resum
      functions.
      
      v2: Fix up a bit of the spelling fail.
      
      References: https://lkml.org/lkml/2014/5/29/1043
      References: https://lkml.org/lkml/2014/5/2/388
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=74751Tested-by: NKen Moffat <zarniwhoop@ntlworld.com>
      Cc: Alex Deucher <alexdeucher@gmail.com>
      Cc: Ken Moffat <zarniwhoop@ntlworld.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@gmail.com>
      18ee37a4
  29. 06 5月, 2014 1 次提交
  30. 23 4月, 2014 1 次提交
    • D
      drm: Rip out totally bogus vga_switcheroo->can_switch locking · fc8fd40e
      Daniel Vetter 提交于
      So I just wanted to add a new field to struct drm_device and
      accidentally stumbled over something. According to comments
      dev->open_count is protected by dev->count_lock, but that's totally
      not the case. It's protected by drm_global_mutex.
      
      Unfortunately the vga switcheroo callbacks took this comment at face
      value. The problem is that we can't just take the drm_global_mutex
      because:
      - It would lead to a locking inversion with the driver load/unload
        paths.
      - It wouldn't actually protect anything, for that we'd need to wrap
        the entire vga switcheroo code in the drm_global_mutex. And I'm not
        sure whether that would actually solve anything.
      
      What we probably want is a try_to_grab_switcheroo reference kind of
      thing which is used in the driver's ->open callback. Then we could
      move all that ->can_switch madness into the vga switcheroo core where
      it really belongs.
      
      But since that would amount to real work take the easy way out and
      just add a comment. It's definitely not going to make anything worse
      since doing switcheroo state changes while restarting X just isn't
      recommended. Even though the delayed switching code does exactly that.
      
      v2:
      - Simplify the ->can_switch implementations more (Thierry)
      - Fix comment about the dev->open_count locking (Thierry)
      
      Cc: Thierry Reding <treding@nvidia.com>
      Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> (v1)
      Reviewed-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      fc8fd40e
  31. 17 4月, 2014 1 次提交
  32. 03 4月, 2014 1 次提交