04 Jun, 2009

1 commit


03 Jun, 2009

2 commits

  • All __initdata should be __devinitdata as platform device is hotpluggable.

    Signed-off-by: Takashi Iwai

    Takashi Iwai
     
  • [I am not sure if this is the correct approach as I don't know if any of
    this actual hardware or drivers are really hot pluggable.]

    Gets rid of these build warnings:

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x5c): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_new()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_new().
    If .snd_pmac_new is only used by .snd_pmac_probe then
    annotate .snd_pmac_new with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x10c): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_burgundy_init()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_burgundy_init().
    If .snd_pmac_burgundy_init is only used by .snd_pmac_probe then
    annotate .snd_pmac_burgundy_init with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x164): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_daca_init()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_daca_init().
    If .snd_pmac_daca_init is only used by .snd_pmac_probe then
    annotate .snd_pmac_daca_init with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x1dc): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_tumbler_init()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_tumbler_init().
    If .snd_pmac_tumbler_init is only used by .snd_pmac_probe then
    annotate .snd_pmac_tumbler_init with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x1ec): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_tumbler_post_init()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_tumbler_post_init().
    If .snd_pmac_tumbler_post_init is only used by .snd_pmac_probe then
    annotate .snd_pmac_tumbler_post_init with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x28c): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_awacs_init()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_awacs_init().
    If .snd_pmac_awacs_init is only used by .snd_pmac_probe then
    annotate .snd_pmac_awacs_init with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x2bc): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_pcm_new()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_pcm_new().
    If .snd_pmac_pcm_new is only used by .snd_pmac_probe then
    annotate .snd_pmac_pcm_new with a matching annotation.

    WARNING: sound/ppc/snd-powermac.o(.devinit.text+0x2f8): Section mismatch in reference from the function .snd_pmac_probe() to the function .init.text:.snd_pmac_attach_beep()
    The function __devinit .snd_pmac_probe() references
    a function __init .snd_pmac_attach_beep().
    If .snd_pmac_attach_beep is only used by .snd_pmac_probe then
    annotate .snd_pmac_attach_beep with a matching annotation.

    Signed-off-by: Stephen Rothwell
    Signed-off-by: Takashi Iwai

    Stephen Rothwell
     

29 May, 2009

