diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-24 17:28:29 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-25 19:31:03 +1100 |
commit | d3caa64c4ed364af1be1471ad3d67a6f310552d1 (patch) | |
tree | 8ffd1beb34ca8409b88c83b317b82ac8a7210a1b /hw/fsp | |
parent | e16101408667e23d6d841003bbf07cd345d9d034 (diff) | |
download | skiboot-d3caa64c4ed364af1be1471ad3d67a6f310552d1.zip skiboot-d3caa64c4ed364af1be1471ad3d67a6f310552d1.tar.gz skiboot-d3caa64c4ed364af1be1471ad3d67a6f310552d1.tar.bz2 |
fast-reboot: disable on FSP code update or unrecoverable HMI
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
[stewart@linux.vnet.ibm.com: unlock before return (suggested by Mahesh/Andrew),
disable only on non-cancelling fsp codeupdate call (suggested by Vasant)]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r-- | hw/fsp/fsp-codeupdate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/fsp/fsp-codeupdate.c b/hw/fsp/fsp-codeupdate.c index 2263bf3..f17703a 100644 --- a/hw/fsp/fsp-codeupdate.c +++ b/hw/fsp/fsp-codeupdate.c @@ -1141,6 +1141,9 @@ static int64_t fsp_opal_update_flash(struct opal_sg_list *list) rc = OPAL_SUCCESS; goto out; } + + disable_fast_reboot("FSP Code Update"); + length = (be64_to_cpu(list->length) & ~(SG_LIST_VERSION << 56)) - 16; num_entries = length / sizeof(struct opal_sg_entry); if (num_entries <= 0) |