Skip to content
  • Gavin Shan's avatar
    powerpc/eeh: Disable automatically blocked PCI config · 39bfd715
    Gavin Shan authored
    
    
    pcibios_set_pcie_reset_state() could be called to complete
    reset request when passing through PCI device, flag
    EEH_PE_ISOLATED is set before saving the PCI config sapce.
    On some Broadcom adapters, EEH_PE_CFG_BLOCKED is automatically
    set when the flag EEH_PE_ISOLATED is marked. It caused bogus
    data saved from the PCI config space, which will be restored
    to the PCI adapter after the reset. Eventually, the hardware
    can't work with corrupted data in PCI config space.
    
    The patch fixes the issue with eeh_pe_state_mark_no_cfg(), which
    doesn't set EEH_PE_CFG_BLOCKED when seeing EEH_PE_ISOLATED on the
    PE, in order to avoid the bogus data saved and restored to the PCI
    config space.
    
    Reported-by: default avatarRajanikanth H. Adaveeshaiah <rajanikanth.ha@in.ibm.com>
    Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    39bfd715