bontanu wrote:
Overall: disabling SMM ... might be **interesting**
Is that the educational or explosive kind of 'interesting'?
All I can do here is echo (and sum up) what's already been said: don't even try to disable SMM (I, at least, don't want to be entrusting my processor's 'life' to an in-development OS!); the best you can do is to try to do reduce the amount of work it needs to do, by doing it yourself. The transitions to and from SMM might still take a fair amount of time if you don't offload everything, though, due to the aforementioned slow hardware.
How about checking the jitter on the second (non-boot) core as well? That one might not be doing as much SMM work, so it might be better. Not sure about this; after all, with SMM it's largely hardware-specific.
Brendan wrote:
At the top of the list would be supporting ACPI (or at least pretending to support ACPI) so that power management is done by your code (and ACPI's AML) and not done by SMM code.
I'd guess that, even if you take over power management via ACPI, then SMM would still steal some time off you to make sure that you don't kill the hardware, but it'd probably reduce the portion of time stolen (the throttling might be the part that takes most of the time)