HomeFreeBSD

pciconf: Use VM_MEMATTR_DEVICE on supported architectures

Description

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

(cherry picked from commit 1c1ead9b94a1a731646327ec3b09e8f3acd577b8)

Details

Provenance
mwAuthored on Apr 6 2021, 3:00 PM
andrewCommitted on Jun 13 2021, 3:49 PM
Reviewer
kib
Differential Revision
D29603: pciconf: Use VM_MEMATTR_DEVICE on supported architectures
Parents
rGb0c251b0dea8: zfs: merge openzfs/zfs@c3b60eded (zfs-2.1-release) into stable/13
Branches
Unknown
Tags
Unknown