Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable CONFIG_X86_AMD_PSTATE #980

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

jfroy
Copy link
Contributor

@jfroy jfroy commented Jun 23, 2024

amd-pstate is the AMD CPU performance scaling driver that introduces a new CPU frequency control mechanism on modern AMD APU and CPU series in Linux kernel.

fixes #978

@jfroy jfroy force-pushed the amd-pstate branch 2 times, most recently from ca4cb9d to 5b5fdd5 Compare June 23, 2024 03:38
@@ -635,7 +635,8 @@ CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
# CONFIG_X86_AMD_PSTATE is not set
CONFIG_X86_AMD_PSTATE=y
CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3
Copy link
Member

Choose a reason for hiding this comment

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

not sure if we should set this to active or passive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3 (passive) is the default because it most closely matches the performance of acpi-cpufreq, which is used if amd-pstate is disabled. It feels appropriate to keep that as the default and require the user to select active or guided (e.g. amd-pstate-epp) and configure it.

@jfroy
Copy link
Contributor Author

jfroy commented Jun 28, 2024

Thanks for the approval. I rebased which broke the signature, sorry! I think your process is you re-commit, signing with a trusted key, so I should have left it alone.

@DmitriyMV DmitriyMV force-pushed the amd-pstate branch 2 times, most recently from 589f2ce to 2e92ea1 Compare June 28, 2024 18:58
@DmitriyMV
Copy link
Member

@jfroy no worries. Rebased and signed using my key. Will merge when PR is done.

@DmitriyMV
Copy link
Member

/ok-to-test

fixes siderolabs#978

Signed-off-by: Jean-Francois Roy <jf@devklog.net>
Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
@DmitriyMV
Copy link
Member

/m

@talos-bot talos-bot merged commit c7e9591 into siderolabs:main Jun 29, 2024
14 checks passed
@jfroy jfroy deleted the amd-pstate branch August 6, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Development

Successfully merging this pull request may close these issues.

Enable AMD pstate
5 participants