Commits on Jan 21, 2008
  1. @NigelCunningham

    [TuxOnIce] Fix missing size value in toi_bkd declaration.

    Fix missing size value in the TuxOnIce boot kernel data structure
    declaration.
    
    Thanks to 'JM' for finding the problem.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 21, 2008
Commits on Jan 19, 2008
  1. @NigelCunningham

    [TuxOnIce] Bump version number to 3.0-rc4.

    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 19, 2008
  2. @NigelCunningham

    [TuxOnIce] No default pre & post-hibernate commands for now.

    I was going to have default pre and post-hibernate commands, calling
    the hibernate script with --pre-hibernate and --post-hibernate
    respectively. On further reflection, however, I think this is a bad idea.
    For people who don't have up-to-date hibernate scripts (ones that will
    understand the new args), it will probably result in the script returning
    an error code, which will in turn cause the kernel to abort. So, for now
    at least, I'll leave the parameter blank by default.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 19, 2008
  3. @NigelCunningham

    [TuxOnIce] Use own version of open_by_devnum, with O_NONBLOCK.

    Use our own version of open_by_devnum, opening block devices with
    O_NONBLOCK. I'm not completely sure this does actually help performance,
    but will give it some more testing.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 19, 2008
  4. @NigelCunningham

    [TuxOnIce] Check whether a filesystem is frozen in vfs_unlink.

    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 19, 2008
  5. @NigelCunningham

    [TuxOnIce] Throttle I/O submission when low on memory.

    Add support for throttling I/O submission when we get low on memory.
    On the first failure to allocate memory, find out how much memory is
    currently free (this will be > 0 due to watermarks) add 50 and set that
    as the point at which we'll wait.
    
    The throttle is applied in get_io_info_struct. Each time we enter that
    routine, we check if the number of free pages is less then the throttle
    value, and wait for I/O completion & cleanup until enough memory is again
    free.
    
    We could potentially fall into a situation where there is no I/O in
    progress but we don't have enough memory free for the throttle criteria.
    This shouldn't happen because image preparation should free enough memory
    prior to starting I/O. Nevertheless, we check there is some outstanding
    I/O so as to avoid looping eternally here.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 19, 2008
Commits on Jan 18, 2008
  1. @NigelCunningham

    Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…

    …t/torvalds/linux-2.6 into tuxonice
    NigelCunningham committed Jan 18, 2008
