Re: [1/5] powerpc: Test MSR_FP and MSR_VEC when enabling/flushing VSX

2017-08-17 Thread Michael Ellerman
On Wed, 2017-08-16 at 06:01:14 UTC, Benjamin Herrenschmidt wrote: > VSX uses a combination of the old vector registers, the old FP registers > and new "second halves" of the FP registers. > > Thus when we need to see the VSX state in the thread struct > (flush_vsx_to_thread) or when we'll use the

Re: [PATCH 1/5] powerpc: Test MSR_FP and MSR_VEC when enabling/flushing VSX

2017-08-16 Thread Benjamin Herrenschmidt
On Wed, 2017-08-16 at 16:01 +1000, Benjamin Herrenschmidt wrote: > VSX uses a combination of the old vector registers, the old FP registers > and new "second halves" of the FP registers. > > Thus when we need to see the VSX state in the thread struct > (flush_vsx_to_thread) or when we'll use the

[PATCH 1/5] powerpc: Test MSR_FP and MSR_VEC when enabling/flushing VSX

2017-08-16 Thread Benjamin Herrenschmidt
VSX uses a combination of the old vector registers, the old FP registers and new "second halves" of the FP registers. Thus when we need to see the VSX state in the thread struct (flush_vsx_to_thread) or when we'll use the VSX in the kernel (enable_kernel_vsx) we need to ensure they are all