diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-10-10 15:07:45 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-10-11 19:30:30 +1100 |
commit | 65e912728ee18442c559445e83c4c74c1369c238 (patch) | |
tree | 47709035418f356a574b46e2b1f2db7bb158210e /hw/fsp | |
parent | ad64cfb5ce4acdf1be3b13d8fb97c0262c3a49c5 (diff) | |
download | skiboot-65e912728ee18442c559445e83c4c74c1369c238.zip skiboot-65e912728ee18442c559445e83c4c74c1369c238.tar.gz skiboot-65e912728ee18442c559445e83c4c74c1369c238.tar.bz2 |
FSP/CONSOLE: Do not associate unavailable console
Presently OPAL sends associate/unassociate MBOX command for all
FSP serial console (like below OPAL message). We have to check
console is available or not before sending this message.
OPAL log:
-------
[ 5013.227994012,7] FSP: Reassociating HVSI console 1
[ 5013.227997540,7] FSP: Reassociating HVSI console 2
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
(cherry picked from commit 175e406ac29435017c5bd08b2c45d93b2c5a7669)
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r-- | hw/fsp/fsp-console.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/fsp/fsp-console.c b/hw/fsp/fsp-console.c index ae3870c..c20a9dd 100644 --- a/hw/fsp/fsp-console.c +++ b/hw/fsp/fsp-console.c @@ -92,6 +92,9 @@ static void fsp_console_reinit(void) for (i = 0; i < MAX_SERIAL; i++) { struct fsp_serial *fs = &fsp_serials[i]; + if (!fs->available) + continue; + if (fs->rsrc_id == 0xffff) continue; prlog(PR_DEBUG, "FSP: Reassociating HVSI console %d\n", i); @@ -890,6 +893,10 @@ static void reopen_all_hvsi(void) for (i = 0; i < MAX_SERIAL; i++) { struct fsp_serial *fs = &fsp_serials[i]; + + if (!fs->available) + continue; + if (fs->rsrc_id == 0xffff) continue; prlog(PR_NOTICE, "FSP: Deassociating HVSI console %d\n", i); @@ -898,6 +905,10 @@ static void reopen_all_hvsi(void) } for (i = 0; i < MAX_SERIAL; i++) { struct fsp_serial *fs = &fsp_serials[i]; + + if (!fs->available) + continue; + if (fs->rsrc_id == 0xffff) continue; prlog(PR_NOTICE, "FSP: Reassociating HVSI console %d\n", i); |