[Skiboot] [PATCH 6/9] phb4: Fix MMIO enable with fence recovery

Michael Neuling mikey at neuling.org
Fri Oct 20 22:59:39 AEDT 2017


PHB fatal error recovery needs MMIO enabled otherwise the PHB will
freeze the PE once the driver starts accessing the device again.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hw/phb4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/phb4.c b/hw/phb4.c
index 0170e43a89..0841136cc7 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -421,7 +421,7 @@ static int64_t phb4_rc_write(struct phb4 *p, uint32_t offset, uint8_t sz,
 		break;
 	default:
 		/* Workaround PHB config space enable */
-		if ((p->rev == PHB4_REV_NIMBUS_DD10) && (reg == PCI_CFG_CMD))
+		if (reg == PCI_CFG_CMD)
 			val |= PCI_CFG_CMD_MEM_EN | PCI_CFG_CMD_BUS_MASTER_EN;
 		PHBLOGCFG(p, "000 CFG%02d Wr %02x=%08x\n", 8 * sz, reg, val);
 		if (use_asb)
-- 
2.11.0



More information about the Skiboot mailing list