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)
commit3b26797350352479f37216d674c8e5d126faab66
tree2bde695676c21307fad818fdb2a3b3c5d2a2cb90
parent3856aa542d90ed79cd5ed4cfd828b1fb04017131
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