Skip to content

Commit

Permalink
ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn
Browse files Browse the repository at this point in the history
If the boost ratio isn't calculated properly for the system for any
reason this can cause other problems that are non-obvious.

Raise all messages to warn instead.

Suggested-by: Perry Yuan <Perry.Yuan@amd.com>
Reviewed-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
  • Loading branch information
Mario Limonciello committed Sep 11, 2024
1 parent 3355ac2 commit 21fb59a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/x86/kernel/acpi/cppc.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ static void amd_set_max_freq_ratio(void)

rc = cppc_get_perf_caps(0, &perf_caps);
if (rc) {
pr_debug("Could not retrieve perf counters (%d)\n", rc);
pr_warn("Could not retrieve perf counters (%d)\n", rc);
return;
}

rc = amd_get_boost_ratio_numerator(0, &numerator);
if (rc) {
pr_debug("Could not retrieve highest performance (%d)\n", rc);
pr_warn("Could not retrieve highest performance (%d)\n", rc);
return;
}
nominal_perf = perf_caps.nominal_perf;

if (!nominal_perf) {
pr_debug("Could not retrieve nominal performance\n");
pr_warn("Could not retrieve nominal performance\n");
return;
}

Expand Down

0 comments on commit 21fb59a

Please sign in to comment.