Skip to contentSkip to conversation

Auto load of coretemp and pkgtemp

DISCUSSION Phillip Susi 3 participants 3 messages Jan 24, 2011 – Jan 26, 2011 ACPI

lore
Share & tools
lore
#0 lore raw

I recently built a new sandybridge system and was surprised to find that I had to manually load the coretemp and pkgtemp modules to monitor the cpu temperature. My last few systems have been AMD where the k8temp module is automatically loaded. It seems k8temp has a modalias that gets it loaded on the correct hardware, but coretemp and pkgtemp have no alias. Why is this, and how can I construct a proper alias to get the intel modules to auto load?

#1 lore raw
Quoted 7 lines · Phillip Susi

I recently built a new sandybridge system and was surprised to find that I had to manually load the coretemp and pkgtemp modules to monitor the cpu temperature. My last few systems have been AMD where the k8temp module is automatically loaded. It seems k8temp has a modalias that gets it loaded on the correct hardware, but coretemp and pkgtemp have no alias. Why is this, and how can I construct a proper alias to get the intel modules to auto load?

I think the difference is that on AMD the temperature monitoring is done through a virtual PCI device that we can make a modalias for, but coretemp support is based on CPUID and I don't think there's a way to construct a modalias for that.

#2 lore raw
Quoted 2 lines · Robert Hancock

but coretemp support is based on CPUID and I don't think there's a way to construct a modalias for that.

Because we never had much reason to, in the past.

You can always extend the kernel to actually generate a modalias in the CPU devices in sysfs with the cpuid, and add the relevant patterns to drivers like coretemp. If you do, make it extensible like the ones used for the BIOS DMI information, so that we can add any relevant future feature bits.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh