1. 18 11月, 2009 2 次提交
  2. 21 9月, 2009 1 次提交
    • D
      drm/vgaarb: add VGA arbitration support to the drm and kms. · 28d52043
      Dave Airlie 提交于
      VGA arb requires DRM support for non-kms drivers, to turn on/off
      irqs when disabling the mem/io regions.
      
      VGA arb requires KMS support for GPUs where we can turn off VGA
      decoding. Currently we know how to do this for intel and radeon
      kms drivers, which allows them to be removed from the arbiter.
      
      This patch comes from Fedora rawhide kernel.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      28d52043
  3. 09 8月, 2009 1 次提交
  4. 19 6月, 2009 1 次提交
  5. 04 6月, 2009 1 次提交
    • D
      drm: fix irq naming for kms drivers. · b8da7de5
      Dave Airlie 提交于
      allocating devname in the i915 driver was a hack originally and I
      forgot to figure out how to do this properly back then.
      
      So this is the cleaner version that just picks devname or driver name
      in the irq code.
      
      It removes the devname allocs from the i915 driver.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      b8da7de5
  6. 25 2月, 2009 1 次提交
  7. 08 2月, 2009 1 次提交
    • J
      drm/i915: capture last_vblank count at IRQ uninstall time too · 14d200c5
      Jesse Barnes 提交于
      In dc1336ff (set vblank enable flag correctly
      across IRQ uninstall), we made sure drivers that uninstall their interrupt
      handler set the vblank enabled flag correctly, so that when interrupts are
      re-enabled, vblank interrupts & counts work as expected.  However I missed the
      last_vblank field:  it needs to be updated as well, otherwise, at the next
      drm_update_vblank_count we'll end up comparing a current count to a stale
      one (the last one captured by the disable function), which may trigger the
      wraparound handling, leading to a jumpy counter and hangs in drm_wait_vblank.
      
      The jumpy counter can prevent the DRM_WAIT_ON from returning success if the
      difference between the current count and the requested count is greater than
      2^23, leading to timeouts or hangs, if the ioctl is restarted in a loop (as
      is the case in libdrm < 2.4.4).
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Acked-by: NMichel Dänzer <michel@daenzer.net>
      Tested-by: NTimo Aaltonen <tjaalton@cc.hut.fi>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      14d200c5
  8. 28 1月, 2009 1 次提交
  9. 11 1月, 2009 1 次提交
    • J
      drm/i915: set vblank enabled flag correctly across IRQ install/uninstall · dc1336ff
      Jesse Barnes 提交于
      In the absence of kernel mode setting, many drivers disable IRQs across VT
      switch.  The core DRM vblank code is missing a check for this case however;
      even after IRQ disable, the vblank code will still have the vblank_enabled
      flag set, so unless we track the fact that they're disabled at IRQ uninstall
      time, when we VT switch back in we won't actually re-enable them, which means
      any apps waiting on vblank before the switch will hang.
      
      This patch does that and also adds a sanity check to the wait condition to
      look for the irq_enabled flag in general, as well as adding a wakeup to the
      IRQ uninstall path.
      
      Fixes fdo bug #18879 with compiz hangs at VT switch.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@linux.ie>
      dc1336ff
  10. 29 12月, 2008 2 次提交
    • E
      drm: Add a debug node for vblank state. · fede5c91
      Eric Anholt 提交于
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@linux.ie>
      fede5c91
    • D
      DRM: add mode setting support · f453ba04
      Dave Airlie 提交于
      Add mode setting support to the DRM layer.
      
      This is a fairly big chunk of work that allows DRM drivers to provide
      full output control and configuration capabilities to userspace.  It was
      motivated by several factors:
        - the fb layer's APIs aren't suited for anything but simple
          configurations
        - coordination between the fb layer, DRM layer, and various userspace
          drivers is poor to non-existent (radeonfb excepted)
        - user level mode setting drivers makes displaying panic & oops
          messages more difficult
        - suspend/resume of graphics state is possible in many more
          configurations with kernel level support
      
      This commit just adds the core DRM part of the mode setting APIs.
      Driver specific commits using these new structure and APIs will follow.
      
      Co-authors: Jesse Barnes <jbarnes@virtuousgeek.org>, Jakob Bornecrantz <jakob@tungstengraphics.com>
      Contributors: Alan Hourihane <alanh@tungstengraphics.com>, Maarten Maathuis <madman2003@gmail.com>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      f453ba04
  11. 25 11月, 2008 1 次提交
  12. 11 11月, 2008 1 次提交
  13. 23 10月, 2008 1 次提交
  14. 18 10月, 2008 3 次提交
  15. 25 8月, 2008 1 次提交
  16. 14 7月, 2008 1 次提交
    • D
      drm: reorganise drm tree to be more future proof. · c0e09200
      Dave Airlie 提交于
      With the coming of kernel based modesetting and the memory manager stuff,
      the everything in one directory approach was getting very ugly and
      starting to be unmanageable.
      
      This restructures the drm along the lines of other kernel components.
      
      It creates a drivers/gpu/drm directory and moves the hw drivers into
      subdirectores. It moves the includes into an include/drm, and
      sets up the unifdef for the userspace headers we should be exporting.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      c0e09200
  17. 07 5月, 2008 1 次提交
  18. 26 4月, 2008 1 次提交
    • J
      drm/vbl rework: rework how the drm deals with vblank. · ac741ab7
      Jesse Barnes 提交于
      Other Authors: Michel Dänzer <michel@tungstengraphics.com>
      mga: Ian Romanick <idr@us.ibm.com>
      via: Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
      
      This re-works the DRM internals to provide a better interface for drivers
      to expose vblank on multiple crtcs.
      
      It also includes work done by Michel on making i915 triple buffering and pageflipping work properly.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      ac741ab7
  19. 07 2月, 2008 1 次提交
  20. 15 10月, 2007 2 次提交
  21. 11 7月, 2007 4 次提交
  22. 23 3月, 2007 1 次提交
    • T
      drm: fix driver deadlock with AIGLX and reclaim_buffers_locked · 040ac320
      Thomas Hellstrom 提交于
      Bugzilla Bug #9457
      
      Add refcounting of user waiters to the DRM hardware lock, so that we can use
      DRM_LOCK_CONT flag more conservatively.
      
      Also add a kernel waiter refcount that if nonzero transfers the lock for the
      kernel context when it is released. This is useful when waiting for idle and can be used for very simple fence object driver implementations for the new memory manager
      Signed-off-by: NDave Airlie <airlied@linux.ie>
      040ac320
  23. 07 12月, 2006 5 次提交
  24. 22 9月, 2006 3 次提交
  25. 03 7月, 2006 1 次提交
  26. 02 2月, 2006 1 次提交