06 Dec, 2012

1 commit

  • QUEUE_FLAG_DEAD is used to indicate that queuing new requests must
    stop. After this flag has been set queue draining starts. However,
    during the queue draining phase it is still safe to invoke the
    queue's request_fn, so QUEUE_FLAG_DYING is a better name for this
    flag.

    This patch has been generated by running the following command
    over the kernel source tree:

    git grep -lEw 'blk_queue_dead|QUEUE_FLAG_DEAD' |
    xargs sed -i.tmp -e 's/blk_queue_dead/blk_queue_dying/g' \
    -e 's/QUEUE_FLAG_DEAD/QUEUE_FLAG_DYING/g'; \
    sed -i.tmp -e "s/QUEUE_FLAG_DYING$(printf \\t)*5/QUEUE_FLAG_DYING$(printf \\t)5/g" \
    include/linux/blkdev.h; \
    sed -i.tmp -e 's/ DEAD/ DYING/g' -e 's/dead queue/a dying queue/' \
    -e 's/Dead queue/A dying queue/' block/blk-core.c

    Signed-off-by: Bart Van Assche
    Acked-by: Tejun Heo
    Cc: James Bottomley
    Cc: Mike Christie
    Cc: Jens Axboe
    Cc: Chanho Min
    Signed-off-by: Jens Axboe

    Bart Van Assche
     

04 Nov, 2012

3 commits

  • Pull thermal management & ACPI update from Zhang Rui,

    Ho humm. Normally these things go through Len. But it's just three
    small fixes, I guess I can pull directly too.

    * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux:
    exynos4_tmu_driver_ids should be exynos_tmu_driver_ids.
    ACPI video: Ignore errors after _DOD evaluation.
    thermal: solve compilation errors in rcar_thermal

    Linus Torvalds
     
  • Pull i2c embedded fixes from Wolfram Sang:
    "Two patches are usual stuff.

    The bigger patch is needed to correct a wrong decision made in this
    merge window. We hoped to get the PIOQUEUE mode in the mxs driver
    working with DMA, but it turned out to be too broken (leading to data
    loss), so we now think it is best to remove it entirely and work only
    with DMA now. The patch should be in 3.7. IMO, so users never get
    the chance to use both modes in parallel."

    * 'i2c-embedded/for-current' of git://git.pengutronix.de/git/wsa/linux:
    i2c: tegra: set irq name as device name
    i2c-nomadik: Fixup clock handling
    i2c: mxs: remove broken PIOQUEUE support

    Linus Torvalds
     
  • Pull drm fixes from Dave Airlie:
    "Scattered selection of fixes:

    - radeon: load detect fixes from SuSE/AMD
    - intel: misc i830, sdvo regression, vesafb kickoff ums fix
    - exynos: maintainers entry update + fixes
    - udl: fix stride scanout issue

    it's slightly bigger than I'd probably like, but nothing looked
    dangerous enough to hold off on."

    * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
    drm/udl: fix stride issues scanning out stride != width*bpp
    drm/radeon: add load detection support for ext DAC on R200 (v2)
    DRM/radeon: For single CRTC GPUs move handling of CRTC_CRT_ON to crtc_dpms().
    DRM/Radeon: Fix TV DAC Load Detection for single CRTC chips.
    DRM/Radeon: Clean up code in TV DAC load detection.
    drm/radeon: fix ATPX function documentation
    drivers/gpu/drm/radeon/evergreen_cs.c: Remove unnecessary semicolon
    DRM/Radeon: On DVI-I use Load Detection when EDID is bogus.
    DRM/Radeon: Fix primary DAC Load Detection for RV100 chips.
    DRM/Radeon: Fix Load Detection on legacy primary DAC.
    drm: exynos: removed warning due to missing typecast for mixer driver data
    drm/exynos: add support for ARCH_MULTIPLATFORM
    MAINTAINERS: Add git repository for Exynos DRM
    drm/exynos: fix display on issue
    drm/i915: Only kick out vesafb if we takeover the fbcon with KMS
    drm/i915: be less verbose about inability to provide vendor backlight
    drm/i915: clear the entire sdvo infoframe buffer
    drm/i915: VGA needs to be on pipe A on i830M
    drm/i915: fix overlay on i830M

    Linus Torvalds
     

03 Nov, 2012

