aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris
Commit message (Collapse)AuthorAge
...
| * | CRIS: Always dump registers for segfaulting process.Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add config for pausing a seg-faulting processJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | Put it on a wait queue, so we can attach gdb to the process to debug it instead of just killing it. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Don't take faults while in_atomicJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Fixup lookup for delay slot faultsJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Discard exit.text and .data at runtimeJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | This allows us to handle references from __bug_table. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add cache aligned and read mostly data sectionsJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Return something from profile writeJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | Even if it doesn't matter, we should return something. Also, clean up some formatting. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add ARTPEC-3 and timestamps for sync-serialJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Better ARTPEC-3 support for gpioJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | Add PWM support, correct comment for ARTPEC-3. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add include guardJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Better handling of pinmux settingsJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | | | | Depending on eth, eth_mido and geth fields in wr_hwprot, don't set corresponding pins on gpio port b to gpio mode. This avoids re-resetting the ethernet PHY should this already have been done. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: New DMA defines for ARTPEC-3Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: __do_strncpy_from_user: Don't read the byte beyond the nilJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Pagetable for ARTPEC-3Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Machine dependent memmap.hJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | Move the old one to mach-fs and replace with a new one that only include the correct one for the machine architecture. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Check if pointer is set before using itJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Machine dependent dma.hJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | Move the old one to mach-fs and replace with a new one that only include the correct one for the machine architecture. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Define __read_mostly for CRISv32Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Discard .note.gnu.build-id sectionJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Avoid compilation warning for putsJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | Rename to aputs. Also, simplify code by moving some common code out to macros. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add debug for assembler macrosJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Update for ARTPEC-3Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add more delays in DDR setupJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | Also, make DDR latency configurable. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add debug info for assembler codeJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add debug info for assembler codeJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add debug symbols for assembler codeJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Minor formatting fix in traps.cJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: v32: Correct auto-restart of syscallsJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | | | | Register number was incorrect in syscalls that go via the restartblock (e.g, poll). Signed-off-by: Edgar Iglesias <Edgar.Iglesias@axis.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: More ARTPEC-3 support and i2c-boardinfo.Jesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | Add standard i2d-devices. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Remove obsolete pinmux.c, now machine dependent.Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: kgdb: Fix compilation errorsJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | Paths were not correct and pack_hex_byte() takes two arguments. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: v32: Correct path for intr_vect.hJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: v32: Better irq mapping codeJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: v32: Correct address for romfs in the imageJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | Is after __bss_start, not __vmlinux_end Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Additional mmu settings for ARTPEC-3Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Faster syscall entry for CRISv32.Jesper Nilsson2010-08-04
| | | | | | | | | | | | | | | Signed-off-by: Edgar Iglesias <Edgar.Iglesias@axis.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Simple insn reschedule to avoid interlocks.Jesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | Brings down the CPI from ~1.5 to ~1.1. Signed-off-by: Edgar Iglesias <Edgar.Iglesias@axis.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Add debug for assembler functionsJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | Signed-off-by: Edgar Iglesias <Edgar.Iglesias@axis.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Correct address of the romfs in boot imageJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | The romfs should land after __init_end Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Fasttimer: Remove obsolete ifdefJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Better link to rs485 in helpJesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: Remove CVS tag.Jesper Nilsson2010-08-04
| | | | | | | | | | | | Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: v10: remove all BKL usageJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | We don't need to take the BKL here. Also fixes compile error after last commit (smp_lock.h was not included) Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | CRIS: gpio: don't call copy_to_user()/copy_from_user() while holding spinlocksJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | copy_to_user()/copy_from_user() must not be used with spinlocks held. Move locks inside each case so we have better control of when the locks are held. Also, since we use spinlocks, we don't need to hold the BKL, so remove it. Reported-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | arch/cris: Remove unnecessary casts of private_dataJoe Perches2010-08-04
| | | | | | | | | | | | | | | Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | cris: autoconvert trivial BKL users to private mutexJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All these files use the big kernel lock in a trivial way to serialize their private file operations, typically resulting from an earlier semi-automatic pushdown from VFS. None of these drivers appears to want to lock against other code, and they all use the BKL as the top-level lock in their file operations, meaning that there is no lock-order inversion problem. Consequently, we can remove the BKL completely, replacing it with a per-file mutex in every case. Using a scripted approach means we can avoid typos. file=$1 name=$2 if grep -q lock_kernel ${file} ; then if grep -q 'include.*linux.mutex.h' ${file} ; then sed -i '/include.*<linux\/smp_lock.h>/d' ${file} else sed -i 's/include.*<linux\/smp_lock.h>.*$/include <linux\/mutex.h>/g' ${file} fi sed -i ${file} \ -e "/^#include.*linux.mutex.h/,$ { 1,/^\(static\|int\|long\)/ { /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex); } }" \ -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \ -e '/[ ]*cycle_kernel_lock();/d' else sed -i -e '/include.*\<smp_lock.h\>/d' ${file} \ -e '/cycle_kernel_lock()/d' fi Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
| * | cris: Pushdown the bkl from ioctlJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From: Frederic Weisbecker <fweisbec@gmail.com> Pushdown the bkl to the remaining drivers using the deprecated .ioctl. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: John Kacur <jkacur@redhat.com>
| * | CRIS: invoke oom-killer from page faultJesper Nilsson2010-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As explained in commit 1c0fe6e3bd, we want to call the architecture independent oom killer when getting an unexplained OOM from handle_mm_fault, rather than simply killing current. Signed-off-by: Nick Piggin <npiggin@suse.de> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com> Signed-off-by: Mikael Starvik <starvik@axis.com>
| * | CRIS: GENERIC_TIME fixesJesper Nilsson2010-08-04
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GENERIC_TIME was not functional for CRIS, giving random backward time jumps. For CRISv32 implement a new clocksource using the free running counter and ditch the arch_gettimeoffset. The random time jumps still existed, but turned out to be the write_seqlock which was missing around our do_timer() call. So switch over to GENERIC_TIME using the clocksource for CRISv32. CRISv10 doesn't have the free running counter needed for the clocksource trick, but we can still use GENERIC_TIME with arch_gettimeoffset. Unfortunately, there were problems in using the prescaler register to timer0 for the gettimeoffset calculation, so it is now ignored, making our resolution worse by the tune of 40usec (0.4%) worst case. At the same time, clean up some formatting and use NSEC_PER_SEC instead of 1000000000. Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
* | Merge branch 'timers-timekeeping-for-linus' of ↵Linus Torvalds2010-08-06
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip * 'timers-timekeeping-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: um: Fix read_persistent_clock fallout kgdb: Do not access xtime directly powerpc: Clean up obsolete code relating to decrementer and timebase powerpc: Rework VDSO gettimeofday to prevent time going backwards clocksource: Add __clocksource_updatefreq_hz/khz methods x86: Convert common clocksources to use clocksource_register_hz/khz timekeeping: Make xtime and wall_to_monotonic static hrtimer: Cleanup direct access to wall_to_monotonic um: Convert to use read_persistent_clock timkeeping: Fix update_vsyscall to provide wall_to_monotonic offset powerpc: Cleanup xtime usage powerpc: Simplify update_vsyscall time: Kill off CONFIG_GENERIC_TIME time: Implement timespec_add x86: Fix vtime/file timestamp inconsistencies Trivial conflicts in Documentation/feature-removal-schedule.txt Much less trivial conflicts in arch/powerpc/kernel/time.c resolved as per Thomas' earlier merge commit 47916be4e28c ("Merge branch 'powerpc.cherry-picks' into timers/clocksource")