[Skiboot] [PATCH] hw/phb3: Update capi initialization sequence

Frederic Barrat fbarrat at linux.vnet.ibm.com
Fri Jul 29 18:39:40 AEST 2016


Update the capi initialization sequence following circumvention
document for SW251259. It helps with EEH recovery for CAPI.

Signed-off-by: Frederic Barrat <fbarrat at linux.vnet.ibm.com>
---

Stewart: this should also be considered for all the stable branches

 hw/phb3.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/phb3.c b/hw/phb3.c
index 5d865f6..4c27309 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -3287,10 +3287,11 @@ static void phb3_init_capp_regs(struct phb3 *p)
 /* override some inits with CAPI defaults */
 static void phb3_init_capp_errors(struct phb3 *p)
 {
-	out_be64(p->regs + PHB_ERR_AIB_FENCE_ENABLE,       0xffffffdd0c80ffc0);
+	out_be64(p->regs + PHB_ERR_AIB_FENCE_ENABLE,       0xffffffdd8c80ffc0);
 	out_be64(p->regs + PHB_OUT_ERR_AIB_FENCE_ENABLE,   0x9cf3fe08f8dc700f);
 	out_be64(p->regs + PHB_INA_ERR_AIB_FENCE_ENABLE,   0xffff57fbff01ffde);
 	out_be64(p->regs + PHB_INB_ERR_AIB_FENCE_ENABLE,   0xfcffe0fbff7ff0ec);
+	out_be64(p->regs + PHB_LEM_ERROR_MASK,		   0x40018e2400022482);
 }
 
 static int64_t phb3_set_capi_mode(struct phb *phb, uint64_t mode,
-- 
2.7.4



More information about the Skiboot mailing list