David VomLehn
0d365753d0
MIPS: PowerTV: Separate PowerTV USB support from non-USB code
...
Separate USB code into a file separate from asic/asic_devices.
Separating the USB code from everything else in asic/asic_devices.c goes
a long way toward reducing the use of that file as a dumping ground for
everything that didn't seem to fit anywhere else.
Signed-off-by: David VomLehn <dvomlehn@cisco.com >
To: linux-mips@linux-mips.org
Cc: greg@kroah.com
Cc: linux-usb@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/1522/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:34 +01:00
Wu Zhangjin
5089ca9d31
MIPS: strip the un-needed sections of vmlinuz
...
This patch use "strip -s" to strip the .symtab and .strtab sections of
vmlinuz.
Note: This patch is based on http://patchwork.linux-mips.org/patch/1324/
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1383/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:34 +01:00
Wu Zhangjin
3c4b7fde94
MIPS: Clean up the calculation of VMLINUZ_LOAD_ADDRESS
...
We have calculated VMLINUZ_LOAD_ADDRESS in shell, which is indecipherable. This
patch rewrites it in C.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
To: linux-mips <linux-mips@linux-mips.org >
Cc: Alexander Clouter <alex@digriz.org.uk >
Cc: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Sam Ravnborg <sam@ravnborg.org >
Acked-by: Sam Ravnborg <sam@ravnborg.org >
Reviewed-by: Alexander Clouter <alex@digriz.org.uk >
Patchwork: https://patchwork.linux-mips.org/patch/1324/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:33 +01:00
Wu Zhangjin
1e1a77d698
MIPS: Clean up arch/mips/boot/compressed/decompress.c
...
- Remove several outdated comments
- Clearify the definition of zimage_start and zimage_size and the their
usage
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1382/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:32 +01:00
Wu Zhangjin
bdbffd9b8d
MIPS: Clean up arch/mips/boot/compressed/ld.script
...
- Remove unused symbols: _fdata, _text; only _edata and _end are needed by
head.S
- Remove unused sections: .sbss, .stab, .gptab.sdata, .gptab.sbss
- Change the alignment to 16 bytes to ensure it is greater than any
fundamental type of a MIPS compiler.
- Clean up comments
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1381/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2010-08-05 13:26:32 +01:00
Wu Zhangjin
c853d945d3
MIPS: Unify the suffix of compressed vmlinux.bin
...
The compressed vmlinux.bin is only a temp file so it's ok to use the same
suffix .z for them (.gz,.lzo,.lzma...) to remove several lines and simpify
the maintenance (no need to add the "suffix_$(xxx) := suffix" line).
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com >
To: linux-mips <linux-mips@linux-mips.org >
Cc: Alexander Clouter <alex@digriz.org.uk >
Cc: Manuel Lauss <manuel.lauss@gmail.com >
Cc: Sam Ravnborg <sam@ravnborg.org >
Patchwork: https://patchwork.linux-mips.org/patch/1323/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
---
2010-08-05 13:26:31 +01:00
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