summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh_dev.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-09-07 08:35:40 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2017-09-21 06:56:00 +0200
commit3e77adeea3c5393c9b624832f65441e92867f618 (patch)
treeaf30525e7c163d69c5f830bb913e65c7b92c4a3c /arch/powerpc/kernel/eeh_dev.c
parentpowerpc/kprobes: Update optprobes to use emulate_update_regs() (diff)
downloadlinux-3e77adeea3c5393c9b624832f65441e92867f618.tar.xz
linux-3e77adeea3c5393c9b624832f65441e92867f618.zip
powerpc/eeh: Create PHB PEs after EEH is initialized
Otherwise we end up not yet having computed the right diag data size on powernv where EEH initialization is delayed, thus causing memory corruption later on when calling OPAL. Fixes: 5cb1f8fdddb7 ("powerpc/powernv/pci: Dynamically allocate PHB diag data") Cc: stable@vger.kernel.org # v4.13+ Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/eeh_dev.c')
-rw-r--r--arch/powerpc/kernel/eeh_dev.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/powerpc/kernel/eeh_dev.c b/arch/powerpc/kernel/eeh_dev.c
index ad04ecd63c20..a34e6912c15e 100644
--- a/arch/powerpc/kernel/eeh_dev.c
+++ b/arch/powerpc/kernel/eeh_dev.c
@@ -78,21 +78,3 @@ void eeh_dev_phb_init_dynamic(struct pci_controller *phb)
/* EEH PE for PHB */
eeh_phb_pe_create(phb);
}
-
-/**
- * eeh_dev_phb_init - Create EEH devices for devices included in existing PHBs
- *
- * Scan all the existing PHBs and create EEH devices for their OF
- * nodes and their children OF nodes
- */
-static int __init eeh_dev_phb_init(void)
-{
- struct pci_controller *phb, *tmp;
-
- list_for_each_entry_safe(phb, tmp, &hose_list, list_node)
- eeh_dev_phb_init_dynamic(phb);
-
- return 0;
-}
-
-core_initcall(eeh_dev_phb_init);