Re: [PATCH v3 05/10] VAS: Define helpers to init window context

2017-03-24 Thread Michael Neuling
> > > + val = 0ULL; > > > + if (user_win) { > > > + val = SET_FIELD(VAS_XLATE_MSR_DR, val, true); > > > + val = SET_FIELD(VAS_XLATE_MSR_TA, val, false); > > > + val = SET_FIELD(VAS_XLATE_MSR_PR, val, true); > > > + val = SET_FIELD(VAS_XLATE_MSR_US, val, false); > >

Re: [PATCH v3 05/10] VAS: Define helpers to init window context

2017-03-24 Thread Sukadev Bhattiprolu
Michael Neuling [mi...@neuling.org] wrote: > On Thu, 2017-03-16 at 20:33 -0700, Sukadev Bhattiprolu wrote: > >  #ifdef CONFIG_PPC_4K_PAGES > > @@ -336,9 +337,6 @@ struct vas_window { > >   /* Feilds applicable only to receive windows */ > >   enum vas_cop_type cop; > >   atomic_t num_txwins;

Re: [PATCH v3 05/10] VAS: Define helpers to init window context

2017-03-23 Thread Michael Neuling
On Thu, 2017-03-16 at 20:33 -0700, Sukadev Bhattiprolu wrote: > Define helpers to initialize window context registers of the VAS > hardware. These will be used in follow-on patches when opening/closing > VAS windows. > > Signed-off-by: Sukadev Bhattiprolu > --- > Changelog[v3] > - Have call

[PATCH v3 05/10] VAS: Define helpers to init window context

2017-03-16 Thread Sukadev Bhattiprolu
Define helpers to initialize window context registers of the VAS hardware. These will be used in follow-on patches when opening/closing VAS windows. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v3] - Have caller, rather than init_xlate_regs() reset window regs so we don't re