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, Mar 7, 3:14 PM
Unknown Object (File)
Feb 20 2024, 9:27 AM
Unknown Object (File)
Feb 16 2024, 10:21 AM
Unknown Object (File)
Feb 16 2024, 4:54 AM
Unknown Object (File)
Feb 16 2024, 4:54 AM
Unknown Object (File)
Feb 16 2024, 4:27 AM
Unknown Object (File)
Feb 13 2024, 8:54 PM
Unknown Object (File)
Feb 13 2024, 3:42 AM
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