summaryrefslogtreecommitdiff
path: root/drivers/s390/cio/chp.h
diff options
context:
space:
mode:
authorPeter Oberparleiter <oberpar@linux.ibm.com>2024-11-07 17:50:36 +0300
committerHeiko Carstens <hca@linux.ibm.com>2024-11-13 16:31:31 +0300
commit2f4b3b83b8c6e798a2e581521f00933d0f9ec777 (patch)
tree21dedc6a8654e11dd3752c7fbc24bf7ac8239c41 /drivers/s390/cio/chp.h
parent182c02a6cd5f7947c403ba2321e262fb0aeaabfc (diff)
downloadlinux-2f4b3b83b8c6e798a2e581521f00933d0f9ec777.tar.xz
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>
Diffstat (limited to 'drivers/s390/cio/chp.h')
-rw-r--r--drivers/s390/cio/chp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/chp.h b/drivers/s390/cio/chp.h
index a15324a43aa3..391b52a7474c 100644
--- a/drivers/s390/cio/chp.h
+++ b/drivers/s390/cio/chp.h
@@ -54,6 +54,7 @@ struct channel_path {
int extended;
unsigned long speed;
struct cmg_chars cmg_chars;
+ struct cmg_cmcb cmcb;
};
/* Return channel_path struct for given chpid. */