]> Gentwo Git Trees - linux/.git/commit
s390/pai_crypto: Add PAI crypto characteristics table for parameters
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 5 Nov 2025 14:38:46 +0000 (15:38 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Nov 2025 10:30:05 +0000 (11:30 +0100)
commita3f8423622ef34cca050816c49be4291f9f41b1d
treeb140975f28d87ffa7478816958ea11935aa5197e
parent387c7b5f04eff53f5bd7990b9909f7cc3a4e2e8c
s390/pai_crypto: Add PAI crypto characteristics table for parameters

Create and add a PMU characteristics table to store the parameters
of the PAI crypto PMU. This table contains PMU details such as
 - number of available counters
 - name of these counters to export to /sysfs
 - Size of the memory mapped counter area
 - base number of first counter
 - etc

Also define a PMU specific initialization function to be called when
a PAI PMU feature is supported. At device driver initialization
test these features and if available use instruction qpaci to
retrieve the number of available counters. Also export these counter
names to /sysfs and register this PMU.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c