From 145c21a9ca01b65aac527c8c91f455dccca27581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B6ppner?= Date: Sat, 24 Jan 2026 10:38:23 +0100 Subject: [PATCH] zipl/tape2dump: Remove load display command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Load Display (LDD) X'9F' is still accepted by the Virtual Tape Server (VTS) but does not perform any action. Remove code that still uses this command in tape2dump.c. Reviewed-by: Jens Remus Signed-off-by: Jan Höppner --- zipl/boot/tape2dump.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/zipl/boot/tape2dump.c b/zipl/boot/tape2dump.c index 6ad795a4..41136160 100644 --- a/zipl/boot/tape2dump.c +++ b/zipl/boot/tape2dump.c @@ -26,7 +26,6 @@ #define SENSE_OVERRUN 0x04 /* Sense */ #define WRITETAPEMARK 0x1f /* Write Tape Mark */ #define READ_DEV_CHAR 0x64 /* Read device characteristics */ -#define LOAD_DISPLAY 0x9f /* Load tape display */ #define MODE_SET_DB 0xdb /* Mode set */ /* @@ -129,17 +128,6 @@ static void setup_idrc_compression(void) } } -/* - * Print message on tape display - */ -static void ccw_load_display(const char *msg) -{ - char _msg[24] = {0x20}; - - strcpy(&_msg[1], msg); - start_ccw(LOAD_DISPLAY, CCW_FLAG_SLI, 0x11, (void *) _msg); -} - /* * Write sense data to buffer */ @@ -182,19 +170,6 @@ static void ccw_write_block(unsigned long addr, unsigned long size, panic(EMEM, "Device too small"); } -/* - * Every 16 MB we update the tape display - */ -static void progress_print_disp(unsigned long addr) -{ - char msg[24]; - - if (addr % (1024 * 1024 * 16) != 0) - return; - snprintf(msg, sizeof(msg), "%08u", addr >> 20); - ccw_load_display(msg); -} - /* * Dump all memory to tape */ @@ -212,11 +187,9 @@ void dt_dump_mem(void) ccw_write_block(addr, BLK_SIZE, page); total_dump_size += BLK_SIZE; progress_print(addr + BLK_SIZE); - progress_print_disp(addr + BLK_SIZE); } df_s390_em_page_init(page); ccw_write_block(page, sizeof(struct df_s390_em), 0); free_page(page); ccw_write_tapemark(); - ccw_load_display("DUMP*END"); }