<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/amdsmu, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-05-01T10:24:50Z</updated>
<entry>
<title>amdsmu: Add Krackan Point support</title>
<updated>2026-05-01T10:24:50Z</updated>
<author>
<name>Tom Jones</name>
<email>thj@FreeBSD.org</email>
</author>
<published>2026-04-24T12:47:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9c77fb6aaa366cbabc80ee1b834bcfe4df135491'/>
<id>urn:sha1:9c77fb6aaa366cbabc80ee1b834bcfe4df135491</id>
<content type='text'>
Reviewed by: 	obiwac, emaste
Sponsored by: 	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56619
</content>
</entry>
<entry>
<title>amdsmu: Cezanne support</title>
<updated>2026-03-31T04:48:59Z</updated>
<author>
<name>Aymeric Wibo</name>
<email>obiwac@FreeBSD.org</email>
</author>
<published>2026-02-28T15:43:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=69124109c5a00bb748cd8d3e9ede7291b34b577c'/>
<id>urn:sha1:69124109c5a00bb748cd8d3e9ede7291b34b577c</id>
<content type='text'>
Add support for Cezanne chips.  The only real difference vs
Rembrandt/Phoenix is the idlemask register.

Also simplify getting IP block count by having this straight in struct
amdsmu_product and remove Strix Point from the list for now, as that
doesn't support S0ix and our driver can't handle that.

Reviewed by:	mckusick
Approved by:	mckusick
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55594
</content>
</entry>
<entry>
<title>amdsmu: Sleep entry/exit hints for PMFW</title>
<updated>2026-03-04T15:38:57Z</updated>
<author>
<name>Aymeric Wibo</name>
<email>obiwac@FreeBSD.org</email>
</author>
<published>2025-06-14T15:33:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2c60fce365f4398ff02a86b46e2862905f88fa97'/>
<id>urn:sha1:2c60fce365f4398ff02a86b46e2862905f88fa97</id>
<content type='text'>
amdsmu_suspend() and amdsmu_resume() for sending hints to the AMD SMU
power management firmware (PMFW) that we are entering and exiting
s2idle. We also dump sleep metrics once we tell it we're exiting sleep,
so the relevant metrics are updated.

Register these as acpi_post_dev_suspend and acpi_post_dev_resume
eventhandlers.

Reviewed by:	olce
Approved by:	olce
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D48721
</content>
</entry>
<entry>
<title>amdsmu: Read and dump idlemask</title>
<updated>2025-07-27T13:17:51Z</updated>
<author>
<name>Aymeric Wibo</name>
<email>obiwac@FreeBSD.org</email>
</author>
<published>2025-06-19T04:17:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f2de5a6dd7bb32f09d5ad290307c2533d3071fee'/>
<id>urn:sha1:f2de5a6dd7bb32f09d5ad290307c2533d3071fee</id>
<content type='text'>
Read and dump the SMU's idlemask value in `dev.amdsmu.0.idlemask`
sysctl.

The idlemask is used internally by AMD and its value is not documented
anywhere. This patch exposes it mainly to help AMD diagnose issues with
S0i3 entry on FreeBSD.

Reviewed by:	cem, emaste, kib, mckusick (mentor)
Approved by:	emaste, kib, mckusick (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D51487
</content>
</entry>
<entry>
<title>amdsmu: Expose sysctls for metrics about last sleep</title>
<updated>2025-07-26T22:26:46Z</updated>
<author>
<name>Aymeric Wibo</name>
<email>obiwac@FreeBSD.org</email>
</author>
<published>2025-06-14T15:33:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e4e44f69f963dad9e25d589c18b3e9a279e49249'/>
<id>urn:sha1:e4e44f69f963dad9e25d589c18b3e9a279e49249</id>
<content type='text'>
Get "log" address with the `SMU_MSG_LOG_GETDRAM_ADDR_HI/LO` SMU
commands. From this, we dump &amp; read metrics about residency in various
sleep states (none, S0i2, and S0i3), as well as active durations for
the IP blocks on the CPU during the last sleep. All these metrics are
exposed under the `dev.amdsmu.0.metrics` node.

This is useful for debugging sleep as the residency registers in the
`_LPI` object are not populated on some systems (e.g. AMD Phoenix).

A `dev.amdsmu.0.ip_blocks.XXX` node is also created for each IP block,
with children for the current active state and time spent active during
the last sleep.

Differential Revision: https://reviews.freebsd.org/D48714

Reviewed by:	cem, kib, mckusick
Approved by:	kib, mckusick
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D48714
</content>
</entry>
<entry>
<title>amdsmu: Initial work on a driver for the AMD SMU</title>
<updated>2025-07-26T19:17:06Z</updated>
<author>
<name>Aymeric Wibo</name>
<email>obiwac@FreeBSD.org</email>
</author>
<published>2025-06-14T15:31:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f261b63307fca34f27e4d12384d19cb543b4867a'/>
<id>urn:sha1:f261b63307fca34f27e4d12384d19cb543b4867a</id>
<content type='text'>
Start work on a driver for the AMD SMU (system management unit), which
will eventually be used for getting S0ix statistics (e.g. how long the
CPU has spent in the deepest - S0i3 - sleep state during the last
sleep) as well as letting PMFW (power management firmware, running on
the SMU) know when we intend to enter and exit sleep. It is what's
responsible for actually turning off the VDD line to the CPU.

With this commit, amdsmu is just able to get the SMU's firmware version
on AMD Rembrandt, Phoenix, and Strix Point CPUs.

This is the equivalent to amd-pmc on Linux.

Reviewed by:	cem, kib, mckusick
Approved by:	kib, mckusick
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D48683
</content>
</entry>
</feed>
