Re: [PATCH V5 06/14] powerpc/vas: Setup thread IRQ handler per VAS instance

2020-02-10 Thread Michael Neuling
On Sun, 2020-02-09 at 21:17 -0800, Haren Myneni wrote: > On Fri, 2020-02-07 at 16:57 +1100, Michael Neuling wrote: > > > /* > > > + * Process CRBs that we receive on the fault window. > > > + */ > > > +irqreturn_t vas_fault_handler(int irq, void *data) > > > +{ > > > + struct vas_instance *vinst =

Re: [PATCH V5 06/14] powerpc/vas: Setup thread IRQ handler per VAS instance

2020-02-09 Thread Haren Myneni
On Fri, 2020-02-07 at 16:57 +1100, Michael Neuling wrote: > > /* > > + * Process CRBs that we receive on the fault window. > > + */ > > +irqreturn_t vas_fault_handler(int irq, void *data) > > +{ > > + struct vas_instance *vinst = data; > > + struct coprocessor_request_block buf, *crb; > > +

Re: [PATCH V5 06/14] powerpc/vas: Setup thread IRQ handler per VAS instance

2020-02-06 Thread Michael Neuling
> /* > + * Process CRBs that we receive on the fault window. > + */ > +irqreturn_t vas_fault_handler(int irq, void *data) > +{ > + struct vas_instance *vinst = data; > + struct coprocessor_request_block buf, *crb; > + struct vas_window *window; > + void *fifo; > + > + /* > +

[PATCH V5 06/14] powerpc/vas: Setup thread IRQ handler per VAS instance

2020-01-22 Thread Haren Myneni
Setup thread IRQ handler per each VAS instance. When NX sees a fault on CRB, kernel gets an interrupt and vas_fault_handler will be executed to process fault CRBs. Read all valid CRBs from fault FIFO, determine the corresponding send window from CRB and process fault requests. Signed-off-by: Suk