summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2019-08-26 17:18:42 +0000
committerrin <rin@NetBSD.org>2019-08-26 17:18:42 +0000
commit59b03441e71de7ea46166177d6ba40ba06e439ea (patch)
treeb97b2f33986c8f864d6d9cbb89f0aa040d7fc32d /sys/dev
parenta6fbed0cd360a5346f582aaf8e0c325bd471f100 (diff)
PR kern/54486
Workaround for alignment faults on ARMv6+, at least occur with axe(4) and athn(4) drivers. For ARMv6+, unaligned access is enabled by default. However, it cannot be used for non-cacheable memory, which is used as DMA buffers. This results in alignment faults above. A real fix is to use cacheable memory as DMA buffers. However, it breaks some drivers, awge(4) and vchiq(4) at least. Until we figure out problems and fix them, we choose a fail-safe workaround here; forbid unaligned memory access for whole kernel. Affects on performance is negligibly small as far as we can see. XXX pullup netbsd-9
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions