30 Mar, 2011

7 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (26 commits)
    mmc: SDHI should depend on SUPERH || ARCH_SHMOBILE
    mmc: tmio_mmc: Move some defines into a shared header
    mmc: tmio: support aggressive clock gating
    mmc: tmio: fix power-mode interpretation
    mmc: tmio: remove work-around for unmasked SDIO interrupts
    sh: fix SDHI IO address-range
    ARM: mach-shmobile: fix SDHI IO address-range
    mmc: tmio: only access registers above 0xff, if available
    mfd: remove now redundant sh_mobile_sdhi.h header
    sh: convert boards to use linux/mmc/sh_mobile_sdhi.h
    ARM: mach-shmobile: convert boards to use linux/mmc/sh_mobile_sdhi.h
    mmc: tmio: convert the SDHI MMC driver from MFD to a platform driver
    sh: ecovec: use the CONFIG_MMC_TMIO symbols instead of MFD
    mmc: tmio: split core functionality, DMA and MFD glue
    mmc: tmio: use PIO for short transfers
    mmc: tmio-mmc: Improve DMA stability on sh-mobile
    mmc: fix mmc_app_send_scr() for dma transfer
    mmc: sdhci-esdhc: enable esdhc on imx53
    mmc: sdhci-esdhc: use writel/readl as general APIs
    mmc: sdhci: add the abort CMDTYPE bits definition
    ...

    Linus Torvalds
     
  • * 'stable/bug-fixes-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen: Use new irq_move functions
    xen: Convert genirq namespace
    xen: fix p2m section mismatches
    xen/p2m: Allocate p2m tracking pages on override
    xen-gntdev: unlock on error path in gntdev_mmap()
    xen-gntdev: return -EFAULT on copy_to_user failure

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    watchdog: softdog.c: enhancement to optionally invoke panic instead of reboot on timer expiry
    watchdog: fix nv_tco section mismatch
    watchdog: sp5100_tco.c: Check if firmware has set correct value in tcobase.
    watchdog: Convert release_resource to release_region/release_mem_region
    watchdog: s3c2410_wdt.c: Convert release_resource to release_region/release_mem_region

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
    amd64_edac: Fix potential memleak

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

    * 'irq-final-for-linus-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (111 commits)
    gpio: ab8500: Mark broken
    genirq: Remove move_*irq leftovers
    genirq: Remove compat code
    drivers: Final irq namespace conversion
    mn10300: Use generic show_interrupts()
    mn10300: Cleanup irq_desc access
    mn10300: Convert genirq namespace
    frv: Use generic show_interrupts()
    frv: Convert genirq namespace
    frv: Select GENERIC_HARDIRQS_NO_DEPRECATED
    frv: Convert cpu irq_chip to new functions
    frv: Convert mb93493 irq_chip to new functions
    frv: Convert mb93093 irq_chip to new function
    frv: Convert mb93091 irq_chip to new functions
    frv: Fix typo from __do_IRQ overhaul
    frv: Remove stale irq_chip.end
    m68k: Convert irq function namespace
    xen: Use new irq_move functions
    xen: Cleanup genirq namespace
    unicore32: Use generic show_interrupts()
    ...

    Linus Torvalds
     
  • This patch fixes information leakage to the userspace by initializing
    the data buffer to zero.

    Reported-by: Peter Huewe
    Signed-off-by: Peter Huewe
    Signed-off-by: Marcel Selhorst
    [ Also removed the silly "* sizeof(u8)". If that isn't 1, we have way
    deeper problems than a simple multiplication can fix. - Linus ]
    Signed-off-by: Linus Torvalds

    Peter Huewe
     
  • We check the pointers together but at least one of them could be invalid
    due to failed allocation. Since we cannot continue if either of the two
    allocations has failed, exit early by freeing them both.

    Cc: # 38.x
    Reported-by: Mauro Carvalho Chehab
    Signed-off-by: Borislav Petkov

    Borislav Petkov
     

29 Mar, 2011

