]> Git Repo - linux.git/commit
riscv: add support for kernel-mode FPU
authorSamuel Holland <[email protected]>
Fri, 29 Mar 2024 07:18:26 +0000 (00:18 -0700)
committerAndrew Morton <[email protected]>
Sun, 19 May 2024 21:36:19 +0000 (14:36 -0700)
commit77acc6b55ae46f52bfa4eca52c9fe627f5c3ba3f
treed801cdaaaf2962be7676ac27f27c80f836c355de
parentb0b8a15bb89e09e12aa6be8ae28128bb656338f1
riscv: add support for kernel-mode FPU

This is motivated by the amdgpu DRM driver, which needs floating-point
code to support recent hardware.  That code is not performance-critical,
so only provide a minimal non-preemptible implementation for now.

Support is limited to riscv64 because riscv32 requires runtime (libgcc)
assistance to convert between doubles and 64-bit integers.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Samuel Holland <[email protected]>
Acked-by: Palmer Dabbelt <[email protected]>
Reviewed-by: Palmer Dabbelt <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Acked-by: Christian König <[email protected]>
Cc: Alex Deucher <[email protected]>
Cc: Borislav Petkov (AMD) <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Masahiro Yamada <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nicolas Schier <[email protected]>
Cc: Russell King <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: WANG Xuerui <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
arch/riscv/Kconfig
arch/riscv/Makefile
arch/riscv/include/asm/fpu.h [new file with mode: 0644]
arch/riscv/kernel/Makefile
arch/riscv/kernel/kernel_mode_fpu.c [new file with mode: 0644]
This page took 0.051205 seconds and 4 git commands to generate.