News for hackers. Stuff that matters.
Re:Fixing Apple's Engineering in an Hour [video] by slantyyz on Monday June 22, 2020 @09:59AM (#23600248)
> presumably the CPU was being limited in software anyway

Would this be in the OS or the bios (or whatever they call it on a Mac)?

If it's the former, I wonder if the test would have been more interesting if the MBA was running a different OS.

Re:Fixing Apple's Engineering in an Hour [video] by Nextgrid on Monday June 22, 2020 @10:14AM (#23600394)
Firmware.

Doing it within the operating system is suicidal as a malfunction of the OS (whether accidental or due to malware) would force the machine to operate beyond its thermal limits and potentially damage itself.

Re:Fixing Apple's Engineering in an Hour [video] by cassianoleal on Monday June 22, 2020 @10:30AM (#23600566)
The thermal management is done in userland. This is probably the same.

- https://twitter.com/tomcoates/status/1255170545366097922

Re:Fixing Apple's Engineering in an Hour [video] by eqvinox on Monday June 22, 2020 @01:39PM (#23603153)
This is another misunderstanding/misconnection. "kernel_task" is used to report "missing" CPU time so the CPU usage accounting remains consistent even when the CPU is throttled. That does not mean either the kernel or userland have any input to the thermal throttling functions.

There's also multiple levels of protection and throttling. At the lowest level, various ICs on the board (e.g. power regulators) will turn themselves off if they overheat. Somewhere above that, firmware will definitely exert /some/ control, to cover odd situations like the machine hanging while booting. Above that, the kernel or userspace can add another layer — but like each of the layers before, that layer can only lower the limits further.

Having thermal management in userland (and nowhere else) would be legal suicide. Imagine the lawsuits from people accidentally burning their legs...

Re:Fixing Apple's Engineering in an Hour [video] by cassianoleal on Monday June 22, 2020 @05:00PM (#23606589)
Thanks for this.

I believe you are correct, although I did think that kernel_task was there to help cool the components down, and not simply as a devide to report throttled CPU usage consistently with unthrottled.

That said, I didn't mean to say that thermal throttling only happened in userland but rather that it did happen there, even though it might also happen elsewhere.

Within the context of this thread, this is relevant since in this case the CPU was not being thermally throttled as it was running cool, but something was still throttling the amount of power going to it.

I was merely suggesting that Nextgrid's affirmation that it must have been the firmware throttling the CPU is not necessarily true. Given that there is a software component to thermal management (or at least I thought so), it's only logical to assume that there may be a software component of whatever other throttling was occurring without it necessarily being suicidal as suggested.

Re:Fixing Apple's Engineering in an Hour [video] by kalium-xyz on Monday June 22, 2020 @10:02AM (#23600279)
Firmware, good luck overclocking a macbook