]> asedeno.scripts.mit.edu Git - linux.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)
commit616badd2fb499320d3ac3b54462f55dededd0e0f
tree9bf17ff7ec554e7f5ae825ec9ba04fd177add268
parent1d0761d2557d1540727723e4f05395d53321d555
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