Re: [PATCH v11 16/40] arm64/sme: Implement streaming SVE context switching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 07, 2022 at 03:20:45PM +0000, Mark Brown wrote:
> When in streaming mode we need to save and restore the streaming mode
> SVE register state rather than the regular SVE register state. This uses
> the streaming mode vector length and omits FFR but is otherwise identical,
> if TIF_SVE is enabled when we are in streaming mode then streaming mode
> takes precedence.
> 
> This does not handle use of streaming SVE state with KVM, ptrace or
> signals. This will be updated in further patches.

I think I get this but a state diagram somewhere would help ;).

IIUC you don't disable SM on a context switch, you just leave it in
place until a task_fpsimd_load(). It shouldn't be a problem as
kernel_neon_begin() disables it anyway.

Reviewed-by: Catalin Marinas <catalin.marinas@xxxxxxx>



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux