]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pciconf: Use VM_MEMATTR_DEVICE on supported architectures
authorMarcin Wojtas <mw@FreeBSD.org>
Tue, 6 Apr 2021 15:00:05 +0000 (17:00 +0200)
committerMarcin Wojtas <mw@FreeBSD.org>
Tue, 6 Apr 2021 15:00:05 +0000 (17:00 +0200)
commit1c1ead9b94a1a731646327ec3b09e8f3acd577b8
tree278cf0fd87e5be29d243143dc14b9dfb7e3c3c93
parent57dbb3c25936f0d61fef152eb224ca86a73af0e9
pciconf: Use VM_MEMATTR_DEVICE on supported architectures

Some architectures - armv7, armv8 and riscv use VM_MEMATTR_DEVICE
when mapping device registers in kernel. Do the same in pciconf.
On armada8k SoC all reads from BARs mapped with hitherto attribute
(VM_MEMATTR_UNCACHEABLE) return 0xff's.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: kib
Obtained from: Semihalf
Sponsored by: Marvell
Differential revision: https://reviews.freebsd.org/D29603
usr.sbin/pciconf/pciconf.c