[1.] One line summary of the problem:
A page fault occurs when the sound driver is loaded.
[2.] Full description of the problem/report:
A page fault occurs when the sound driver for Intel Commet-Lake platform is loaded. This happens e.g. on Lenovo ThinkPad X13 and T14 at startup and version 1.4.3 of intel-sof-firmware binaries (https://github.com/thesofproject/sof-bin/tree/stable-v1.4.3). Same result with version 1.5.1.
[3.] Keywords (i.e., modules, networking, kernel): [4.] Kernel information [4.1.] Kernel version (from /proc/version):
5.9-rc5 commit-id: fc4f28bb3daf3265d6bc5f73b497306985bb23ab
[4.2.] Kernel .config file:
See attachment for full configuration, the important part is:
... CONFIG_SND_SOC=y CONFIG_SND_SOC_INTEL_SST_TOPLEVEL=y CONFIG_SND_SOC_INTEL_CML_LP=y CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=y CONFIG_SND_SOC_INTEL_MACH=y CONFIG_SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH=y CONFIG_SND_SOC_SOF_TOPLEVEL=y CONFIG_SND_SOC_SOF_PCI=y CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL=y CONFIG_SND_SOC_SOF_COMETLAKE_LP_SUPPORT=y CONFIG_SND_SOC_SOF_HDA_LINK=y CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC=y CONFIG_SND_SOC_SOF_HDA_ALWAYS_ENABLE_DMI_L1=y ...
[5.] Most recent kernel version which did not have the bug:
- Ubuntu 20.04.1 works fine (5.4.0-45) - Kernel 5.4.61 with some backports from 5.7
[6.] Output of Oops.. message (if applicable) with symbolic information resolved (see Documentation/admin-guide/oops-tracing.rst)
See attachment for full log.
... [ 6.380009] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380 [ 6.380536] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver [ 6.381915] usbcore: registered new interface driver snd-usb-audio [ 6.382525] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380 [ 6.383090] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver [ 6.386039] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040380 [ 6.386862] usb 1-1: New USB device found, idVendor=058f, idProduct=9540, bcdDevice= 1.20 [ 6.386959] IPv4 over IPsec tunneling driver [ 6.387207] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops) [ 6.387747] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 6.389474] usb 1-1: Product: EMV Smartcard Reader [ 6.390069] usb 1-1: Manufacturer: Generic [ 6.390892] Initializing XFRM netlink socket [ 6.392858] NET: Registered protocol family 10 [ 6.395179] sof-audio-pci 0000:00:1f.3: use msi interrupt mode [ 6.396219] Segment Routing with IPv6 [ 6.399097] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 6.402236] NET: Registered protocol family 17 [ 6.405170] NET: Registered protocol family 15 [ 6.406068] 9pnet: Installing 9P2000 support [ 6.408354] microcode: sig=0x806ec, pf=0x4, revision=0xd6 [ 6.409081] microcode: Microcode Update Driver: v2.2. [ 6.409083] IPI shorthand broadcast: enabled [ 6.410374] sched_clock: Marking stable (6404500108, 5227507)->(6418014859, -8287244) [ 6.411127] Loading compiled-in X.509 certificates [ 6.412635] HDMI HDA Codec ehdaudio0D2: Max dais supported: 3 [ 6.413502] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5 [ 6.414129] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now [ 6.414714] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 2 [ 6.416290] Loaded X.509 cert 'Build time autogenerated kernel key: b521b2c060c3f56dd5ab1fbfb34c05c2916a8c0c' [ 6.416931] pstore: Using crash dump compression: deflate [ 6.423238] PM: Magic number: 4:125:733 [ 6.423900] hwmon hwmon0: hash matches [ 6.424597] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 6.429162] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 6.434042] ALSA device list: [ 6.434894] No soundcards found. [ 6.439211] Freeing unused kernel image (initmem) memory: 1572K [ 6.445948] Write protecting the kernel read-only data: 24576k [ 6.448072] Freeing unused kernel image (text/rodata gap) memory: 2044K [ 6.448904] Freeing unused kernel image (rodata/data gap) memory: 368K [ 6.449569] Run /init as init process [ 6.450203] with arguments: [ 6.450203] /init [ 6.450204] with environment: [ 6.450204] HOME=/ [ 6.450204] TERM=linux [ 6.450205] BOOT_IMAGE=/isolinux/bzImage [ 6.450205] intel_iommu=on,igfx_off [ 6.487322] usb 2-4: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd [ 6.501610] usb 2-4: New USB device found, idVendor=0781, idProduct=5580, bcdDevice= 0.10 [ 6.502354] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.503080] usb 2-4: Product: Extreme [ 6.503794] usb 2-4: Manufacturer: SanDisk [ 6.504502] usb 2-4: SerialNumber: AA010121131224373982 [ 6.519956] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:4:3-76052 [ 6.520648] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:11:0 Kernel ABI 3:16:0 [ 6.521724] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:11:0 Kernel ABI 3:16:0 [ 6.522393] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled [ 6.524941] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled [ 6.528203] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled [ 6.533912] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled [ 6.534597] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled [ 6.540491] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled [ 6.541826] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled [ 6.546622] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled [ 6.547556] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled [ 6.548221] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled [ 6.548852] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled [ 6.549510] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled [ 6.550316] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled [ 6.551743] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled [ 6.552380] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled [ 6.554251] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled [ 6.554853] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled [ 6.557362] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled [ 6.578044] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred [ 6.583577] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 5:0 [ 6.584601] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 6:0 [ 6.585451] HDMI HDA Codec ehdaudio0D2: hdac_hdmi_present_sense: disconnect for pin:port 7:0 [ 6.605984] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC257: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker [ 6.607282] snd_hda_codec_realtek ehdaudio0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) [ 6.608474] snd_hda_codec_realtek ehdaudio0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0) [ 6.611586] snd_hda_codec_realtek ehdaudio0D0: mono: mono_out=0x0 [ 6.612904] snd_hda_codec_realtek ehdaudio0D0: inputs: [ 6.615225] snd_hda_codec_realtek ehdaudio0D0: Mic=0x19 [ 6.615902] usb 1-8: new high-speed USB device number 3 using xhci_hcd [ 6.667538] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi3 overwritten [ 6.668264] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi2 overwritten [ 6.668918] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi1 overwritten [ 6.669698] BUG: unable to handle page fault for address: ffffffffffffffe0 [ 6.670415] #PF: supervisor write access in kernel mode [ 6.670993] #PF: error_code(0x0002) - not-present page [ 6.671558] PGD 34180d067 P4D 34180d067 PUD 34180f067 PMD 0 [ 6.672142] Oops: 0002 [#1] SMP NOPTI [ 6.672675] CPU: 2 PID: 126 Comm: kworker/2:2 Not tainted 5.9.0-devel+ #2 [ 6.673225] Hardware name: LENOVO 20S1S19N00/20S1S19N00, BIOS N2XET16W (1.06 ) 05/13/2020 [ 6.673844] Workqueue: events sof_probe_work [ 6.674387] RIP: 0010:hda_dsp_hdmi_build_controls+0x5b/0xff [ 6.674942] Code: 48 8d 98 20 ff ff ff 49 39 c4 74 4c 45 31 ff 49 c7 c6 e0 1a 36 a2 44 89 fe 48 89 ef e8 1e ff ff ff 48 85 c0 0f 84 be 00 00 00 <48> 89 83 c0 00 00 00 44 8b 48 18 44 89 8b bc 00 00 00 0f 1f 44 00 [ 6.675525] RSP: 0000:ffff9e93038e7b08 EFLAGS: 00010286 [ 6.676113] RAX: ffff8ef56180f000 RBX: ffffffffffffff20 RCX: 0000000000000004 [ 6.676705] RDX: 0000000000000004 RSI: ffffffffa26e729f RDI: ffff8ef56180f02d [ 6.677291] RBP: ffffffffa291a240 R08: 0000000000000049 R09: 0000000000000000 [ 6.677889] R10: ffff8ef5635ef024 R11: ffff9e93207d8220 R12: ffff8ef56231dc68 [ 6.678481] R13: ffff8ef56231d828 R14: ffffffffa2361ae0 R15: 0000000000000000 [ 6.679064] FS: 0000000000000000(0000) GS:ffff8ef56f680000(0000) knlGS:0000000000000000 [ 6.679667] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6.680322] CR2: ffffffffffffffe0 CR3: 0000000820c24003 CR4: 00000000003706e0 [ 6.680968] Call Trace: [ 6.681583] skl_hda_hdmi_jack_init+0x119/0x12b [ 6.682227] ? snprintf+0x49/0x60 [ 6.682844] snd_soc_card_late_probe+0x1e/0x70 [ 6.683461] snd_soc_bind_card+0x83f/0x960 [ 6.684075] devm_snd_soc_register_card+0x43/0x80 [ 6.684676] skl_hda_audio_probe+0x142/0x2e0 [ 6.685265] platform_drv_probe+0x35/0x80 [ 6.685851] really_probe+0x31b/0x430 [ 6.686428] ? driver_allows_async_probing+0x50/0x50 [ 6.687004] driver_probe_device+0xde/0x150 [ 6.687581] ? driver_allows_async_probing+0x50/0x50 [ 6.688162] bus_for_each_drv+0x79/0xc0 [ 6.688736] __device_attach+0xe0/0x160 [ 6.689310] bus_probe_device+0x87/0xa0 [ 6.689885] device_add+0x436/0x810 [ 6.690458] ? _cond_resched+0x15/0x30 [ 6.691032] platform_device_add+0x110/0x240 [ 6.691611] platform_device_register_full+0xc7/0x120 [ 6.692191] sof_machine_register+0x60/0xc0 [ 6.692777] sof_probe_work+0x11c/0x230 [ 6.693357] process_one_work+0x205/0x3d0 [ 6.693938] ? process_one_work+0x3d0/0x3d0 [ 6.694515] worker_thread+0x2d/0x3c0 [ 6.695090] ? process_one_work+0x3d0/0x3d0 [ 6.695664] kthread+0x116/0x130 [ 6.696235] ? kthread_park+0x80/0x80 [ 6.696804] ret_from_fork+0x1f/0x30 [ 6.697372] Modules linked in: [ 6.697936] CR2: ffffffffffffffe0 [7.] A small shell script or example program which triggers the problem (if possible) [8.] Environment [8.1.] Software (add the output of the ver_linux script here) [8.2.] Processor information (from /proc/cpuinfo): [8.3.] Module information (from /proc/modules): [8.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem) [8.5.] PCI information ('lspci -vvv' as root) [8.6.] SCSI information (from /proc/scsi/scsi) [8.7.] Other information that might be relevant to the problem (please look in /proc and include all information that you think to be relevant): [X.] Other notes, patches, fixes, workarounds: