Skip to content

arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state

Julien Grall kvmarm linux-arm-kernel lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 5 repliesIn review
  2. v43 patches 4 repliesSuperseded
  3. v33 patches 8 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches8 repliesSuperseded
v1 RFC1 patch0 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64/fpsimd: Remove the prototype for sve_flush_cpu_state()arch/arm64/include/asm/fpsimd.h+0 -10 replies
2/3arch/arm64: fpsimd: Introduce fpsimd_save_and_flush_cpu_state() and use itarch/arm64/include/asm/fpsimd.h arch/arm64/kernel/fpsimd.c arch/arm64/kvm/fpsimd.c+15 -102 replies
3/3arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE statearch/arm64/include/asm/simd.h arch/arm64/kernel/fpsimd.c+89 -453 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDave MartinMarc Zyngier
1/3R-b
2/3R-b A-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state

Hi all,

This patch series keeps softirqs enabled while touching FPSIMD/SVE state. For more details on the impact see patch #3.

This patch series has been benchmarked on Linux 5.1-rc4 with defconfig.

On Juno2:
* hackbench 100 process 1000 (10 times)
* .7% quicker

On ThunderX 2:
* hackbench 1000 process 1000 (20 times)
* 3.4% quicker

Note that while the benchmark has been done on 5.1-rc4, the patch series is based on 5.2-rc1.

Cheers,

Julien Grall (3):
arm64/fpsimd: Remove the prototype for sve_flush_cpu_state() arch/arm64: fpsimd: Introduce fpsimd_save_and_flush_cpu_state() and
use it
arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state

 arch/arm64/include/asm/fpsimd.h |   5 +-
 arch/arm64/include/asm/simd.h   |  10 +--
 arch/arm64/kernel/fpsimd.c      | 139 +++++++++++++++++++++++++++-------------
 arch/arm64/kvm/fpsimd.c         |   4 +-
 4 files changed, 103 insertions(+), 55 deletions(-)
Signature · 1 line
2.11.0