From a62298210479a975cc0a51f68c66a27f66ed59c2 Mon Sep 17 00:00:00 2001 From: Russell Currey Date: Thu, 10 Aug 2017 16:58:40 +1000 Subject: phb4: Skip attempting to fix PHBs broken on boot If a PHB is marked broken it didn't work on boot, and if it didn't work on boot then there's no point trying to recover it later Signed-off-by: Russell Currey Signed-off-by: Stewart Smith --- hw/phb4.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/phb4.c b/hw/phb4.c index 7e8f68b..012a8cd 100644 --- a/hw/phb4.c +++ b/hw/phb4.c @@ -2608,6 +2608,10 @@ static int64_t phb4_creset(struct pci_slot *slot) struct phb4 *p = phb_to_phb4(slot->phb); uint64_t pbcq_status, reg; + /* Don't even try fixing a broken PHB */ + if (p->state == PHB4_STATE_BROKEN) + return OPAL_HARDWARE; + switch (slot->state) { case PHB4_SLOT_NORMAL: case PHB4_SLOT_CRESET_START: -- cgit v1.1