14 commits

  • Pull networking fixes from David Miller:
    "First post-Sandy pull request"

    1) Fix antenna gain handling and initialization of chan->max_reg_power
    in wireless, from Felix Fietkau.

    2) Fix nexthop handling in H.232 conntrack helper, from Julian
    Anastasov.

    3) Only process 80211 mesh config header in certain kinds of frames,
    from Javier Cardona.

    4) 80211 management frame header length needs to be validated, from
    Johannes Berg.

    5) Don't access free'd SKBs in ath9k driver, from Felix Fietkay.

    6) Test for permanent state correctly in VXLAN driver, from Stephen
    Hemminger.

    7) BNX2X bug fixes from Yaniv Rosner and Dmitry Kravkov.

    8) Fix off by one errors in bonding, from Nikolay ALeksandrov.

    9) Fix divide by zero in TCP-Illinois congestion control. From Jesper
    Dangaard Brouer.

    10) TCP metrics code says "Yo dawg, I heard you like sizeof, so I did a
    sizeof of a sizeof, so you can size your size" Fix from Julian
    Anastasov.

    11) Several drivers do mdiobus_free without first doing an
    mdiobus_unregister leading to stray pointer references. Fix from
    Peter Senna Tschudin.

    12) Fix OOPS in l2tp_eth_create() error path, it's another danling
    pointer kinda situation. Fix from Tom Parkin.

    13) Hardware driven by the vmxnet driver can't handle larger than 16K
    fragments, so split them up when necessary. From Eric Dumazet.

    14) Handle zero length data length in tcp_send_rcvq() properly. Fix
    from Pavel Emelyanov.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (38 commits)
    tcp-repair: Handle zero-length data put in rcv queue
    vmxnet3: must split too big fragments
    l2tp: fix oops in l2tp_eth_create() error path
    cxgb4: Fix unable to get UP event from the LLD
    drivers/net/phy/mdio-bitbang.c: Call mdiobus_unregister before mdiobus_free
    drivers/net/ethernet/nxp/lpc_eth.c: Call mdiobus_unregister before mdiobus_free
    bnx2x: fix HW initialization using fw 7.8.x
    tcp: Fix double sizeof in new tcp_metrics code
    net: fix divide by zero in tcp algorithm illinois
    net: sctp: Fix typo in net/sctp
    bonding: fix second off-by-one error
    bonding: fix off-by-one error
    bnx2x: Disable FCoE for 57840 since not yet supported by FW
    bnx2x: Fix no link on 577xx 10G-baseT
    bnx2x: Fix unrecognized SFP+ module after driver is loaded
    bnx2x: Fix potential incorrect link speed provision
    bnx2x: Restore global registers back to default.
    bnx2x: Fix link down in 57712 following LFA
    bnx2x: Fix 57810 1G-KR link against certain switches.
    ixgbe: PTP get_ts_info missing software support
    ...

    Linus Torvalds
     
  • vmxnet3 has a 16Kbytes limit per tx descriptor, that happened to work
    as long as we provided PAGE_SIZE fragments.

    Our stack can now build larger fragments, so we need to split them to
    the 16kbytes boundary.

    Signed-off-by: Eric Dumazet
    Reported-by: jongman heo
    Tested-by: jongman heo
    Cc: Shreyas Bhatewara
    Reviewed-by: Bhavesh Davda
    Signed-off-by: Shreyas Bhatewara
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Signed-off-by: Jonghwan Choi
    Reviewed-by: Amit Daniel Kachhap
    Signed-off-by: Zhang Rui

    Jonghwan Choi
     
  • There are systems where video module known to work fine regardless
    of broken _DOD and ignoring returned value here doesn't cause
    any issues later. This should fix brightness controls on some laptops.

    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861

    Signed-off-by: Igor Murzov
    Reviewed-by: Sergey V
    Signed-off-by: Zhang Rui

    Igor Murzov
     
  • following were the errors reported

    drivers/thermal/rcar_thermal.c: In function ‘rcar_thermal_probe’:
    drivers/thermal/rcar_thermal.c:214:10: warning: passing argument 3 of ‘thermal_zone_device_register’ makes integer from pointer without a cast [enabled by default]
    include/linux/thermal.h:166:29: note: expected ‘int’ but argument is of type ‘struct rcar_thermal_priv *’
    drivers/thermal/rcar_thermal.c:214:10: error: too few arguments to function ‘thermal_zone_device_register’
    include/linux/thermal.h:166:29: note: declared here
    make[1]: *** [drivers/thermal/rcar_thermal.o] Error 1
    make: *** [drivers/thermal/rcar_thermal.o] Error 2

    with gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

    Signed-off-by: Devendra Naga
    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Zhang Rui

    Devendra Naga
     
  • If T4 configuration file gets loaded from the /lib/firmware/cxgb4/ directory
    then offload capabilities of the cards were getting disabled during
    initialization. Hence ULDs do not get an UP event from the LLD.

    Signed-off-by: Jay Hernandez
    Signed-off-by: Vipul Pandya
    Signed-off-by: David S. Miller

    Vipul Pandya
     
  • Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0

    Calling mdiobus_free without calling mdiobus_unregister causes
    BUG_ON(). This patch fixes the issue.

    The semantic patch that found this issue(http://coccinelle.lip6.fr/):
    //
    @@
    expression E;
    @@
    ... when != mdiobus_unregister(E);

    + mdiobus_unregister(E);
    mdiobus_free(E);
    //

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: David S. Miller

    Peter Senna Tschudin
     
  • Based on commit b27393aecf66199f5ddad37c302d3e0cfadbe6c0

    Calling mdiobus_free without calling mdiobus_unregister causes
    BUG_ON(). This patch fixes the issue.

    The semantic patch that found this issue(http://coccinelle.lip6.fr/):
    //
    @@
    expression E;
    @@
    ... when != mdiobus_unregister(E);

    + mdiobus_unregister(E);
    mdiobus_free(E);
    //

    Signed-off-by: Peter Senna Tschudin
    Tested-by: Roland Stigge
    Tested-by: Alexandre Pereira da Silva
    Signed-off-by: David S. Miller

    Peter Senna Tschudin
     
  • Since commit 96bed4b9 (use FW 7.8.2) BRB HW block needs to be
    initialized using fw values for all devices.
    Otherwise ETS on 57712/578xx will not work.

    Signed-off-by: Dmitry Kravkov
    Signed-off-by: Ariel Elior
    Signed-off-by: David S. Miller

    Dmitry Kravkov
     
  • Pull power management update from Rafael J. Wysocki:
    "Change the email address of the powernow-k8 maintainer."

    * tag 'pm-for-3.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    cpufreq / powernow-k8: Change maintainer's email address

    Linus Torvalds
     
  • Pull input subsystem fixes from Dmitry Torokhov:
    "Just a few driver fixes."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: tsc40 - remove wrong announcement of pressure support
    Input: lpc32xx-keys - select INPUT_MATRIXKMAP
    Input: pxa27x_keypad - clear pending interrupts on keypad config
    Input: wacom - correct bad Cintiq 24HD check
    Input: wacom - add INPUT_PROP_DIRECT flag to Cintiq 24HD
    Input: egalax_ts - get gpio from devicetree

    Linus Torvalds
     
  • Pull more scsi target fixes from Nicholas Bellinger:
    "This series is a second round of target fixes for v3.7-rc4 that have
    come into target-devel over the last days, and are important enough to
    be applied ASAP.

    All are being CC'ed to stable. The most important two are:

    - target: Re-add explict zeroing of INQUIRY bounce buffer memory to
    fix a regression for handling zero-length payloads, a bug that went
    during v3.7-rc1, and hit >= v3.6.3 stable. (nab + paolo)

    - iscsi-target: Fix a long-standing missed R2T wakeup race in TX
    thread processing when using a single queue slot. (Roland)

    Thanks to Roland & PureStorage team for helping to track down this
    long standing race with iscsi-target single queue slot operation.

    Also, the tcm_fc(FCoE) regression bug that was observed recently with
    -rc2 code has also been resolved with the cancel_delayed_work() return
    bugfix (commit c0158ca64da5: "workqueue: cancel_delayed_work() should
    return %false if work item is idle") now in -rc3. Thanks again to Yi
    Zou, MDR, Robert Love @ Intel for helping to track this down."

    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    target: Fix incorrect usage of nested IRQ spinlocks in ABORT_TASK path
    iscsi-target: Fix missed wakeup race in TX thread
    target: Avoid integer overflow in se_dev_align_max_sectors()
    target: Don't return success from module_init() if setup fails
    target: Re-add explict zeroing of INQUIRY bounce buffer memory

    Linus Torvalds
     
  • Pull hwmon fixes from Guenter Roeck:
    "An e-mail address update, and fix a compile error on SPARC"

    * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
    hwmon: Only include of_match_table with CONFIG_OF_GPIO
    hwmon, fam15h_power: Change email address, MAINTAINERS entry

    Linus Torvalds
     
  • Pull Xen bugfixes from Konrad Rzeszutek Wilk:
    - Use appropriate macros instead of hand-rolling our own (ARM).
    - Fixes if FB/KBD closed unexpectedly.
    - Fix memory leak in /dev/gntdev ioctl calls.
    - Fix overflow check in xenbus_file_write.
    - Document cleanup.
    - Performance optimization when migrating guests.

    * tag 'stable/for-linus-3.7-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen/mmu: Use Xen specific TLB flush instead of the generic one.
    xen/arm: use the __HVC macro
    xen/xenbus: fix overflow check in xenbus_file_write()
    xen-kbdfront: handle backend CLOSED without CLOSING
    xen-fbfront: handle backend CLOSED without CLOSING
    xen/gntdev: don't leak memory from IOCTL_GNTDEV_MAP_GRANT_REF
    x86: remove obsolete comment from asm/xen/hypervisor.h

    Linus Torvalds
     

02 Nov, 2012

8 commits

  • When watching the irqs name of tegra i2c, all instances
    irq name shows as tegra_i2c.

    Passing the device name properly to have the irq names with
    instance like tegra-i2c.0, tegra-i2c.1 etc.

    Signed-off-by: Laxman Dewangan
    Acked-by: Jean Delvare
    Signed-off-by: Wolfram Sang

    Laxman Dewangan
     
  • Make sure to clk_prepare as well as clk_enable.

    Signed-off-by: Philippe Begnic
    Signed-off-by: Ulf Hansson
    Signed-off-by: Linus Walleij
    Signed-off-by: Wolfram Sang

    Philippe Begnic
     
  • This I2C master can do DMA and PIOQUEUE (PIO with FIFO). Originally,
    only PIOQUEUE was supported and it had issues, then DMA support was added
    this cycle. The original intention was to keep PIOQUEUE since it has
    less overhead what is nice for small transfers. However, runtime
    switching between PIOQEUE and DMA depending on the transfer size never
    worked despite a lot of trying. Since PIOQUEUE mode itself was flaky
    (polling at places where interrupts failed to work) and the
    implementation also imposed a size limit for transfers, it is best to
    remove the support, so users don't fall over its limitations. It also
    makes the driver a lot cleaner and more robust. If somebody really wants
    less overhead, plain PIO mode could still be implemented with the
    addidtional advantage that this mode is also available on MX23, too.

    Signed-off-by: Wolfram Sang
    Reviewed-by: Marek Vasut

    Wolfram Sang
     
  • When buffer sharing with the i915 and using a 1680x1050 monitor,
    the i915 gives is a 6912 buffer for the 6720 width, the code doesn't
    render this properly as it uses one value to set the base address for
    reading from the vmap and for where to start on the device.

    This fixes it by calculating the values correctly for the device and
    for the pixmap. No idea how I haven't seen this before now.

    Cc: stable@vger.kernel.org
    Signed-off-by: Dave Airlie

    Dave Airlie
     
  • The following fixes build errors on sparc. Without any DT support,
    of_match_ptr is NULL and the below is a no-op. However, if just
    CONFIG_OF is defined then so is of_match_ptr.

    All useful parts of the gpio-fan DT support rely on CONFIG_OF_GPIO
    anyway, so of_match_table should too.

    Signed-off-by: Jamie Lentin
    Signed-off-by: Guenter Roeck

    Jamie Lentin
     
  • …/daeinki/drm-exynos into drm-fixes

    Inki writes:
    "As I posted before, we have added a new git repository for Exynos drm
    to MAINTAINERS file so change it to new one like below,
    from git://git.infradead.org/users/kmpark/linux-samsung
    to git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos

    And this pull request includes the following:
    - fix display on issue when user requested dpms mode changing.
    - add git repository for Exynos drm to MAINTAINERS file.
    - add support for ARCH_MULTIPLATFORM.
    - and code clean."

    * 'exynos-drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos:
    drm: exynos: removed warning due to missing typecast for mixer driver data
    drm/exynos: add support for ARCH_MULTIPLATFORM
    MAINTAINERS: Add git repository for Exynos DRM
    drm/exynos: fix display on issue

    Dave Airlie
     
  • Alex writes:
    "This request is mostly load detection fixes from Egbert and me."

    * 'drm-fixes-3.7' of git://people.freedesktop.org/~agd5f/linux:
    drm/radeon: add load detection support for ext DAC on R200 (v2)
    DRM/radeon: For single CRTC GPUs move handling of CRTC_CRT_ON to crtc_dpms().
    DRM/Radeon: Fix TV DAC Load Detection for single CRTC chips.
    DRM/Radeon: Clean up code in TV DAC load detection.
    drm/radeon: fix ATPX function documentation
    drivers/gpu/drm/radeon/evergreen_cs.c: Remove unnecessary semicolon
    DRM/Radeon: On DVI-I use Load Detection when EDID is bogus.
    DRM/Radeon: Fix primary DAC Load Detection for RV100 chips.
    DRM/Radeon: Fix Load Detection on legacy primary DAC.

    Dave Airlie
     
  • Daniel Vetter writes"
    Nothing big at all for -fixes, just small stuff:
    - Two patches to fix bugs on i830M
    - ums regression fixer due to kicking firmeware fbs (Chris)
    - tune down a too loud warning (Jani)
    - be more careful with sdvo infoframes, which fixes a long-standing
    sdvo-hdmi regression"

    * 'drm-intel-fixes' of git://people.freedesktop.org/~danvet/drm-intel:
    drm/i915: Only kick out vesafb if we takeover the fbcon with KMS
    drm/i915: be less verbose about inability to provide vendor backlight
    drm/i915: clear the entire sdvo infoframe buffer
    drm/i915: VGA needs to be on pipe A on i830M
    drm/i915: fix overlay on i830M

    Dave Airlie
     

01 Nov, 2012

14 commits