zipl/tape2dump: Remove load display command

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 <jremus@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Jan Höppner
2026-01-24 10:38:23 +01:00
parent 1bd8ee4b79
commit 145c21a9ca

View File

@@ -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");
}