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
F116042638: D29603.diff
Thu, May 1, 11:58 PM
Unknown Object (File)
Sat, Apr 12, 7:45 AM
Unknown Object (File)
Mar 21 2025, 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
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