{"push_id":631375739,"size":1,"distinct_size":1,"ref":"refs/heads/cm-12.0","head":"dcbec6766cd8173ab8a9e93abedde8826020c908","before":"cd5caad6d7a9e0d831fec694196b97a4eb2b94bc","commits":[{"sha":"dcbec6766cd8173ab8a9e93abedde8826020c908","author":{"email":"b702a20f0628efd8f619b9c92a0cb3de4b542e20@hotmail.com","name":"UpInTheAir"},"message":"ARM: implement  KERNEL_MODE_NEON [halaszk]\n\n7. Compiler flags updated (NEON)\n\n6. ARM: only allow kernel mode neon with AEABI\nThis prevents the linker erroring with:\narm-linux-ld: error: arch/arm/lib/xor-neon.o uses VFP instructions, whereas arch/arm/lib/built-in.o does not\narm-linux-ld: failed to merge target specific data of file arch/arm/lib/xor-neon.o\nThis is due to the non-neon files being marked as containing FPA data/ instructions (even though they do not) being mixed with files which contain VFP, which is an incompatible floating point format.\nSigned-off-by: Russell King <rmk+kernel@arm.linux.org.uk>\n\n5. ARM: 7835/2: fix modular build of xor_blocks() with NEON enabled\nCommit 0195659 introduced a NEON accelerated version of the xor_blocks() function, but it needs the changes in this patch to allow it to be built as a module rather than statically into the kernel.\nThis patch creates a separate module xor-neon.ko which exports the NEON inner xor_blocks() functions depended upon by the regular xor.ko if it is built with CONFIG_KERNEL_MODE_NEON=y\nReported-by: Josh Boyer <jwboyer@fedoraproject.org>\nSigned-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\nSigned-off-by: Russell King <rmk+kernel@arm.linux.org.uk>\n\n4. ARM: crypto: add NEON accelerated XOR implementation\nAdd a source file xor-neon.c (which is really just the reference C implementation passed through the GCC vectorizer) and hook it up to the XOR framework.\nSigned-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\nAcked-by: Nicolas Pitre <nico@linaro.org>\n\n3. ARM: add support for kernel mode NEON\nIn order to safely support the use of NEON instructions in kernel mode, some precautions need to be taken:\n- the userland context that may be present in the registers (even if the NEON/VFP is currently disabled) must be stored under the correct task (which may not be 'current' in the UP case),\n- to avoid having to keep track of additional vfpstates for the kernel side, disallow the use of NEON in interrupt context and run with preemption disabled,\n- after use, re-enable preemption and re-enable the lazy restore machinery by disabling the NEON/VFP unit.\nThis patch adds the functions kernel_neon_begin() and kernel_neon_end() which take care of the above. It also adds the Kconfig symbol KERNEL_MODE_NEON to enable it.\nSigned-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>\nAcked-by: Nicolas Pitre <nico@linaro.org>\nSigned-off-by: Paul Reioux <reioux@gmail.com>\n\n2. ARM: be strict about FP exceptions in kernel mode\nThe support code in vfp_support_entry does not care whether the exception that caused it to be invoked occurred in kernel mode or in user mode. However, neither condition that could trigger this exception (lazy restore and VFP bounce to support code) is currently allowable in kernel mode.\nIn either case, print a message describing the condition before letting the undefined instruction handler run its course and trigger an oops.\nSigned-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>\nAcked-by: Nicolas Pitre <nico at linaro.org>\nSigned-off-by: Paul Reioux <reioux@gmail.com>\n\n1. ARM: move VFP init to an earlier boot stage\nIn order to use the NEON unit in the kernel, we should initialize it a bit earlier in the boot process so NEON users that like to do a quick benchmark at load time (like the xor_blocks or RAID-6 code) find the NEON/VFP unit already enabled.\nReplaced late_initcall() with core_initcall().\nSigned-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>\nAcked-by: Nicolas Pitre <nico at linaro.org>\nSigned-off-by: Paul Reioux <reioux@gmail.com>","distinct":true,"url":"https://api.github.com/repos/sigma-1/kernel_samsung_lt03wifi/commits/dcbec6766cd8173ab8a9e93abedde8826020c908"}]}