s390/sclp: detect storage-key facility
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 24 Nov 2015 11:56:43 +0000 (12:56 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:30 +0000 (12:07 +0200)
Let's correctly detect that facility.

Reviewed-by: Christian Borntraeger <borntraeger@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 99a0150d07b975831974cbe51ac9d55061d4b957..2ad9c204b1a2fccc142a787ccb85f3262298cd92 100644 (file)
@@ -32,7 +32,8 @@ struct sclp_core_entry {
        u8 reserved0;
        u8 : 4;
        u8 sief2 : 1;
-       u8 : 3;
+       u8 skey : 1;
+       u8 : 2;
        u8 : 2;
        u8 gpere : 1;
        u8 siif : 1;
@@ -73,6 +74,7 @@ struct sclp_info {
        unsigned char has_cei : 1;
        unsigned char has_pfmfi : 1;
        unsigned char has_ibs : 1;
+       unsigned char has_skey : 1;
        unsigned int ibc;
        unsigned int mtid;
        unsigned int mtid_cp;
index d5b873c92ffc24fc53f7e3d6aa6691d0e16cf7e6..c71df0c7dedc1c75c7b17b0f9038bee188c42939 100644 (file)
@@ -154,6 +154,7 @@ static void __init sclp_facilities_detect(struct read_info_sccb *sccb)
                sclp.has_gpere = cpue->gpere;
                sclp.has_ib = cpue->ib;
                sclp.has_cei = cpue->cei;
+               sclp.has_skey = cpue->skey;
                break;
        }