Enable temperature sensor support for DDR5
Compile the SPD5118 module to allow users to load it.
After loading the module, as long as the system exposes the relevant I2C interface and the memory complies with the SPD5118 standard, it should be possible to read the memory module temperature.
Debian's kernel config does not have this option. Wonder if it was added later, or they don't have it for a reason. Also on most of server systems things like that should be monitored by BMC, while at least on some older hardware direct access to memory controller's I2C could be dangerous.
This is a new driver added in kernel 6.11, which mainly standardizes memory temperature readings. Whether SPD can be written directly in the operating system depends on the design of the memory SPD chip and has little to do with this driver.
Server systems usually have protection mechanisms such as CLTT, and the memory SPD itself is not directly exposed to the operating system.
I am not about SPD. IIRC the bus where the sensor reside did not have proper arbitration to prevent simultaneous access by OS and CPU microcode.
prevent simultaneous access by OS and CPU microcode.
I'm not sure how this relates to CPU microcode. OS itself has automatically loaded i2c_piix4, spd5118 driver simply adds a hwmon interface to detected bus.
This should be included in debian upstream, doesn't truenas have synced kernel config?
https://lists.debian.org/debian-kernel/2024/12/msg00237.html
This was resolved in the updated debian_amd64.config.
https://github.com/truenas/linux/pull/232/files#diff-3861af575dc632ce9f06be397573fc372945155bbb1b9afbf6cbcdcfa5eb96afR5349