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

Fix PMU for UNC_CLOCK.SOCKET on BDW, HSW, SKL #177

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

captain5050
Copy link
Contributor

The PMU uncore_clock isn't present on Skylake and earlier machines. The event is present on cbox_0 (note, the suffix is included to avoid multiple cbox PMUs being added together).

Note, are the event encodings for BDW/HDW/SKL cbox_0 correct in this context? The json shows:
"EventCode": "0x0",
"UMask": "0x01",
but this maybe should be "event=0xff,umask=0x00". As uncore_clock isn't present on these models perf currently doesn't report this event.

The PMU uncore_clock isn't present on Skylake and earlier
machines. The event is present on cbox_0 (note, the suffix is included
to avoid multiple cbox PMUs being added together).
@captain5050 captain5050 requested a review from kliang2 as a code owner May 8, 2024 17:06
@captain5050 captain5050 marked this pull request as draft May 8, 2024 17:07
@captain5050 captain5050 marked this pull request as ready for review May 16, 2024 17:04
@kliang2
Copy link
Contributor

kliang2 commented May 23, 2024

The PMU uncore_clock isn't present on Skylake and earlier machines. The event is present on cbox_0 (note, the suffix is included to avoid multiple cbox PMUs being added together).

Note, are the event encodings for BDW/HDW/SKL cbox_0 correct in this context? The json shows: "EventCode": "0x0", "UMask": "0x01", but this maybe should be "event=0xff,umask=0x00". As uncore_clock isn't present on these models perf currently doesn't report this event.

Yes, it's INTEL_UNCORE_EVENT_DESC(clockticks, "event=0xff,umask=0x00"), in the uncore driver.

@kliang2 kliang2 merged commit 48a621d into intel:main May 23, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants