[SWDEV-560044]: [AMDSMI][CPU] Update AMDSMI as per latest ESMI Driver (#763)

[AMDSMI][CPU] Update AMDSMI as per latest ESMI Driver,
1) hsmp_acpi
2) amd_hsmp
3) hsmp_common

Signed-off-by: Muthusamy Ramalingam <muthusamy.ramalingam@amd.com>
Signed-off-by: Arif, Maisam <Maisam.Arif@amd.com>
Co-authored-by: ssaka_amdeng <SitharamMurthy.Saka@amd.com>
This commit is contained in:
Ramalingam, Muthusamy
2025-11-18 01:15:43 +05:30
committed by GitHub
parent 05ea00dcc4
commit b4b3539631
8 changed files with 48 additions and 36 deletions
+4 -3
View File
@@ -98,12 +98,13 @@ void TestBase::SetUp(uint64_t init_flags) {
}
}
// Returns true if amd_hsmp is found in the list of initialized modules
bool found_amd_hsmp = CheckModule("/sys/module/amd_hsmp/initstate", "live");
// Returns true if amd_hsmp or hsmp_acpi is found in the list of initialized modules
struct stat buffer;
bool found_amd_hsmp = (stat("/dev/hsmp", &buffer)==0);
if (!found_amd_hsmp) {
IF_VERB(STANDARD) {
std::cerr << "ERROR: Unable to get devices, driver not initialized (amd_hsmp not found in modules)" << std::endl;
std::cerr << "ERROR: Unable to detect any CPU devices, check amd_hsmp version and module status (sudo modprobe amd_hsmp)" << std::endl;
std::cerr << "ERROR: Unable to detect any CPU devices, check amd_hsmp (or) hsmp_acpi version and module status (sudo modprobe amd_hsmp (or) sudo modprobe hsmp_acpi)" << std::endl;
}
}