[alsa-devel] azx_probe() called twice
Dear Linux folks,
With the attached debug patch, `azx_probe()` seems to have been called twice on the ASRock E350M1. Is that expected? It also differs, that it’s only called once during some boots, and twice during others.
[ 0.000000] Linux version 4.17.0-rc2+ (root@35489178f57d) (gcc version 7.3.0 (Debian 7.3.0-15)) #12 SMP Mon Apr 23 06:57:55 UTC 2018 […] [ 2.746962] calling azx_driver_init+0x0/0xfe4 [snd_hda_intel] @ 214 [ 2.777881] random: get_random_u32 called from arch_rnd.part.2+0x18/0x40 with crng_init=1 [ 2.777900] random: get_random_u32 called from load_elf_binary+0x76a/0x1d20 with crng_init=1 [ 2.777907] random: get_random_u32 called from arch_align_stack+0x45/0x70 with crng_init=1 [ 2.777938] random: get_random_u32 called from arch_rnd.part.2+0x18/0x40 with crng_init=1 [ 2.778822] random: get_random_u32 called from arch_align_stack+0x45/0x70 with crng_init=1 [ 2.778846] random: get_random_u32 called from randomize_page+0x42/0x57 with crng_init=1 [ 2.781026] calling shpcd_init+0x0/0x1000 [shpchp] @ 219 [ 2.781154] random: get_random_u32 called from cache_alloc_refill+0x5bb/0x13d0 with crng_init=1 [ 2.781477] calling k10temp_driver_init+0x0/0x1000 [k10temp] @ 215 [ 2.796426] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.17 [ 2.796434] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.796438] usb usb3: Product: OHCI PCI host controller [ 2.796441] usb usb3: Manufacturer: Linux 4.17.0-rc2+ ohci_hcd [ 2.796445] usb usb3: SerialNumber: 0000:00:12.0 [ 2.796922] hub 3-0:1.0: USB hub found [ 2.796968] hub 3-0:1.0: 5 ports detected [ 2.798039] ohci-pci 0000:00:13.0: OHCI PCI host controller [ 2.798056] ohci-pci 0000:00:13.0: new USB bus registered, assigned bus number 4 [ 2.798123] ohci-pci 0000:00:13.0: irq 18, io mem 0xf0149000 [ 2.804555] random: get_random_u32 called from cache_random_seq_create+0xa3/0x1f0 with crng_init=1 [ 2.804604] random: get_random_u32 called from copy_process.part.33+0x186/0x2100 with crng_init=1 [ 2.804625] random: get_random_u32 called from cache_random_seq_create+0xa3/0x1f0 with crng_init=1 [ 2.804669] random: get_random_u32 called from cache_alloc_refill+0x5bb/0x13d0 with crng_init=1 [ 2.860446] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.17 [ 2.860455] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.860459] usb usb4: Product: OHCI PCI host controller [ 2.860463] usb usb4: Manufacturer: Linux 4.17.0-rc2+ ohci_hcd [ 2.860466] usb usb4: SerialNumber: 0000:00:13.0 [ 2.860899] hub 4-0:1.0: USB hub found [ 2.860941] hub 4-0:1.0: 5 ports detected [ 2.861606] 1 [ 2.861632] 2 [ 2.861991] 3 [ 2.861992] 4 [ 2.861993] 5 [ 2.861995] 6 [ 2.861996] 7 [ 2.862004] 8 [ 2.862005] 9 [ 2.862290] 1 [ 2.862307] 2 [ 2.862642] 3 [ 2.862643] 4 [ 2.862645] 5 [ 2.862646] 6 [ 2.862647] 7 [ 2.862654] 8 [ 2.862655] 9 [ 2.862934] initcall azx_driver_init+0x0/0xfe4 [snd_hda_intel] returned 0 after 79525 usecs
Please find the full log attached.
Kind regards,
Paul
On Wed, 25 Apr 2018 13:48:27 +0200, Paul Menzel wrote:
Dear Linux folks,
With the attached debug patch, `azx_probe()` seems to have been called twice on the ASRock E350M1. Is that expected? It also differs, that it’s only called once during some boots, and twice during others.
How many HD-audio devices does it have?
Takashi
Dear Takashi,
On 04/25/18 13:58, Takashi Iwai wrote:
On Wed, 25 Apr 2018 13:48:27 +0200, Paul Menzel wrote:
With the attached debug patch, `azx_probe()` seems to have been called twice on the ASRock E350M1. Is that expected? It also differs, that it’s only called once during some boots, and twice during others.
How many HD-audio devices does it have?
I’d say one (ALC892), but how do I verify that? Please find lspci and Linux logs attached from an older boot with Linux 4.11.
Kind regards,
Paul
On Wed, 25 Apr 2018 14:29:31 +0200, Paul Menzel wrote:
Dear Takashi,
On 04/25/18 13:58, Takashi Iwai wrote:
On Wed, 25 Apr 2018 13:48:27 +0200, Paul Menzel wrote:
With the attached debug patch, `azx_probe()` seems to have been called twice on the ASRock E350M1. Is that expected? It also differs, that it’s only called once during some boots, and twice during others.
How many HD-audio devices does it have?
I’d say one (ALC892), but how do I verify that?
I meant HD-audio controllers.
Please find lspci and Linux logs attached from an older boot with Linux 4.11.
....
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
....
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
So you have two HD-audio controllers (one for HDMI/DP and another for Realtek codec). It's expected behavior that azx_probe() gets called twice.
Takashi
Dear Takashi,
On 04/25/18 14:34, Takashi Iwai wrote:
On Wed, 25 Apr 2018 14:29:31 +0200, Paul Menzel wrote:
On 04/25/18 13:58, Takashi Iwai wrote:
On Wed, 25 Apr 2018 13:48:27 +0200, Paul Menzel wrote:
With the attached debug patch, `azx_probe()` seems to have been called twice on the ASRock E350M1. Is that expected? It also differs, that it’s only called once during some boots, and twice during others.
How many HD-audio devices does it have?
I’d say one (ALC892), but how do I verify that?
I meant HD-audio controllers.
Please find lspci and Linux logs attached from an older boot with Linux 4.11.
....
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
....
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
So you have two HD-audio controllers (one for HDMI/DP and another for Realtek codec). It's expected behavior that azx_probe() gets called twice.
True. Too many log files I looked at lately, and I got confused. Sorry for the noise.
Could the probe theoretically be done in parallel?
Kind regards,
Paul
On Wed, 25 Apr 2018 14:38:36 +0200, Paul Menzel wrote:
Dear Takashi,
On 04/25/18 14:34, Takashi Iwai wrote:
On Wed, 25 Apr 2018 14:29:31 +0200, Paul Menzel wrote:
On 04/25/18 13:58, Takashi Iwai wrote:
On Wed, 25 Apr 2018 13:48:27 +0200, Paul Menzel wrote:
With the attached debug patch, `azx_probe()` seems to have been called twice on the ASRock E350M1. Is that expected? It also differs, that it’s only called once during some boots, and twice during others.
How many HD-audio devices does it have?
I’d say one (ALC892), but how do I verify that?
I meant HD-audio controllers.
Please find lspci and Linux logs attached from an older boot with Linux 4.11.
....
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler HDMI Audio
....
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
So you have two HD-audio controllers (one for HDMI/DP and another for Realtek codec). It's expected behavior that azx_probe() gets called twice.
True. Too many log files I looked at lately, and I got confused. Sorry for the noise.
Could the probe theoretically be done in parallel?
I guess you can pass snd_hda_intel.async_probe boot option.
Takashi
participants (2)
-
Paul Menzel
-
Takashi Iwai