aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-08-05Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblazeLinus Torvalds34-544/+977
* 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze: (49 commits) microblaze: Add KGDB support microblaze: Support brki rX, 0x18 for user application debugging microblaze: Remove nop after MSRCLR/SET, MTS, MFS instructions microblaze: Simplify syscall rutine microblaze: Move PT_MODE saving to delay slot microblaze: Fix _interrupt function microblaze: Fix _user_exception function microblaze: Put together addik instructions microblaze: Use delay slot in syscall macros microblaze: Save kernel mode in delay slot microblaze: Do not mix register saving and mode setting microblaze: Move SAVE_STATE upward microblaze: entry.S: Macro optimization microblaze: Optimize hw exception rutine microblaze: Implement clear_ums macro and fix SAVE_STATE macro microblaze: Remove additional setup for kernel_mode microblaze: Optimize SAVE_STATE macro microblaze: Remove additional loading microblaze: Completely remove working with R11 register microblaze: Do not setup BIP in _debug_exception ...
2010-08-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6Linus Torvalds7-25/+26
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: arch/sparc/mm: Use GFP_KERNEL MAINTAINERS: Add trailing slash to SBUS path. sbus: autoconvert trivial BKL users to private mutex
2010-08-05Merge branch 'release' of ↵Linus Torvalds10-9508/+1058
git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6: [IA64] increase ia64 static per cpu area [IA64] Put ia64 config files on the Uwe Kleine-König diet [IA64] perfmon: convert to unlocked_ioctl [IA64] beautify vmlinux.lds.h
2010-08-05Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linusLinus Torvalds297-2178/+16724
* 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus: (150 commits) MIPS: PowerTV: Separate PowerTV USB support from non-USB code MIPS: strip the un-needed sections of vmlinuz MIPS: Clean up the calculation of VMLINUZ_LOAD_ADDRESS MIPS: Clean up arch/mips/boot/compressed/decompress.c MIPS: Clean up arch/mips/boot/compressed/ld.script MIPS: Unify the suffix of compressed vmlinux.bin MIPS: PowerTV: Add Gaia platform definitions. MIPS: BCM47xx: Fix nvram_getenv return value. MIPS: Octeon: Allow more than 3.75GB of memory with PCIe MIPS: Clean up notify_die() usage. MIPS: Remove unused task_struct.trap_no field. Documentation: Mention that KProbes is supported on MIPS SAMPLES: kprobe_example: Make it print something on MIPS. MIPS: kprobe: Add support. MIPS: Add instrunction format for BREAK and SYSCALL MIPS: kprobes: Define regs_return_value() MIPS: Ritually kill stupid printk. MIPS: Octeon: Disallow MSI-X interrupt and fall back to MSI interrupts. MIPS: Octeon: Support 256 MSI on PCIe MIPS: Decode core number for R2 CPUs. ...
2010-08-05kgdb,docs: Update the kgdb docs to include kmsJason Wessel2-11/+106
Update the kgdb docs to include information about kernel mode setting support. [Randy Dunlap <[email protected]>: grammatical corrections] CC: Randy Dunlap <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
2010-08-05Merge git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6Linus Torvalds13-259/+513
* git://git.kernel.org/pub/scm/linux/kernel/git/czankel/xtensa-2.6: xtensa: Disable PCI and nfsroot on simulation target xtensa: Add missing include in coprocessor.h xtensa: Fix the network driver for the simulator target xtensa: Shuffle include statements to fix linker script xtensa: Add -mforce-no-pic option is supported xtensa: Fixes due to bss boundary symbol name changes. xtensa: Fix linker script patch-up xtensa: Fix FLUSH_DCACHE macro for some variants.
2010-08-05nick piggin: change email addressNick Piggin2-2/+2
Signed-off-by: Nick Piggin <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2010-08-05drm_fb_helper: Preserve capability to use atomic kmsJason Wessel1-1/+1
Commit 5349ef3127c77075ff70b2014f17ae0fbcaaf199 (drm/fb: fix FBIOGET/PUT_VSCREENINFO pixel clock handling) changed the logic of when a pixclock was valid vs invalid. The atomic kernel mode setting used by the kernel debugger relies upon the drm_fb_helper_check_var() to always return -EINVAL. Until a better solution exists, this behavior will be restored. CC: David Airlie <[email protected]> CC: Jesse Barnes <[email protected]> CC: Clemens Ladisch <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
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]>