pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.36k stars 81 forks source link

Linux 5.11 on 20.10 freezes on ThinkPad E480 #1619

Open anmolmathias opened 3 years ago

anmolmathias commented 3 years ago

Distribution:

NAME="Pop!_OS" VERSION="20.10" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 20.10" VERSION_ID="20.10"

Issue/Bug Description:

Linux 5.11 on a non-nvidia 20.10 install fails to reach the login prompt or freezes immediately after booting in to the desktop leaving the mouse, keyboard and everything but the poweroff button unresponsive. Booting in to the 5.8.0-7642-generic install still works just fine. The first time it happened, the laptop had been up for at least 5 hours and qutebrowser was open. After force shutdown, on subsequent tries, it simply froze before the lock screen could come up.

Apologies for not being able to provide any logs, I'm not sure how to.

bflanagin commented 3 years ago

@anmolmathias we've been seeing an increased number of reports on this. Could you give us more hardware details? Make,model,how much ram, cpu, etc. We have a limited number of computers to test the new kernel on and didn't see these issues on our test machines.

anmolmathias commented 3 years ago

@bflanagin, Of course. Here's what I could get...

Hardware Dump

H/W path       Device     Class          Description
====================================================
                          system         20KN0068IG (LENOVO_MT_20KN_BU_Think_FM_ThinkPad E480)
/0                        bus            20KN0068IG
/0/3                      memory         8GiB System Memory
/0/3/0                    memory         4GiB SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
/0/3/1                    memory         4GiB SODIMM DDR4 Synchronous Unbuffered (Unregistered) 2400 MHz (0.4 ns)
/0/7                      memory         256KiB L1 cache
/0/8                      memory         1MiB L2 cache
/0/9                      memory         6MiB L3 cache
/0/a                      processor      Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
/0/b                      memory         128KiB BIOS
/0/100                    bridge         Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
/0/100/2                  display        UHD Graphics 620
/0/100/8                  generic        Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
/0/100/14                 bus            Sunrise Point-LP USB 3.0 xHCI Controller
/0/100/14/0    usb1       bus            xHCI Host Controller
/0/100/14/0/6             multimedia     Integrated Camera
/0/100/14/0/8             generic        Metallica MOH Touch Fingerprint Reader
/0/100/14/1    usb2       bus            xHCI Host Controller
/0/100/14.2               generic        Sunrise Point-LP Thermal subsystem
/0/100/16                 communication  Sunrise Point-LP CSME HECI #1
/0/100/17                 storage        Sunrise Point-LP SATA Controller [AHCI mode]
/0/100/1c                 bridge         Sunrise Point-LP PCI Express Root Port #1
/0/100/1c.4               bridge         Sunrise Point-LP PCI Express Root Port #5
/0/100/1c.4/0  enp3s0     network        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
/0/100/1d                 bridge         Sunrise Point-LP PCI Express Root Port #9
/0/100/1d.2               bridge         Sunrise Point-LP PCI Express Root Port #11
/0/100/1d.2/0  wlp5s0     network        RTL8821CE 802.11ac PCIe Wireless Network Adapter
/0/100/1d.3               bridge         Intel Corporation
/0/100/1d.3/0             generic        SD/MMC Card Reader Controller
/0/100/1f                 bridge         Sunrise Point LPC Controller/eSPI Controller
/0/100/1f.2               memory         Memory controller
/0/100/1f.3               multimedia     Sunrise Point-LP HD Audio
/0/100/1f.4               bus            Sunrise Point-LP SMBus
/0/0                      system         PnP device PNP0c02
/0/1                      system         PnP device PNP0c02
/0/2                      system         PnP device PNP0c02
/0/4                      system         PnP device PNP0b00
/0/5                      generic        PnP device INT3f0d
/0/6                      generic        PnP device LEN0071
/0/c                      system         PnP device PNP0c02
/0/d                      generic        PnP device LEN2054
/0/e                      system         PnP device PNP0c02
/0/f                      system         PnP device PNP0c02
/0/10                     system         PnP device PNP0c01
/0/11          scsi0      storage        
/0/11/0.0.0    /dev/sda   disk           1TB WDC WD10SPZX-08Z
/0/11/0.0.0/1  /dev/sda1  volume         497MiB Windows FAT volume
/0/11/0.0.0/2  /dev/sda2  volume         4095MiB Windows FAT volume
/0/11/0.0.0/3  /dev/sda3  volume         923GiB EXT4 volume
/0/11/0.0.0/4  /dev/sda4  volume         4095MiB Linux swap volume
/1                        power          01AV446

