From: Michael Hennerich Date: Wed, 10 Oct 2007 09:42:55 +0000 (+0800) Subject: Blackfin arch: flush/inv the correct range when using write back cache and fix bugs... X-Git-Tag: v2.6.24-rc1~1462^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a7d91d651f25005c4f507aebf9eab17e508889c;p=pandora-kernel.git Blackfin arch: flush/inv the correct range when using write back cache and fix bugs find by dmacopy - flush/inv the correct range - dmacopy test failed when policy is write_back - invalidate before dma http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3367 It's the cache invalidate what is causing the issue. There is no invalidate only instruction it's always: FLUSHINV So when we "invalidate" after the DMA we might (do) overwrite freshly dma'ed data by dirty Cache WB content. Fixed by moving the "invalidate" at the beginning of dma_memcpy. Signed-off-by: Michael Hennerich Signed-off-by: Bryan Wu --- Reading git-diff-tree failed