1. 02 11月, 2013 2 次提交
    • D
      drm/i915: scramble reset support for DP port CRC on g4x · 84093603
      Daniel Vetter 提交于
      We need to reset the DP scrambler on every vsync to get stable CRCs.
      And since we can't use the normal pipe CRC on DP ports on g4x we
      really need them to be able to test modesetting issues on (e)DP
      outputs.
      
      Note that the DC balance reset is for SDVO port CRCs so we don't
      strictly need it. But better safe than sorry (and it's a nice template
      in case we ever want to grab port CRCs for e.g. audio checking).
      
      v2: Apply the suggestions from Damien's review.
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      84093603
    • D
      drm/i916: add "auto" pipe CRC source · 46a19188
      Daniel Vetter 提交于
      On gmch platforms the normal pipe source CRC registers don't work for
      DP and TV encoders. And on newer platforms the single pipe CRC has
      been replaced by a set of CRC at different stages in the platform.
      
      Now most of our userspace tests don't care one bit about the exact
      CRC, they simply want something that reflects any changes on the
      screen. Hence add a new auto target for platform agnostic tests to
      use.
      
      v2: Pass back the adjusted source so that it can be shown in debugfs.
      
      v3: I seem to be unable to get a stable CRC for DP ports. So let's
      just disable them for now when using the auto mode. Note that
      testcases need to be restructured so that they can dynamically skip
      connectors. They also first need to set up the desired mode
      configuration, since otherwise the auto mode won't do the right thing.
      
      v4: Don't leak the modeset mutex on error paths.
      
      v5: Spelling fix for the i9xx auto_source function.
      
      Cc: Damien Lespiau <damien.lespiau@intel.com>
      Reviewed-by: NDamien Lespiau <damien.lespiau@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      46a19188
  2. 01 11月, 2013 2 次提交
  3. 31 10月, 2013 3 次提交
  4. 30 10月, 2013 5 次提交
  5. 29 10月, 2013 1 次提交
  6. 28 10月, 2013 3 次提交
    • I
      drm/i915: remove device field from struct power_well · b4ed4484
      Imre Deak 提交于
      The only real need for this field was in
      i915_{request,release}_power_well, but there we can get at it by a
      container_of magic. Also since in the future we'll have multiple power
      wells each with its own power_well struct it makes sense to remove the
      field from there where it'd be just redundancy.
      Suggested-by: NPaulo Zanoni <paulo.zanoni@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b4ed4484
    • I
      drm/i915: use power get/put instead of set for power on after init · baa70707
      Imre Deak 提交于
      Currently we make sure that all power domains are enabled during driver
      init and turn off unneded ones only after the first modeset. Similarly
      during suspend we enable all power domains, which will remain on through
      the following resume until the first modeset.
      
      This logic is supported by intel_set_power_well() in the power domain
      framework. It would be nice to simplify the API, so that we only have
      get/put functions and make it more explicit on the higher level how this
      "power well on during init" logic works. This will make it also easier
      if in the future we want to shorten the time the power wells are on.
      
      For this add a new device private flag tracking whether we have the
      power wells on because of init/suspend and use only
      intel_display_power_get()/put(). As nothing else uses
      intel_set_power_well() we can remove it.
      
      This also fixes
      
      commit 6efdf354
      Author: Imre Deak <imre.deak@intel.com>
      Date:   Wed Oct 16 17:25:52 2013 +0300
      
          drm/i915: enable only the needed power domains during modeset
      
      where removing intel_set_power_well() resulted in not releasing the
      reference on the power well that was taken during init and thus leaving
      the power well on all the time. Regression reported by Paulo.
      
      v2:
      - move the init_power_on flag to the power_domains struct (Daniel)
      
      v3:
      - add note about this being a regression fix too (Paulo)
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      baa70707
    • I
      drm/i915: prepare for multiple power wells · 83c00f55
      Imre Deak 提交于
      In the future we'll need to support multiple power wells, so prepare for
      that here. Create a new power domains struct which contains all
      power domain/well specific fields. Since we'll have one lock protecting
      all power wells, move power_well->lock to the new struct too.
      
      No functional change.
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      83c00f55
  7. 27 10月, 2013 3 次提交
  8. 22 10月, 2013 17 次提交
  9. 21 10月, 2013 3 次提交
  10. 18 10月, 2013 1 次提交