Re: [PATCH 1/3] arm64/cpufeature.h: Add macros for a cpu features testing

2015-09-16 Thread Suzuki K. Poulose
On 04/09/15 13:19, Alexander Kuleshov wrote: 2015-09-04 18:00 GMT+06:00 Suzuki K. Poulose : There is generic CPUID feature helper queued for 4.3, which can extract the feature bits cpuid_feature_extract_field(feature, shift) You might want to use it instead. Btw, I have a patch series(waitin

Re: [PATCH 1/3] arm64/cpufeature.h: Add macros for a cpu features testing

2015-09-04 Thread Alexander Kuleshov
2015-09-04 18:00 GMT+06:00 Suzuki K. Poulose : > There is generic CPUID feature helper queued for 4.3, which can extract > the feature bits > > cpuid_feature_extract_field(feature, shift) > > You might want to use it instead. Btw, I have a patch series(waiting for > the merge window, before I post

Re: [PATCH 1/3] arm64/cpufeature.h: Add macros for a cpu features testing

2015-09-04 Thread Suzuki K. Poulose
On 03/09/15 19:11, Alexander Kuleshov wrote: This patch provides a couple of macros for the testing of processor features (crypto and FP/SIMD) like support of SHA1, AES instructions, support for FPU and etc. There is already a couple of places in the arch/arm64/kernel where these processor featur

Re: [PATCH 1/3] arm64/cpufeature.h: Add macros for a cpu features testing

2015-09-04 Thread Catalin Marinas
On Fri, Sep 04, 2015 at 12:11:51AM +0600, Alexander Kuleshov wrote: > --- a/arch/arm64/include/asm/cpufeature.h > +++ b/arch/arm64/include/asm/cpufeature.h > @@ -28,7 +28,50 @@ > > #define ARM64_NCAPS 4 > > +/* > + * ID_AA64ISAR0_EL1 AES, bits [7:4] > + */ > +#define I