Make consistent_sync_page() highmem safe
PATCH 1/1 Make consistent_sync_page() highmem safe
Hi,
consistent_sync_page() is currently not highmem safe on non coherent platforms. PPC44x, for example, allows very large system memory (2GB). The following patch addresses this by kmap/kunmapping each segment of the buffer before calling consistent_sync(). It is interrupt safe since the streaming DMA API callers can be called from an interrupt context.
The code is only used on non-coherent systems and only if highmem support is enabled.
Comments?
-Matt
===== include/asm-ppc/kmap_types.h 1.14 vs edited =====
include/asm-ppc/kmap_types.h +1 -0
@@ -16,6 +16,7 @@KM_IRQ1 ,KM_SOFTIRQ0 ,KM_SOFTIRQ1 , +KM_PPC_SYNC_PAGE , KM_TYPE_NR };
===== arch/ppc/mm/cachemap.c 1.15 vs edited =====
arch/ppc/mm/cachemap.c +53 -5
75 lines not on this page · raw message
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/