History log of /arch/microblaze/include/asm/cacheflush.h
Revision Date Author Comments
0a2e1d23f2976287904e611b195f628a52b299b1 21-Jul-2009 Michal Simek <monstr@monstr.eu> microblaze: trivial: Add one empty line

Add one empty line to microblaze_ksyms.c.
Remove one empty line to cacheflush.h.

Signed-off-by: Michal Simek <monstr@monstr.eu>
a706729c3df22d5cf4a50a02c25f5ebfcb370c82 28-May-2010 Michal Simek <monstr@monstr.eu> microblaze: Fix GDB issue caused by cache issue

Used the same solution as SH. Changed len to PAGE_SIZE
in copy_to_user_page macro.

Implement flush_cache_page macro.

Signed-off-by: Michal Simek <monstr@monstr.eu>
6847ba91a190fe41d21779d6b382b47b2f4c50f4 24-May-2010 Michal Simek <monstr@monstr.eu> microblaze: Fix copy_to_user_page macro

copy_to_user_page macro is used in mm/memory.c:access_process_vm
function. This function is called from ptrace code (POKETEXT, POKEDATA)
which write data to memory. Microblaze handle physical address for
caches that's why there is virt_to_phys conversion.

There is potential one location which can caused the problem on WB system.

The important is take a look at write PTRACEs requests
(POKE/TEXT, DATA, USR).

Note:
Majority of Microblaze PTRACE code is moved to generic location
in newer kernel version that's why this solution should work on
the newest kernel version too.

linux/io.h is in cacheflush because of mm/nommu.c

Tested on a WB system - hello world debugging.

Signed-off-by: Michal Simek <monstr@monstr.eu>
79e87830faf22ca636b1a1d8f4deb430ea6e1c8b 04-Jun-2010 Michal Simek <monstr@monstr.eu> microblaze: Implement flush_dcache_page macro

flush_dcache_page macro is necessary to implement for
JFFS2 rootfs support on WB system.

Signed-off-by: Michal Simek <monstr@monstr.eu>
2ee2ff875a4d3bdb941e2bb1173cd927c09d5a67 10-Dec-2009 Michal Simek <monstr@monstr.eu> microblaze: Support for WB cache

Microblaze version 7.20.d is the first MB version which can be run
on MMU linux. Please do not used previous version because they contain
HW bug.
Based on WB support was necessary to redesign whole cache design.
Microblaze versions from 7.20.a don't need to disable IRQ and cache
before working with them that's why there are special structures for it.

Signed-off-by: Michal Simek <monstr@monstr.eu>
a1f55113ca2130f775eeebe799a401619bfd0295 15-Oct-2009 Michal Simek <monstr@monstr.eu> microblaze: Move cache macro from cache.h to cacheflush.h

Signed-off-by: Michal Simek <monstr@monstr.eu>
2d4dc890b5c8fabd818a8586607e6843c4375e62 26-Nov-2009 Ilya Loginov <isloginov@gmail.com> block: add helpers to run flush_dcache_page() against a bio and a request's pages

Mtdblock driver doesn't call flush_dcache_page for pages in request. So,
this causes problems on architectures where the icache doesn't fill from
the dcache or with dcache aliases. The patch fixes this.

The ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE symbol was introduced to avoid
pointless empty cache-thrashing loops on architectures for which
flush_dcache_page() is a no-op. Every architecture was provided with this
flush pages on architectires where ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE is
equal 1 or do nothing otherwise.

See "fix mtd_blkdevs problem with caches on some architectures" discussion
on LKML for more information.

Signed-off-by: Ilya Loginov <isloginov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Peter Horton <phorton@bitbox.co.uk>
Cc: "Ed L. Cashin" <ecashin@coraid.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
46fb9be93b15bd8315622ad2f85f9516c064a785 26-May-2009 Michal Simek <monstr@monstr.eu> microblaze_mmu_v2: Update cacheflush.h

Signed-off-by: Michal Simek <monstr@monstr.eu>
8beb8503bfa305cd7d9efa590517a9c01e2f97b4 27-Mar-2009 Michal Simek <monstr@monstr.eu> microblaze_v8: cache support

Reviewed-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
Acked-by: John Williams <john.williams@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>