Page MenuHomeFreeBSD

riscv: Implement pmap_mapdev_attr
ClosedPublic

Authored by jrtc27 on Oct 10 2021, 7:08 PM.
Tags
None
Referenced Files
F148704231: D32445.diff
Thu, Mar 19, 6:00 PM
Unknown Object (File)
Wed, Mar 18, 2:44 AM
Unknown Object (File)
Tue, Mar 17, 7:01 AM
Unknown Object (File)
Tue, Mar 17, 6:56 AM
Unknown Object (File)
Mon, Mar 16, 4:28 AM
Unknown Object (File)
Thu, Mar 12, 11:49 PM
Unknown Object (File)
Sun, Mar 8, 7:45 PM
Unknown Object (File)
Fri, Mar 6, 7:30 PM
Subscribers

Details

Summary

This is needed for LinuxKPI's _ioremap_attr. This reuses the generic
implementation introduced for aarch64, and itself requires implementing
pmap_kenter, which is trivial to do given riscv currently treats all
mapping attributes the same due to the Svpbmt extension not yet being
ratified and in hardware.

MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 42056
Build 38944: arc lint + arc unit

Event Timeline

markj added inline comments.
sys/riscv/riscv/pmap.c
917
This revision is now accepted and ready to land.Oct 11 2021, 5:24 PM
mhorne added inline comments.
sys/riscv/include/pmap.h
148

It would be nice to eventually land on a common interface for pmap_kenter() across various architectures, but matching arm64 here is sensible and required.

sys/riscv/include/pmap.h
148

Yeah, though most other architectures assume size is PAGE_SIZE so would require a bit more work than just adding arguments to their implementations

sys/riscv/riscv/pmap.c
917

Good point, will do on commit

This revision was automatically updated to reflect the committed changes.