Re: [PATCH v5 05/16] x86/pmu: enable Hygon support to PMU infrastructure

2018-09-04 Thread Pu Wen
On 2018/9/4 18:48, Borislav Petkov wrote: On Wed, Aug 29, 2018 at 08:43:54PM +0800, Pu Wen wrote: Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the initialization flow for it just call amd_pmu_init() and change PMU name That sentence reads funny. Will rewrite this senten

Re: [PATCH v5 05/16] x86/pmu: enable Hygon support to PMU infrastructure

2018-09-04 Thread Borislav Petkov
On Wed, Aug 29, 2018 at 08:43:54PM +0800, Pu Wen wrote: > Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the > initialization flow for it just call amd_pmu_init() and change PMU name That sentence reads funny. > to "HYGON". To share AMD's flow, add code check for Hygon family

[PATCH v5 05/16] x86/pmu: enable Hygon support to PMU infrastructure

2018-08-29 Thread Pu Wen
Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the initialization flow for it just call amd_pmu_init() and change PMU name to "HYGON". To share AMD's flow, add code check for Hygon family ID 18h to run the code path of AMD family 17h in core/uncore functions. Also it returns th