Skip to content

Commit 47d3613

Browse files
author
Mete Durlu
committed
s390/cio: export measurement data for all CMGs
JIRA: https://issues.redhat.com/browse/RHEL-50790 commit 5e6bb10 Author: Peter Oberparleiter <oberpar@linux.ibm.com> Date: Tue Mar 26 17:03:23 2024 +0100 s390/cio: export measurement data for all CMGs A channel-path's channel-measurement-group value (CMG) determines the format of associated measurement data and characteristics blocks. Both blocks are of fixed size and contain a generic and CMG-dependent part. Currently CIO exports these data blocks via sysfs only for a specific list of CMGs even though the kernel itself does not interpret CMG-dependent data. Change CIO to export measurement data and characteristics for all CMGs. This enables supporting new CMG data formats in userspace without the need for kernel changes. Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Mete Durlu <mdurlu@redhat.com>
1 parent 3979a03 commit 47d3613

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/s390/cio/chsc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,10 +1112,6 @@ int chsc_get_channel_measurement_chars(struct channel_path *chp)
11121112
chp->cmg = scmc_area->cmg;
11131113
chp->shared = scmc_area->shared;
11141114
chp->extended = scmc_area->extended;
1115-
if (chp->cmg != 2 && chp->cmg != 3) {
1116-
/* No cmg-dependent data. */
1117-
goto out;
1118-
}
11191115
chsc_initialize_cmg_chars(chp, scmc_area->cmcv,
11201116
(struct cmg_chars *) &scmc_area->data);
11211117
out:

0 commit comments

Comments
 (0)