mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ASoC: SOF: fix DSP oops definitions in FW ABI
The definitions for DSP oops structures were not aligned correctly to current FW ABI version 3.6.0, leading to invalid data being printed out to debug logs. Fix the structs and update related platform code accordingly. Signed-off-by: Kai Vehmanen <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
d6947bb234
commit
14104eb6a3
6 changed files with 58 additions and 22 deletions
|
|
@ -155,6 +155,27 @@ struct sof_ipc_compound_hdr {
|
|||
uint32_t count; /**< count of 0 means end of compound sequence */
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
* OOPS header architecture specific data.
|
||||
*/
|
||||
struct sof_ipc_dsp_oops_arch_hdr {
|
||||
uint32_t arch; /* Identifier of architecture */
|
||||
uint32_t totalsize; /* Total size of oops message */
|
||||
} __packed;
|
||||
|
||||
/**
|
||||
* OOPS header platform specific data.
|
||||
*/
|
||||
struct sof_ipc_dsp_oops_plat_hdr {
|
||||
uint32_t configidhi; /* ConfigID hi 32bits */
|
||||
uint32_t configidlo; /* ConfigID lo 32bits */
|
||||
uint32_t numaregs; /* Special regs num */
|
||||
uint32_t stackoffset; /* Offset to stack pointer from beginning of
|
||||
* oops message
|
||||
*/
|
||||
uint32_t stackptr; /* Stack ptr */
|
||||
} __packed;
|
||||
|
||||
/** @}*/
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@
|
|||
|
||||
/* Xtensa Firmware Oops data */
|
||||
struct sof_ipc_dsp_oops_xtensa {
|
||||
struct sof_ipc_hdr hdr;
|
||||
struct sof_ipc_dsp_oops_arch_hdr arch_hdr;
|
||||
struct sof_ipc_dsp_oops_plat_hdr plat_hdr;
|
||||
uint32_t exccause;
|
||||
uint32_t excvaddr;
|
||||
uint32_t ps;
|
||||
|
|
@ -38,7 +39,11 @@ struct sof_ipc_dsp_oops_xtensa {
|
|||
uint32_t intenable;
|
||||
uint32_t interrupt;
|
||||
uint32_t sar;
|
||||
uint32_t stack;
|
||||
uint32_t debugcause;
|
||||
uint32_t windowbase;
|
||||
uint32_t windowstart;
|
||||
uint32_t excsave1;
|
||||
uint32_t ar[];
|
||||
} __packed;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue