Page MenuHomeFreeBSD

riscv: Add a stub pmap_change_attr implementation
ClosedPublic

Authored by jrtc27 on Sep 16 2021, 11:31 PM.
Tags
None
Referenced Files
F102385663: D31996.id.diff
Mon, Nov 11, 1:34 PM
F102384136: D31996.diff
Mon, Nov 11, 1:04 PM
Unknown Object (File)
Wed, Nov 6, 10:06 AM
Unknown Object (File)
Tue, Nov 5, 1:44 PM
Unknown Object (File)
Sat, Nov 2, 7:29 PM
Unknown Object (File)
Oct 1 2024, 11:29 PM
Unknown Object (File)
Sep 29 2024, 9:39 PM
Unknown Object (File)
Sep 28 2024, 9:27 AM
Subscribers

Details

Summary

pmap_change_attr is required by drm-kmod so we need the function to
exist. Since the Svpbmt extension is on the horizon we will likely end
up with a real implementation of it, so this stub implementation does
all the necessary page table walking to validate the input, ensuring
that no new errors are returned once it's implemented fully (other than
due to out of memory conditions when demoting L2 entries) and providing
a skeleton for that future implementation.

MFC after: 1 week

Diff Detail

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

Event Timeline

Handle L1 pages as those are uesd for the direct map

QEMU's devices are seemingly all too simple to ever hit the direct map case, but
on real hardware if_cgem quickly trips up on this and panics during attach in
pmap_page_set_memattr.

This revision is now accepted and ready to land.Sep 17 2021, 2:31 PM