CPU dump

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   39 bits physical, 48 bits virtua
                                 l
CPU(s):                          8
On-line CPU(s) list:             0-7
Thread(s) per core:              2
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           142
Model name:                      Intel(R) Core(TM) i5-8250U CPU @
                                  1.60GHz
Stepping:                        10
CPU MHz:                         800.030
CPU max MHz:                     3400.0000
CPU min MHz:                     400.0000
BogoMIPS:                        3600.00
Virtualization:                  VT-x
L1d cache:                       128 KiB
L1i cache:                       128 KiB
L2 cache:                        1 MiB
L3 cache:                        6 MiB
NUMA node0 CPU(s):               0-7
Vulnerability Itlb multihit:     KVM: Mitigation: VMX disabled
Vulnerability L1tf:              Mitigation; PTE Inversion; VMX c
                                 onditional cache flushes, SMT vu
                                 lnerable
Vulnerability Mds:               Mitigation; Clear CPU buffers; S
                                 MT vulnerable
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Mitigation; Speculative Store By
                                 pass disabled via prctl and secc
                                 omp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barr
                                 iers and __user pointer sanitiza
                                 tion
Vulnerability Spectre v2:        Mitigation; Full generic retpoli
                                 ne, IBPB conditional, IBRS_FW, S
                                 TIBP conditional, RSB filling
Vulnerability Srbds:             Mitigation; Microcode
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce c
                                 x8 apic sep mtrr pge mca cmov pa
                                 t pse36 clflush dts acpi mmx fxs
                                 r sse sse2 ss ht tm pbe syscall 
                                 nx pdpe1gb rdtscp lm constant_ts
                                 c art arch_perfmon pebs bts rep_
                                 good nopl xtopology nonstop_tsc 
                                 cpuid aperfmperf pni pclmulqdq d
                                 tes64 monitor ds_cpl vmx est tm2
                                  ssse3 sdbg fma cx16 xtpr pdcm p
                                 cid sse4_1 sse4_2 x2apic movbe p
                                 opcnt tsc_deadline_timer aes xsa
                                 ve avx f16c rdrand lahf_lm abm 3
                                 dnowprefetch cpuid_fault epb inv
                                 pcid_single pti ssbd ibrs ibpb s
                                 tibp tpr_shadow vnmi flexpriorit
                                 y ept vpid ept_ad fsgsbase tsc_a
                                 djust bmi1 avx2 smep bmi2 erms i
                                 nvpcid mpx rdseed adx smap clflu
                                 shopt intel_pt xsaveopt xsavec x
                                 getbv1 xsaves dtherm ida arat pl
                                 n pts hwp hwp_notify hwp_act_win
                                 dow hwp_epp md_clear flush_l1d
bflanagin commented 3 years ago

Great! I'll see if I can find something similar in my personal hardware.

dchambers commented 3 years ago

@bflanagin, in case it's relevant, I'm also seeing freezes with 5.11, and with very different hardware. I was seeing about one or two a day in my case, but there was also a tell tale sign something was immediately wrong because I started seeing the terminal at start-up (with very large text and a single non-integer number), rather than a pale grey background as per usual.

Here's my hardware dump in case it helps:

H/W path                Device           Class          Description
===================================================================
                                         system         MS-7C35 (To be filled by O.E.M.)
