Re: [PATCH v10 01/18] arm64: fpsimd: Fix TIF_FOREIGN_FPSTATE after invalidating cpu regs

2018-05-23 Thread Catalin Marinas
On Tue, May 22, 2018 at 05:05:02PM +0100, Dave P Martin wrote: > fpsimd_last_state.st is set to NULL as a way of indicating that > current's FPSIMD registers are no longer loaded in the cpu. In > particular, this is done when the kernel temporarily uses or > clobbers the FPSIMD registers for its o

Re: [PATCH v10 01/18] arm64: fpsimd: Fix TIF_FOREIGN_FPSTATE after invalidating cpu regs

2018-05-23 Thread Alex Bennée
Dave Martin writes: > fpsimd_last_state.st is set to NULL as a way of indicating that > current's FPSIMD registers are no longer loaded in the cpu. In > particular, this is done when the kernel temporarily uses or > clobbers the FPSIMD registers for its own purposes, as in CPU PM or > kernel-mo

Re: [PATCH v10 01/18] arm64: fpsimd: Fix TIF_FOREIGN_FPSTATE after invalidating cpu regs

2018-05-23 Thread Christoffer Dall
On Tue, May 22, 2018 at 05:05:02PM +0100, Dave Martin wrote: > fpsimd_last_state.st is set to NULL as a way of indicating that > current's FPSIMD registers are no longer loaded in the cpu. In > particular, this is done when the kernel temporarily uses or > clobbers the FPSIMD registers for its own