]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/powernv: Reserve PE#0 on NPU
authorAlistair Popple <alistair@popple.id.au>
Mon, 11 Jan 2016 05:53:50 +0000 (16:53 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Jan 2016 09:30:52 +0000 (20:30 +1100)
P8+ hardware reports all errors on PE#0. This patch ensures PE#0 is
not assigned to NPU devices so that it can be used for EEH.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c

index 0b625272f3ca9b71f81b18980524f2993948fe19..573ae1994097fb91e15e3f7f6351fe1e73b35c59 100644 (file)
@@ -1186,9 +1186,11 @@ static void pnv_pci_ioda_setup_PEs(void)
                 * functions. PCI bus dependent PEs are required for the
                 * remaining types of PHBs.
                 */
-               if (phb->type == PNV_PHB_NPU)
+               if (phb->type == PNV_PHB_NPU) {
+                       /* PE#0 is needed for error reporting */
+                       pnv_ioda_reserve_pe(phb, 0);
                        pnv_ioda_setup_npu_PEs(hose->bus);
-               else
+               else
                        pnv_ioda_setup_PEs(hose->bus);
        }
 }