1. 06 11月, 2009 4 次提交
    • D
      drm/i915: implement drmmode overlay support v4 · 02e792fb
      Daniel Vetter 提交于
      This implements intel overlay support for kms via a device-specific
      ioctl. Thomas Hellstrom brought up the idea of a general ioctl (on
      dri-devel). We've reached the conclusion that such an infrastructure
      only makes sense when multiple kms overlay implementations exists,
      which atm don't (and it doesn't look like this is gonna change).
      
      Open issues:
      - Runs in sync with the gpu, i.e. unnecessary waiting. I've decided
        to wait on this because the hw tends to hang when changing something
        in this area. I left some dummy functions as infrastructure.
      - polyphase filtering uses a static table.
      - uses uninterruptible sleeps. Unfortunately the alternatives may
        unnecessarily wedged the hw if/when we timeout too early (and
        userspace only overloaded the batch buffers with stuff worth a few
        secs of gpu time).
      
      Changes since v1:
      - fix off-by-one misconception on my side. This fixes fullscreen
        playback.
      Changes since v2:
      - add underrun detection as spec'ed for i965.
      - flush caches properly, fixing visual corruptions.
      Changes since v4:
      - fix up cache flushing of overlay memory regs.
      - killed require_pipe_a logic - it hangs the chip.
      
      Tested-By: diego.abelenda@gmail.com (on a 865G)
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      [anholt: Resolved against the MADVISE ioctl going in before this one]
      Signed-off-by: NEric Anholt <eric@anholt.net>
      02e792fb
    • D
      drm/i915: kill superflous IS_I855 macro · f0f8a9ce
      Daniel Vetter 提交于
      It is identical to I85X. Use that one instead.
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      [anholt: fix conflicts against the display function pointer stuff]
      Signed-off-by: NEric Anholt <eric@anholt.net>
      f0f8a9ce
    • J
      drm/i915: add render standby support · 97f5ab66
      Jesse Barnes 提交于
      Render standy allows the GPU to power down the render unit when idle.
      In order for this to work, it needs a page of graphics memory to save
      state.  This patch allocates that page and enables the feature on
      supported chipsets.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      97f5ab66
    • Z
      drm/i915: Fix and cleanup DPLL calculation for Ironlake · 4bfe6b68
      Zhenyu Wang 提交于
      When the ideal error range can't be reached, this will safely use
      a most closed one. Clean up some dumb codes in DPLL function too.
      
      This fixes DPLL clock issue against one monitor at 1680x1050@60hz.
      Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      4bfe6b68
  2. 24 10月, 2009 3 次提交
  3. 20 10月, 2009 2 次提交
  4. 16 10月, 2009 1 次提交
    • C
      drm/i915: Install a fence register for fbc on g4x · 0d9c7789
      Chris Wilson 提交于
      To enable framebuffer compression on a g4x, we not only need the buffer
      to tiled (X only), we also need to hold a fence register for the buffer.
      Currently we only install a fence register for pre-i965s when setting up
      the scanout buffer. Rather than adding some convoluted logic to
      g4x_enable_fbc() to acquire a fence register, and perhaps to
      g4x_disable_fbc() to release it again, we can extend the acquisition
      during setup to all chipsets.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      0d9c7789
  5. 14 10月, 2009 3 次提交
  6. 06 10月, 2009 1 次提交
    • D
      drm/fb: add more correct 8/16/24/32 bpp fb support. · b8c00ac5
      Dave Airlie 提交于
      The previous patches had some unwanted side effects, I've fixed
      the lack of 32bpp working, and fixed up 16bpp so it should also work.
      
      this also adds the interface to allow the driver to set a preferred
      console depth so for example low memory rn50 can set it to 8bpp.
      It also catches 24bpp on cards that can't do it and forces 32bpp.
      
      Tested on r100/r600/i945.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      b8c00ac5
  7. 05 10月, 2009 1 次提交
  8. 29 9月, 2009 1 次提交
  9. 22 9月, 2009 2 次提交
  10. 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
  11. 18 9月, 2009 6 次提交
  12. 11 9月, 2009 3 次提交
  13. 07 9月, 2009 1 次提交
  14. 05 9月, 2009 6 次提交
  15. 03 9月, 2009 1 次提交
  16. 31 8月, 2009 1 次提交
    • D
      drm/kms: move driver specific fb common code to helper functions (v2) · 785b93ef
      Dave Airlie 提交于
      Initially I always meant this code to be shared, but things
      ran away from me before I got to it.
      
      This refactors the i915 and radeon kms fbdev interaction layers
      out into generic helpers + driver specific pieces.
      
      It moves all the panic/sysrq enhancements to the core file,
      and stores a linked list of kernel fbs. This could possibly be
      improved to only store the fb which has fbcon on it for panics
      etc.
      
      radeon retains some specific codes used for a big endian
      workaround.
      
      changes:
      fix oops in v1
      fix freeing path for crtc_info
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      785b93ef
  17. 25 8月, 2009 3 次提交