You need to sign in or sign up before continuing.
提交 179a98cb 编写于 作者: S Sebastian Ott 提交者: Martin Schwidefsky

s390/cio: don't register chpids in reserved state

During IPL we register all chpids that are not in the unrecognized
state. This includes chpids that are not usable and chpids for which
the state could not be obtained.

Change that to only register chpids in the configured (usable) or
standby (usable after a configure operation) state. All other chpids
could only be made available by external control for which we would
receive machine checks.
Signed-off-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: NPeter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 12e72196
...@@ -780,7 +780,7 @@ static int cfg_wait_idle(void) ...@@ -780,7 +780,7 @@ static int cfg_wait_idle(void)
static int __init chp_init(void) static int __init chp_init(void)
{ {
struct chp_id chpid; struct chp_id chpid;
int ret; int state, ret;
ret = crw_register_handler(CRW_RSC_CPATH, chp_process_crw); ret = crw_register_handler(CRW_RSC_CPATH, chp_process_crw);
if (ret) if (ret)
...@@ -791,7 +791,9 @@ static int __init chp_init(void) ...@@ -791,7 +791,9 @@ static int __init chp_init(void)
return 0; return 0;
/* Register available channel-paths. */ /* Register available channel-paths. */
chp_id_for_each(&chpid) { chp_id_for_each(&chpid) {
if (chp_info_get_status(chpid) != CHP_STATUS_NOT_RECOGNIZED) state = chp_info_get_status(chpid);
if (state == CHP_STATUS_CONFIGURED ||
state == CHP_STATUS_STANDBY)
chp_new(chpid); chp_new(chpid);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册