<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/amdsmn, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>amdsmn(4), amdtemp(4): Add support for AMD Family 1Ah (Zen5) CPUs</title>
<updated>2025-05-13T15:53:44+00:00</updated>
<author>
<name>Ravi Pokala</name>
<email>rpokala@FreeBSD.org</email>
</author>
<published>2025-05-10T06:26:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f0d1e002689130a8b34c91c80002cc1fce4dd8ae'/>
<id>f0d1e002689130a8b34c91c80002cc1fce4dd8ae</id>
<content type='text'>
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

(cherry picked from commit 2a042fab4f91a525daa6255b69892fb434c62831)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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

(cherry picked from commit 2a042fab4f91a525daa6255b69892fb434c62831)
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn(4), amdtemp(4): add support for Zen 5</title>
<updated>2025-01-19T00:24:58+00:00</updated>
<author>
<name>Simon Wells</name>
<email>swel024@gmail.com</email>
</author>
<published>2025-01-12T11:46:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=15e2065a1ee5b744b7f04d976ecfc31b49504081'/>
<id>15e2065a1ee5b744b7f04d976ecfc31b49504081</id>
<content type='text'>
PR:	284010

(cherry picked from commit a9a71513ccfcb38346c84b006b43d45511d1652c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:	284010

(cherry picked from commit a9a71513ccfcb38346c84b006b43d45511d1652c)
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus</title>
<updated>2025-01-19T00:24:57+00:00</updated>
<author>
<name>Simon Wells</name>
<email>swel024@gmail.com</email>
</author>
<published>2025-01-12T11:45:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6823172ca2c5a3d2ad1a2937046dd5961919f458'/>
<id>6823172ca2c5a3d2ad1a2937046dd5961919f458</id>
<content type='text'>
PR:	284009

(cherry picked from commit 7aa6eeb220d89a3c29eb4f768f258622c3803f46)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:	284009

(cherry picked from commit 7aa6eeb220d89a3c29eb4f768f258622c3803f46)
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn: add support for AMD Family 19h Models 40h-4Fh</title>
<updated>2024-10-20T15:22:46+00:00</updated>
<author>
<name>Matthias Lanter</name>
<email>freebsd@lanter-it.ch</email>
</author>
<published>2024-10-13T13:20:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6bd08ccc9b09ae5da4cb2561244ab57576752cd1'/>
<id>6bd08ccc9b09ae5da4cb2561244ab57576752cd1</id>
<content type='text'>
PR:		281962
MFC after:	2 weeks

(cherry picked from commit a76e28d10f8516a2e796bba3fff4257b150bc259)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		281962
MFC after:	2 weeks

(cherry picked from commit a76e28d10f8516a2e796bba3fff4257b150bc259)
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors</title>
<updated>2024-08-26T05:15:43+00:00</updated>
<author>
<name>Oliver Fromme</name>
<email>olli@FreeBSD.org</email>
</author>
<published>2024-08-23T04:46:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c7d5163a1335a1ff41bee28a6d49c87cdbd36411'/>
<id>c7d5163a1335a1ff41bee28a6d49c87cdbd36411</id>
<content type='text'>
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

(cherry picked from commit ef3f8aa0a0492487ac7db839de078b1913f61b4c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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

(cherry picked from commit ef3f8aa0a0492487ac7db839de078b1913f61b4c)
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn: Use device_set_descf()</title>
<updated>2024-06-27T15:27:41+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-06-05T14:16:22+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b8ddd59d9d166f0712b1739fe342558663eed78f'/>
<id>b8ddd59d9d166f0712b1739fe342558663eed78f</id>
<content type='text'>
No functional change intended.

MFC after:	1 week

(cherry picked from commit 48ef9cff9c2934d8a13eb8624c02050cd8f00595)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No functional change intended.

MFC after:	1 week

(cherry picked from commit 48ef9cff9c2934d8a13eb8624c02050cd8f00595)
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh.</title>
<updated>2024-04-21T03:15:52+00:00</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2024-04-14T07:45:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e4d8fe76c5d4833d2ba5b889b8af3e0d2907a531'/>
<id>e4d8fe76c5d4833d2ba5b889b8af3e0d2907a531</id>
<content type='text'>
Tested on AMD Threadripper 7960X.

PR:		kern/278311
Tested by:	jbo

(cherry picked from commit 51c69c8682e8ab0e5d82ab3d6f2d16419d40bad4)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tested on AMD Threadripper 7960X.

PR:		kern/278311
Tested by:	jbo

(cherry picked from commit 51c69c8682e8ab0e5d82ab3d6f2d16419d40bad4)
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:11+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=95ee2897e98f5d444f26ed2334cc7c439f9c16c6'/>
<id>95ee2897e98f5d444f26ed2334cc7c439f9c16c6</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>amdsmn(4), amdtemp(4): add support for Zen 4</title>
<updated>2023-08-01T21:21:17+00:00</updated>
<author>
<name>Akio Morita</name>
<email>akio.morita@kek.jp</email>
</author>
<published>2023-08-01T20:32:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=323a94afb6236bcec3a07721566aec6f2ea2b209'/>
<id>323a94afb6236bcec3a07721566aec6f2ea2b209</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