/0                                       bus            MEG X570 UNIFY (MS-7C35)
/0/0                                     memory         64KiB BIOS
/0/10                                    memory         64GiB System Memory
/0/10/0                                  memory         Project-Id-Version: lshwReport-Msgid-Bugs-To:
/0/10/1                                  memory         32GiB DIMM DDR4 Synchronous Unbuffered (Unreg
/0/10/2                                  memory         Project-Id-Version: lshwReport-Msgid-Bugs-To:
/0/10/3                                  memory         32GiB DIMM DDR4 Synchronous Unbuffered (Unreg
/0/13                                    memory         1MiB L1 cache
/0/14                                    memory         8MiB L2 cache
/0/15                                    memory         64MiB L3 cache
/0/16                                    processor      AMD Ryzen 9 3950X 16-Core Processor
/0/100                                   bridge         Starship/Matisse Root Complex
/0/100/0.2                               generic        Starship/Matisse IOMMU
/0/100/1.1                               bridge         Starship/Matisse GPP Bridge
/0/100/1.1/0                             storage        Sandisk Corp
/0/100/1.1/0/0          /dev/nvme0       storage        WDS100T3X0C-00SJG0
/0/100/1.1/0/0/1        /dev/nvme0n1     disk           1TB NVMe namespace
/0/100/1.1/0/0/1/1      /dev/nvme0n1p1   volume         499MiB Windows FAT volume
/0/100/1.1/0/0/1/2      /dev/nvme0n1p2   volume         931GiB Windows NTFS volume
/0/100/1.2                               bridge         Starship/Matisse GPP Bridge
/0/100/1.2/0                             bridge         Matisse Switch Upstream
/0/100/1.2/0/0                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/0/0                         storage        Sandisk Corp
/0/100/1.2/0/0/0/0      /dev/nvme1       storage        WDS100T3X0C-00SJG0
/0/100/1.2/0/0/0/0/1    /dev/nvme1n1     disk           1TB NVMe namespace
/0/100/1.2/0/0/0/0/1/1  /dev/nvme1n1p1   volume         929GiB EXT4 volume
/0/100/1.2/0/0/0/0/1/2  /dev/nvme1n1p2   volume         2046MiB Linux swap volume
/0/100/1.2/0/1                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/1/0                         storage        Sandisk Corp
/0/100/1.2/0/1/0/0      /dev/nvme2       storage        WDS100T3X0C-00SJG0
/0/100/1.2/0/1/0/0/1    /dev/nvme2n1     disk           1TB NVMe namespace
/0/100/1.2/0/1/0/0/1/1  /dev/nvme2n1p1   volume         15MiB reserved partition
/0/100/1.2/0/1/0/0/1/2  /dev/nvme2n1p2   volume         931GiB Windows NTFS volume
/0/100/1.2/0/5                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/5/0        enp39s0          network        RTL8125 2.5GbE Controller
/0/100/1.2/0/6                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/6/0        wlo1             network        Wi-Fi 6 AX200
/0/100/1.2/0/8                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/8/0                         generic        Starship/Matisse Reserved SPP
/0/100/1.2/0/8/0.1                       bus            Matisse USB 3.0 Host Controller
/0/100/1.2/0/8/0.1/0    usb1             bus            xHCI Host Controller
/0/100/1.2/0/8/0.1/0/4                   communication  AX200 Bluetooth
/0/100/1.2/0/8/0.1/1    usb2             bus            xHCI Host Controller
/0/100/1.2/0/8/0.3                       bus            Matisse USB 3.0 Host Controller
/0/100/1.2/0/8/0.3/0    usb3             bus            xHCI Host Controller
/0/100/1.2/0/8/0.3/0/5                   input          MYSTIC LIGHT
/0/100/1.2/0/8/0.3/0/6                   bus            USB2.0 Hub
/0/100/1.2/0/8/0.3/1    usb4             bus            xHCI Host Controller
/0/100/1.2/0/9                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/9/0                         storage        FCH SATA Controller [AHCI mode]
/0/100/1.2/0/a                           bridge         Matisse PCIe GPP Bridge
/0/100/1.2/0/a/0                         storage        FCH SATA Controller [AHCI mode]
/0/100/3.1                               bridge         Starship/Matisse GPP Bridge
/0/100/3.1/0                             display        GK208B [GeForce GT 710]
/0/100/3.1/0.1                           multimedia     GK208 HDMI/DP Audio Controller
/0/100/7.1                               bridge         Starship/Matisse Internal PCIe GPP Bridge 0 t
/0/100/7.1/0                             generic        Starship/Matisse PCIe Dummy Function
/0/100/8.1                               bridge         Starship/Matisse Internal PCIe GPP Bridge 0 t
/0/100/8.1/0                             generic        Starship/Matisse Reserved SPP
/0/100/8.1/0.3                           bus            Matisse USB 3.0 Host Controller
/0/100/8.1/0.3/0        usb5             bus            xHCI Host Controller
/0/100/8.1/0.3/0/3                       bus            USB2.1 Hub
/0/100/8.1/0.3/0/3/1                     bus            USB2.1 Hub
/0/100/8.1/0.3/0/3/1/1                   multimedia     Blackmagic Design
/0/100/8.1/0.3/0/3/1/2                   input          USB Receiver
/0/100/8.1/0.3/0/3/1/4                   input          Magic Trackpad 2
/0/100/8.1/0.3/1        usb6             bus            xHCI Host Controller
/0/100/8.1/0.3/1/3                       bus            USB3.1 Hub
/0/100/8.1/0.3/1/3/1                     bus            USB3.1 Hub
/0/100/8.1/0.3/1/3/2                     generic        USB 10/100/1000 LAN
/0/100/8.1/0.4                           multimedia     Starship/Matisse HD Audio Controller
/0/100/14                                bus            FCH SMBus Controller
/0/100/14.3                              bridge         FCH LPC Bridge
/0/101                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/102                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/103                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/104                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/105                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/106                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/107                                   bridge         Starship/Matisse PCIe Dummy Host Bridge
/0/108                                   bridge         Matisse Device 24: Function 0
/0/109                                   bridge         Matisse Device 24: Function 1
/0/10a                                   bridge         Matisse Device 24: Function 2
/0/10b                                   bridge         Matisse Device 24: Function 3
/0/10c                                   bridge         Matisse Device 24: Function 4
/0/10d                                   bridge         Matisse Device 24: Function 5
/0/10e                                   bridge         Matisse Device 24: Function 6
/0/10f                                   bridge         Matisse Device 24: Function 7
/0/1                                     system         PnP device PNP0c01
/0/2                                     system         PnP device PNP0c02
/0/3                                     system         PnP device PNP0b00
/0/4                                     system         PnP device PNP0c02
/0/5                                     system         PnP device PNP0c02
/1                      enx00d2b1766cdc  network        Ethernet interface
/2                      veth86a0adc      network        Ethernet interface
/3                      vethd9be6e0      network        Ethernet interface
/4                      veth3d97183      network        Ethernet interface
/5                      veth27483e6      network        Ethernet interface
dchambers commented 3 years ago

More reports I found, some of which mention hardware:

jonoave commented 3 years ago

Experiencing a similar bug on my Thinkpad 485 (AMD Ryzen 5).

i have tried switching to the previous kernel, which I find reduces the frequency of the freeze. The biggest culprit is Firefox, especially when exiting full-size videos of youtube or scrolling down long web pages.

dchambers commented 3 years ago

In my case updating my BIOS seems to have fixed this for me (running 5 days now without incident). Maybe worth a try for others too.

jonoave commented 3 years ago

In my case updating my BIOS seems to have fixed this for me (running 5 days now without incident). Maybe worth a try for others too.

How did you update the bios? Was there a new version ? I've completely removed Windows, did you need to use Windows update for that? Thanks!

dchambers commented 3 years ago

In my case updating my BIOS seems to have fixed this for me (running 5 days now without incident). Maybe worth a try for others too.

How did you update the bios? Was there a new version ? I've completely removed Windows, did you need to use Windows update for that? Thanks!

On my MSI motherboard the update could either be done via Windows or directly within the BIOS, by pressing the Del key at startup. For me it was just a case of copying the latest firmware onto a FAT32 formatted USB stick beforehand. I'm not saying this is going to fix things for anyone else BTW, but it did happen to work for me on my MSI / AMD Ryzen motherboard.