]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cpufeature: rework to allow more than only hwcap bits
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 13 Jul 2022 12:56:42 +0000 (14:56 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 19 Jul 2022 14:18:49 +0000 (16:18 +0200)
commita1bafab0b5f7d69b2487fb2ef6ce703f3165b9c5
tree10975615394744fcc4d89dccf0ccd7bb314fe403
parente73ee83e64d2311ce0e585cf5e5406573fa16779
s390/cpufeature: rework to allow more than only hwcap bits

Rework cpufeature implementation to allow for various cpu feature
indications, which is not only limited to hwcap bits. This is achieved
by adding a sequential list of cpu feature numbers, where each of them
is mapped to an entry which indicates what this number is about.

Each entry contains a type member, which indicates what feature
name space to look into (e.g. hwcap, or cpu facility). If wanted this
allows also to automatically load modules only in e.g. z/VM
configurations.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Link: https://lore.kernel.org/r/20220713125644.16121-2-seiden@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
17 files changed:
arch/s390/crypto/aes_s390.c
arch/s390/crypto/chacha-glue.c
arch/s390/crypto/crc32-vx.c
arch/s390/crypto/des_s390.c
arch/s390/crypto/ghash_s390.c
arch/s390/crypto/prng.c
arch/s390/crypto/sha1_s390.c
arch/s390/crypto/sha256_s390.c
arch/s390/crypto/sha3_256_s390.c
arch/s390/crypto/sha3_512_s390.c
arch/s390/crypto/sha512_s390.c
arch/s390/include/asm/cpufeature.h
arch/s390/kernel/Makefile
arch/s390/kernel/cpufeature.c [new file with mode: 0644]
arch/s390/kernel/processor.c
drivers/char/hw_random/s390-trng.c
drivers/s390/crypto/pkey_api.c