]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/cio: Externalize full CMG characteristics
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Thu, 7 Nov 2024 14:50:36 +0000 (15:50 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 13 Nov 2024 13:31:31 +0000 (14:31 +0100)
commit2f4b3b83b8c6e798a2e581521f00933d0f9ec777
tree21dedc6a8654e11dd3752c7fbc24bf7ac8239c41
parent182c02a6cd5f7947c403ba2321e262fb0aeaabfc
s390/cio: Externalize full CMG characteristics

The current "measurement_chars" CHPID sysfs attribute exposes only a
limited, validity-filtered portion of data from the associated Channel-
Measurements Characteristics Block (CMCB). New machine models add data
that is relevant for userspace tooling to the "header"-portion of the
CMCB. This data that is not currently accessible to userspace.

To prevent having to add new sysfs attributes whenever a new bit of data
is added to the CMCB "header", add a new sysfs attribute named
"measurement_chars_full" that exposes the full, unfiltered CMCB.

Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/cio/chp.c
drivers/s390/cio/chp.h
drivers/s390/cio/chsc.c
drivers/s390/cio/chsc.h