Re: [PATCH 06/14] powerpc/vas: Setup fault handler per VAS instance

2019-11-27 Thread Christoph Hellwig
> > +struct task_struct *fault_handler; > + > +void vas_wakeup_fault_handler(int virq, void *arg) > +{ > + struct vas_instance *vinst = arg; > + > + atomic_inc(&vinst->pending_fault); > + wake_up(&vinst->fault_wq); > +} > + > +/* > + * Fault handler thread for each VAS instance and pr

[PATCH 06/14] powerpc/vas: Setup fault handler per VAS instance

2019-11-26 Thread Haren Myneni
Fault handler is created as kernel thread for each VAS instance and invoked whenever NX generates page fault. This thread reads CRBs from fault FIFO and process them. Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Haren Myneni --- arch/powerpc/platforms/powernv/vas-fault.c | 54 +++