Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/sclp: detect DIRQ facility

Detect the adapter CPU directed interruption facility.

Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Sebastian Ott and committed by
Martin Schwidefsky
0a9fddfa c840927c

+3 -1
+1
arch/s390/include/asm/sclp.h
··· 81 81 unsigned char has_diag318 : 1; 82 82 unsigned char has_sipl : 1; 83 83 unsigned char has_sipl_g2 : 1; 84 + unsigned char has_dirq : 1; 84 85 unsigned int ibc; 85 86 unsigned int mtid; 86 87 unsigned int mtid_cp;
+1 -1
drivers/s390/char/sclp.h
··· 197 197 u32 hmfai; /* 124-127 */ 198 198 u8 _pad_128[134 - 128]; /* 128-133 */ 199 199 u8 byte_134; /* 134 */ 200 - u8 _pad_135; /* 135 */ 200 + u8 cpudirq; /* 135 */ 201 201 u16 cbl; /* 136-137 */ 202 202 u8 _pad_138[4096 - 138]; /* 138-4095 */ 203 203 } __packed __aligned(PAGE_SIZE);
+1
drivers/s390/char/sclp_early.c
··· 95 95 sclp.mtid_prev = (sccb->fac42 & 0x80) ? (sccb->fac66 & 31) : 0; 96 96 97 97 sclp.hmfai = sccb->hmfai; 98 + sclp.has_dirq = !!(sccb->cpudirq & 0x80); 98 99 } 99 100 100 101 /*