25 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (30 commits)
    xfrm: Restrict extended sequence numbers to esp
    xfrm: Check for esn buffer len in xfrm_new_ae
    xfrm: Assign esn pointers when cloning a state
    xfrm: Move the test on replay window size into the replay check functions
    netdev: bfin_mac: document TE setting in RMII modes
    drivers net: Fix declaration ordering in inline functions.
    cxgb3: Apply interrupt coalescing settings to all queues
    net: Always allocate at least 16 skb frags regardless of page size
    ipv4: Don't ip_rt_put() an error pointer in RAW sockets.
    net: fix ethtool->set_flags not intended -EINVAL return value
    mlx4_en: Fix loss of promiscuity
    tg3: Fix inline keyword usage
    tg3: use and instead and
    net: use CHECKSUM_NONE instead of magic number
    Net / jme: Do not use legacy PCI power management
    myri10ge: small rx_done refactoring
    bridge: notify applications if address of bridge device changes
    ipv4: Fix IP timestamp option (IPOPT_TS_PRESPEC) handling in ip_options_echo()
    can: c_can: Fix tx_bytes accounting
    can: c_can_platform: fix irq check in probe
    ...

    Linus Torvalds
     
  • These functions take irq_data as an argument and avoid a redundant
    lookup in the sparse irq case.

    Signed-off-by: Thomas Gleixner
    Cc: Ian Campbell
    Cc: Jeremy Fitzhardinge
    Cc: Konrad Rzeszutek Wilk
    Signed-off-by: Konrad Rzeszutek Wilk

    Thomas Gleixner
     
  • Converted with coccinelle.

    Signed-off-by: Thomas Gleixner
    Acked-by: Ian Campbell
    Signed-off-by: Konrad Rzeszutek Wilk

    Thomas Gleixner
     
  • This driver is broken in several aspects.

    1) old style irq_chip functions. Sigh

    2) Abuse of the unlock callback. That's not supposed to be a state
    machine for evrything and some more.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Scripted with coccinelle.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • These functions take irq_data as an argument and avoid a redundant
    lookup in the sparse irq case.

    Signed-off-by: Thomas Gleixner
    Cc: Ian Campbell
    Cc: Jeremy Fitzhardinge
    Cc: Konrad Rzeszutek Wilk

    Thomas Gleixner
     
  • Converted with coccinelle.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Scripted with coccinelle.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Convert to the new function names. Scripted with coccinelle.

    Signed-off-by: Thomas Gleixner
    Cc: Kyle McMartin
    Cc: linux-parisc@vger.kernel.org

    Thomas Gleixner
     
  • This is needed for determining the reason for failure when a softdog
    timeout occurs.

    We use softdog to watch for critical application failures and at the
    minimum a snapshot of the system would help to determine the cause. In
    such a scenario the application could fail but there isn't a softlockup as
    such, hence the detect softlockup feature does not help.

    The patch adds a module parameter soft_panic which when set to 1 causes
    softdog to invoke panic instead of reboot when the softdog timer expires.
    By invoking panic we execute kdump if it is configured and the vmcore
    generated by kdump should provide atleast a minimal idea of the reason for
    failure.

    Based on an original patch by Ken Sugawara
    Signed-off-by: Anithra P J
    Reviewed-by: WANG Cong
    Acked-by: Alan Cox
    Signed-off-by: Wim Van Sebroeck
    Signed-off-by: Andrew Morton

    Anithra P Janakiraman
     
  • Fix section mismatch warning:
    Mark the called nv_tco_getdevice() as __devinit, just like its caller.

    WARNING: drivers/watchdog/nv_tco.o(.devinit.text+0x16): Section mismatch in reference from the function nv_tco_init() to the function .init.text:nv_tco_getdevice()
    The function __devinit nv_tco_init() references
    a function __init nv_tco_getdevice().
    If nv_tco_getdevice is only used by nv_tco_init then
    annotate nv_tco_getdevice with a matching annotation.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Wim Van Sebroeck

    Randy Dunlap
     
  • Stefano found SP5100 TCO watchdog driver using wrong address.

    [ 9.148536] SP5100 TCO timer: SP5100 TCO WatchDog Timer Driver v0.01
    [ 9.148628] DEBUG __ioremap_caller WARNING address=b8fe00 size=8 valid=1 reserved=1

    and e820 said that range is RAM.

    We should check if we can use that reading out. BIOS could just program wrong address there.

    Reported-by: Stefano Stabellini
    Signed-off-by:Yinghai Lu
    Acked-by: Mike Waychison
    Tested-by: Konrad Rzeszutek Wilk
    Signed-off-by: Wim Van Sebroeck
    Cc: stable

    Yinghai Lu
     
  • Request_mem_region should be used with release_mem_region, not
    release_resource.

    In pnx4008_wdt.c, a missing clk_put is added as well.

    The semantic match that finds the first problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression x,E;
    @@
    *x = request_mem_region(...)
    ... when != release_mem_region(x)
    when != x = E
    * release_resource(x);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Wim Van Sebroeck
    Cc: stable

    Julia Lawall
     
  • Request_mem_region should be used with release_mem_region, not
    release_resource.

    The semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression x,E;
    @@
    *x = request_mem_region(...)
    ... when != release_mem_region(x)
    when != x = E
    * release_resource(x);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Wim Van Sebroeck
    Cc: stable

    Julia Lawall
     
  • The current code sometimes generates build warnings due to how it checks
    the silicon revision, so clean it up and properly document things.

    Signed-off-by: Mike Frysinger
    Signed-off-by: David S. Miller

    Mike Frysinger
     
  • The correct usage should be "static inline void" instead of "static void inline"

    Signed-off-by: G.Balaji
    Signed-off-by: David S. Miller

    Balaji G
     
  • While testing the performance of different receive interrupt
    coalescing settings on a single stream TCP benchmark, I noticed two
    very different results. With rx-usecs=50, most of the time a
    connection would hit 8280 Mbps but once in a while it would hit
    9330 Mbps.

    It turns out we are only applying the interrupt coalescing settings
    to the first queue and whenever the rx hash would direct us onto
    that queue we ran faster.

    With this patch applied and rx-usecs=50, I get 9330 Mbps
    consistently.

    Signed-off-by: Anton Blanchard
    Acked-by: Divy Le Ray
    Signed-off-by: David S. Miller

    Anton Blanchard
     
  • We incorrectly returned -EINVAL when none of the devices in the array
    had an integrity profile. This in turn prevented mdadm from starting
    the metadevice. Fix this so we only return errors on mismatched
    profiles and memory allocation failures.

    Reported-by: Giacomo Catenazzi
    Reported-by: Thomas Gleixner
    Signed-off-by: Martin K. Petersen
    Signed-off-by: Linus Torvalds

    Martin K. Petersen
     
  • …rnel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

    * 'irq-cleanup-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    vlynq: Convert irq functions

    * 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    genirq; Fix cleanup fallout
    genirq: Fix typo and remove unused variable
    genirq: Fix new kernel-doc warnings
    genirq: Add setter for AFFINITY_SET in irq_data state
    genirq: Provide setter inline for IRQD_IRQ_INPROGRESS
    genirq: Remove handle_IRQ_event
    arm: Ns9xxx: Remove private irq flow handler
    powerpc: cell: Use the core flow handler
    genirq: Provide edge_eoi flow handler
    genirq: Move INPROGRESS, MASKED and DISABLED state flags to irq_data
    genirq: Split irq_set_affinity() so it can be called with lock held.
    genirq: Add chip flag for restricting cpu_on/offline calls
    genirq: Add chip hooks for taking CPUs on/off line.
    genirq: Add irq disabled flag to irq_data state
    genirq: Reserve the irq when calling irq_set_chip()

    Linus Torvalds
     
  • Fixes this build error:

    drivers/memstick/host/r592.c:26: error: 'enable_dma' redeclared as different kind of symbol
    arch/powerpc/include/asm/dma.h:189: note: previous definition of 'enable_dma' was here

    Signed-off-by: Stephen Rothwell
    Cc: Andrew Morton
    Cc: FUJITA Tomonori
    Cc: Alex Dubov
    Acked-by: Maxim Levitsky
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (81 commits)
    xo15-ebook: Remove device.wakeup_count
    ips: use interruptible waits in ips-monitor
    acer-wmi: does not poll device status when WMI event is available
    acer-wmi: does not set persistence state by rfkill_init_sw_state
    platform-drivers: x86: fix common misspellings
    acer-wmi: use pr_ for messages
    asus-wmi: potential NULL dereference in show_call()
    asus-wmi: signedness bug in read_brightness()
    platform-driver-x86: samsung-laptop: make dmi_check_cb to return 1 instead of 0
    platform-driver-x86: fix wrong merge for compal-laptop.c
    msi-laptop: use pr_ for messages
    Platform: add Samsung Laptop platform driver
    acer-wmi: Fix WMI ID
    acer-wmi: deactive mail led when power off
    msi-laptop: send out touchpad on/off key
    acer-wmi: set the touchpad toggle key code to KEY_TOUCHPAD_TOGGLE
    platform-driver-x86: intel_mid_thermal: fix unterminated platform_device_id table
    sony-laptop: potential null dereference
    sony-laptop: handle allocation failures
    sony-laptop: return negative on failure in sony_nc_add()
    ...

    Linus Torvalds
     
  • * 'for-torvalds' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson:
    mach-ux500: configure board for the TPS61052 regulator v2
    mach-ux500: provide ab8500 init vector
    mach-ux500: board support for AB8500 GPIO driver
    gpio: driver for 42 AB8500 GPIO pins

    Linus Torvalds
     
  • The acpi video driver attempts to explicitly create a sysfs link between
    the acpi device and the associated PCI device. However, we're now also
    doing this from the backlight core, which means that we get a backtrace
    caused by a duplicate file. Remove the code and leave it up to the
    backlight core.

    Reported-by: Jeff Chua
    Signed-off-by: Matthew Garrett
    Acked-by: Rafael J. Wysocki
    Tested-by: Alessandro Suardi
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • Convert to the new irq_chip functions and the new namespace.

    Signed-off-by: Thomas Gleixner
    Acked-by: Florian Fainelli
    LKML-Reference:

    Thomas Gleixner
     

