1. 13 4月, 2015 1 次提交
  2. 10 4月, 2015 14 次提交
  3. 07 4月, 2015 2 次提交
    • J
      drm/i915: add i915 specific connector debugfs file for DPCD · aa7471d2
      Jani Nikula 提交于
      Occasionally it would be interesting to read some of the DPCD registers
      for debug purposes, without having to resort to logging. Add an i915
      specific i915_dpcd debugfs file for DP and eDP connectors to dump parts
      of the DPCD. Currently the DPCD addresses to be dumped are statically
      configured, and more can be added trivially.
      
      The implementation also makes it relatively easy to add other i915 and
      connector specific debugfs files in the future, as necessary.
      
      This is currently i915 specific just because there's no generic way to
      do AUX transactions given just a drm_connector. However it's all pretty
      straightforward to port to other drivers.
      
      v2: Add more DPCD registers to dump.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Reviewed-by: NBob Paauwe <bob.j.paauwe@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      aa7471d2
    • S
      drm/i915/skl: Enabling PSR2 SU with frame sync · 474d1ec4
      Sonika Jindal 提交于
      We make use of HW tracking for Selective update region and enable frame sync on
      sink. We use hardware's hardcoded data values for frame sync and GTC.
      
      v2: Add 3200x2000 resolution restriction with PSR2, move psr2_support to i915_psr
      struct, add aux_frame_sync to independently control aux frame sync, rename the
      TP2 TIME macro for 2500us (Rodrigo, Siva)
      v3: Moving the resolution restriction to intel_psr_enable so that we check it
      only once(Durga)
      
      Cc: Durgadoss R <durgadoss.r@intel.com>
      Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: NSonika Jindal <sonika.jindal@intel.com>
      Reviewed-by: NDurgadoss R <durgadoss.r@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      474d1ec4
  4. 01 4月, 2015 6 次提交
  5. 30 3月, 2015 1 次提交
  6. 28 3月, 2015 1 次提交
  7. 27 3月, 2015 4 次提交
  8. 26 3月, 2015 2 次提交
  9. 23 3月, 2015 1 次提交
  10. 20 3月, 2015 4 次提交
  11. 18 3月, 2015 4 次提交
    • D
      drm/i915: Update DRIVER_DATE to 20150313 · 86a930d5
      Daniel Vetter 提交于
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      86a930d5
    • J
      drm/i915: redefine WARN_ON_ONCE to include the condition · cd9bfacb
      Jani Nikula 提交于
      Same as
      
      commit c883ef1b
      Author: Mika Kuoppala <miku@iki.fi>
      Date:   Tue Oct 28 17:32:30 2014 +0200
      
          drm/i915: Redefine WARN_ON to include the condition
      
      but for WARN_ON_ONCE. Since the kernel WARN_ON_ONCE actually picks up
      *our* version of WARN_ON, we end up with messages like
      
      [  838.285319] WARN_ON(!__warned)
      
      which are not that helpful.
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      cd9bfacb
    • A
      drm/i915/skl: Added new macros · de43ae9d
      Akash Goel 提交于
      For SKL, register definition for RPNSWREQ (A008), RPSTAT1(A01C)
      have changed slightly. Also on SKL, frequency is specified in
      units of 16.66 MHZ, compared to 50 MHZ for most of the earlier
      platforms and the time values are expressed in units of 1.33 us,
      compared to 1.28 us for earlier platforms.
      Added new macros for the aforementioned changes.
      
      v2: Renamed the GT_FREQ_FROM_PERIOD macro to GT_INTERVAL_FROM_US (Damien)
      
      v3: Removed the implicit use of dev_priv in GT_INTERVAL_FROM_US macro (Chris)
      Signed-off-by: NAkash Goel <akash.goel@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      de43ae9d
    • V
      drm/i915: Rewrite VLV/CHV watermark code · ae80152d
      Ville Syrjälä 提交于
      Assuming the PND deadline mechanism works reasonably we should do
      memory requests as early as possible so that PND has schedule the
      requests more intelligently. Currently we're still calculating
      the watermarks as if VLV/CHV are identical to g4x, which isn't
      the case.
      
      The current code also seems to calculate insufficient watermarks
      and hence we're seeing some underruns, especially on high resolution
      displays.
      
      To fix it just rip out the current code and replace is with something
      that tries to utilize PND as efficiently as possible.
      
      We now calculate the WM watermark to trigger when the FIFO still has
      256us worth of data. 256us is the maximum deadline value supoorted by
      PND, so issuing memory requests earlier would mean we probably couldn't
      utilize the full FIFO as PND would attempt to return the data at
      least in at least 256us. We also clamp the watermark to at least 8
      cachelines as that's the magic watermark that enabling trickle feed
      would also impose. I'm assuming it matches some burst size.
      
      In theory we could just enable trickle feed and ignore the WM values,
      except trickle feed doesn't work with max fifo mode anyway, so we'd
      still need to calculate the SR watermarks. It seems cleaner to just
      disable trickle feed and calculate all watermarks the same way. Also
      trickle feed wouldn't account for the 256us max deadline value, thoguh
      that may be a moot point in non-max fifo mode sicne the FIFOs are fairly
      small.
      
      On VLV max fifo mode can be used with either primary or sprite planes.
      So the code now also checks all the planes (apart from the cursor)
      when calculating the SR plane watermark.
      
      We don't have to worry about the WM1 watermarks since we're using the
      PND deadline scheme which means the hardware ignores WM1 values.
      
      v2: Use plane->state->fb instead of plane->fb
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      ae80152d