<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Connect a thunderbolt/usb-c dock hang the laptop after resume"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111497">111497</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Connect a thunderbolt/usb-c dock hang the laptop after resume
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DRI
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>XOrg git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>not set
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>not set
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DRM/Intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zioalex@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=145175" name="attach_145175" title="Kernel trace">attachment 145175</a> <a href="attachment.cgi?id=145175&action=edit" title="Kernel trace">[details]</a></span>
Kernel trace

I experimenting random hang of my Lenovo T490 laptop after resuming.
Follow a stack trace of what happen:

Aug 27 09:22:32 lenovo-t490 kernel: BUG: unable to handle kernel NULL pointer
dereference at 0000000000000318
Aug 27 09:22:32 lenovo-t490 kernel: #PF error: [WRITE]
Aug 27 09:22:32 lenovo-t490 kernel: PGD 0 P4D 0
Aug 27 09:22:32 lenovo-t490 kernel: Oops: 0002 [#1] PREEMPT SMP NOPTI
Aug 27 09:22:32 lenovo-t490 kernel: CPU: 3 PID: 3653 Comm: Xorg Tainted: G     
     OE     5.0.0-050000-lowlatency #201903032031
Aug 27 09:22:32 lenovo-t490 kernel: Hardware name: LENOVO
20N2S0M700/20N2S0M700, BIOS N2IET71W (1.49 ) 07/03/2019
Aug 27 09:22:32 lenovo-t490 kernel: RIP: 0010:mutex_lock+0x14/0x30
Aug 27 09:22:32 lenovo-t490 kernel: Code: 00 48 89 e5 e8 ed fa ff ff 5d c3 66
66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 31 c0 65 48 8b 14 25 00 5c 01
00 48 89 e5 <f0> 48 0f b1 17 74 05 e8 c0 ff ff ff 5d c3 66 66 2e 0f 1f 84 00 00
Aug 27 09:22:32 lenovo-t490 kernel: RSP: 0018:ffffa17bc2bd78b0 EFLAGS: 00010246
Aug 27 09:22:32 lenovo-t490 kernel: RAX: 0000000000000000 RBX: ffff8c463af64400
RCX: ffffa17bc6b4fc20
Aug 27 09:22:32 lenovo-t490 kernel: RDX: ffff8c4857e92680 RSI: 0000000000000287
RDI: 0000000000000318
Aug 27 09:22:32 lenovo-t490 kernel: RBP: ffffa17bc2bd78b0 R08: ffff8c48be49ac18
R09: 000000000001741e
Aug 27 09:22:32 lenovo-t490 kernel: R10: 0000000000001138 R11: ffff8c48be4e1c04
R12: 0000000000000f6a
Aug 27 09:22:32 lenovo-t490 kernel: R13: ffff8c48adb05ad0 R14: ffff8c482343ff00
R15: 0000000000000f6a
Aug 27 09:22:32 lenovo-t490 kernel: FS:  00007f1c638da600(0000)
GS:ffff8c48be4c0000(0000) knlGS:0000000000000000
Aug 27 09:22:32 lenovo-t490 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Aug 27 09:22:32 lenovo-t490 kernel: CR2: 0000000000000318 CR3: 0000000417eac001
CR4: 00000000003606e0
Aug 27 09:22:32 lenovo-t490 kernel: Call Trace:
Aug 27 09:22:32 lenovo-t490 kernel:  drm_dp_mst_wait_tx_reply+0x14c/0x1f0
[drm_kms_helper]
Aug 27 09:22:32 lenovo-t490 kernel:  ? wait_woken+0x80/0x80
Aug 27 09:22:32 lenovo-t490 kernel:  drm_dp_mst_i2c_xfer+0x1a5/0x270
[drm_kms_helper]
Aug 27 09:22:32 lenovo-t490 kernel:  __i2c_transfer+0x14a/0x4a0
Aug 27 09:22:32 lenovo-t490 kernel:  i2c_transfer+0x5a/0xd0
Aug 27 09:22:32 lenovo-t490 kernel:  drm_do_probe_ddc_edid+0xbe/0x140 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  drm_get_edid+0x51/0x390 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  drm_dp_mst_get_edid+0x6f/0x90
[drm_kms_helper]
Aug 27 09:22:32 lenovo-t490 kernel:  intel_dp_mst_get_modes+0x34/0x70 [i915]
Aug 27 09:22:32 lenovo-t490 kernel: 
drm_helper_probe_single_connector_modes+0x18b/0x700 [drm_kms_helper]
Aug 27 09:22:32 lenovo-t490 kernel:  ? drm_atomic_get_property+0x19d/0x560
[drm]
Aug 27 09:22:32 lenovo-t490 kernel:  drm_mode_getconnector+0x4c3/0x4f0 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  ?
drm_connector_property_set_ioctl+0x60/0x60 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  drm_ioctl_kernel+0xad/0xf0 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  ? ___sys_recvmsg+0x16c/0x200
Aug 27 09:22:32 lenovo-t490 kernel:  drm_ioctl+0x233/0x410 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  ?
drm_connector_property_set_ioctl+0x60/0x60 [drm]
Aug 27 09:22:32 lenovo-t490 kernel:  ? __fget+0x73/0xa0
Aug 27 09:22:32 lenovo-t490 kernel:  do_vfs_ioctl+0xa9/0x640
Aug 27 09:22:32 lenovo-t490 kernel:  ? __fget+0x73/0xa0
Aug 27 09:22:32 lenovo-t490 kernel:  ksys_ioctl+0x67/0x90
Aug 27 09:22:32 lenovo-t490 kernel:  __x64_sys_ioctl+0x1a/0x20
Aug 27 09:22:32 lenovo-t490 kernel:  do_syscall_64+0x5a/0x110
Aug 27 09:22:32 lenovo-t490 kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Aug 27 09:22:32 lenovo-t490 kernel: RIP: 0033:0x7f1c60cdd5d7
Aug 27 09:22:32 lenovo-t490 kernel: Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7
00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00
00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48
Aug 27 09:22:32 lenovo-t490 kernel: RSP: 002b:00007ffecaafd648 EFLAGS: 00000246
ORIG_RAX: 0000000000000010
Aug 27 09:22:32 lenovo-t490 kernel: RAX: ffffffffffffffda RBX: 0000555be3cc2f18
RCX: 00007f1c60cdd5d7
Aug 27 09:22:32 lenovo-t490 kernel: RDX: 00007ffecaafd680 RSI: 00000000c05064a7
RDI: 000000000000000c
Aug 27 09:22:32 lenovo-t490 kernel: RBP: 00007ffecaafd680 R08: 0000000000000001
R09: 0000000000000000
Aug 27 09:22:32 lenovo-t490 kernel: R10: 0000000000000001 R11: 0000000000000246
R12: 00000000c05064a7
Aug 27 09:22:32 lenovo-t490 kernel: R13: 000000000000000c R14: 000000000000000c
R15: 00007ffecaafd680
Aug 27 09:22:32 lenovo-t490 kernel: Modules linked in: rfcomm
nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT pci_stub vboxpci(OE)
vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) l2tp_ppp l2tp_netlink l2tp_core
ip6_udp_tunnel udp_tunnel pppox ipt_MASQUERADE nf_conntrack_netlink xt_addrtype
br_netfilter md4 xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp nls_utf8
esp4 ah4 cifs af_key xfrm_algo fscache xt_tcpudp ccm ip6t_rpfilter ip6t_REJECT
nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack cmac ip_set nfnetlink
ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_nat_ipv6
ip6table_mangle ip6table_raw overlay ip6table_security iptable_nat nf_nat_ipv4
nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw
iptable_security ebtable_filter ebtables ip6table_filter ip6_tables
iptable_filter bpfilter bnep binfmt_misc nls_iso8859_1 arc4 snd_hda_codec_hdmi
snd_soc_skl uvcvideo intel_rapl snd_soc_hdac_hda x86_pkg_temp_thermal
videobuf2_vmalloc intel_powerclamp videobuf2_memops
Aug 27 09:22:32 lenovo-t490 kernel:  snd_hda_ext_core videobuf2_v4l2 coretemp
videobuf2_common snd_soc_skl_ipc kvm_intel videodev snd_soc_sst_ipc
snd_hda_codec_realtek snd_soc_sst_dsp intel_cstate snd_soc_acpi_intel_match
media intel_rapl_perf snd_hda_codec_generic cdc_ether snd_seq_dummy
snd_soc_acpi usbnet snd_soc_core snd_seq_oss r8152 mii snd_compress iwlmvm
ac97_bus btusb snd_pcm_dmaengine snd_seq_midi btrtl btbcm snd_seq_midi_event
btintel mac80211 snd_hda_intel snd_hda_codec joydev bluetooth input_leds
snd_hda_core serio_raw snd_hwdep snd_rawmidi thinkpad_acpi snd_pcm nvram
ecdh_generic intel_wmi_thunderbolt wmi_bmof iwlwifi ledtrig_audio snd_seq
mei_me idma64 snd_seq_device virt_dma mei cfg80211 intel_lpss_pci snd_timer
ucsi_acpi intel_lpss typec_ucsi snd processor_thermal_device intel_pch_thermal
intel_soc_dts_iosf typec soundcore int3403_thermal int340x_thermal_zone
int3400_thermal acpi_thermal_rel acpi_pad mac_hid sch_fq_codel nfsd parport_pc
auth_rpcgss ppdev nfs_acl lockd grace lp sunrpc parport
Aug 27 09:22:32 lenovo-t490 kernel:  ip_tables x_tables autofs4 btrfs
zstd_compress algif_skcipher af_alg dm_crypt raid10 raid456 async_raid6_recov
async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0
multipath linear hid_generic usbhid hid i915 crct10dif_pclmul crc32_pclmul
ghash_clmulni_intel kvmgt vfio_mdev mdev vfio_iommu_type1 vfio kvm irqbypass
i2c_algo_bit aesni_intel drm_kms_helper sdhci_pci syscopyarea aes_x86_64
sysfillrect crypto_simd nvme sysimgblt cryptd fb_sys_fops glue_helper
thunderbolt cqhci e1000e psmouse drm nvme_core sdhci wmi pinctrl_cannonlake
video pinctrl_intel
Aug 27 09:22:32 lenovo-t490 kernel: CR2: 0000000000000318
Aug 27 09:22:32 lenovo-t490 kernel: ---[ end trace 4cc44c70a856a605 ]---

Following the outcome of <a class="bz_bug_link 
          bz_status_CLOSED  bz_closed"
   title="CLOSED FIXED - System hangs when hot-plugging Thunderbolt 3 dock with dual output (DP MST) connected"
   href="show_bug.cgi?id=107738">https://bugs.freedesktop.org/show_bug.cgi?id=107738</a> ,
I tried to install the latest commit from here:
<a href="https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/">https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0/</a> .
Now I am running on 5.0.0-050000-lowlatency but I noticed the same problem

This is not always reproduciblem as sometime it works.
In attach you can see the full log.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>