Re: [PATCH] powerpc/vas: do not set uses_vas for kernel windows

2018-02-09 Thread Sukadev Bhattiprolu
Nicholas Piggin [npig...@gmail.com] wrote: > cp_abort is only required or user windows, because kernel context > must not be preempted between a copy/paste pair. Yes, that is a good optimization. > > Without this patch, the init task gets used_vas set when it runs > the nx842_powernv_init initca

[PATCH] powerpc/vas: do not set uses_vas for kernel windows

2018-02-08 Thread Nicholas Piggin
cp_abort is only required or user windows, because kernel context must not be preempted between a copy/paste pair. Without this patch, the init task gets used_vas set when it runs the nx842_powernv_init initcall, which opens windows for kernel usage. used_vas is then never cleared anywhere, so it