Skip to content

Firmware debugging fixes and updates. - #1208

Merged
plbossart merged 4 commits into
topic/sof-devfrom
lrg/topic/debug
Sep 16, 2019
Merged

Firmware debugging fixes and updates.#1208
plbossart merged 4 commits into
topic/sof-devfrom
lrg/topic/debug

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

This PR fixes a kernel oops if DSP stack dump is corrupted and adds support for improved FW exception debugging.

@plbossart plbossart 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.

looks mostly good to me, couple of questions below:

Comment thread sound/soc/sof/intel/bdw.c
Comment thread sound/soc/sof/debug.c Outdated
Comment thread sound/soc/sof/debug.c

@plbossart plbossart 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.

can you fix checkpatch warnings with spaces/tabs? less work for me...

Allow other non core.c users for debug module params and also make the
prefix consistent.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
FW mailbox offset was not set before use and HDR size was not validated.
Fix this.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
@lgirdwood

Copy link
Copy Markdown
Member Author

@plbossart updated, I also had to add a patch for minor module param fixes. It seems we had split the bits across core.c and sof-priv.h

Add config option to prevent DSP entering D3 after any FW exception.
This can then be used to dump FW context for debug.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Helps with FW debug as it provides DSP IPC processing context.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>

@plbossart plbossart 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.

LGTM. Thanks for the change of the module parameter, this is much better now.

@plbossart

Copy link
Copy Markdown
Member

need second approver btw.

@plbossart
plbossart merged commit 630367b into topic/sof-dev Sep 16, 2019
@lgirdwood
lgirdwood deleted the lrg/topic/debug branch September 16, 2019 18:27
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.

4 participants