]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/vas: Return paste instruction failure if no active window
authorHaren Myneni <haren@linux.ibm.com>
Tue, 1 Mar 2022 01:13:15 +0000 (17:13 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Mar 2022 13:04:55 +0000 (00:04 +1100)
commit71c877dfd3718b21ea85c2d633b7f4b6ed25dc18
tree61ab44d743276c628bb355a87aadb859d634f6d8
parent3ab403177e68b3ce424f320b5e453c59fc14a2fc
powerpc/vas: Return paste instruction failure if no active window

The VAS window may not be active if the system looses credits and
the NX generates page fault when it receives request on unmap
paste address.

The kernel handles the fault by remap new paste address if the
window is active again, Otherwise return the paste instruction
failure if the executed instruction that caused the fault was
a paste.

Signed-off-by: Nicholas Piggin <npiggin@gmail.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/492b9aefd593061d51dda67ee4d2fc449c000dce.camel@linux.ibm.com
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/platforms/book3s/vas-api.c