History log of /src/sys/dev/amdtemp/amdtemp.c (Results 1 – 25 of 177)
Revision Date Author Comments
# 85d6c86f 29-Oct-2025 Gordon Bergling <gbe@FreeBSD.org>

amdtemp(4): Fix typo in a sysctl description

- s/temparature/temperature/

MFC after: 5 days


# b670c9ba 11-Jun-2025 Ahmad Khalifa <vexeduxr@FreeBSD.org>

newbus: replace leftover device unit wildcards

Reviewed by: imp, jhb
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D50913


# 2a042fab 10-May-2025 Ravi Pokala <rpokala@FreeBSD.org>

amdsmn(4), amdtemp(4): Add support for AMD Family 1Ah (Zen5) CPUs

I found the '1AH_MxxH_ROOT' PCI device IDs in the Linux "AMD K8
Northbridge" driver [1][5]. Since Family 19h (Zen3, Zen4) uses the s

amdsmn(4), amdtemp(4): Add support for AMD Family 1Ah (Zen5) CPUs

I found the '1AH_MxxH_ROOT' PCI device IDs in the Linux "AMD K8
Northbridge" driver [1][5]. Since Family 19h (Zen3, Zen4) uses the same
registers as Family 17h (Zen1, Zen2), I tried using those same registers
for Family 1Ah (Zen5) as well, and they worked.

I pulled the 1Ah model ranges from Linux as well [2][3][4][6].

Added some additional logging under 'bootverbose', and used a local
variable and macro for the stepping, rather than repeatedly using the
mask directly.

Consistently report the CPUID (family, model, stepping) using two,
zero-padded, un-prefixed, uppercase nybbles, with an 'h' suffix. This is
the format used in documentation and in Linux.

My own testing with various models of Zen4 EPYC 9xx4 ("Genoa") shows
that their CPUID models are in the range 0x10 .. 0x1f. Similar testing
with various models of Zen5 EPYC 9xx5 ("Turin") shows that their CPUID
models are in the range 0x00 ... 0x2f.

[1] 2023-08-10: https://github.com/torvalds/linux/commit/c640166
[2] 2024-01-23: https://github.com/torvalds/linux/commit/3e4147f
[3] 2024-01-25: https://github.com/torvalds/linux/commit/b9328fd
[4] 2024-04-24: https://github.com/torvalds/linux/commit/2718a7f
[5] 2024-07-28: https://github.com/torvalds/linux/commit/59c3400
[6] 2024-07-30: https://github.com/torvalds/linux/commit/bf5641e

Sponsored by: Vdura
MFC after: 3 days
Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D50278

show more ...


# a9a71513 12-Jan-2025 Simon Wells <swel024@gmail.com>

amdsmn(4), amdtemp(4): add support for Zen 5

Zen 5 support, tested on Ryzen 7 9700X

PR: 284010
MFC after: 1 week


# 7aa6eeb2 12-Jan-2025 Simon Wells <swel024@gmail.com>

amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus

Tested on AMD 5700G

PR: 284009
MFC after: 1 week


# ecbe99e1 13-Oct-2024 Matthias Lanter <freebsd@lanter-it.ch>

amdtemp: add support for AMD Family 19h Models 40h-4Fh

PR: 281962
MFC after: 2 weeks


# ef3f8aa0 23-Aug-2024 Oliver Fromme <olli@FreeBSD.org>

amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors

