Hi,
On 2023/3/6 20:03, maobibo wrote:
在 2023/3/6 17:59, Huacai Chen 写道:
Provide kernel_fpu_begin()/kernel_fpu_end() to allow the kernel itself
to use fpu. They can be used by some other kernel components, e.g., the
AMDGPU graphic driver for DCN.
Since kernel is compiled with -msoft-float, I guess hw fpu will not be
used in kernel by present:). However it is deserved to try.
This has been explained by Ruoyao, but we'd need such support anyway
when we have LSX/LASX support mainlined in the future and want to
accelerate various algorithms with those instructions. Maybe at that
time you'll want to port some of those too ;-)
--
WANG "xen0n" Xuerui
Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/