19 Jun, 2007

1 commit

  • The current implementation only handles -ERESTARTNOHAND, whereas we
    also need to handle -ERESTART_RESTARTBLOCK in the handle_signal()
    case for restartable system calls.

    As noted by Carl:

    This fixes the LTP test nanosleep03 - the current kernel causes
    -ERESTART_RESTARTBLOCK to reach user space rather than the correct
    -EINTR.

    Reported-by: Carl Shaw
    Signed-off-by: Paul Mundt

    Paul Mundt
     

18 Jun, 2007

2 commits

  • As Russell helpfully pointed out on linux-arch:

    http://marc.info/?l=linux-arch&m=118208089204630&w=2

    We were missing the oops_enter/exit() in the sh die() implementation.
    As we do support lockdep, it's beneficial to add these calls so lockdep
    properly disables itself in the die() case.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • We use R0 as the 5th argument of syscall. When the syscall restarts
    after signal handling, we should restore the old value of R0.
    The attached patch does it. Without this patch, I've experienced random
    failures in the situation which signals are issued frequently.

    Signed-off-by: Kaz Kojima
    Signed-off-by: Paul Mundt

    Kaz Kojima
     

04 Jun, 2007

2 commits


31 May, 2007

3 commits

  • Several errors were spotted during building for custom config (SMP
    included). Although SMP still does not compile (no ipi and
    __smp_call_function) and does not work, this looks a bit cleaner.
    Some other errors obtained via gcc-4.1.0 build.

    Signed-off-by: Evgeniy Polyakov
    Signed-off-by: Paul Mundt

    Evgeniy Polyakov
     
  • CC arch/sh/kernel/vsyscall/vsyscall.o
    a/arch/sh/kernel/vsyscall/vsyscall.c: In function 'arch_setup_additional_pages':
    a/arch/sh/kernel/vsyscall/vsyscall.c:63: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c:67: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c:82: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c:85: error: dereferencing pointer to incomplete type
    a/arch/sh/kernel/vsyscall/vsyscall.c: In function 'arch_vma_name':
    a/arch/sh/kernel/vsyscall/vsyscall.c:91: error: dereferencing pointer to incomplete type

    Signed-off-by: Manuel Lauss
    Signed-off-by: Paul Mundt

    Manuel Lauss
     
  • Add lost in_nmi definition to solve pcrel too far.

    Signed-off-by: Takashi YOSHII
    Signed-off-by: Paul Mundt

    Takashi YOSHII
     

23 May, 2007

2 commits

  • Fix up a couple of section mismatch warnings regarding sys_timer.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Fix dreamcast build for IRQ changes.
    sh: Fix clock multiplier on SH7722.
    sh: Wire up kdump crash kernel exec in die().
    sh: sr.bl toggling around idle sleep.
    sh: disable genrtc support.
    fs: Kill sh dependency for binfmt_flat.
    sh: Disable psw support for R7785RP.
    sh: Fix page size alignment in __copy_user_page().
    sh: Fix up various compile warnings for SE boards.
    sh: Wire up signalfd/timerfd/eventfd syscalls.
    sh: revert addition of page fault notifiers
    spelling fixes: arch/sh/
    input: hp680_ts compile fixes.
    sh: landisk: Header cleanups.
    sh: landisk: rtc-rs5c313 support.
    sh: Kill off pmb slab cache destructor.
    sh: Fix up psw build rules for r7780rp.
    sh: Shut up compiler warnings in __do_page_fault().

    Linus Torvalds
     

21 May, 2007

6 commits


19 May, 2007

2 commits


10 May, 2007

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Fix stacktrace simplification fallout.
    sh: SH7760 DMABRG support.
    sh: clockevent/clocksource/hrtimers/nohz TMU support.
    sh: Truncate MAX_ACTIVE_REGIONS for the common case.
    rtc: rtc-sh: Fix rtc_dev pointer for rtc_update_irq().
    sh: Convert to common die chain.
    sh: Wire up utimensat syscall.
    sh: landisk mv_nr_irqs definition.
    sh: Fixup ndelay() xloops calculation for alternate HZ.
    sh: Add 32-bit opcode feature CPU flag.
    sh: Fix PC adjustments for varying opcode length.
    sh: Support for SH-2A 32-bit opcodes.
    sh: Kill off redundant __div64_32 symbol export.
    sh: Share exception vector table for SH-3/4.
    sh: Always define TRAPA_BUG_OPCODE.
    sh: __GFP_REPEAT for pte allocations, too.
    rtc: rtc-sh: Fix up dev_dbg() warnings.
    sh: generic quicklist support.

    Linus Torvalds
     

