summaryrefslogtreecommitdiffstats
path: root/hw/fsp/fsp-codeupdate.c
Commit message (Collapse)AuthorAgeFilesLines
* fast-reboot: Disable on FSP IPL side changeVasant Hegde2018-06-181-0/+26
| | | | | | | | | | | | If FSP changes next IPL side, then disable fast reboot. sample output: [ 620.196442259,5] FSP: Got sysparam update, param ID 0xf0000007 [ 620.196444501,5] CUPD: FW IPL side changed. Disable fast reboot [ 620.196445389,5] CUPD: Next IPL side : perm Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
* fast-reboot: disable on FSP code update or unrecoverable HMIStewart Smith2016-10-251-0/+3
| | | | | | | | 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>
* opal/errorlog : Removes redundant header file inclusionMukesh Ojha2016-03-311-1/+0
| | | | | | | | | Removes the redundant header file fsp-elog.h from hw/fsp/fsp-codeupdate.c and hw/p8-i2c.c Signed-off-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com> Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Fix stored value never read warning from scan-build in FSP code updateStewart Smith2015-08-311-0/+3
| | | | | | Instead just print a PR_TRACE notice as (by design), this is an okay thing. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* errorlog: Deprecate elog callback parameterSamuel Mendoza-Jonas2015-07-311-7/+7
| | | | | | | | | | There are now no users of the call_out parameter and future users should use the log_append_msg() and log_append_data() functions, so remove all references to call_out. Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Preload VPD LID and set up fsp_lid_load() for async queued loadingStewart Smith2015-05-071-2/+16
| | | | | | | | This means VPD LID is already loaded before we start preloading kernel and initramfs LIDs, thus ensuring VPD doesn't have to wait for them to finish being read from FSP. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* FSP/CUPD: Remove CamelCaseVasant Hegde2015-04-151-21/+21
| | | | | | | No functionality changes. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* FSP/CUPD: Fix lock issueVasant Hegde2015-04-091-8/+1
| | | | | | | | | | | | | Commit a5ee9d40 does unlock/lock of flash_lock in fsp_code_update_wait_vpd(). This function is called during init as well (where we enter this function without lock). And in corner cases (CUPD init is not completed) when we entered this function (in init path) then we hit lock error. Also remove redundant lock from fsp_flash_firmware...which solves possible poller lock issue. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* fsp: Audit callers of opal_run_pollersBenjamin Herrenschmidt2015-02-181-8/+9
| | | | | | | Use cpu_relax() and don't call it with a lock held Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Use __be64 annotations in opal.h for opal_sg_list and oppanel-lineStewart Smith2015-02-101-15/+17
| | | | | | | | | Now matches linux. Fix up all the fsp code using these structs to do the proper be64_to_cpu conversions so at least everything is annotated correctly. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Move skiboot internal things from opal.h to opal-api.hStewart Smith2015-02-061-0/+1
| | | | | | | | | | This is probably not the best collection of things in the world, but it means that opal.h is much closer to being directly usable by an OS. This triggers a bunch of #include fixes throughout the tree. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* Enable warn_unused_result for fsp_fetch_data_queue()Vasant Hegde2014-12-101-8/+21
| | | | | | | | fsp_fetch_data_queue() internally calls fsp_queue_msg(). So ideally we should consume the result of this function. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* FSP/CUPD: Convert printf based log messages into prlog based logsVasant Hegde2014-12-101-16/+18
| | | | | | | | | This patch changes all printf based log messages in the Code Update code into prlog based log messages with appropriate priority level. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* elog: Clean up error logging headersAlistair Popple2014-12-021-1/+1
| | | | | | | | | | | | | | | Commit cf6f4e8912d29fb89ce85c84834607065ad595a5 introduced a platform independent frontend for error logging. However it failed to move the generic parts of the fsp-elog.h header into the platform independent one, instead relying on the fact that up until now fsp-elog.h was included whenever a function needed to log errors. This patch moves the platform independent defines into the frontend header file (errorlog.h) and removes the include of the platform specific header in generic code paths. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* CUPD: Log LID ID in elog if size crosses the limitVasant Hegde2014-10-101-3/+4
| | | | | | | ..so that it makes easy to find the culprit LID easily. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
* CUPD: Updated error logs severityMamatha Inamdar2014-07-251-13/+13
| | | | | | | | | | As per discussion with Vasant updated severity of the the code update error logs. Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* CUPD: Improve elog in code update pathVasant Hegde2014-07-211-10/+27
| | | | | | | | | Log exact failure reason in code update path. Also removed possible duplicate error logging. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* CUPD: Rename codeupdate.h as fsp-codeupdate.hVasant Hegde2014-07-211-1/+2
| | | | | | | | | | | | | Rename the header file to reflect that this code is only to support code update on FSP based sytem. No change in actual header file. [ Move the file to hw/fsp as it doesn't export anything to the rest of the world -- BenH ] Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* CUPD: Use consistent component name for error loggingVasant Hegde2014-07-211-1/+1
| | | | | | Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Reviewed-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* CUPD: Handle FSP R/RVasant Hegde2014-07-211-0/+48
| | | | | | | | | | | At present, if FSP R/R happens while retrieving marker LID, then we don't get marker LID from FSP and this will result in inband code update failure. This patch handles FSP R/R. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* opal: Replace fsp_poll() with a full run of all OPAL pollersBenjamin Herrenschmidt2014-07-081-2/+2
| | | | | | | | | Otherwise we don't handle surveillance and PSI link monitoring This should fix cases of surveillance timeouts during things like code update such as BZ109939 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
* Initial commit of Open Source releaseBenjamin Herrenschmidt2014-07-021-0/+1197
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
OpenPOWER on IntegriCloud