-
Notifications
You must be signed in to change notification settings - Fork 140
ASoC: SOF: ipc4-pcm: Pipe instances to dev_dbg in multi_pipeline_state() #5366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASoC: SOF: ipc4-pcm: Pipe instances to dev_dbg in multi_pipeline_state() #5366
Conversation
70b57c2 to
2a94158
Compare
2a94158 to
6fc5b3a
Compare
|
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
|
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
|
... and the rebase. |
bd083f6 to
cf55bab
Compare
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
cf55bab to
bc39252
Compare
|
.. oops, changed =+ to += |
bc39252 to
0355ceb
Compare
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
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
|
@ujfalusi finally? |
ujfalusi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsarha, thank you for the updates, looks good for me
|
@ranj063 could you click one more approve to get this merged? |
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ranj063 pls merge if you approve
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.