Kernel 5.2-rc1 Expecting The Worst: WIFI Dead Overheat No Restart

We Compiled debian packages of mainline Kernel last night on Deepin 15.10 and followed by Mint 19.1. It was a real disaster.

*iommu=soft *does not work anymore = Black screen.

Replacing it with << ivrs_ioapic[33]=00:00.1 >> works with many side effects: No WIFI network at all , slow, machine overheat and won’t restart. In Mintn19.1 we were getting the following notification:

*Running in software rendering mode. Cinnamon is currently running without video hardware acceleration and, as a result, you may observe much higher than normal CPU usage…
*
Our laptop won’t boot for any Linux ISO images, unless the Kernel is tweaked or edit at boot time.

<<iommu=soft>> was the best place to be over the last 3 months. So, we are expecting the worst, but BTRF may do it. Some changes were made to ext4, iommu and our WIFI card suppose to have a new driver, but the WIFI network was dead (not shown) in both distros.

Will see…

NB We are not using MOK Manager anymore, we do the fresh install with Secure Boot disabled and it works if we re-enable it after compiling mainline Kernel.

lsb_release-a && uname -r
LSBVersion:    n/a
DistributorID: openSUSE
Description:   openSUSE Tumbleweed
Release:       20190517
Codename:      n/a
5.1.3-1.g4d4d07c-vanilla

cat /sys/devices/system/cpu/vulnerabilities/mds
Not affected
....
 The following 2 NEW packages are going to be installed:
  kernel-devel-5.2.rc1-1.1.gb33dbfc kernel-source-5.2.rc1-1.1.gb33dbfc


The following 29 packages are going to be upgraded:
  gstreamer-plugins-base gstreamer-plugins-base-lang kernel-macros
  libgstallocators-1_0-0 libgstapp-1_0-0 libgstaudio-1_0-0 libgstfft-1_0-0
  libgstgl-1_0-0 libgstpbutils-1_0-0 libgstriff-1_0-0 libgstrtp-1_0-0 libgstrtsp-1_0-0
  libgstsdp-1_0-0 libgsttag-1_0-0 libgstvideo-1_0-0 libsvn_auth_kwallet-1-0 libvlc5
  libvlccore9 openSUSE-release openSUSE-release-ftp subversion
  subversion-bash-completion subversion-perl vlc vlc-codec-gstreamer vlc-lang vlc-noX
  vlc-qt vlc-vdpau


The following product is going to be upgraded:
  openSUSE Tumbleweed  20190517-0 -> 20190520-0
  ....

**Not shown in the Grub menu after restart. Same when disabling Secure Boot.
**

  rpm -qa | grep -i kernel
kernel-default-devel-5.1.3-1.1.g4d4d07c.x86_64
kernel-source-5.2.rc1-1.1.gb33dbfc.noarch
kernel-source-5.1.3-1.1.g4d4d07c.noarch
kernel-macros-5.2.rc1-1.1.gb33dbfc.noarch
kernel-vanilla-5.1.3-1.1.g4d4d07c.x86_64
kernel-default-5.1.3-1.1.g4d4d07c.x86_64
patterns-devel-base-devel_kernel-20170319-8.2.x86_64
kernel-firmware-20190502-258.1.noarch
kernel-devel-5.2.rc1-1.1.gb33dbfc.noarch
kernel-syms-5.1.3-1.1.g4d4d07c.x86_64
kernel-devel-5.1.3-1.1.g4d4d07c.noarch

dmesg | grep Linux
    0.000000] Linux version 5.1.3-1.g4d4d07c-vanilla (geeko@buildhost) (gcc version 8.3
    0.271909] ACPI: Added _OSI(Linux-Dell-Video)
    0.271909] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
    0.271909] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
    0.279663] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
    3.110829] Linux agpgart interface v0.103
    6.005954] usb usb1: Manufacturer: Linux 5.1.3-1.g4d4d07c-vanilla xhci-hcd
    6.006690] usb usb2: Manufacturer: Linux 5.1.3-1.g4d4d07c-vanilla xhci-hcd
    6.009928] usb usb3: Manufacturer: Linux 5.1.3-1.g4d4d07c-vanilla xhci-hcd
    6.011454] usb usb4: Manufacturer: Linux 5.1.3-1.g4d4d07c-vanilla xhci-hcd

uname -a
Linux linux-usrr 5.1.3-1.g4d4d07c-vanilla #1 SMP Fri May 17 05:18:02 UTC 2019 (4d4d07c) x86_64 x86_64 x86_64 GNU/Linux

RPM package of 5.2-rc1 not shown yet at open suse server. Will try to override this one later.
https://download.opensuse.org/repositories/Kernel:/HEAD/standard/x86_64/?C=N;O=A

Is there something to try to force it?

Well, we did compile the Kernel a second time to have 2 of them, just in case (default & vanilla). The bug was not there.

In Yast: Installation Log

1.Deleting kernel-vanilla
2.Downloading kernel-macros (download size 218.2 KiB)
Downloading kernel-devel (download size 11.95 MiB)
Downloading kernel-source (download size 104.30 MiB)
Installing kernel-macros-5.2.rc1-1.1.gb33dbfc.noarch.rpm (installed size 20.7 KiB)
Installing kernel-devel-5.2.rc1-1.1.gb33dbfc.noarch.rpm (installed size 54.84 MiB)
Installing kernel-source-5.2.rc1-1.1.gb33dbfc.noarch.rpm (installed size 731.70 MiB)

