Paul Mundt
2ff9f317f1
sh: Tidy up some of the cpu legacy dma header mess.
...
This has turned in to quite a mess, and with CPUs that care using
dmaengine now it's about time to start cleaning up after the legacy DMA
code. For starters, kill off the stubs for the CPUs that don't do
anything, as well as all of the unused definitions. This leaves us with a
set of IRQs and base addresses we can deal with later.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-19 18:30:31 +09:00
Paul Mundt
0c6012313c
sh: Move sh4a dma header from cpu-sh4 to cpu-sh4a.
...
cpu-sh4a headers take priority over cpu-sh4 ones by virtue of the build
system, there's no need to try and mingle sh4a stuff in cpu-sh4.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-19 18:06:12 +09:00
Arnaldo Carvalho de Melo
16ee6576e2
Merge remote-tracking branch 'tip/perf/urgent' into perf/core
...
Merge reason: We are going to queue up a dependent patch:
"perf tools: Move parse event automated tests to separated object"
That depends on:
commit e7c72d8
perf tools: Add 'G' and 'H' modifiers to event parsing
Conflicts:
tools/perf/builtin-stat.c
Conflicted with the recent 'perf_target' patches when checking the
result of perf_evsel open routines to see if a retry is needed to cope
with older kernels where the exclude guest/host perf_event_attr bits
were not used.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com >
2012-05-18 13:13:33 -03:00
Paul Mundt
3b1267b90f
sh: dreamcast: Migrate off of deprecated dynamic IRQ API.
...
Switches from create_irq_nr() to irq_alloc_descs().
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 23:36:44 +09:00
Paul Mundt
051f923d92
sh: hd64461: Migrate off of deprecated dynamic IRQ API.
...
Switches from create_irq_nr() to irq_alloc_descs().
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 23:20:09 +09:00
Paul Mundt
d8fd35fc58
sh64: Fix up vmalloc fault range check.
...
With the previous attempt reverted this switches to conditionalizing the
end address. Nominally VMALLOC_END, but extended for P3_ADDR_MAX in the
store queue case.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 20:01:16 +09:00
Paul Mundt
c3e0af9879
Revert "sh: Ensure fixmap and store queue space can co-exist."
...
This reverts commit 20e7c297ef
.
With store queues enabled the area above P4SEG has special properties
from the MMU's point of view, which was causing fixmap failure. We'll
have to do something else to satisfy the vmalloc range check.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 19:30:05 +09:00
Paul Mundt
c1dbccc3c7
Merge branch 'sh/evt2irq-migration' into sh-latest
...
Conflicts:
arch/sh/kernel/cpu/sh3/setup-sh770x.c
arch/sh/kernel/cpu/sh3/setup-sh7710.c
arch/sh/kernel/cpu/sh3/setup-sh7720.c
arch/sh/kernel/cpu/sh4/setup-sh7750.c
arch/sh/kernel/cpu/sh4a/setup-sh7343.c
arch/sh/kernel/cpu/sh4a/setup-sh7366.c
arch/sh/kernel/cpu/sh4a/setup-sh7722.c
arch/sh/kernel/cpu/sh4a/setup-sh7723.c
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
arch/sh/kernel/cpu/sh4a/setup-sh7757.c
arch/sh/kernel/cpu/sh4a/setup-sh7763.c
arch/sh/kernel/cpu/sh4a/setup-sh7770.c
arch/sh/kernel/cpu/sh4a/setup-sh7785.c
arch/sh/kernel/cpu/sh4a/setup-sh7786.c
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 18:13:27 +09:00
Paul Mundt
58796ce67a
sh: legacy PCI evt2irq migration.
...
This converts over the legacy PCI IRQs to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 17:42:29 +09:00
Paul Mundt
9f38045643
sh: cpu dma evt2irq migration.
...
This migrates the cpu-family relative DMA IRQ definitions over to
evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 17:27:28 +09:00
Paul Mundt
6b1ef625c3
sh: sh7763rdp evt2irq migration.
...
Migrate sh7763rdp to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 17:14:34 +09:00
Paul Mundt
d66bd5f147
sh: sdk7780 evt2irq migration.
...
Migrate sdk7780 to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 17:13:52 +09:00
Paul Mundt
26819fcbea
sh: migor evt2irq migration.
...
Migrate migor to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 17:07:09 +09:00
Paul Mundt
ce932d0c55
sh: landisk evt2irq migration.
...
Migrate landisk to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 16:51:36 +09:00
Paul Mundt
aa82f9fcd0
sh: kfr2r09 evt2irq migration.
...
Migrate kfr2r09 to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:53:29 +09:00
Paul Mundt
9307d11584
sh: ecovec24 evt2irq migration.
...
Migrate ecovec24 to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:49:38 +09:00
Paul Mundt
9c23c516b5
sh: ap325rxa evt2irq migration.
...
Migrate ap325rxa to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:45:09 +09:00
Paul Mundt
4059e43a6e
sh: urquell evt2irq migration.
...
Migrate urquell to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:43:48 +09:00
Paul Mundt
c825abc4c7
sh: sh7785lcr evt2irq migration.
...
Migrate sh7785lcr to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:42:07 +09:00
Paul Mundt
b6bd263397
sh: hp6xx evt2irq migration.
...
Migrate hp6xx to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:38:50 +09:00
Paul Mundt
b894701e7c
sh: mach-se evt2irq migration.
...
Migrate Solution Engine boards to evt2irq backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:34:49 +09:00
Paul Mundt
a7734e5107
sh: sh7757lcr evt2irq migration.
...
Migrate sh7757lcr to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 15:18:10 +09:00
Paul Mundt
7b56934ce2
sh: magicpanelr2 evt2irq migration.
...
Migrate magicpanelr2 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:58:03 +09:00
Paul Mundt
d5d7e78368
sh: espt evt2irq migration.
...
Migrate espt to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:57:21 +09:00
Paul Mundt
03c5713c96
sh: edosk7760 evt2irq migration.
...
Migrate edosk7760 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:52:31 +09:00
Paul Mundt
0fa4c3912c
sh: edosk7705 evt2irq migration.
...
Migrate edosk7705 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:48:53 +09:00
Paul Mundt
85ee6b06cc
sh: sh7720 evt2irq migration.
...
Migrate SH7720 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:41:00 +09:00
Paul Mundt
5d0af76968
sh: sh7710/sh7712 evt2irq migration.
...
Migrate SH7710/SH7712 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:37:51 +09:00
Paul Mundt
a9302a64d4
sh: sh7706/sh7707/sh7709/sh7709 evt2irq migration.
...
Migrate SH770x to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:34:48 +09:00
Paul Mundt
e91b2a40a1
sh: sh7705 evt2irq migration.
...
Migrate SH7705 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:31:11 +09:00
Paul Mundt
79ce21a64b
sh: sh7760 evt2irq migration.
...
Migrate SH7760 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:28:11 +09:00
Paul Mundt
20688c3093
sh: sh7750 evt2irq migration.
...
Migrate SH7750 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:18:35 +09:00
Paul Mundt
054f0378a5
sh: sh4-202 evt2irq migration.
...
Migrate SH4-202 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:15:11 +09:00
Paul Mundt
d8be10bbf3
sh: sh-x3 evt2irq migration.
...
Migrate SH-X3 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:11:22 +09:00
Paul Mundt
ddb3208497
sh: sh7785 evt2irq migration.
...
Migrate SH7785 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 14:04:49 +09:00
Paul Mundt
89ed34f348
sh: sh7780 evt2irq migration.
...
Migrate SH7780 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 13:59:18 +09:00
Paul Mundt
f454314cff
sh: sh7770 evt2irq migration.
...
Migrate SH7770 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 13:52:22 +09:00
Paul Mundt
ea3235d962
sh: sh7763 evt2irq migration.
...
Migrate SH7763 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 13:46:34 +09:00
Paul Mundt
f5bccdc09a
sh: sh7757 evt2irq migration.
...
Migrate SH7757 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 13:24:34 +09:00
Paul Mundt
16e9515358
sh: sh7724 evt2irq migration.
...
Migrate SH7724 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 13:12:24 +09:00
Paul Mundt
933b954386
sh: sh7723 evt2irq migration.
...
Migrate SH7723 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 12:57:59 +09:00
Paul Mundt
29b53e375b
sh: sh7722 evt2irq migration.
...
Migrate SH7722 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 12:49:38 +09:00
Paul Mundt
58749400c5
sh: sh7366 evt2irq migration.
...
Migrate SH7366 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 12:43:11 +09:00
Paul Mundt
de410b5369
sh: sh7343 evt2irq migration.
...
Migrate SH7343 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 12:38:12 +09:00
Paul Mundt
e55387e9bf
sh: sh7786 evt2irq migration.
...
This migrates SH7786 to evt2irq() backed hwirq lookup rather than
using an open-coded calculation. This will make it possible to reposition
the vector base at a later point in time.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 12:29:22 +09:00
Paul Mundt
d0e05bb3d6
sh: mach-se: Migrate 7724SE off of deprecated dynamic IRQ API.
...
The generic hardirq layer provides all of the routines that we need these
days, so we don't require any of the dynamic IRQ API wrapping, and can
call in to irq_alloc_descs() directly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-18 10:20:33 +09:00
Nobuhiro Iwamatsu
00d6025e58
sh: Fix mistake of the member variable of plat_sci_port for SH7343
...
The current code was going to initialize irq of plat_sci_port.
Not irq, irqs is right.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com >
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-17 16:45:40 +09:00
Suresh Siddha
55ccf3fe3f
fork: move the real prepare_to_copy() users to arch_dup_task_struct()
...
Historical prepare_to_copy() is mostly a no-op, duplicated for majority of
the architectures and the rest following the x86 model of flushing the extended
register state like fpu there.
Remove it and use the arch_dup_task_struct() instead.
Suggested-by: Oleg Nesterov <oleg@redhat.com >
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org >
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com >
Link: http://lkml.kernel.org/r/1336692811-30576-1-git-send-email-suresh.b.siddha@intel.com
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: David Howells <dhowells@redhat.com >
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Paul Mundt <lethal@linux-sh.org >
Cc: Chris Zankel <chris@zankel.net >
Cc: Richard Henderson <rth@twiddle.net >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com >
Cc: Mike Frysinger <vapier@gentoo.org >
Cc: Mark Salter <msalter@redhat.com >
Cc: Aurelien Jacquiot <a-jacquiot@ti.com >
Cc: Mikael Starvik <starvik@axis.com >
Cc: Yoshinori Sato <ysato@users.sourceforge.jp >
Cc: Richard Kuo <rkuo@codeaurora.org >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: James E.J. Bottomley <jejb@parisc-linux.org >
Cc: Helge Deller <deller@gmx.de >
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com >
Cc: Heiko Carstens <heiko.carstens@de.ibm.com >
Cc: Chen Liqin <liqin.chen@sunplusct.com >
Cc: Lennox Wu <lennox.wu@gmail.com >
Cc: David S. Miller <davem@davemloft.net >
Cc: Chris Metcalf <cmetcalf@tilera.com >
Cc: Jeff Dike <jdike@addtoit.com >
Cc: Richard Weinberger <richard@nod.at >
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn >
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2012-05-16 15:16:26 -07:00
Paul Mundt
fd37e75ed5
sh64: Set additional fault code values.
...
The SSR.MD status amongst other things are already made available, which
can be used for encoding a more precise fault code value.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-14 17:46:49 +09:00
Paul Mundt
392c3822a6
sh64: Tidy up and consolidate the TLB miss fast path.
...
This unifies the fast-path TLB miss handler, allowing for further cleanup
and eventual utilization of a shared _32/_64 handler.
Signed-off-by: Paul Mundt <lethal@linux-sh.org >
2012-05-14 17:24:21 +09:00