Commits on Jan 17, 2008
  1. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/dtor/input
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
      Input: ALPS - fix sync loss on Acer Aspire 5720ZG
      Input: psmouse - fix input_dev leak in lifebook driver
      Input: psmouse - fix potential memory leak in psmouse_connect()
      Input: usbtouchscreen - fix buffer overflow, make more egalax work
      Input: mousedev - handle mice that use absolute coordinates
    Linus Torvalds committed Jan 17, 2008
  2. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
      [NIU]: Fix 1G PHY link state handling.
      [NET]: Fix TX timeout regression in Intel drivers.
    Linus Torvalds committed Jan 17, 2008
  3. Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
      [SPARC64]: Fix hypervisor TLB operation error reporting.
    Linus Torvalds committed Jan 17, 2008
  4. fix wrong sized spinlock flags argument

    Correct wrong sized spinlock flags, form int to unsigned long.
    
    Signed-off-by: Daniel Walker <dwalker@mvista.com>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Daniel Walker committed with Linus Torvalds Jan 17, 2008
  5. Fix unbalanced helper_lock in kernel/kmod.c

    call_usermodehelper_exec() has an exit path that can leave the
    helper_lock() call at the top of the routine unbalanced.  The attached
    patch fixes this issue.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    Cc: <stable@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Nigel Cunningham committed with Linus Torvalds Jan 17, 2008
  6. Revert "local_t Documentation update"

    This reverts commit e126520.
    
    It's a duplicate commit of commit 74beb9d,
    resulting in a duplicate section.
    
    Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
    Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Li Zefan committed with Linus Torvalds Jan 17, 2008
  7. @AlexLevkovich

    fix radeonfb regression with Xpress 200m 5955

    Fix http://bugzilla.kernel.org/show_bug.cgi?id=9762
    
    Framebuffer is ok only with default parameters only (it is 1280x800-8@60).  If
    parameters are video=radeonfb:1280x800-32@60 then xres, yres and xres_virtual
    are ok but yres_virtual is 1024.  It can be corrected by fbset utility so I
    think it can be corrected in the driver code also.
    
    Steps to reproduce: video=radeonfb:1280x800-32@60 or
    video=radeonfb:1280x800-16@60
    
    Add 1280x800 mode into modedb
    
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Cc: "Antonino A. Daplas" <adaplas@pol.net>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    AlexLevkovich committed with Linus Torvalds Jan 17, 2008
  8. #ifdef very expensive debug check in page fault path

    This patch puts #ifdef CONFIG_DEBUG_VM around a check in vm_normal_page
    that verifies that a pfn is valid.  This patch increases performance of the
    page fault microbenchmark in lmbench by 13% and overall dbench performance
    by 7% on s390x.  pfn_valid() is an expensive operation on s390 that needs a
    high double digit amount of CPU cycles.  Nick Piggin suggested that
    pfn_valid() involves an array lookup on systems with sparsemem, and
    therefore is an expensive operation there too.
    
    The check looks like a clear debug thing to me, it should never trigger on
    regular kernels.  And if a pte is created for an invalid pfn, we'll find
    out once the memory gets accessed later on anyway.  Please consider
    inclusion of this patch into mm.
    
    Signed-off-by: Carsten Otte <cotte@de.ibm.com>
    Acked-by: Nick Piggin <nickpiggin@yahoo.com.au>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Carsten Otte committed with Linus Torvalds Jan 17, 2008
  9. alpha: fix conversion from denormal float to double

    The trap handler does properly update the fraction,
    but not the exponent...
    
    Thanks to Paolo Bonzini for the bug report and the testcase.
    
    Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    Cc: Paolo Bonzini <bonzini@gnu.org>
    Cc: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Ivan Kokshaysky committed with Linus Torvalds Jan 17, 2008
  10. @jonibo

    jbd: do not try lock_acquire after handle made invalid

    This likely fixes the oops in __lock_acquire reported as:
    
    http://www.kerneloops.org/raw.php?rawid=2753&msgid=
    http://www.kerneloops.org/raw.php?rawid=2749&msgid=
    
    In these reported oopses, start_this_handle is returning -EROFS.
    
    Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    jonibo committed with Linus Torvalds Jan 17, 2008
  11. mm: fix section mismatch warning in page_alloc.c

    With CONFIG_HOTPLUG=n and CONFIG_HOTPLUG_CPU=y we saw
    following warning:
    WARNING: mm/built-in.o(.text+0x6864): Section mismatch: reference to .init.text: (between 'process_zones' and 'pageset_cpuup_callback')
    
    The culprit was zone_batchsize() which were annotated __devinit but used
    from process_zones() which is annotated __cpuinit.  zone_batchsize() are
    used from another function annotated __meminit so the only valid option is
    to drop the annotation of zone_batchsize() so we know it is always valid to
    use it.
    
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Sam Ravnborg committed with Linus Torvalds Jan 17, 2008
  12. CRIS v10: vmlinux.lds.S: ix kernel oops on boot and use common defines

    - Move alignment to page size of init data outside ifdef for BLK_DEV_INITRD.
      The reservation up to page size of memory after init data was previously
      not done if BLK_DEV_INITRD was undefined.
      This caused a kernel oops when init memory pages were freed after startup,
      data placed in the same page as the last init memory would also be freed
      and reused, with disastrous results.
    
    - Use macros for initcalls and .text sections.
    
    - Replace hardcoded page size constant with PAGE_SIZE define.
    
    - Change include/asm-cris/page.h to use the _AC macro to instead
      of testing __ASSEMBLY__.
    
    Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Cc: Mikael Starvik <mikael.starvik@axis.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Jesper Nilsson committed with Linus Torvalds Jan 17, 2008
  13. @lenb

    pnpacpi: print resource shortage message only once (more)

    Wups, previous patch was ineffective in 2 cases.
    
    http://bugzilla.kernel.org/show_bug.cgi?id=9535
    
    Signed-off-by: Len Brown <len.brown@intel.com>
    Reported-by: "Hartkopp, Oliver (K-EFE/E)" <oliver.hartkopp@volkswagen.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    lenb committed with Linus Torvalds Jan 17, 2008
  14. hfs: fix coverity-found null deref

    Fix potential null deref introduced by commit
    cf05946
    http://bugzilla.kernel.org/show_bug.cgi?id=9748
    
    Signed-off-by: Eric Sandeen <sandeen@redhat.com>
    Cc: Roman Zippel <zippel@linux-m68k.org>
    Reported-by: Adrian Bunk <bunk@stusta.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Eric Sandeen committed with Linus Torvalds Jan 17, 2008
  15. cpufreq: Initialise default governor before use

    When the cpufreq driver starts up at boot time, it calls into the default
    governor which might not be initialised yet.  This hurts when the
    governor's worker function relies on memory that is not yet set up by its
    init function.
    
    This migrates all governors from module_init() to fs_initcall() when being
    the default, as was already done in cpufreq_performance when it was the
    only possible choice.  The performance governor is always initialized early
    because it might be used as fallback even when not being the default.
    
    Fixes at least one actual oops where ondemand is the default governor and
    cpufreq_governor_dbs() uses the uninitialised kondemand_wq work-queue
    during boot-time.
    
    Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
    Cc: Dave Jones <davej@codemonkey.org.uk>
    Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
    Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
    Acked-by: Ingo Molnar <mingo@elte.hu>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Johannes Weiner committed with Linus Torvalds Jan 17, 2008
  16. @dtor

    Input: ALPS - fix sync loss on Acer Aspire 5720ZG

    The recently added support for Dell Volstro 1400 was causing protocol
    synchronization errors on Acer Aspire 5720ZG, fix it.
    
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    dtor committed Jan 17, 2008
  17. @dilinger @dtor

    Input: psmouse - fix input_dev leak in lifebook driver

    The lifebook driver may register a second input device, but it never
    unregisters it.  This fixes that.
    
    Signed-off-by: Andres Salomon <dilinger@debian.org>
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    dilinger committed with dtor Jan 17, 2008
  18. @dilinger @dtor

    Input: psmouse - fix potential memory leak in psmouse_connect()

    If we successfully call input_register_device() in psmouse_connect()
    but sysfs_create_group() fails, we'll enter the error path without
    ever having called input_unregister_device() potentially leaking
    memory.
    
    Signed-off-by: Andres Salomon <dilinger@debian.org>
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    dilinger committed with dtor Jan 17, 2008
  19. @dr-itz @dtor

    Input: usbtouchscreen - fix buffer overflow, make more egalax work

    Fix a buffer overflow in mutli-packet handling code.  The overflow can
    only happen with eGalax devices and is even there very unlikely (only
    non-report packet are affected any only when truncated after the first
    byte).
    
    Also changes the mutli-packet handling code not to drop unknown packets,
    but rather just drop one byte.  This allows synchronizing on report packets
    in the data stream.  It's required for some egalax devices to work at all.
    
    Also remove the pointless 'flags' member of the device struct and set the
    version number to 0.6, plus some minor cleanups.
    
    [akpm@linux-foundation.org: coding-style fixes]
    
    Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    dr-itz committed with dtor Jan 17, 2008
  20. @dtor

    Input: mousedev - handle mice that use absolute coordinates

    Devices like the HP Integrated Remote Console Virtual Mouse, which are
    standard equipment on all Proliant and Integrity servers, produce
    absolute coordinates instead of relative coordinates.  This is done to
    synchronize the position of the mouse cursor on the client desktop
    with the mouse cursor position on the server.  Mousedev is not
    designed to pass those absolute events directly to X, but it can
    translate them into relative movements.  It currently does this for
    tablet like devices and touchpads.  This patch merely tells it to also
    include a device with ABS_X, ABS_Y, and mouse buttons in its list of
    devices to process input for.
    
    This patch enables the mouse pointer to move when using the remote
    console.
    
    Signed-off-by: Micah Parrish <micah.parrish@hp.com>
    Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
    Micah Parrish committed with dtor Jan 17, 2008
  21. @davem330

    [SPARC64]: Fix hypervisor TLB operation error reporting.

    1) Trap level wasn't being passed down properly, we need to
       move it from %l4 into the correct outgoing arg register.
    
    2) Although the TPC often provides the most direct clue, we
       have the caller PC so we should provide that as well.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Jan 17, 2008
  22. @NigelCunningham
  23. @davem330

    [NIU]: Fix 1G PHY link state handling.

    The code in link_status_1g() computes the active speed
    and duplex but does not update the link config state
    with those values.
    
    As a result the link speed is not reported correctly
    and the XIF is not reprogrammed properly on link up
    events.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Jan 15, 2008
  24. @davem330

    [NET]: Fix TX timeout regression in Intel drivers.

    This fixes a regression added by changeset
    53e52c7 ("[NET]: Make ->poll()
    breakout consistent in Intel ethernet drivers.")
    
    As pointed out by Jesse Brandeburg, for three of the drivers edited
    above there is breakout logic in the *_clean_tx_irq() code to prevent
    running TX reclaim forever.  If this occurs, we have to elide NAPI
    poll completion or else those TX events will never be serviced.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Acked-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
    davem330 committed Jan 15, 2008
  25. @NigelCunningham

    [TuxOnIce] Print the module list once per cycle only.

    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 17, 2008
  26. @NigelCunningham

    [TuxOnIce] Tidy block i/o memory needs breakdown.

    Modify the block i/o memory needs breakdown a little, so it fits in
    better with the formatting of existing data.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 17, 2008
  27. @NigelCunningham

    [TuxOnIce] Shift bio memory needed analysis to debugging info.

    Shift the analysis of memory needed for block i/o code from a printk
    in the memory_needed function to the debugging info function.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 17, 2008
  28. @NigelCunningham

    [TuxOnIce] Suppress 'Failed to launch' message if program did run.

    Suppress 'Failed to launch' message if the program did run, but
    exited with a non-zero status. It is then up to the caller to
    report the problem if they want to.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Jan 17, 2008