Restart

Now we have only one Kernel in the Grub menu. The machine is and was dual boot with 18362.113. Still not shown in Grub.

cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.1.3-1.g4d4d07c-default root=UUID=bba2a465-b011-4074-90f7-4e018c4eaa89 splash=silent iommu=soft resume=/dev/disk/by-id/ata-SanDisk_SDSSDH3256G_183756420226-part7 mitigations=auto quiet
sudo lspci -k | more
....
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Expre
ss Gigabit Ethernet Controller (rev 10)
        Subsystem: Lenovo Device 506f
        Kernel driver in use: r8169
        Kernel modules: r8169
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
        Subsystem: Lenovo Device b024
        Kernel driver in use: r8822be
        Kernel modules: r8822be
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c3)
        Subsystem: Lenovo Device 506f
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI

File Properties:

kernel-debug-5.2.rc1-1.1.gb33dbfc.x86_64.rpm

In Yast: Installation Log
Downloading kernel-devel (download size 12.62 MiB)
Downloading kernel-debug-devel (download size 3.93 MiB)
Installing kernel-devel-5.1.3-1.2.noarch.rpm (installed size 54.40 MiB)
Installing kernel-debug-devel-5.1.3-1.2.x86_64.rpm (installed size 4.41 MiB)
Installing kernel-debug-5.2.rc1-1.1.gb33dbfc.x86_64.rpm (installed size 352.71 MiB)

sudo reboot

Gotcha!

cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.2.0-rc1-1.gb33dbfc-debug root=UUID=bba2a465-b011-4074-90f7-4e018c4eaa89 splash=silent iommu=soft resume=/dev/disk/by-id/ata-SanDisk_SDSSDH3256G_183756420226-part7 mitigations=auto quiet

So far, so good!

Does not overheat…

sensors
thinkpad-isa-0000
Adapter: ISA adapter
fan1:           0 RPM
temp1:        +44.0°C  
temp2:         +0.0°C  
temp3:         +0.0°C  
temp4:         +0.0°C  
temp5:         +0.0°C  
temp6:         +0.0°C  
temp7:         +0.0°C  
temp8:         +0.0°C  

amdgpu-pci-0400
Adapter: PCI adapter
vddgfx:           N/A  
vddnb:            N/A  
temp1:        +44.0°C  (crit = +80.0°C, hyst =  +0.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
Tdie:         +44.5°C  (high = +70.0°C)
Tctl:         +44.5°C 

Without MOK Manager and this is a trials and errors discovery

mokutil  --sb-state
SecureBoot enabled

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME   FSTYPE   SIZE MOUNTPOINT LABEL
sda           238.5G            
├─sda1 ntfs     529M            Recovery
├─sda2 vfat     100M            
├─sda3           16M            
├─sda4 ntfs   130.8G            
├─sda5 vfat     500M /boot/efi  
├─sda6 btrfs   99.1G /          
└─sda7 swap     7.5G [SWAP]

Alles Gute,
Mike

kernel-source and kernel-devel is faster build and earlier published as the kernel…

New Realtek WIFI DRIVER RTW88: Stable at 6600kbps

sudo lspci -k | more
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
        Subsystem: Lenovo Device b024
        Kernel driver in use: rtw_pci
        Kernel modules: **rtwpci**

sudo modinfo rtwpci
filename:       /lib/modules/5.2.0-rc1-1.gb33dbfc-default/kernel/drivers/net/wireless/realtek/rtw88/rtwpci.ko
license:        Dual BSD/GPL
description:    Realtek 802.11ac wireless PCI driver
author:         Realtek Corporation
suserelease:    openSUSE Tumbleweed
srcversion:     4B7E47842DAA873E20D1238
alias:          pci:v000010ECd0000C822sv*sd*bc*sc*i*
alias:          pci:v000010ECd0000B822sv*sd*bc*sc*i*
depends:        mac80211,**rtw88**
retpoline:      Y
intree:         Y
name:           rtwpci
vermagic:       5.2.0-rc1-1.gb33dbfc-default SMP mod_unload modversions 
....

Previous One:

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
        Subsystem: Lenovo Device b024
        Kernel driver in use: r8822be
        Kernel modules: r8822be

sudo modinfo r8822be
modinfo: ERROR: Module r8822be not found.

https://www.phoronix.com/scan.php?page=news_item&px=Realtek-RTW88-WiFi-Linux-Driver

This afternoon << dup >>


....The following 7 NEW packages are going to be installed:
  kernel-default-5.2.rc1-1.1.gb33dbfc kernel-default-devel-5.2.rc1-1.1.gb33dbfc kernel-syms-5.2.rc1-1.1.gb33dbfc libappindicator3-1 libdbusmenu-glib4 libdbusmenu-gtk3-4
  libindicator3-7

The following package is going to be upgraded:
  google-chrome-unstable

The following package requires a system reboot:
  kernel-default-5.2.rc1-1.1.gb33dbfc

1 package to upgrade, 7 new.
Overall download size: 126.3 MiB. Already cached: 0 B. After the operation, additional 358.1 MiB will be used.

    Note: System reboot required.
Continue? [y/n/v/...? shows all options] (y): y


uname -a
Linux linux-usrr 5.2.0-rc1-1.gb33dbfc-default #1 SMP Mon May 20 15:23:52 UTC 2019 (b33dbfc) x86_64 x86_64 x86_64 GNU/Linux