1. 19 3月, 2014 1 次提交
  2. 08 1月, 2014 1 次提交
  3. 12 12月, 2013 2 次提交
  4. 11 12月, 2013 1 次提交
  5. 04 12月, 2013 1 次提交
  6. 28 11月, 2013 1 次提交
  7. 21 11月, 2013 1 次提交
  8. 19 11月, 2013 2 次提交
  9. 09 11月, 2013 5 次提交
  10. 29 10月, 2013 1 次提交
  11. 28 10月, 2013 1 次提交
  12. 10 10月, 2013 1 次提交
  13. 09 10月, 2013 1 次提交
  14. 01 10月, 2013 4 次提交
  15. 13 9月, 2013 2 次提交
  16. 10 9月, 2013 1 次提交
  17. 09 9月, 2013 1 次提交
  18. 04 9月, 2013 1 次提交
  19. 23 8月, 2013 1 次提交
  20. 06 8月, 2013 2 次提交
  21. 05 8月, 2013 1 次提交
  22. 18 7月, 2013 1 次提交
    • R
      drm/i915: Hook PSR functionality · 4906557e
      Rodrigo Vivi 提交于
      PSR must be enabled after transcoder and port are running.
      And it is only available for HSW.
      
      v2: move enable/disable to intel_ddi
      v3: The spec suggests PSR should be disabled even before backlight (by pzanoni)
      v4: also disabling and enabling whenever panel is disabled/enabled.
      v5: make it last patch to avoid breaking whenever bisecting. So calling for
          update and force exit came to this patch along with enable/disable calls.
      v6: Remove unused and unecessary psr_enable/disable calls, as notice by Paulo.
      
      CC: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@gmail.com>
      [danvet: Drop the psr exit code in the busy ioctl since I didn't merge
      that part of the infrastructure yet - it needs more thought.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      4906557e
  23. 13 7月, 2013 1 次提交
  24. 28 6月, 2013 3 次提交
    • P
      drm/i915: fix the "ghost eDP" encoder unwind path · 15b1d171
      Paulo Zanoni 提交于
      Because calling intel_dp_encoder_destroy inside
      intel_edp_init_connector is just wrong. This is the initialization
      path, so we should properly unwind all the initialization through the
      whole caller stack.
      
      On the intel_dp_encoder_destroy function we do the following:
      1 - Call i2c_del_adapter
      2 - Call drm_encoder_cleanup
      3 - If edp:
      3.1 - Cancel panel_vdd_work
      3.2 - Call ironlake_panel_vdd_of_sync
      4 - Free the encoder
      
      And here is how we unwind each specific step:
      1 - We have intel_dp_init_connector -> intel_dp_i2c_init ->
          i2c_dp_aux_add_bus -> i2c_add_adapter, so we call
          i2c_del_dapter at intel_dp_init_connector
      2 - Call it in the same function that called drm_encoder_init
      3 - Call it in the same function that called INIT_DELAYED_WORK
      4 - Free it in the same function that allocated it
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Reviewed-by: NZoltan Nyul <zoltan.nyul@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      15b1d171
    • P
      drm/i915: fix the "ghost eDP" connector unwind path · b2f246a8
      Paulo Zanoni 提交于
      Because calling intel_dp_destroy inside intel_edp_init_connector is
      just wrong. This is the initialization path, so we should properly
      unwind all the initialization through the whole caller stack.
      
      On the intel_dp_destroy function we do the following:
      1 - Free edid if it exists
      2 - Call intel_panel_fini in case it's eDP
      3 - Call drm_sysfs_connector_remove
      4 - Call drm_connector_cleanup
      5 - Free the connector
      
      And here is how we unwind each specific step:
      1 - No need as we still didn't assign anything
      2 - No need as we still didn't call intel_panel_init
      3 - Call it in the same function that called drm_sysfs_connector_add
      4 - Call it in the same function that called drm_connector_init
      5 - Free it in the same function that allocated it
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Reviewed-by: NZoltan Nyul <zoltan.nyul@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b2f246a8
    • P
      drm/i915: propagate errors from intel_dp_init_connector · 16c25533
      Paulo Zanoni 提交于
      In case we detect a "ghost eDP", intel_edp_init_connector frees both
      the connector and encoder and then returns. On Haswell, intel_ddi_init
      then tries to use the freed encoder on the HDMI initialization path
      since the following commit:
      
      commit 21a8e6a4
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Wed Apr 10 23:28:35 2013 +0200
          drm/i915: don't setup hdmi for port D edp in ddi_init
      
      So now on intel_ddi_init we check for the "ghost eDP" case and return
      without trying to initialize HDMI. This way we won't try to read the
      freed "intel_encoder" struct in the next "if" statement.
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Reviewed-by: NZoltan Nyul <zoltan.nyul@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      16c25533
  25. 06 6月, 2013 1 次提交
  26. 04 6月, 2013 1 次提交
    • D
      drm/i915: store adjusted dotclock in adjusted_mode->clock · ff9a6750
      Daniel Vetter 提交于
      ... not the port clock. This allows us to kill the funny semantics
      around pixel_target_clock.
      
      Since the dpll code still needs the real port clock, add a new
      port_clock field to the pipe configuration. Handling the default case
      for that one is a bit tricky, since encoders might not consistently
      overwrite it when retrying the crtc/encoder bw arbitrage step in the
      compute config stage. Hence we need to always clear port_clock and
      update it again if the encoder hasn't put in something more specific.
      This can't be done in one step since the encoder might want to adjust
      the mode first.
      
      I was a bit on the fence whether I should subsume the pixel multiplier
      handling into the port_clock, too. But then I decided against this
      since it's on an abstract level still the dotclock of the adjusted
      mode, and only our hw makes it a bit special due to the separate pixel
      mulitplier setting (which requires that the dpll runs at the
      non-multiplied dotclock).
      
      So after this patch the adjusted_mode accurately describes the mode we
      feed into the port, after the panel fitter and pixel multiplier (or
      line doubling, if we ever bother with that) have done their job.
      Since the fdi link is between the pfit and the pixel multiplier steps
      we need to be careful with calculating the fdi link config.
      
      v2: Fix up ilk cpu pll handling.
      
      v3: Introduce an fdi_dotclock variable in ironlake_fdi_compute_config
      to make it clearer that we transmit the adjusted_mode without the
      pixel multiplier taken into account. The old code multiplied the the
      available link bw with the pixel multiplier, which results in the same
      fdi configuration, but is much more confusing.
      
      v4: Rebase on top of Imre's is_cpu_edp removal.
      
      v5: Rebase on top of Paulo's haswell watermark fixes, which introduce
      a new place which looked at the pixel_clock and so needed conversion.
      
      v6: Split out prep patches as requested by Paulo Zanoni. Also rebase
      on top of the fdi dotclock handling fix in the fdi lanes/bw
      computation code.
      
      Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> (v3)
      Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> (v6)
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      ff9a6750
  27. 01 6月, 2013 1 次提交
    • 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