Some PMU controllers are standalone and not bound to CPU. So classes of such controllers can be optional and in case when optional class in the middle of machine-dependent class list it must be skipped.
Sponsored By: Ampere Computing
Differential D32316
Support of optional PMC classes. ray on Oct 5 2021, 2:07 PM. Authored by Tags Referenced Files
Details Some PMU controllers are standalone and not bound to CPU. So classes of such controllers can be optional and in case when optional class in the middle of machine-dependent class list it must be skipped. Sponsored By: Ampere Computing
Diff Detail
Event TimelineComment Actions It seems to me that only the changes to pmc_arm64_initialize() should be necessary, because it handles optional classes in the same way that pmc_intel_initialize() does, by passing the correct nclasses value to pmc_mdep_alloc().
Comment Actions Problem here is in static machdep class numbers. If classes will be initialized in incorrect order, adjusted ri will be incorrect. So that modification may save some time on debugging such issue for new optional classes with just little time in hwpmc(4) init. Comment Actions Ahh right, so it handles the case where you have a dmc620 but not a cmn600. This looks good to me then. Comment Actions Fortunately I did not execute your assumption :)
|