tsc-disable_A5
Quoted 4 lines · Dave Jones
Quoted 2 lines · john stultz
.config that looked like:
Quoted 8 lines
Quoted 5 lines
CONFIG_X86_TSC=y
...
#CONFIG_X86_TSCis not set
So I assumedCONFIG_X86_TSCwould still hold. Am I wrong, or is there another way to do this?Ugh, I hadn't realised the .config generation was so primitive. That's quite unfortunate. That needs fixing at some point.
Unless my memory is failing me, I believe the simplest approach is to (1) don't set CONFIG_X86_TSC, and (2) pass "notsc" as a kernel boot parameter.
CONFIG_X86_TSC means "the machine has working TSC, period". That's an intensional optimisation.
Without CONFIG_X86_TSC, Linux manages without TSC, but will detect and use it if it's there.
Finally, the "notsc" kernel parameter is for obscure cases where the TSC is present, but should not be used for whatever reason. I guess the present issue qualifies...
/Mikael
Quoted 3 lines · Mikael Pettersson
Unless my memory is failing me, I believe the simplest approach is to (1) don't set
CONFIG_X86_TSC, and (2) pass "notsc" as a kernel boot parameter.
Correct, and this patch basically does both of the above.
The problem is that CONFIG_X86_TSC is enabled on PPro and above cpus. The machines which are having this problem are multi-node P3 or P4 systems. Each cpu has a working TSC, its just that because they are not synced they should not be used.
So the patch adds a CONFIG_DISABLE_TSC which is then checked where earlier just CONFIG_X86_TSC was used. Additionally, if CONFIG_DISABLE_TSC is set, the flag set by "notsc" is also set.
The usage of CONFIG_X86_TSC took me a bit to get my head around initially, so your clarification is helpful.
Thanks
-john