-
Notifications
You must be signed in to change notification settings - Fork 319
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
audio: add aligned limits for component copy function #5266
Conversation
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.
@singalsu fyi, lets optimise all the stream API calls after this is merged.
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.
@andrula-song @singalsu it would also be good to remove the stream API calls today that are not used as a first step and then align the remaining calls to align on frame or SIMD frames (without the divisions).
d2fd48e
to
d9824de
Compare
the frame_aligned set in prepare function would be reset somewhere. Need some time to analyze |
d9824de
to
f3b6289
Compare
some error should be nothing about code i commited, trigger test again |
f3b6289
to
305ea80
Compare
a611a73
to
ba1ea03
Compare
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.
Looks good to me, thanks!
@cujomalainey I've answered the question before I close it , but it is pending. Sorry to close too fast. |
it seems like the codestyle management has become more stringent,
|
Ah you were tricked by githubs' review system, i think you have to submit your review first to create the comment then resolve it :) |
This should be fixed on your next push thanks to my #5806 (no need to rebase) Like most linters, checkpatch is not always right, you don't always have to fix every single warning. Checkpatch is right most of the time, you must TRY to fix every warning. https://www.kernel.org/doc/html/latest/dev-tools/checkpatch.html |
I got confused sorry: you must change this code as told. |
@wszypelt dont think this should impact the DMIC test, I will rerun CI again to be sure. |
SOFCI TEST |
I recall the commit 08c234b passed all the test cases and Internal Intel CI System/merge/build . but these two commit just changed the code comment and Kconfig(remove the useless item), I don't think modify code comment would lead to those failed cases,trigger test again. |
SOFCI TEST |
@wszypelt can you help to check Internal Intel CI System/merge/build test ? I found that many PRs failed this item today. |
in fact wondering, we expect these functions to also be useful for other components in the future, not only for volume, right? |
@andrula-song @lgirdwood Of course there was a problem with one machine, it should work fine now. Tests rerun in progress |
-->Is there some reason for frame_align_req to be inside the #if #else? |
fe05b68
to
9e32670
Compare
Add API function such as comp_get_copy_limits_frame _aligned(). This function would finally call audio_ stream_get_avail_frames_aligned to use right shift instead of division, whichh reduce about 26% MCPS than the original division method. Developers should set the byte_align for xtensa intrinsics and frame_align_req for algorithm limits only once in component prepare or param function. Signed-off-by: Andrula Song <[email protected]>
@wszypelt can you help to check Internal Intel CI System/merge/build test again? I don't think the modification would lead to such error, thanks. |
Always provide direct links because they keep changing: |
@lgirdwood Can you help to review this PR? Thanks. |
add comp_get_copy_limits_with_lock_aligned API to meet requirement
of some xtensa intrinsics.
Signed-off-by: Andrula Song [email protected]