KATE(4)

πŸ“¦ in nixpkgs unstable

πŸ’… KATE(4) β€” the AMD K8 temp sensor page, explained by your favorite Unix bestie

okay so this is from the Kernel Interfaces Manual (section 4, which is like, drivers and kernel stuff, iykyk) and we're talking about kate β€” the AMD K8 temperature sensor. yes she's named kate. yes she's iconic. let's go πŸŽ€


✨ NAME ✨

kate β€” the AMD K8 temperature sensor, fr fr


🌸 SYNOPSIS 🌸

kate* at pci?

that's it. that's the whole vibe check. she attaches at pci? and that asterisk means "one or more of her, depending on how many chips you got" πŸ¦‹


πŸ”₯ DESCRIPTION πŸ”₯

The kate driver provides support for the temperature sensors that live inside the AMD K8 family of processors. she's literally just here to tell you how hot your CPU is being. main character energy πŸ’…

So these sensors were officially introduced with Revision F Family 0Fh processors, and they give you 1 degC accuracy. cute, but the glow-up came with Revision G chips, which added two more bits so you get 0.25 degC steppings. precision queen πŸ‘‘

Each core may have two temperature sensors, and there may be up to two cores per package. so the math is mathing in a kinda fun way.

Multiprocessor systems get one instance of kate per each chip. In each instance:

  • temp0 and temp1 are the sensors on the first core
  • temp2 and temp3 are the sensors on the second core

As such, single core chips may have two sensors, and dual-core dual-processor systems may have as many as 8 temperature sensors in total. eight!! she's booked and busy 🫢

Now here's the little plot twist: since many prior revisions of the chips appear to have valid readings for at least some temperature sensors in the same address space as the aforementioned revisions, the driver may also attach on such older revisions β€” provided that it finds some sensor readings that appear valid. lowkey lenient of her, honestly.

⚠️ But in such cases kate would not print the core revision information into the dmesg. so don't come for her when the revision info is missing, she warned you 😭

Sensor values are made available through the sysctl(8) interface. that's where you go to peek at the numbers πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

and the reading list, because she's studious:

  • BIOS and Kernel Developer's Guide for AMD NPT Family 0Fh Processors, Publication # 32559, pp. 21–23 and pp. 179–184, July 2007.
  • Revision Guide for AMD NPT Family 0Fh Processors, Publication # 33610, February 2008.

like she did the homework. respectfully. πŸ“šβœ¨


πŸ‘‘ HISTORY πŸ‘‘

The kate driver first appeared in OpenBSD 4.4. a legend was born, etc etc 🌈


πŸ’œ AUTHORS πŸ’œ

The kate driver was written by Constantine A. Murenin <cnst@openbsd.org> whilst at the University of Waterloo. ok stan a little bit πŸ“


and that's the whole page bestie β€” every flag, every degree, every sensor accounted for, no cap πŸ’€

shoutout to the Debian packaging of this page, dated April 23, 2019 β€” that's the source/version + date energy, mwah 😘

πŸ“¦ where this page comes from
  • nixpkgs unstable: cvs-export
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms