History log of /arch/sh/mm/cache-sh5.c
Revision Date Author Comments
b595076a180a56d1bb170e6eceda6eb9d76f4cd3 01-Nov-2010 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> tree-wide: fix comment/printk typos

"gadget", "through", "command", "maintain", "maintain", "controller", "address",
"between", "initiali[zs]e", "instead", "function", "select", "already",
"equal", "access", "management", "hierarchy", "registration", "interest",
"relative", "memory", "offset", "already",

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
3af539e59cf3213cbe31ce7008f1db51c52665ca 12-Nov-2009 Paul Mundt <lethal@linux-sh.org> sh64: Fix up reworked cache op build.

This gets the build fixed up for the sh64 cache enabled case.
Disabling still needs further abstraction for independent I/D-cache
disabling.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
983f4c514c4c9ddac1077a2c805fd16cbe3f7487 01-Sep-2009 Paul Mundt <lethal@linux-sh.org> Revert "sh: Kill off now redundant local irq disabling."

This reverts commit 64a6d72213dd810dd55bd0a503c36150af41c3c3.

Unfortunately we can't use on_each_cpu() for all of the cache ops, as
some of them only require preempt disabling. This seems to be the same
issue that impacts the mips r4k caches, where this code was based on.
This fixes up a deadlock that showed up in some IRQ context cases.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
64a6d72213dd810dd55bd0a503c36150af41c3c3 21-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Kill off now redundant local irq disabling.

on_each_cpu() takes care of IRQ and preempt handling, the localized
handling in each of the called functions can be killed off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f26b2a562b46ab186c8383993ab1332673ac4a47 21-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Make cache flushers SMP-aware.

This does a bit of rework for making the cache flushers SMP-aware. The
function pointer-based flushers are renamed to local variants with the
exported interface being commonly implemented and wrapping as necessary.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
8c41cdcaffb09dca8e6ad7d4d8f885e0b86b9002 15-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh64: Kill off dead i/d-cache disabled bits.

These will be handled through the shared cache interface instead, and
they are presently undefined anyways.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
94ecd224c940830e2f2724c3860eb7fb74c15d31 15-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Fix up the SH-5 build with caches enabled.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
37443ef3f0406e855e169c87ae3f4ffb4b6ff635 14-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Migrate SH-4 cacheflush ops to function pointers.

This paves the way for allowing individual CPUs to overload the
individual flushing routines that they care about without having to
depend on weak aliases. SH-4 is converted over initially, as it wires
up pretty much everything. The majority of the other CPUs will simply use
the default no-op implementation with their own region flushers wired up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
916e97834e023f89b31f796b53cc9c7956e7fe17 15-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Kill off unused flush_icache_user_range().

We use flush_cache_page() outright in copy_to_user_page(), and nothing
else needs it, so just kill it off. SH-5 still defines its own version,
but that too will go away in the same fashion once it converts over.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ecba1060583635ab55092072441ff903b5e9a659 15-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Centralize the CPU cache initialization routines.

This provides a central point for CPU cache initialization routines.
This replaces the antiquated p3_cache_init() method, which the vast
majority of CPUs never cared about.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2739742c24f1a55365e71f0722bfdce8994e9c4e 15-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh: Provide the kmap_coherent() interface generically.

This plugs in kmap_coherent() for the non-SH4 cases to permit the
pg-mmu.c bits to be used generically across all CPUs. SH-5 is still in
the TODO state, but will move over to fixmap and the generic interface
gradually.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
795687265d1b6f666d02ff56f6c1679a8db160a9 14-Aug-2009 Paul Mundt <lethal@linux-sh.org> sh64: Wire up the shared __flush_xxx_region() flushers.

Now with all of the prep work out of the way, kill off the SH-5 variants
and use the SH-4 version directly. This also takes advantage of the
unrolling that was previously done for the new version.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
0dfae7d5a21901b28ec0452d71be64adf5ea323e 27-Jul-2009 Paul Mundt <lethal@linux-sh.org> sh: Use the now generic SH-4 clear/copy page ops for all MMU platforms.

Now that the SH-4 page clear/copy ops are generic, they can be used for
all platforms with CONFIG_MMU=y. SH-5 remains the odd one out, but it too
will gradually be converted over to using this interface.

SH-3 platforms which do not contain aliases will see no impact from this
change, while aliasing SH-3 platforms will get the same interface as
SH-4.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2fedaacdc07e053d93e0607047a96d282f62aca2 09-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Cleanup irqflags size mismatch on SH-5 build.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ccd805874198c248498b5f269656ec14397eeede 24-Apr-2008 Paul Mundt <lethal@linux-sh.org> sh64: Fixup the nommu build.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
38350e0a00f973dd9c6556beeff0f7eb5ef3f58b 13-Feb-2008 Paul Mundt <lethal@linux-sh.org> sh: Get SH-5 caches working again post-unification.

A number of cleanups to get the SH-5 cache management code in line with
the rest of the SH backend.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f1f8926a94132e6433b559a3eced65404226f5cd 12-Feb-2008 Paul Mundt <lethal@linux-sh.org> sh: Update SH-5 flush_cache_sigtramp() for API changes.

Previously this took an explicit range, update this to use the same
behaviour as the rest of the SH parts where we simply flush out a line
from the start address.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
a23ba43573a24c351640bc19c06c701798fe6e25 28-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: comment tidying for sh64->sh migration.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
60b2249d45d44bd3494d55f5ea4bccd25c7f8281 21-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Move over SH-5 TLB and cache support code.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>