Skip to content

ASoC: SOF: Intel/ipc4: Enable ipc and dsp dump - #3841

Merged
ujfalusi merged 6 commits into
thesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/ipc4_intel_dsp_ipc_dump_01
Sep 5, 2022
Merged

ujfalusi merged 6 commits into
thesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/ipc4_intel_dsp_ipc_dump_01

Conversation

@ujfalusi

Copy link
Copy Markdown
Collaborator

Hi,

this patch will enable the IPC and DSP dump in case of a timeout in hopes that it will help rootcause issues and to match with the IPC3 functionality.

@ujfalusi

Copy link
Copy Markdown
Collaborator Author

@juimonen, FYI

@ujfalusi
ujfalusi force-pushed the peter/sof/pr/ipc4_intel_dsp_ipc_dump_01 branch from 9fb6184 to eb7eba4 Compare August 30, 2022 10:27
@ujfalusi

Copy link
Copy Markdown
Collaborator Author

Changes since v1:

  • typo in intel/cnl.c for printing: s/ #%x / %#x

Comment thread sound/soc/sof/intel/cnl.c Resolved
Comment thread sound/soc/sof/intel/cnl.c Resolved
@ujfalusi
ujfalusi force-pushed the peter/sof/pr/ipc4_intel_dsp_ipc_dump_01 branch from eb7eba4 to ff86b01 Compare August 31, 2022 12:19
@ujfalusi

Copy link
Copy Markdown
Collaborator Author

Changes since v3:

  • Converted the old 0x%8.8x formatting to %#x in all places
  • updated the MTL ipc_dump to print to IPC4 specific one

Comment thread sound/soc/sof/intel/cnl.c Resolved
The use of the IPC registers are different between IPC3 and IPC4.
The ipc_dump needs to use different prints depending on the used IPC
protocol.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The use of the IPC registers are different between IPC3 and IPC4.
The ipc_dump needs to use different prints depending on the used IPC
protocol.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The use of the IPC registers are different between IPC3 and IPC4.
The ipc_dump needs to use different prints depending on the used IPC
protocol.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The use of the IPC registers are different between IPC3 and IPC4.
The ipc_dump needs to use different prints depending on the used IPC
protocol.

The existing code was printing registers relevant for IPC3, which is not
even supported on MTL.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
The firmware register dump is IPC3 specific, it is not available for other
IPC versions.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
It can help debugging IPC timeout issues (like we do with IPC3) if we
dump the IPC and DSP information.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
@ujfalusi
ujfalusi force-pushed the peter/sof/pr/ipc4_intel_dsp_ipc_dump_01 branch from ff86b01 to cb04198 Compare September 1, 2022 08:57
@ujfalusi
ujfalusi requested a review from lyakh as a code owner September 1, 2022 08:57
@ujfalusi

ujfalusi commented Sep 1, 2022

Copy link
Copy Markdown
Collaborator Author

Changes since v4:

  • Introduce separate callbacks for IPC4 dumps
  • More patch due to the spreading of changes, but no functionality change.

@ranj063
ranj063 requested a review from RanderWang September 2, 2022 15:57
@ujfalusi
ujfalusi merged commit 91a1777 into thesofproject:topic/sof-dev Sep 5, 2022
@ujfalusi
ujfalusi deleted the peter/sof/pr/ipc4_intel_dsp_ipc_dump_01 branch November 18, 2022 07:31
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