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

[S390] Remove P390 support.

Most likely it is broken anyway because of the changes in memory
detection. Since we can't test it and there are probably better ways
that using a P390 card, remove support for it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

+1 -27
-4
arch/s390/kernel/early.c
··· 183 183 if (cpuinfo->cpu_id.version == 0xff) 184 184 machine_flags |= MACHINE_FLAG_VM; 185 185 186 - /* Running on a P/390 ? */ 187 - if (cpuinfo->cpu_id.machine == 0x7490) 188 - machine_flags |= MACHINE_FLAG_P390; 189 - 190 186 /* Running under KVM ? */ 191 187 if (cpuinfo->cpu_id.version == 0xfe) 192 188 machine_flags |= MACHINE_FLAG_KVM;
-6
arch/s390/kernel/setup.c
··· 205 205 SET_CONSOLE_SCLP; 206 206 #endif 207 207 } 208 - } else if (MACHINE_IS_P390) { 209 - #if defined(CONFIG_TN3215_CONSOLE) 210 - SET_CONSOLE_3215; 211 - #elif defined(CONFIG_TN3270_CONSOLE) 212 - SET_CONSOLE_3270; 213 - #endif 214 208 } else { 215 209 #if defined(CONFIG_SCLP_CONSOLE) || defined(CONFIG_SCLP_VT220_CONSOLE) 216 210 SET_CONSOLE_SCLP;
+1 -8
drivers/s390/char/con3215.c
··· 373 373 struct raw3215_req *req; 374 374 struct tty_struct *tty; 375 375 int cstat, dstat; 376 - int count, slen; 376 + int count; 377 377 378 378 raw = cdev->dev.driver_data; 379 379 req = (struct raw3215_req *) intparm; ··· 390 390 break; 391 391 /* Attention interrupt, someone hit the enter key */ 392 392 raw3215_mk_read_req(raw); 393 - if (MACHINE_IS_P390) 394 - memset(raw->inbuf, 0, RAW3215_INBUF_SIZE); 395 393 tasklet_schedule(&raw->tasklet); 396 394 break; 397 395 case 0x08: ··· 412 414 413 415 tty = raw->tty; 414 416 count = 160 - req->residual; 415 - if (MACHINE_IS_P390) { 416 - slen = strnlen(raw->inbuf, RAW3215_INBUF_SIZE); 417 - if (count > slen) 418 - count = slen; 419 - } else 420 417 EBCASC(raw->inbuf, count); 421 418 cchar = ctrlchar_handle(raw->inbuf, count, tty); 422 419 switch (cchar & CTRLCHAR_MASK) {
-2
drivers/s390/char/sclp.c
··· 883 883 unsigned long flags; 884 884 int rc; 885 885 886 - if (!MACHINE_HAS_SCLP) 887 - return -ENODEV; 888 886 spin_lock_irqsave(&sclp_lock, flags); 889 887 /* Check for previous or running initialization */ 890 888 if (sclp_init_state != sclp_init_state_uninitialized) {
-2
drivers/s390/net/cu3088.c
··· 36 36 "CTC/A", 37 37 "ESCON channel", 38 38 "FICON channel", 39 - "P390 LCS card", 40 39 "OSA LCS card", 41 40 "CLAW channel device", 42 41 "unknown channel type", ··· 48 49 { CCW_DEVICE(0x3088, 0x08), .driver_info = channel_type_parallel }, 49 50 { CCW_DEVICE(0x3088, 0x1f), .driver_info = channel_type_escon }, 50 51 { CCW_DEVICE(0x3088, 0x1e), .driver_info = channel_type_ficon }, 51 - { CCW_DEVICE(0x3088, 0x01), .driver_info = channel_type_p390 }, 52 52 { CCW_DEVICE(0x3088, 0x60), .driver_info = channel_type_osa2 }, 53 53 { CCW_DEVICE(0x3088, 0x61), .driver_info = channel_type_claw }, 54 54 { /* end of list */ }
-3
drivers/s390/net/cu3088.h
··· 17 17 /* Device is a FICON channel */ 18 18 channel_type_ficon, 19 19 20 - /* Device is a P390 LCS card */ 21 - channel_type_p390, 22 - 23 20 /* Device is a OSA2 card */ 24 21 channel_type_osa2, 25 22
-2
include/asm-s390/setup.h
··· 65 65 66 66 #define MACHINE_FLAG_VM (1UL << 0) 67 67 #define MACHINE_FLAG_IEEE (1UL << 1) 68 - #define MACHINE_FLAG_P390 (1UL << 2) 69 68 #define MACHINE_FLAG_CSP (1UL << 3) 70 69 #define MACHINE_FLAG_MVPG (1UL << 4) 71 70 #define MACHINE_FLAG_DIAG44 (1UL << 5) ··· 100 101 #define MACHINE_HAS_PFMF (machine_flags & MACHINE_FLAG_PFMF) 101 102 #endif /* __s390x__ */ 102 103 103 - #define MACHINE_HAS_SCLP (!MACHINE_IS_P390) 104 104 #define ZFCPDUMP_HSA_SIZE (32UL<<20) 105 105 106 106 /*