Page MenuHomeFreeBSD

riscv: rework CPU identification [6/6]
ClosedPublic

Authored by mhorne on Apr 25 2023, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 21, 1:30 PM
Unknown Object (File)
Thu, Mar 21, 1:30 PM
Unknown Object (File)
Dec 23 2023, 12:16 AM
Unknown Object (File)
Dec 12 2023, 4:48 PM
Unknown Object (File)
Oct 30 2023, 3:43 PM
Unknown Object (File)
Jun 27 2023, 8:48 AM
Unknown Object (File)
Jun 22 2023, 6:10 PM
Unknown Object (File)
Jun 16 2023, 3:54 AM
Subscribers

Details

Summary

Detect and report the supported MMU for each CPU. This information is
not currently needed elsewhere in the kernel, but should be trivial to
export in the future.

Diff Detail

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

Event Timeline

This information is not currently needed elsewhere in the kernel

The riscv kernel can run in SV48 mode if the user specifies a tunable requesting it. Presumably pmap_bootstrap() should be explicitly checking for that capability?

This information is not currently needed elsewhere in the kernel

The riscv kernel can run in SV48 mode if the user specifies a tunable requesting it. Presumably pmap_bootstrap() should be explicitly checking for that capability?

I did look at that bit where you set up satp, and it recovers gracefully when SV48 is not supported so I didn't bother making this info public. But it would not hurt to do so.

Export mmu_caps to the rest of the kernel and check it in pmap_bootstrap().

This revision is now accepted and ready to land.May 11 2023, 3:31 PM
This revision now requires review to proceed.May 16 2023, 6:09 PM
This revision is now accepted and ready to land.May 22 2023, 4:14 PM
This revision was automatically updated to reflect the committed changes.