Skip to content

Asoc: SOF: imx: Add debug support for imx platforms - #2348

Merged
kv2019i merged 1 commit into
thesofproject:topic/sof-devfrom
IulianOlaru249:imx_dump_debug
Aug 25, 2020
Merged

kv2019i merged 1 commit into
thesofproject:topic/sof-devfrom
IulianOlaru249:imx_dump_debug

Conversation

@IulianOlaru249

Copy link
Copy Markdown

This patch adds debug support for imx platforms. This is important in
order to gather information about the state of the DSP in case of an
Oops and the reason for the Oops.

This is done by checking if a message with a panic code has been placed
in the debug box, in the imx8_dsp_handle_request function from sof/imx.

If positive, the function imx8_dump, added in common, will be called.
The first step is to gather information about the registers, filename,
line number and stack by calling the imx8_get_registers, added in common.
Then the information will be printed to the console by calling the
get_status function.

Signed-off-by: Iulian Olaru iulianolaru249@yahoo.com

@lyakh lyakh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just a couple of cosmetic improvements

Comment thread sound/soc/sof/imx/common.c Resolved
Comment thread sound/soc/sof/imx/common.c Resolved
Comment thread sound/soc/sof/imx/imx8.c Resolved
Comment thread sound/soc/sof/imx/imx8m.c Resolved
Comment thread sound/soc/sof/imx/common.c Resolved
Comment thread sound/soc/sof/imx/common.c Resolved
Comment thread sound/soc/sof/imx/Makefile Resolved
Comment thread sound/soc/sof/imx/Makefile Resolved
@IulianOlaru249 IulianOlaru249 changed the title [DO NOT MERGE] Asoc: SOF: imx: Add debug support for imx platforms Asoc: SOF: imx: Add debug support for imx platforms Aug 18, 2020
Comment thread sound/soc/sof/imx/common.c Resolved
Comment thread sound/soc/sof/imx/common.c Resolved
Comment thread sound/soc/sof/imx/common.h Resolved
@IulianOlaru249
IulianOlaru249 force-pushed the imx_dump_debug branch 2 times, most recently from 51fde80 to a63324c Compare August 19, 2020 12:38
Comment thread sound/soc/sof/imx/imx8.c Resolved
Comment thread sound/soc/sof/imx/imx8m.c Resolved
Comment thread sound/soc/sof/imx/imx8.c Resolved

ghost left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @IulianOlaru249 ! Looks pretty good. A few minor nitpicks.

Comment thread sound/soc/sof/imx/imx-common.h Resolved
Comment thread sound/soc/sof/imx/imx8.c Resolved
Comment thread sound/soc/sof/imx/imx8.c Resolved
Comment thread sound/soc/sof/imx/imx-common.c Resolved
dbaluta
dbaluta previously approved these changes Aug 20, 2020

ghost left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @IulianOlaru249 . The empty lines in middle of local variable declarations is still there. This is very, very minor, but better to fix to keep consistency, so please address.

Comment thread sound/soc/sof/imx/imx8m.c Resolved
Comment thread sound/soc/sof/imx/imx8.c Resolved
This patch adds debug support for imx platforms. This is important in
order to gather information about the state of the DSP in case of an
oops and the reason for the oops.

This is done by checking if a message with a panic code has been placed
in the debug box, in the imx8_dsp_handle_request function from sof/imx.

If positive, the function imx8_dump, added in common, will be called.
The first step is to gather information about the registers, filename,
line number and stack by calling the imx8_get_registers, added in common.
Then the information will be printed to the console by calling the
get_status function.

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
@kv2019i
kv2019i merged commit 3d8ae5f into thesofproject:topic/sof-dev Aug 25, 2020
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.

5 participants