[solved] Thinkpad E14 and kernel 5.10 issues

Hi all,

I just got notified during system update that kernel release 5.9.16 (5.9.16-1-MANJARO in my case) is the last 5.9 release, so I used the kernel manager gui to install 5.10.2-2-MANJARO.
Since I am using a Thinkpad E14 G2 laptop with AMD Renior CPU (see below for details), using a kernel older than 5.8 brings other implications – so simply switching to the latest LTS kernel is not an option, as this is a 5.4 series kernel.
Currently, I have both named kernels installed and can boot into either one.
System configuration details:

  • I am using the shortly-suspend workaround for both kernels to get Fn keys working at all.
  • The BIOS version installed on my machine is 1.08.
  • BIOS is configured to use Fn key functionality (e.g. changing volume) only when “Fn” key is pressed, so I have F[1…12] behaviour as default action.
    What does work on 5.9 and does not work on 5.10 is the following:
  • Sound output
  • Fn keys (e.g. switching sound via Fn+F3 key)

inxi output (under 5.10.2-2-MANJARO):

$ inxi -Fazy
System:
  Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=07137b52-d252-4c63-95e3-824440c8e13a rw quiet apparmor=1 
  security=apparmor resume=UUID=6cfccd53-5e9a-4db9-a7ca-0d648868e0f8 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: LENOVO product: 20T6000MGE v: ThinkPad E14 Gen 2 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 20T6000MGE serial: <filter> UEFI: LENOVO 
  v: R1AET32W (1.08 ) date: 08/14/2020 
Battery:
  ID-1: BAT0 charge: 34.1 Wh condition: 45.9/45.0 Wh (102%) volts: 11.7/11.1 
  model: Sunwoda 5B10X025 type: Li-poly serial: <filter> status: Discharging 
  cycles: 33 
CPU:
  Info: 8-Core model: AMD Ryzen 7 4700U with Radeon Graphics bits: 64 
  type: MCP arch: Zen 2 family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600103 L2 cache: 4 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 31948 
  Speed: 1398 MHz min/max: 1400/2000 MHz boost: enabled Core speeds (MHz): 
  1: 1398 2: 1397 3: 1397 4: 1397 5: 1397 6: 1395 7: 1397 8: 1397 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 04:00.0 
  chip ID: 1002:1636 
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 1-3:2 
  chip ID: 04f2:b6be serial: <filter> 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: amdgpu,ati 
  unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 158 size: 309x174mm (12.2x6.9") 
  diag: 355mm (14") 
  OpenGL: renderer: AMD RENOIR (DRM 3.40.0 5.10.2-2-MANJARO LLVM 11.0.0) 
  v: 4.6 Mesa 20.3.1 direct render: Yes 
Audio:
  Device-1: AMD vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 04:00.1 
  chip ID: 1002:1637 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo 
  driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus ID: 04:00.5 
  chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 04:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.10.2-2-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: 2000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 2000 
  bus ID: 03:00.0 chip ID: 8086:2723 
  IF: wlp3s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 476.94 GiB used: 856.29 GiB (179.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: KBG40ZNT512G MEMORY 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: 0106AELA temp: 26.9 C 
Partition:
  ID-1: / raw size: 50 GiB size: 48.97 GiB (97.93%) used: 17.08 GiB (34.9%) 
  fs: ext4 dev: /dev/nvme0n1p6 maj-min: 259:6 
  ID-2: /boot/efi raw size: 260 MiB size: 256 MiB (98.46%) 
  used: 29 MiB (11.3%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
  ID-3: /home raw size: 100 GiB size: 97.93 GiB (97.93%) 
  used: 76.24 GiB (77.9%) fs: ext4 dev: /dev/nvme0n1p7 maj-min: 259:7 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p5 maj-min: 259:5 
Sensors:
  System Temperatures: cpu: 36.9 C mobo: 0.0 C gpu: amdgpu temp: 35.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 294 Uptime: 3m wakeups: 1 Memory: 14.93 GiB used: 1.14 GiB (7.6%) 
  Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: pacman: 1399 lib: 416 
  flatpak: 0 Shell: Bash v: 5.1.0 running in: konsole inxi: 3.2.01 

Loaded sound modules:

$ lsmod|grep snd
snd_hda_codec_realtek   143360  0
snd_hda_codec_hdmi     73728  0
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
snd_hda_intel          57344  0
snd_intel_dspcfg       24576  1 snd_hda_intel
soundwire_intel        45056  1 snd_intel_dspcfg
snd_hda_codec         172032  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_soc_core          323584  1 soundwire_intel
snd_compress           32768  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm               147456  8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
ledtrig_audio          16384  2 snd_hda_codec_generic,thinkpad_acpi
snd_timer              45056  1 snd_pcm
snd_rn_pci_acp3x       20480  0
snd_pci_acp3x          20480  0
snd                   114688  11 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
soundcore              16384  1 snd

Error messages only present on 5.10.2-2-MANJARO:

sudo journalctl -x -p3 -b0
[...]
Dez 31 13:33:03 achtender kernel: hdaudio hdaudioC0D0: Unable to bind the codec
Dez 31 13:33:03 achtender kernel: hdaudio hdaudioC1D0: Unable to bind the codec

Your help and support is really appreciated.

Thanks and BR,
Boeschmann

Hi all,

after a complete cold boot, everything is working again with kernel 5.10. A simple (warm) reboot did cause above-described behaviour. Good that things work again, but a strange behaviour nonetheless.

Have a good start into 2021 everyone!

Boeschmann

Hi all,

the issue is seemingly not solved yet (unfortunately I don’t seem to be able to edit the title anymore).

Digging down deeper, I recognized that disabling the shortly-suspend workaround (which enables Fn keys) during boot does seem to make the audio chip be initialized more stably, but of course the caveat is to suspend and resume manually once (to get Fn keys working at all) after booting up.

Will keep you updated.

HTH, BR,
Boeschmann