Skip to content
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

coherent: fix allocation size #7323

Merged
merged 1 commit into from
Mar 22, 2023
Merged

coherent: fix allocation size #7323

merged 1 commit into from
Mar 22, 2023

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Mar 22, 2023

When adding object allocation to the coherent API the size alignment was misplaced, re-opening a possibility for cache corruption when sharing cache lines with adjacent allocations. Move alignment to the correct places.

src/include/sof/coherent.h Outdated Show resolved Hide resolved
When adding object allocation to the coherent API the size alignment
was misplaced, re-opening a possibility for cache corruption when
sharing cache lines with adjacent allocations. Add alignment to all
coherent object allocations.

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

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Thanks @lyakh !

@marcinszkudlinski , ok for you?

@kv2019i kv2019i merged commit ac91071 into thesofproject:main Mar 22, 2023
@lyakh lyakh deleted the coherent branch March 23, 2023 09: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.

5 participants