Cannot wake from sleep, snd_hda_intel errors with 470.74 driver

I have just updated to Ubuntu 21.10, which comes with the 470.74 driver and finally seems to work great with Wayland + NVIDIA with external monitors (even though the iGPU is doing all the work). I am using a Lenovo W540 with a Quadro K2100M, GK106GLM. However, after the update I can no longer resume from suspend, the system shows the following while trying to wake up:

snd_hda_codec_hdmi hdaudioC2D0: Unable to sync register 0x7f0800, -5
watchdog: BUG: soft lockup - CPU#3 stuck for 26s!| [nvidia-sleep.sh:15782]
watchdog: BUG: soft lockup - CPU#3 stuck for 52s!| [nvidia-sleep.sh:15782]
rcu: INFO: rcu_sched self-detected stall on CPU
rcu: $3-....: (14987 ticks this GP) idle=f96/1/0x4000000000000000 softirq=165831/165840 fqs=6773
watchdog: BUG: soft lockup - CPU#3 stuck for 82s!| [nvidia-sleep.sh:15782]
watchdog: BUG: soft lockup - CPU#3 stuck for 108s!| [nvidia-sleep.sh:15782]
watchdog: BUG: soft lockup - CPU#3 stuck for 134s!| [nvidia-sleep.sh:15782]
INFO: task gnome-shell:2193 blocked for more than 120 seconds.
           Tainted: P                0 L      5.13.0-20-generic #20-Ubuntu
"echo 0 > /proc/sys/kernerl/hung_task_timeout_secs" disables this message.

I tried uninstalling/reinstalling the driver without success. dmesg also includes related messages:

[   36.186871] snd_hda_intel 0000:01:00.1: can't change power state from D3cold to D0 (config space inaccessible)
[   36.571058] snd_hda_codec_hdmi hdaudioC2D0: Unable to sync register 0x7f0800. -5
[   36.571072] snd_hda_codec_hdmi hdaudioC2D0: HDMI: invalid ELD buf size -1
[   36.571076] snd_hda_codec_hdmi hdaudioC2D0: HDMI: invalid ELD buf size -1
[   36.571080] snd_hda_codec_hdmi hdaudioC2D0: HDMI: invalid ELD buf size -1
[   36.571084] snd_hda_codec_hdmi hdaudioC2D0: HDMI: invalid ELD buf size -1

Relevant devices:

00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
	Subsystem: Lenovo 4th Gen Core Processor Integrated Graphics Controller [17aa:2211]
	Kernel driver in use: i915
	Kernel modules: i915
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
	Subsystem: Lenovo Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [17aa:2211]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 04)
	Subsystem: Lenovo 8 Series/C220 Series Chipset High Definition Audio Controller [17aa:2211]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK106GLM [Quadro K2100M] [10de:11fc] (rev a1)
	Subsystem: Lenovo GK106GLM [Quadro K2100M] [17aa:2211]
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
01:00.1 Audio device [0403]: NVIDIA Corporation GK106 HDMI Audio Controller [10de:0e0b] (rev ff)
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

Note that it is the NVIDIA HDMI Audio Controller at 01:00.1 that is causing the problem, can we disable this device or load an appropriate driver for it?

I had similar issue and disabled problematic device using an udev rule:

cat /etc/udev/rules.d/10-remove-nvidia-audio.rules

ACTION=="add", KERNEL=="0000:01:00.1", SUBSYSTEM=="pci", RUN+="/bin/sh -c 'echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove'"

After adding the rule updating initramfs may be needed.

Thanks, disabling the device as you described and runnin update-initramfs -u worked for me as well. Standby/resume functionality restored!

What is the cause of this problem, why doesn’t the NVIDIA driver do this configuration itself?