Skip to content

Commit 5e6bb10

Browse files
oberparAlexander Gordeev
authored andcommitted
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>
1 parent 2dc8903 commit 5e6bb10

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
@@ -1126,10 +1126,6 @@ int chsc_get_channel_measurement_chars(struct channel_path *chp)
11261126
chp->cmg = scmc_area->cmg;
11271127
chp->shared = scmc_area->shared;
11281128
chp->extended = scmc_area->extended;
1129-
if (chp->cmg != 2 && chp->cmg != 3) {
1130-
/* No cmg-dependent data. */
1131-
goto out;
1132-
}
11331129
chsc_initialize_cmg_chars(chp, scmc_area->cmcv,
11341130
(struct cmg_chars *) &scmc_area->data);
11351131
out:

0 commit comments

Comments
 (0)