powerpc/powernv: Unfreeze VF PE on releasing it
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Tue, 23 Jun 2015 07:01:13 +0000 (17:01 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Jul 2015 06:12:30 +0000 (16:12 +1000)
When releasing PE for SRIOV VF, the PE is forced to be frozen
wrongly. When the same PE is picked for another VF, it won't
work anyhow. The patch fixes the issue by unfreezing, not
freezing the VF PE when releasing it.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c

index e1ea449e481181b735f0c55f6b3b84d806323d11..fdafbaccafbe4f4e54a8dc9eb6a294b71b970940 100644 (file)
@@ -701,7 +701,7 @@ static int pnv_ioda_deconfigure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe)
                parent = parent->bus->self;
        }
 
-       opal_pci_eeh_freeze_set(phb->opal_id, pe->pe_number,
+       opal_pci_eeh_freeze_clear(phb->opal_id, pe->pe_number,
                                  OPAL_EEH_ACTION_CLEAR_FREEZE_ALL);
 
        /* Disassociate PE in PELT */