Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe72ffba authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky
Browse files

s390/zfcpdump: exploit new cio_ignore keywords



Use the 'ipldev' and 'condev' cio_ignore keywords to setup the
command line for zfcpdump.

Reviewed-by: default avatarMichael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent d1eb16e6
Loading
Loading
Loading
Loading
+4 −12
Original line number Original line Diff line number Diff line
@@ -226,25 +226,17 @@ static void __init conmode_default(void)
}
}


#ifdef CONFIG_ZFCPDUMP
#ifdef CONFIG_ZFCPDUMP
static void __init setup_zfcpdump(unsigned int console_devno)
static void __init setup_zfcpdump(void)
{
{
	static char str[41];

	if (ipl_info.type != IPL_TYPE_FCP_DUMP)
	if (ipl_info.type != IPL_TYPE_FCP_DUMP)
		return;
		return;
	if (OLDMEM_BASE)
	if (OLDMEM_BASE)
		return;
		return;
	if (console_devno != -1)
	strcat(boot_command_line, " cio_ignore=all,!ipldev,!condev");
		sprintf(str, " cio_ignore=all,!0.0.%04x,!0.0.%04x",
			ipl_info.data.fcp.dev_id.devno, console_devno);
	else
		sprintf(str, " cio_ignore=all,!0.0.%04x",
			ipl_info.data.fcp.dev_id.devno);
	strcat(boot_command_line, str);
	console_loglevel = 2;
	console_loglevel = 2;
}
}
#else
#else
static inline void setup_zfcpdump(unsigned int console_devno) {}
static inline void setup_zfcpdump(void) {}
#endif /* CONFIG_ZFCPDUMP */
#endif /* CONFIG_ZFCPDUMP */


 /*
 /*
@@ -1097,5 +1089,5 @@ void __init setup_arch(char **cmdline_p)
	set_preferred_console();
	set_preferred_console();


	/* Setup zfcpdump support */
	/* Setup zfcpdump support */
	setup_zfcpdump(console_devno);
	setup_zfcpdump();
}
}