platform/x86/amd/hsmp: Add support for HSMP protocol version 7 messages
authorSuma Hegde <suma.hegde@amd.com>
Mon, 18 Nov 2024 10:27:52 +0000 (10:27 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 2 Dec 2024 17:20:14 +0000 (19:20 +0200)
commit836d0d7107e53e6479b60d32fb73bd5f7813e5d1
tree2edb6fb11af831c666a8ba3751980c84512b87fb
parent0ffafd4a3b39b341a4d7d73df34ab3b2c07a26c0
platform/x86/amd/hsmp: Add support for HSMP protocol version 7 messages

Following new HSMP messages are available on family 0x1A, model 0x00-0x1F
platforms with protocol version 7. Add support for them in the driver.
- SetXgmiPstateRange(26h)
- CpuRailIsoFreqPolicy(27h)
- DfcEnable(28h)
- GetRaplUnit(30h)
- GetRaplCoreCounter(31h)
- GetRaplPackageCounter(32h)

Also update HSMP message PwrEfficiencyModeSelection-21h. This message is
updated to include GET option in recent firmware.

Signed-off-by: Suma Hegde <suma.hegde@amd.com>
Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Link: https://lore.kernel.org/r/20241118102752.11703-1-suma.hegde@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
arch/x86/include/uapi/asm/amd_hsmp.h
drivers/platform/x86/amd/hsmp/hsmp.c