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, Oct 31, 6:55 AM
Unknown Object (File)
Thu, Oct 30, 7:36 PM
Unknown Object (File)
Thu, Oct 30, 3:23 PM
Unknown Object (File)
Mon, Oct 27, 2:36 AM
Unknown Object (File)
Sat, Oct 25, 5:29 PM
Unknown Object (File)
Sat, Oct 25, 2:18 PM
Unknown Object (File)
Thu, Oct 23, 12:43 AM
Unknown Object (File)
Thu, Oct 16, 5:45 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