Skip to content

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Mar 11, 2022

Objects, defined with a SHARED_DATA attribute should go into a separate section in both single- and multi-core configurations. Access to them at run-time should only be performed via the platform_shared_get() accessor and at initialisation time with cache_to_uncache_init()

@lyakh
Copy link
Collaborator Author

lyakh commented Mar 14, 2022

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

Dont mean to bikeshed - but using a _shared suffix is probably easier to understand the usage.

@lyakh
Copy link
Collaborator Author

lyakh commented Mar 15, 2022

Dont mean to bikeshed - but using a _shared suffix is probably easier to understand the usage.

@lgirdwood sure, the latest version is s/_static/_shared/g

lyakh added 11 commits March 18, 2022 16:09
Shared objects are placed into a separate section to make sure they
don't share cache lines with core-local data. This must also be done
in single-core configurations because those configurations perform
uncached access and manage cache manually too.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
pipeline_posn is a name of a structure, a field in a structure, a
static object and a local variable in several functions. Use a
different name to at least avoid conflicting static and local
variables.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
mn is a name of a structure, a field in a structure, a static object
and a local variable in several functions. Use a different name to at
least avoid conflicting static and local variables.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Access to objects, defined with a SHARED_DATA attribute should only
be performed, using the platform_shared_get() function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
notify_data is a name of a structure, a field in a structure, a
static object and a local variable in several functions. Use a
different name to at least avoid conflicting static and local
variables.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Access to objects, defined with a SHARED_DATA attribute should only
be performed, using the platform_shared_get() function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Access to objects, defined with a SHARED_DATA attribute should only
be performed, using the platform_shared_get() function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Access to objects, defined with a SHARED_DATA attribute should only
be performed, using the platform_shared_get() function.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
cache_to_uncache_init() is needed to convert addresses from cached to
uncached aliases in a preprocessor-friendly way. Add it to all
platforms.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Access to objects, defined with a SHARED_DATA attribute should only
be performed, using the platform_shared_get() function at run-time or
using cache_to_uncache_init() at initialisation time.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Access to objects, defined with a SHARED_DATA attribute should only
be performed, using the platform_shared_get() function at run-time or
using cache_to_uncache_init() at initialisation time.

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

lyakh commented Mar 18, 2022

IC failures seem to be unrelated: a timeout in the IPC flood test on BYT and 2 failed suspend-resume with audio tests on an ADL platform https://sof-ci.01.org/sofpr/PR5524/build12463/devicetest/?model=TGLU_RVP_SDW&testcase=check-suspend-resume-with-playback-5

@lgirdwood lgirdwood merged commit 2c4e291 into thesofproject:main Mar 18, 2022
@lyakh lyakh deleted the shared branch April 4, 2022 07:56
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.

2 participants