powerpc/vas: Setup fault window per VAS instance
authorHaren Myneni <haren@linux.ibm.com>
Thu, 16 Apr 2020 06:00:46 +0000 (23:00 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Apr 2020 06:53:00 +0000 (16:53 +1000)
commit0d17de03ce6a7a9b08c868211f1e9a7cf1ced8c4
tree18e28a0d1019922765f9c8e3f7a7ae84829f4ce3
parentc20e1e299d936c7f3089c9be99fa784e57da5b7f
powerpc/vas: Setup fault window per VAS instance

Setup fault window for each VAS instance. When NX gets a fault on
request buffer, pastes fault CRB in the corresponding fault FIFO and
then raises an interrupt to the OS. The kernel handles this fault
and process faults CRB from this FIFO.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1587016846.2275.1053.camel@hbabu-laptop
arch/powerpc/platforms/powernv/Makefile
arch/powerpc/platforms/powernv/vas-fault.c [new file with mode: 0644]
arch/powerpc/platforms/powernv/vas-window.c
arch/powerpc/platforms/powernv/vas.c
arch/powerpc/platforms/powernv/vas.h