Open jdziat opened 10 months ago
Hi,
Esmi library needs amd_hsmp.h header file. This header file can be taken from https://github.com/amd/amd_hsmp/ or from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/include/uapi/asm/amd_hsmp.h?h=v6.8-rc3.
If the header file is old and the esmi library is new, this kind of errors will be seen. Please copy https://github.com/amd/amd_hsmp/blob/master/amd_hsmp.h to /usr/include/asm/ or /usr/include/x86_64-linux-gnu/asm/ path in your system and then compile the esmi library,
Also clone the latest amd_hsmp/ module, compile and insert this module to get the new features(from modinfo above, version is 1.0, latest version is 2.0).
I'm getting the below error when trying to build the library:
I've compiled and loaded the amd_hsmp and amd_energy modules as well
modinfo: amd_hsmp
modinfo: amd_energy