Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux-stable 6.0.3+: failure with edhaudio0D2 codec #3960

Closed
plbossart opened this issue Oct 25, 2022 · 4 comments
Closed

Linux-stable 6.0.3+: failure with edhaudio0D2 codec #3960

plbossart opened this issue Oct 25, 2022 · 4 comments
Labels
bug Something isn't working Community end-user or distro-reported issues NOT on topic/sof-dev issue that does not happen on branch topic/sof-dev P1 Blocker bugs or important features

Comments

@plbossart
Copy link
Member

Forking a new issue, this has been reported in #3900 and #3777 (comment)

[    6.191352] snd_hda_codec_hdmi ehdaudio0D2: failed to create hda codec -12
[    6.191416] snd_hda_codec_hdmi ehdaudio0D2: ASoC: error at snd_soc_component_probe on ehdaudio0D2: -12
[    6.191440] sof-essx8336 sof-essx8336: ASoC: failed to instantiate card -12

This looks like an upstream regression reported in #3764 that isn't handled well.

@plbossart plbossart added bug Something isn't working P1 Blocker bugs or important features NOT on topic/sof-dev issue that does not happen on branch topic/sof-dev Community end-user or distro-reported issues labels Oct 25, 2022
@plbossart
Copy link
Member Author

on a TGL Dell device, we even have a nice trace

