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)
Dec 9 2022, 1:33 AM
Unknown Object (File)
Dec 4 2022, 2:11 PM
Unknown Object (File)
Dec 4 2022, 2:39 AM
Unknown Object (File)
Dec 3 2022, 6:47 PM
Unknown Object (File)
Nov 26 2022, 12:50 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