Adds support for AMD Ryzen 7 "Phoenix" processors (family 0x19,
model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers. This

amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors

Adds support for AMD Ryzen 7 "Phoenix" processors (family 0x19,
model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers. This
enables temperature readings of these CPUs via sysctl.

The sensors function identically to those for the "Raphael" processors
(model 0x60-0x6f); only the PCI device ID differs.

PR: kern/280942
Relnotes: yes
MFC after: 3 days

show more ...


# 5b56413d 25-Jul-2024 Warner Losh <imp@FreeBSD.org>

newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY

Sponsored by: Netflix


# 51c69c86 14-Apr-2024 Xin LI <delphij@FreeBSD.org>

amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh.

Tested on AMD Threadripper 7960X.

PR: kern/278311
Tested by: jbo
MFC after: 1 week


# 1587a9db 29-Nov-2023 John Baldwin <jhb@FreeBSD.org>

pci_cfgreg: Add a PCI domain argument to the low-level register API

This commit changes the API of pci_cfgreg(read|write) to add a domain
argument (referred to as a segment in ACPI parlance) (note t

pci_cfgreg: Add a PCI domain argument to the low-level register API

This commit changes the API of pci_cfgreg(read|write) to add a domain
argument (referred to as a segment in ACPI parlance) (note that this
is not the same as a NUMA domain, but something PCI-specific). This
does not yet enable access to domains other than 0, but updates the
API to support domains.

Places that use hard-coded bus/slot/function addresses have been
updated to hardcode a domain of 0. A few places that have the PCI
domain (segment) available such as the acpi_pcib_acpi.c Host-PCI
bridge driver pass the PCI domain.

The hpt27xx(4) and hptnr(4) drivers fail to attach to a device not on
domain 0 since they provide APIs to their binary blobs that only
permit bus/slot/function addressing.

The x86 non-ACPI PCI bus drivers all hardcode a domain of 0 as they do
not support multiple domains.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D42827

show more ...


# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remov

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix

show more ...


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 323a94af 01-Aug-2023 Akio Morita <akio.morita@kek.jp>

amdsmn(4), amdtemp(4): add support for Zen 4

Zen 4 support, tested on Ryzen 9 7900

Reviewed by: imp (previous version), mhorne
Approved by: mhorne
Obtained from: http://jyurai.ddo.jp/~amorita/diary

amdsmn(4), amdtemp(4): add support for Zen 4

Zen 4 support, tested on Ryzen 9 7900

Reviewed by: imp (previous version), mhorne
Approved by: mhorne
Obtained from: http://jyurai.ddo.jp/~amorita/diary/?date=20221102#p01
Differential Revision: https://reviews.freebsd.org/D41049

show more ...


# c1cbabe8 17-Jun-2023 Val Packett <val@packett.cool>

amdtemp: Fix missing 49 degree offset on current EPYC CPUs

On an EPYC 7313P, the temperature reported by amdtemp was off, because
the offset was not applied. Turns out it needs to be applied with on

amdtemp: Fix missing 49 degree offset on current EPYC CPUs

On an EPYC 7313P, the temperature reported by amdtemp was off, because
the offset was not applied. Turns out it needs to be applied with one
more condition: https://lkml.org/lkml/2023/4/13/1095

Reviewed by: mhorne
Tested by: mike.jakubik@gmail.com
MFC after: 1 week
Sponsored by: https://www.patreon.com/valpackett
Pull Request: https://github.com/freebsd/freebsd-src/pull/754

show more ...


# 4d846d26 10-May-2023 Warner Losh <imp@FreeBSD.org>

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of

spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD

The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with: pfg
MFC After: 3 days
Sponsored by: Netflix

show more ...


# 83a273ef 09-May-2022 John Baldwin <jhb@FreeBSD.org>

dev/amd*: Remove unused devclass arguments to DRIVER_MODULE.


# 6c101ed7 26-Dec-2021 Alexander Motin <mav@FreeBSD.org>

amdtemp: Remove CTLFLAG_NEEDGIANT from sysctls.

It seems to be needed only to serialize very old K8 registers access.
Introduce separate lock for that and remove Giant dependency.

MFC after: 2 weeks


# b9723c5b 09-Dec-2021 Mateusz Guzik <mjg@FreeBSD.org>

amdtemp: plug set-but-not-used vars

Sponsored by: Rubicon Communications, LLC ("Netgate")


# db0ac6de 02-Dec-2021 Cy Schubert <cy@FreeBSD.org>

Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"

This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversing
changes made to a10253cffea84c0c980a36ba6776b00ed96c3e3b.

A mism

Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"

This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversing
changes made to a10253cffea84c0c980a36ba6776b00ed96c3e3b.

A mismerge of a merge to catch up to main resulted in files being
committed which should not have been.

show more ...


# 266f97b5 02-Dec-2021 Cy Schubert <cy@FreeBSD.org>

wpa: Import wpa_supplicant/hostapd commit 14ab4a816

This is the November update to vendor/wpa committed upstream 2021-11-26.

MFC after: 1 month


# 94a72c5a 01-Dec-2021 Alexander Motin <mav@FreeBSD.org>

amdtemp: Revert related part of "Make CPU children" commit.

While it still looks like previous code worked by coincidence, this
change broke things even more instead of fixing.

Reported by: avg@
MF

amdtemp: Revert related part of "Make CPU children" commit.

While it still looks like previous code worked by coincidence, this
change broke things even more instead of fixing.

Reported by: avg@
MFC after: 1 week

show more ...


# d3a8f98a 25-Sep-2021 Alexander Motin <mav@FreeBSD.org>

Make CPU children explicitly share parent unit numbers.

Before this device unit number match was coincidental and broke if I
disabled some CPU device(s). Aside of cosmetics, for some drivers
(may b

Make CPU children explicitly share parent unit numbers.

Before this device unit number match was coincidental and broke if I
disabled some CPU device(s). Aside of cosmetics, for some drivers
(may be considered broken) it caused talking to wrong CPUs.

show more ...


# b499ab87 12-Dec-2020 Conrad Meyer <cem@FreeBSD.org>

amdtemp(4): Add missing Family 17h models

Add missing model numbers M20h (Dali, Zen1), M60H (Renoir, Zen2), and
M90H (Van Gogh, Zen2).

Submitted by: Greg V <greg AT unrelenting.technology>


# ea6189d3 12-Dec-2020 Conrad Meyer <cem@FreeBSD.org>

amdsmn(4), amdtemp(4): add support for Family 19h (Zen 3)

Zen 3 "Vermeer" support, tested on Ryzen 9 5950X.

Model numbers from https://en.wikichip.org/wiki/amd/cpuid "Extended
Model" column.

Submi

amdsmn(4), amdtemp(4): add support for Family 19h (Zen 3)

Zen 3 "Vermeer" support, tested on Ryzen 9 5950X.

Model numbers from https://en.wikichip.org/wiki/amd/cpuid "Extended
Model" column.

Submitted by: Greg V <greg AT unrelenting.technology>
Differential Revision: https://reviews.freebsd.org/D27552

show more ...


# 5b505170 25-Sep-2020 Conrad Meyer <cem@FreeBSD.org>

amdtemp(4), amdsmn(4): Attach to Ryzen 4000 APU (Zen 2, "Renoir")

PR: 249864
Reported by: Florian Millet <florian.millet AT laposte.net>
Tested by: Florian Millet


12345678