Loading
perf/x86/uncore: Create L3 event strictly to the CPU vendor
hygon inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9OYEP CVE: NA --------------------------- In function amd_uncore_l3_ctx_init(), there is already a family check existed before the part Hygon added in commit 26559114 ("perf/x86/uncore: Add L3 PMU support for Hygon family 18h model 6h"), and it will take effect for Hygon which is not expected, otherwise the following process will produce error messages as follow: "amd uncore: 4 HYGON amd df counters detected" "sysfs: cannot create duplicate filename '/devices/amd 13/format/event'" So restrict the family check to the specific CPU vendor. Fixes: 26559114 ("perf/x86/uncore: Add L3 PMU support for Hygon family 18h model 6h") Signed-off-by:Pu Wen <puwen@hygon.cn>