Re: [PATCH] x86: Support always running TSC on Intel CPUs

From: H. Peter Anvin
Date: Mon Nov 17 2008 - 20:07:44 EST


Venki Pallipadi wrote:

I was under the impression that C2 was invoked by the chipset on a
thermal condition, at least on older (P3-era) processors. Is that no
longer true? If what you say is above (HLT and MWAIT only), then *was*
it ever true?

I should also add io port based C-state to HLT and MWAIT. But, that again is
OS initiated.

I don't know of C2 invocation in thermal condition. Thermal condition, all
CPUs that I know of (P3 and beyond), use either clock modulation or frequency
changes. And on some such CPUs, where TSC runs at constant freq during such
modulation/freq change, we set CONSTANT_TSC bit based on model number check.
So, on CPUs earlier than those, we cannot use TSC or we have to scale TSC
based on freq. This patch shouldn't have any impact for those CPUs.


I believe there are CPUs -- again, in the P3-era range at least -- which invoke C2 from the chipset on thermal conditions (and basically PWM the CPU.) I'd like to get that clarified so we don't trip up on that.

-hpa

--
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/