]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Use OPAL call for TCE kill on NVLink2
authorAlistair Popple <alistair@popple.id.au>
Tue, 10 Jan 2017 04:41:44 +0000 (15:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 30 Jan 2017 09:34:53 +0000 (20:34 +1100)
commit3f4a09e6019a4ee87b699b6b1b507f33a4df2305
tree9bf17ff7ec554e7f5ae825ec9ba04fd177add268
parent0002b489411f80ec8382f0cdfad4baac0aa1a683
powerpc/powernv: Use OPAL call for TCE kill on NVLink2

Add detection of NPU2 PHBs. NPU2/NVLink2 has a different register
layout for the TCE kill register therefore TCE invalidation should be
done via the OPAL call rather than using the register directly as it
is for PHB3 and NVLink1. This changes TCE invalidation to use the OPAL
call in the case of a NPU2 PHB model.

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
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/powernv/pci.h