FreeBSD src
Go to file
Wanpeng Qian 3a194eac3c nvmecontrol: fix wrong temperature unit for INTEL SSDs.
Although intel's specification did not tell which unit for Temperature
Statistics (Log Identifier C5h), I believe it is based on Celsius
instead of Kelvin.

here is my P3700 SSDs result(before):

Intel Temperature Log
=====================
Current:                        30 K, -243.15 C, -405.67 F
Overtemp Last Flags             0
Overtemp Lifetime Flags         0
Max Temperature                 53 K, -220.15 C, -364.27 F
Min Temperature                 17 K, -256.15 C, -429.07 F
Max Operating Temperature       63 K, -210.15 C, -346.27 F
Min Operating Temperature       0 K, -273.15 C, -459.67 F
Estimated Temperature Offset:   0 C/K
after apply the patch, result is

Intel Temperature Log
=====================
Current:                        303.15 K, 30 C, 86.00 F
Overtemp Last Flags             0
Overtemp Lifetime Flags         0
Max Temperature                 326.15 K, 53 C, 127.40 F
Min Temperature                 290.15 K, 17 C, 62.60 F
Max Operating Temperature       336.15 K, 63 C, 145.40 F
Min Operating Temperature       273.15 K, 0 C, 32.00 F
Estimated Temperature Offset:   0 C/K
I also compare to smartctl's report. it match very well.

also tested on Intel P3600, it fixed the problem.

Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Reviewed by: imp (added tweak to samsung.c so it still compiles)
Differential Revision: https://reviews.freebsd.org/D32845
2022-11-11 12:15:52 -07:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Attempt to fix and increase robustness of macOS action 2022-06-30 21:03:26 +01:00
bin ls(1): add a -v flag to sort naturally 2022-10-31 00:00:42 +01:00
cddl pkgbase: Put zfs utilities and lib in their own package 2022-10-26 19:46:30 +02:00
contrib rc.sendmail: remove unused script 2022-11-09 16:55:18 +01:00
crypto ssh: update comment text to match upstream 2022-11-09 11:32:47 -05:00
etc mktemp: add -p/--tmpdir argument 2022-10-30 22:55:46 -05:00
gnu libdialog: Bump shared library version to 10. 2021-10-27 09:30:24 -07:00
include include: put includes into -dev packages 2022-11-09 22:20:38 -06:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib lib/libsecureboot: Fix some typos 2022-11-11 10:38:39 -05:00
libexec rtld: add support for the $LIB token 2022-11-11 12:06:30 +02:00
release release(7): Enable zpoolupgrade rc script in ZFS based VM images 2022-11-07 11:47:33 +08:00
rescue rescue: Link libzutil after libzfs. 2022-10-03 16:10:42 -07:00
sbin nvmecontrol: fix wrong temperature unit for INTEL SSDs. 2022-11-11 12:15:52 -07:00
secure caroot: Update VCS instructions 2022-11-07 19:24:09 +08:00
share ddb(4): document some missing commands 2022-11-11 14:25:39 -04:00
stand Sort list of supported features for more easy handling 2022-11-10 09:47:23 +01:00
sys ddb: don't limit pindex output in 'show vmopag' 2022-11-11 14:25:39 -04:00
targets Put OPIE to rest. 2022-10-02 03:37:29 +02:00
tests netpfil tests: add dummynet fq_codel test case 2022-11-11 11:55:59 +01:00
tools stress2: Add SU+J as a test. Save fsck_ffs core dump, if any 2022-11-10 10:12:46 +01:00
usr.bin tcp: account sent/received IP ECN markings independently 2022-11-10 11:35:35 +01:00
usr.sbin bhyve: Cast away const when fetching a config nvlist 2022-11-11 10:02:42 -05:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: move QEMU pkg installation to test script 2022-09-07 13:32:12 -04:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore Update wireguard-tools to 139aac59a5ab7 2022-11-04 22:43:12 -05:00
COPYRIGHT Welcome 2022, update copyrights. 2022-01-01 09:49:49 -07:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Remove myself from bhyve maintenance; ENOTIME. 2021-11-19 07:09:30 +10:00
Makefile Makefile: replace mergemaster references with etcupdate 2022-10-06 20:19:16 +02:00
Makefile.inc1 build: Use rm -fv for BATCH_DELETE_OLD_FILES 2022-10-25 11:18:55 -04:00
Makefile.libcompat Install working pkgconfig .pc files for compat libraries 2022-08-11 23:18:34 +01:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc ObsoleteFiles: add missing '+' 2022-11-10 14:04:54 +01:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTES: document the switch from sendmail to dma 2022-11-07 12:52:20 +01:00
UPDATING UPDATING: correct spearate typo 2022-10-26 14:25:12 -04:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.