Skip to content
  1. Apr 01, 2020
  2. Mar 31, 2020
  3. Mar 30, 2020
  4. Mar 28, 2020
  5. Mar 27, 2020
  6. Mar 26, 2020
    • Uma Shankar's avatar
      drm/i915/display: Fix mode private_flags comparison at atomic_check · d5e56705
      Uma Shankar authored
      This patch fixes the private_flags of mode to be checked and
      compared against uapi.mode and not from hw.mode. This helps
      properly trigger modeset at boot if desired by driver.
      
      It helps resolve audio_codec initialization issues if display
      is connected at boot. Initial discussion on this issue has happened
      on below thread:
      https://patchwork.freedesktop.org/series/74828/
      
      v2: No functional change. Fixed the Closes tag and added
      Maarten's RB.
      
      v3: Added Fixes tag.
      
      Cc: Ville Syrjä <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com>
      Cc: Souza, Jose <jose.souza@intel.com>
      Fixes: 58d124ea ("drm/i915: Complete crtc hw/uapi split, v6.")
      Closes: https://gitlab.freedesktop.org/drm/intel/issues/1363
      
      
      Suggested-by: default avatarVille Syrjä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarUma Shankar <uma.shankar@intel.com>
      Signed-off-by: default avatarSweeAun Khor <swee.aun.khor@intel.com>
      Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200326125111.11081-1-uma.shankar@intel.com
      d5e56705
    • Chris Wilson's avatar
      drm/i915/display: Return early after MISSING_CASE for write_dp_sdp · d121f63c
      Chris Wilson authored
      
      
      Avoid using the uninitialised len along the impossible error path to
      shut the compiler up:
      
      drivers/gpu/drm/i915/display/intel_dp.c:4928 intel_write_dp_sdp() error: uninitialized symbol 'len'.
      
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200325140754.12636-1-chris@chris-wilson.co.uk
      d121f63c
    • Chris Wilson's avatar
      drm/i915/display: Remove useless but deadly local · 7015f127
      Chris Wilson authored
      
      
      Beware dereferencing the NULL pointer prior to checking for its
      existence.
      
      <1>[    3.324694] BUG: kernel NULL pointer dereference, address: 0000000000000000
      <1>[    3.324696] #PF: supervisor read access in kernel mode
      <4>[    3.324704] hardirqs last  enabled at (751): [<ffffffff812a4f77>] d_lookup+0x57/0xa0
      <1>[    3.324709] #PF: error_code(0x0000) - not-present page
      <4>[    3.324716] hardirqs last disabled at (752): [<ffffffff8125a1b9>] __slab_alloc.isra.89.constprop.94+0x19/0x70
      <4>[    3.324720] softirqs last  enabled at (402): [<ffffffff81e00385>] __do_softirq+0x385/0x47f
      <6>[    3.324725] PGD 0 P4D 0
      <4>[    3.324733] softirqs last disabled at (395): [<ffffffff810bab6a>] irq_exit+0xba/0xc0
      <4>[    3.324762] Oops: 0000 [#1] PREEMPT SMP PTI
      <4>[    3.324768] CPU: 0 PID: 380 Comm: systemd-udevd Not tainted 5.6.0-rc7-CI-CI_DRM_8189+ #1
      <4>[    3.324776] Hardware name: MSI MS-7924/Z97M-G43(MS-7924), BIOS V1.12 02/15/2016
      <4>[    3.324840] RIP: 0010:intel_read_infoframe+0x3a/0x170 [i915]
      <4>[    3.324848] Code: 65 48 8b 04 25 28 00 00 00 48 89 44 24 20 31 c0 83 f9 0a 77 12 ba 01 00 00 00 48 d3 e2 f7 c2 c0 05 00 00 48 0f 45 c7 83 fb 03 <4c> 8b 20 0f 84 f2 00 00 00 83 fb 0a 0f 84 f3 00 00 00 83 fb 07 0f
      <4>[    3.324865] RSP: 0018:ffffc900005438b0 EFLAGS: 00010212
      <4>[    3.324871] RAX: 0000000000000000 RBX: 0000000000000082 RCX: 0000000000000001
      <4>[    3.324879] RDX: 0000000000000002 RSI: ffff8883f8309000 RDI: ffff8883f80cbe00
      <4>[    3.324887] RBP: ffff8883f8309b34 R08: 000000000000000e R09: 0000000000000001
      <4>[    3.324894] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8883f7ac0000
      <4>[    3.324901] R13: ffff8883f7ac0000 R14: ffff8883f7ac0d90 R15: ffff8883f844d000
      <4>[    3.324908] FS:  00007ffa4a839680(0000) GS:ffff888410000000(0000) knlGS:0000000000000000
      <4>[    3.324917] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      <4>[    3.324923] CR2: 0000000000000000 CR3: 0000000401aa4002 CR4: 00000000001606f0
      <4>[    3.324930] Call Trace:
      <4>[    3.324980]  ? gen6_read32+0x272/0x300 [i915]
      <4>[    3.325044]  intel_ddi_get_config+0x238/0x610 [i915]
      <4>[    3.325108]  hsw_crt_get_config+0x12/0x40 [i915]
      <4>[    3.325173]  intel_modeset_setup_hw_state+0x3b3/0x1660 [i915]
      <4>[    3.325182]  ? ww_mutex_lock+0x39/0x70
      <4>[    3.325190]  ? drm_modeset_lock+0xad/0x120
      <4>[    3.325254]  intel_modeset_init+0x582/0x1c50 [i915]
      
      Fixes: 41919042 ("drm/i915/hdmi: use struct drm_device based logging")
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Wambui Karuga <wambui.karugax@gmail.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200326082838.16357-1-chris@chris-wilson.co.uk
      7015f127