09 May, 2007

15 commits

  • When the stacktrace simplification changes went in the function
    definition on SH got skipped, fix it up so things build again.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • This adds basic support for clockevents and clocksources,
    presently only implemented for TMU-based systems (which
    are the majority of SH-3 and SH-4 systems).

    The old NO_IDLE_HZ implementation is also dropped completely,
    the only users of this were on TMU-based systems anyways.

    More work needs to be done to generalize the TMU handling,
    in that the current implementation is rather tied to the
    notion of TMU0 and TMU1 utilization.

    Additionally, as more SH timers switch over to this scheme,
    we'll be able to gut most of the remaining system timer
    infrastructure that existed before.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Many files include the filename at the beginning, serveral used a wrong one.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Adrian Bunk

    Uwe Kleine-König
     
  • This went in immediately after SH added the die chain notifiers,
    so move over to that instead..

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Add a CPU flag for the CPUs that support 32-bit opcodes, which
    gets passed down to userspace.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • There are a few different cases for figuring out how to
    size the instruction. We read in the instruction located
    at regs->pc - 4 when rewinding the opcode to figure out if
    there's a 32-bit opcode before the faulting instruction, with
    a default of a - 2 adjustment on a mismatch. In practice this
    works for the cases where pc - 4 is just another 16-bit opcode,
    or we happen to have a 32-bit and a 16-bit immediately
    preceeding the pc value.

    In the cases where we aren't rewinding, this is much less ugly..

    We also don't bother fixing up the places where we're explicitly
    dealing with 16-bit instructions, since this might lead to
    confusion regarding the encoding size possibilities on other
    CPU variants.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • SH-2A supports both 16 and 32-bit instructions, add a simple helper
    for figuring out the instruction size in the places where there are
    hardcoded 16-bit assumptions.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • modpost noticed that __div64_32 was being exported twice:

    WARNING: lib/built-in: '__div64_32' exported twice. Previous export was
    in arch/sh/kernel/built-in.ko

    kill off the duplicate.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • The only difference between these at the moment are the FPU
    exceptions, and these are hidden away under CONFIG_SH_FPU
    (which is only set for the SH-4 case anyways..).

    This consolidates the two tables, and updates SH-4 to use
    the updated copy.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • This moves SH over to the generic quicklists. As per x86_64,
    we have special mappings for the PGDs, so these go on their
    own list..

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Add IRQF_IRQPOLL on each timer interrupt on SH2.

    Signed-off-by: Bernhard Walle
    Cc: Paul Mundt
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bernhard Walle
     
  • Remove includes of where it is not used/needed.
    Suggested by Al Viro.

    Builds cleanly on x86_64, i386, alpha, ia64, powerpc, sparc,
    sparc64, and arm (all 59 defconfigs).

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • The console subsystem already has an idea of a boot console, using the
    CON_BOOT flag. The implementation has some flaws though. The major
    problem is that presence of a boot console makes register_console() ignore
    any other console devices (unless explicitly specified on the kernel
    command line).

    This patch fixes the console selection code to *not* consider a boot
    console a full-featured one, so the first non-boot console registering will
    become the default console instead. This way the unregister call for the
    boot console in the register_console() function actually triggers and the
    handover from the boot console to the real console device works smoothly.
    Added a printk for the handover, so you know which console device the
    output goes to when the boot console stops printing messages.

    The disable_early_printk() call is obsolete with that patch, explicitly
    disabling the early console isn't needed any more as it works automagically
    with that patch.

    I've walked through the tree, dropped all disable_early_printk() instances
    found below arch/ and tagged the consoles with CON_BOOT if needed. The
    code is tested on x86, sh (thanks to Paul) and mips (thanks to Ralf).

    Changes to last version: Rediffed against -rc3, adapted to mips cleanups by
    Ralf, fixed "udbg-immortal" cmd line arg on powerpc.

    Signed-off-by: Gerd Hoffmann
    Acked-by: Paul Mundt
    Acked-by: Ralf Baechle
    Cc: Andi Kleen
    Cc: Alan Cox
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Jeremy Fitzhardinge
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Gerd Hoffmann
     
  • Simplify the stacktrace code:

    - remove the unused task argument to save_stack_trace, it's always
    current
    - remove the all_contexts flag, it's alwasy 0

    Signed-off-by: Christoph Hellwig
    Cc: Paul Mundt
    Cc: Ralf Baechle
    Cc: Martin Schwidefsky
    Cc: "David S. Miller"
    Cc: Andi Kleen
    Cc: Akinobu Mita
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

07 May, 2007

6 commits