Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164375874
D58468.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
709 B
Referenced Files
None
Subscribers
None
D58468.diff
View Options
diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c
--- a/sys/dev/hwpmc/hwpmc_amd.c
+++ b/sys/dev/hwpmc/hwpmc_amd.c
@@ -403,9 +403,6 @@
if (pd->pd_class != a->pm_class)
return (EINVAL);
- if ((a->pm_flags & PMC_F_EV_PMU) == 0)
- return (EINVAL);
-
caps = pm->pm_caps;
PMCDBG2(MDP, ALL, 1,"amd-allocate ri=%d caps=0x%x", ri, caps);
@@ -418,7 +415,8 @@
((pd->pd_caps & PMC_CAP_PRECISE) == 0))
return (EINVAL);
- if (strlen(pmc_cpuid) != 0) {
+ /* PMC_F_EV_PMU: config comes from pmu-events tables. */
+ if ((a->pm_flags & PMC_F_EV_PMU) != 0) {
config = a->pm_md.pm_amd.pm_amd_config;
if ((config & ~amd_config_mask(amd_pmcdesc[ri].pm_subclass,
caps)) != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 1, 7:10 AM (3 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35712204
Default Alt Text
D58468.diff (709 B)
Attached To
Mode
D58468: hwpmc: fix event allocation on pre-Zen AMD CPUs
Attached
Detach File
Event Timeline
Log In to Comment