Skip to content

Conversation

@marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented May 19, 2021

We don't want to test random versions.

For instance some old version was left in /usr/local/bin here:
http://sof-ci.sh.intel.com/#/result/planresultdetail/4007?model=ADLS_RVP_HDA&testcase=check-sof-logger

You can tell it's old version from the TIMESTAMP header missing (us) unit.

@marc-hb marc-hb marked this pull request as ready for review May 19, 2021 01:19
@marc-hb marc-hb requested a review from a team as a code owner May 19, 2021 01:19
@marc-hb
Copy link
Collaborator Author

marc-hb commented May 19, 2021

https://sof-ci.01.org/softestpr/PR679/build693/devicetest/ found a spurious /bin/sof-logger on the following systems: sh-tglu-rvp-sdw-03, sh-tglh-rvp-hda-05, sh-cml-sku0955-hda-03 EDIT: this is a new, /bin/ -> /usr/bin symlink from Ubuntu, @aiChaoSONG to explain.

The numerous arecord: set_params:1349: Channels count non available failures on jf-cml-hel-rt5682-01 seem unrelated. EDIT: most tests fail because SOF was not loaded following a DSP panic at src/audio/kpb.c:154 in https://sof-ci.01.org/softestpr/PR679/build693/devicetest/?model=CML_HEL_RT5682&testcase=verify-pcm-list

kernel: [    3.346923] sof-audio-pci-intel-cnl 0000:00:1f.3: widget PCM8C setup complete
kernel: [    3.346929] sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx: 0x30010000: GLB_TPLG_MSG: COMP_NEW
kernel: [    3.347061] sof-audio-pci-intel-cnl 0000:00:1f.3: error : DSP panic!
kernel: [    3.347064] sof-audio-pci-intel-cnl 0000:00:1f.3: panic: dsp_oops_offset 788480 offset 788480
kernel: [    3.347068] sof-audio-pci-intel-cnl 0000:00:1f.3: status: fw entered - code 00000005
kernel: [    3.347219] sof-audio-pci-intel-cnl 0000:00:1f.3: error: assertion failed
kernel: [    3.347220] sof-audio-pci-intel-cnl 0000:00:1f.3: error: trace point 00004000
kernel: [    3.347222] sof-audio-pci-intel-cnl 0000:00:1f.3: error: panic at src/audio/kpb.c:154

@marc-hb
Copy link
Collaborator Author

marc-hb commented May 19, 2021

See also (much) bigger sof-logger test changes in #666. They don't conflict with each other.

@marc-hb marc-hb marked this pull request as draft May 19, 2021 04:06
@aiChaoSONG
Copy link

the /bin is actually a link to /usr/bin, so we may see two logger in the PATH, a third logger should be an issue. how about we compare the md5 checksum of each logger we found, and print warnings only when the checksums are not identical.

@fredoh9
Copy link
Contributor

fredoh9 commented May 19, 2021

the /bin is actually a link to /usr/bin, so we may see two logger in the PATH, a third logger should be an issue. how about we compare the md5 checksum of each logger we found, and print warnings only when the checksums are not identical.

This is good point and good idea also.
One thing I didn't like to install to /usr/bin. /usr/local/bin might be better place to install our own tools and utilities.

We don't want to test random versions.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb force-pushed the fail-multiple-logger branch from 77fd40b to 5e5e5fa Compare May 19, 2021 20:13
@marc-hb
Copy link
Collaborator Author

marc-hb commented May 19, 2021

https://sof-ci.01.org/softestpr/PR679/build694/devicetest/ has the same src/audio/kpb.c:154 panic, everything is green otherwise.

https://sof-ci.01.org/softestpr/PR679/build694/devicetest/?model=TGLU_RVP_SDW&testcase=check-sof-logger has identical /bin/sof-logger and /usr/bin/sof-logger and the test does not fail anymore.

kernel: [    3.534923] sof-audio-pci-intel-cnl 0000:00:1f.3: error : DSP panic!
kernel: [    3.534928] sof-audio-pci-intel-cnl 0000:00:1f.3: panic: dsp_oops_offset 788480 offset 788480
kernel: [    3.534932] sof-audio-pci-intel-cnl 0000:00:1f.3: status: fw entered - code 00000005
kernel: [    3.535085] sof-audio-pci-intel-cnl 0000:00:1f.3: error: assertion failed
kernel: [    3.535087] sof-audio-pci-intel-cnl 0000:00:1f.3: error: trace point 00004000
kernel: [    3.535090] sof-audio-pci-intel-cnl 0000:00:1f.3: error: panic at src/audio/kpb.c:154

@marc-hb marc-hb marked this pull request as ready for review May 19, 2021 20:49
@marc-hb
Copy link
Collaborator Author

marc-hb commented May 20, 2021

... compare the md5 checksum of each logger we found, and print warnings only when the checksums are not identical.

This is good point and good idea also.

Done!

Copy link
Contributor

@fredoh9 fredoh9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this works! Thank you for implementing md5 check!

@marc-hb marc-hb merged commit 81d03dc into thesofproject:main May 24, 2021
@marc-hb marc-hb deleted the fail-multiple-logger branch May 24, 2021 02:56
@marc-hb marc-hb added False Pass / green failure area:logs Log and results collection, storage, etc. labels Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:logs Log and results collection, storage, etc. False Pass / green failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants