David VomLehn
51f1336d4d
MIPS: PowerTV: Add Gaia platform definitions.
...
Define ASIC address, memory preallocations, and initialization code for the
Gaia platform.
Signed-off-by: David VomLehn <dvomlehn@cisco.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1519/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:31 +01:00
Hauke Mehrtens
47a3486144
MIPS: BCM47xx: Fix nvram_getenv return value.
...
Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on
success and -9 if the value was not found. If the input was wrong -8
will be returned by cfe_getenv. Change nvram_getenv to do the same.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de >
Cc: Waldemar Brodkorb <wbx@openadk.org >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1520/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:31 +01:00
David Daney
2b5987abaf
MIPS: Octeon: Allow more than 3.75GB of memory with PCIe
...
We reserve the 3.75GB - 4GB region of PCIe address space for device to
device transfers, making the corresponding physical memory under
direct mapping unavailable for DMA.
To allow for PCIe DMA to all physical memory we map this chunk of
physical memory with BAR1. Because of the resulting discontinuity in
the mapping function, we remove a page of memory at each end of the
range so multi-page DMA buffers can never be allocated that span the
range.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1535/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:31 +01:00
David Daney
70dc6f045f
MIPS: Clean up notify_die() usage.
...
The sixth argument of notify_die() is a signal number, the fifth is a
trap number.
Instead of passing a signal number in a randomly selected argument,
pass it in the sixth. Extract the exception code from regs and pass
that as the trap number.
Get rid of redundant cast, and remove some gratuitous spaces.
Nobody actually does anything with the signal number or trap number,
but we might as well populate them with sensible values.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1532/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:30 +01:00
David Daney
7281cd2297
MIPS: Remove unused task_struct.trap_no field.
...
It is initialized to zero and only ever read. Remove it, and pass zero in
its place.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1531/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:30 +01:00
David Daney
9bb4d9dfd8
Documentation: Mention that KProbes is supported on MIPS
...
MIPS now has KProbes support, so kprobes.txt should reflect it.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: ananth@in.ibm.com
To: anil.s.keshavamurthy@intel.com
To: davem@davemloft.net
To: masami.hiramatsu.pt@hitachi.com
Cc: linux-kernel@vger.kernel.org
Cc: hschauhan@nulltrace.org
Patchwork: https://patchwork.linux-mips.org/patch/1527/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:30 +01:00
David Daney
8a1492370b
SAMPLES: kprobe_example: Make it print something on MIPS.
...
This KProbes example is a little useless if it doesn't print anything.
For MIPS print similar messages to those produced on x86 and PPC.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: ananth@in.ibm.com
To: anil.s.keshavamurthy@intel.com
To: davem@davemloft.net
To: masami.hiramatsu.pt@hitachi.com
Cc: linux-kernel@vger.kernel.org
Cc: hschauhan@nulltrace.org
Patchwork: https://patchwork.linux-mips.org/patch/1528/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:29 +01:00
David Daney
c1bf207d6e
MIPS: kprobe: Add support.
...
This patch is based on previous work by Sony and Himanshu Chauhan.
I have done some cleanup and implemented JProbes and KRETPROBES. The
KRETPROBES part is pretty much copied verbatim from powerpc. A possible
future enhance might be to factor out the common code.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
Cc: Himanshu Chauhan <hschauhan@nulltrace.org >
To: linux-mips@linux-mips.org
To: ananth@in.ibm.com ,
To: anil.s.keshavamurthy@intel.com
To: davem@davemloft.net
To: masami.hiramatsu.pt@hitachi.com
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1525/
Patchwork: https://patchwork.linux-mips.org/patch/1530/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:29 +01:00
David Daney
2ea6399f55
MIPS: Add instrunction format for BREAK and SYSCALL
...
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: ananth@in.ibm.com
To: anil.s.keshavamurthy@intel.com
To: davem@davemloft.net
To: masami.hiramatsu.pt@hitachi.com
Cc: linux-kernel@vger.kernel.org
Cc: hschauhan@nulltrace.org
Patchwork: https://patchwork.linux-mips.org/patch/1524/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:28 +01:00
David Daney
ef771ad4ad
MIPS: kprobes: Define regs_return_value()
...
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: ananth@in.ibm.com
To: anil.s.keshavamurthy@intel.com
To: davem@davemloft.net
To: masami.hiramatsu.pt@hitachi.com
Cc: linux-kernel@vger.kernel.org ,
Cc: hschauhan@nulltrace.org
Patchwork: https://patchwork.linux-mips.org/patch/1529/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:28 +01:00
Ralf Baechle
d7674c4f58
MIPS: Ritually kill stupid printk.
...
This belongs into userland.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:27 +01:00
Chandrakala Chavva
52a0f00b50
MIPS: Octeon: Disallow MSI-X interrupt and fall back to MSI interrupts.
...
MSI-X interrupts are not supported yet for Octeon, return error if
MSI-X interrupts are requested by driver so that the driver will fall
back to use MSI interrupts.
Signed-off-by: Chandrakala Chavva <cchavva@caviumnetworks.com >
To: linux-mips@linux-mips.org
Cc: David Daney <ddaney@caviumnetworks.com >
Patchwork: https://patchwork.linux-mips.org/patch/1506/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
2010-08-05 13:26:27 +01:00
David Daney
1aa2b2782a
MIPS: Octeon: Support 256 MSI on PCIe
...
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1507/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:27 +01:00
David Daney
0c2f4551df
MIPS: Decode core number for R2 CPUs.
...
The struct cpuinfo_mips.core field should be populated with the
physical core number. For R2 CPUs, this is carried in the low 10 bits
of Ebase.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1505/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:26 +01:00
Kulikov Vasiliy
fa90c87297
MIPS: SMTC: Use %p to format pointers
...
While at it, drop 0x prefix.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com >
To: kernel-janitors@vger.kernel.org
Cc: Chris Dearman <chris@mips.com >
Cc: "Robert P. J. Day" <rpjday@crashcourse.ca >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: André Goddard Rosa <andre.goddard@gmail.com >
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1458/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:26 +01:00
Wu Zhangjin
e608aadd17
MIPS: Loongson: Remove unused macro LOONGSON_PERFCNT_IRQ
...
LOONGSON2_PERFCNT_IRQ is used for the irq number of the performance
overflow interrupts; LOONGSON_PERFCNT_IRQ is unused so remove it.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1494/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:26 +01:00
Wu Zhangjin
de3bc0e7ba
MIPS: Loongson: Oprofile: add a new do_perfcnt_IRQ()
...
On FuLoong-2F IP6 is shared by the performance counter overflow interrupt
and the Bonito northbridge interrupt. To reduce overhead only call
do_IRQ() when oprofile is enabled to reduce overhead.
This patch adds an inline function do_perfcnt_IRQ() to hide the #if's ,
which can be shared by the other Loongson machines, i.e. gdium.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1492/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:24 +01:00
Wu Zhangjin
b8c7428af0
MIPS: Loongson: Remove set_irq_trigger_mode()
...
set_irq_trigger_mode() is not needed on all platforms so remove it
and move the related source code to mach_init_irq().
This will allow gdium to share the common irq.c without adding an empty
set_irq_trigger_mode().
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1493/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:23 +01:00
David Daney
4c076fb41a
WATCHDOG: Add watchdog driver for OCTEON SOCs
...
The OCTEON is a MIPS64 based SOC family with an on chip watchdog unit.
The driver is split into two source files one for the C code and one
for assembly. Assembly is needed to handle the NMI and then print the
machine state before the reboot is triggered.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
Cc: Wim Van Sebroeck <wim@iguana.be >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Russell King <rmk+kernel@arm.linux.org.uk >
Cc: Tony Lindgren <tony@atomide.com >
Cc: Marc Zyngier <maz@misterjones.org >
Cc: Thierry Reding <thierry.reding@avionic-design.de >
Cc: Sam Ravnborg <sam@ravnborg.org >
To: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org ,
Patchwork: https://patchwork.linux-mips.org/patch/1503/
Signed-off-by: Wim Van Sebroeck <wim@iguana.be >
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
create mode 100644 drivers/watchdog/octeon-wdt-main.c
create mode 100644 drivers/watchdog/octeon-wdt-nmi.S
2010-08-05 13:26:22 +01:00
David Daney
96ffa02d21
MIPS: Define ST0_NMI in asm/mipsregs.h
...
This is used by the forthcoming OCTEON watchdog patch.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1498/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:22 +01:00
David Daney
2dc2ae344e
MIPS: Export __cpu_number_map and __cpu_logical_map.
...
The forthcoming Octeon watchdog driver will use them.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1499/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:21 +01:00
David Daney
ea435464a1
MIPS: Octeon: Export prom_putchar().
...
The forthcoming watchdog driver will use it.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1499/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:21 +01:00
David Daney
22b0763a23
MIPS: uasm: Add option to export uasm API.
...
A 'select EXPORT_UASM' in Kconfig will cause the uasm to be exported
for use in modules. When it is exported, all the uasm data and code
cease to be __init and __initdata.
Also daddiu_bug cannot be __cpuinitdata if uasm is exported. The
cleanest thing is to just make it normal data.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1500/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:21 +01:00
David Daney
5b97c3f7ae
MIPS: uasm: Add BBIT0 and BBIT1 instructions
...
These are OCTEON specific instructions.
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1496/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:21 +01:00
David Daney
de6d5b555c
MIPS: uasm: Add drotr32 and uasm_i_drotr_safe.
...
Signed-off-by: David Daney <ddaney@caviumnetworks.com >
To: linux-mips@linux-mips.org
To: wim@iguana.be
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1495/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:20 +01:00