Describe the bug
The mtrace logging backend loses log messages in fairly common use-cases. As the backend is based on use of a small SRAM window, it simply cannot handle a large bandwidth of messages, but performance should be sufficient with ERR/WARN/INFO level logs that are currently the default in SOF Zephyr builds.
To Reproduce
~/sof-test/test-case/multiple-pipeline.sh -f p -l 5
Reproduction Rate
Roughly 20% log messages lost in the above multiple-pipeline test.
Expected behavior
<1% lost rate in defaul config
Impact
Makes debugging more difficult using FW logs
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: sof-dev c693d0caf6fa1b416d08d48eacbb5db96a8fac58
- SOF: main 880857b
- Name of the topology file
- Topology: sof-tgl-nocodec, IPC4 test
- Name of the platform(s) on which the bug is observed.
Screenshots or console output
Describe the bug
The mtrace logging backend loses log messages in fairly common use-cases. As the backend is based on use of a small SRAM window, it simply cannot handle a large bandwidth of messages, but performance should be sufficient with ERR/WARN/INFO level logs that are currently the default in SOF Zephyr builds.
To Reproduce
~/sof-test/test-case/multiple-pipeline.sh -f p -l 5
Reproduction Rate
Roughly 20% log messages lost in the above multiple-pipeline test.
Expected behavior
<1% lost rate in defaul config
Impact
Makes debugging more difficult using FW logs
Environment
Screenshots or console output