1. 21 10月, 2011 2 次提交
  2. 22 9月, 2011 2 次提交
    • S
      drm/i915: Enable SDVO hotplug interrupts for HDMI and DVI · cc68c81a
      Simon Farnsworth 提交于
      I was seeing a nasty 5 frame glitch every 10 seconds, caused by the
      poll for connection on DVI attached by SDVO.
      
      As my SDVO DVI supports hotplug detect interrupts, the fix is to
      enable them, and hook them in to the various bits of driver
      infrastructure so that they work reliably.
      
      Note that this is only tested on single-function DVI-D SDVOs, on two
      platforms (965GME and 945GSE), and has not been checked against a
      specification document.
      
      With lots of help from Adam Jackson <ajax@redhat.com> on IRC.
      Signed-off-by: NSimon Farnsworth <simon.farnsworth@onelan.co.uk>
      Reviewed-by: NKeith Packard <keithp@keithp.com>
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      cc68c81a
    • W
      drm/i915: pass ELD to HDMI/DP audio driver · e0dac65e
      Wu Fengguang 提交于
      Add ELD support for Intel Eaglelake, IbexPeak/Ironlake,
      SandyBridge/CougarPoint and IvyBridge/PantherPoint chips.
      
      ELD (EDID-Like Data) describes to the HDMI/DP audio driver the audio
      capabilities of the plugged monitor. It's built and passed to audio
      driver in 2 steps:
      
      (1) at get_modes time, parse EDID and save ELD to drm_connector.eld[]
      
      (2) at mode_set time, write drm_connector.eld[] to the Transcoder's hw
          ELD buffer and set the ELD_valid bit to inform HDMI/DP audio driver
      
      This patch is tested OK on G45/HDMI, IbexPeak/HDMI and IvyBridge/HDMI+DP.
      Test scheme: plug in the HDMI/DP monitor, and run
      
              cat /proc/asound/card0/eld*
      
      to check if the monitor name, HDMI/DP type, etc. show up correctly.
      
      Minor imperfection: the GEN5_AUD_CNTL_ST/DIP_Port_Select field always
      reads 0 (reserved). Without knowing the port number, I worked it around
      by setting the ELD_valid bit for ALL the three ports. It's tested to not
      be a problem, because the audio driver will find invalid ELD data and
      hence rightfully abort, even when it sees the ELD_valid indicator.
      
      Thanks to Zhenyu and Pierre-Louis for a lot of valuable help and testing.
      
      CC: Zhao Yakui <yakui.zhao@intel.com>
      CC: Wang Zhenyu <zhenyu.z.wang@intel.com>
      CC: Jeremy Bush <contractfrombelow@gmail.com>
      CC: Christopher White <c.white@pulseforce.com>
      CC: Pierre-Louis Bossart <pierre-louis.bossart@intel.com>
      CC: Paul Menzel <paulepanter@users.sourceforge.net>
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      e0dac65e
  3. 20 9月, 2011 1 次提交
  4. 16 8月, 2011 1 次提交
  5. 04 8月, 2011 2 次提交
  6. 09 7月, 2011 1 次提交
  7. 08 7月, 2011 1 次提交
    • J
      drm/i915: split out Ironlake pipe bpp picking code · 5a354204
      Jesse Barnes 提交于
      Figuring out which pipe bpp to use is a bit painful.  It depends on both
      the encoder and display configuration attached to a pipe.  For instance,
      to drive a 24bpp framebuffer out to an 18bpp panel, we need to use 6bpc
      on the pipe but also enable dithering.  But driving that same
      framebuffer to a DisplayPort output on another pipe means using 8bpc and
      no dithering.
      
      So split out and enhance the code to handle the various cases, returning
      an appropriate pipe bpp as well as whether dithering should be enabled.
      
      Save the resulting pipe bpp in the intel_crtc struct for use by encoders
      in calculating bandwidth requirements (defaults to 24bpp on pre-ILK).
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      5a354204
  8. 29 6月, 2011 1 次提交
    • J
      drm/i915: load a ring frequency scaling table v3 · 23b2f8bb
      Jesse Barnes 提交于
      The ring frequency scaling table tells the PCU to treat certain GPU
      frequencies as if they were a given CPU frequency for purposes of
      scaling the ring frequency.  Normally the PCU will scale the ring
      frequency based on the CPU P-state, but with the table present, it will
      also take the GPU frequency into account.
      
      The main downside of keeping the ring frequency high while the CPU is
      at a low frequency (or asleep altogether) is increased power
      consumption.  But then if you're keeping your GPU busy, you probably
      want the extra performance.
      
      v2:
        - add units to debug table header (from Eric)
        - use tsc_khz as a fallback if the cpufreq driver doesn't give us a freq
          (from Chris)
      v3:
        - fix comments & debug output
        - remove unneeded force wake get/put
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Tested-by: NEric Anholt <eric@anholt.net>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NKeith Packard <keithp@keithp.com>
      23b2f8bb
  9. 05 6月, 2011 1 次提交
  10. 14 5月, 2011 1 次提交
  11. 11 5月, 2011 3 次提交
  12. 27 4月, 2011 1 次提交
  13. 13 4月, 2011 1 次提交
  14. 09 4月, 2011 1 次提交
  15. 31 3月, 2011 1 次提交
  16. 22 2月, 2011 2 次提交
  17. 16 2月, 2011 1 次提交
  18. 10 2月, 2011 1 次提交
  19. 19 1月, 2011 1 次提交
  20. 12 1月, 2011 1 次提交
  21. 18 12月, 2010 1 次提交
  22. 06 12月, 2010 1 次提交
  23. 30 11月, 2010 1 次提交
  24. 24 11月, 2010 2 次提交
  25. 04 11月, 2010 1 次提交
  26. 22 10月, 2010 1 次提交
  27. 08 10月, 2010 2 次提交
  28. 03 10月, 2010 1 次提交
  29. 18 9月, 2010 1 次提交
    • C
      drm/i915: use GMBUS to manage i2c links · f899fc64
      Chris Wilson 提交于
      Use the GMBUS interface rather than direct bit banging to grab the EDID
      over DDC (and for other forms of auxiliary communication with external
      display controllers). The hope is that this method will be much faster
      and more reliable than bit banging for fetching EDIDs from buggy monitors
      or through switches, though we still preserve the bit banging as a
      fallback in case GMBUS fails.
      
      Based on an original patch by Jesse Barnes.
      
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      f899fc64
  30. 15 9月, 2010 2 次提交
  31. 13 9月, 2010 1 次提交
    • C
      drm/i915: Fix an overlay regression from 7e7d76c3 · f7abfe8b
      Chris Wilson 提交于
      When separating out the prepare/commit into its own separate functions
      we overlooked that the intel_crtc->dpms_mode was being used elsewhere to
      check on the actual status of the pipe.
      
      Track that bit of logic separately from the actual dpms mode, so there
      is no confusion should we be able to handle multiple dpms modes, nor
      any semantic conflict between prepare/commit and dpms.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      f7abfe8b