1. 08 1月, 2010 1 次提交
  2. 02 12月, 2009 1 次提交
    • L
      drm/i915: Fix sync to vblank when VGA output is turned off · 778c9026
      Li Peng 提交于
      In current vblank-wait implementation, if we turn off VGA output,
      drm_wait_vblank will still wait on the disabled pipe until timeout,
      because vblank on the pipe is assumed be enabled. This would cause
      slow system response on some system such as moblin.
      
      This patch resolve the issue by adding a drm helper function
      drm_vblank_off which explicitly clear vblank_enabled[crtc], wake up
      any waiting queue and save last vblank counter before turning off
      crtc. It also slightly change drm_vblank_get to ensure that we will
      will return immediately if trying to wait on a disabled pipe.
      Signed-off-by: NLi Peng <peng.li@intel.com>
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      [anholt: hand-applied for conflicts with overlay changes]
      Signed-off-by: NEric Anholt <eric@anholt.net>
      778c9026
  3. 18 11月, 2009 2 次提交
  4. 11 11月, 2009 1 次提交
  5. 26 10月, 2009 1 次提交
  6. 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
  7. 09 8月, 2009 1 次提交
  8. 19 6月, 2009 1 次提交
  9. 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
  10. 25 2月, 2009 1 次提交
  11. 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
  12. 28 1月, 2009 1 次提交
  13. 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
  14. 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
  15. 25 11月, 2008 1 次提交
  16. 11 11月, 2008 1 次提交
  17. 23 10月, 2008 1 次提交
  18. 18 10月, 2008 3 次提交
  19. 25 8月, 2008 1 次提交
  20. 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
  21. 07 5月, 2008 1 次提交
  22. 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
  23. 07 2月, 2008 1 次提交
  24. 15 10月, 2007 2 次提交
  25. 11 7月, 2007 4 次提交
  26. 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
  27. 07 12月, 2006 5 次提交
  28. 22 9月, 2006 1 次提交
    • D
      drm: remove the DRM pci domain · 33229601
      Dave Airlie 提交于
      This patch removes the pci_domain from the DRM device structure, and
      gets it via a macro that either asks the platform or does the alpha special
      case. jgarzik asked for this to just use the platform magic, but I've no
      alpha experience and I'd rather not just break it and wait for someone to
      give out.
      Signed-off-by: NDave Airlie <airlied@linux.ie>
      33229601