17 Oct, 2006

1 commit

  • Avoid possible PIT livelock issues seen on SMP systems (and reported by
    Andi), by not allowing it as a clocksource on SMP boxes.

    However, since the PIT may no longer be present, we have to properly handle
    the cases where SMP systems have TSC skew and fall back from the TSC.
    Since the PIT isn't there, it would "fall back" to the TSC again. So this
    changes the jiffies rating to 1, and the TSC-bad rating value to 0.

    Thus you will get the following behavior priority on i386 systems:

    tsc [if present & stable]
    hpet [if present]
    cyclone [if present]
    acpi_pm [if present]
    pit [if UP]
    jiffies

    Rather then the current more complicated:
    tsc [if present & stable]
    hpet [if present]
    cyclone [if present]
    acpi_pm [if present]
    pit [if cpus < 4]
    tsc [if present & unstable]
    jiffies

    Signed-off-by: John Stultz
    Cc: Andi Kleen
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    john stultz
     

16 Oct, 2006

1 commit

  • I need this patch to get a UML kernel to compile. This is with the
    kernel headers in FC6 which are automatically generated from the kernel
    tree. Some headers are missing but those files don't need them. At
    least it appears so since the resuling kernel works fine.

    Tested on x86-64.

    Signed-off-by: Ulrich Drepper
    Signed-off-by: Linus Torvalds

    Ulrich Drepper
     

14 Oct, 2006

3 commits

  • Len Brown
     
  • The Linux group at Stratus Technologies has come across an issue with SCI
    routing under ACPI. We were bitten by this when we made an x86_64 platform
    whose BIOS provides an Interrupt Source Override for the SCI itself.
    Apparently the override has no effect for the System Control Interrupt, and
    this appears to be because of the way the SCI is setup in the ACPI code.
    It does not handle the case where busirq != gsi.

    The code that sets up the SCI routing assumes that bus irq == global irq.
    So there is simply no provision for telling it otherwise. The attached
    patch provides this mechanism.

    This patch provided by David Bulkow, was tested on an i386 platform, which
    does not use the SCI override, and also on an x86_64 platform which does
    use an override.

    Signed-off-by: David Bulkow
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Kimball Murray
     
  • Intel processors starting with the Core Duo support
    support processor native C-state using the MWAIT instruction.
    Refer: Intel Architecture Software Developer's Manual
    http://www.intel.com/design/Pentium4/manuals/253668.htm

    Platform firmware exports the support for Native C-state to OS using
    ACPI _PDC and _CST methods.
    Refer: Intel Processor Vendor-Specific ACPI: Interface Specification
    http://www.intel.com/technology/iapc/acpi/downloads/302223.htm

    With Processor Native C-state, we use 'MWAIT' instruction on the processor
    to enter different C-states (C1, C2, C3). We won't use the special IO
    ports to enter C-state and no SMM mode etc required to enter C-state.
    Overall this will mean better C-state support.

    One major advantage of using MWAIT for all C-states is, with this and
    "treat interrupt as break event" feature of MWAIT, we can now get accurate
    timing for the time spent in C1, C2, .. states.

    Signed-off-by: Venkatesh Pallipadi
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Venkatesh Pallipadi
     

13 Oct, 2006

6 commits


12 Oct, 2006

