]> 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)
commit9d04d82efa4b5b73ac9d8bf66f7c448414b97150
tree9bf17ff7ec554e7f5ae825ec9ba04fd177add268
parent296ea6ced5192176d221e78d4a5b045e6dd21559
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