28 Mar, 2011

8 commits

  • Stephen ran into the following build error:

    drivers/mfd/cs5535-mfd.c:30:22: error: asm/olpc.h: No such file or directory

    olpc.h exists only on x86 (and in the future, ARM). Rather than
    wrapping the include in an #ifdef, just change cs5535-mfd to only build
    on x86.

    Reported-by: Stephen Rothwell
    Signed-off-by: Andres Salomon
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • In commit 95a0f10cddbf ("drbd: store in-core bitmap little endian,
    regardless of architecture") drbd had made the sane choice to use
    little-endian bitmap functions everywhere. However, it used the
    horrible old functions names from , that were
    never really meant to be exported.

    In the meantime, things got cleaned up, and in commit c4945b9ed472
    ("asm-generic: rename generic little-endian bitops functions") we
    renamed the LE bitops to something sane, exactly so that they could be
    used in random code without people gouging their eyes out when seeing
    the crazy jumble of letters that were the old internal names.

    As a result the drbd thing merged cleanly (commit 8d49a77568d1: "Merge
    branch 'for-2.6.39/drivers' of git://git.kernel.dk/linux-2.6-block"),
    since there was no data conflict - but the end result obviously doesn't
    actually compile.

    Reported-and-tested-by: Ingo Molnar
    Cc: Jens Axboe
    Cc: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Fix build breakage on platforms, not providing readsw and writesw
    functions, e.g., on x86(_64).

    Reported-by: Stephen Rothwell
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Chris Ball

    Guennadi Liakhovetski
     
  • This is handled automatically now.

    Signed-off-by: Matthew Garrett

    Matthew Garrett
     
  • This is what I intended to do since:
    1) the driver handles variable waits just fine, and
    2) interruptible waits aren't reported as load in the load avg.

    Reported-and-tested-by: Andreas Hartmann
    Signed-off-by: Jesse Barnes
    Signed-off-by: Matthew Garrett

    Jesse Barnes
     
  • Acer WMI hotkey event's result include current device status, just
    need sync the status to killswitch after acer-wmi driver receive
    hotkey event but not always poll device status. This is good for
    performance.

    But, if use EC raw mode, Acer BIOS will not emit wmi event and
    leave EC to control device status. So, still startup polling job
    when doesn't detect WMI event GUID or user choice to use ec_raw_mode.

    Tested on Acer TravelMate 8572 notebook.

    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Dmitry Torokhov
    Cc: Corentin Chary
    Cc: Thomas Renninger
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • Acer BIOS keeps devices state when system reboot, but reset to default
    device states (Wlan on, Bluetooth off, wwan on) if system cold boot.
    That means BIOS's initial state is not always real persistence.

    So, removed rfkill_init_sw_state because it sets initial state to
    persistence then replicate to other new killswitch when rfkill-input
    enabled.
    After removed it, acer-wmi set initial soft-block state after rfkill
    register, and doesn't allow set_block until rfkill initial finished.

    Reference: bko#31002
    https://bugzilla.kernel.org/show_bug.cgi?id=31002

    Cc: Carlos Corbacho
    Cc: Matthew Garrett
    Cc: Dmitry Torokhov
    Cc: Corentin Chary
    Cc: Oldřich Jedlička
    Cc: Johannes Berg
    Signed-off-by: Lee, Chun-Yi
    Signed-off-by: Matthew Garrett

    Lee, Chun-Yi
     
  • Signed-off-by: Lucas De Marchi
    Signed-off-by: Matthew Garrett

    Lucas De Marchi