mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
cpufreq/amd-pstate: Show a warning when a CPU fails to setup
I came across a system that MSR_AMD_CPPC_CAP1 for some CPUs isn't populated. This is an unexpected behavior that is most likely a BIOS bug. In the event it happens I'd like users to report bugs to properly root cause and get this fixed. Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Reviewed-by: Dhananjay Ugwekar <dhananjay.ugwekar@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
This commit is contained in:
parent
b7a4115658
commit
a9ba0fd452
|
|
@ -1028,6 +1028,7 @@ static int amd_pstate_cpu_init(struct cpufreq_policy *policy)
|
||||||
free_cpudata2:
|
free_cpudata2:
|
||||||
freq_qos_remove_request(&cpudata->req[0]);
|
freq_qos_remove_request(&cpudata->req[0]);
|
||||||
free_cpudata1:
|
free_cpudata1:
|
||||||
|
pr_warn("Failed to initialize CPU %d: %d\n", policy->cpu, ret);
|
||||||
kfree(cpudata);
|
kfree(cpudata);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
@ -1521,6 +1522,7 @@ static int amd_pstate_epp_cpu_init(struct cpufreq_policy *policy)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
free_cpudata1:
|
free_cpudata1:
|
||||||
|
pr_warn("Failed to initialize CPU %d: %d\n", policy->cpu, ret);
|
||||||
kfree(cpudata);
|
kfree(cpudata);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user