Comments (9)
@pratik0509 yep, still open. please have a look at the oops messages in some of the sof issues for examples of text format.. The C format is defined in uapi/ipc.h. You will also need some xtensa ISA documentation to help you understand the DSP registers. Google for "xtensa ISA".
The goal is to read the oops message and provide a stack dump, alongside runlevel, C code that each EPC register points too. Anything useful for debugging really.
from sof.
@pratik0509 so we want to take the register dump and stack trace addresses and lookup the symbols for those addresses in the firmware disassembly text file (*.dis). i.e. the inputs to the script would be a kernel dmesg and a firmware disassembly file. The outputs would be the call trace (from the stack dump) and the function that each EPC register pointed too.
from sof.
@pratik0509 it's maybe worth while installing Docker and building some firmware images using Docker container. See sof.git/scripts/README.docker. This will give you the disassembly files and firmware binaries. The next step would be to take some dmesg files from github SOF issues tracker and use both dmesg and disassembly file to test your scipt. Please note that you will need to build the firmware that matches the commit ID from the dmesg oops mesage otherwise your symbols and addresses wont match.
from sof.
Suggest to put into SOF 1.3
from sof.
Hey, I would like to work on this if it is still open?
from sof.
@lgirdwood Sorry missed the mail before. I'll get to it asap :)
from sof.
@lgirdwood I looked up for Xtensa ISA exception registers and went through the C format in ipc.h and some of the oops messages. What I understood till now is:
Building a tool which helps in debugging the code. The tool will parse the oops messages and try to link it with the function call or line of code which was responsible for it and generate a Trace Stack(if possible).
Sorry if it sounds dumb, but can you be more precise as to what needs to be done exactly? (new developer here)
from sof.
@lgirdwood @mmaka1 Is it already covered by the new logger and FW core dump parsing feature?
from sof.
yep, I guess we can close this now.
from sof.
Related Issues (20)
- [BUG] IPC3/4 fuzzer build broken with Zephyr PR 71378 HOT 4
- [BUG] check-kmod-load-unload-after-playback.sh failed on LNL with SoundWire when testing an unrelated PR HOT 1
- [BUG] pipeline with DP-scheduled src_lite upon 0x13000002 IPC HOT 6
- [BUG] Fail to compile topology HOT 5
- [BUG] build error undefined reference to `__udivdi3 in mimx93_evk_a55 build HOT 4
- [BUG] [stable-v2.2] ERROR pipeline_comp_reset(): failed to recover (multiple-pipeline-all) HOT 1
- [BUG] [WHL] [stable-v2.2] capture overrun in pause/resume tests HOT 1
- LNL HDA alsabat capture failed, "Peak freq too low" HOT 37
- [BUG] arecord fails with non-zero exit status HOT 3
- [BUG] SOF build fails with Zephyr main since June 1st HOT 3
- [BUG] Noisy DMIC recording with concurrent audio playback over speakers HOT 13
- [BUG] MFCC HiFi4 optimized version is broken HOT 1
- [RFC] Explore the CPU cost benefits of using deinterleaved data along the internal path of the pipeline HOT 1
- [BUG] [HIFI4] PeakVol.Quality issues for audio formats HOT 3
- [FEATURE] GUI to demonstrate and control SOF components on target hardware HOT 4
- [FEATURE] Add IIR equalizer to every microphone and generally any acoustical endpoint
- [BUG][LLEXT] Logging is impossible during module unloading HOT 2
- [BUG] SOF fails to load on MTL (with Linux 6.8 or older driver) HOT 5
- [BUG] Zephyr panic with pause-resume test on LNL/nocodec HOT 10
- Alderlake/Amstonlake da7219 support in I2S HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sof.