blob: 8557e26281c3a9c8499a095cd0f1263478166037 [file] [log] [blame]
Clemens Ladisch3c57e892009-12-16 21:38:25 +01001Kernel driver k10temp
2=====================
3
4Supported chips:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -03005
Clemens Ladisch3c57e892009-12-16 21:38:25 +01006* AMD Family 10h processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -03007
Clemens Ladischc5114a12010-01-10 20:52:34 +01008 Socket F: Quad-Core/Six-Core/Embedded Opteron (but see below)
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -03009
Clemens Ladischc5114a12010-01-10 20:52:34 +010010 Socket AM2+: Quad-Core Opteron, Phenom (II) X3/X4, Athlon X2 (but see below)
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030011
Clemens Ladisch3c57e892009-12-16 21:38:25 +010012 Socket AM3: Quad-Core Opteron, Athlon/Phenom II X2/X3/X4, Sempron II
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030013
Clemens Ladisch3c57e892009-12-16 21:38:25 +010014 Socket S1G3: Athlon II, Sempron, Turion II
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030015
Clemens Ladisch3c57e892009-12-16 21:38:25 +010016* AMD Family 11h processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030017
Clemens Ladisch3c57e892009-12-16 21:38:25 +010018 Socket S1G2: Athlon (X2), Sempron (X2), Turion X2 (Ultra)
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030019
Clemens Ladischaf75d5b2011-07-03 13:32:54 +020020* AMD Family 12h processors: "Llano" (E2/A4/A6/A8-Series)
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030021
Clemens Ladischaf75d5b2011-07-03 13:32:54 +020022* AMD Family 14h processors: "Brazos" (C/E/G/Z-Series)
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030023
Lukas Zapletal43fd0cf2019-09-23 12:59:31 +020024* AMD Family 15h processors: "Bulldozer" (FX-Series), "Trinity", "Kaveri",
25 "Carrizo", "Stoney Ridge", "Bristol Ridge"
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030026
Aravind Gopalakrishnanec015952014-03-11 16:25:59 -050027* AMD Family 16h processors: "Kabini", "Mullins"
Clemens Ladisch3c57e892009-12-16 21:38:25 +010028
Lukas Zapletal43fd0cf2019-09-23 12:59:31 +020029* AMD Family 17h processors: "Zen", "Zen 2"
30
31* AMD Family 18h processors: "Hygon Dhyana"
32
33* AMD Family 19h processors: "Zen 3"
34
Clemens Ladisch3c57e892009-12-16 21:38:25 +010035 Prefix: 'k10temp'
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030036
Clemens Ladisch3c57e892009-12-16 21:38:25 +010037 Addresses scanned: PCI space
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030038
Clemens Ladisch3c57e892009-12-16 21:38:25 +010039 Datasheets:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030040
Clemens Ladisch3c57e892009-12-16 21:38:25 +010041 BIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030042
Clemens Ladisch3c57e892009-12-16 21:38:25 +010043 http://support.amd.com/us/Processor_TechDocs/31116.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030044
Clemens Ladisch3c57e892009-12-16 21:38:25 +010045 BIOS and Kernel Developer's Guide (BKDG) for AMD Family 11h Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030046
Clemens Ladisch3c57e892009-12-16 21:38:25 +010047 http://support.amd.com/us/Processor_TechDocs/41256.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030048
Clemens Ladischaf75d5b2011-07-03 13:32:54 +020049 BIOS and Kernel Developer's Guide (BKDG) for AMD Family 12h Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030050
Clemens Ladischaf75d5b2011-07-03 13:32:54 +020051 http://support.amd.com/us/Processor_TechDocs/41131.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030052
Clemens Ladischaa4790a2011-02-17 03:22:40 -050053 BIOS and Kernel Developer's Guide (BKDG) for AMD Family 14h Models 00h-0Fh Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030054
Clemens Ladischaa4790a2011-02-17 03:22:40 -050055 http://support.amd.com/us/Processor_TechDocs/43170.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030056
Clemens Ladisch3c57e892009-12-16 21:38:25 +010057 Revision Guide for AMD Family 10h Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030058
Clemens Ladisch3c57e892009-12-16 21:38:25 +010059 http://support.amd.com/us/Processor_TechDocs/41322.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030060
Clemens Ladisch3c57e892009-12-16 21:38:25 +010061 Revision Guide for AMD Family 11h Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030062
Clemens Ladisch3c57e892009-12-16 21:38:25 +010063 http://support.amd.com/us/Processor_TechDocs/41788.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030064
Clemens Ladischaf75d5b2011-07-03 13:32:54 +020065 Revision Guide for AMD Family 12h Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030066
Clemens Ladischaf75d5b2011-07-03 13:32:54 +020067 http://support.amd.com/us/Processor_TechDocs/44739.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030068
Clemens Ladischaa4790a2011-02-17 03:22:40 -050069 Revision Guide for AMD Family 14h Models 00h-0Fh Processors:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030070
Clemens Ladischaa4790a2011-02-17 03:22:40 -050071 http://support.amd.com/us/Processor_TechDocs/47534.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030072
Clemens Ladisch3c57e892009-12-16 21:38:25 +010073 AMD Family 11h Processor Power and Thermal Data Sheet for Notebooks:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030074
Clemens Ladisch3c57e892009-12-16 21:38:25 +010075 http://support.amd.com/us/Processor_TechDocs/43373.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030076
Clemens Ladisch3c57e892009-12-16 21:38:25 +010077 AMD Family 10h Server and Workstation Processor Power and Thermal Data Sheet:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030078
Clemens Ladisch3c57e892009-12-16 21:38:25 +010079 http://support.amd.com/us/Processor_TechDocs/43374.pdf
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030080
Clemens Ladisch3c57e892009-12-16 21:38:25 +010081 AMD Family 10h Desktop Processor Power and Thermal Data Sheet:
Mauro Carvalho Chehabf8e8cfd2019-04-17 06:46:09 -030082
Clemens Ladisch3c57e892009-12-16 21:38:25 +010083 http://support.amd.com/us/Processor_TechDocs/43375.pdf
84
85Author: Clemens Ladisch <clemens@ladisch.de>
86
87Description
88-----------
89
90This driver permits reading of the internal temperature sensor of AMD
Aravind Gopalakrishnanec015952014-03-11 16:25:59 -050091Family 10h/11h/12h/14h/15h/16h processors.
Clemens Ladisch3c57e892009-12-16 21:38:25 +010092
Clemens Ladischc5114a12010-01-10 20:52:34 +010093All these processors have a sensor, but on those for Socket F or AM2+,
94the sensor may return inconsistent values (erratum 319). The driver
95will refuse to load on these revisions unless you specify the "force=1"
96module parameter.
97
98Due to technical reasons, the driver can detect only the mainboard's
99socket type, not the processor's actual capabilities. Therefore, if you
100are using an AM3 processor on an AM2+ mainboard, you can safely use the
101"force=1" parameter.
Clemens Ladisch3c57e892009-12-16 21:38:25 +0100102
Guenter Roeck4d52b282020-01-27 10:35:44 -0800103For CPUs older than Family 17h, there is one temperature measurement value,
104available as temp1_input in sysfs. It is measured in degrees Celsius with a
105resolution of 1/8th degree. Please note that it is defined as a relative
106value; to quote the AMD manual::
Clemens Ladisch3c57e892009-12-16 21:38:25 +0100107
108 Tctl is the processor temperature control value, used by the platform to
109 control cooling systems. Tctl is a non-physical temperature on an
110 arbitrary scale measured in degrees. It does _not_ represent an actual
111 physical temperature like die or case temperature. Instead, it specifies
112 the processor temperature relative to the point at which the system must
113 supply the maximum cooling for the processor's specified maximum case
114 temperature and maximum thermal power dissipation.
115
116The maximum value for Tctl is available in the file temp1_max.
117
118If the BIOS has enabled hardware temperature control, the threshold at
119which the processor will throttle itself to avoid damage is available in
120temp1_crit and temp1_crit_hyst.
Lukas Zapletal43fd0cf2019-09-23 12:59:31 +0200121
122On some AMD CPUs, there is a difference between the die temperature (Tdie) and
123the reported temperature (Tctl). Tdie is the real measured temperature, and
124Tctl is used for fan control. While Tctl is always available as temp1_input,
125the driver exports Tdie temperature as temp2_input for those CPUs which support
126it.
127
128Models from 17h family report relative temperature, the driver aims to
129compensate and report the real temperature.
Guenter Roeck4d52b282020-01-27 10:35:44 -0800130
131On Family 17h and Family 18h CPUs, additional temperature sensors may report
132Core Complex Die (CCD) temperatures. Up to 8 such temperatures are reported
133as temp{3..10}_input, labeled Tccd{1..8}. Actual support depends on the CPU
134variant.
135
136Various Family 17h and 18h CPUs report voltage and current telemetry
137information. The following attributes may be reported.
138
139Attribute Label Description
140=============== ======= ================
141in0_input Vcore Core voltage
142in1_input Vsoc SoC voltage
143curr1_input Icore Core current
144curr2_input Isoc SoC current
145=============== ======= ================
146
147Current values are raw (unscaled) as reported by the CPU. Core current is
148reported as multiples of 1A / LSB. SoC is reported as multiples of 0.25A
149/ LSB. The real current is board specific. Reported currents should be seen
150as rough guidance, and should be scaled using sensors3.conf as appropriate
151for a given board.