Page MenuHomeFreeBSD

linuxkpi: make FPU sections thread-safe and NOCTX
ClosedPublic

Authored by val_packett.cool on Apr 22 2021, 11:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 10:13 PM
Unknown Object (File)
Tue, Nov 12, 8:21 PM
Unknown Object (File)
Sun, Nov 10, 3:08 PM
Unknown Object (File)
Oct 2 2024, 4:34 PM
Unknown Object (File)
Oct 2 2024, 2:28 PM
Unknown Object (File)
Sep 30 2024, 3:23 PM
Unknown Object (File)
Sep 29 2024, 7:19 PM
Unknown Object (File)
Sep 27 2024, 9:22 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/compat/linuxkpi/common/include/asm/fpu/api.h
35–36

Comment should follow style.

43

Use ANSI C definitions.

44–45

This is still completely melts if more than one thread does kernel_fpu_begin()

hselasky added inline comments.
sys/compat/linuxkpi/common/include/asm/fpu/api.h
44–45

Feel free to extend the LinuxKPI's "current" with this variable.

val_packett.cool retitled this revision from linuxkpi: use NOCTX FPU sections to linuxkpi: make FPU sections thread-safe and NOCTX.
sys/compat/linuxkpi/common/include/asm/fpu/api.h
43

Huh? The only non-ANSI thing I know of is "K&R style" local variables being declared before the opening { bracket. But these functions do not declare any locals at all…??

44–45

Feel free to extend the LinuxKPI's "current" with this variable.

OH! Thanks, that makes sense now. Where was this comment when I posted the original patch ;)

sys/compat/linuxkpi/common/include/asm/fpu/api.h
43

Oh.. you mean the whole "blank () args doesn't mean no args" thing I guess

This revision is now accepted and ready to land.Apr 22 2021, 5:00 PM

No one is stepping up to test on affected hardware, so I guess this can just be committed already

Make sure you bump the __FreeBSD_version when you commit this.

--HPS

well, I can't exactly commit anything myself ;)

I'll try to help you. Just be patient :-)

This broke at least i915kms from drm-kmod despite building successfully. I've reported there as well, since I'm not sure where any fixes need to go.