29 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: SH-4A UBC support
    sh: interrupt exception handling rework
    sh: Default enable R7780RP IRQs.
    sh: Zero-out coherent buffer in consistent_alloc().
    sh: Convert IPR-IRQ to IRQ chip.
    sh: Convert INTC2 IRQ handler to irq_chip.
    sh: Fix pr_debug statements for sh4
    sh: Convert r7780rp IRQ handler to IRQ chip.
    sh: Updates for IRQ handler changes.
    sh: Kill off timer_ops get_frequency().
    sh: First step at generic timeofday support.

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC32]: Fix sparc32 modpost warnings.
    [SPARC32]: Fix sparc32 modpost warnings with sunzilog
    [SPARC32]: Mark srmmu_nocache_init as __init.
    [SPARC32]: pcic.c needs asm/irq_regs.h

    Linus Torvalds
     
  • This patch fixes my one line thinko where I was clearing
    the vector_irq entries on the wrong cpus.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • Fix these 2.6.19-rc1 build warnings from modpost:

    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'core_kernel_text' (at offset 0x3e060) and '__kernel_text_address'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'core_kernel_text' (at offset 0x3e064) and '__kernel_text_address'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'core_kernel_text' (at offset 0x3e07c) and '__kernel_text_address'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'core_kernel_text' (at offset 0x3e080) and '__kernel_text_address'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'is_ksym_addr' (at offset 0x4b3a4) and 'kallsyms_expand_symbol'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'is_ksym_addr' (at offset 0x4b3a8) and 'kallsyms_expand_symbol'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'is_ksym_addr' (at offset 0x4b3b4) and 'kallsyms_expand_symbol'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'is_ksym_addr' (at offset 0x4b3e4) and 'kallsyms_expand_symbol'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0x4b640) and 'kallsyms_lookup_size_offset'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0x4b644) and 'kallsyms_lookup_size_offset'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'get_symbol_pos' (at offset 0x4b654) and 'kallsyms_lookup_size_offset'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'get_symbol_pos' (at offset 0x4b658) and 'kallsyms_lookup_size_offset'
    WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0x4b68c) and 'kallsyms_lookup_size_offset'

    The crux of the matter is that modpost only checks the relocatable
    sections. i386 vmlinux has none, so modpost does no checking on it (it
    does on the modules). However, sparc vmlinux has plenty of
    relocatable sections because it is being built with 'ld -r' (to allow
    for btfixup processing). So for sparc, modpost does do a lot of
    checking. Sure enough, running modpost on arch/sparc/boot/image yields
    no output (i.e. all is well).

    modpost.c check_sec_ref() has:
    /* We want to process only relocation sections and not .init */
    if (sechdrs[i].sh_type == SHT_RELA) {
    // check here
    } else if (sechdrs[i].sh_type == SHT_REL) {
    // check here
    }

    Signed-off-by: Martin Habets
    Signed-off-by: David S. Miller

    Martin Habets
     
  • Fix this 2.6.19-rc1 build warnings from modpost:

    WARNING: vmlinux - Section mismatch: reference to .init.text:sunzilog_console_setup from .data between 'sunzilog_console' (at offset 0x8394) and 'devices_subsys'

    Signed-off-by: Martin Habets
    Signed-off-by: David S. Miller

    Martin Habets
     
  • Fix these 2.6.19-rc1 build warnings from modpost:

    WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'srmmu_nocache_init' (at offset 0x1a0f8) and 'srmmu_mmu_info'
    WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'srmmu_nocache_init' (at offset 0x1a118) and 'srmmu_mmu_info'
    WARNING: vmlinux - Section mismatch: reference to .init.text:srmmu_early_allocate_ptable_skeleton from .text between 'srmmu_nocache_init' (at offset 0x1a188) and 'srmmu_mmu_info'

    Signed-off-by: Martin Habets
    Signed-off-by: David S. Miller

    Martin Habets
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • A simple patch to enable the UBC on SH-4A.

    Signed-off-by: Ryusuke Sakato
    Signed-off-by: Paul Mundt

    Ryusuke Sakato
     
  • Kill off interrupt_table for all of the CPU subtypes, we now
    default in to stepping in to do_IRQ() for _all_ IRQ exceptions
    and counting the spurious ones, rather than simply flipping on
    the ones we cared about. This and enabling the IRQ by default
    automatically has already uncovered a couple of bugs and IRQs
    that weren't being caught, as well as some that are being
    generated far too often (SCI Tx Data Empty, for example).

    The general rationale is to use a marker for interrupt exceptions,
    test for it in the handle_exception() path, and skip out to
    do_IRQ() if it's found. Everything else follows the same behaviour
    of finding the cached EXPEVT value in r2/r2_bank, we just rip out
    the INTEVT read from entry.S entirely (except for in the kGDB NMI
    case, which is another matter).

    Note that while this changes the do_IRQ() semantics regarding r4
    handling, they were fundamentally broken anyways (relying entirely
    on r2_bank for the cached code). With this, we do the INTEVT read
    from do_IRQ() itself (in the CONFIG_CPU_HAS_INTEVT case), or fall
    back on r4 for the muxed IRQ number, which should also be closer
    to what SH-2 and SH-2A want anyways.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Now that we've started accounting for spurious IRQs, change the
    logic somewhat so that we have a better chance of catching them.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Pass NULL not 0 for pointer value.
    [MIPS] IP27: Make declaration of setup_replication_mask a proper prototype.
    [MIPS] BigSur: More useful defconfig.
    [MIPS] Cleanup definitions of speed_t and tcflag_t.
    [MIPS] Fix compilation warnings in arch/mips/sibyte/bcm1480/smp.c
    [MIPS] Optimize and cleanup get_saved_sp, set_saved_sp
    [MIPS] does not need pt_regs anymore.
    [MIPS] Workaround for bug in gcc -EB / -EL options.
    [MIPS] Fix timer setup for Jazz

    Linus Torvalds
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Mark Mason
    Signed-off-by: Ralf Baechle

    Mark Mason
     
  • Certain gcc versions upto gcc 4.1.1 (probably 4.2-subversion as of
    2006-10-10 don't properly change the the predefined symbols if -EB / -EL
    are used, so we kludge that here. A bug has been filed at
    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413.

    Signed-off-by: Ralf Baechle

    Ralf Baechle
     
  • Signed-off-by: Yoichi Yuasa
    Signed-off-by: Ralf Baechle

    Yoichi Yuasa
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] stacktrace bug.
    [S390] cio: remove casts from/to (void *).
    [S390] cio: Remove grace period for vary off chpid.
    [S390] cio: Use ccw_dev_id and subchannel_id in ccw_device_private
    [S390] monwriter kzalloc size.
    [S390] cio: add missing KERN_INFO printk header.
    [S390] irq change improvements.

    Linus Torvalds
     
  • taken exports to actual definitions of symbols being exported.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • sun3_ksyms gone, m68k_ksyms trimmed down to exports of the assembler ones,
    for sun3 added the missing exports of __ioremap() and iounmap().

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro