1. 08 8月, 2014 3 次提交
    • V
      drm/i915: Kill intel_crtc->vbl_wait · 210871b6
      Ville Syrjälä 提交于
      Share the waitqueue that drm_irq uses when performing the vblank evade
      trick for atomic pipe updates.
      
      v2: Keep intel_pipe_handle_vblank() (Chris)
      Suggested-by: NDaniel Vetter <daniel@ffwll.ch>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      210871b6
    • V
      drm/i915: State readout and cross-checking for dp_m2_n2 · b95af8be
      Vandana Kannan 提交于
      Adding relevant read out comparison code, in check_crtc_state, for the new
      member of crtc_config, dp_m2_n2, which was introduced to store link_m_n
      values for a DP downclock mode (if available). Suggested by Daniel.
      
      v2: Changed patch title.
      Daniel's review comments incorporated.
      Added relevant state readout code for M2_N2. dp_m2_n2 comparison to be done
      only when high RR is not in use (This is because alternate m_n register
      programming will be done only when low RR is being used).
      
      v3: Modified call to get_m2_n2 which had dp_m_n as param by mistake.
      Compare dp_m_n and dp_m2_n2 for gen 7 and below. compare the structures
      based on DRRS state for gen 8 and above.
      Save and restore M2 N2 registers for gen 7 and below
      
      v4: For Gen>=8, check M_N registers against dp_m_n and dp_m2_n2 as there is
      only one set of M_N registers
      
      v5: Removed the chunk which saves and restores M2_N2 registers. Modified
      get_m_n() to get M2_N2 registers as well. Modified the macro which compares
      hw.dp_m_n against sw.dp_m2_n2/sw.dp_m_n for gen > 8.
      
      v6: Added check to compare dp_m2_n2 only when DRRS is enabled
      
      v7: Modified drrs check to use has_drrs
      
      v8: Add has_drrs check before reading M2_N2 registers
      Signed-off-by: NVandana Kannan <vandana.kannan@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b95af8be
    • V
      drm/i915: Set M2_N2 registers during mode set · f769cd24
      Vandana Kannan 提交于
      For Gen < 8, set M2_N2 registers on every mode set. This is required to make
      sure M2_N2 registers are set during boot, resume from sleep for cross-
      checking the state. The register is set only if DRRS is supported.
      
      v2: Patch rebased
      
      v3: Daniel's review comments
      	- Removed HAS_DRRS(dev) and added bool has_drrs to pipe_config to
      	track drrs support
      
      v4: Jesse's review comments
      	- Made changes to set m2_n2 in intel_dp_set_m_n()
      Signed-off-by: NVandana Kannan <vandana.kannan@intel.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f769cd24
  2. 07 8月, 2014 1 次提交
    • S
      drm/i915: Add correct hw/sw config check for DSI encoder · f573de5a
      Shobhit Kumar 提交于
      Check in vlv_crtc_clock_get if DPLL is enabled before calling dpio read.
      It will not be enabled for DSI and avoid dpio read WARN dumps.
      
      Absence of ->get_config was causing other WARN dumps as well. Update
      dpll_hw_state as well correctly
      
      v2: Address review comments by Daniel
          - Check if DPLL is enabled rather than checking pipe output type
          - set adjusted_mode->flags to 0 in compute_config rather than using
            pipe_config->quirks
          - Add helper function in intel_dsi_pll.c and use that in intel_dsi.c
          - updated dpll_hw_state correctly
          - Updated commit message and title
      
      v3: Address review comments by Imre
          - Proper masking of P1, M1 fields while computing divisors
          - assert in case of bpp mismatch
          - guard for divide by 0 while computing pclk
          - Use ARRAY_SIZE instead of direct calculation
      Signed-off-by: NShobhit Kumar <shobhit.kumar@intel.com>
      Reviewed-by: NImre Deak <imre.deak@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f573de5a
  3. 23 7月, 2014 9 次提交
  4. 22 7月, 2014 1 次提交
    • D
      drm/i915: add DP 1.2 MST support (v0.7) · 0e32b39c
      Dave Airlie 提交于
      This adds DP 1.2 MST support on Haswell systems.
      
      Notes:
      a) this reworks irq handling for DP MST ports, so that we can
      avoid the mode config locking in the current hpd handlers, as
      we need to process up/down msgs at a better time.
      
      Changes since v0.1:
      use PORT_PCH_HOTPLUG to detect short vs long pulses
      add a workqueue to deal with digital events as they can get blocked on the
      main workqueue beyong mode_config mutex
      fix a bunch of modeset checker warnings
      acks irqs in the driver
      cleanup the MST encoders
      
      Changes since v0.2:
      check irq status again in work handler
      move around bring up and tear down to fix DPMS on/off
      use path properties.
      
      Changes since v0.3:
      updates for mst apis
      more state checker fixes
      irq handling improvements
      fbcon handling support
      improved reference counting of link - fixes redocking.
      
      Changes since v0.4:
      handle gpu reset hpd reinit without oopsing
      check link status on HPD irqs
      fix suspend/resume
      
      Changes since v0.5:
      use proper functions to get max link/lane counts
      fix another checker backtrace - due to connectors disappearing.
      set output type in more places fro, unknown->displayport
      don't talk to devices if no HPD asserted
      check mst on short irqs only
      check link status properly
      rebase onto prepping irq changes.
      drop unsued force_act
      
      Changes since v0.6:
      cleanup unused struct entry.
      
      [airlied: fix some sparse warnings].
      Reviewed-by: NTodd Previte <tprevite@gmail.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      0e32b39c
  5. 21 7月, 2014 2 次提交
  6. 18 7月, 2014 1 次提交
  7. 15 7月, 2014 1 次提交
    • D
      drm/i915: Track the primary plane correctly when reassigning planes · 9c8958bc
      Daniel Vetter 提交于
      commit 98ec7739
      Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Date:   Wed Apr 30 17:43:01 2014 +0300
      
          drm/i915: Make primary_enabled match the actual hardware state
      
      introduced more accurate tracking of the primary plane and some
      checks. It missed the plane->pipe reassignement code for gen2/3
      though, which the checks caught and resulted in WARNING backtraces.
      
      Since we only use this path if the plane is on and on the wrong pipe
      we can just always set the tracking bit to "enabled".
      Reported-and-tested-by: NPaul Bolle <pebolle@tiscali.nl>
      Cc: Paul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      9c8958bc
  8. 14 7月, 2014 1 次提交
  9. 12 7月, 2014 2 次提交
  10. 11 7月, 2014 12 次提交
  11. 10 7月, 2014 4 次提交
  12. 09 7月, 2014 3 次提交