03 Dec, 2009

2 commits


02 Dec, 2009

10 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
    Staging: update TODO files
    Staging: hv: Fix some missing author names
    Staging: hv: Fix vmbus event handler bug
    Staging: hv: Fix argument order in incorrect memset invocations in hyperv driver.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: Add support for Mobilcom Debitel USB UMTS Surf-Stick to option driver
    USB: work around for EHCI with quirky periodic schedules
    USB: musb: Fix CPPI IRQs not being signaled
    USB: musb: respect usb_request->zero in control requests
    USB: musb: fix ISOC Tx programming for CPPI DMAs
    USB: musb: Remove unwanted message in boot log
    usb: amd5536udc: fixed shared interrupt bug and warning oops
    USB: ftdi_sio: Keep going when write errors are encountered.
    USB: musb_gadget: fix STALL handling
    USB: EHCI: don't send Clear-TT-Buffer following a STALL

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
    tty/of_serial: add missing ns16550a id
    bcm63xx_uart: Fix serial driver compile breakage.
    tty_port: handle the nonblocking open of a dead port corner case

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    MIPS: Loongson: Switch from flatmem to sparsemem
    MIPS: Loongson: Disallow 4kB pages
    MIPS: Add missing definition for MADV_HWPOISON.
    MIPS: Fix build error if __xchg() is not getting inlined.
    MIPS: IP22/IP28 Disable early printk to fix boot problems on some systems.

    Linus Torvalds
     
  • With flatmem hibernation for Loongson will fail, and there are also some
    other problems such as broken files when using NFS or CIFS / Samba.

    The config help of sparsemem says:

    "This option provides some potential performance benefits, along with
    decreased code complexity."

    So to avoid the potential problems of FLATMEM, we disable FLATMEM directly
    and use SPARSEMEM instead.

    Related email thread:

    http://groups.google.com/group/loongson-dev/browse_thread/thread/b6b65890ec2b0f24/feb43e5aa7f55d9b?show_docid=feb43e5aa7f55d9b

    Reported-by: Tatu Kilappa
    Signed-off-by: Wu Zhangjin
    Patchwork: http://patchwork.linux-mips.org/patch/737/
    Cc: linux-mips@linux-mips.org
    Cc: zhangfx@lemote.com
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Currently, with PAGE_SIZE_4KB, the kernel for loongson will hang on:

    Kernel panic - not syncing: Attempted to kill init!

    The possible reason is the cache aliases problem:

    Loongson 2F has 64kb, 4 way L1 Cache, the way size is 16kb, which is bigger
    then 4kb. so, If using 4kb page size, there is cache aliases problem.
    To avoid this kind of problem, extra cache flushing. The 2nd possible
    solution is 16kb page size which avoids cache aliases without the need for
    extra cache flushes. So we disable 4kB pages until the aliasing issue is
    solved.

    Signed-off-by: Wu Zhangjin
    Patchwork: http://patchwork.linux-mips.org/patch/736/
    Cc: linux-mips@linux-mips.org
    Cc: zhangfx@lemote.com
    Signed-off-by: Ralf Baechle

    Wu Zhangjin
     
  • Thanks to Joseph S. Myers for reporting this.

    Signed-off-by: Ralf Baechle
    Cc: "Joseph S. Myers"
    Patchwork: http://patchwork.linux-mips.org/patch/723/

    Ralf Baechle
     
  • If __xchg() is not getting inlined the outline version of the function
    will have a reference to __xchg_called_with_bad_pointer() which does not
    exist remaining. Fixed by using BUILD_BUG_ON() to check for allowable
    operand sizes.

    Signed-off-by: Ralf Baechle
    Patchwork: http://patchwork.linux-mips.org/patch/705/

    Ralf Baechle
     
  • Some Debian users have reported that the kernel hangs early during boot on
    some IP22 systems. Thomas Bogendoerfer found that this is due to a "bad
    interaction between CONFIG_EARLY_PRINTK and overwritten prom memory during
    early boot". Since there's no fix yet, disable CONFIG_EARLY_PRINTK for now.

    Signed-off-by: Martin Michlmayr
    Cc: linux-mips@linux-mips.org
    Cc: Thomas Bogendoerfer
    Cc: Dmitri Vorobiev
    Patchwork: http://patchwork.linux-mips.org/patch/702/
    Signed-off-by: Ralf Baechle

    Martin Michlmayr
     
  • Move slow_work's debugging proc file to debugfs.

    Signed-off-by: David Howells
    Requested-and-acked-by: Ingo Molnar
    Signed-off-by: Linus Torvalds

    David Howells
     

01 Dec, 2009

