]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Create PHB PEs after EEH is initialized
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 7 Sep 2017 06:35:40 +0000 (16:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Sep 2017 04:56:00 +0000 (14:56 +1000)
commitdc4da46f71560442fc85df30aadaad60bab562c6
treeaf30525e7c163d69c5f830bb913e65c7b92c4a3c
parent7cee77b80cbf4b3d081297923dd0808abb02c011
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: 2a07c503c7fb ("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>
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_dev.c