All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] riscv: Add support to no-FPU systems
@ 2018-08-08  3:24 ` Alan Kao
  0 siblings, 0 replies; 24+ messages in thread
From: Alan Kao @ 2018-08-08  3:24 UTC (permalink / raw)
  To: linux-riscv

This patchset adds an option, CONFIG_FPU, to enable/disable floating-
point procedures.

Kernel's new behavior will be as follows:

* with CONFIG_FPU=y
  All FPU codes are reserved.  If no FPU is found during booting, a
  global flag will be set, and those functions will be bypassed with
  condition check to that flag.

* with CONFIG_FPU=n
  No floating-point instructions in kernel and all related settings
  are excluded.

Changes in v4:
 - Append a new patch to detect existence of FPU and followups.
 - Add SPDX header to newly created fpu.S.
 - Fix a build error, sorry for that.
 - Fix wording, style, etc.

Changes in v3:
 - Refactor the whole patch into independent ones.

Changes in v2:
 - Various code cleanups and style fixes.

Alan Kao (5):
  Extract FPU context operations from entry.S
  Refactor FPU code in signal setup/return procedures
  Cleanup ISA string setting
  Allow to disable FPU support
  Auto-detect whether a FPU exists

 arch/riscv/Kconfig                 |   9 +++
 arch/riscv/Makefile                |  19 +++---
 arch/riscv/include/asm/hwcap.h     |   3 +
 arch/riscv/include/asm/switch_to.h |  21 ++++++
 arch/riscv/kernel/Makefile         |   1 +
 arch/riscv/kernel/cpufeature.c     |  11 +++
 arch/riscv/kernel/entry.S          |  87 -----------------------
 arch/riscv/kernel/fpu.S            | 106 +++++++++++++++++++++++++++++
 arch/riscv/kernel/process.c        |   4 +-
 arch/riscv/kernel/signal.c         |  79 +++++++++++++--------
 10 files changed, 214 insertions(+), 126 deletions(-)
 create mode 100644 arch/riscv/kernel/fpu.S

-- 
2.18.0

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2018-08-21 19:36 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-08  3:24 [PATCH v4 0/5] riscv: Add support to no-FPU systems Alan Kao
2018-08-08  3:24 ` Alan Kao
2018-08-08  3:24 ` [PATCH v4 1/5] Extract FPU context operations from entry.S Alan Kao
2018-08-08  3:24   ` Alan Kao
2018-08-08  3:24 ` [PATCH v4 2/5] Refactor FPU code in signal setup/return procedures Alan Kao
2018-08-08  3:24   ` Alan Kao
2018-08-08  3:24 ` [PATCH v4 3/5] Cleanup ISA string setting Alan Kao
2018-08-08  3:24   ` Alan Kao
2018-08-20 22:22   ` Palmer Dabbelt
2018-08-20 22:22     ` Palmer Dabbelt
2018-08-21  2:47     ` Alan Kao
2018-08-21  2:47       ` Alan Kao
2018-08-21 19:36       ` Palmer Dabbelt
2018-08-21 19:36         ` Palmer Dabbelt
2018-08-08  3:24 ` [PATCH v4 4/5] Allow to disable FPU support Alan Kao
2018-08-08  3:24   ` Alan Kao
2018-08-08  7:07   ` Christoph Hellwig
2018-08-08  7:07     ` Christoph Hellwig
2018-08-08  3:24 ` [PATCH v4 5/5] Auto-detect whether a FPU exists Alan Kao
2018-08-08  3:24   ` Alan Kao
2018-08-08  7:18   ` Christoph Hellwig
2018-08-08  7:18     ` Christoph Hellwig
2018-08-20 22:22 ` [PATCH v4 0/5] riscv: Add support to no-FPU systems Palmer Dabbelt
2018-08-20 22:22   ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.