lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cc9990c5-5fa3-dbeb-29c3-86f4d5456670@molgen.mpg.de>
Date:   Wed, 13 Feb 2019 15:58:44 +0100
From:   Paul Menzel <pmenzel+alsa-devel@...gen.mpg.de>
To:     Takashi Iwai <tiwai@...e.de>
Cc:     alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: snd_hda_codec_hdmi: `hdaudio hdaudioC0D2: Unable to bind the
 codec`

Dear Takashi,


I am sorry for the late reply.


On 09/19/18 20:44, Takashi Iwai wrote:
> On Wed, 19 Sep 2018 13:14:43 +0200,
> Paul Menzel wrote:

>> On 09/18/18 23:00, Takashi Iwai wrote:
>>> On Tue, 18 Sep 2018 17:55:15 +0200, Paul Menzel wrote:
>>
>>>> With drm-tip (v4.19-rc3-946-g09b295662edd) Linux prints
>>>> `snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec`
>>>> to the log.
>>>>
>>>> ```
>>>> […]
>>>> [   12.481788] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC671: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
>>>> [   12.482536] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=1 (0x17/0x0/0x0/0x0/0x0)
>>>> [   12.483184] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x14/0x0/0x0/0x0/0x0)
>>>> [   12.483737] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
>>>> [   12.484198] snd_hda_codec_realtek hdaudioC0D0:    inputs:
>>>> [   12.484582] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
>>>> [   12.485100] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
>>>> [   12.485519] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
>>>> [   12.497685] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
>>>> [   12.498311] hdaudio hdaudioC0D2: Unable to bind the codec
>>>> [   12.498789] input: HDA Intel PCH Front Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input6
>>>> [   12.499567] input: HDA Intel PCH Rear Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input7
>>>> [   12.500268] input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1f.3/sound/card0/input8
>>>> [   12.501039] input: HDA Intel PCH Line Out as /devices/pci0000:00/0000:00:1f.3/sound/card0/input9
>>>> [   12.501683] input: HDA Intel PCH Front Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input10
>>>> [   17.743338] [drm:intel_pch_type [i915]] Found SunrisePoint PCH
>>>> […]
>>>> ```
>>>>
>>>> Is that an error or just a notice?
>>>
>>> This must be a side-effect of the recent change in i915 to be async
>>> probe.  This made me checking the corresponding ALSA audio binding
>>> code change, and actually found a bug.
>>>
>>> Could you try the fix below?

Currently, I am testing Linux 4.20.8, which has your patch included.
The problem is still there.

[…]

> So it has waited for 10 seconds and timed out.  You can check the
> calls via init_debug option or such to verify it.

I added `initcall_debug` to the Linux kernel command line. Please find
the whole log attached.

```
[   12.486972] snd_hda_intel 0000:00:1f.3: couldn't bind with audio component
[   12.498511] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC671: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line
[   12.499251] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=1 (0x17/0x0/0x0/0x0/0x0)
[   12.499917] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x14/0x0/0x0/0x0/0x0)
[   12.500568] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[   12.501135] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[   12.501575] snd_hda_codec_realtek hdaudioC0D0:      Front Mic=0x19
[   12.502116] snd_hda_codec_realtek hdaudioC0D0:      Rear Mic=0x18
[   12.502544] snd_hda_codec_realtek hdaudioC0D0:      Line=0x1a
[   12.513626] probe of hdaudioC0D0 returned 1 after 15764 usecs
[   12.513749] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[   12.514455] probe of hdaudioC0D2 returned 0 after 727 usecs
[   12.514462] hdaudio hdaudioC0D2: Unable to bind the codec
```

[…]

> Why the i915 driver gets initialized *so late*?

Maybe, because it’s built as a module?

```
$ grep I915 /boot/config-4.20.8.mx64.245 
CONFIG_DRM_I915=m
# CONFIG_DRM_I915_ALPHA_SUPPORT is not set
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
# CONFIG_DRM_I915_GVT is not set
CONFIG_SND_HDA_I915=y
```

> BTW, could you strip the mail to more lightweight?  We don't need so
> much things, just the relevant kernel messages should suffice.
Sure. Hopefully, this message is more to your liking.


Kind regards,

Paul

View attachment "config-4.20.8.mx64.245" of type "text/plain" (129628 bytes)

View attachment "20190213–linux_4.20.8–dmesg.txt" of type "text/plain" (121545 bytes)

Download attachment "smime.p7s" of type "application/pkcs7-signature" (5174 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