1. 03 10月, 2012 2 次提交
  2. 26 6月, 2012 1 次提交
    • B
      drm/nouveau/fbcon: using nv_two_heads is not a good idea · 9bd0c15f
      Ben Skeggs 提交于
      nv_two_heads() was never meant to be used outside of pre-nv50 code.  The
      code checks for >= NV_10 for 2 CRTCs, then downgrades a few specific
      chipsets to 1 CRTC based on (pci_device & 0x0ff0).
      
      The breakage example seen is on GTX 560Ti, with a pciid of 0x1200, which
      gets detected as an NV20 (0x020x) with 1 CRTC by nv_two_heads(), causing
      memory corruption because there's actually 2 CRTCs..
      
      This switches fbcon to use the CRTC count directly from the mode_config
      structure, which will also fix the same issue on Kepler boards which have
      4 CRTCs.
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      9bd0c15f
  3. 24 5月, 2012 2 次提交
  4. 09 2月, 2012 1 次提交
  5. 21 12月, 2011 1 次提交
  6. 20 12月, 2011 1 次提交
  7. 16 11月, 2011 1 次提交
  8. 10 11月, 2011 1 次提交
  9. 23 6月, 2011 2 次提交
  10. 20 4月, 2011 1 次提交
  11. 25 2月, 2011 2 次提交
  12. 17 1月, 2011 1 次提交
  13. 15 1月, 2011 1 次提交
  14. 07 1月, 2011 1 次提交
  15. 21 12月, 2010 2 次提交
  16. 08 12月, 2010 1 次提交
  17. 03 12月, 2010 3 次提交
  18. 07 10月, 2010 1 次提交
    • D
      drm: don't drop handle reference on unload · dab8dcfa
      Dave Airlie 提交于
      since the handle references are all tied to a file_priv, and when it disappears
      all the handle refs go with it.
      
      The fbcon ones we'd only notice on unload, but the nouveau notifier one
      would would happen on reboot.
      
      nouveau: Reported-by: Marc Dionne <marc.c.dionne@gmail.com>
      nouveau: Tested-by: Marc Dionne <marc.c.dionne@gmail.com>
      i915 unload: Reported-by: Keith Packard <keithp@keithp.com>
      Acked-by: NBen Skeggs <bskeggs@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      dab8dcfa
  19. 06 10月, 2010 1 次提交
  20. 01 10月, 2010 1 次提交
    • D
      drm/gem: handlecount isn't really a kref so don't make it one. · 29d08b3e
      Dave Airlie 提交于
      There were lots of places being inconsistent since handle count
      looked like a kref but it really wasn't.
      
      Fix this my just making handle count an atomic on the object,
      and have it increase the normal object kref.
      
      Now i915/radeon/nouveau drivers can drop the normal reference on
      userspace object creation, and have the handle hold it.
      
      This patch fixes a memory leak or corruption on unload, because
      the driver had no way of knowing if a handle had been actually
      added for this object, and the fbcon object needed to know this
      to clean itself up properly.
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      29d08b3e
  21. 11 8月, 2010 1 次提交
  22. 06 8月, 2010 1 次提交
  23. 21 7月, 2010 1 次提交
  24. 13 7月, 2010 2 次提交
  25. 08 6月, 2010 1 次提交
  26. 18 5月, 2010 3 次提交
  27. 08 4月, 2010 1 次提交
  28. 07 4月, 2010 3 次提交