Skip to content

Conversation

@tmleman
Copy link
Contributor

@tmleman tmleman commented Oct 10, 2024

This pull request introduces the following changes to the LNL and PTL platforms:

  1. Enable KCPS Dynamic Clock Control:

    • Updated the intel_adsp_ace20_lnl.conf configuration file to enable CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL for the LNL platform.
    • Updated the intel_adsp_ace30_ptl.conf configuration file to enable CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL for the PTL platform.
  2. Define Base CPS Usage:

    • Added definitions for PRIMARY_CORE_BASE_CPS_USAGE and SECONDARY_CORE_BASE_CPS_USAGE in the clk.h file for both LNL and PTL platforms.

This patch adds definitions for the base CPS (Cycles Per Second) usage
for primary and secondary cores in the `clk.h` file for the LNL
platform.

**Changes Include:**
- Defined `PRIMARY_CORE_BASE_CPS_USAGE` as 20000.
- Defined `SECONDARY_CORE_BASE_CPS_USAGE` as 10000.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This patch adds definitions for the base CPS (Cycles Per Second) usage
for primary and secondary cores in the `clk.h` file for the PTL
platform.

**Changes Include:**
- Defined `PRIMARY_CORE_BASE_CPS_USAGE` as 20000.
- Defined `SECONDARY_CORE_BASE_CPS_USAGE` as 10000.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This patch enables the `CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL` option for
the LNL platform by updating the `intel_adsp_ace20_lnl.conf`
configuration file.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
This patch enables the `CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL` option for
the PTL platform by updating the `intel_adsp_ace30_ptl.conf`
configuration file.

Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
@abonislawski
Copy link
Member

@kv2019i can we run bigger test scope for this on LNL/PTL? It was not easy to stabilize on MTL

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.

Looks good, we just need to not use the deprecated legacy headers as they will be removed soon.

Comment on lines +33 to +34
#define PRIMARY_CORE_BASE_CPS_USAGE 20000
#define SECONDARY_CORE_BASE_CPS_USAGE 10000
Copy link
Member

Choose a reason for hiding this comment

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

This file is going to get removed as it was needed for xtos usage, can we make this a Kconfig value ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably can be in a separate PR (as the platform clk.h is already used for this purpose in mainline), but agreed this is better moved off and not add any new usage of platform layer to the codebase.

Copy link
Member

Choose a reason for hiding this comment

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

ok, I'm good with this, we can follow up later and fix the header.

Comment on lines +33 to +34
#define PRIMARY_CORE_BASE_CPS_USAGE 20000
#define SECONDARY_CORE_BASE_CPS_USAGE 10000
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably can be in a separate PR (as the platform clk.h is already used for this purpose in mainline), but agreed this is better moved off and not add any new usage of platform layer to the codebase.

Comment on lines +33 to +34
#define PRIMARY_CORE_BASE_CPS_USAGE 20000
#define SECONDARY_CORE_BASE_CPS_USAGE 10000
Copy link
Member

Choose a reason for hiding this comment

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

ok, I'm good with this, we can follow up later and fix the header.

@lgirdwood lgirdwood merged commit f72968c into thesofproject:main Oct 18, 2024
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