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
F108594969: D29603.id86909.diff
Sun, Jan 26, 6:22 PM
Unknown Object (File)
Fri, Jan 24, 5:35 PM
Unknown Object (File)
Fri, Jan 17, 3:32 PM
Unknown Object (File)
Wed, Jan 8, 8:39 AM
Unknown Object (File)
Sat, Jan 4, 8:27 PM
Unknown Object (File)
Sat, Jan 4, 7:57 PM
Unknown Object (File)
Dec 6 2024, 5:25 PM
Unknown Object (File)
Dec 5 2024, 6:32 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