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)
Wed, Nov 20, 12:55 PM
Unknown Object (File)
Wed, Nov 20, 5:23 AM
Unknown Object (File)
Wed, Nov 20, 3:06 AM
Unknown Object (File)
Thu, Nov 14, 1:50 AM
Unknown Object (File)
Wed, Nov 6, 10:05 AM
Unknown Object (File)
Sat, Nov 2, 6:31 PM
Unknown Object (File)
Oct 3 2024, 12:30 AM
Unknown Object (File)
Oct 3 2024, 12:16 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.