Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] error: ‘HSMP_GET_METRIC_TABLE_VER’ undeclared #9

Open
jdziat opened this issue Jan 4, 2024 · 1 comment
Open

[ISSUE] error: ‘HSMP_GET_METRIC_TABLE_VER’ undeclared #9

jdziat opened this issue Jan 4, 2024 · 1 comment

Comments

@jdziat
Copy link

jdziat commented Jan 4, 2024

I'm getting the below error when trying to build the library:

error: ‘HSMP_GET_METRIC_TABLE_VER’ undeclared (first use in this function); did you mean ‘HSMP_METRICTABLE_PATH’?
 1598 |         msg.msg_id      = HSMP_GET_METRIC_TABLE_VER;

I've compiled and loaded the amd_hsmp and amd_energy modules as well

modinfo: amd_hsmp

filename:       /lib/modules/6.5.11-4-pve/updates/amd_hsmp.ko
version:        1.0
description:    AMD Host System Management Port driver
license:        GPL v2
srcversion:     2775DF333C61F63ABFB5F6D
depends:        
retpoline:      Y
name:           amd_hsmp
vermagic:       6.5.11-4-pve SMP preempt mod_unload modversions 
parm:           raw_intf:Enable raw HSMP interface (int)
parm:           f17h_support:Support AMD Family 17h (int)

modinfo: amd_energy

filename:       /lib/modules/6.5.11-4-pve/updates/amd_energy.ko
license:        GPL
author:         Naveen Krishna Chatradhi <nchatrad@amd.com>
description:    Driver for AMD Energy reporting from RAPL MSR via HWMON interface
version:        1.0
srcversion:     43DD6EF96371E1A21AA0644
depends:        
retpoline:      Y
name:           amd_energy
vermagic:       6.5.11-4-pve SMP preempt mod_unload modversions 
@sumachidanand
Copy link
Contributor

sumachidanand commented Feb 7, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants