|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] ACPI: Add fixups for AMD P-state figures.
On 03/05/2013 02:45 PM, Konrad Rzeszutek Wilk wrote: This a copy-n-paste from two Linux git commits: - f594065faf4f9067c2283a34619fc0714e79a98d ACPI: Add fixups for AMD P-state figures - 9855d8ce41a7801548a05d844db2f46c3e810166 ACPI: Check MSR valid bit before using P-state frequencies The issue is that "some AMD systems may round the frequencies in ACPI tables to 100MHz boundaries. We canobtain the real frequencies from MSRs, so add a quirk to fix these frequencies up on AMD systems." (from f594065..) In discussion (around 9855d8..) "it turned out that indeed real HW/BIOSes may choose to not set the valid bit and thus mark the P-state as invalid. So this could be considered a fix for broken BIOSes that also works around the issue on Xen." (from 9855d8..) I've tested it under Dell Inc. PowerEdge T105 /0RR825, BIOS 1.3.2 08/20/2008 where this quirk can indeed be observed. CC: stefan.bader@xxxxxxxxxxxxx CC: bp@xxxxxxx CC: borislav.ostrovsky@xxxxxxxxxx boris.ostrovsky@xxxxxxxxxx Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> --- xen/arch/x86/acpi/cpufreq/powernow.c | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/xen/arch/x86/acpi/cpufreq/powernow.c b/xen/arch/x86/acpi/cpufreq/powernow.c index a9b7792..0eaa16c 100644 --- a/xen/arch/x86/acpi/cpufreq/powernow.c +++ b/xen/arch/x86/acpi/cpufreq/powernow.c @@ -146,7 +146,43 @@ static int powernow_cpufreq_target(struct cpufreq_policy *policy,return 0;} +#define MSR_AMD_PSTATE_DEF_BASE 0xc0010064 There is MSR_PSTATE_DEF_BASE at the top of this file which is the same thing. Identation is off. -boris
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |