Dependent CPU core speed reporting not updated with CPUFREQ_SHARED_TYPE_HW?

From: Darrick J. Wong
Date: Thu Mar 29 2007 - 20:42:49 EST


Hi Venki,

I have a dual-Woodcrest machine here with _PSD tables that specify that
cpufreq coordination between cores is done in hardware with
DOMAIN_COORD_TYPE_HW_ALL. On this particular machine, CPU 0 and CPU 2
are on the same package, and it looks like they have to be at the same
frequency.

However, it seems that acpi_cpufreq_cpu_init() only sets policy->cpus to
the shared cpu mask if software coordination is required. While this
does have the effect of letting the hardware do its coordination job as
advertised, it also means that a frequency change to CPU0 doesn't get
echoed to CPU2 as it should be, and affected_cpus is inaccurate.

This seems like a bug to me. I can whip up a patch to set the policy
cpu mask in all cases and neuter all but one of the MSR/PCT writes if HW
coordination is desired so that HW coordination is preserved and sysfs
is accurate, but I'm curious to know if I've gotten it right.

--D
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/