1. 01 6月, 2013 3 次提交
    • D
      drm/i915: drop a few really redundant WARNs in hsw mode_set · 64eae941
      Daniel Vetter 提交于
      - Correct cpu->pch display matching is already check when we detect
        the PCH type at driver load.
      - Plane/pipe state is already checked both when a) enabling, b)
        disabling and in c) the modeset state checker. No need to go
        overboard and also check it in in between a) and b).
      
      Cc: Paulo Zanoni <przanoni@gmail.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      64eae941
    • D
      drm/i915: add basic pipe config dump support · c0b03411
      Daniel Vetter 提交于
      All this pipe config abstraction adds another layer of complexity, so
      it's good to have better visibility into what's going on exactly.
      Doesn't dump out everything yet, and some bits are a bit duplicated
      but this should be a good start.
      
      Note that at boot-up a lot of the fields are 0 even for enabled pipes,
      this is simply because our hw state readout code doesn't support
      everything.
      
      v2: Remove a few more now redudant debug output lines.
      
      v3: Review from Paulo
      - use transcoder_name
      - fix up format specifiers
      - add missing ':' in debug output
      
      Cc: Paulo Zanoni <przanoni@gmail.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      c0b03411
    • D
      drm/i915: hw state readout&check support for cpu_transcoder · eccb140b
      Daniel Vetter 提交于
      This allows us to drop a bunch of ugly hacks and finally implement
      what
      
      commit cc464b2a
      Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Date:   Fri Jan 25 16:59:16 2013 -0200
      
          drm/i915: set TRANSCODER_EDP even earlier
      
      tried to achieve, but that was reverted again in
      
      commit bba2181c
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Fri Mar 22 10:53:40 2013 +0100
      
          Revert "drm/i915: set TRANSCODER_EDP even earlier"
      
      Now we should always have a consistent cpu_transcoder in the
      pipe_config.
      
      v2: Fix up the code as spotted by Paulo:
      - read the register for real
      - assign the right pipes
      - break out if the hw state doesn't make sense
      
      v3: Shut up gcc.
      
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      eccb140b
  2. 24 5月, 2013 2 次提交
  3. 23 5月, 2013 1 次提交
  4. 21 5月, 2013 3 次提交
  5. 15 5月, 2013 3 次提交
  6. 11 5月, 2013 19 次提交
  7. 06 5月, 2013 6 次提交
  8. 04 5月, 2013 1 次提交
  9. 30 4月, 2013 2 次提交
    • D
      drm/i915: move border color writes to pfit_enable · 5a80c45c
      Daniel Vetter 提交于
      Writing hw registers from compute_config?
      Just say no!
      
      In this case not too horrible since we write a constant 0, and only
      debugging would put something else in there. But while checking that
      code I've noticed that this register disappeared on pch platforms, so
      fix that up, too.
      
      And adjust the comment a bit, it's outdated.
      Reviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      5a80c45c
    • D
      drm/i915: hw state readout support for pipe timings · 1bd1bd80
      Daniel Vetter 提交于
      This does duplicate the logic in intel_crtc_mode_get a bit, but the
      issue is that we also should handle interlace modes and other insanity
      correctly.
      
      Hence I've opted for a sligthly more elaborate route where we first
      read out the crtc timings for the adjusted mode, and then optionally
      (not sure if we really need it) compute the modeline from that.
      
      v2: Also read out the pipe source dimensions into the requested mode.
      
      v3: Rebase on top of the moved cpu_transcoder.
      
      v4: Simplify CHECK_FLAGS logic as suggested by Chris Wilson. Also
      properly #undef that macro again.
      
      Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com> (v3)
      [danvet: Use the existing mask for interlaced bits, spotted by Mika.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      1bd1bd80