If there is no HDMI/DP monitor connected, it will fail to power on power well 2. This will cause HDA display audio totally not work even get the information of the codec. The attached dmesg shows the error message when audio try to power on the power well 2 when there is no monitor.
Created attachment 116991 [details] dmesg
Test drm-intel-testing-2015-05-22 (commit 62115e0dd5e7272ac28fe3549ea3e93f45d5c1a4) with Han's patch,it works well. Then with the kernel snapshot when Han’s patch enter the upstream(commit 2377c3c388815cd0a33309a6b6bb713600258a3e),the issue exist.
Created attachment 117001 [details] Han's patch
Is the audio driver correctly calling i915_audio_component's get_power() and put_power()? Those functions are supposed to grab POWER_DOMAIN_AUDIO, which is supposed to turn on power well 2 on the graphics driver.
Bug scrub: assigned to Mika
(In reply to Paulo Zanoni from comment #4) > Is the audio driver correctly calling i915_audio_component's get_power() and > put_power()? Those functions are supposed to grab POWER_DOMAIN_AUDIO, which > is supposed to turn on power well 2 on the graphics driver. Yes, the audio driver will call get_power() The reproduce steps on SKL are: 1. bootup with HDMI monitor connected 2. disconnect the monitor 3. wait for several seconds. 5 seconds should be enough 4. run `cat /proc/asound/card0/codec#2 5. run `cat /proc/asound/card0/eld* You will find the eld info and codec info are wrong. And when you run dmesg, you will find the CSR firmware not ready error message. BTW: we tested today latest kernel, it seems we can get the correct eld info, but the CSR firmware not ready message still exists.
CSR firmware warnings are probably not related to this original issue but still worth to take a closer look. Do you have a /lib/firmware/i915/skl_dmc_ver1.bin linked to skl_dmc_ver1_19.bin?
(In reply to Mika Kahola from comment #7) > CSR firmware warnings are probably not related to this original issue but > still worth to take a closer look. I agree. CSR firmware should be not related to this issue. > > Do you have a /lib/firmware/i915/skl_dmc_ver1.bin linked to > skl_dmc_ver1_19.bin? Yes, there is skl_dmc_ver1.bin linked to the skl_dmc_ver1_19.bin (maybe another one, I will check it tomorrow).
This issue can't be reproduced on latest nightly kernel. So we can close this issue. Thanks for help.
Ok, thanks for testing.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.