linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: advertise availability of CRC and crypto instructions
@ 2013-12-16 21:04 Ard Biesheuvel
  2013-12-16 21:04 ` [PATCH 1/4] arm64: drop redundant macros from read_cpuid() Ard Biesheuvel
                   ` (4 more replies)
  0 siblings, 5 replies; 37+ messages in thread
From: Ard Biesheuvel @ 2013-12-16 21:04 UTC (permalink / raw)
  To: linux-arm-kernel

This series is an expansion of the patch posted by Steve Capper about 6 weeks
ago that allocates hwcaps bits for CRC and Crypto Extensions instructions so
userland can discover whether the current CPU has any of those capabilities.

Patch #1 is a cleanup patch for read_cpuid(), which allowed me to skip adding
yet another #define to asm/cputype.h (for ID_ISAR5_EL1)

Patch #2 is Steve's original patch, but slightly tweaked because hwcaps bit 2
has been allocated for something else in the mean time.

Patch #3 allocates the capability bits in the arch/arm tree. This is necessary
because 32-bit ARM binaries can execute both under ARM and under arm64 kernels,
so there should be agreement about the meaning of feature bits, even if those
features don't actually exist on systems covered by the arch/arm tree.

@Russell: if this looks ok to you, could you please indicate whether you prefer
to take this patch separately, or ack it and let it be merged as part of the
series.

Patch #4 advertises the CRC and Crypto Extensions to 32-bit binaries running
under an arm64 kernel.

Ard Biesheuvel (3):
  arm64: drop redundant macros from read_cpuid()
  ARM: allocate hwcaps bits for v8 crypto extensions
  arm64: add 32-bit compat hwcaps for v8 crypto extensions

Steve Capper (1):
  arm64: Add hwcaps for crypto and CRC32 extensions.

 arch/arm/include/uapi/asm/hwcap.h   |  5 +++
 arch/arm/kernel/setup.c             |  5 +++
 arch/arm64/include/asm/cputype.h    | 18 +++-------
 arch/arm64/include/asm/hwcap.h      |  6 ++++
 arch/arm64/include/uapi/asm/hwcap.h |  6 +++-
 arch/arm64/kernel/setup.c           | 69 +++++++++++++++++++++++++++++++++++++
 6 files changed, 94 insertions(+), 15 deletions(-)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2013-12-20 11:27 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-16 21:04 [PATCH 0/4] arm64: advertise availability of CRC and crypto instructions Ard Biesheuvel
2013-12-16 21:04 ` [PATCH 1/4] arm64: drop redundant macros from read_cpuid() Ard Biesheuvel
2013-12-17 12:04   ` Catalin Marinas
2013-12-17 12:10     ` Will Deacon
2013-12-17 12:12       ` Catalin Marinas
2013-12-16 21:04 ` [PATCH 2/4] arm64: Add hwcaps for crypto and CRC32 extensions Ard Biesheuvel
2013-12-17 12:08   ` Catalin Marinas
2013-12-17 12:11     ` Catalin Marinas
2013-12-16 21:04 ` [PATCH 3/4] ARM: allocate hwcaps bits for v8 crypto extensions Ard Biesheuvel
2013-12-16 21:04 ` [PATCH 4/4] arm64: add 32-bit compat hwcaps " Ard Biesheuvel
2013-12-17 12:25 ` [PATCH 0/4] arm64: advertise availability of CRC and crypto instructions Catalin Marinas
2013-12-18  9:50   ` Ard Biesheuvel
2013-12-18 10:03     ` Russell King - ARM Linux
2013-12-18 10:25       ` Ard Biesheuvel
2013-12-18 10:55         ` Russell King - ARM Linux
2013-12-18 11:15           ` Ard Biesheuvel
2013-12-18 11:27             ` Catalin Marinas
2013-12-18 11:34               ` Catalin Marinas
2013-12-18 11:42               ` Russell King - ARM Linux
2013-12-18 11:59                 ` Ard Biesheuvel
2013-12-18 12:03                 ` Catalin Marinas
2013-12-18 14:27                   ` Christopher Covington
2013-12-18 16:13                     ` Ard Biesheuvel
2013-12-18 17:29                       ` Catalin Marinas
2013-12-18 18:50                         ` Ard Biesheuvel
2013-12-19 11:11                           ` Catalin Marinas
2013-12-18 19:57                       ` Nicolas Pitre
2013-12-18 20:26                         ` Ard Biesheuvel
2013-12-18 21:18                           ` Nicolas Pitre
2013-12-18 21:57                             ` Ard Biesheuvel
2013-12-19  6:48                               ` Siarhei Siamashka
2013-12-19 11:48                                 ` Catalin Marinas
2013-12-20  6:29                                   ` Siarhei Siamashka
2013-12-20 11:27                                     ` Catalin Marinas
2013-12-19 17:33                                 ` Ard Biesheuvel
2013-12-20  1:35                                   ` Siarhei Siamashka
2013-12-19 18:07                               ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).