1. 04 3月, 2016 2 次提交
    • V
      drm/i915: Store rawclk_freq in dev_priv · e7dc33f3
      Ville Syrjälä 提交于
      Generalize rawclk handling by storing it in dev_priv.
      
      Presumably our hrawclk readout works at least for CTG and ELK
      since we've been using it for DP AUX on those platforms. There
      are no real docs anymore after configdb vanished, so the only
      reference is the public CTG GMCH spec. What bits are listed in
      that doc match our code. The ELK GMCH spec have no relevant
      details unfortunately.
      
      The PNV situation is less clear. Starting from
      commit aa17cdb4 ("drm/i915: initialize backlight max from VBT")
      we assume that the CTG/ELK hrawclk readout works for PNV as well.
      At least the results *seem* reasonable for one PNV machine (Lenovo
      Ideapad S10-3t). Sadly the PNV GMCH spec doesn't have the goods on
      the relevant register either.
      
      So let's keep assuming it works for PNV,ELK,CTG and read it out on
      those platforms. G33 also has hrawclk according to some notes
      in BSpec, but we don't actually need it for anything, so let's not
      even try to read it out there.
      
      v2: Rebase due to IS_VALLYVIEW vs. IS_CHERRYVIEW split
          Use KHz() all over, and kill off a few useless temp variables
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1456932138-14004-2-git-send-email-ville.syrjala@linux.intel.comReviewed-by: NJani Nikula <jani.nikula@intel.com>
      e7dc33f3
    • T
      drm/i915: Add wait_for_us · 3f177625
      Tvrtko Ursulin 提交于
      This is for callers who want micro-second precision but are not
      waiting from the atomic context.
      
      v2:
        * Fix atomic waits. (Dave Gordon)
        * Use USEC_PER_SEC and USEC_PER_MSEC. (Chris Wilson)
      Signed-off-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Dave Gordon <david.s.gordon@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      3f177625
  2. 01 3月, 2016 1 次提交
  3. 17 2月, 2016 1 次提交
  4. 16 2月, 2016 2 次提交
  5. 13 2月, 2016 1 次提交
  6. 11 2月, 2016 1 次提交
  7. 03 2月, 2016 1 次提交
  8. 30 1月, 2016 1 次提交
  9. 20 1月, 2016 1 次提交
  10. 14 1月, 2016 1 次提交
  11. 12 1月, 2016 1 次提交
  12. 16 12月, 2015 1 次提交
  13. 11 12月, 2015 2 次提交
    • V
      drm: Pass 'name' to drm_encoder_init() · 13a3d91f
      Ville Syrjälä 提交于
      Done with coccinelle for the most part. However, it thinks '...' is
      part of the semantic patch, so I put an 'int DOTDOTDOT' placeholder
      in its place and got rid of it with sed afterwards.
      
      @@
      identifier dev, encoder, funcs;
      @@
       int drm_encoder_init(struct drm_device *dev,
                            struct drm_encoder *encoder,
                            const struct drm_encoder_funcs *funcs,
                            int encoder_type
      +                     ,const char *name, int DOTDOTDOT
                            )
      { ... }
      
      @@
      identifier dev, encoder, funcs;
      @@
       int drm_encoder_init(struct drm_device *dev,
                            struct drm_encoder *encoder,
                            const struct drm_encoder_funcs *funcs,
                            int encoder_type
      +                     ,const char *name, int DOTDOTDOT
                            );
      
      @@
      expression E1, E2, E3, E4;
      @@
       drm_encoder_init(E1, E2, E3, E4
      +                 ,NULL
                        )
      
      v2: Add ', or NULL...' to @name kernel doc (Jani)
          Annotate the function with __printf() attribute (Jani)
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1449670818-2966-1-git-send-email-ville.syrjala@linux.intel.com
      13a3d91f
    • R
      drm/i915: Fix random aux transactions failures. · 14e01889
      Rodrigo Vivi 提交于
      Mainly aux communications on sink_crc
      were failing a lot randomly on recent platforms.
      The first solution was to try to use intel_dp_dpcd_read_wake, but then
      it was suggested to move retries to drm level.
      
      Since drm level was already taking care of retries and didn't want
      to through random retries on that level the second solution was to
      put the retries at aux_transfer layer what was nacked.
      
      So I realized we had so many retries in different places and
      started to organize that a bit. During this organization I noticed
      that we weren't handing at all the case were the message size was
      zeroed. And this was exactly the case that was affecting sink_crc.
      
      Also we weren't respect BSPec who says this size message = 0 or > 20
      are forbidden.
      
      It is a fact that we still have no clue why we are getting this
      forbidden value there. But anyway we need to handle that for now
      so we return -EBUSY and drm level takes care of the retries that
      are already in place.
      
      v2: Print debug messsage when this case is reached as suggested
          by Jani.
      v3: This patch is crucial to make PSR test cases reliably working
          on SKL. So split this patch from the aux re-org series and add
          a FIXME as a promisse to continue that effort besides reminding
          to remove the sleep when that is merged.
      v4: Use a bigger usleep range so kernel doesn't need to be interrupted
          on a exact time, as suggested by Paulo.
          But anyway we should discuss the better time
          ranges on the EBUSY handle re-org at drm level since this one here
          is temporary.
      v5: s/1000,1500/1000, 1500/ (by Paulo).
      
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Tested-by: Daniel Stone <daniels@collabora.com> # SKL
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1449774747-2772-1-git-send-email-rodrigo.vivi@intel.com
      14e01889
  14. 10 12月, 2015 2 次提交
  15. 09 12月, 2015 1 次提交
  16. 02 12月, 2015 3 次提交
  17. 25 11月, 2015 1 次提交
  18. 24 11月, 2015 1 次提交
  19. 18 11月, 2015 9 次提交
  20. 17 11月, 2015 2 次提交
  21. 16 11月, 2015 5 次提交