Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 1 | Kernel driver k10temp |
| 2 | ===================== |
| 3 | |
| 4 | Supported chips: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 5 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 6 | * AMD Family 10h processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 7 | |
Clemens Ladisch | c5114a1 | 2010-01-10 20:52:34 +0100 | [diff] [blame] | 8 | Socket F: Quad-Core/Six-Core/Embedded Opteron (but see below) |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 9 | |
Clemens Ladisch | c5114a1 | 2010-01-10 20:52:34 +0100 | [diff] [blame] | 10 | Socket AM2+: Quad-Core Opteron, Phenom (II) X3/X4, Athlon X2 (but see below) |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 11 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 12 | Socket AM3: Quad-Core Opteron, Athlon/Phenom II X2/X3/X4, Sempron II |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 13 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 14 | Socket S1G3: Athlon II, Sempron, Turion II |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 15 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 16 | * AMD Family 11h processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 17 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 18 | Socket S1G2: Athlon (X2), Sempron (X2), Turion X2 (Ultra) |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 19 | |
Clemens Ladisch | af75d5b | 2011-07-03 13:32:54 +0200 | [diff] [blame] | 20 | * AMD Family 12h processors: "Llano" (E2/A4/A6/A8-Series) |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 21 | |
Clemens Ladisch | af75d5b | 2011-07-03 13:32:54 +0200 | [diff] [blame] | 22 | * AMD Family 14h processors: "Brazos" (C/E/G/Z-Series) |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 23 | |
Lukas Zapletal | 43fd0cf | 2019-09-23 12:59:31 +0200 | [diff] [blame] | 24 | * AMD Family 15h processors: "Bulldozer" (FX-Series), "Trinity", "Kaveri", |
| 25 | "Carrizo", "Stoney Ridge", "Bristol Ridge" |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 26 | |
Aravind Gopalakrishnan | ec01595 | 2014-03-11 16:25:59 -0500 | [diff] [blame] | 27 | * AMD Family 16h processors: "Kabini", "Mullins" |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 28 | |
Lukas Zapletal | 43fd0cf | 2019-09-23 12:59:31 +0200 | [diff] [blame] | 29 | * 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 Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 35 | Prefix: 'k10temp' |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 36 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 37 | Addresses scanned: PCI space |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 38 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 39 | Datasheets: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 40 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 41 | BIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 42 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 43 | http://support.amd.com/us/Processor_TechDocs/31116.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 44 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 45 | BIOS and Kernel Developer's Guide (BKDG) for AMD Family 11h Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 46 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 47 | http://support.amd.com/us/Processor_TechDocs/41256.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 48 | |
Clemens Ladisch | af75d5b | 2011-07-03 13:32:54 +0200 | [diff] [blame] | 49 | BIOS and Kernel Developer's Guide (BKDG) for AMD Family 12h Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 50 | |
Clemens Ladisch | af75d5b | 2011-07-03 13:32:54 +0200 | [diff] [blame] | 51 | http://support.amd.com/us/Processor_TechDocs/41131.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 52 | |
Clemens Ladisch | aa4790a | 2011-02-17 03:22:40 -0500 | [diff] [blame] | 53 | BIOS and Kernel Developer's Guide (BKDG) for AMD Family 14h Models 00h-0Fh Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 54 | |
Clemens Ladisch | aa4790a | 2011-02-17 03:22:40 -0500 | [diff] [blame] | 55 | http://support.amd.com/us/Processor_TechDocs/43170.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 56 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 57 | Revision Guide for AMD Family 10h Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 58 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 59 | http://support.amd.com/us/Processor_TechDocs/41322.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 60 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 61 | Revision Guide for AMD Family 11h Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 62 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 63 | http://support.amd.com/us/Processor_TechDocs/41788.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 64 | |
Clemens Ladisch | af75d5b | 2011-07-03 13:32:54 +0200 | [diff] [blame] | 65 | Revision Guide for AMD Family 12h Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 66 | |
Clemens Ladisch | af75d5b | 2011-07-03 13:32:54 +0200 | [diff] [blame] | 67 | http://support.amd.com/us/Processor_TechDocs/44739.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 68 | |
Clemens Ladisch | aa4790a | 2011-02-17 03:22:40 -0500 | [diff] [blame] | 69 | Revision Guide for AMD Family 14h Models 00h-0Fh Processors: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 70 | |
Clemens Ladisch | aa4790a | 2011-02-17 03:22:40 -0500 | [diff] [blame] | 71 | http://support.amd.com/us/Processor_TechDocs/47534.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 72 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 73 | AMD Family 11h Processor Power and Thermal Data Sheet for Notebooks: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 74 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 75 | http://support.amd.com/us/Processor_TechDocs/43373.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 76 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 77 | AMD Family 10h Server and Workstation Processor Power and Thermal Data Sheet: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 78 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 79 | http://support.amd.com/us/Processor_TechDocs/43374.pdf |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 80 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 81 | AMD Family 10h Desktop Processor Power and Thermal Data Sheet: |
Mauro Carvalho Chehab | f8e8cfd | 2019-04-17 06:46:09 -0300 | [diff] [blame] | 82 | |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 83 | http://support.amd.com/us/Processor_TechDocs/43375.pdf |
| 84 | |
| 85 | Author: Clemens Ladisch <clemens@ladisch.de> |
| 86 | |
| 87 | Description |
| 88 | ----------- |
| 89 | |
| 90 | This driver permits reading of the internal temperature sensor of AMD |
Aravind Gopalakrishnan | ec01595 | 2014-03-11 16:25:59 -0500 | [diff] [blame] | 91 | Family 10h/11h/12h/14h/15h/16h processors. |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 92 | |
Clemens Ladisch | c5114a1 | 2010-01-10 20:52:34 +0100 | [diff] [blame] | 93 | All these processors have a sensor, but on those for Socket F or AM2+, |
| 94 | the sensor may return inconsistent values (erratum 319). The driver |
| 95 | will refuse to load on these revisions unless you specify the "force=1" |
| 96 | module parameter. |
| 97 | |
| 98 | Due to technical reasons, the driver can detect only the mainboard's |
| 99 | socket type, not the processor's actual capabilities. Therefore, if you |
| 100 | are using an AM3 processor on an AM2+ mainboard, you can safely use the |
| 101 | "force=1" parameter. |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 102 | |
Guenter Roeck | 4d52b28 | 2020-01-27 10:35:44 -0800 | [diff] [blame] | 103 | For CPUs older than Family 17h, there is one temperature measurement value, |
| 104 | available as temp1_input in sysfs. It is measured in degrees Celsius with a |
| 105 | resolution of 1/8th degree. Please note that it is defined as a relative |
| 106 | value; to quote the AMD manual:: |
Clemens Ladisch | 3c57e89 | 2009-12-16 21:38:25 +0100 | [diff] [blame] | 107 | |
| 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 | |
| 116 | The maximum value for Tctl is available in the file temp1_max. |
| 117 | |
| 118 | If the BIOS has enabled hardware temperature control, the threshold at |
| 119 | which the processor will throttle itself to avoid damage is available in |
| 120 | temp1_crit and temp1_crit_hyst. |
Lukas Zapletal | 43fd0cf | 2019-09-23 12:59:31 +0200 | [diff] [blame] | 121 | |
| 122 | On some AMD CPUs, there is a difference between the die temperature (Tdie) and |
| 123 | the reported temperature (Tctl). Tdie is the real measured temperature, and |
| 124 | Tctl is used for fan control. While Tctl is always available as temp1_input, |
| 125 | the driver exports Tdie temperature as temp2_input for those CPUs which support |
| 126 | it. |
| 127 | |
| 128 | Models from 17h family report relative temperature, the driver aims to |
| 129 | compensate and report the real temperature. |
Guenter Roeck | 4d52b28 | 2020-01-27 10:35:44 -0800 | [diff] [blame] | 130 | |
| 131 | On Family 17h and Family 18h CPUs, additional temperature sensors may report |
| 132 | Core Complex Die (CCD) temperatures. Up to 8 such temperatures are reported |
| 133 | as temp{3..10}_input, labeled Tccd{1..8}. Actual support depends on the CPU |
| 134 | variant. |
| 135 | |
| 136 | Various Family 17h and 18h CPUs report voltage and current telemetry |
| 137 | information. The following attributes may be reported. |
| 138 | |
| 139 | Attribute Label Description |
| 140 | =============== ======= ================ |
| 141 | in0_input Vcore Core voltage |
| 142 | in1_input Vsoc SoC voltage |
| 143 | curr1_input Icore Core current |
| 144 | curr2_input Isoc SoC current |
| 145 | =============== ======= ================ |
| 146 | |
| 147 | Current values are raw (unscaled) as reported by the CPU. Core current is |
| 148 | reported 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 |
| 150 | as rough guidance, and should be scaled using sensors3.conf as appropriate |
| 151 | for a given board. |