Repository navigation
[WHL HDA] pulseaudio have no sound #1173
Copy link
Copy link
Closed
Labels
BYTApplies to Baytrail platformApplies to Baytrail platformHDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionWHLApplies to WhiskeyLake platformApplies to WhiskeyLake platformbugSomething isn't working as expectedSomething isn't working as expected
Milestone
Description
Summary:
pulseaudio have no sound on WHL-hda platform. Sof-logger have no obvious error trace.
Step:
1.paplay Music/California_Dreaming_48k_16bit.wav
Dmesg:
[ 15.344080] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 0 DMA position 5328 DAI position 467352
[ 15.344128] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 0 DMA position 5328 DAI position 467352
[ 15.344139] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 0 DMA position 5328 DAI position 467352
[ 15.370082] sof-audio-pci 0000:00:1f.3: ipc rx: 0x600a0000: GLB_STREAM_MSG: POSITION
[ 15.370154] sof-audio-pci 0000:00:1f.3: posn mailbox: posn offset is 0xc104c
[ 15.370160] sof-audio-pci 0000:00:1f.3: posn : host 0x9240 dai 0x1d0460 wall 0x715768a
[ 15.370166] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x600a0000: GLB_STREAM_MSG: POSITION
[ 15.381909] sof-audio-pci 0000:00:1f.3: ipc rx: 0x600a0007: GLB_STREAM_MSG: POSITION
[ 15.381982] sof-audio-pci 0000:00:1f.3: posn mailbox: posn offset is 0xc1000
[ 15.381987] sof-audio-pci 0000:00:1f.3: posn : host 0x9300 dai 0x1d0b78 wall 0x7175094
[ 15.381992] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x600a0007: GLB_STREAM_MSG: POSITION
[ 15.422768] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 0 DMA position 9360 DAI position 475416
[ 15.422798] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 0 dir 0 cmd 0
[ 15.422819] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 15.423033] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 15.423057] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=0
[ 15.423130] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 0
[ 15.423138] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 15.423253] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 15.423430] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 0
[ 15.425182] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 1 DMA position 9408 DAI position 475870
[ 15.425212] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 1 DMA position 9408 DAI position 475870
[ 15.425223] sof-audio-pci 0000:00:1f.3: PCM: stream 0 dir 1 DMA position 9408 DAI position 475870
[ 15.425244] sof-audio-pci 0000:00:1f.3: pcm: trigger stream 0 dir 1 cmd 0
[ 15.425260] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 15.425395] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 15.425416] sof-audio-pci 0000:00:1f.3: In hda_link_pcm_trigger cmd=0
[ 15.425463] sof-audio-pci 0000:00:1f.3: pcm: free stream 0 dir 1
[ 15.425470] sof-audio-pci 0000:00:1f.3: ipc tx: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 15.425593] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x60030000: GLB_STREAM_MSG: PCM_FREE
[ 15.425706] sof-audio-pci 0000:00:1f.3: pcm: close stream 0 dir 1
[ 16.125938] sof-audio-pci 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 16.125967] sof-audio-pci 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 17.955049] sof-audio-pci 0000:00:1f.3: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 17.955235] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 17.955294] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
[ 17.955303] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful
[ 17.955311] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask f
[ 17.955356] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at 00000044
[ 17.955364] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000010 at 00000044
[ 65.613373] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at 00000044
[ 65.613378] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000040 at 00000048
[ 65.613380] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at 00000048
[ 65.616331] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at 00000048
[ 65.616335] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000040 at 00000048
[ 65.616337] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000040 at 00000048
[ 65.616339] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at 00000048
[ 65.616341] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at 00000048
[ 65.616343] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000040 at 00000048
[ 65.616400] sof-audio-pci 0000:00:1f.3: loading firmware
[ 65.616402] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000002 at 00000048
[ 65.616404] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000000 at 00000048
[ 65.616406] sof-audio-pci 0000:00:1f.3: Debug PCIR: 00000000 at 00000044
[ 65.616408] sof-audio-pci 0000:00:1f.3: Debug PCIW: 00000004 at 00000044
[ 65.616409] sof-audio-pci 0000:00:1f.3: booting DSP firmware
[ 65.616484] sof-audio-pci 0000:00:1f.3: period_bytes:0x0
[ 65.616484] sof-audio-pci 0000:00:1f.3: periods:1
[ 65.617313] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0f successful
[ 65.617319] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f0f0e successful
[ 65.617321] sof-audio-pci 0000:00:1f.3: unstall/run core: core_mask = 1
[ 65.617323] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 1 : core_mask 1
[ 65.618309] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x80000000 successful
[ 65.618312] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010e0e successful
[ 65.618327] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
[ 65.688544] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x5000001 successful
[ 68.693861] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x5000001 timedout
[ 68.693875] sof-audio-pci 0000:00:1f.3: error: load fw failed ret: -62
[ 68.693910] sof-audio-pci 0000:00:1f.3: unknown ROM status value 05000001
[ 68.693918] sof-audio-pci 0000:00:1f.3: error: status = 0x00000000 panic = 0x00000000
[ 68.693927] sof-audio-pci 0000:00:1f.3: unknown ROM status value 05000001
[ 68.693934] sof-audio-pci 0000:00:1f.3: error: failed to reset DSP
[ 68.693939] sof-audio-pci 0000:00:1f.3: error: failed to boot DSP firmware after resume -62
[ 68.693966] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 0
[ 68.693969] sof-audio-pci 0000:00:1f.3: error: pcm open failed to resume -22
[ 68.693975] sof-audio-pci 0000:00:1f.3: ASoC: can't open component 0000:00:1f.3: -22
[ 68.693982] HDA Analog: ASoC: failed to start FE -22
Env:
sof cml-003-drop-stable: 55ae67b
kernel sof-dev: 2293bc7
tplg: sof-hda-generic.tplg
HW: WHL (HD-A mode) with ALC700
Log:
logger.log
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BYTApplies to Baytrail platformApplies to Baytrail platformHDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionWHLApplies to WhiskeyLake platformApplies to WhiskeyLake platformbugSomething isn't working as expectedSomething isn't working as expected
Activity
plbossart commentedon Mar 22, 2019
@Jiangxinx Can you clarify what this has to do with pulse audio? the boot issue should happen with aplay as well.
emilchudzik commentedon Mar 25, 2019
@Jiangxinx why did you use sof-hda-generic.tplg? did you get fw from cml-003 branch and topology from master branch?
You should use topology from the same branch as fw.
Please rebuild and try again.
Jiangxinx commentedon Mar 28, 2019
I just used sof-hda-intel-common.tplg from cml-003 branch , and renamed it to sof-hda-generic.tplg.
This issue can still be reproduced on daily test. Pulseaudio have no sound, and failed to check runtime status.
Step:
1.paplay Music/California_Dreaming_48k_16bit.wav -vvvv
2.sudo cat /sys/bus/pci/devices/0000:00:1f.3/power/runtime_status
Dmesg:
[-][WHL] pulseaudio have no sound[/-][+][WHL HDA] pulseaudio have no sound[/+]tlauda commentedon Mar 28, 2019
@Jiangxinx It looks like problem with FW booting. Does it also reproduce with aplay? This message is weird: Connected to device alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.stereo-fallback (index: 0, suspended: yes).
Jiangxinx commentedon Mar 28, 2019
Update some details: aplay is also failed after open pulseaudio service. By the way, this issue can not be reproduced after close pulseaudio service:
Env:
sof cml-003-drop-stable: 55ae67b
sof master: 742f83b
kernel sof-dev: 0367002
tplg: sof-hda-generic.tplg & sof-hda-intel-common.tplg
HW: WHL (HD-A mode) with ALC700
Attach the dmesg info of system booting up after open pulseaudio service :
lgirdwood commentedon Mar 28, 2019
@Jiangxinx usually pulseaudio will "probe" the capabilities of each PCM device and this is where most of any breakage will occur. So I would really expect to see IPC timeout or FW/driver crash here, but in this case it appears PM/boot related. Can you confirm this is only an issue with WHL and pulseaudio works with the same topology on other platforms.
RanderWang commentedon Mar 29, 2019
According to Michal: cml-0003 is not for HDA, please validate it on master.
I tested on master and got sound, but the sound is not enjoyable.
RanderWang commentedon Mar 29, 2019
sorry, I find that I disable PM on WHL. I get fw load failed with pm enabled. I will work on it.
mengdonglin commentedon Mar 29, 2019
@Jiangxinx @stevyan please help to use master branch to test WHL RVP in HD-A mode, and update the status.
Jiangxinx commentedon Mar 29, 2019
I have checked the master branch on daily version, pulseaudio still have no sound and aplay also failed after open pulseaudio service.
Env:
sof master: 742f83b
kernel sof-dev: e29122d
tplg: sof-hda-generic.tplg
HW: WHL (HD-A mode) with ALC700
9 remaining items
emilchudzik commentedon Apr 15, 2019
Please check my comments:
#1254 (comment)
Seems like duplicate to 1254.
Environment:
Platform: WHL RVP - HDA mode
Kernel:
2de29fa [thesofproject/linux: topic/sof-dev]
+d04ccf494 [RanderWang/linux: cml-validation-20190415]
+bfb0729dd [RanderWang/linux: cml-validation-20190415]
+8a2b13a81 [RanderWang/linux: cml-validation-20190415]
+63ceb8f68 [RanderWang/linux: cml-validation-20190415]
+db89510d0 [RanderWang/linux: cml-validation-20190415]
Firmware: 00bbb11 [thesofproject/sof: master]
Topology: 00bbb11 [thesofproject/sof: master] -> sof-hda-generic.tplg
Jiangxinx commentedon Apr 16, 2019
This issue can also be reproduced on BYT rt5651 platform.
Env
sof master: 1b15fad
kernel sof-dev: 2de29fa(compiled with thesofproject/linux#823 )
tplg: sof-byt-rt5651.tplg
emilchudzik commentedon Apr 16, 2019
Plese check my comments here: #1263 (comment)
xiulipan commentedon Apr 16, 2019
@Jiangxinx
If this issue is still with WHL HDA. If not please close this issue and create a new issue for BYT.
tlauda commentedon Apr 19, 2019
@Jiangxinx Still reproducible?
mengdonglin commentedon Apr 22, 2019
@tlauda @Jiangxinx Rander is working on this . This is a kernel issue.
stevyan commentedon Apr 22, 2019
Summary
This issue cannot be reproduced on BYT rt5651 platform.
Test Recipe
date: 2019-04-22
sof master: 0c93261
kernel sof-dev: 9086043
tplg: sof-byt-rt5651.tplg
Jiangxinx commentedon Apr 22, 2019
This issue can not be reproduced on daily test.
Environment
Kernel Repo: https://github.com/RanderWang/linux/commits/cml-validation-20190422
Made from: RanderWang/linux@9086043 [thesofproject/linux: topic/sof-dev]
+RanderWang/linux@c105b1b
+RanderWang/linux@ffecddc8
+RanderWang/linux@3b917aa
+RanderWang/linux@6f928a3
+RanderWang/linux@a916d2d
+RanderWang/linux@694599b
+RanderWang/linux@a43379d
+RanderWang/linux@d36ed40
+RanderWang/linux@9b3bd71
+RanderWang/linux@e852311
+RanderWang/linux@8f30111
+RanderWang/linux@95cd082
Firmware Repo :https://github.com/bardliao/sof/tree/whl-daliy-20190422
Made from: bardliao/sof@0c93261
+bardliao@35fbf79
+bardliao@3f91567
Topology: Same as above SOF repo
lgirdwood commentedon Apr 23, 2019
@Jiangxinx please close once patches merged upstream into master and sof-dev.
emilchudzik commentedon Apr 29, 2019
@Jiangxinx @mengdonglin please close. issue currently doesn't exists on: kernel:cml-validation-20190425 and FW: master/e4a9f86
RanderWang commentedon Apr 30, 2019
@emilchudzik It is a tmp solution included in the cml-validation-20190425
wenqingfu commentedon May 8, 2019
will close after thesofproject/linux#895 is merged