RE: [PATCH v11 1/4] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-11 Thread Justin He (Arm Technology China)
foundation.org>; hejia...@gmail.com; Kaly Xin (Arm Technology China) > ; nd > Subject: Re: [PATCH v11 1/4] arm64: cpufeature: introduce helper > cpu_has_hw_af() > > On Fri, Oct 11, 2019 at 01:16:36AM +, Justin He (Arm Technology China) > wrote: > > From: Catalin

Re: [PATCH v11 1/4] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-11 Thread Catalin Marinas
On Fri, Oct 11, 2019 at 01:16:36AM +, Justin He (Arm Technology China) wrote: > From: Catalin Marinas > > On Wed, Oct 09, 2019 at 04:42:43PM +0800, Jia He wrote: > > > + u64 mmfr1 = read_cpuid(ID_AA64MMFR1_EL1); > > > + > > > + return

RE: [PATCH v11 1/4] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-10 Thread Justin He (Arm Technology China)
ker...@lists.infradead.org; linux-kernel@vger.kernel.org; linux- > m...@kvack.org; Suzuki Poulose ; Borislav > Petkov ; H. Peter Anvin ; x...@kernel.org; > Thomas Gleixner ; Andrew Morton foundation.org>; hejia...@gmail.com; Kaly Xin (Arm Technology China) > ; nd > Subject: Re:

Re: [PATCH v11 1/4] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-10 Thread Catalin Marinas
On Wed, Oct 09, 2019 at 04:42:43PM +0800, Jia He wrote: > We unconditionally set the HW_AFDBM capability and only enable it on > CPUs which really have the feature. But sometimes we need to know > whether this cpu has the capability of HW AF. So decouple AF from > DBM by a new helper

[PATCH v11 1/4] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-10-09 Thread Jia He
We unconditionally set the HW_AFDBM capability and only enable it on CPUs which really have the feature. But sometimes we need to know whether this cpu has the capability of HW AF. So decouple AF from DBM by a new helper cpu_has_hw_af(). Signed-off-by: Jia He Suggested-by: Suzuki Poulose