09 Nov, 2009

4 commits


06 Nov, 2009

6 commits


05 Nov, 2009

4 commits


04 Nov, 2009

12 commits

  • If TSS we are switching to resides in high memory task switch will fail
    since address will be truncated. Windows2k3 does this sometimes when
    running with more then 4G

    Cc: stable@kernel.org
    Signed-off-by: Gleb Natapov
    Signed-off-by: Avi Kivity

    Gleb Natapov
     
  • We only allocate memory for 32 MCE banks (KVM_MAX_MCE_BANKS) but we
    allow user space to fill up to 255 on setup (mcg_cap & 0xff), corrupting
    kernel memory. Catch these overflows.

    Signed-off-by: Jan Kiszka
    Signed-off-by: Marcelo Tosatti

    Jan Kiszka
     
  • This patch fixes two issues in the procfs stack information on
    x86-64 linux.

    The 32 bit loader compat_do_execve did not store stack
    start. (this was figured out by Alexey Dobriyan).

    The stack information on a x64_64 kernel always shows 0 kbyte
    stack usage, because of a missing implementation of the KSTK_ESP
    macro which always returned -1.

    The new implementation now returns the right value.

    Signed-off-by: Stefani Seibold
    Cc: Americo Wang
    Cc: Alexey Dobriyan
    Cc: Al Viro
    Cc: Andrew Morton
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Stefani Seibold
     
  • Index `ipi_num' is signed, test whether it is negative to
    make sure we don't get a negative array element.

    Signed-off-by: Roel Kluin
    Signed-off-by: Hirokazu Takata

    Roel Kluin
     
  • - Support bzip2 and lzma kernel compression for m32r.
    - Clean up arch/m32r/boot/compressed/misc.c.

    Signed-off-by: Hirokazu Takata

    Hirokazu Takata
     
  • Building with --build-id option, .note.gnu.build-id section is added
    to vmlinux.bin. But some old buggy binutils creates a huge vmlinux.bin,
    and a bootloader fails to boot its zImage as well.

    This patch adds a NOTES macro to a linker script vmlinux.ld.S to put
    .note.gnu.build-id section into .note section.
    Then, the .note section will be removed, because "-R .note" option is
    specified in OBJCOPYFLAGS to make a vmlinux.bin binary.

    Signed-off-by: Hirokazu Takata

    Hirokazu Takata
     
  • The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
    but is perhaps more readable.

    The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @haskernel@
    @@

    @depends on haskernel@
    expression x,__divisor;
    @@

    - (((x) + ((__divisor) / 2)) / (__divisor))
    + DIV_ROUND_CLOSEST(x,__divisor)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Hirokazu Takata

    Julia Lawall
     
  • * 'for-linus' of git://github.com/at91linux/linux-2.6-at91:
    at91: at91sam9g45 family: identify several chip versions
    avr32: add two new at91 to cpu.h definition

    Linus Torvalds
     
  • A Xen guest never needs to know about extended topology, and knowing
    would just confuse it.

    This patch just zeros ebx in leaf 0xb which indicates no topology info,
    preventing a crash under Xen on cpus which support this leaf.

    Signed-off-by: Jeremy Fitzhardinge
    Cc: Stable Kernel

    Jeremy Fitzhardinge
     
  • cpu_is_xxx() macros are identifying generic at91sam9g45 chip. This patch adds
    the capacity to differentiate Engineering Samples and final lots through the
    inclusion of at91_cpu_fully_identify() and the related chip IDs with chip
    version field preserved.

    Signed-off-by: Nicolas Ferre
    Acked-by: Jean-Christophe PLAGNIOL-VILLARD
    Acked-by: Hans-Christian Egtvedt

    Nicolas Ferre
     
  • Somme common drivers will need those at91 cpu_is_xxx() definitions. As
    at91sam9g10 and at91sam9g45 are on the way to linus' tree, here is the patch
    that adds those chips to cpu.h in AVR32 architecture.

    Signed-off-by: Nicolas Ferre
    Signed-off-by: Haavard Skinnemoen

    Nicolas Ferre
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (38 commits)
    MIPS: O32: Fix ppoll
    MIPS: Oprofile: Rename cpu_type from godson2 to loongson2
    MIPS: Alchemy: Fix hang with high-frequency edge interrupts
    MIPS: TXx9: Fix spi-baseclk value
    MIPS: bcm63xx: Set the correct BCM3302 CPU name
    MIPS: Loongson 2: Set cpu_has_dc_aliases and cpu_icache_snoops_remote_store
    MIPS: Avoid potential hazard on Context register
    MIPS: Octeon: Use lockless interrupt controller operations when possible.
    MIPS: Octeon: Use write_{un,}lock_irq{restore,save} to set irq affinity
    MIPS: Set S-cache linesize to 64-bytes for MTI's S-cache
    MIPS: SMTC: Avoid queing multiple reschedule IPIs
    MIPS: GCMP: Avoid accessing registers when they are not present
    MIPS: GIC: Random fixes and enhancements.
    MIPS: CMP: Fix memory barriers for correct operation of amon_cpu_start
    MIPS: Fix abs.[sd] and neg.[sd] emulation for NaN operands
    MIPS: SPRAM: Clean up support code a little
    MIPS: 1004K: Enable SPRAM support.
    MIPS: Malta: Enable PCI 2.1 compatibility in PIIX4
    MIPS: Kconfig: Fix duplicate default value for MIPS_L1_CACHE_SHIFT.
    MIPS: MTI: Fix accesses to device registers on MIPS boards
    ...

    Linus Torvalds
     

03 Nov, 2009

10 commits

  • …/linux-2.6-iommu into x86/urgent

    Ingo Molnar
     
  • * 'fixes-s3c-2632-rc5' of git://git.fluff.org/bjdooks/linux:
    ARM: S3C2410: Fix sparse warnings in arch/arm/mach-s3c2410/gpio.c
    ARM: S3C2440: mini2440: Fix spare warnings
    ARM: S3C24XX: Fix warnings in arch/arm/plat-s3c24xx/gpio.c
    ARM: S3C2440: mini2440: Fix missing CONFIG_S3C_DEV_USB_HOST
    ARM: S3C24XX: arch/arm/plat-s3c24xx: Move dereference after NULL test
    ARM: S3C: Fix adc function exports
    ARM: S3C2410: Fix link if CONFIG_S3C2410_IOTIMING is not set
    ARM: S3C24XX: Introduce S3C2442B CPU
    ARM: S3C24XX: Define a macro to avoid compilation error
    ARM: S3C: Add info for supporting circular DMA buffers
    ARM: S3C64XX: Set rate of crystal mux
    ARM: S3C64XX: Fix S3C64XX_CLKDIV0_ARM_MASK value

    Linus Torvalds
     
  • Joerg Roedel
     
  • Yanmin Zhang reported that SD_PREFER_LOCAL induces an order of
    magnitude increase in select_task_rq_fair() overhead while
    running heavy wakeup benchmarks (tbench and vmark).

    Since SD_BALANCE_WAKE is off at node level, turn SD_PREFER_LOCAL
    off as well pending further investigation.

    Reported-by: Zhang, Yanmin
    Signed-off-by: Mike Galbraith
    Cc: Peter Zijlstra
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Mike Galbraith
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    Revert "[IA64] fix percpu warnings"
    [IA64] fix percpu warnings
    [IA64] SMT friendly version of spin_unlock_wait()
    [IA64] use printk_once() unaligned.c/io_common.c
    [IA64] Require SAL 3.2 in order to do extended config space ops
    [IA64] unsigned cannot be less than 0 in sn_hwperf_ioctl()
    [IA64] Restore registers in the stack on INIT
    [IA64] Re-implement spinaphores using ticket lock concepts
    [IA64] Squeeze ticket locks back into 4 bytes.

    Linus Torvalds
     
  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: ensure initial page tables are setup for SMP systems
    ARM: 5776/1: Check compiler version and EABI support when adding ARM unwind support.
    ARM: 5774/1: Fix Realview ARM1176PB board reboot
    ARM: Fix errata 411920 workarounds
    ARM: Fix sparsemem with SPARSEMEM_EXTREME enabled
    ARM: Use GFP_DMA only for masks _less_ than 32-bit
    ARM: integrator: allow Integrator to be built with highmem
    ARM: Fix signal restart issues with NX and OABI compat

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: Make EFI RTC function depend on 32bit again
    x86-64: Fix register leak in 32-bit syscall audting
    x86: crash_dump: Fix non-pae kdump kernel memory accesses
    x86: Side-step lguest problem by only building cmpxchg8b_emu for pre-Pentium
    x86: Remove STACKPROTECTOR_ALL

    Linus Torvalds
     
  • This reverts commit b94b08081fcecf83fa690d6c5664f6316fe72208.

    genksyms currently cannot handle complicated types for exported
    percpu variables. Drop this patch for now as it prevents a
    module from being loaded on sn2 systems:

    xpc: no symbol version for per_cpu____sn_cnodeid_to_nasid
    xpc: Unknown symbol per_cpu____sn_cnodeid_to_nasid

    Signed-off-by: Tony Luck

    Tony Luck
     
  • Mapping the same memory using two different attributes (memory
    type, shareability, cacheability) is unpredictable. During boot,
    we encounter a situation when we're updating the kernel's page
    tables which can lead to dirty cache lines existing in the cache
    which are subsequently missed. This causes stack corruption,
    and therefore a crash.

    Therefore, ensure that the shared and cacheability settings
    matches the configuration that will be used later; this together
    with the restriction in early_cachepolicy() ensures that we won't
    create a mismatch during boot.

    Acked-by: Catalin Marinas
    Signed-off-by: Russell King

    Russell King
     
  • ARM unwind is known to compile only with EABI and not-buggy compilers.
    The problem is not the unwinding information but the -fno-frame-pointer
    option added as a result of !CONFIG_FRAME_POINTER. Now we check the
    compiler and raise a #warning in case of wrong compiler.

    Signed-off-by: Claudio Scordino
    Signed-off-by: Russell King

    Claudio Scordino
     

02 Nov, 2009

4 commits

  • Reboot does not work out of the box on my "Early 2009" Mac mini
    (3,1). Detect this machine via DMI as we do for recent MacBooks.

    Signed-off-by: Gottfried Haider
    Cc: Ozan Çağlayan
    Cc: Paul Mackerras
    Signed-off-by: Ingo Molnar

    Gottfried Haider
     
  • sys_ppoll syscall needs to use a compat handler on 64bit kernels with o32
    user-space.

    Signed-off-by: Arnaud Patard
    Signed-off-by: Ralf Baechle

    Arnaud Patard
     
  • Unify the naming method between kernel and the user-space oprofile tool.
    Because loongson is used instead of godson in most of the places, we agreed
    to use loongson instead, which will simplify future maintenance.

    Signed-off-by: Wu Zhangjin
    Acked-by: Robert Richter
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • The handle_edge_irq() flowhandler disables edge int sources which occur
    too fast (i.e. another edge comes in before the irq handler function
    had a chance to finish). Currently, the mask_ack() callback does not
    ack the edges in hardware, leading to an endless loop in the flowhandler
    where it tries to shut up the irq source.

    When I rewrote the alchemy IRQ code I wrongly assumed the mask_ack()
    callback was only used by the level flowhandler, hence it omitted the
    (at the time pointless) edge acks. Turned out I was wrong; so here
    is a complete mask_ack implementation for Alchemy IC, which fixes
    the above mentioned problem.

    Signed-off-by: Manuel Lauss
    Signed-off-by: Ralf Baechle

    Manuel Lauss