]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vas: Move update_csb/dump_crb to common book3s platform
authorHaren Myneni <haren@linux.ibm.com>
Thu, 17 Jun 2021 20:32:38 +0000 (13:32 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 20 Jun 2021 11:58:56 +0000 (21:58 +1000)
commitbcb4c705f6fd1e705f4d17764cc5b7f0d60b5ce9
tree2bde695676c21307fad818fdb2a3b3c5d2a2cb90
parent59fa7991cc1c0420e9c3ac8253a7eb71db101bf3
powerpc/vas: Move update_csb/dump_crb to common book3s platform

If a coprocessor encounters an error translating an address, the
VAS will cause an interrupt in the host. The kernel processes
the fault by updating CSB. This functionality is same for both
powerNV and pseries. So this patch moves these functions to
common vas-api.c and the actual functionality is not changed.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bf8d5b0770fa1ef5cba88c96580caa08d999d3b5.camel@linux.ibm.com
arch/powerpc/include/asm/vas.h
arch/powerpc/platforms/book3s/vas-api.c
arch/powerpc/platforms/powernv/vas-fault.c