s390/sclp: detect 64-bit-SCAO facility
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 24 Nov 2015 11:49:43 +0000 (12:49 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:17 +0000 (12:07 +0200)
Let's correctly detect that facility, so we can correctly handle its
abscence later on.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/sclp.h
drivers/s390/char/sclp_early.c

index 49736a0d4e0e9a254c6b94108131940341d6a8e9..521400086e6559e78bddf80f345bce78b0509196 100644 (file)
@@ -59,6 +59,7 @@ struct sclp_info {
        unsigned char has_hvs : 1;
        unsigned char has_esca : 1;
        unsigned char has_sief2 : 1;
+       unsigned char has_64bscao : 1;
        unsigned int ibc;
        unsigned int mtid;
        unsigned int mtid_cp;
index 0ac520dd1b219fef8e018555170fb99a9441c540..211eb86ae62d6b75c3b92fc7d748d3146cdf471e 100644 (file)
@@ -114,6 +114,7 @@ static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
        sclp.facilities = sccb->facilities;
        sclp.has_sprp = !!(sccb->fac84 & 0x02);
        sclp.has_core_type = !!(sccb->fac84 & 0x01);
+       sclp.has_64bscao = !!(sccb->fac116 & 0x80);
        sclp.has_esca = !!(sccb->fac116 & 0x08);
        sclp.has_hvs = !!(sccb->fac119 & 0x80);
        if (sccb->fac85 & 0x02)