[   59.036294] WARNING: CPU: 6 PID: 505 at sound/hda/array.c:21 snd_array_new+0x9b/0xc0 [snd_hda_core]
[   59.036302] Modules linked in: snd_ctl_led ledtrig_audio snd_soc_sof_sdw(+) snd_soc_intel_hda_dsp_common snd_sof_probes snd_sof_ipc_msg_injector snd_soc_intel_sof_maxim_common snd_sof_ipc_flood_test snd_soc_rt715_sdca snd_soc_rt711_sdca snd_soc_rt1316_sdw regmap_sdw_mbq regmap_sdw snd_hda_codec_hdmi snd_soc_dmic snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_bus snd_soc_core snd_compress snd_seq_dummy snd_hrtimer spi_pxa2xx_platform hid_multitouch snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec wmi_bmof snd_hwdep snd_hda_core x86_pkg_temp_thermal snd_seq intel_powerclamp snd_seq_device psmouse snd_pcm snd_timer snd soundcore intel_lpss_pci intel_lpss mei_me idma64 mei mfd_core processor_thermal_device_pci_legacy processor_thermal_device processor_thermal_rfim
[   59.036334]  processor_thermal_mbox intel_soc_dts_iosf wmi int3403_thermal int340x_thermal_zone int3400_thermal acpi_thermal_rel intel_pmc_core zram intel_ishtp_hid ax88179_178a usbnet i915 i2c_algo_bit drm_buddy drm_display_helper drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt fb_sys_fops cfbcopyarea ttm intel_ish_ipc xhci_pci intel_ishtp vmd xhci_hcd drm drm_panel_orientation_quirks i2c_hid_acpi i2c_hid fuse
[   59.036353] CPU: 6 PID: 505 Comm: systemd-udevd Not tainted 6.0.3-test #1
[   59.036355] Hardware name: Dell Inc. Latitude 9420/0208BI, BIOS 99.1.42 08/21/2020
[   59.036356] RIP: 0010:snd_array_new+0x9b/0xc0 [snd_hda_core]
[   59.036360] Code: 08 4c 89 63 10 44 89 6b 04 eb 04 4c 8b 63 10 0f af c2 8d 4a 01 89 0b 49 01 c4 5b 4c 89 e0 5d 41 5c 41 5d 41 5e c3 cc cc cc cc <0f> 0b 45 31 e4 5b 5d 4c 89 e0 41 5c 41 5d 41 5e c3 cc cc cc cc 0f
[   59.036361] RSP: 0018:ffff9e0d815539d0 EFLAGS: 00010246
[   59.036363] RAX: 0000000000000000 RBX: 0000000000000004 RCX: ffff93e56cd98848
[   59.036364] RDX: ffff93e56cd98848 RSI: ffffffff9f9f8b42 RDI: ffff93e5063ce958
[   59.036364] RBP: ffff93e5063ce958 R08: 0000000dbed61d9f R09: 0000000000000000
[   59.036365] R10: 0000000000000000 R11: 0000000000000000 R12: ffff93e5063ce028
[   59.036366] R13: 0000000000000004 R14: ffff93e51e902030 R15: ffffffffc0c880e0
[   59.036367] FS:  00007f13b378ab40(0000) GS:ffff93e87d400000(0000) knlGS:0000000000000000
[   59.036368] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   59.036369] CR2: 00007feb3ce61c08 CR3: 0000000107952004 CR4: 0000000000770ee0
[   59.036370] PKRU: 55555554
[   59.036371] Call Trace:
[   59.036373]  <TASK>
[   59.036376]  read_pin_defaults+0x8d/0x100 [snd_hda_codec]
[   59.036384]  snd_hda_codec_device_new+0xad/0x1d0 [snd_hda_codec]
[   59.036389]  ? __mutex_unlock_slowpath+0x45/0x280
[   59.036395]  hdac_hda_codec_probe+0x7d/0x210 [snd_soc_hdac_hda]
[   59.036398]  snd_soc_component_probe+0x1e/0x50 [snd_soc_core]
[   59.036410]  soc_probe_component+0x1d6/0x300 [snd_soc_core]
[   59.036419]  snd_soc_bind_card+0x508/0xce0 [snd_soc_core]
[   59.036426]  ? is_module_address+0x43/0x70
[   59.036430]  ? lockdep_init_map_type+0x51/0x240
[   59.036433]  ? debug_mutex_init+0x33/0x50
[   59.036436]  devm_snd_soc_register_card+0x43/0x90 [snd_soc_core]
[   59.036445]  mc_probe+0x985/0xff0 [snd_soc_sof_sdw]
[   59.036451]  ? up_write+0x17/0x140
[   59.036456]  platform_probe+0x58/0xc0
[   59.036461]  really_probe+0xde/0x390
[   59.036463]  ? pm_runtime_barrier+0x50/0x90
[   59.036466]  __driver_probe_device+0x78/0x180
[   59.036468]  driver_probe_device+0x1e/0x90
[   59.036470]  __driver_attach+0x9f/0x1f0
[   59.036472]  ? __device_attach_driver+0x110/0x110
[   59.036473]  ? __device_attach_driver+0x110/0x110
[   59.036475]  bus_for_each_dev+0x78/0xc0
[   59.036478]  bus_add_driver+0x1ac/0x200
[   59.036481]  driver_register+0x8f/0xf0
[   59.036483]  ? 0xffffffffc0c8d000
[   59.036485]  do_one_initcall+0x6f/0x270
[   59.036489]  ? kmem_cache_alloc_trace+0x4e/0x220
[   59.036492]  do_init_module+0x4c/0x1f0
[   59.036494]  __do_sys_finit_module+0xb4/0x130
[   59.036501]  do_syscall_64+0x38/0x90
[   59.036505]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
[   59.036507] RIP: 0033:0x7f13b4344f3d
[   59.036508] Code: 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b3 ce 0e 00 f7 d8 64 89 01 48
[   59.036509] RSP: 002b:00007ffef36c4c28 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[   59.036511] RAX: ffffffffffffffda RBX: 000055d822a35400 RCX: 00007f13b4344f3d
[   59.036512] RDX: 0000000000000000 RSI: 000055d822a32900 RDI: 000000000000000f
[   59.036512] RBP: 000055d822a32900 R08: 0000000000000000 R09: 0000000000000000
[   59.036513] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000020000
[   59.036514] R13: 000055d822a35030 R14: 0000000000000000 R15: 000055d822a3cc00
[   59.036520]  </TASK>
[   59.036520] ---[ end trace 0000000000000000 ]---
[   59.036522] snd_hda_codec_hdmi ehdaudio0D2: failed to create hda codec -12
[   59.036587] snd_hda_codec_hdmi ehdaudio0D2: ASoC: error at snd_soc_component_probe on ehdaudio0D2: -12
[   59.036614] sof_sdw sof_sdw: ASoC: failed to instantiate card -12
[   59.037221] sof_sdw sof_sdw: snd_soc_register_card failed -12
[   59.037260] sof_sdw: probe of sof_sdw failed with error -12

@plbossart
Copy link
Member Author

plbossart commented Oct 25, 2022

reverting commit 7494e2e "ALSA: hda: Fix page fault in snd_hda_codec_shutdown()" on linux-stable works fine.

@crojewsk-intel @crojewsk @tiwai something isn't quite right on linux-stable since that commit was added.

@tiwai
Copy link

tiwai commented Oct 25, 2022

The revert is on its way. See the upstream bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216613

@plbossart
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Community end-user or distro-reported issues NOT on topic/sof-dev issue that does not happen on branch topic/sof-dev P1 Blocker bugs or important features
Projects
None yet
Development

No branches or pull requests

2 participants