diff options
author | Alistair Popple <alistair@popple.id.au> | 2016-01-11 00:53:50 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-01-11 04:30:52 -0500 |
commit | 08f48f3234a79bca86c2283a166aec83bf52b265 (patch) | |
tree | 4002c5d6049c568989b039def994ae7831a78ce6 | |
parent | b521549a09ddfac3bed38e261168cda92d04ce81 (diff) |
powerpc/powernv: Reserve PE#0 on NPU
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>
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 0b625272f3ca..573ae1994097 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c | |||
@@ -1186,9 +1186,11 @@ static void pnv_pci_ioda_setup_PEs(void) | |||
1186 | * functions. PCI bus dependent PEs are required for the | 1186 | * functions. PCI bus dependent PEs are required for the |
1187 | * remaining types of PHBs. | 1187 | * remaining types of PHBs. |
1188 | */ | 1188 | */ |
1189 | if (phb->type == PNV_PHB_NPU) | 1189 | if (phb->type == PNV_PHB_NPU) { |
1190 | /* PE#0 is needed for error reporting */ | ||
1191 | pnv_ioda_reserve_pe(phb, 0); | ||
1190 | pnv_ioda_setup_npu_PEs(hose->bus); | 1192 | pnv_ioda_setup_npu_PEs(hose->bus); |
1191 | else | 1193 | } else |
1192 | pnv_ioda_setup_PEs(hose->bus); | 1194 | pnv_ioda_setup_PEs(hose->bus); |
1193 | } | 1195 | } |
1194 | } | 1196 | } |