]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
powerpc/powernv: Fix TCE kill on NVLink2
authorAlistair Popple <alistair@popple.id.au>
Thu, 11 May 2017 14:26:21 +0000 (11:26 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:41:16 +0000 (13:41 -0300)
commit87c9c5b4878215c357b6b4df3eb9b1c09e3d1924
treed1ebed498f4c4715d56f443440c9b01e85db9c27
parent30a05366b24ccec02197ebdc8683b6a3845063f7
powerpc/powernv: Fix TCE kill on NVLink2

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1690155
Commit 616badd2fb49 ("powerpc/powernv: Use OPAL call for TCE kill on
NVLink2") forced all TCE kills to go via the OPAL call for
NVLink2. However the PHB3 implementation of TCE kill was still being
called directly from some functions which in some circumstances caused
a machine check.

This patch adds an equivalent IODA2 version of the function which uses
the correct invalidation method depending on PHB model and changes all
external callers to use it instead.

Fixes: 616badd2fb49 ("powerpc/powernv: Use OPAL call for TCE kill on NVLink2")
Cc: stable@vger.kernel.org # v4.11+
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 6b3d12a948d27977816a15eb48409a298902a548)
Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/powerpc/platforms/powernv/npu-dma.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci.h