[Skiboot] [PATCH stable] hw/xscom: Reset XSCOM engine after querying sleeping core FIR

Vipin K Parashar vipin at linux.vnet.ibm.com
Tue Jul 12 06:34:57 AEST 2016


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 at linux.vnet.ibm.com>
Signed-off-by: Vaidyanathan Srinivasan <svaidy at linux.vnet.ibm.com>
---
 hw/xscom.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/xscom.c b/hw/xscom.c
index c6dc93b..b403c6d 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -166,8 +166,9 @@ static int64_t xscom_handle_error(uint64_t hmer, uint32_t gcid, uint32_t pcb_add
 				gcid, pcb_addr, stat);
 		return OPAL_BUSY;
 
-	/* CPU is asleep, don't retry */
+	/* CPU is asleep, reset XSCOM engine and return */
 	case 2:
+		xscom_reset(gcid);
 		return OPAL_WRONG_STATE;
 	}
 
-- 
2.7.4



More information about the Skiboot mailing list