Repository navigation
Add IPC regs dump when IPC timeout happen - #872
Conversation
There was a problem hiding this comment.
I don't get what the %s does here?
There was a problem hiding this comment.
Please see the comment I made below.
There was a problem hiding this comment.
parameter alignment seems inconsistent?
There was a problem hiding this comment.
not sure if we really need them. Since not all of them are useful
There was a problem hiding this comment.
same, why do you need the %s for?
There was a problem hiding this comment.
snd_sof_ipc_dump? we have IPC registers but others may have more stuff to log?
There was a problem hiding this comment.
I also thinks about snd_sof_dsp_dbg_dump(ipc->sdev, SOF_DBG_REGS | SOF_DBG_MBOX | SOF_DBG_IPC);
but I found that we never used the flag in snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, u32 flags)
So I just create a new function for this.
There was a problem hiding this comment.
should we use rate_limited versions?
There was a problem hiding this comment.
what is a rate_limited version here?
There was a problem hiding this comment.
I did not think we need here. Since IPC timed out will be a blocker for the FW, the FW will be dead if an timed out happen. I think there will not be a flooding.
|
@lgirdwood @ranj063 |
|
This actually some proposal from @lgirdwood. The %s is some reservation for future parse to string to help understand. @lgirdwood @ranj063 Any idea
|
@xiulipan the host/dsp state is something we will have to infer from the IPC registers I think. For example, hipct & HDA_DSP_REG_HIPCT_BUSY indicates a new message from DSP, so this means the dsp state is DSP_TO_HOST_CMD. @lgirdwood please correct me if I am wrong |
I don't want 'reservation for future stuff', since these kind of things tend to never come and are left as placeholder until a janitor (me in most cases) comes in. Please submit what exists today and an update if and when an extension is needed. |
|
@plbossart @ranj063 |
Dump IPC status when IPC timed out. IPC status is platform specific and need bind to plaform. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add IPC dump function for APL plaform Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add ipc dump function to CNL+ platforms. Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
plbossart
left a comment
There was a problem hiding this comment.
Looks good to me, but someone else must approve.
|
edited title to remove the RFC/WIP tags |
Add new platform specific ops to dump IPC regs when IPC timeout happen.
This is only a framework RFC, please help to review and will add more detail for the logs.
Only add APL and CNL+ platforms with raw data.