amd_can_assign_pmc() only checks PMC_CAP_PRECISE against the row's
pd_caps, and pmc_allocate() checks the rest against the class, which
has the core counter caps. So the L3, DF and UMC rows accept caps they
don't support, e.g. PMC_CAP_INTERRUPT or PMC_CAP_EDGE. Check all
requested caps against pd_caps.
These rows also accept legacy events, which are core-only, and
amd_allocate_pmc() then builds a core PERF_CTL value for the uncore
control register. Require PMC_F_EV_PMU on them; libpmc always sets it.
Reported by: mhorne
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>