Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [netbsd-10] src
Module Name: src
Committed By: martin
Date: Thu Jun 20 11:00:07 UTC 2024
Modified Files:
src/distrib/sets/lists/man [netbsd-10]: mi
src/share/man/man4/man4.i386 [netbsd-10]: Makefile
src/share/man/man4/man4.x86 [netbsd-10]: Makefile
src/sys/arch/amd64/conf [netbsd-10]: ALL GENERIC
src/sys/arch/i386/conf [netbsd-10]: ALL GENERIC
src/sys/arch/x86/x86 [netbsd-10]: viac7temp.c
Added Files:
src/share/man/man4/man4.x86 [netbsd-10]: viac7temp.4
Removed Files:
src/share/man/man4/man4.i386 [netbsd-10]: viac7temp.4
Log Message:
Pull up following revision(s) (requested by andvar in ticket #700):
sys/arch/i386/conf/GENERIC: revision 1.1256
share/man/man4/man4.x86/viac7temp.4: revision 1.1
sys/arch/x86/x86/viac7temp.c: revision 1.11
share/man/man4/man4.x86/Makefile: revision 1.24
share/man/man4/man4.i386/viac7temp.4: file removal
share/man/man4/man4.i386/Makefile: revision 1.81
distrib/sets/lists/man/mi: revision 1.1773
sys/arch/amd64/conf/GENERIC: revision 1.612
sys/arch/amd64/conf/ALL: revision 1.188
sys/arch/i386/conf/ALL: revision 1.519
viac7temp(4): rewrite temperature sensor to read value from MSR instead of using
documented cpuid instruction and eax register.
This approach is adapted from linux via-cputemp.c, no official documentation is
currently available. However, msr value seems to work on all tested CPUs while
documented cpuid instruction typically reports 0, even for my C7-D CPU.
msr value seems to have temperature in Celsius in lower 24-bits without fraction
(thus "msr & 0xffffff;" is used).
Tested on my personal systems based on CPUs below (i386 and amd64):
C7-D 1.6GHz (i386 only), Nano X2 L4350E, Nano X2 U4300, U2300 Nano, KX-U6580.
Also got one response via email which was based on Nano X2 L4050 (VE-900).
Nano reports independent values for each core.
KX-U6580 seems to show the same value for all cores but more testing is needed.
Since it works on amd64 capable CPUs, adding driver to GENERIC kernel config.
Also moving viac7temp man page to x86 instead of i386 (with updates).
In theory the change should add support for all VIA Nano CPUs and Zhaoxin CPUs
at least up to KX-6000(G) series.
In the future I may need to introduce amd64 kernel module as well.
Patch mainly reviewed by riastradh.
To generate a diff of this commit:
cvs rdiff -u -r1.1757.2.8 -r1.1757.2.9 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.80 -r1.80.2.1 src/share/man/man4/man4.i386/Makefile
cvs rdiff -u -r1.3 -r0 src/share/man/man4/man4.i386/viac7temp.4
cvs rdiff -u -r1.23 -r1.23.2.1 src/share/man/man4/man4.x86/Makefile
cvs rdiff -u -r0 -r1.1.2.2 src/share/man/man4/man4.x86/viac7temp.4
cvs rdiff -u -r1.174.4.2 -r1.174.4.3 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.599.4.5 -r1.599.4.6 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.503.4.2 -r1.503.4.3 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1243.2.3 -r1.1243.2.4 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.9.4.1 -r1.9.4.2 src/sys/arch/x86/x86/viac7temp.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index