]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/sclp: Diag204 busy indication facility detection
authorMete Durlu <meted@linux.ibm.com>
Thu, 4 Jul 2024 12:10:04 +0000 (14:10 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 10 Jul 2024 17:50:44 +0000 (19:50 +0200)
Detect diag204 busy indication facility.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Tobias Huschle <huschle@linux.ibm.com>
Signed-off-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/sclp.h
drivers/s390/char/sclp_early.c

index 5742d23bba137453e01b280685d1d8178f4c14a0..da3dad18fe507237b13d84b60d4d6212a0ffc5f4 100644 (file)
@@ -84,6 +84,7 @@ struct sclp_info {
        unsigned char has_ibs : 1;
        unsigned char has_skey : 1;
        unsigned char has_kss : 1;
+       unsigned char has_diag204_bif : 1;
        unsigned char has_gisaf : 1;
        unsigned char has_diag318 : 1;
        unsigned char has_diag320 : 1;
index 42986284cc78ade04f720b707d8254d195f36680..07df04af82f2ee6a1d7f8630d47657394325e6b9 100644 (file)
@@ -53,6 +53,7 @@ static void __init sclp_early_facilities_detect(void)
                get_lowcore()->machine_flags |= MACHINE_FLAG_ESOP;
        if (sccb->fac91 & 0x40)
                get_lowcore()->machine_flags |= MACHINE_FLAG_TLB_GUEST;
+       sclp.has_diag204_bif = !!(sccb->fac98 & 0x80);
        if (sccb->cpuoff > 134) {
                sclp.has_diag318 = !!(sccb->byte_134 & 0x80);
                sclp.has_diag320 = !!(sccb->byte_134 & 0x04);