Page MenuHomeFreeBSD

pciconf: Use VM_MEMATTR_DEVICE on supported architectures
ClosedPublic

Authored by kd on Apr 6 2021, 1:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 25, 8:09 PM
Unknown Object (File)
Wed, Dec 17, 9:09 AM
Unknown Object (File)
Thu, Dec 4, 8:53 AM
Unknown Object (File)
Nov 13 2025, 4:20 PM
Unknown Object (File)
Nov 7 2025, 3:31 PM
Unknown Object (File)
Nov 5 2025, 2:44 PM
Unknown Object (File)
Nov 5 2025, 2:44 PM
Unknown Object (File)
Nov 5 2025, 2:43 PM
Subscribers
None

Details

Summary

Some architectures - armv7, armv8 and riscv use VM_MEMATTR_DEVICE when mapping device registers in kernel.
Do the same in pciconf when mmaping BARs.
On armada8k SoC all reads from BARs mapped with VM_MEMATTR_UNCACHEABLE return 0xffs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped