public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Dependent CPU core speed reporting not updated with CPUFREQ_SHARED_TYPE_HW?
@ 2007-03-30  0:43 Darrick J. Wong
  2007-03-30  1:06 ` Pallipadi, Venkatesh
  0 siblings, 1 reply; 9+ messages in thread
From: Darrick J. Wong @ 2007-03-30  0:43 UTC (permalink / raw)
  To: Pallipadi, Venkatesh; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-06-04 17:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-30  0:43 Dependent CPU core speed reporting not updated with CPUFREQ_SHARED_TYPE_HW? Darrick J. Wong
2007-03-30  1:06 ` Pallipadi, Venkatesh
2007-06-01 18:43   ` Darrick J. Wong
2007-06-01 21:37     ` Andi Kleen
2007-06-01 22:39       ` Darrick J. Wong
2007-06-02  1:59     ` Pallipadi, Venkatesh
2007-06-02  6:43       ` Dave Jones
2007-06-02 14:19         ` Dependent CPU core speed reporting not updated withCPUFREQ_SHARED_TYPE_HW? Pallipadi, Venkatesh
2007-06-04 17:07           ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox