]> 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)
commit21ad2240d6ac614ed5518f3f8f5b6a28dc056b61
tree2bde695676c21307fad818fdb2a3b3c5d2a2cb90
parentfc42f80a458dbc8199ba2f9465536854cfb665c4
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