← Documents Documentation/hwmon/k8temp.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver k8temp

AMD K8 CPU의 최대 네 온도 센서, 1초 갱신, TCaseMax와 TControl 관계입니다.

Source pathDocumentation/hwmon/k8temp.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

k8temp.rst:1-62

K8 CPU의 코어·위치별 온도 센서를 자동 탐색하고 리비전별 TCaseMax 또는 TControl 기준을 설명합니다.

문서 개요
항목
SourceDocumentation/hwmon/k8temp.rst
분량62 source lines
센서최대 4
갱신1초

원문 분량과 핵심 인터페이스입니다.

동작 흐름
K8 리비전 확인센서 자동 감지코어·place 매핑열 한계 해석

하드웨어 측정에서 hwmon 게시까지의 핵심 순서입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 Kernel driver k8temp
2 ====================
3
4 Supported chips:
5
6 * AMD Athlon64/FX or Opteron CPUs
7
8 Prefix: 'k8temp'
9
10 Addresses scanned: PCI space
11
12 Datasheet: https://www.amd.com/system/files/TechDocs/32559.pdf
13
14 Author: Rudolf Marek
15
16 Contact: Rudolf Marek <[email protected]>
17
18 Description
19 -----------
20
21 This driver permits reading temperature sensor(s) embedded inside AMD K8
22 family CPUs (Athlon64/FX, Opteron). Official documentation says that it works
23 from revision F of K8 core, but in fact it seems to be implemented for all
24 revisions of K8 except the first two revisions (SH-B0 and SH-B3).
25
26 Please note that you will need at least lm-sensors 2.10.1 for proper userspace
27 support.
28
29 There can be up to four temperature sensors inside single CPU. The driver
30 will auto-detect the sensors and will display only temperatures from
31 implemented sensors.
32
33 Mapping of /sys files is as follows:
34
35 ============= ===================================
36 temp1_input temperature of Core 0 and "place" 0
37 temp2_input temperature of Core 0 and "place" 1
38 temp3_input temperature of Core 1 and "place" 0
39 temp4_input temperature of Core 1 and "place" 1
40 ============= ===================================
41
42 Temperatures are measured in degrees Celsius and measurement resolution is
43 1 degree C. It is expected that future CPU will have better resolution. The
44 temperature is updated once a second. Valid temperatures are from -49 to
45 206 degrees C.
46
47 Temperature known as TCaseMax was specified for processors up to revision E.
48 This temperature is defined as temperature between heat-spreader and CPU
49 case, so the internal CPU temperature supplied by this driver can be higher.
50 There is no easy way how to measure the temperature which will correlate
51 with TCaseMax temperature.
52
53 For newer revisions of CPU (rev F, socket AM2) there is a mathematically
54 computed temperature called TControl, which must be lower than TControlMax.
55
56 The relationship is following:
57
58 temp1_input - TjOffset*2 < TControlMax,
59
60 TjOffset is not yet exported by the driver, TControlMax is usually
61 70 degrees C. The rule of the thumb -> CPU temperature should not cross
62 60 degrees C too much.
63

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

AMD K8 지원 CPU와 접근 방식

1-17

`k8temp` 드라이버는 AMD Athlon64/FX와 Opteron CPU를 지원하며 PCI 공간에서 센서를 찾습니다. 접두사는 `k8temp`, 데이터시트는 원문 AMD 링크이며 작성자와 연락처는 Rudolf Marek입니다.

k8temp 식별 정보
항목
지원 CPUAMD Athlon64/FX, Opteron
접두사k8temp
검색 위치PCI 공간
데이터시트AMD TechDocs 32559
작성자Rudolf Marek

지원 프로세서와 자료입니다.

K8 센서 연결
AMD K8 CPU 확인PCI 온도 기능 탐색코어 리비전 확인구현 센서 자동 감지k8temp 채널 게시

PCI 기능에서 구현된 센서만 게시합니다.

Kernel driver k8temp
====================

Supported chips:

  * AMD Athlon64/FX or Opteron CPUs

    Prefix: 'k8temp'

    Addresses scanned: PCI space

    Datasheet: https://www.amd.com/system/files/TechDocs/32559.pdf

Author: Rudolf Marek

Contact: Rudolf Marek <[email protected]>

K8 센서 배치와 측정 범위

18-46

드라이버는 AMD K8 계열 CPU 내부의 온도 센서를 읽습니다. 공식 문서는 K8 코어 리비전 F부터 동작한다고 하지만 실제로는 처음 두 리비전 SH-B0과 SH-B3을 제외한 모든 K8 리비전에 구현된 것으로 보입니다. 사용자 공간 지원에는 최소 lm-sensors 2.10.1이 필요합니다.

