Skip to content

coherent: fix allocation size - #7323

Merged
kv2019i merged 1 commit into
thesofproject:mainfrom
lyakh:coherent
Mar 22, 2023
Merged

kv2019i merged 1 commit into
thesofproject:mainfrom
lyakh:coherent

Conversation

@lyakh

@lyakh lyakh commented Mar 22, 2023

Copy link
Copy Markdown
Collaborator

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.

Comment thread src/include/sof/coherent.h Outdated
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>

@kv2019i kv2019i left a comment

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.

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