1. 14 Apr, 2021 1 commit
    • Imre Deak's avatar
      drm/i915: Fix modesetting in case of unexpected AUX timeouts · e42e7e58
      Imre Deak authored
      In case AUX failures happen unexpectedly during a modeset, the driver
      should still complete the modeset. In particular the driver should
      perform the link training sequence steps even in case of an AUX failure,
      as this sequence also includes port initialization steps. Not doing that
      can leave the port/pipe in a broken state and lead for instance to a
      flip done timeout.
      
      Fix this by continuing with link training (in a no-LTTPR mode) if the
      DPRX DPCD readout failed for some reason at the beginning of link
      training. After a successful connector detection we already have the
      DPCD read out and cached, so the failed repeated read for it should not
      cause a problem. Note that a partial AUX read could in theory partly
      overwrite the cached DPCD (and return error) but this overwrite should
      not happen if the returned values are corrupted (due to a timeout or
      some other IO error).
      
      Kudos to Ville to root cause the problem.
      
      Fixes: 264613b4 ("drm/i915: Disable LTTPR support when the DPCD rev < 1.4")
      References: https://gitlab.freedesktop.org/drm/intel/-/issues/3308
      Cc: stable@vger.kernel.org # 5.11
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210412232413.2755054-1-imre.deak@intel.com
      e42e7e58
  2. 12 Apr, 2021 4 commits
  3. 09 Apr, 2021 5 commits
  4. 08 Apr, 2021 6 commits
  5. 07 Apr, 2021 3 commits
  6. 06 Apr, 2021 1 commit
    • Xuezhi Zhang's avatar
      drm/i915/sysfs: convert snprintf to sysfs_emit · 11cda496
      Xuezhi Zhang authored
      Fix the following coccicheck warning:
      drivers/gpu/drm/i915//i915_sysfs.c:266:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:285:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:276:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:335:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:390:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:465:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:107:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:75:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:83:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:91:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:99:8-16:
      WARNING: use scnprintf or sprintf
      drivers/gpu/drm/i915//i915_sysfs.c:326:8-16:
      WARNING: use scnprintf or sprintf
      Signed-off-by: default avatarXuezhi Zhang <zhangxuezhi1@yulong.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210404084103.528211-1-llyz108@163.com
      11cda496
  7. 02 Apr, 2021 1 commit
  8. 01 Apr, 2021 7 commits
  9. 31 Mar, 2021 12 commits