Page MenuHomeFreeBSD

arm64: Enable SVE in userspace
ClosedPublic

Authored by andrew on Jan 4 2024, 12:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 7, 11:04 AM
Unknown Object (File)
Mon, Mar 3, 11:02 PM
Unknown Object (File)
Sun, Mar 2, 7:03 PM
Unknown Object (File)
Fri, Feb 28, 11:54 AM
Unknown Object (File)
Wed, Feb 26, 9:32 AM
Unknown Object (File)
Wed, Feb 19, 3:05 AM
Unknown Object (File)
Feb 9 2025, 1:24 AM
Unknown Object (File)
Feb 4 2025, 10:08 AM
Subscribers

Details

Summary

Report when SVE is present and allow it to be used by calling
sve_restore_state on an SVE exception from userspace.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Do we need to add something to the AT_HWCAP2 vector as well? Or is that stuff all SVE2 only?

sys/arm64/arm64/identcpu.c
1385–1386

This comment can go away now.

sys/arm64/arm64/trap.c
643

Almost all exception handlers do call userret(). If exceptions (pun is not intended) are intended (again not intended), then perhaps some explanation should be added in a form of comment.

Also, what about factoring out the userret call somewhere in a common place?

  • Remove an old comment
  • Call userret in the exception handler
  • Only tell userspace about SVE in FreeBSD userspace, Linux userspace support is missing needed syscalls
This revision is now accepted and ready to land.Aug 31 2024, 11:53 PM
This revision was automatically updated to reflect the committed changes.