powerpc: Remove old unused icswx based coprocessor support
We have a whole pile of unused code to maintain the ACOP register, allocate coprocessor PIDs and handle ACOP faults. This mechanism was used for the HFI adapter on POWER7 which is dead and gone and whose driver never went upstream. It was used on some A2 core based stuff that also never saw the light of day. Take out all that code. There is still some POWER8 coprocessor code that uses icswx but it's kernel only and thus doesn't use any of that infrastructure. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
8f5ca0b319
commit
6ff4d3e966
@@ -45,8 +45,6 @@
|
||||
#include <asm/siginfo.h>
|
||||
#include <asm/debug.h>
|
||||
|
||||
#include "icswx.h"
|
||||
|
||||
static inline bool notify_page_fault(struct pt_regs *regs)
|
||||
{
|
||||
bool ret = false;
|
||||
@@ -389,19 +387,6 @@ static int __do_page_fault(struct pt_regs *regs, unsigned long address,
|
||||
int fault, major = 0;
|
||||
bool store_update_sp = false;
|
||||
|
||||
#ifdef CONFIG_PPC_ICSWX
|
||||
/*
|
||||
* we need to do this early because this "data storage
|
||||
* interrupt" does not update the DAR/DEAR so we don't want to
|
||||
* look at it
|
||||
*/
|
||||
if (error_code & ICSWX_DSI_UCT) {
|
||||
int rc = acop_handle_fault(regs, address, error_code);
|
||||
if (rc)
|
||||
return rc;
|
||||
}
|
||||
#endif /* CONFIG_PPC_ICSWX */
|
||||
|
||||
if (notify_page_fault(regs))
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user