Created attachment 149000 [details]
Completely rewritten amdtemp driver.
There is no longer binding to the processor ID, all the new processors will be supported without the need to modify the code.
Maybe for older CPUs (FAMILY 0x0f) that it would not work, I have not had a chance to test.
sensor_offset - can be customized for each sensor separately.
In fact there is only one sensor to the processor.
Thermtrip Status - all registers are read-only.
Hardware Thermal Control (HTC) - everything except HtcTmpLmt available for recording.
Reported Temperature Control - everything except CurTmp available for recording.
SB-TSI - most writable.
Register values can be found in the documentation on the processor.
(In reply to rozhuk.im from comment #0)
Can you sync you patch with current changes and add your code to review follow instruction:
Synchronization is not required: the driver is written so that it does not need ID processors, he determines which interfaces are available for temperature reading.
I don't have @freebsd.org account, so it take a time.
CPU temps is very good to have.