Giter Site home page Giter Site logo

thesofproject / sof Goto Github PK

View Code? Open in Web Editor NEW
523.0 523.0 303.0 32.22 MB

Sound Open Firmware

License: Other

Shell 0.65% M4 10.99% C 72.22% Perl 3.03% Assembly 3.45% Dockerfile 0.05% Python 3.71% MATLAB 3.60% CMake 1.63% Makefile 0.09% M 0.01% C++ 0.59%
audio dsp firmware sound

sof's People

Contributors

abonislawski avatar akloniex avatar andyross avatar bardliao avatar bkokoszx avatar btian1 avatar cujomalainey avatar dbaluta avatar iuliana-prodan avatar jajanusz avatar johnylin76 avatar keyonjie avatar ktrzcinx avatar kv2019i avatar laurentium1234 avatar lgirdwood avatar lrgirdwo avatar lyakh avatar marc-hb avatar marcinszkudlinski avatar mrajwa avatar plbossart avatar randerwang avatar ranj063 avatar singalsu avatar softwarecki avatar tlauda avatar tmleman avatar ujfalusi avatar xiulipan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sof's Issues

The volume of rear channels can not be changed on GP platform.

when you play the four-channel music file on the GP platform, you will find the rear channel volume
can not be changed. the root cause is:
the tplg did not support this feature.
the "C_CONTROLMIXER" in "pipe-volume-playback.m4" and "pipe-volume-capture.m4"
only support two channels volume change.

I am not familiar with the m4 language. and who can help fix this issue?
but please pay attention during your fix, this change would affect the tplg script in the test folder.

Playback and capture's volume kctls are mixed in one page

There're different views of kctl in amixer setting, but we found that all kctls of playback and capture are mixed together. For example, in playback view page, we also can found the kctl of capture and vice versa. This is a common issue on each platform.
kctl

Stress Test: 'DSP panic' after long time simultaneous playback and capture on BYT

description:
aplay and arecord both run . After 1 to 3 minutes , both stopped and prompt ' Input/output error',
then check dmesg log , there will be 'DSP panic' :
[ 240.561830] sof-audio sof-audio: error : DSP panic!
[ 240.561861] sof-audio sof-audio: panic: dsp_oops_offset 1329152 offset 1329152
[ 240.561899] sof-audio sof-audio: error: can't enter idle
[ 240.561917] sof-audio sof-audio: error: trace point 60040000
[ 240.561932] sof-audio sof-audio: error: DSP Firmware Oops
[ 240.561947] sof-audio sof-audio: error: Exception Cause: IllegalInstructionCause, Illegal instruction
[ 240.561967] sof-audio sof-audio: EXCCAUSE 0x00000000 EXCVADDR 0x00000000 PS 0x00060525 SAR 0x0000001f
[ 240.561985] sof-audio sof-audio: EPC1 0xff2c17bd EPC2 0xff2cae01 EPC3 0xff2cae01 EPC4 0xff2c0d66
[ 240.562003] sof-audio sof-audio: EPC5 0xff2cae01 EPC6 0x00000000 EPC7 0x00000000 DEPC 0x00000000
[ 240.562021] sof-audio sof-audio: EPS2 0x00060320 EPS3 0x00060320 EPS4 0x00060520 EPS5 0x00060320
[ 240.562039] sof-audio sof-audio: EPS6 0x00000000 EPS7 0x00000000 INTENABL 0x00076f48 INTERRU 0x000000a2
[ 240.562055] sof-audio sof-audio: stack dump from 0xff327e60
[ 240.562074] sof-audio sof-audio: 0xff327e60: 0x00000002 0x00000000 0x00009800 0x30000000
[ 240.562093] sof-audio sof-audio: 0xff327e64: 0xff2ce8e4 0xff327ea0 0xff301d28 0xff3400c0
[ 240.562112] sof-audio sof-audio: 0xff327e68: 0xff2c1d00 0xff306960 0xff30699c 0xff30694c
[ 240.562130] sof-audio sof-audio: 0xff327e6c: 0x7f2cae01 0xff327ec0 0x000000ff 0x00000000
[ 240.562149] sof-audio sof-audio: 0xff327e70: 0x00000008 0x000002c0 0x000002c8 0x00000000
[ 240.562168] sof-audio sof-audio: 0xff327e74: 0xbf2c0d2b 0xff327fc0 0x0124f800 0xff2cdd00
[ 240.562187] sof-audio sof-audio: 0xff327e78: 0x00000001 0x00000000 0x0000001e 0x00000000
[ 240.562205] sof-audio sof-audio: 0xff327e7c: 0xff302914 0xff327f70 0x00000007 0x00000088
[ 240.562221] sof-audio sof-audio: error: waking up any trace sleepers

