1. 03 10月, 2012 2 次提交
  2. 27 9月, 2012 1 次提交
  3. 26 9月, 2012 4 次提交
  4. 25 9月, 2012 1 次提交
    • Y
      PCI: Fix default vga ref_count · 84544a1d
      Yinghai Lu 提交于
      when __ARCH_HAS_VGA_DEFAULT_DEVICE is not defined, aka EFIFB is not used,
      for static path, vga_default setting is through vga_arbiter_add_pci_device.
      and later x86 pci_fixup_video, will skip setting again.
      - subsys_initcall(vga_arb_device_init) come first to call
      vga_arbiter_add_pci_device. It will call pci_get_dev to hold one reference.
      
      for hotplug add path, even vga_arbiter_add_pci_device is called via
      notifier, but it will check VGA_RSRC_LEGACY_MASK that is not set for
      hotplug path.  So x86 pci_fixup_video will take over to call
      vga_set_default_device().  It will not hold one refrence.
      
      Later for hotplug remove path, vga_arbiter_del_pci_device that does not
      check VGA_RSRC_LEGACY_MASK will call put_device and it will cause ref_count
      to decrease extra. that will have that pci device get deleted early
      wrongly.
      
      Need to make get/put balance for both cases.
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Cc: x86@kernel.org
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: Matthew Garrett <mjg@redhat.com>
      84544a1d
  5. 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
  6. 20 9月, 2012 1 次提交
  7. 18 9月, 2012 1 次提交
  8. 17 9月, 2012 3 次提交
    • W
      drm/i915: HDMI - Clear Audio Enable bit for Hot Plug · b98b6016
      Wang Xingchao 提交于
      Clear Audio Enable bit to trigger unsolicated event to notify Audio
      Driver part the HDMI hot plug change. The patch fixed the bug when
      remove HDMI cable the bit was not cleared correctly.
      
      In intel_hdmi_dpms(), if intel_hdmi->has_audio been true, the "Audio enable bit" will
      be set to trigger unsolicated event to notify Alsa driver the change.
      
      intel_hdmi->has_audio will be reset to false from intel_hdmi_detect() after
      remove the hdmi cable, here's debug log:
      
      [  187.494153] [drm:output_poll_execute], [CONNECTOR:17:HDMI-A-1] status updated from 1 to 2
      [  187.525349] [drm:intel_hdmi_detect], HDMI: has_audio = 0
      
      so when comes back to intel_hdmi_dpms(), the "Audio enable bit" will not be cleared. And this
      cause the eld infomation and pin presence doesnot update accordingly in alsa driver side.
      
      This patch will also trigger unsolicated event to alsa driver to notify the hot plug event:
      
      [  187.853159] ALSA sound/pci/hda/patch_hdmi.c:772 HDMI hot plug event: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=1
      [  187.853268] ALSA sound/pci/hda/patch_hdmi.c:990 HDMI status: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=0
      Signed-off-by: NWang Xingchao <xingchao.wang@intel.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b98b6016
    • C
      drm/i915: Reduce a pin-leak BUG into a WARN · 7e81a42e
      Chris Wilson 提交于
      Pin-leaks persist and we get the perennial bug reports of machine
      lockups to the BUG_ON(pin_count==MAX). If we instead loudly report that
      the object cannot be pinned at that time it should prevent the driver from
      locking up, and hopefully restore a semblance of working whilst still
      leaving us a OOPS to debug.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      7e81a42e
    • D
      drm/i915: enable lvds pin pairs before dpll on gen2 · 5b5896e4
      Daniel Vetter 提交于
      Otherwise things migt not work too well.
      
      Breakage introduced in
      
      commit eb1cbe48
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Wed Mar 28 23:12:16 2012 +0200
      
          drm/i915: split PLL update code out of i9xx_crtc_mode_set
      
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: stable@vger.kernel.org (for 3.5 only)
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      5b5896e4
  9. 14 9月, 2012 3 次提交
  10. 13 9月, 2012 17 次提交
  11. 11 9月, 2012 2 次提交
  12. 09 9月, 2012 1 次提交
  13. 07 9月, 2012 2 次提交