Skip to content

[RFC] fix for 9343 Failed "assert(buffer->is_shared)" in fuzzing - #9356

Merged
kv2019i merged 2 commits into
thesofproject:mainfrom
marcinszkudlinski:CONFIG_INCOHERENT
Aug 14, 2024
Merged

[RFC] fix for 9343 Failed "assert(buffer->is_shared)" in fuzzing#9356
kv2019i merged 2 commits into
thesofproject:mainfrom
marcinszkudlinski:CONFIG_INCOHERENT

Conversation

@marcinszkudlinski

Copy link
Copy Markdown
Contributor

No description provided.

For cache alignment, PLATFORM_DCACHE_ALIGN is a better macro
than DCACHE_LINE_SIZE (for some compilations not even defined)
For CONFIG_INCOHERENT=0 compilation, it does not make any sense
to call writeback/invalidate operations
Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
there's no point with cache writeback/invalidate
for coherent architectures. Also the buffer may be set
as "shared" at any moment, not only at creation time
Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
@marcinszkudlinskimarcinszkudlinski changed the title Config incoherent[DNM] fix for Aug 9, 2024
@marcinszkudlinskimarcinszkudlinski changed the title [DNM] fix for [RFC] fix for https://github.com/thesofproject/sof/issues/9343Aug 9, 2024
@marcinszkudlinskimarcinszkudlinski added the bug Something isn't working as expected label Aug 9, 2024
@marcinszkudlinski
marcinszkudlinski marked this pull request as ready for review August 9, 2024 10:42

@lgirdwoodlgirdwood left a comment

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.

Btw, I think we have minimal users of coherent.h now as transition away is almost complete. We should be able to delete coherent.h at some point.

@tmlemantmleman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I wasn't able to reproduce this issue in my local environment.

@marc-hbmarc-hb changed the title [RFC] fix for https://github.com/thesofproject/sof/issues/9343[RFC] fix for 9343 Failed "assert(buffer->is_shared)" in fuzzingAug 9, 2024
@kv2019i

Copy link
Copy Markdown
Collaborator

SOFCI TEST

@kv2019i
kv2019i merged commit 6c29ad3 into thesofproject:mainAug 14, 2024
@marcinszkudlinski
marcinszkudlinski deleted the CONFIG_INCOHERENT branch August 14, 2024 14:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@marcinszkudlinski@kv2019i@lgirdwood@tmleman