Skip to content

dmic: switch to use uncached dmic_prm[] - #4196

Merged
keyonjie merged 1 commit into
thesofproject:mainfrom
keyonjie:master_fix
May 17, 2021
Merged

keyonjie merged 1 commit into
thesofproject:mainfrom
keyonjie:master_fix

Conversation

@keyonjie

Copy link
Copy Markdown
Contributor

When multi-core introduced, we need to use uncached address for the
global configuration variables, to make sure they are consistent for all
DSP cores.

Signed-off-by: Keyon Jie yang.jie@linux.intel.com

@aiChaoSONG

Copy link
Copy Markdown
Collaborator

verified on one TGLU NOCODEC RVP device

@singalsu singalsu 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.

Looks good, thanks Keyon!

@keyonjie

Copy link
Copy Markdown
Contributor Author

looks it lead to some regression on APL platforms, let me debug it.

@keyonjie
keyonjie marked this pull request as draft May 17, 2021 08:10

@lgirdwood lgirdwood 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.

Good work everybody !

@lgirdwood

Copy link
Copy Markdown
Member

@keyonjie looks like this is failing on unrelated tests ?

When multi-core introduced, we need to use uncached address for the
global configuration variables, to make sure they are consistent for all
DSP cores.

When variables change, write through for both cached and uncached
addresses, to ensure the consistency.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
@keyonjie
keyonjie marked this pull request as ready for review May 17, 2021 09:06
@keyonjie

Copy link
Copy Markdown
Contributor Author

@keyonjie looks like this is failing on unrelated tests ?

It is actually :), looks there is no write back mechanism on APL, now I change the PR to do write through when dmic_prm[] is changing and the APL works now at my end.

Let's wait for the PR validation result.

@keyonjie

Copy link
Copy Markdown
Contributor Author

looks good now @lgirdwood

@keyonjie
keyonjie merged commit b5df7bf into thesofproject:main May 17, 2021
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.

4 participants