System Environment:
sof-dev: 26c56d760e2a05cb4d30e7453a82493e6582133c
sof: e69ebdd
soft: 576d15b
using : test-ssp2-mclk-0-I2S-volume-s16le-s16le-48k-19200k-codec.tplg

log:
dmesg.log
rmbox.log
rmbox-t.log

pcm512x codec topology load fail on APL at UP^2 board

sof-dev kernel: f9ab80f566cfcff9e03eaa5e5bbdc510767cd818
sof: c454399
soft: 629d2a6
using sof-apl-pcm512x.tplg
dmesg log
[ 5.472861] bxt-pcm512x bxt-pcm512x: info: override FE DAI link SSP5-Codec
[ 5.472873] bxt-pcm512x bxt-pcm512x: ASoC: CPU DAI sof-audio not registered
[ 5.472877] bxt-pcm512x bxt-pcm512x: snd_soc_register_card failed -517
[ 5.473473] bxt-pcm512x bxt-pcm512x: info: override FE DAI link SSP5-Codec
[ 5.473484] bxt-pcm512x bxt-pcm512x: ASoC: CPU DAI sof-audio not registered
[ 5.473487] bxt-pcm512x bxt-pcm512x: snd_soc_register_card failed -517
[ 5.494185] bxt-pcm512x bxt-pcm512x: info: override FE DAI link SSP5-Codec
[ 5.494198] bxt-pcm512x bxt-pcm512x: ASoC: CPU DAI sof-audio not registered
[ 5.494211] bxt-pcm512x bxt-pcm512x: snd_soc_register_card failed -517

"DSP panic" when pause/release capture and playback is runing

When runing aplay and arecord same time and pause the capture will cause panic
[65799.112194] sof-audio sof-audio: PCM: stream 0 dir 0 DMA position 11136 DAI position 92688
[65799.151303] sof-audio sof-audio: pcm: trigger stream 0 dir 1 cmd 4
[65799.151347] sof-audio sof-audio: ipc: send 0x60070000
[65799.151521] sof-audio sof-audio: ipc: 0x60070000 succeeded
[65799.151597] sof-audio sof-audio: PCM: stream 0 dir 1 DMA position 7872 DAI position 24192
[65799.154303] sof-audio sof-audio: error : DSP panic!
[65799.154323] sof-audio sof-audio: panic: dsp_oops_offset 788480 offset 788480
[65799.154395] sof-audio sof-audio: status: fw entered - code 00000005
[65799.154447] sof-audio sof-audio: error: runtime exception
[65799.154456] sof-audio sof-audio: error: trace point 00004000
[65799.154464] sof-audio sof-audio: error: DSP Firmware Oops
[65799.154493] sof-audio sof-audio: error: Exception Cause: LoadStorePIFDataErrorCause, Synchronous PIF data error during LoadStore access
[65799.154496] sof-audio sof-audio: EXCCAUSE 0x0000000d EXCVADDR 0x00000040 PS 0x00070025 SAR 0x00000020
[65799.154499] sof-audio sof-audio: EPC1 0xbe01b1c4 EPC2 0xbe01b1c1 EPC3 0xbe01b1c1 EPC4 0x00000000
[65799.154502] sof-audio sof-audio: EPC5 0xbe01b1c1 EPC6 0x00000000 EPC7 0x00000000 DEPC 0x00000000
[65799.154505] sof-audio sof-audio: EPS2 0x00060520 EPS3 0x00060520 EPS4 0x00000000 EPS5 0x00060120
[65799.154508] sof-audio sof-audio: EPS6 0x00000000 EPS7 0x00000000 INTENABL 0x000101d8 INTERRU 0x00000222
[65799.154510] sof-audio sof-audio: stack dump from 0xbe07ff40
[65799.154513] sof-audio sof-audio: 0xbe07ff40: 0xbe01b1c4 0x00000000 0x00000020 0x00000000
[65799.154516] sof-audio sof-audio: 0xbe07ff44: 0xbe044024 0x00000000 0x00000008 0x00000000
[65799.154519] sof-audio sof-audio: 0xbe07ff48: 0x0000000d 0x00000000 0xbe020ce9 0xbe020cef
[65799.154522] sof-audio sof-audio: 0xbe07ff4c: 0xbe010b5b 0x00000000 0xbe046aa4 0x00000000
[65799.154525] sof-audio sof-audio: 0xbe07ff50: 0x00000001 0x00000000 0x00000002 0x00000000
[65799.154528] sof-audio sof-audio: 0xbe07ff54: 0x7e0104c6 0x00000000 0x00004000 0x00000000
[65799.154531] sof-audio sof-audio: 0xbe07ff58: 0x00000008 0x00000000 0x00030082 0xbe054800
[65799.154534] sof-audio sof-audio: 0xbe07ff5c: 0x00000000 0x00000000 0x01000000 0x00000000
[65799.154536] sof-audio sof-audio: error: waking up any trace sleepers

