1. 27 9月, 2012 1 次提交
    • J
      drm/i915: use adjusted_mode instead of mode for checking the 6bpc force flag · 0c96c65b
      Jani Nikula 提交于
      The dithering introduced in
      
      commit 3b5c78a3
      Author: Adam Jackson <ajax@redhat.com>
      Date:   Tue Dec 13 15:41:00 2011 -0800
      
          drm/i915/dp: Dither down to 6bpc if it makes the mode fit
      
      stores the INTEL_MODE_DP_FORCE_6BPC flag in the private_flags of the
      adjusted mode, while i9xx_crtc_mode_set() and ironlake_crtc_mode_set() use
      the original mode, without the flag, so it would never have any
      effect. However, the BPC was clamped by VBT settings, making things work by
      coincidence, until that part was removed in
      
      commit 4344b813
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Fri Aug 10 11:10:20 2012 +0200
      
      Use adjusted_mode instead of mode when checking for
      INTEL_MODE_DP_FORCE_6BPC to make the flag have effect.
      
      v2: Don't forget to fix this in i9xx_crtc_mode_set() also, pointed out by
      Daniel both before and after sending the first patch.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47621
      CC: Adam Jackson <ajax@redhat.com>
      CC: stable@vger.kernel.org
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Reviewed-by: NAdam Jackson <ajax@redhat.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      0c96c65b
  2. 26 9月, 2012 3 次提交
  3. 24 9月, 2012 1 次提交
  4. 21 9月, 2012 2 次提交
    • D
      drm/nouveau: add dmi quirk for gpio reset · 6c06d608
      Dave Airlie 提交于
      This fixes the gpio reset problem so the Retina MBP works, but avoids
      breaking the Dell systems. Ben will work on a better solution for 3.7.
      
      Tested by me on retina MBP.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6c06d608
    • S
      drm/radeon: Prevent leak of scratch register on resume from suspend · 16c58081
      Simon Kitching 提交于
      Cards typically have 5-7 scratch registers; one of these is reserved for
      rdev->rptr_save_reg. Unfortunately the reservation is done in function
      r100_cp_init, which is called by all drivers except r600 - and this
      function is also invoked on resume from suspend. After several resumes,
      no scratch registers are free and graphics acceleration is disabled.
      
      Dmesg then reports either:
         *ERROR* radeon: cp failed to get scratch reg (-22).
         *ERROR* radeon: cp isn't working(-22).
         radeon 0000:01:00.0: failed initializing CP (-22).
      or:
         *ERROR* radeon: failed to get scratch reg (-22).
         *ERROR* radeon: failed testing IB on GFX ring (-22).
         *ERROR* ib ring test failed (-22).
      
      The chain of calls on boot for all except r600 is:
      radeon_init -> ... -> (rXXX_init) -> rXXX_startup -> r100_cp_init
      
      The chain of calls on resume for all except r600 is:
      rXXX_resume -> rXXX_startup -> r100_cp_init.
      
      R600 correctly allocates rptr_save_reg in r600_init (ie once only, not
      in resume). However moving the code into the init functions for all
      drivers means touching 4 drivers. So instead, this patch just adds a
      test in r100_cp_init to avoid reallocating on resume. As the rdev
      structure is allocated via kzalloc in radeon_driver_load_kms, and zero
      is not a valid registerid, zero safely implies not-yet-allocated.
      
      This issue appears to have been introduced in c7eff978 (3.6.0-rcN)
      Signed-off-by: NSimon Kitching <skitching@vonos.net>
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      16c58081
  5. 20 9月, 2012 33 次提交