Skip to content

2 pipeline fixes - #4868

Merged
lgirdwood merged 2 commits into
thesofproject:mainfrom
lyakh:20211008-misc_2
Oct 15, 2021
Merged

lgirdwood merged 2 commits into
thesofproject:mainfrom
lyakh:20211008-misc_2

Conversation

@lyakh

@lyakh lyakh commented Oct 13, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

pipeline_for_each_comp() and buffer_set_params() can fail, make sure
to check their return values and propagate any errors.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Comment thread src/audio/pipeline/pipeline-graph.c Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lyakh while we're doing this,c an we also change all the callers of pipeline_for_each_comp() to return the error There are at least a couple of places where we simply ignore the return value

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be an new PR though.

@lgirdwood

Copy link
Copy Markdown
Member

@lyakh can you check CI.

@lyakh

lyakh commented Oct 14, 2021

Copy link
Copy Markdown
Collaborator Author

@lyakh can you check CI.

@lgirdwood yes, I'm checking it. Looks like some flows depend on the current behaviour. Not sure about the APL-nocodec failures, but QB might indicate, that they expect to continue recursing past mixers / muxers ignoring stop requests.

When recursing pipeline components, using pipeline_for_each_comp(),
each component's .comp_func() method is called. Those methods can
return 0 for success, a negative error code or PPL_STATUS_PATH_STOP
if recursing should stop. However, the latter code is ignored by
pipeline_for_each_comp(). Add a check for that code and terminate
recursion if detected.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lyakh

lyakh commented Oct 15, 2021

Copy link
Copy Markdown
Collaborator Author

CI: a single unrelated error:

[ 1361.297738] kernel: rtc_cmos 00:02: Alarms can be up to one month in the future

@lgirdwood

Copy link
Copy Markdown
Member

BYT IPC flood look like network error, APL showing the known suspend error.

@lgirdwood
lgirdwood merged commit b60b77d into thesofproject:main Oct 15, 2021
@lyakh
lyakh deleted the 20211008-misc_2 branch October 15, 2021 14:14
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.

3 participants