ARM: Fix dma_dcache_sync() for early allocated memory.
authormmel <mmel@FreeBSD.org>
Wed, 18 Nov 2015 16:07:01 +0000 (16:07 +0000)
committermmel <mmel@FreeBSD.org>
Wed, 18 Nov 2015 16:07:01 +0000 (16:07 +0000)
commitdffc12a8195a5cf83819f38cd68a10b3f32ed1bd
treeb3b7087d7ffdf96f11dbc57e0cf2c89c5211efea
parentc6a9e07a8c939ee503f665346aa503b4fa99fae0
ARM: Fix dma_dcache_sync() for early allocated memory.
Drivers can request DMA to buffers that are not in memory represented
in the vm page arrays. Because of this, store KVA of already mapped
buffer to synclist and use it in dma_dcache_sync().

Reviewed by: jah
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D4120
sys/arm/arm/busdma_machdep-v6.c