25 May, 2011

21 commits

  • Fold all the mmu_gather rework patches into one for submission

    Signed-off-by: Peter Zijlstra
    Reported-by: Hugh Dickins
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Fix up the um mmu_gather code to conform to the new API.

    Signed-off-by: Peter Zijlstra
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Fix up the ia64 mmu_gather code to conform to the new API.

    Signed-off-by: Peter Zijlstra
    Acked-by: Tony Luck
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Fix up the sh mmu_gather code to conform to the new API.

    Signed-off-by: Peter Zijlstra
    Acked-by: Paul Mundt
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Fix up the arm mmu_gather code to conform to the new API.

    Signed-off-by: Peter Zijlstra
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Adapt the stand-alone s390 mmu_gather implementation to the new
    preemptible mmu_gather interface.

    Signed-off-by: Peter Zijlstra
    Signed-off-by: Martin Schwidefsky
    Cc: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Rework the sparc mmu_gather usage to conform to the new world order :-)

    Sparc mmu_gather does two things:
    - tracks vaddrs to unhash
    - tracks pages to free

    Split these two things like powerpc has done and keep the vaddrs
    in per-cpu data structures and flush them on context switch.

    The remaining bits can then use the generic mmu_gather.

    Signed-off-by: Peter Zijlstra
    Acked-by: David Miller
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Fix up powerpc to the new mmu_gather stuff.

    PPC has an extra batching queue to RCU free the actual pagetable
    allocations, use the ARCH extentions for that for now.

    For the ppc64_tlb_batch, which tracks the vaddrs to unhash from the
    hardware hash-table, keep using per-cpu arrays but flush on context switch
    and use a TLF bit to track the lazy_mmu state.

    Signed-off-by: Peter Zijlstra
    Acked-by: Benjamin Herrenschmidt
    Cc: David Miller
    Cc: Martin Schwidefsky
    Cc: Russell King
    Cc: Paul Mundt
    Cc: Jeff Dike
    Cc: Richard Weinberger
    Cc: Tony Luck
    Cc: KAMEZAWA Hiroyuki
    Cc: Hugh Dickins
    Cc: Mel Gorman
    Cc: KOSAKI Motohiro
    Cc: Nick Piggin
    Cc: Namhyung Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • When an oom killing occurs, almost all processes are getting stuck at the
    following two points.

    1) __alloc_pages_nodemask
    2) __lock_page_or_retry

    1) is not very problematic because TIF_MEMDIE leads to an allocation
    failure and getting out from page allocator.

    2) is more problematic. In an OOM situation, zones typically don't have
    page cache at all and memory starvation might lead to greatly reduced IO
    performance. When a fork bomb occurs, TIF_MEMDIE tasks don't die quickly,
    meaning that a fork bomb may create new process quickly rather than the
    oom-killer killing it. Then, the system may become livelocked.

    This patch makes the pagefault interruptible by SIGKILL.

    Signed-off-by: KOSAKI Motohiro
    Reviewed-by: KAMEZAWA Hiroyuki
    Cc: Minchan Kim
    Cc: Matthew Wilcox
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: "H. Peter Anvin"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • Architectures that implement their own show_mem() function did not pass
    the filter argument to show_free_areas() to appropriately avoid emitting
    the state of nodes that are disallowed in the current context. This patch
    now passes the filter argument to show_free_areas() so those nodes are now
    avoided.

    This patch also removes the show_free_areas() wrapper around
    __show_free_areas() and converts existing callers to pass an empty filter.

    ia64 emits additional information for each node, so skip_free_areas_zone()
    must be made global to filter disallowed nodes and it is converted to use
    a nid argument rather than a zone for this use case.

    Signed-off-by: David Rientjes
    Cc: Russell King
    Cc: Tony Luck
    Cc: Fenghua Yu
    Cc: Kyle McMartin
    Cc: Helge Deller
    Cc: James Bottomley
    Cc: "David S. Miller"
    Cc: Guan Xuetao
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • This is not useful: it provides page->virtual and is used with highmem.
    xtensa has no support for highmem and those HIGHMEM bits which are found
    by grep are partly implemented. The interesting functions like kmap() are
    missing. If someone actually implements the complete HIGHMEM support he
    could use HASHED_PAGE_VIRTUAL like most others do.

    Signed-off-by: Sebastian Andrzej Siewior
    Cc: Chris Zankel
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sebastian Andrzej Siewior
     
  • It is not referenced by any Makefile. pte_alloc_one_kernel() and
    pte_alloc_one() is implemented in arch/xtensa/include/asm/pgalloc.h.

    Signed-off-by: Sebastian Andrzej Siewior
    Cc: Chris Zankel
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sebastian Andrzej Siewior
     
  • * 'for-linus/2640/i2c' of git://git.fluff.org/bjdooks/linux: (21 commits)
    mach-ux500: set proper I2C platform data from MOP500s
    i2c-nomadik: break out single messsage transmission
    i2c-nomadik: reset the hw after status check
    i2c-nomadik: remove the unnecessary delay
    i2c-nomadik: change the TX and RX threshold
    i2c-nomadik: add code to retry on timeout failure
    i2c-nomadik: use pm_runtime API
    i2c-nomadik: print abort cause only on abort tag
    i2c-nomadik: correct adapter timeout initialization
    i2c-nomadik: remove the redundant error message
    i2c-nomadik: corrrect returned error numbers
    i2c-nomadik: fix speed enumerator
    i2c-nomadik: make i2c timeout specific per i2c bus
    i2c-nomadik: add regulator support
    i2c: i2c-sh_mobile bus speed platform data V2
    i2c: i2c-sh_mobile clock string removal
    i2c-eg20t: Support new device ML7223 IOH
    i2c: tegra: Add de-bounce cycles.
    i2c: tegra: fix repeated start handling
    i2c: tegra: recover from spurious interrupt storm
    ...

    Linus Torvalds
     
  • This specifies the new per-platform timeout per I2C bus and
    switches the I2C buses to fast mode, and increase the FIFO
    depth to 8 for reads and writes.

    Signed-off-by: Linus Walleij
    Signed-off-by: Ben Dooks

    Linus Walleij
     
  • The I2C speed enumerators in the i2c-nomadik header file were in
    the wrong order.

    Signed-off-by: Linus Walleij
    Signed-off-by: Ben Dooks

    Linus Walleij
     
  • Add option to have different i2c timeout delay for different i2c buses
    specified in platform data. Default to the old value unless specified.

    Signed-off-by: Virupax Sadashivpetimath
    Reviewed-by: Srinidhi Kasagar
    Signed-off-by: Linus Walleij
    Signed-off-by: Ben Dooks

    Virupax Sadashivpetimath
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (29 commits)
    [S390] cpu hotplug: fix external interrupt subclass mask handling
    [S390] oprofile: dont access lowcore
    [S390] oprofile: add missing irq stats counter
    [S390] Ignore sendmmsg system call note wired up warning
    [S390] s390,oprofile: fix compile error for !CONFIG_SMP
    [S390] s390,oprofile: fix alert counter increment
    [S390] Remove unused includes in process.c
    [S390] get CPC image name
    [S390] sclp: event buffer dissection
    [S390] chsc: process channel-path-availability information
    [S390] refactor page table functions for better pgste support
    [S390] merge page_test_dirty and page_clear_dirty
    [S390] qdio: prevent compile warning
    [S390] sclp: remove unnecessary sendmask check
    [S390] convert old cpumask API into new one
    [S390] pfault: cleanup code
    [S390] pfault: cpu hotplug vs missing completion interrupts
    [S390] smp: add __noreturn attribute to cpu_die()
    [S390] percpu: implement arch specific irqsafe_cpu_ops
    [S390] vdso: disable gcov profiling
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (40 commits)
    Input: ADP5589 - new driver for I2C Keypad Decoder and I/O Expander
    Input: tsc2007 - add X, Y and Z fuzz factors to platform data
    Input: tsc2007 - add poll_period parameter to platform data
    Input: tsc2007 - add poll_delay parameter to platform data
    Input: tsc2007 - add max_rt parameter to platform data
    Input: tsc2007 - debounce pressure measurement
    Input: ad714x - fix captouch wheel option algorithm
    Input: ad714x - allow platform code to specify irqflags
    Input: ad714x - fix threshold and completion interrupt masks
    Input: ad714x - fix up input configuration
    Input: elantech - remove support for proprietary X driver
    Input: elantech - report multitouch with proper ABS_MT messages
    Input: elantech - export pressure and width when supported
    Input: elantech - describe further the protocol
    Input: atmel_tsadcc - correct call to input_free_device
    Input: add driver FSL MPR121 capacitive touch sensor
    Input: remove useless synchronize_rcu() calls
    Input: ads7846 - fix gpio_pendown configuration
    Input: ads7846 - add possibility to use external vref on ads7846
    Input: rotary-encoder - add support for half-period encoders
    ...

    Linus Torvalds
     
  • * 'for-2.6.40' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
    percpu: Unify input section names
    percpu: Avoid extra NOP in percpu_cmpxchg16b_double
    percpu: Cast away printk format warning
    percpu: Always align percpu output section to PAGE_SIZE

    Fix up fairly trivial conflict in arch/x86/include/asm/percpu.h as per Tejun

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: (22 commits)
    m68knommu: Use generic show_interrupts()
    coldfire_qspi compile fix
    m68k: merge the mmu and non-mmu versions of sys_m68k.c
    m68knommu: use asm-generic/bitops/ext2-atomic.h
    m68knommu: Remove obsolete #include
    m68k: merge mmu and non-mmu versions of asm-offsets.c
    m68k: merge non-mmu and mmu versions of m68k_ksyms.c
    m68knommu: remove un-needed exporting of COLDFIRE symbols
    m68knommu: move EXPORT of kernel_thread to function definition
    m68knommu: move EXPORT of local checksumming functions to definitions
    m68knommu: move EXPORT of dump_fpu to function definition
    m68knommu: clean up mm/init_no.c
    m68k: merge the mmu and non-mmu mm/Makefile
    m68k: mv kmap_mm.c to kmap.c
    m68knommu: remove stubs for __ioremap() and iounmap()
    m68knommu: remove unused kernel_set_cachemode()
    m68k: let Makefile sort out compiling mmu and non-mmu lib/checksum.c
    m68k: remove duplicate memcpy() implementation
    m68k: remove duplicate memset() implementation
    m68k: remove duplicate memmove() implementation
    ...

    Linus Torvalds
     
  • In mask/restore_ioapic_entries() we should be restoring ioapic
    entries when ioapics[apic].saved_registers is not NULL.

    Fix the typo and address the resume hang regression reported by
    Linus.

    This was not found sooner because the systems where these
    changes were tested on kept the IO-APIC entries intact over
    resume.

    Reported-and-tested-by: Linus Torvalds
    Signed-off-by: Suresh Siddha
    Cc: Daniel J Blueman
    Link: http://lkml.kernel.org/r/1306259131.7171.7.camel@sbsiddha-MOBL3.sc.intel.com
    Signed-off-by: Ingo Molnar

    Suresh Siddha
     

24 May, 2011

19 commits