AMD System Management Unit

From PS4 Developer wiki
Revision as of 23:10, 27 October 2024 by CelesteBlue (talk | contribs)
Jump to navigation Jump to search

AMD System Management Unit (SMU) is a thermal and electric management unit found in modern AMD x86 processors. AMD SMU must not be mistaken with AMD SAMU.

The system management unit (SMU) is a subcomponent of the northbridge that is responsible for a variety of system and power management tasks during boot and runtime. The SMU contains a microcontroller to assist... As the Northbridge is part of the CPU, the SMU is a processor inside a processor (or SoC) so it was named Matroshka processor by Rudolf Marek.

The system management unit (SMU) is tasked with the job of continuously sampling sensory data and making rapid corrections to various circuits on the chip. One such example is the control of the boost circuit. Additional tasks include voltage level control which is supplied as targets to the power supply monitors (PSMs), C-state boosts, thermal management ensuring the chip does not exceed the specifications temperatures, and electrical design current management which ensures the current draw does not exceed the specifications of the external voltage rails.

See the video of Rudolf Marek explaining AMD x86 SMU firmware analysis at 31C3. See also his slides.

PS4 AMD SMU revision

Despite continuing claims from some that the PS4 SoC must contain a higher-end Kaveri/Steamroller-class CPU, the tiny x86 cores implemented here are clearly based on Jaguar/Kabini. Each core is roughly 3.1 millimeters square - exactly the size AMD gave for that chip. The large (rather plaid) boxes in each quad-core arrangement are the L2 cache. Memory I/O wraps all three sides of the die, which makes sense - the SoC itself uses a GPU-style memory layout. It is not clear from this diagram whether HSA is implemented on the chip or not, though it might be possible to identify the IOMMU unit that HSA requires with a close analysis.

PS4 AMD SMU firmware

In the PS4 BIOS, there is the AMD Generic Encapsulated Software Architecture (AGESA) firmware, which contains all AMD silicon initialization including the SMU firmware.

PS4 AMD SMU HMAC-SHA1 Hashes

Remind that HMAC-SHA1 digests are 20-byte long.

1.00 -> 1.02:
(ES32)
0xb92864eb
0xe65fe8c5
0x1b916908
0x477e5fb6
0x3ad5b9ed

1.03 -> 2.04:
(ES32)
0xa372c000
0x6bc78c4f
0x0f9e5666
0x16fca16f
0xce341069

2.50 -> ?.??:
(ES32) (key maybe changed as this hash is not confirmed)
0xa11c2a0f
0x550ae4ec
0xee933a2e
0x7502373f
0xf64a074a