1. 09 4月, 2009 2 次提交
    • E
      drm/i915: Allow tiling of objects with bit 17 swizzling by the CPU. · 280b713b
      Eric Anholt 提交于
      Save the bit 17 state of the pages when freeing the page list, and
      reswizzle them if necessary when rebinding the pages (in case they were
      swapped out).  Since we have userland with expectations that the swizzle
      enums let it pread and pwrite contents accurately, we can't expose a new
      swizzle enum for bit 17 (which it would have to GTT map to handle), so we
      handle it down in pread and pwrite by swizzling the copy when bit 17 of the
      page address is set.
      Signed-off-by: NEric Anholt <eric@anholt.net>
      280b713b
    • B
      drm/i915: Implement batch and ring buffer dumping · 6911a9b8
      Ben Gamari 提交于
      We create a debugfs node (i915_ringbuffer_data) to expose a hex dump
      of the ring buffer itself.  We also expose another debugfs node
      (i915_ringbuffer_info) with information on the state (i.e. head, tail
      addresses) of the ringbuffer.
      
      For batchbuffer dumping, we look at the device's active_list, dumping
      each object which has I915_GEM_DOMAIN_COMMAND in its read
      domains. This is all exposed through the dri/i915_batchbuffers debugfs
      file with a header for each object (giving the objects gtt_offset so
      that it can be matched against the offset given in the
      BATCH_BUFFER_START command.
      Signed-off-by: NBen Gamari <bgamari@gmail.com>
      Signed-off-by: NCarl Worth <cworth@cworth.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      6911a9b8
  2. 02 4月, 2009 2 次提交
  3. 28 3月, 2009 4 次提交
  4. 13 3月, 2009 1 次提交
  5. 11 3月, 2009 2 次提交
  6. 23 2月, 2009 1 次提交
  7. 20 2月, 2009 1 次提交
  8. 08 2月, 2009 3 次提交
  9. 16 1月, 2009 1 次提交
    • D
      drm/i915: add support for physical memory objects · 71acb5eb
      Dave Airlie 提交于
      This is an initial patch to do support for objects which needs physical
      contiguous main ram, cursors and overlay registers on older chipsets.
      
      These objects are bound on cursor bin, like pinning, and we copy
      the data to/from the backing store object into the real one on attach/detach.
      
      notes:
      possible over the top in attach/detach operations.
      no overlay support yet.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      71acb5eb
  10. 07 1月, 2009 1 次提交
  11. 29 12月, 2008 5 次提交
  12. 19 12月, 2008 1 次提交
  13. 04 12月, 2008 2 次提交
  14. 26 11月, 2008 1 次提交
  15. 25 11月, 2008 2 次提交
  16. 11 11月, 2008 3 次提交
  17. 03 11月, 2008 1 次提交
  18. 31 10月, 2008 1 次提交
  19. 28 10月, 2008 1 次提交
  20. 23 10月, 2008 1 次提交
    • K
      drm/i915: hold dev->struct_mutex and DRM lock during vblank ring operations · 9e44af79
      Keith Packard 提交于
      To synchronize clip lists with the X server, the DRM lock must be held while
      looking at drawable clip lists. To synchronize with other ring access, the
      ring mutex must be held while inserting commands into the ring.  Failure to
      do the first resulted in easy visual corruption when moving windows, and the
      second could have corrupted the ring with DRI2.
      
      Grabbing the DRM lock involves using the DRM tasklet mechanism, grabbing the
      ring mutex means potentially sleeping. Deal with both of these by always
      running the tasklet from a work handler.
      
      Also, protect from clip list changes since the vblank request was queued by
      making sure the window has at least one rectangle while looking inside,
      preventing oopses .
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      9e44af79
  21. 18 10月, 2008 4 次提交