aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-05i915: when kgdb is active display compression should be offJason Wessel1-0/+4
If the HW compression is left on, the call backs from the HW will crash the kernel. The only time this code is called is when kernel mode setting is in use with kgdb and the kdb shell. The atomic display pipe handler callback will reset everything when kgdb restores kernel to the run state. Signed-off-by: Jason Wessel <[email protected]> Acked-by: Jesse Barnes <[email protected]> CC: David Airlie <[email protected]>
2010-08-05drm/i915: use new fb debug hooksJesse Barnes2-1/+99
Implement atomic kernel mode settings using the fb layer's debug hook system for supporting debugger interaction. Signed-off-by: Jesse Barnes <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05drm: add KGDB/KDB supportJesse Barnes3-0/+81
Implement the callbacks for KDB entry/exit via the drm helpers. Signed-off-by: Jesse Barnes <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05fb: add hooks to handle KDB enter/exitJesse Barnes3-0/+40
Add fb ops to handle enter/exit of the kernel debugger. If present, the fb core will register them with KGDB and they'll be called when the debugger is entered and exited. The new functions are responsible for switching to an appropriate debug framebuffer and restoring the interrupted state at exit time. Signed-off-by: Jesse Barnes <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05kgdboc: Add call backs to allow kernel mode switchingJason Wessel1-0/+18
Add the kms keyword processing to kgdboc and the callbacks to invoke console switching when ever kgdboc is started with "kgdboc=kms,kbd". Signed-off-by: Jason Wessel <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
2010-08-05vt,console,kdb: automatically set kdb LINES variableJason Wessel3-2/+21
The kernel console interface stores the number of lines it is configured to use. The kdb debugger can greatly benefit by knowing how many lines there are on the console for the pager functionality without having the end user compile in the setting or have to repeatedly change it at run time. Signed-off-by: Jason Wessel <[email protected]> Signed-off-by: Jesse Barnes <[email protected]> CC: David Airlie <[email protected]> CC: Andrew Morton <[email protected]>
2010-08-05vt,console,kdb: implement atomic console enter/leave functionsJesse Barnes2-0/+74
These functions allow the kernel debugger to save and restore the state of the system console. Signed-off-by: Jesse Barnes <[email protected]> Signed-off-by: Jason Wessel <[email protected]> CC: David Airlie <[email protected]> CC: Andrew Morton <[email protected]>
2010-08-05debug_core,kdb: fix crash when arch does not have single stepJason Wessel1-0/+2
When an arch such as mips and microblaze does not implement either HW or software single stepping the debug core should re-enter kdb. The kdb code will properly ignore the single step operation. Attempting to single step the kernel without software or hardware support causes unpredictable kernel crashes. Signed-off-by: Jason Wessel <[email protected]>
2010-08-05kgdb,x86: use macro HBP_NUM to replace magic number 4Dongdong Deng1-9/+9
Use the macros provided by the HW breakpoint API. Signed-off-by: Dongdong Deng <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05kgdb,mips: remove unused kgdb_cpu_doing_single_step operationsJason Wessel1-7/+1
The mips kgdb specific code does not support software or HW single stepping so it should not implement Signed-off-by: Jason Wessel <[email protected]> Signed-off-by: Dongdong Deng <[email protected]> Acked-by: Ralf Baechle <[email protected]> CC: [email protected]
2010-08-05mm,kdb,kgdb: Add a debug reference for the kdb kmap usageJason Wessel1-0/+7
The kdb kmap should never get used outside of the kernel debugger exception context. Signed-off-by: Jason Wessel<[email protected]> CC: Andrew Morton <[email protected]> CC: Ingo Molnar <[email protected]> CC: [email protected]
2010-08-05KGDB: Remove set but unused newPCAndi Kleen1-3/+0
Found by gcc 4.6's new warnings Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05ftrace,kdb: Allow dumping a specific cpu's buffer with ftdumpJason Wessel1-10/+27
In systems with more than one processor it is desirable to look at the per cpu trace buffers. Signed-off-by: Jason Wessel <[email protected]> Acked-by: Steven Rostedt <[email protected]> CC: Frederic Weisbecker <[email protected]>
2010-08-05ftrace,kdb: Extend kdb to be able to dump the ftrace bufferJason Wessel4-21/+163
Add in a helper function to allow the kdb shell to dump the ftrace buffer. Modify trace.c to expose the capability to iterate over the ftrace buffer in a read only capacity. Signed-off-by: Jason Wessel <[email protected]> Acked-by: Steven Rostedt <[email protected]> CC: Frederic Weisbecker <[email protected]>
2010-08-05kgdb,powerpc: Replace hardcoded offset by BREAK_INSTR_SIZEMichal Simek1-1/+1
kgdb_handle_breakpoint checks the first arch_kgdb_breakpoint which is not known by gdb that's why is necessary jump over it. The jump lenght is equal to BREAK_INSTR_SIZE that's why is cleaner to use defined macro instead of hardcoded non-described offset. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Jason Wessel <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]>
2010-08-05arm,kgdb: Add ability to trap into debugger on notify_dieJason Wessel1-0/+34
Now that ARM implements the notify die handlers, add the ability for the kernel debugger to receive the notifications. Signed-off-by: Jason Wessel <[email protected]> CC: Russell King <[email protected]> CC: [email protected]
2010-08-05gdbstub: do not directly use dbg_reg_def[] in gdb_cmd_reg_set()Jason Wessel1-1/+9
Presently the usable registers definitions on x86 are not contiguous for kgdb. The x86 kgdb uses a case statement for the sparse register accesses. The array which defines the registers (dbg_reg_def) should not be used directly in order to safely work with sparse register definitions. Specifically there was a problem when gdb accesses ORIG_AX, which is accessed only through the case statement. This patch encodes register memory using the size information provided from the debugger which avoids the need to look up the size of the register. The dbg_set_reg() function always further validates the inputs from the debugger. Signed-off-by: Jason Wessel <[email protected]> Signed-off-by: Dongdong Deng <[email protected]>
2010-08-05gdbstub: Implement gdbserial 'p' and 'P' packetsJason Wessel2-21/+78
The gdbserial 'p' and 'P' packets allow gdb to individually get and set registers instead of querying for all the available registers. Signed-off-by: Jason Wessel <[email protected]>
2010-08-05kgdb,arm: Individual register get/set for armJason Wessel2-46/+50
Implement the ability to individually get and set registers for kdb and kgdb for arm. Signed-off-by: Jason Wessel <[email protected]> CC: Russell King <[email protected]> CC: [email protected]
2010-08-05kgdb,mips: Individual register get/set for mipsJason Wessel2-68/+154
Implement the ability to individually get and set registers for kdb and kgdb for mips. Signed-off-by: Jason Wessel <[email protected]> Acked-by: Ralf Baechle <[email protected]> CC: [email protected]
2010-08-05kgdb,x86: Individual register get/set for x86Jason Wessel2-94/+94
Implement the ability to individually get and set registers for kdb and kgdb for x86. Signed-off-by: Jason Wessel <[email protected]> Acked-by: H. Peter Anvin <[email protected]> CC: Ingo Molnar <[email protected]> CC: [email protected]
2010-08-05kgdb,kdb: individual register set and and get APIJason Wessel3-12/+159
The kdb shell specification includes the ability to get and set architecture specific registers by name. For the time being individual register get and set will be implemented on a per architecture basis. If an architecture defines DBG_MAX_REG_NUM > 0 then kdb and the gdbstub will use the capability for individually getting and setting architecture specific registers. Signed-off-by: Jason Wessel <[email protected]>
2010-08-05gdbstub: Optimize kgdb's "thread:" response for the gdb serial protocolJason Wessel1-18/+19
The gdb debugger understands how to parse short versions of the thread reference string as long as the bytes are paired in sets of two characters. The kgdb implementation was always sending 8 leading zeros which could be omitted, and further optimized in the case of non-negative thread numbers. The negative numbers are used to reference a specific cpu in the case of kgdb. An example of the previous i386 stop packet looks like: T05thread:00000000000003bb; New stop packet response: T05thread:03bb; The previous ThreadInfo response looks like: m00000000fffffffe,0000000000000001,0000000000000002,0000000000000003,0000000000000004,0000000000000005,0000000000000006,0000000000000007,000000000000000c,0000000000000088,000000000000008a,000000000000008b,000000000000008c,000000000000008d,000000000000008e,00000000000000d4,00000000000000d5,00000000000000dd New ThreadInfo response: mfffffffe,01,02,03,04,05,06,07,0c,88,8a,8b,8c,8d,8e,d4,d5,dd A few bytes saved means better response time when using kgdb over a serial line. Signed-off-by: Jason Wessel <[email protected]>
2010-08-05kgdb: remove custom hex_to_bin()implementationAndy Shevchenko1-16/+5
Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05MIPS: PowerTV: Separate PowerTV USB support from non-USB codeDavid VomLehn5-229/+432
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 <[email protected]> To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: http://patchwork.linux-mips.org/patch/1522/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: strip the un-needed sections of vmlinuzWu Zhangjin1-0/+3
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 <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1383/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up the calculation of VMLINUZ_LOAD_ADDRESSWu Zhangjin2-13/+14
We have calculated VMLINUZ_LOAD_ADDRESS in shell, which is indecipherable. This patch rewrites it in C. Signed-off-by: Wu Zhangjin <[email protected]> To: linux-mips <[email protected]> Cc: Alexander Clouter <[email protected]> Cc: Manuel Lauss <[email protected]> Cc: Sam Ravnborg <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Reviewed-by: Alexander Clouter <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1324/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up arch/mips/boot/compressed/decompress.cWu Zhangjin1-24/+14
- Remove several outdated comments - Clearify the definition of zimage_start and zimage_size and the their usage Signed-off-by: Wu Zhangjin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1382/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up arch/mips/boot/compressed/ld.scriptWu Zhangjin1-34/+17
- 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 <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1381/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Unify the suffix of compressed vmlinux.binWu Zhangjin2-8/+61
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 <[email protected]> To: linux-mips <[email protected]> Cc: Alexander Clouter <[email protected]> Cc: Manuel Lauss <[email protected]> Cc: Sam Ravnborg <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1323/ Signed-off-by: Ralf Baechle <[email protected]> ---
2010-08-05MIPS: PowerTV: Add Gaia platform definitions.David VomLehn6-11/+708
Define ASIC address, memory preallocations, and initialization code for the Gaia platform. Signed-off-by: David VomLehn <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1519/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: BCM47xx: Fix nvram_getenv return value.Hauke Mehrtens2-2/+5
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 <[email protected]> Cc: Waldemar Brodkorb <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1520/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Allow more than 3.75GB of memory with PCIeDavid Daney4-14/+87
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 <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1535/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Clean up notify_die() usage.David Daney1-10/+15
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 <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1532/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Remove unused task_struct.trap_no field.David Daney3-4/+1
It is initialized to zero and only ever read. Remove it, and pass zero in its place. Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1531/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05Documentation: Mention that KProbes is supported on MIPSDavid Daney1-0/+1
MIPS now has KProbes support, so kprobes.txt should reflect it. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1527/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05SAMPLES: kprobe_example: Make it print something on MIPS.David Daney1-0/+9
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 <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1528/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: kprobe: Add support.David Daney9-2/+695
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 <[email protected]> Cc: Himanshu Chauhan <[email protected]> To: [email protected] To: [email protected], To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1525/ Patchwork: https://patchwork.linux-mips.org/patch/1530/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Add instrunction format for BREAK and SYSCALLDavid Daney1-1/+14
Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1524/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: kprobes: Define regs_return_value()David Daney1-0/+1
Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] To: [email protected] To: [email protected] To: [email protected] Cc: [email protected], Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1529/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Ritually kill stupid printk.Ralf Baechle5-5/+0
This belongs into userland. Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Octeon: Disallow MSI-X interrupt and fall back to MSI interrupts.Chandrakala Chavva2-0/+33
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 <[email protected]> To: [email protected] Cc: David Daney <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/1506/ Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: David Daney <[email protected]>
2010-08-05MIPS: Octeon: Support 256 MSI on PCIeDavid Daney2-118/+178
Signed-off-by: David Daney <[email protected]> To: [email protected] Patchwork: http://patchwork.linux-mips.org/patch/1507/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Decode core number for R2 CPUs.David Daney1-0/+3
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 <[email protected]> To: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1505/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: SMTC: Use %p to format pointersKulikov Vasiliy1-2/+1
While at it, drop 0x prefix. Signed-off-by: Kulikov Vasiliy <[email protected]> To: [email protected] Cc: Chris Dearman <[email protected]> Cc: "Robert P. J. Day" <[email protected]> Cc: Rusty Russell <[email protected]> Cc: AndrĂ© Goddard Rosa <[email protected]> Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1458/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Remove unused macro LOONGSON_PERFCNT_IRQWu Zhangjin1-1/+0
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 <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1494/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Oprofile: add a new do_perfcnt_IRQ()Wu Zhangjin3-4/+10
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 <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1492/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05MIPS: Loongson: Remove set_irq_trigger_mode()Wu Zhangjin4-18/+8
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 <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1493/ Signed-off-by: Ralf Baechle <[email protected]>
2010-08-05WATCHDOG: Add watchdog driver for OCTEON SOCsDavid Daney4-0/+829
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 <[email protected]> Cc: Wim Van Sebroeck <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Russell King <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: Marc Zyngier <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Sam Ravnborg <[email protected]> To: [email protected] Cc: [email protected], Patchwork: https://patchwork.linux-mips.org/patch/1503/ Signed-off-by: Wim Van Sebroeck <[email protected]> Signed-off-by: Ralf Baechle <[email protected]> create mode 100644 drivers/watchdog/octeon-wdt-main.c create mode 100644 drivers/watchdog/octeon-wdt-nmi.S
2010-08-05MIPS: Define ST0_NMI in asm/mipsregs.hDavid Daney1-0/+1
This is used by the forthcoming OCTEON watchdog patch. Signed-off-by: David Daney <[email protected]> To: [email protected] To: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/1498/ Signed-off-by: Ralf Baechle <[email protected]>