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

pqos does not work on AMD Zen2/Rome parts since v23.08 #273

Open
iximeow opened this issue May 10, 2024 · 0 comments
Open

pqos does not work on AMD Zen2/Rome parts since v23.08 #273

iximeow opened this issue May 10, 2024 · 0 comments

Comments

@iximeow
Copy link

iximeow commented May 10, 2024

building and running pqos on a Rome CPU (EPYC 7662 in particular) results in:

DEBUG: Detected core 123, socket 0, NUMAnode 14, L2 ID 59, L3 ID 14, APICID 119
DEBUG: Detected core 124, socket 0, NUMAnode 15, L2 ID 60, L3 ID 15, APICID 121
DEBUG: Detected core 125, socket 0, NUMAnode 15, L2 ID 61, L3 ID 15, APICID 123
DEBUG: Detected core 126, socket 0, NUMAnode 15, L2 ID 62, L3 ID 15, APICID 125
DEBUG: Detected core 127, socket 0, NUMAnode 15, L2 ID 63, L3 ID 15, APICID 127
ERROR: RDMSR failed for reg[0xca0] on lcore 0
ERROR: Error reading SNC information!
ERROR: Error encounter in monitoring discovery!
ERROR: discover_capabilities() error 1
Error initializing PQoS library!

for v23.08 i can build and run pqos without issue, v23.11 and later (including current master) yield the above. this seems to have been the case since SNC support was added; these cores do not support the PQOS_MSR_SNC_CFG MSR and so the attempt to discover SNC support by reading MSR 0xCA0 via msr_read in hw_cap_mon_snc_state errors (linux returns EIO for the pread64).

that error causes an early return with PQOS_RETVAL_ERROR which errors with Error reading SNC information! from the caller hw_cap_mon_discover and onward until pqos exits.

i'd offer a patch, but i'm not immediately sure how to recover and in the face of missing SNC support. for now i'm proceeding with v23.08 to work around this.

@iximeow iximeow changed the title pqos does not work on AMD Zen2/Rome parts v23.08 pqos does not work on AMD Zen2/Rome parts since v23.08 May 10, 2024
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

1 participant