XCC compile failed on APL/CNL

This issue is caused by commit : 17c929e

Reproduce Steps:
./script/xtensa-build-all.sh

error message:
checking whether the C compiler works... no
configure: error: in `/home/user/workspace/reef/sof':
configure: error: C compiler cannot create executables

2 samples of SSP port are silent

There are 2 samples(49,50) of SSP port are silent (0). This issue is happened on APL with passthrough and volume topologies. Please see below:
sampling_issue

DMA flow unification

The main goal of the unified flow is to make sure that SW/FW/HW sequences are correct, especially in case of DMA stop where sporadic DMA hangs are possible otherwise. It is also a direct preparation for hda-dai implementation that needs to cooperate with the hda-dma.

Wrong core-isa.h is included using gcc

During build process using gcc, the wrong core-isa.h is included.
It should be the one from the platform directory, but header from xtensa-root/xtensa-xxx-elf/include/xtensa/config/core-isa.h is taken.

Python script to read DSP oops

Write a python script to parse the DSP firmware oops message and then lookup the corresponding EPC C functions from the map/dissassembly files Dsiplay the EPS states too for each level.

Also look up each function and parameters from stack dump using map/disassembly files.

Stress test: noise issue when keep injecting xrun

I found this issue on up^2 with pcm512 tolg. when I playing a 48K_32bits wav file and keep injecting xrun, then I can hear noises from time to time.

How to reproduce this issue:

  1. aplay -D hw:0,0 -f S32_LE -r 48000 -c 2 48K_32bits.wav
  2. inject xrun in other terminal.

How to inject run:
You can inject xrun by writing to a proc file when CONFIG_SND_PCM_XRUN_DEBUG is set in kernel config.
For this case, please run: echo 0 > /proc/asound/card0/pcm0p/sub0/xrun_injection,
I wrote a script for it, please refer:
root@test-UP:/home/test# cat xrun_injection.sh
#!/bin/bash

int=0
while [ $int -lt 100000 ]
do
echo 0 > /proc/asound/card0/pcm0p/sub0/xrun_injection
sleep 1
let int++
done

dmesg-xrun.log
rmbox-xrun.log

"DSP panic" when ALSA XRUN recovery

When ALSA detect a xrun, a stop/start pattern for the recovery is send to firmware. This pattern is not supported now and will cause the DSP to have some error.

volume: zipper noise with fast changes

When I play on Up2 w/ the PCM512x codec, I can hear zipper noise when I keep pressing on up and down arrows to change the PGA Master Volume. This was reported before but apparently the fixes aren't enough. I view this as a bug, volume changes should not introduce audio artifacts (same as soft mute).

noise issue when both front L and front R are connected on GP-MRB

This issue occurs when both front L and front R are connected, but disconnect one of them, the noise will disappear.
sof-dev:a3a39f21218c074c71cd28b0c2c782b1626df3e3
sof-master:c4a9cca0a94969fbf1ecb42d660c0e40279d9ffa
soft-master:2abbfc0910ce9767d01462638d719309746844d1
tplg:sof-apl-tdf8532.tplg

how to reproduce:

  1. ensure both front L and front R are connected.
  2. aplay -D hw:0,0 -f S32_LE -r 48000 -c 4 /home/rander/4ch_32bit.wav , you can hear the noise and the noise sounds like a rustle.
  3. disconnect front L or front R. the noise will disappear

"trace error" stress test for start playback and capture at sametime cause dma trace error on BYT

reproduce step:
start playback
start and stop capture when error happen

rmbox log:

0x0 [188.520303] delta [188.520303] dma eS0
0x10 [188.520305] delta [0.000003] value 0x0000000000000007
0x20 [188.520308] delta [0.000003] value 0x0000000000000203
0x30 [188.520310] delta [0.000002] value 0x0000000000000003
0x40 [188.520313] delta [0.000003] buffer ebb
0x50 [188.520315] delta [0.000002] value 0x00000000fffffff0
0x60 [189.015096] delta [0.494781] dma eS0
0x70 [189.015098] delta [0.000003] value 0x0000000000000007
0x80 [189.015101] delta [0.000003] value 0x0000000000000203
0x90 [189.015103] delta [0.000002] value 0x0000000000000003
0xa0 [189.015106] delta [0.000003] buffer ebb
0xb0 [189.015108] delta [0.000002] value 0x00000000fffffff0
0x0 [188.520303] delta [188.520303] dma eS0
0x10 [188.520305] delta [0.000003] value 0x0000000000000007
0x20 [188.520308] delta [0.000003] value 0x0000000000000203
0x30 [188.520310] delta [0.000002] value 0x0000000000000003
0x40 [188.520313] delta [0.000003] buffer ebb
0x50 [188.520315] delta [0.000002] value 0x00000000fffffff0
0x60 [189.015096] delta [0.494781] dma eS0
0x70 [189.015098] delta [0.000003] value 0x0000000000000007
0x80 [189.015101] delta [0.000003] value 0x0000000000000203
0x90 [189.015103] delta [0.000002] value 0x0000000000000003
0xa0 [189.015106] delta [0.000003] buffer ebb
0xb0 [189.015108] delta [0.000002] value 0x00000000fffffff0

related code
src/drivers/dw-dma.c

	/* is channel idle, disabled and ready ? */
	if (p->chan[channel].status != COMP_STATE_PREPARE ||
		(dw_read(dma, DW_DMA_CHAN_EN) & (0x1 << channel))) {
		ret = -EBUSY;
		trace_dma_error("eS0");
		trace_error_value(dw_read(dma, DW_DMA_CHAN_EN));
		trace_error_value(dw_read(dma, DW_CFG_LOW(channel)));
		trace_error_value(p->chan[channel].status);
		goto out;
	}

src/lib/dma-trace.c

	/* copy this section to host */
	size = dma_copy_to_host_nowait(&d->dc, config, d->host_offset,
		buffer->r_ptr, size);
	if (size < 0) {
		trace_buffer_error("ebb");
		trace_error_value(size);
		goto out;
	}

compile error:Need OpenSSL libcrypto for rimage code signing

use ./configure --enable-rimage to enable rimage, but got errors

compile host machine info:
ubuntu 16.04

error log as follow:
checking for OPENSSL_config in -lcrypto... no
configure: error: Need OpenSSL libcrypto for rimage code signing

It indicates that openSSL libcrypto is necessary for rimage, should I install it by myself?

'error log' in dmesg when boot up on CNL using sof-cnl-rt274.tplg

description:
run dmesg once boot up , but aplay and arecord work well.

[ 5.645901] cnl_rt274 cnl_rt274: snd-soc-dummy-dai <-> Passthrough 0 mapping ok
[ 5.645962] cnl_rt274 cnl_rt274: ASoC: no sink widget found for Dummy Playback
[ 5.645965] cnl_rt274 cnl_rt274: ASoC: Failed to add route ssp2 Tx -> direct -> Dummy Playback
[ 5.645968] cnl_rt274 cnl_rt274: ASoC: no source widget found for ssp2_out
[ 5.645970] cnl_rt274 cnl_rt274: ASoC: Failed to add route ssp2_out -> direct -> ssp2 Tx
[ 5.645974] cnl_rt274 cnl_rt274: ASoC: no source widget found for Dummy Capture
[ 5.645977] cnl_rt274 cnl_rt274: ASoC: Failed to add route Dummy Capture -> direct -> ssp2 Rx
[ 5.645980] cnl_rt274 cnl_rt274: ASoC: no sink widget found for ssp2_in
[ 5.645982] cnl_rt274 cnl_rt274: ASoC: Failed to add route ssp2 Rx -> direct -> ssp2_in
[ 5.645986] cnl_rt274 cnl_rt274: ASoC: no sink widget found for Dummy Playback
[ 5.645989] cnl_rt274 cnl_rt274: ASoC: Failed to add route ssp1 Tx -> direct -> Dummy Playback
[ 5.645993] cnl_rt274 cnl_rt274: ASoC: no source widget found for ssp1_out
[ 5.645996] cnl_rt274 cnl_rt274: ASoC: Failed to add route ssp1_out -> direct -> ssp1 Tx
[ 5.646797] input: sof-cnl-audio Headset as /devices/pci0000:00/0000:00:1f.3/cnl_rt274/sound/card0/input8

System Environment:
sof-dev: b78ead1e0cd31113bc1b3b6d122c9afc1a344147
sof: a2cfd8c
soft: debaf8f
using topology/sof-cnl-rt274.tplg

reproduce steps:
dmesg

log:
dmesg.log
rmbox-t.log

Stress test: simultaneous playback and capture will cause Input/output error

The reproducibility is about 30%.
How to reproduce:

  1. start playback and capture at same time
    aplay -D hw:0,0 -r 48000 -f S24_LE -c 2 /dev/zero -d 5 & arecord -D hw:0,0 -c 2 -f S24_LE -r 48000 /dev/null -d 5
  2. repeat step 1.

environment:
on CNL
sof-dev: 18917b91d619664c4e38b7180ff89bd9c1397758
sof: 5e83da7
soft: fdf3924
tplg file name :
test-ssp0-mclk-0-I2S-volume-s24le-s24le-48k-24000k-nocodec.tplg
log:
dmesg.log
memorywindow.log
rmbox.log

fail to load all codec topologies under topology/test directory on GP platform

description:
topoogy/sof-apl-tdf8532.tplg load well , but topology/test/test-ssp4-mclk-0-I2S-volume-s16le-s16le-48k-24576k-codec.tplg load failed.
environment:
sof-dev: a3a39f21218c074c71cd28b0c2c782b1626df3e3
sof: c454399
soft: 47339d2
tplg file name :
topology/test/test-ssp4-mclk-0-I2S-volume-s16le-s16le-48k-24576k-codec.tplg
topology/test/test-ssp4-mclk-0-I2S-volume-s24le-s24le-48k-24576k-codec.tplg

reproduce steps:
check dmesg log when boot up

log:
dmesg3.log
rmbox3.log

arecord "input /output error" using nocodec tplg on GordonPeak

description:
aplay failed , but arecord works well . The bug is probably related to #97: 'ipc timed out' in dmesg log when boot up using nocodec tplg on GordonPeak

environment:
sof-dev: a3a39f21218c074c71cd28b0c2c782b1626df3e3
sof: 2d92796
soft: 47339d2
tplg file name :
topology/sof-apl-nocodec.tplg
topology/test/test-ssp5-mclk-0-I2S-volume-s16le-s16le-48k-24576k-nocodec.tplg
topology/test/test-ssp5-mclk-0-I2S-volume-s24le-s24le-48k-24576k-nocodec.tplg

reproduce steps:
aplay -Dhw:0,0 -c2 -f dat -r 48000 /dev/zero

log:
dmesg1.log
rmbox2.log

GCC compilation broken - again

commit 17c929e ('autotools: replace user variables with automake variables') adds options that GCC doesn't understand

gcc -DHAVE_CONFIG_H -I. -I../../src/include -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -I /data/pbossart/SOF-public/sof-sdk/sof.git/src/arch/xtensa/include -I /data/pbossart/SOF-public/sof-sdk/sof.git/src/arch/xtensa/xtos -I /data/pbossart/SOF-public/sof-sdk/sof.git/src/platform/apollolake/include -I /data/pbossart/SOF-public/sof-sdk/sof.git/src/platform/intel/include -I /data/pbossart/SOF-public/sof-sdk/sof.git/src/platform/apollolake/include/arch -I /data/pbossart/SOF-public/sof-sdk/sof.git/src/include -I /data/pbossart/SOF-public/sof-sdk/sof.git/../xtensa-root/xtensa-apl-elf/include -O2 -g -Wall -Werror -Wl,-EL -Wmissing-prototypes -MT libinit_a-init.o -MD -MP -MF .deps/libinit_a-init.Tpo -c -o libinit_a-init.o test -f 'init.c' || echo './'init.c
gcc: error: unrecognized command line option ‘-mlongcalls’
gcc: error: unrecognized command line option ‘-mtext-section-literals’; did you mean ‘-fext-numeric-literals’?

Trace mailbox shows garbage

The trace mailbox is outputting garbage on APL data after patch 80f3d47 was applied.

0x0 [6076024018.780075] delta [] value 0x03a3b651fd7d6ccc
0x10 [26736773379.643696] delta [
] value 0x0f2eac82f5e4a85a
0x20 [304907117229.521912] delta [] value 0xe5847e76513e5b06
0x30 [922837080142.584229] delta [
] value 0xfae37d57071fc582
0x40 [951347671207.020264] delta [] value 0xff17f99f019e7557
0x50 [451660774.405905] delta [
] value 0x00bfe0f6ff85d41d
0x60 [4067790368.758392] delta [] value 0x0132bf27fed5e827
0x70 [4336307921.055160] delta [
] value 0x0102b78afee84ac4

Are we missing some PM or cache writeback ?

Trace: The trace output is not displayed when it arrives

The trace in APL platform doesn't update the display per trace event but in larger blocks only when more trace data arrives. E.g. it is not possible to see volume trace events for latest alsamixer key press for PGA gains. Or as other example I can't see DMIC capture trace events before I run another capture.

This makes debugging harder when the needed information need to be looked back from much earlier trace data.

Firmware crash when attempting playback on UP^2

Audio playback seems to be broken on my up squared due to the this
commit: 7c281d3.

I get "unable to install hw_params" error when I start aplay.

Please find attached the dmesg log below.

[ 30.124183] sof-audio sof-audio: pfn i 15 idx 37 pfn 17dc7f
[ 30.124203] sof-audio sof-audio: period_bytes:0x3f00
[ 30.124210] sof-audio sof-audio: stream_tag 1
[ 30.432301] sof-audio sof-audio: error: ipc timed out for 0x60010000
size 0x60
[ 30.432755] sof-audio sof-audio: status: fw entered - code 00000005
[ 30.433101] sof-audio sof-audio: error: runtime exception
[ 30.433386] sof-audio sof-audio: error: trace point 00004000
[ 30.433684] sof-audio sof-audio: error: DSP Firmware Oops
[ 30.433970] sof-audio sof-audio: error: Exception Cause:
LoadStorePIFDataErrorCause, Synchronous PIF data error during LoadStore
access
[ 30.434600] sof-audio sof-audio: EXCCAUSE 0x0000000d EXCVADDR
0x00000040 PS 0x00070025 SAR 0x00000010
[ 30.435123] sof-audio sof-audio: EPC1 0xbe01afc0
EPC2 0xbe01afbd EPC3 0xbe010b5e EPC4 0x00000000
[ 30.435645] sof-audio sof-audio: EPC5 0xbe01afbd
EPC6 0x00000000 EPC7 0x00000000 DEPC 0x00000000
[ 30.436168] sof-audio sof-audio: EPS2 0x00060120
EPS3 0x00060520 EPS4 0x00000000 EPS5 0x00060120
[ 30.436691] sof-audio sof-audio: EPS6 0x00000000
EPS7 0x00000000 INTENABL 0x000101d8 INTERRU 0x00000222
[ 30.437214] sof-audio sof-audio: stack dump from 0xbe07ff40
[ 30.437509] sof-audio sof-audio: 0xbe07ff40: 0xbe01afc0 0x00000000
0x00000010 0x00000000
[ 30.437951] sof-audio sof-audio: 0xbe07ff44: 0xbe044024 0x00000000
0x00000008 0x00000000
[ 30.438372] sof-audio sof-audio: 0xbe07ff48: 0x0000000d 0x00000000
0xbe020ae9 0xbe020aef
[ 30.438794] sof-audio sof-audio: 0xbe07ff4c: 0xbe010b5b 0x00000000
0xbe046aa4 0x00000000
[ 30.439216] sof-audio sof-audio: 0xbe07ff50: 0x00000001 0x00000000
0x00000002 0x00000000
[ 30.439638] sof-audio sof-audio: 0xbe07ff54: 0x7e0104c6 0x00000000
0x00004000 0x00000000
[ 30.440059] sof-audio sof-audio: 0xbe07ff58: 0x00000008 0x00000000
0xbe041d64 0xbe051800
[ 30.440482] sof-audio sof-audio: 0xbe07ff5c: 0x00000000 0x00000000
0x01000000 0x00000000
[ 30.440903] sof-audio sof-audio: error: waking up any trace sleepers
[ 30.441289] sof-audio sof-audio: error: got wrong posn offset
0xffffffff for PCM -110
[ 30.441714] sof-audio sof-audio: ASoC: sof-audio hw params failed:
-110
[ 30.442367] sof-audio sof-audio: pcm: free stream 0 dir 0
[ 30.752315] sof-audio sof-audio: error: ipc timed out for 0x60030000
size 0xc
[ 30.752752] sof-audio sof-audio: status: fw entered - code 00000005
[ 30.753098] sof-audio sof-audio: error: runtime exception
[ 30.753384] sof-audio sof-audio: error: trace point 00004000
[ 30.753683] sof-audio sof-audio: error: DSP Firmware Oops
[ 30.753968] sof-audio sof-audio: error: Exception Cause:
LoadStorePIFDataErrorCause, Synchronous PIF data error during LoadStore
access
[ 30.754617] sof-audio sof-audio: EXCCAUSE 0x0000000d EXCVADDR
0x00000040 PS 0x00070025 SAR 0x00000010
[ 30.755141] sof-audio sof-audio: EPC1 0xbe01afc0
EPC2 0xbe01afbd EPC3 0xbe010b5e EPC4 0x00000000
[ 30.755664] sof-audio sof-audio: EPC5 0xbe01afbd
EPC6 0x00000000 EPC7 0x00000000 DEPC 0x00000000
[ 30.756187] sof-audio sof-audio: EPS2 0x00060120
EPS3 0x00060520 EPS4 0x00000000 EPS5 0x00060120
[ 30.756711] sof-audio sof-audio: EPS6 0x00000000
EPS7 0x00000000 INTENABL 0x000101d8 INTERRU 0x00000222
[ 30.757234] sof-audio sof-audio: stack dump from 0xbe07ff40
[ 30.757529] sof-audio sof-audio: 0xbe07ff40: 0xbe01afc0 0x00000000
0x00000010 0x00000000
[ 30.757951] sof-audio sof-audio: 0xbe07ff44: 0xbe044024 0x00000000
0x00000008 0x00000000
[ 30.758373] sof-audio sof-audio: 0xbe07ff48: 0x0000000d 0x00000000
0xbe020ae9 0xbe020aef
[ 30.758795] sof-audio sof-audio: 0xbe07ff4c: 0xbe010b5b 0x00000000
0xbe046aa4 0x00000000
[ 30.759217] sof-audio sof-audio: 0xbe07ff50: 0x00000001 0x00000000
0x00000002 0x00000000
[ 30.759639] sof-audio sof-audio: 0xbe07ff54: 0x7e0104c6 0x00000000
0x00004000 0x00000000
[ 30.760061] sof-audio sof-audio: 0xbe07ff58: 0x00000008 0x00000000
0xbe041d64 0xbe051800
[ 30.760484] sof-audio sof-audio: 0xbe07ff5c: 0x00000000 0x00000000
0x01000000 0x00000000
[ 30.760906] sof-audio sof-audio: error: waking up any trace sleepers
[ 30.761550] sof-audio sof-audio: pcm: close stream 0 dir 0

cmocka ut: Unit tests should be uniquely identifiable by function names

We have to use naming like we were using with first unit test (f.e. list, audio buffer) - name of the testing function should go like test__, like test_math_numbers_gcd_when_something_then_something, otherwise we will have in TAP logs on CIs logs like:
For files:

someheaderA\a.c
someheaderB\a.c

TAP output will look like

PASS: a - a_test_condition
FAIL: a - a_test_condition

And we don't know for which one it failed.
So please make your test names more verbose.

"DSP panic" when run aplay on GP using tdf8532 codec

4.17-dev: 28fc73b252eaa6438e9c10a854f7067db24f07cd
sof: 709d630
soft: 600e269
aplay -Dhw:0,0 -f s32_le -r 48000 -c4 4channel-32b.wav
check dmesg
[ 46.547323] sof-audio sof-audio: error : DSP panic!
[ 46.547342] sof-audio sof-audio: panic: dsp_oops_offset 788480 offset 788480
[ 46.547351] sof-audio sof-audio: status: fw entered - code 00000005
[ 46.547382] sof-audio sof-audio: error: runtime exception
[ 46.547389] sof-audio sof-audio: error: trace point 00004000
[ 46.547397] sof-audio sof-audio: error: DSP Firmware Oops
[ 46.547405] sof-audio sof-audio: error: Exception Cause: LoadStorePIFDataErrorCause, Synchronous PIF data error during LoadStore access
[ 46.547414] sof-audio sof-audio: EXCCAUSE 0x0000000d EXCVADDR 0x00000040 PS 0x00070025 SAR 0x00000010
[ 46.547422] sof-audio sof-audio: EPC1 0xbe01c430 EPC2 0xbe01c42d EPC3 0xbe010b56 EPC4 0x00000000
[ 46.547430] sof-audio sof-audio: EPC5 0xbe01c42d EPC6 0x00000000 EPC7 0x00000000 DEPC 0x00000000
[ 46.547438] sof-audio sof-audio: EPS2 0x00060120 EPS3 0x00060520 EPS4 0x00000000 EPS5 0x00060120
[ 46.547446] sof-audio sof-audio: EPS6 0x00000000 EPS7 0x00000000 INTENABL 0x000101d8 INTERRU 0x00000222
[ 46.547453] sof-audio sof-audio: stack dump from 0xbe07ff40
[ 46.547462] sof-audio sof-audio: 0xbe07ff40: 0xbe01c430 0x00000000 0x00000010 0x00000000
[ 46.547470] sof-audio sof-audio: 0xbe07ff44: 0xbe044024 0x00000000 0x00000008 0x00000000
[ 46.547479] sof-audio sof-audio: 0xbe07ff48: 0x0000000d 0x00000000 0xbe021f19 0xbe021f1f
[ 46.547488] sof-audio sof-audio: 0xbe07ff4c: 0xbe010b53 0x00000000 0xbe046aa4 0x00000000
[ 46.547497] sof-audio sof-audio: 0xbe07ff50: 0x00000001 0x00000000 0xbe046928 0x00000000
[ 46.547505] sof-audio sof-audio: 0xbe07ff54: 0x7e0104c6 0x00000000 0x00004000 0x00000000
[ 46.547513] sof-audio sof-audio: 0xbe07ff58: 0x00000008 0x00000000 0xedff0080 0xbe041dd4
[ 46.547522] sof-audio sof-audio: 0xbe07ff5c: 0x00000000 0x00000000 0x01000000 0x00000000
[ 46.547535] sof-audio sof-audio: error: waking up any trace sleepers

Stress Test: long time simultaneous playback and capture will cause IPC timed out on UP^2

description:
aplay and arecord both run . After 20 minutes more or less , both stopped and prompt ' Input/output error',
then check dmesg log , sometimes there will be 'ipc timed out'.

System Environment
sof-v4.14 : cae4773bbd83b392be18c7d6fc1b35369b7ed715
sof: c4a9cca
soft:2abbfc0910ce9767d01462638d719309746844d1

reproduce steps:
aplay -Dhw:0,0 -fdat -c2 -r 48000 /dev/zero & arecord -Dhw:0,0 -fdat -r 48000 -c2 test.wav
dmesg | grep error

log:
dmesg.log
rmbox.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.