aboutsummaryrefslogtreecommitdiff
path: root/hw/xscom.c
diff options
context:
space:
mode:
authorVipin K Parashar <vipin@linux.vnet.ibm.com>2016-07-12 02:04:33 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-12 14:37:20 +1000
commit15cec493804ff14e6246eb1b65e9d0c7cb469a81 (patch)
treea1d7f3354ece458845b984a890b7f60d74121d1d /hw/xscom.c
parent66af8aa4df9ba782c56f873532d4d1a93045230b (diff)
downloadskiboot-15cec493804ff14e6246eb1b65e9d0c7cb469a81.zip
skiboot-15cec493804ff14e6246eb1b65e9d0c7cb469a81.tar.gz
skiboot-15cec493804ff14e6246eb1b65e9d0c7cb469a81.tar.bz2
hw/xscom: Reset XSCOM engine after querying sleeping core FIR
XSCOM engine blocks subsequently after querying FIR of any sleeping core. This causes subsequent XSCOM opertions to hang forever due to XSCOM engine being continuously busy. Reset XSCOM engine after querying FIR of any sleeping core. Signed-off-by: Vipin K Parashar <vipin@linux.vnet.ibm.com> Signed-off-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/xscom.c')
-rw-r--r--hw/xscom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xscom.c b/hw/xscom.c
index e351672..7c249c3 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -169,7 +169,8 @@ static int64_t xscom_handle_error(uint64_t hmer, uint32_t gcid, uint32_t pcb_add
gcid, pcb_addr, stat);
return OPAL_BUSY;
- case 2: /* CPU is asleep, don't retry */
+ case 2: /* CPU is asleep, reset XSCOM engine and return */
+ xscom_reset(gcid);
return OPAL_WRONG_STATE;
case 3: /* Partial good */
case 4: /* Invalid address / address error */