CPU 하나에는 최대 네 온도 센서가 있을 수 있습니다. 드라이버가 자동 감지해 실제 구현된 센서의 온도만 표시합니다.

`temp1_input`은 Core 0·place 0, `temp2_input`은 Core 0·place 1, `temp3_input`은 Core 1·place 0, `temp4_input`은 Core 1·place 1의 온도입니다.

온도는 섭씨 1도 분해능으로 측정되고 1초마다 갱신됩니다. 유효 범위는 -49도 C부터 206도 C입니다. 향후 CPU는 더 높은 분해능을 가질 것으로 예상된다고 원문은 설명합니다.

K8 온도 채널
속성코어place
temp1_inputCore 00
temp2_inputCore 01
temp3_inputCore 10
temp4_inputCore 11
측정 특성-49~206도 C1도 분해능, 1초 갱신

코어와 place 조합을 sysfs 속성에 대응시켰습니다.

K8 온도 갱신
CPU 리비전 확인최대 네 센서 존재 여부 감지코어·place에 채널 매핑1초마다 온도 갱신유효 범위 안의 값 게시

구현 센서만 탐색해 주기적으로 게시합니다.

Description
-----------

This driver permits reading temperature sensor(s) embedded inside AMD K8
family CPUs (Athlon64/FX, Opteron). Official documentation says that it works
from revision F of K8 core, but in fact it seems to be implemented for all
revisions of K8 except the first two revisions (SH-B0 and SH-B3).

Please note that you will need at least lm-sensors 2.10.1 for proper userspace
support.

There can be up to four temperature sensors inside single CPU. The driver
will auto-detect the sensors and will display only temperatures from
implemented sensors.

Mapping of /sys files is as follows:

============= ===================================
temp1_input   temperature of Core 0 and "place" 0
temp2_input   temperature of Core 0 and "place" 1
temp3_input   temperature of Core 1 and "place" 0
temp4_input   temperature of Core 1 and "place" 1
============= ===================================

Temperatures are measured in degrees Celsius and measurement resolution is
1 degree C. It is expected that future CPU will have better resolution. The
temperature is updated once a second. Valid temperatures are from -49 to
206 degrees C.

TCaseMax와 TControl 관계

47-62

리비전 E까지의 프로세서에는 TCaseMax가 규정되어 있습니다. 이는 히트 스프레더와 CPU 케이스 사이의 온도이므로 드라이버가 제공하는 CPU 내부 온도가 더 높을 수 있습니다. 내부 온도와 TCaseMax에 직접 대응하는 온도를 쉽게 측정할 방법은 없습니다.

리비전 F와 Socket AM2 같은 새 CPU에는 수학적으로 계산한 TControl이 있으며 TControlMax보다 낮아야 합니다. 관계식은 `temp1_input - TjOffset*2 < TControlMax`입니다.

TjOffset은 아직 드라이버가 노출하지 않습니다. TControlMax는 보통 70도 C이며 경험상 CPU 온도가 60도 C를 크게 넘지 않도록 해야 한다고 원문은 안내합니다.

K8 열 한계
항목적용의미
TCaseMax리비전 E까지히트 스프레더와 CPU 케이스 사이 온도
내부 온도k8temp 입력TCaseMax보다 높을 수 있음
TControl리비전 F·Socket AM2 이후계산된 제어 온도
조건temp1_input - TjOffset*2 < TControlMaxTControlMax 보통 70도 C
TjOffset미노출드라이버에서 직접 읽을 수 없음

물리 위치와 제어 온도의 차이를 정리했습니다.

K8 열 상태 해석
CPU 리비전 확인구형이면 TCaseMax 의미 구분신형이면 TControl 관계식 적용TjOffset 미노출 제약 고려내부 온도가 60도 C를 크게 넘지 않는지 확인

리비전에 맞는 기준을 사용합니다.

Temperature known as TCaseMax was specified for processors up to revision E.
This temperature is defined as temperature between heat-spreader and CPU
case, so the internal CPU temperature supplied by this driver can be higher.
There is no easy way how to measure the temperature which will correlate
with TCaseMax temperature.

For newer revisions of CPU (rev F, socket AM2) there is a mathematically
computed temperature called TControl, which must be lower than TControlMax.

The relationship is following:

        temp1_input - TjOffset*2 < TControlMax,

TjOffset is not yet exported by the driver, TControlMax is usually
70 degrees C. The rule of the thumb -> CPU temperature should not cross
60 degrees C too much.