-
Notifications
You must be signed in to change notification settings - Fork 230
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
AMD family 25, model 68 support missing (e.g. AMD Ryzen 7 PRO 6850U) #635
Comments
Unfortunately, I cannot find matching documentation at AMD TechDocs for family 19h model 44h. Getting the information out of the kernel is possible but time-consuming. |
It's a huge pain, PPR docs for the last 3 (actually 4 now) generations are missing and AMD support just says they will be released "later". In the meantime I do have some time to give it a shot myself (model 75h personally). There is the BKDG), but lots of events are missing from that so I guess the files in perf are the reference? Is there some method or do you just check all event numbers and bitmasks one by one, and how likely is it that big changes are needed? Because just changing the model number in Thank you :) |
Update: seems like there are at least some differences between model 75h and the Zen4 counter mappings in likwid (don't know about 68h), and even a good number of e.g. cache events in |
You mean there are some wrong configs in LIKWID regarding Model 75H? Could you point out a few so I have a starting point? As far as I know the code for |
That was a misleading way to phrase it, I'm not sure LIKWID is doing anything wrong actually. perf has the same L3 lookup state events as LIKWID, but they are not shown in
|
The important part in the linked JSON file is: https://github.com/torvalds/linux/blob/9852d85ec9d492ebef56dc5f229416c925758edc/tools/perf/pmu-events/arch/x86/amdzen4/cache.json#L658 The |
Although when using the marker API with |
Make sure you rebuild LIKWID completely ( If I understand the capabilities system correctly, you have to use |
Hmm, every binary (and What's your policy for adding in more supported models in |
As I said, I do not have much experience with capabilities. All my assumptions might be wrong. If PMC works, it sounds like a different issue. Can you please provide the output of a run with The whole topology lookup code was already there when I took over the project. In the meantime, it got quite fat, correct. For some architecture, we create a macro like |
https://gist.github.com/tnibler/ffdb00f27dfdfaae4522448934053ae1 In order: CPMC, marker (broken) - CPMC no marker (works, just measures the crash b/c run without marker) - PMC with marker (works). |
And the library used by the application is the one you installed fresh? Or is it linked (RPATH?) with another version? The PMC MarkerAPI run uses perf_event internally (first |
It's definitely not linking to anything else, there's only the freshly built one available.
I guess that's the problem, but little we can do about that right :/ |
There has to be second installation/build because one LIKWID build supports either |
This is how I'm building it, chaning
|
If only this installation is present, For |
Right, sorry forgot about that. With the accessdaemon the trouble is accessing the MSRs. I don't think I ever managed to get it working with any combination of kernel command line, setcap and all that. But I don't have the time to muck around further with my kernel right now unfortunately, so I'm just falling back to an intel machine for the time of my thesis. |
Why do you need support for this specific architecture?
This CPU is a Zen3+ model, which is used for plenty of recent thinkpads.
Which architecture model, family and further information? CPU
Is the documentation of the hardware counters publicly available?
Linux perf is working fine, so I assume yes.
Are there already any usable tools (commercial or open-source)?
If you need any more information, I am happy to provide it.
Thank you!
The text was updated successfully, but these errors were encountered: