ASoC: SOF: ipc4-pcm: Pipe instances to dev_dbg in multi_pipeline_state()#5366
Merged
ranj063 merged 3 commits intothesofproject:topic/sof-devfrom May 12, 2025
Merged
Conversation
ranj063
reviewed
Mar 19, 2025
70b57c2 to
2a94158
Compare
ranj063
previously approved these changes
Mar 20, 2025
2a94158 to
6fc5b3a
Compare
Author
|
Seems I was too over confident. There was a compile error on previous version. Had to declare enum sof_ipc4_pipeline_state in ipc4-priv.h. |
6fc5b3a to
f971130
Compare
Author
|
Just on space removed the sof_ipc4_set_multi_pipeline_state_debug() ads space in the beginnig, so we do not need it after "Pipelines". |
f971130 to
bd083f6
Compare
Author
|
... and the rebase. |
Author
ujfalusi
reviewed
Mar 27, 2025
bd083f6 to
cf55bab
Compare
jsarha
pushed a commit
to jsarha/sof-test
that referenced
this pull request
Mar 28, 2025
The sof-ipc-timer collects IPC message processing times from 'journalctl -k -o short-precise' output if SOF IPC debug is enabled. The recognized messages are GLB_CREATE_PIPELINE, GLB_DELETE_PIPELINE, MOD_INIT_INSTANCE, MOD_LARGE_CONFIG_SET (only with valid module id), MOD_BIND, MOD_UNBIND, and GLB_SET_PIPELINE_STATE. Different kind of outputs can be generated with different flags. Adding just -s gives a summary. Giving full FW side log, using FW built with CONFIG_DEBUG_IPC_TIMINGS=y, gives more accurate FW processing times. With the above flags the output may look like this: host-copier.2.playback fw init min 76 us max 77 us average 76 us of 10 gain.5.1 fw init min 49 us max 51 us average 49 us of 10 gain.5.1 fw conf min 23 us max 23 us average 23 us of 10 src.5.1 fw init min 33 us max 43 us average 37 us of 10 mixin.5.1 fw init min 38 us max 44 us average 39 us of 10 mixout.6.1 fw init min 31 us max 38 us average 32 us of 10 gain.6.1 fw init min 37 us max 45 us average 37 us of 10 gain.6.1 fw conf min 19 us max 20 us average 19 us of 10 dai-copier.SSP.NoCodec-2.playback fw init min 157 us max 166 us average 159 us of 10 pipeline.5: host-copier.2.playback, gain.5.1, src.5.1, mixin.5.1, pipeline.5 create fw min 18 us max 23 us average 18 us of 10 pipeline.5 1.PAUSED fw min 26 us max 31 us average 28 us of 10 pipeline.5 RUNNING fw min 823 us max 1177 us average 939 us of 10 pipeline.5 PAUSED fw min 319 us max 774 us average 433 us of 10 pipeline.5 delete fw min 185 us max 190 us average 186 us of 10 pipeline.6: mixout.6.1, gain.6.1, dai-copier.SSP.NoCodec-2.playback, pipeline.6 create fw min 27 us max 27 us average 27 us of 10 pipeline.6 1.PAUSED fw min 22 us max 22 us average 22 us of 10 pipeline.6 RUNNING fw min 327 us max 1302 us average 800 us of 10 pipeline.6 PAUSED fw min 361 us max 997 us average 501 us of 10 pipeline.6 delete fw min 173 us max 183 us average 175 us of 10 host-copier.2.playback>gain.5.1 bind fw min 43 us max 45 us average 44 us of 10 gain.5.1>src.5.1 bind fw min 38 us max 46 us average 40 us of 10 src.5.1>mixin.5.1 bind fw min 40 us max 47 us average 44 us of 10 mixin.5.1>mixout.6.1 bind fw min 40 us max 48 us average 43 us of 10 mixin.5.1>mixout.6.1 unbind fw min 24 us max 24 us average 24 us of 10 mixout.6.1>gain.6.1 bind fw min 45 us max 52 us average 49 us of 10 gain.6.1>dai-copier.SSP.NoCodec-2.playback bind fw min 40 us max 50 us average 43 us of 10 pipes 6 5: RESET fw min 230 us max 231 us average 230 us of 10 Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com> sof-ipc-timer.py: Some more cleaning up tools/sof-ipc-timer.py: Update to follow latest thesofproject/linux#5366
Author
cf55bab to
bc39252
Compare
Author
|
.. oops, changed =+ to += |
Member
ranj063
reviewed
Apr 10, 2025
bc39252 to
0355ceb
Compare
Author
ranj063
previously approved these changes
Apr 15, 2025
ujfalusi
reviewed
Apr 16, 2025
Add sof_ipc4_pipeline_state_str() to translate enum sof_ipc4_pipeline_state into human readable form. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
0355ceb to
1630f57
Compare
Author
ujfalusi
reviewed
Apr 24, 2025
added 2 commits
April 24, 2025 14:41
Add a dev_dbg to sof_ipc4_set_multi_pipeline_state(). The debug print lists the pipeline instance numbers that are included in the SOF_IPC4_GLB_SET_PIPELINE_STATE message. Without this log its very hard to tell what pipelines are affected. This print is very helpful when analyzing SOF logs automatically. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Harmonize sof_ipc4_set_pipeline_state() dbg print with the new print in sof_ipc4_set_multi_pipeline_state(). Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1630f57 to
e7f4264
Compare
Author
|
@ujfalusi finally? |
Author
|
@ranj063 could you click one more approve to get this merged? |
Author
lyakh
approved these changes
May 9, 2025
ranj063
approved these changes
May 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a dev_dbg to sof_ipc4_set_multi_pipeline_state(). The debug print lists the pipeline instance numbers that are included in the SOF_IPC4_GLB_SET_PIPELINE_STATE message. Without this log its very hard to tell what pipelines are affected. This print is very helpful when analyzing SOF logs automatically.