36 commits

  • * git://git.infradead.org/~dwmw2/mtd-2.6.30:
    jffs2: Fix corruption when flash erase/write failure
    mtd: MXC NAND driver fixes (v5)

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    Revert "USB: Correct Makefile to make isp1760 buildable"
    usb-serial: fix crash when sub-driver updates firmware
    USB: isp1760: urb_dequeue doesn't always find the urbs
    USB: Yet another Conexant Clone to add to cdc-acm.c
    USB: atmel_usb_udc: Use kzalloc() to allocate ep structures
    USB: atmel-usba-udc : fix control out requests.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    Driver Core: do not oops when driver_unregister() is called for unregistered drivers
    sysfs: file.c: use create_singlethread_workqueue()

    Linus Torvalds
     
  • * 'for-2.6.30' of git://linux-nfs.org/~bfields/linux:
    svcrdma: dma unmap the correct length for the RPCRDMA header page.
    nfsd: Revert "svcrpc: take advantage of tcp autotuning"
    nfsd: fix hung up of nfs client while sync write data to nfs server

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: libps2 - better handle bad scheduler decisions
    Input: usb1400_ts - fix access to "device data" in resume function
    Input: multitouch - augment event semantics documentation
    Input: multitouch - add tracking ID to the protocol

    Linus Torvalds
     
  • * 'drm-intel-next' of git://git.kernel.org/pub/scm/linux/kernel/git/anholt/drm-intel:
    i915: Set object to gtt domain when faulting it back in
    drm/i915: Apply a big hammer to 865 GEM object CPU cache flushing.
    drm/i915: Fix tiling pitch handling on 8xx.

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: hda - Compaq Presario CQ60 patching for Conexant
    sound: usb-audio: make the MotU Fastlane work again
    ALSA: Enable PCM hw_ptr_jiffies check only in xrun_debug mode
    ALSA: Fix invalid jiffies check after pause

    Linus Torvalds
     
  • If you setserial a port which has never been initialised we change the type
    but don't update the I/O method pointers. The same problem is true if you
    change the io type of a port - but nobody ever does that so nobody noticed!

    Remember the old type and when attaching if the type has changed reload the
    port accessor pointers. We can't do it blindly as some 8250 drivers load custom
    accessors and we must not stomp those.

    Tested-by: Victor Seryodkin
    Closes-bug: #13367
    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • The amd8111_edac.c driver will fail allmodconfig on architectures other
    than PPC, introduce Kconfig dependency to avoid this, since both AMD8111
    and AMD8131 chips are only adopted on Maple so far.

    Signed-off-by: Harry Ciao
    Cc: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harry Ciao
     
  • The "bus_id" member in the device structure has been obsolete, use
    dev_name() instead.

    Signed-off-by: Harry Ciao
    Cc: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harry Ciao
     
  • Fix build warning, "mem_cgroup_is_obsolete defined but not used" when
    CONFIG_DEBUG_VM is not set. Also avoid checking for !mem again and again.

    Signed-off-by: Nikanth Karthikesan
    Acked-by: Pekka Enberg
    Acked-by: KAMEZAWA Hiroyuki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nikanth Karthikesan
     
  • Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13302

    hugetlbfs reserves huge pages but does not fault them at mmap() time to
    ensure that future faults succeed. The reservation behaviour differs
    depending on whether the mapping was mapped MAP_SHARED or MAP_PRIVATE.
    For MAP_SHARED mappings, hugepages are reserved when mmap() is first
    called and are tracked based on information associated with the inode.
    Other processes mapping MAP_SHARED use the same reservation. MAP_PRIVATE
    track the reservations based on the VMA created as part of the mmap()
    operation. Each process mapping MAP_PRIVATE must make its own
    reservation.

    hugetlbfs currently checks if a VMA is MAP_SHARED with the VM_SHARED flag
    and not VM_MAYSHARE. For file-backed mappings, such as hugetlbfs,
    VM_SHARED is set only if the mapping is MAP_SHARED and the file was opened
    read-write. If a shared memory mapping was mapped shared-read-write for
    populating of data and mapped shared-read-only by other processes, then
    hugetlbfs would account for the mapping as if it was MAP_PRIVATE. This
    causes processes to fail to map the file MAP_SHARED even though it should
    succeed as the reservation is there.

    This patch alters mm/hugetlb.c and replaces VM_SHARED with VM_MAYSHARE
    when the intent of the code was to check whether the VMA was mapped
    MAP_SHARED or MAP_PRIVATE.

    Signed-off-by: Mel Gorman
    Cc: Hugh Dickins
    Cc: Ingo Molnar
    Cc:
    Cc: Lee Schermerhorn
    Cc: KOSAKI Motohiro
    Cc:
    Cc: Eric B Munson
    Cc: Adam Litke
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13302

    On x86 and x86-64, it is possible that page tables are shared beween
    shared mappings backed by hugetlbfs. As part of this,
    page_table_shareable() checks a pair of vma->vm_flags and they must match
    if they are to be shared. All VMA flags are taken into account, including
    VM_LOCKED.

    The problem is that VM_LOCKED is cleared on fork(). When a process with a
    shared memory segment forks() to exec() a helper, there will be shared
    VMAs with different flags. The impact is that the shared segment is
    sometimes considered shareable and other times not, depending on what
    process is checking.

    What happens is that the segment page tables are being shared but the
    count is inaccurate depending on the ordering of events. As the page
    tables are freed with put_page(), bad pmd's are found when some of the
    children exit. The hugepage counters also get corrupted and the Total and
    Free count will no longer match even when all the hugepage-backed regions
    are freed. This requires a reboot of the machine to "fix".

    This patch addresses the problem by comparing all flags except VM_LOCKED
    when deciding if pagetables should be shared or not for hugetlbfs-backed
    mapping.

    Signed-off-by: Mel Gorman
    Acked-by: Hugh Dickins
    Cc: Ingo Molnar
    Cc:
    Cc: Lee Schermerhorn
    Cc: KOSAKI Motohiro
    Cc:
    Cc: Eric B Munson
    Cc: Adam Litke
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mel Gorman
     
  • Remove wrong fifo size definition for some AT91 products.

    Due to a misunderstanding of some AT91 datasheets, a fifo size of 2048
    (words) has been introduced by mistake. In fact, all products (AT91/AT32)
    are sharing the same fifo size of 512 words.

    Signed-off-by: Nicolas Ferre
    Cc: Andrew Victor
    Acked-by: Haavard Skinnemoen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nicolas Ferre
     
  • Correctly restore the FrameBuffer register state in the resume function.

    Reviewed-by: Kyungmin Park
    Signed-off-by: Marek Szyprowski
    Cc: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marek Szyprowski
     
  • drivers/serial/8250_gsc.c:44: warning: format '%lx' expects type
    'long unsigned int', but argument 2 has type 'resource_size_t'

    [akpm@linux-foundation.org: fix it to handle u64's]
    Signed-off-by: Alexander Beregalov
    Cc: Alan Cox
    Cc: Kyle McMartin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexander Beregalov
     
  • drivers/parport/parport_gsc.c:356: warning: format '%lx' expects type
    'long unsigned int', but argument 2 has type 'resource_size_t'

    [akpm@linux-foundation.org: fix it to handle u64's]
    Signed-off-by: Alexander Beregalov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexander Beregalov
     
  • The flat loader uses an architecture's flat_stack_align() to align the
    stack but assumes word-alignment is enough for the data sections.

    However, on the Xtensa S6000 we have registers up to 128bit width
    which can be used from userspace and therefor need userspace stack and
    data-section alignment of at least this size.

    This patch drops flat_stack_align() and uses the same alignment that
    is required for slab caches, ARCH_SLAB_MINALIGN, or wordsize if it's
    not defined by the architecture.

    It also fixes m32r which was obviously kaput, aligning an
    uninitialized stack entry instead of the stack pointer.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Oskar Schirmer
    Cc: David Howells
    Cc: Russell King
    Cc: Bryan Wu
    Cc: Geert Uytterhoeven
    Acked-by: Paul Mundt
    Cc: Greg Ungerer
    Signed-off-by: Johannes Weiner
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Oskar Schirmer
     
  • Signed-off-by: Thomas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Dahlmann
     
  • The check for an overindexing of mpc52xx_uart_{ports,nodes} has an
    off-by-one.

    Signed-off-by: Roel Kluin
    Acked-by: Wolfram Sang
    Acked-by: Grant Likely
    Cc: Benjamin Herrenschmidt
    Cc: Alan Cox
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • mapping->tree_lock can be acquired from interrupt context. Then,
    following dead lock can occur.

    Assume "A" as a page.

    CPU0:
    lock_page_cgroup(A)
    interrupted
    -> take mapping->tree_lock.
    CPU1:
    take mapping->tree_lock
    -> lock_page_cgroup(A)

    This patch tries to fix above deadlock by moving memcg's hook to out of
    mapping->tree_lock. charge/uncharge of pagecache/swapcache is protected
    by page lock, not tree_lock.

    After this patch, lock_page_cgroup() is not called under mapping->tree_lock.

    Signed-off-by: KAMEZAWA Hiroyuki
    Signed-off-by: Daisuke Nishimura
    Cc: Balbir Singh
    Cc: Daisuke Nishimura
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daisuke Nishimura
     
  • proc_pident_instantiate() has following call flow.

    proc_pident_lookup()
    proc_pident_instantiate()
    proc_pid_make_inode()

    And, proc_pident_lookup() has following error handling.

    const struct pid_entry *p, *last;
    error = ERR_PTR(-ENOENT);
    if (!task)
    goto out_no_task;

    Then, proc_pident_instantiate should return ENOENT too when racing against
    exit(2) occur.

    EINAL has two bad reason.
    - it implies caller is wrong. bad the race isn't caller's mistake.
    - man 2 open don't explain EINVAL. user often don't handle it.

    Note: Other proc_pid_make_inode() caller already use ENOENT properly.

    Acked-by: Eric W. Biederman
    Cc: Alexey Dobriyan
    Signed-off-by: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • linux/cred.h can't be included as first header (alphabetical order)
    because it uses __init which is enough to break compilation on some archs.

    Signed-off-by: Alexey Dobriyan
    Acked-by: James Morris
    Acked-by: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • When /proc/sys/vm/oom_dump_tasks is enabled, it is possible to get a NULL
    pointer for tasks that have detached mm's since task_lock() is not held
    during the tasklist scan. Add the task_lock().

    Acked-by: Nick Piggin
    Acked-by: Mel Gorman
    Cc: Rik van Riel
    Signed-off-by: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • Entries should be P: name then M: email address.

    Signed-off-by: Joe Perches
    Acked-by: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Erase errors such as:
    "Newly-erased block contained word 0xa4ef223e at offset 0x0296a014"
    and failure to write the clean marker,
    moves the offending erase block to erasing list before calling
    jffs2_erase_failed(). This is bad as jffs2_erase_failed() will
    also move the block to the bad_list, but is now moving the
    wrong block, causing FS corruption.

    Signed-off-by: Joakim Tjernlund
    Signed-off-by: David Woodhouse

    Joakim Tjernlund
     
  • The following patch fixes:
    - re-initialization of host->col_addr which is used as byte index
    between the successive READID flash commands.
    - compile error when CONFIG_PM is enabled
    - pass on the error code from clk_get()
    - return -ENOMEM in case of failed ioremap()
    - pass on the return value of platform_driver_probe() directly
    - remove excessive printk
    - let command line partition table parsing with mxc_nand name.
    The cmd_line parsing is done via name that differs
    from mxc_nand by default and looks like "NAND 256MiB 1,8V 8-bit"

    Signed-off-by: Vladimir Barinov
    Signed-off-by: Lothar Wassmann
    Acked-by: Sascha Hauer
    Signed-off-by: Artem Bityutskiy
    Signed-off-by: David Woodhouse

    Vladimir Barinov
     
  • We also fix a problem with cleaning up properly when initializing
    drivers and devices, so checks like this will work successfully.

    Portions of the patch by Linus and Greg and Ingo.

    Reported-by: Ozan Çağlayan
    Signed-off-by: Kay Sievers
    Cc: Linus Torvalds
    Cc: Ingo Molnar
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • We don't need a kernel thread per CPU for this application.

    Acked-by: Alex Chiang
    Cc: Lai Jiangshan
    Cc: Peter Zijlstra
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • This reverts commit 26e1287594864169577327fef233befc9739be3b.

    A larger patch (f7e7aa585) a few days after this one added the same line
    to the Makefile, but in a different place. While it'd be more correct to
    revert that one, it's easier to revert this one because this is a
    one-liner.

    Signed-off-by: Mike Frysinger
    CC: Greg Kroah-Hartman
    CC: linux-usb@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mike Frysinger
     
  • This patch (as1244) fixes a crash in usb-serial that occurs when a
    sub-driver returns a positive value from its attach method, indicating
    that new firmware was loaded and the device will disconnect and
    reconnect. The usb-serial core then skips the step of registering the
    port devices; when the disconnect occurs, the attempt to unregister
    the ports fails dramatically.

    This problem shows up with Keyspan devices and it might affect others
    as well.

    When the attach method returns a positive value, the patch sets
    num_ports to 0. This tells usb_serial_disconnect() not to try
    unregistering any of the ports; instead they are cleaned up by
    destroy_serial().

    Signed-off-by: Alan Stern
    Tested-by: Benjamin Herrenschmidt
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • The option driver (and presumably others) allocates several URBs when it
    opens and tries to free them when it closes. The isp1760_urb_dequeue
    function gets called, but the packet being dequeued is not necessarily at
    the
    front of one of the 32 queues. If not, the isp1760_urb_done function doesn't
    get called for the URB and the process trying to free it hangs forever on a
    wait_queue. This patch does two things. If the URB being dequeued has others
    queued behind it, it re-queues them. And it searches the queues looking for
    the URB being dequeued rather than just looking at the one at the front of
    the queue.

    [bigeasy@linutronix] whitespace fixes, reformating

    Cc: stable
    Signed-off-by: Warren Free
    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Greg Kroah-Hartman

    Warren Free
     
  • This patch adds another quirky Conexant USB Modem Clone to usb cdc-acm.c

    Signed-off-by: Xiao Kaijian
    Signed-off-by: Greg Kroah-Hartman

    Xiao Kaijian
     
  • This ensures that all fields are properly initialized.

    Signed-off-by: Haavard Skinnemoen
    Acked-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Haavard Skinnemoen
     
  • usbtest #14 was failing with "udc: ep0: TXCOMP: Invalid endpoint state 2, halting endpoint..."
    This occured since ep0 is bidirectional and ep->is_in is not valid (must always use ep->state)

    Signed-off-by: Martin Fuzzey
    Acked-by: David Brownell
    Acked-by: Haavard Skinnemoen
    Signed-off-by: Greg Kroah-Hartman

    Martin Fuzzey
     
  • Sometimes devices send us their responses in time but due to
    unfortunate scheduling decisions the receiving thread does not
    get scheduled till much later and we erroneously decide that
    device timed out. Work around this problem by checking whether we
    received the data we needed instead of checking timeout
    condition.

    Tested-by: Sitsofe Wheeler
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

28 May, 2009

1 commit