28 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha-2.6:
    alpha: Fixup last users of irq_chip->typename
    Alpha: Rearrange thread info flags fixing two regressions
    arch/alpha/kernel: Add kmalloc NULL tests
    arch/alpha/kernel/sys_ruffian.c: Use DIV_ROUND_CLOSEST

    Linus Torvalds
     
  • When IMA is active, using dentry_open without updating the
    IMA counters will result in free/open imbalance errors when
    fput is eventually called.

    Signed-off-by: Marc Dionne
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    Marc Dionne
     
  • Commits 3d7a641 ("SLOW_WORK: Wait for outstanding work items belonging to a
    module to clear") introduced some code to make sure that all of a module's
    slow-work items were complete before that module was removed, and commit
    3bde31a ("SLOW_WORK: Allow a requeueable work item to sleep till the thread is
    needed") further extended that, breaking it in the process if CONFIG_MODULES=n:

    CC kernel/slow-work.o
    kernel/slow-work.c: In function 'slow_work_execute':
    kernel/slow-work.c:313: error: 'slow_work_thread_processing' undeclared (first use in this function)
    kernel/slow-work.c:313: error: (Each undeclared identifier is reported only once
    kernel/slow-work.c:313: error: for each function it appears in.)
    kernel/slow-work.c: In function 'slow_work_wait_for_items':
    kernel/slow-work.c:950: error: 'slow_work_unreg_sync_lock' undeclared (first use in this function)
    kernel/slow-work.c:951: error: 'slow_work_unreg_wq' undeclared (first use in this function)
    kernel/slow-work.c:961: error: 'slow_work_unreg_work_item' undeclared (first use in this function)
    kernel/slow-work.c:974: error: 'slow_work_unreg_module' undeclared (first use in this function)
    kernel/slow-work.c:977: error: 'slow_work_thread_processing' undeclared (first use in this function)
    make[1]: *** [kernel/slow-work.o] Error 1

    Fix this by:

    (1) Extracting the bits of slow_work_execute() that are contingent on
    CONFIG_MODULES, and the bits that should be, into inline functions and
    placing them into the #ifdef'd section that defines the relevant variables
    and adding stubs for moduleless kernels. This allows the removal of some
    #ifdefs.

    (2) #ifdef'ing out the contents of slow_work_wait_for_items() in moduleless
    kernels.

    The four functions related to handling module unloading synchronisation (and
    their associated variables) could be offloaded into a separate .c file, but
    each function is only used once and three of them are tiny, so doing so would
    prevent them from being inlined.

    Reported-by: Ingo Molnar
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • While building 2.6.32-rc8-git2 for Fedora I noticed the following thinko
    in commit 201a15428bd54f83eccec8b7c64a04b8f9431204 ("FS-Cache: Handle
    pages pending storage that get evicted under OOM conditions"):

    fs/9p/cache.c: In function '__v9fs_fscache_release_page':
    fs/9p/cache.c:346: error: 'vnode' undeclared (first use in this function)
    fs/9p/cache.c:346: error: (Each undeclared identifier is reported only once
    fs/9p/cache.c:346: error: for each function it appears in.)
    make[2]: *** [fs/9p/cache.o] Error 1

    Fix the 9P filesystem to correctly construct the argument to
    fscache_maybe_release_page().

    Signed-off-by: Kyle McMartin
    Signed-off-by: Xiaotian Feng [from identical patch]
    Signed-off-by: Stefan Lippers-Hollmann [from identical patch]
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • The typename member of struct irq_chip was kept for migration purposes
    and is obsolete since more than 2 years. Fix up the leftovers.

    Signed-off-by: Thomas Gleixner
    Cc: Richard Henderson
    Cc: linux-alpha@vger.kernel.org
    Signed-off-by: Matt Turner

    Thomas Gleixner
     
  • The removal of the TIF_NOTIFY_RESUME flag, commit a583f1b54249b
    "remove unused TIF_NOTIFY_RESUME flag," resulted in incorrect
    setting of the unaligned access control flags by the prctl syscall.

    The re-addition of the TIF_NOTIFY_RESUME flag, commit d0420c83f39f
    "KEYS: Extend TIF_NOTIFY_RESUME to (almost) all architectures [try #6]"
    further caused problems, namely incorrect operands to assembler code
    as evidenced by:

    AS arch/alpha/kernel/entry.o
    arch/alpha/kernel/entry.S: Assembler messages:
    arch/alpha/kernel/entry.S:326: Warning: operand out of range
    (0x0000000000000406 is not between 0x0000000000000000 and
    0x00000000000000ff)

    Both regressions fixed by (1) rearranging TIF_NOTIFY_RESUME flag to be
    in lower 8 bits of the thread info flags, and (2) making sure that
    ALPHA_UAC_SHIFT matches the rearrangement of the thread info flags.

    Signed-off-by: Michael Cree
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: David Howells ,
    Signed-off-by: Matt Turner

    Michael Cree
     
  • * 'security' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6:
    mac80211: fix spurious delBA handling
    mac80211: fix two remote exploits

    Linus Torvalds
     
  • This patch adds the vendor and device id for the Mobilcom Debitel UMTS surf
    stick (a.k.a. 4G Systems XSStick W14, MobiData MBD-200HU, ...).

    To see these ids, you need to switch the stick to modem operation first
    with the help of usb_modeswitch. This makes it switch from 1c9e:f000 to
    1c9e:9603 and thus be recognized by the option driver.

    Signed-off-by: Gernot Hillier
    Signed-off-by: Greg Kroah-Hartman

    Gernot Hillier
     
  • a quirky chipset needs periodic schedules to run for a minimum
    time before they can be disabled again. This enforces the requirement
    with a time stamp and a calculated delay

    Signed-off-by: Oliver Neukum
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • On tx channel abort a cppi interrupt is generated for a short time by
    setting the lowest bit of the TCPPICOMPPTR register. It is then reset
    immediately by clearing the bit. When the interrupt handler is run,
    it does not detect an interrupt in the TCPPIMSKSR or RCPPIMSKSR
    registers and thus exits early without writing the TCPPIEOIR register.
    It appears that this inhibits further cppi interrupts until the handler
    is called by chance, f.ex. from davinci_interrupt().

    By moving the unmasking of the interrupt below the writes to
    TCPPICOMPPTR, no interrupt is generated and no write to TCPPIEOIR is
    necessary.

    Signed-off-by: Daniel Glöckner
    Signed-off-by: Ajay Kumar Gupta
    Signed-off-by: Greg Kroah-Hartman

    Daniel Glöckner
     
  • In gadget mode the answer to a control request should be followed by
    a zero-length packet if the amount transferred is an exact multiple of
    the endpoint's packet size and the requests has its "zero" flag set.

    This patch prevents the request from being immediately removed from the
    queue when a control IN transfer ends on a full packet and "zero" is set.
    The next time ep0_txstate is entered, a zero-length packet is queued and
    the request is removed as fifo_count is 0.

    Signed-off-by: Daniel Glöckner
    Signed-off-by: Ajay Kumar Gupta
    Signed-off-by: Greg Kroah-Hartman

    Daniel Glöckner
     
  • Isochronous Tx DMA is getting programmed but never getting started
    for CPPI and TUSB DMAs and thus Isochronous Tx doesn't work.

    Fixing it by starting DMAs using musb_h_tx_dma_start().

    Signed-off-by: Swaminathan S
    Signed-off-by: Babu Ravi
    Signed-off-by: Ajay Kumar Gupta
    Signed-off-by: Greg Kroah-Hartman

    Ajay Kumar Gupta
     
  • Removes below unnecessary log of almost 28 lines during boot.

    musb_hdrc: hw_ep 0shared, max 64
    musb_hdrc: hw_ep 1tx, max 512
    musb_hdrc: hw_ep 1rx, max 512
    ...
    ...
    musb_hdrc: hw_ep 13shared, max 4096
    musb_hdrc: hw_ep 14shared, max 1024
    musb_hdrc: hw_ep 15shared, max 1024

    Signed-off-by: Ajay Kumar Gupta
    Acked-by: Felipe Balbi
    Signed-off-by: Greg Kroah-Hartman

    Ajay Kumar Gupta
     
  • - fixed shared interrupt bug reported by Vadim Lobanov
    - fixed possible warning oops on driver unload when connected
    - prevent interrupt flood in PIO mode ("modprobe amd5536udc use_dma=0")
    when using gadget ether

    Signed-off-by: Thomas Dahlmann
    Cc: Robert Richter
    Cc: David Brownell
    Cc: stable
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Thomas Dahlmann
     
  • The use of urb->actual_length to update tx_outstanding_bytes
    implicitly assumes that the number of bytes actually written is the
    same as the number of bytes we tried to write. On error that
    assumption is violated so just use transfer_buffer_length the number
    of bytes we intended to write to the device.

    If an error occurs we need to fall through and call
    usb_serial_port_softint to wake up processes waiting in
    tty_wait_until_sent.

    Signed-off-by: Eric W. Biederman
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • The driver incorrectly cancels the mass-storage device CSW request
    (which leads to device reset) due to giving back URB at the head of
    endpoint's queue after sending each STALL handshake; stop doing that
    and start checking for the queue being non-empty before stalling an
    endpoint and disallowing stall in such case in musb_gadget_set_halt()
    like the other gadget drivers do.

    Moreover, the driver starts Rx request despite of the endpoint being
    halted -- fix this by moving the SendStall bit check from musb_g_rx()
    to rxstate(). And we also sometimes get into rxstate() with DMA still
    active after clearing an endpoint's halt (not clear why), so bail out
    in this case, similarly to what txstate() does...

    While at it, also do the following changes :

    - in musb_gadget_set_halt(), remove pointless Tx FIFO flushing (the
    driver does not allow stalling with non-empty Tx FIFO anyway);

    - in rxstate(), stop pointlessly zeroing the 'csr' variable;

    - in musb_gadget_set_halt(), move the 'done' label to a more proper
    place;

    - in musb_g_rx(), eliminate the 'done' label completely...

    Signed-off-by: Sergei Shtylyov
    Cc:
    Signed-off-by: Greg Kroah-Hartman

    Sergei Shtylyov
     
  • This patch (as1304) fixes a regression in ehci-hcd. Evidently some
    hubs don't handle Clear-TT-Buffer requests correctly, so we should
    avoid sending them when they don't appear to be absolutely necessary.
    The reported symptom is that output on a downstream audio device cuts
    out because the hub stops relaying isochronous packets.

    The patch prevents Clear-TT-Buffer requests from being sent following
    a STALL handshake. In theory a STALL indicates either that the
    downstream device sent a STALL or that no matching TT buffer could be
    found. In either case, the transfer is completed and the TT buffer
    does not remain busy, so it doesn't need to be cleared.

    Also, the patch fixes a minor flaw in the code that actually sends the
    Clear-TT-Buffer requests. Although the pipe direction isn't really
    used for control transfers, it should be a Send rather than a Receive.

    Signed-off-by: Alan Stern
    Reported-by: Javier Kohen
    CC: David Brownell
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Remove my mail address.

    Signed-off-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: Greg Kroah-Hartman

    Bartlomiej Zolnierkiewicz
     
  • Fix some missing author names.
    They were accidentally removed by someone within Microsoft before the
    files were sent for inclusion in the kernel.

    Signed-off-by: Hank Janssen
    Signed-off-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    Haiyang Zhang
     
  • The flag ENABLE_POLLING is always enabled in original Makefile, but
    accidently removed during porting to mainline kernel. The patch fixes
    this bug which can cause stalled network communication. Credit needs to
    go to Eric Sesterhenn For pointing out a
    typo in the original code as well.

    Signed-off-by: Hank Janssen
    Signed-off-by: Haiyang Zhang
    Signed-off-by: Greg Kroah-Hartman

    Haiyang Zhang
     
  • Nearly every invocation of memset in drivers/staging/hv/StorVsc.c has
    its arguments the wrong way around.

    Signed-off-by: Dave Jones
    Cc: Hank Janssen
    Signed-off-by: Greg Kroah-Hartman

    Dave Jones
     
  • Many boards have a bug-free ns16550 compatible serial port, which we should
    register as PORT_16550A. This introduces a new value "ns16550a" for the
    compatible property of of_serial to let a firmware choose that model instead
    of using the crippled PORT_16550 mode.

    Reported-by: Alon Ziv
    Signed-off-by: Michal Simek
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Greg Kroah-Hartman

    Michal Simek
     
  • The driver missed a small API change while sitting in Ralf's tree, this
    patch makes it compile again.

    Signed-off-by: Maxime Bizon
    Signed-off-by: Greg Kroah-Hartman

    Maxime Bizon
     
  • Some drivers allow O_NDELAY of a dead port (eg for setserial to work). In that
    situation we must not try to raise the carrier.

    Signed-off-by: Alan Cox
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Alan Cox
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
    [SCSI] fix crash when disconnecting usb storage
    [SCSI] fix async scan add/remove race resulting in an oops
    [SCSI] sd: Return correct error code for DIF

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    crypto: gcm - fix another complete call in complete fuction
    crypto: padlock-aes - Use the correct mask when checking whether copying is required

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier/blackfin:
    Blackfin: fix SMP build error in start_thread()
    Blackfin: fix memset in smp_send_reschedule() and -stop()
    Blackfin: fix typo in ptrace poking
    Blackfin: check for anomaly 05000475
    Blackfin: work around testset anomaly 05000477
    Blackfin: update anomaly lists
    Blackfin: fix cache Kconfig typo
    Blackfin: fix suspend/resume failure with some on-chip ROMs

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    [CIFS] Fix sparse warning
    [CIFS] Duplicate data on appending to some Samba servers
    [CIFS] fix oops in cifs_lookup during net boot

    Linus Torvalds