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)
Fri, Mar 21, 4:34 AM
Unknown Object (File)
Feb 24 2025, 8:43 PM
Unknown Object (File)
Feb 24 2025, 8:22 PM
Unknown Object (File)
Feb 24 2025, 4:13 AM
Unknown Object (File)
Feb 23 2025, 11:40 AM
Unknown Object (File)
Feb 7 2025, 7:43 PM
Unknown Object (File)
Feb 3 2025, 6:23 PM
Unknown Object (File)
Jan 26 2025, 6:22 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 Not Applicable
Unit
Tests Not Applicable