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)
Mon, Sep 23, 7:14 AM
Unknown Object (File)
Sun, Sep 22, 2:02 PM
Unknown Object (File)
Thu, Sep 19, 7:45 PM
Unknown Object (File)
Thu, Sep 19, 5:25 AM
Unknown Object (File)
Wed, Sep 18, 9:12 PM
Unknown Object (File)
Mon, Sep 16, 10:08 AM
Unknown Object (File)
Tue, Sep 10, 7:19 PM
Unknown Object (File)
Sun, Sep 8, 10:55 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.