1. 18 11月, 2010 1 次提交
  2. 05 10月, 2010 1 次提交
  3. 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
  4. 03 9月, 2010 1 次提交
  5. 27 8月, 2010 1 次提交
  6. 26 8月, 2010 1 次提交
  7. 17 8月, 2010 1 次提交
    • B
      drm/nouveau: fix race condition when under memory pressure · 415e6186
      Ben Skeggs 提交于
      When VRAM is running out it's possible that the client's push buffers get
      evicted to main memory.  When they're validated back in, the GPU may
      be used for the copy back to VRAM, but the existing synchronisation code
      only deals with inter-channel sync, not sync between PFIFO and PGRAPH on
      the same channel.  This leads to PFIFO fetching from command buffers that
      haven't quite been copied by PGRAPH yet.
      
      This patch marks push buffers as so, and forces any GPU-assisted buffer
      moves to be done on a different channel, which triggers the correct
      synchronisation to happen before we submit them.
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      415e6186
  8. 10 8月, 2010 1 次提交
  9. 13 7月, 2010 2 次提交
  10. 20 4月, 2010 1 次提交
  11. 09 4月, 2010 1 次提交
  12. 08 4月, 2010 1 次提交
  13. 25 2月, 2010 4 次提交
  14. 11 2月, 2010 1 次提交
  15. 09 2月, 2010 1 次提交
  16. 25 1月, 2010 1 次提交
  17. 15 1月, 2010 1 次提交
    • L
      drm/nouveau: check pushbuffer bounds in ioctl · 12f735b7
      Luca Barbieri 提交于
      Currently there is no check that the pushbuffer request bounds are inside
      the TTM BO.
      
      This allows to instruct the kernel to do relocations on user-selected
      addresses, since the relocation bounds checking relies on the request
      bounds.
      
      This can oops the kernel accidentally and is easily exploitable.
      
      This patch adds bound checking and alignment checking for ->offset and
      ->nr_dwords.
      
      It also makes some variables unsigned, which should have no effect,
      but prevents possible bounds checking problems.
      Signed-off-by: NLuca Barbieri <luca@luca-barbieri.com>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      12f735b7
  18. 11 1月, 2010 2 次提交
  19. 15 12月, 2009 1 次提交
  20. 11 12月, 2009 1 次提交
    • B
      drm/nouveau: Add DRM driver for NVIDIA GPUs · 6ee73861
      Ben Skeggs 提交于
      This adds a drm/kms staging non-API stable driver for GPUs from NVIDIA.
      
      This driver is a KMS-based driver and requires a compatible nouveau
      userspace libdrm and nouveau X.org driver.
      
      This driver requires firmware files not available in this kernel tree,
      interested parties can find them via the nouveau project git archive.
      
      This driver is reverse engineered, and is in no way supported by nVidia.
      
      Support for nearly the complete range of nvidia hw from nv04->g80 (nv50)
      is available, and the kms driver should support driving nearly all
      output types (displayport is under development still) along with supporting
      suspend/resume.
      
      This work is all from the upstream nouveau project found at
      nouveau.freedesktop.org.
      
      The original authors list from nouveau git tree is:
      Anssi Hannula <anssi.hannula@iki.fi>
      Ben Skeggs <bskeggs@redhat.com>
      Francisco Jerez <currojerez@riseup.net>
      Maarten Maathuis <madman2003@gmail.com>
      Marcin Kościelnicki <koriakin@0x04.net>
      Matthew Garrett <mjg@redhat.com>
      Matt Parnell <mparnell@gmail.com>
      Patrice Mandin <patmandin@gmail.com>
      Pekka Paalanen <pq@iki.fi>
      Xavier Chantry <shiningxc@gmail.com>
      along with project founder Stephane Marchesin <marchesin@icps.u-strasbg.fr>
      Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      6ee73861