diff options
author | mw <mw@FreeBSD.org> | 2017-07-28 11:51:55 +0000 |
---|---|---|
committer | Luiz Souza <luiz@netgate.com> | 2017-09-06 11:56:57 -0500 |
commit | 14980a1893e5f1ae021dc903cdc911576371dfeb (patch) | |
tree | c3294bd91323c76cc09d7aee2f112189e70135b6 /sys/arm/mv | |
parent | 611ac2d6672db236d44248dd06e1ccb80dfa8462 (diff) | |
download | FreeBSD-src-14980a1893e5f1ae021dc903cdc911576371dfeb.zip FreeBSD-src-14980a1893e5f1ae021dc903cdc911576371dfeb.tar.gz |
Fix remapping VM attributes on Armada 38x
pmap_remap_vm_attr() function requires indexes to
pte2_attr_tab as the arguments (VM_MEMATTR_).
Mistakenly, instead of them, actual values from the
table were used (PTE2_ATTR_), when applying
work-around for Marvell Armada 38x SoCs.
Submitted by: Marcin Wojtas (mw@semihalf.com)
Reported by: Rafal Kozik (rk@semihalf.com)
Reviewed by: cognet (mentor)
Approved by: cognet (mentor)
Obtained from: Semihalf
Differential Revision: https://reviews.freebsd.org/D11704
(cherry picked from commit bb4af4519f7b912bfc8baa95b20cbd1a9fd0f8b7)
Diffstat (limited to 'sys/arm/mv')
-rw-r--r-- | sys/arm/mv/mv_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/mv/mv_machdep.c b/sys/arm/mv/mv_machdep.c index e161d91..4de77cd 100644 --- a/sys/arm/mv/mv_machdep.c +++ b/sys/arm/mv/mv_machdep.c @@ -301,7 +301,7 @@ platform_late_init(void) * To avoid that, map all registers including PCIe IO * as strongly ordered instead of device memory. */ - pmap_remap_vm_attr(PTE2_ATTR_DEVICE, PTE2_ATTR_SO); + pmap_remap_vm_attr(VM_MEMATTR_DEVICE, VM_MEMATTR_SO); /* Set IO Sync Barrier bit for all Mbus devices */ if (armada38x_win_set_iosync_barrier() != 0) |