Periodic freezing after unplugging USB-C monitor - "Enabling HDA controller" in dmesg

Bug #2002206 reported by rustyx
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After disconnecting an external monitor from a Thunderbolt 4 (USB-C) port
*while the system is asleep*, after wake-up the system keeps on randomly freezing for 1-2 seconds.

Every freeze is accompanied by an "Enabling HDA controller" kernel message:

[54984.259832] nvidia 0000:01:00.0: Enabling HDA controller
[55008.355784] nvidia 0000:01:00.0: Enabling HDA controller
[55044.771722] nvidia 0000:01:00.0: Enabling HDA controller
[55069.859682] nvidia 0000:01:00.0: Enabling HDA controller
[55096.547622] nvidia 0000:01:00.0: Enabling HDA controller
[55122.243581] nvidia 0000:01:00.0: Enabling HDA controller
[55146.339543] nvidia 0000:01:00.0: Enabling HDA controller
[55168.579505] nvidia 0000:01:00.0: Enabling HDA controller
[55199.491437] nvidia 0000:01:00.0: Enabling HDA controller

Rebooting or restarting Xorg "fixes" the problem.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-56-generic 5.15.0-56.62
ProcVersionSignature: Ubuntu 5.15.0-56.62-generic 5.15.64
Uname: Linux 5.15.0-56-generic x86_64
NonfreeKernelModules: socwatch2_15 vtsspp sep5 socperf3 pax nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: me 2469 F.... pulseaudio
 /dev/snd/controlC0: me 2469 F.... pulseaudio
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Sat Jan 7 12:19:39 2023
InstallationDate: Installed on 2022-08-31 (128 days ago)
InstallationMedia: Kubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 005: ID 04f2:b74f Chicony Electronics Co., Ltd Integrated Camera
 Bus 001 Device 003: ID 06cb:00f9 Synaptics, Inc.
 Bus 001 Device 007: ID 8087:0033 Intel Corp.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 21DE001QMH
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-56-generic root=UUID=d4a7fdda-30e3-439b-b327-e87d7b2bc81e ro pci=nommconf
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-56-generic N/A
 linux-backports-modules-5.15.0-56-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.9
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/18/2022
dmi.bios.release: 1.12
dmi.bios.vendor: LENOVO
dmi.bios.version: N3JET28W (1.12 )
dmi.board.asset.tag: Not Available
dmi.board.name: 21DE001QMH
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76530 WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.8
dmi.modalias: dmi:bvnLENOVO:bvrN3JET28W(1.12):bd10/18/2022:br1.12:efr1.8:svnLENOVO:pn21DE001QMH:pvrThinkPadX1ExtremeGen5:rvnLENOVO:rn21DE001QMH:rvrSDK0T76530WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_21DE_BU_Think_FM_ThinkPadX1ExtremeGen5:
dmi.product.family: ThinkPad X1 Extreme Gen 5
dmi.product.name: 21DE001QMH
dmi.product.sku: LENOVO_MT_21DE_BU_Think_FM_ThinkPad X1 Extreme Gen 5
dmi.product.version: ThinkPad X1 Extreme Gen 5
dmi.sys.vendor: LENOVO

Revision history for this message
rustyx (rustyx2) wrote :
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
rustyx (rustyx2)
description: updated
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Does removing "pci=nommconf" help?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
rustyx (rustyx2) wrote :

Removing "pci=nommconf" results in "Enabling HDA controller" no longer being logged. However, the freezing is still there.

Is there any kernel debug flag that I can set to help debug this further?

Revision history for this message
rustyx (rustyx2) wrote :

Uploading updated dmesg.
External monitor was connected to USB-C at 47s, system sleep at 58s, monitor unplugged at 64s, system wake-up at 68s.

Revision history for this message
Bjorn Helgaas (bjorn-helgaas) wrote :

These freezes look pretty terrible. Looks like you're running a v5.15 kernel. Are they reproducible on a more recent kernel, e.g., v6.2?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
rustyx (rustyx2) wrote :

Way to go...

Mark a ticket incomplete, then expired...

While the problem is still there.

Revision history for this message
Deniz (deniz-dezigner) wrote :

Hello. looks like i found a workaround.

The nvidia GPU can be in different states - D3cold, D0, D3hot.

I randomly noticed, that if I keep the nvidia GPU in D0 state (just by opening the nvidia-settings panel on the PowerMizer tab) - freezes/stutters gone.

But if i let the nvidia GPU go into sleep mode (D3cold state) - freezes apperas every 2 min.
And syslog spammed by:

    ...
    Feb 17 15:55:17 smarttop kernel: [ 9145.605086] nvidia 0000:01:00.0: Enabling HDA controller
    Feb 17 15:57:17 smarttop kernel: [ 9265.612997] nvidia 0000:01:00.0: Enabling HDA controller
    Feb 17 15:58:58 smarttop kernel: [ 9366.357103] nvidia 0000:01:00.0: Enabling HDA controller
    ...
So it looks like the freezes are due to the nvidia HDA controller.

Revision history for this message
Deniz (deniz-dezigner) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.