]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82fe7d872141db1c91c0534171c0ccd28371e9d1
tree18e28a0d1019922765f9c8e3f7a7ae84829f4ce3
parent23715a87da6ebcbae67de1ef44482583a1e36475
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