Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1379100 > unrolled thread
| Started by | Will Deacon <will.deacon@arm.com> |
|---|---|
| First post | 2016-04-14 18:50 +0200 |
| Last post | 2016-04-14 19:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 5/7] arm64: cpufeature: Track 32bit EL0 support Will Deacon <will.deacon@arm.com> - 2016-04-14 18:50 +0200
Re: [PATCH v3 5/7] arm64: cpufeature: Track 32bit EL0 support Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2016-04-14 19:00 +0200
| From | Will Deacon <will.deacon@arm.com> |
|---|---|
| Date | 2016-04-14 18:50 +0200 |
| Subject | Re: [PATCH v3 5/7] arm64: cpufeature: Track 32bit EL0 support |
| Message-ID | <rnSCT-4Y2-37@gated-at.bofh.it> |
On Thu, Mar 31, 2016 at 06:27:33PM +0100, Suzuki K Poulose wrote:
> Add cpu_hwcap bit for keeping track of the support for 32bit EL0.
>
> Tested-by: Yury Norov <ynorov@caviumnetworks.com>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
> ---
> arch/arm64/include/asm/cpufeature.h | 8 +++++++-
> arch/arm64/kernel/cpufeature.c | 9 +++++++++
> 2 files changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h
> index 7f64285..ca8fb4b 100644
> --- a/arch/arm64/include/asm/cpufeature.h
> +++ b/arch/arm64/include/asm/cpufeature.h
> @@ -35,8 +35,9 @@
> #define ARM64_ALT_PAN_NOT_UAO 10
> #define ARM64_HAS_VIRT_HOST_EXTN 11
> #define ARM64_WORKAROUND_CAVIUM_27456 12
> +#define ARM64_HAS_32BIT_EL0 13
>
> -#define ARM64_NCAPS 13
> +#define ARM64_NCAPS 14
>
> #ifndef __ASSEMBLY__
>
> @@ -192,6 +193,11 @@ static inline bool cpu_supports_mixed_endian_el0(void)
> return id_aa64mmfr0_mixed_endian_el0(read_cpuid(ID_AA64MMFR0_EL1));
> }
>
> +static inline bool system_supports_32bit_el0(void)
> +{
> + return cpus_have_cap(ARM64_HAS_32BIT_EL0);
> +}
> +
> static inline bool system_supports_mixed_endian_el0(void)
> {
> return id_aa64mmfr0_mixed_endian_el0(read_system_reg(SYS_ID_AA64MMFR0_EL1));
> diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
> index cfc0cfd..739314b 100644
> --- a/arch/arm64/kernel/cpufeature.c
> +++ b/arch/arm64/kernel/cpufeature.c
> @@ -733,6 +733,15 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
> .capability = ARM64_HAS_VIRT_HOST_EXTN,
> .matches = runs_at_el2,
> },
> + {
> + .desc = "32bit EL0 Support",
Nit: missing hyphen (32-bit).
Will
[toc] | [next] | [standalone]
| From | Suzuki K Poulose <Suzuki.Poulose@arm.com> |
|---|---|
| Date | 2016-04-14 19:00 +0200 |
| Message-ID | <rnSMy-51D-21@gated-at.bofh.it> |
| In reply to | #1379100 |
On 14/04/16 17:43, Will Deacon wrote:
> On Thu, Mar 31, 2016 at 06:27:33PM +0100, Suzuki K Poulose wrote:
>> Add cpu_hwcap bit for keeping track of the support for 32bit EL0.
>>
>> return id_aa64mmfr0_mixed_endian_el0(read_system_reg(SYS_ID_AA64MMFR0_EL1));
>> diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
>> index cfc0cfd..739314b 100644
>> --- a/arch/arm64/kernel/cpufeature.c
>> +++ b/arch/arm64/kernel/cpufeature.c
>> @@ -733,6 +733,15 @@ static const struct arm64_cpu_capabilities arm64_features[] = {
>> .capability = ARM64_HAS_VIRT_HOST_EXTN,
>> .matches = runs_at_el2,
>> },
>> + {
>> + .desc = "32bit EL0 Support",
>
> Nit: missing hyphen (32-bit).
OK, can change it.
Suzuki
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web