xref: /OK3568_Linux_fs/kernel/Documentation/hwmon/k10temp.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunKernel driver k10temp
2*4882a593Smuzhiyun=====================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSupported chips:
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun* AMD Family 10h processors:
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun  Socket F: Quad-Core/Six-Core/Embedded Opteron (but see below)
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun  Socket AM2+: Quad-Core Opteron, Phenom (II) X3/X4, Athlon X2 (but see below)
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun  Socket AM3: Quad-Core Opteron, Athlon/Phenom II X2/X3/X4, Sempron II
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun  Socket S1G3: Athlon II, Sempron, Turion II
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun* AMD Family 11h processors:
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun  Socket S1G2: Athlon (X2), Sempron (X2), Turion X2 (Ultra)
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun* AMD Family 12h processors: "Llano" (E2/A4/A6/A8-Series)
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun* AMD Family 14h processors: "Brazos" (C/E/G/Z-Series)
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun* AMD Family 15h processors: "Bulldozer" (FX-Series), "Trinity", "Kaveri",
25*4882a593Smuzhiyun  "Carrizo", "Stoney Ridge", "Bristol Ridge"
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun* AMD Family 16h processors: "Kabini", "Mullins"
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun* AMD Family 17h processors: "Zen", "Zen 2"
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun* AMD Family 18h processors: "Hygon Dhyana"
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun* AMD Family 19h processors: "Zen 3"
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun  Prefix: 'k10temp'
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun  Addresses scanned: PCI space
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun  Datasheets:
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun  BIOS and Kernel Developer's Guide (BKDG) For AMD Family 10h Processors:
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/31116.pdf
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun  BIOS and Kernel Developer's Guide (BKDG) for AMD Family 11h Processors:
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/41256.pdf
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun  BIOS and Kernel Developer's Guide (BKDG) for AMD Family 12h Processors:
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/41131.pdf
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun  BIOS and Kernel Developer's Guide (BKDG) for AMD Family 14h Models 00h-0Fh Processors:
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/43170.pdf
56*4882a593Smuzhiyun
57*4882a593Smuzhiyun  Revision Guide for AMD Family 10h Processors:
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/41322.pdf
60*4882a593Smuzhiyun
61*4882a593Smuzhiyun  Revision Guide for AMD Family 11h Processors:
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/41788.pdf
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun  Revision Guide for AMD Family 12h Processors:
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/44739.pdf
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun  Revision Guide for AMD Family 14h Models 00h-0Fh Processors:
70*4882a593Smuzhiyun
71*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/47534.pdf
72*4882a593Smuzhiyun
73*4882a593Smuzhiyun  AMD Family 11h Processor Power and Thermal Data Sheet for Notebooks:
74*4882a593Smuzhiyun
75*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/43373.pdf
76*4882a593Smuzhiyun
77*4882a593Smuzhiyun  AMD Family 10h Server and Workstation Processor Power and Thermal Data Sheet:
78*4882a593Smuzhiyun
79*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/43374.pdf
80*4882a593Smuzhiyun
81*4882a593Smuzhiyun  AMD Family 10h Desktop Processor Power and Thermal Data Sheet:
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun    http://support.amd.com/us/Processor_TechDocs/43375.pdf
84*4882a593Smuzhiyun
85*4882a593SmuzhiyunAuthor: Clemens Ladisch <clemens@ladisch.de>
86*4882a593Smuzhiyun
87*4882a593SmuzhiyunDescription
88*4882a593Smuzhiyun-----------
89*4882a593Smuzhiyun
90*4882a593SmuzhiyunThis driver permits reading of the internal temperature sensor of AMD
91*4882a593SmuzhiyunFamily 10h/11h/12h/14h/15h/16h processors.
92*4882a593Smuzhiyun
93*4882a593SmuzhiyunAll these processors have a sensor, but on those for Socket F or AM2+,
94*4882a593Smuzhiyunthe sensor may return inconsistent values (erratum 319).  The driver
95*4882a593Smuzhiyunwill refuse to load on these revisions unless you specify the "force=1"
96*4882a593Smuzhiyunmodule parameter.
97*4882a593Smuzhiyun
98*4882a593SmuzhiyunDue to technical reasons, the driver can detect only the mainboard's
99*4882a593Smuzhiyunsocket type, not the processor's actual capabilities.  Therefore, if you
100*4882a593Smuzhiyunare using an AM3 processor on an AM2+ mainboard, you can safely use the
101*4882a593Smuzhiyun"force=1" parameter.
102*4882a593Smuzhiyun
103*4882a593SmuzhiyunFor CPUs older than Family 17h, there is one temperature measurement value,
104*4882a593Smuzhiyunavailable as temp1_input in sysfs. It is measured in degrees Celsius with a
105*4882a593Smuzhiyunresolution of 1/8th degree.  Please note that it is defined as a relative
106*4882a593Smuzhiyunvalue; to quote the AMD manual::
107*4882a593Smuzhiyun
108*4882a593Smuzhiyun  Tctl is the processor temperature control value, used by the platform to
109*4882a593Smuzhiyun  control cooling systems. Tctl is a non-physical temperature on an
110*4882a593Smuzhiyun  arbitrary scale measured in degrees. It does _not_ represent an actual
111*4882a593Smuzhiyun  physical temperature like die or case temperature. Instead, it specifies
112*4882a593Smuzhiyun  the processor temperature relative to the point at which the system must
113*4882a593Smuzhiyun  supply the maximum cooling for the processor's specified maximum case
114*4882a593Smuzhiyun  temperature and maximum thermal power dissipation.
115*4882a593Smuzhiyun
116*4882a593SmuzhiyunThe maximum value for Tctl is available in the file temp1_max.
117*4882a593Smuzhiyun
118*4882a593SmuzhiyunIf the BIOS has enabled hardware temperature control, the threshold at
119*4882a593Smuzhiyunwhich the processor will throttle itself to avoid damage is available in
120*4882a593Smuzhiyuntemp1_crit and temp1_crit_hyst.
121*4882a593Smuzhiyun
122*4882a593SmuzhiyunOn some AMD CPUs, there is a difference between the die temperature (Tdie) and
123*4882a593Smuzhiyunthe reported temperature (Tctl). Tdie is the real measured temperature, and
124*4882a593SmuzhiyunTctl is used for fan control. While Tctl is always available as temp1_input,
125*4882a593Smuzhiyunthe driver exports Tdie temperature as temp2_input for those CPUs which support
126*4882a593Smuzhiyunit.
127*4882a593Smuzhiyun
128*4882a593SmuzhiyunModels from 17h family report relative temperature, the driver aims to
129*4882a593Smuzhiyuncompensate and report the real temperature.
130*4882a593Smuzhiyun
131*4882a593SmuzhiyunOn Family 17h and Family 18h CPUs, additional temperature sensors may report
132*4882a593SmuzhiyunCore Complex Die (CCD) temperatures. Up to 8 such temperatures are reported
133*4882a593Smuzhiyunas temp{3..10}_input, labeled Tccd{1..8}. Actual support depends on the CPU
134*4882a593Smuzhiyunvariant.
135*4882a593Smuzhiyun
136*4882a593SmuzhiyunVarious Family 17h and 18h CPUs report voltage and current telemetry
137*4882a593Smuzhiyuninformation. The following attributes may be reported.
138*4882a593Smuzhiyun
139*4882a593SmuzhiyunAttribute	Label	Description
140*4882a593Smuzhiyun===============	=======	================
141*4882a593Smuzhiyunin0_input	Vcore	Core voltage
142*4882a593Smuzhiyunin1_input	Vsoc	SoC voltage
143*4882a593Smuzhiyuncurr1_input	Icore	Core current
144*4882a593Smuzhiyuncurr2_input	Isoc	SoC current
145*4882a593Smuzhiyun===============	=======	================
146*4882a593Smuzhiyun
147*4882a593SmuzhiyunCurrent values are raw (unscaled) as reported by the CPU. Core current is
148*4882a593Smuzhiyunreported as multiples of 1A / LSB. SoC is reported as multiples of 0.25A
149*4882a593Smuzhiyun/ LSB. The real current is board specific. Reported currents should be seen
150*4882a593Smuzhiyunas rough guidance, and should be scaled using sensors3.conf as appropriate
151*4882a593Smuzhiyunfor a given board.
152