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)
commit0a5f9b382c6131381f9f2ed64ae6fdd994328d0d
tree10975615394744fcc4d89dccf0ccd7bb314fe403
parent693714b900cea5417d7b3a48891b961d40fb5c55
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