Skip to content

panic: fix faulty panic handling - #1214

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
abonislawski:panic_coredump_fix
Apr 3, 2019
Merged

panic: fix faulty panic handling#1214
lgirdwood merged 1 commit into
thesofproject:masterfrom
abonislawski:panic_coredump_fix

Conversation

@abonislawski

@abonislawski abonislawski commented Apr 2, 2019

Copy link
Copy Markdown
Member

This will fix SOF_IPC_PANIC_STACK in dump_stack()

This commit will change the order of functions in panic_rewind() to fix SOF_IPC_PANIC_STACK in dump_stack().
Thats because arch_dump_regs() function is not able to make a 100% safe return which is causing a problem for dump_stack()

Signed-off-by: Adrian Bonislawski adrian.bonislawski@linux.intel.com

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, I have no idea what bug you are trying to fix without a commit message. You must explain the issue and how your patch fixes the issue.

@abonislawski

Copy link
Copy Markdown
Member Author

@lgirdwood sorry, fixed

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we need an update to core-dump.sh given we are changing order ?

@lgirdwood lgirdwood added this to the 1.3 milestone Apr 2, 2019
This commit will change the order of functions in panic_rewind() to fix SOF_IPC_PANIC_STACK in dump_stack().
Thats because arch_dump_regs() function is not able to make a 100% safe return

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
@abonislawski

abonislawski commented Apr 3, 2019

Copy link
Copy Markdown
Member Author

@lgirdwood its not needed because from the reader point of view everything is exactly the same. Struct positions and offsets are the same, thats why now in line 65 there is a place for sof_ipc_dsp_oops_xtensa struct which will be filled later by arch_dump_regs() and thats the only thing which changed - the order of data processing, not their positions in memory.
I hope this is clear now.

@lgirdwood

Copy link
Copy Markdown
Member

@abonislawski can you give CI a quick check, seems like a build is pending.

@smakows

smakows commented Apr 3, 2019

Copy link
Copy Markdown

@lgirdwood there was a need to do rerun of PRs from last night so we need to wait for them to reschedule to only then run PR tests for this day

@lgirdwood
lgirdwood merged commit 2ec2c21 into thesofproject:master Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants