23 Dec, 2014

12 commits

  • Decode and display Port Type and Module Type for ethtool get_settings() call

    Signed-off-by: Hariprasad Shenai
    Signed-off-by: David S. Miller

    Hariprasad Shenai
     
  • The commit d75b1ade567ffab085e8adbbdacf0092d10cd09c (net: less
    interrupt masking in NAPI) breaks caif.

    It is now required that if the entire budget is consumed when poll
    returns, the napi poll_list must remain empty. However, like some
    other drivers caif tries to do a last-ditch check and if there is
    more work it will call napi_schedule and then immediately process
    some of this new work. Should the entire budget be consumed while
    processing such new work then we will violate the new caller
    contract.

    This patch fixes this by not touching any work when we reschedule
    in caif.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • iowrite32() will byteswap it's argument on big endian archs.
    iowrite32be() will byteswap on little endian archs.
    Since we don't want to do this unnecessary byteswap on the fast path,
    doorbell is stored in the NIC's native endianness. Using the right
    iowrite() according to the arch endianness.

    CC: Wei Yang
    CC: David Laight
    Fixes: 6a4e812 ("net/mlx4_en: Avoid calling bswap in tx fast path")
    Signed-off-by: Amir Vadai
    Signed-off-by: David S. Miller

    Amir Vadai
     
  • For linux-3.18.0
    The driver lacks netif_napi_del in the normal path and error path
    to match the call of netif_napi_add in rtl8139_init_one.
    This patch fixes this problem.

    Signed-off-by: Jia-Ju Bai
    Signed-off-by: David S. Miller

    Jia-Ju Bai
     
  • For linux-3.18.0
    When pci_request_regions is failed in rtl8139_init_board, pci_disable_device
    is not called to disable the device which are enabled by pci_enable_device,
    because of disable_dev_on_err is not assigned 1.
    This patch fix this problem.

    Signed-off-by: Jia-Ju Bai
    Signed-off-by: David S. Miller

    Jia-Ju Bai
     
  • This platform_driver does not need to set an owner, it will be populated by the
    driver core.

    Signed-off-by: Wolfram Sang
    Signed-off-by: David S. Miller

    Wolfram Sang
     
  • The s6000 Xtensa support has been removed from the kernel in
    4006e565e1500db4. There are no other chips using this driver.

    While the Mentor/Alcatel PE-MCXMAC IP core is also used in other
    designs (Freescale Gianfar/UCC, QLogic NetXen, Solarflare, Agere
    ET-1310, Netlogic XLR/XLS), none of these use this driver as it
    heavily depends on the s6000 DMA engine. In fact, there is no
    code sharing across any of the aforementioned devices.

    Signed-off-by: Daniel Glöckner
    Signed-off-by: David S. Miller

    Daniel Glöckner
     
  • Remove the function port_cfg_dis_learn() that is not used anywhere.

    This was partially found by using a static code analysis program called cppcheck.

    Signed-off-by: Rickard Strandqvist
    Signed-off-by: David S. Miller

    Rickard Strandqvist
     
  • During driver load in tg3_init_one, if the driver detects DMA activity before
    intializing the chip tg3_halt is called. As part of tg3_halt interrupts are
    disabled using routine tg3_disable_ints. This routine was using mailbox value
    which was not initialized (default value is 0). As a result driver was writing
    0x00000001 to pci config space register 0, which is the vendor id / device id.

    This driver bug was exposed because of the commit a7877b17a667 (PCI: Check only
    the Vendor ID to identify Configuration Request Retry). Also this issue is only
    seen in older generation chipsets like 5722 because config space write to offset
    0 from driver is possible. The newer generation chips ignore writes to offset 0.
    Also without commit a7877b17a667, for these older chips when a GRC reset is
    issued the Bootcode would reprogram the vendor id/device id, which is the reason
    this bug was masked earlier.

    Fixed by initializing the interrupt mailbox registers before calling tg3_halt.

    Please queue for -stable.

    Reported-by: Nils Holland
    Reported-by: Marcelo Ricardo Leitner
    Signed-off-by: Prashant Sreedharan
    Signed-off-by: Michael Chan
    Signed-off-by: David S. Miller

    Prashant Sreedharan
     
  • The changed names are union fields with the same size, so the existing code
    still works. But, we now update these variables to the correct names.

    Signed-off-by: Haiyang Zhang
    Reviewed-by: K. Y. Srinivasan
    Signed-off-by: David S. Miller

    Haiyang Zhang
     
  • The commit d75b1ade567ffab085e8adbbdacf0092d10cd09c (net: less
    interrupt masking in NAPI) breaks virtio_net in an insidious way.

    It is now required that if the entire budget is consumed when poll
    returns, the napi poll_list must remain empty. However, like some
    other drivers virtio_net tries to do a last-ditch check and if
    there is more work it will call napi_schedule and then immediately
    process some of this new work. Should the entire budget be consumed
    while processing such new work then we will violate the new caller
    contract.

    This patch fixes this by not touching any work when we reschedule
    in virtio_net.

    The worst part of this bug is that the list corruption causes other
    napi users to be moved off-list. In my case I was chasing a stall
    in IPsec (IPsec uses netif_rx) and I only belatedly realised that it
    was virtio_net which caused the stall even though the virtio_net
    poll was still functioning perfectly after IPsec stalled.

    Signed-off-by: Herbert Xu
    Acked-by: Jason Wang
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • Both stmmac_open() and stmmac_resume() call stmmac_hw_setup(), and
    stmmac_hw_setup() call stmmac_init_ptp() unconditionally. However, only
    stmmac_release() calls stmmac_release_ptp(). Since stmmac_suspend()
    doesn't call stmmac_release_ptp(), stmmac_resume() also needn't call
    stmmac_init_ptp().

    This patch also fix a "scheduling while atomic" problem when resume
    from suspend/hibernation. Because stmmac_init_ptp() will trigger
    scheduling while stmmac_resume() hold a spinlock.

    Callgraph of "scheduling while atomic":
    stmmac_resume() --> stmmac_hw_setup() --> stmmac_init_ptp() -->
    stmmac_ptp_register() --> ptp_clock_register() --> device_create() -->
    device_create_groups_vargs() --> device_add() --> devtmpfs_create_node()
    --> wait_for_common() --> schedule_timeout() --> __schedule()

    Signed-off-by: Huacai Chen
    Signed-off-by: David S. Miller

    Huacai Chen
     

20 Dec, 2014

2 commits

  • Hardware always provides compliment of IP pseudo checksum. Stack expects
    whole packet checksum without pseudo checksum if CHECKSUM_COMPLETE is set.

    This causes checksum error in nf & ovs.

    kernel: qg-19546f09-f2: hw csum failure
    kernel: CPU: 9 PID: 0 Comm: swapper/9 Tainted: GF O-------------- 3.10.0-123.8.1.el7.x86_64 #1
    kernel: Hardware name: Cisco Systems Inc UCSB-B200-M3/UCSB-B200-M3, BIOS B200M3.2.2.3.0.080820141339 08/08/2014
    kernel: ffff881218f40000 df68243feb35e3a8 ffff881237a43ab8 ffffffff815e237b
    kernel: ffff881237a43ad0 ffffffff814cd4ca ffff8829ec71eb00 ffff881237a43af0
    kernel: ffffffff814c6232 0000000000000286 ffff8829ec71eb00 ffff881237a43b00
    kernel: Call Trace:
    kernel: [] dump_stack+0x19/0x1b
    kernel: [] netdev_rx_csum_fault+0x3a/0x40
    kernel: [] __skb_checksum_complete_head+0x62/0x70
    kernel: [] __skb_checksum_complete+0x11/0x20
    kernel: [] nf_ip_checksum+0xcc/0x100
    kernel: [] icmp_error+0x1f7/0x35c [nf_conntrack_ipv4]
    kernel: [] ? netif_rx+0xb9/0x1d0
    kernel: [] ? internal_dev_recv+0xdb/0x130 [openvswitch]
    kernel: [] nf_conntrack_in+0xf0/0xa80 [nf_conntrack]
    kernel: [] ? inet_del_offload+0x40/0x40
    kernel: [] ipv4_conntrack_in+0x22/0x30 [nf_conntrack_ipv4]
    kernel: [] nf_iterate+0xaa/0xc0
    kernel: [] ? inet_del_offload+0x40/0x40
    kernel: [] nf_hook_slow+0x84/0x140
    kernel: [] ? inet_del_offload+0x40/0x40
    kernel: [] ip_rcv+0x344/0x380

    Hardware verifies IP & tcp/udp header checksum but does not provide payload
    checksum, use CHECKSUM_UNNECESSARY. Set it only if its valid IP tcp/udp packet.

    Cc: Jiri Benc
    Cc: Stefan Assmann
    Reported-by: Sunil Choudhary
    Signed-off-by: Govindarajulu Varadarajan
    Reviewed-by: Jiri Benc
    Signed-off-by: David S. Miller

    Govindarajulu Varadarajan
     
  • when skb_gso_segment returns error, the original skb should be freed

    Signed-off-by: Li RongQing
    Acked-by: David L Stevens
    Signed-off-by: David S. Miller

    Li RongQing
     

19 Dec, 2014

15 commits

  • Pull virtio fixes from Michael S Tsirkin:
    "virtio 1.0 related fixes

    Most importantly, this fixes using virtio_pci as a module.

    Further, the big virtio 1.0 conversion missed a couple of places.
    This fixes them up.

    This isn't 100% sparse-clean yet because on many architectures
    get_user triggers sparse warnings when used with __bitwise tag (when
    same tag is on both pointer and value read).

    I posted a patchset to fix it up by adding __force on all arches that
    don't already have it (many do), when that's merged these warnings
    will go away"

    * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
    virtio_pci: restore module attributes
    mic/host: fix up virtio 1.0 APIs
    vringh: update for virtio 1.0 APIs
    vringh: 64 bit features
    tools/virtio: add virtio 1.0 in vringh_test
    tools/virtio: add virtio 1.0 in virtio_test
    tools/virtio: enable -Werror
    tools/virtio: 64 bit features
    tools/virtio: fix vringh test
    tools/virtio: more stubs
    virtio: core support for config generation
    virtio_pci: add VIRTIO_PCI_NO_LEGACY
    virtio_pci: move probe to common file
    virtio_pci_common.h: drop VIRTIO_PCI_NO_LEGACY
    virtio_config: fix virtio_cread_bytes
    virtio: set VIRTIO_CONFIG_S_FEATURES_OK on restore

    Linus Torvalds
     
  • Pull more ACPI and power management updates from Rafael Wysocki:
    "These are regression fixes (leds-gpio, ACPI backlight driver,
    operating performance points library, ACPI device enumeration
    messages, cpupower tool), other bug fixes (ACPI EC driver, ACPI device
    PM), some cleanups in the operating performance points (OPP)
    framework, continuation of CONFIG_PM_RUNTIME elimination, a couple of
    minor intel_pstate driver changes, a new MAINTAINERS entry for it and
    an ACPI fan driver change needed for better support of thermal
    management in user space.

    Specifics:

    - Fix a regression in leds-gpio introduced by a recent commit that
    inadvertently changed the name of one of the properties used by the
    driver (Fabio Estevam).

    - Fix a regression in the ACPI backlight driver introduced by a
    recent fix that missed one special case that had to be taken into
    account (Aaron Lu).

    - Drop the level of some new kernel messages from the ACPI core
    introduced by a recent commit to KERN_DEBUG which they should have
    used from the start and drop some other unuseful KERN_ERR messages
    printed by ACPI (Rafael J Wysocki).

    - Revert an incorrect commit modifying the cpupower tool (Prarit
    Bhargava).

    - Fix two regressions introduced by recent commits in the OPP library
    and clean up some existing minor issues in that code (Viresh
    Kumar).

    - Continue to replace CONFIG_PM_RUNTIME with CONFIG_PM throughout the
    tree (or drop it where that can be done) in order to make it
    possible to eliminate CONFIG_PM_RUNTIME (Rafael J Wysocki, Ulf
    Hansson, Ludovic Desroches).

    There will be one more "CONFIG_PM_RUNTIME removal" batch after this
    one, because some new uses of it have been introduced during the
    current merge window, but that should be sufficient to finally get
    rid of it.

    - Make the ACPI EC driver more robust against race conditions related
    to GPE handler installation failures (Lv Zheng).

    - Prevent the ACPI device PM core code from attempting to disable
    GPEs that it has not enabled which confuses ACPICA and makes it
    report errors unnecessarily (Rafael J Wysocki).

    - Add a "force" command line switch to the intel_pstate driver to
    make it possible to override the blacklisting of some systems in
    that driver if needed (Ethan Zhao).

    - Improve intel_pstate code documentation and add a MAINTAINERS entry
    for it (Kristen Carlson Accardi).

    - Make the ACPI fan driver create cooling device interfaces witn
    names that reflect the IDs of the ACPI device objects they are
    associated with, except for "generic" ACPI fans (PNP ID "PNP0C0B").

    That's necessary for user space thermal management tools to be able
    to connect the fans with the parts of the system they are supposed
    to be cooling properly. From Srinivas Pandruvada"

    * tag 'pm+acpi-3.19-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (32 commits)
    MAINTAINERS: add entry for intel_pstate
    ACPI / video: update the skip case for acpi_video_device_in_dod()
    power / PM: Eliminate CONFIG_PM_RUNTIME
    NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    ACPI / EC: Fix unexpected ec_remove_handlers() invocations
    Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()"
    tracing / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    x86 / PM: Replace CONFIG_PM_RUNTIME in io_apic.c
    PM: Remove the SET_PM_RUNTIME_PM_OPS() macro
    mmc: atmel-mci: use SET_RUNTIME_PM_OPS() macro
    PM / Kconfig: Replace PM_RUNTIME with PM in dependencies
    ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    phy / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    video / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    ACPI / PM: Do not disable wakeup GPEs that have not been enabled
    ACPI / utils: Drop error messages from acpi_evaluate_reference()
    ...

    Linus Torvalds
     
  • …/linux-platform-drivers-x86

    Pull x86 platform driver update from Darren Hart:
    - thinkpad-acpi: Switch to software mute, cleanups
    - acerhdf: Bang-bang thermal governor, new models, cleanups
    - dell-laptop: New keyboard backlight support and documentation
    - toshiba_acpi: Keyboard backlight updates, hotkey handling
    - dell-wmi: Keypress filtering, WMI event processing
    - eeepc-laptop: Multiple cleanups, improved error handling, documentation
    - hp_wireless: Inform the user if hp_wireless_input_setup()/add() fails
    - misc: Code cleanups, quirks, various new IDs

    * tag 'platform-drivers-x86-v3.19-1' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86: (33 commits)
    platform/x86/acerhdf: Still depends on THERMAL
    Documentation: Add entry for dell-laptop sysfs interface
    acpi: Remove _OSI(Linux) for ThinkPads
    thinkpad-acpi: Try to use full software mute control
    acerhdf: minor clean up
    acerhdf: added critical trip point
    acerhdf: Use bang-bang thermal governor
    acerhdf: Adding support for new models
    acerhdf: Adding support for "manual mode"
    dell-smo8800: Add more ACPI ids and change description of driver
    platform: x86: dell-laptop: Add support for keyboard backlight
    toshiba_acpi: Add keyboard backlight mode change event
    toshiba_acpi: Change notify funtion to handle more events
    toshiba_acpi: Move hotkey enabling code to its own function
    dell-wmi: Don't report keypresses on keybord illumination change
    dell-wmi: Don't report keypresses for radio state changes
    hp_wireless: Inform the user if hp_wireless_input_setup()/add() fails
    toshiba-acpi: Add missing ID (TOS6207)
    Sony-laptop: Deletion of an unnecessary check before the function call "pci_dev_put"
    platform: x86: Deletion of checks before backlight_device_unregister()
    ...

    Linus Torvalds
     
  • Pull small watchdog update from Wim Van Sebroeck:
    - fix the argument of watchdog_active() in imx2_wdt
    - Add power management support to the imx2_wdt watchdog.

    * git://www.linux-watchdog.org/linux-watchdog:
    watchdog: imx2_wdt: Fix the argument of watchdog_active()
    watchdog: imx2_wdt: Add power management support.

    Linus Torvalds
     
  • Pull second set of media updates from Mauro Carvalho Chehab:

    - Move drivers for really old legacy hardware to staging. Those are
    using obsolete media kAPIs and are for hardware that nobody uses for
    years. Simply not worth porting them to the new kAPIs. Of course,
    if anyone pops up to fix, we can move them back from there

    - While not too late, do some API fixups at the new colorspace API,
    added for v3.19

    - Some improvements for rcar_vin driver

    - Some fixups at cx88 and vivid drivers

    - Some Documentation fixups

    * tag 'media/v3.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal
    [media] tlg2300: move to staging in preparation for removal
    [media] vino/saa7191: move to staging in preparation for removal
    [media] MAINTAINERS: vivi -> vivid
    [media] cx88: remove leftover start_video_dma() call
    [media] cx88: add missing alloc_ctx support
    [media] v4l2-ioctl: WARN_ON if querycap didn't fill device_caps
    [media] vivid: fix CROP_BOUNDS typo for video output
    [media] DocBook media: update version number and document changes
    [media] vivid.txt: document new controls
    [media] DocBook media: add missing ycbcr_enc and quantization fields
    [media] v4l2-mediabus.h: use two __u16 instead of two __u32
    [media] rcar_vin: Fix interrupt enable in progressive
    [media] rcar_vin: Enable VSYNC field toggle mode
    [media] rcar_vin: Add scaling support
    [media] rcar_vin: Add DT support for r8a7793 and r8a7794 SoCs
    [media] rcar_vin: Add YUYV capture format support

    Linus Torvalds
     
  • Pull infiniband updates from Roland Dreier:
    "Main batch of InfiniBand/RDMA changes for 3.19:

    - On-demand paging support in core midlayer and mlx5 driver. This
    lets userspace create non-pinned memory regions and have the
    adapter HW trigger page faults.
    - iSER and IPoIB updates and fixes.
    - Low-level HW driver updates for cxgb4, mlx4 and ocrdma.
    - Other miscellaneous fixes"

    * tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (56 commits)
    IB/mlx5: Implement on demand paging by adding support for MMU notifiers
    IB/mlx5: Add support for RDMA read/write responder page faults
    IB/mlx5: Handle page faults
    IB/mlx5: Page faults handling infrastructure
    IB/mlx5: Add mlx5_ib_update_mtt to update page tables after creation
    IB/mlx5: Changes in memory region creation to support on-demand paging
    IB/mlx5: Implement the ODP capability query verb
    mlx5_core: Add support for page faults events and low level handling
    mlx5_core: Re-add MLX5_DEV_CAP_FLAG_ON_DMND_PG flag
    IB/srp: Allow newline separator for connection string
    IB/core: Implement support for MMU notifiers regarding on demand paging regions
    IB/core: Add support for on demand paging regions
    IB/core: Add flags for on demand paging support
    IB/core: Add support for extended query device caps
    IB/mlx5: Add function to read WQE from user-space
    IB/core: Add umem function to read data from user-space
    IB/core: Replace ib_umem's offset field with a full address
    IB/mlx5: Enhance UMR support to allow partial page table update
    IB/mlx5: Remove per-MR pas and dma pointers
    RDMA/ocrdma: Always resolve destination mac from GRH for UD QPs
    ...

    Linus Torvalds
     
  • Pull networking fixes from David Miller:

    1) Fix NBMA tunnel mac header handling in GRE, from Timo Teräs.

    2) Fix a NAPI race in the fec driver, from Nimrod Andy.

    3) The new IFF_VNET_LE bit is outside the size of the flags member it
    is stored in (which is 16-bits), store the state locally in the
    drivers. From Michael S Tsirkin.

    4) We are kicking the tires with the new wireless maintainership
    situation. Bluetooth fixes via Johan Hedberg, and mac80211 fixes
    from Johannes Berg.

    5) Fix locking and leaks in geneve driver, from Jesse Gross.

    6) Make netlink TX mmap code always copy, so we don't have to be
    potentially exposed to the user changing the underlying contents
    from underneath us.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (63 commits)
    be2net: Fix incorrect setting of tunnel offload flag in netdev features
    bnx2x: fix typos in "configure"
    xen-netback: support frontends without feature-rx-notify again
    MAINTAINERS: changes for wireless
    cxgb4: Fix decoding QSA module for ethtool get settings
    geneve: Fix races between socket add and release.
    geneve: Remove socket and offload handlers at destruction.
    netlink: Don't reorder loads/stores before marking mmap netlink frame as available
    netlink: Always copy on mmap TX.
    Bluetooth: Fix bug with filter in service discovery optimization
    mac80211: free management frame keys when removing station
    net: Disallow providing non zero VLAN ID for NIC drivers FDB add flow
    net/mlx4: Cache line CQE/EQE stride fixes
    net: fec: Fix NAPI race
    xen-netfront: use napi_complete() correctly to prevent Rx stalling
    ip_tunnel: Add missing validation of encap type to ip_tunnel_encap_setup()
    ip_tunnel: Add sanity checks to ip_tunnel_encap_add_ops()
    net: Allow FIXED_PHY to be modular.
    if_tun: drop broken IFF_VNET_LE
    macvtap: drop broken IFF_VNET_LE
    ...

    Linus Torvalds
     
  • An earlier commit to resolve an issue with encapsulation offloads missed
    setting a bit in the outer netdev features flag. This results in loss of TSO
    feature on a VxLAN interface.

    Fixes: 630f4b70 ("Export tunnel offloads only when a VxLAN tunnel is created")

    Signed-off-by: Sriharsha Basavapatna
    Signed-off-by: David S. Miller

    Sriharsha Basavapatna
     
  • Noticed when debugging ptp.

    Signed-off-by: Jiri Benc
    Signed-off-by: David S. Miller

    Jiri Benc
     
  • Commit bc96f648df1bbc2729abbb84513cf4f64273a1f1 (xen-netback: make
    feature-rx-notify mandatory) incorrectly assumed that there were no
    frontends in use that did not support this feature. But the frontend
    driver in MiniOS does not and since this is used by (qemu) stubdoms,
    these stopped working.

    Netback sort of works as-is in this mode except:

    - If there are no Rx requests and the internal Rx queue fills, only
    the drain timeout will wake the thread. The default drain timeout
    of 10 s would give unacceptable pauses.

    - If an Rx stall was detected and the internal Rx queue is drained,
    then the Rx thread would never wake.

    Handle these two cases (when feature-rx-notify is disabled) by:

    - Reducing the drain timeout to 30 ms.

    - Disabling Rx stall detection.

    Reported-by: John
    Tested-by: John
    Signed-off-by: David Vrabel
    Reviewed-by: Wei Liu
    Signed-off-by: David S. Miller

    David Vrabel
     
  • * pm-opp:
    PM / OPP: do error handling at the bottom of dev_pm_opp_add_dynamic()
    PM / OPP: handle allocation of device_opp in a separate routine
    PM / OPP: reuse find_device_opp() instead of duplicating code
    PM / OPP: Staticize __dev_pm_opp_remove()
    PM / OPP: replace kfree with kfree_rcu while freeing 'struct device_opp'

    * pm-cpufreq:
    MAINTAINERS: add entry for intel_pstate
    intel_pstate: Add a few comments
    intel_pstate: add kernel parameter to force loading

    * pm-tools:
    Revert "tools: cpupower: fix return checks for sysfs_get_idlestate_count()"

    Rafael J. Wysocki
     
  • * pm-runtime:
    power / PM: Eliminate CONFIG_PM_RUNTIME
    NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    tracing / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    x86 / PM: Replace CONFIG_PM_RUNTIME in io_apic.c
    PM: Remove the SET_PM_RUNTIME_PM_OPS() macro
    mmc: atmel-mci: use SET_RUNTIME_PM_OPS() macro
    PM / Kconfig: Replace PM_RUNTIME with PM in dependencies
    ARM / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    sound / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    phy / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    video / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    tty / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
    spi: Replace CONFIG_PM_RUNTIME with CONFIG_PM

    Rafael J. Wysocki
     
  • * acpi-fan:
    ACPI / Fan: Use bus id as the name for non PNP0C0B (Fan) devices

    * acpi-video:
    ACPI / video: update the skip case for acpi_video_device_in_dod()

    * acpi-ec:
    ACPI / EC: Fix unexpected ec_remove_handlers() invocations

    Rafael J. Wysocki
     
  • * acpi-scan:
    ACPI / scan: Change the level of _DEP-related messages to KERN_DEBUG

    * acpi-utils:
    ACPI / utils: Drop error messages from acpi_evaluate_reference()

    * acpi-pm:
    ACPI / PM: Do not disable wakeup GPEs that have not been enabled

    Rafael J. Wysocki
     
  • QSA module was getting decoded as QSFP module in ethtool get settings, this
    patch fixes it.

    Signed-off-by: Hariprasad Shenai
    Signed-off-by: David S. Miller

    Hariprasad Shenai
     

18 Dec, 2014

11 commits

  • Fix the following build warning by passing the expected argument type to
    watchdog_active():

    drivers/watchdog/imx2_wdt.c: In function 'imx2_wdt_suspend':
    drivers/watchdog/imx2_wdt.c:340:2: warning: passing argument 1 of 'watchdog_active' from incompatible pointer type [enabled by default]
    In file included from drivers/watchdog/imx2_wdt.c:38:0:
    include/linux/watchdog.h:104:20: note: expected 'struct watchdog_device *' but argument is of type 'struct watchdog_device **'

    Reported-by: Olof's autobuilder
    Signed-off-by: Fabio Estevam
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Fabio Estevam
     
  • Add power management operations(suspend and resume) as part of
    dev_pm_ops for IMX2 watchdog driver.

    Signed-off-by: Xiubo Li
    Reviewed-by: Guenter Roeck
    Signed-off-by: Wim Van Sebroeck

    Xiubo Li
     
  • Pull ceph updates from Sage Weil:
    "The big item here is support for inline data for CephFS and for
    message signatures from Zheng. There are also several bug fixes,
    including interrupted flock request handling, 0-length xattrs, mksnap,
    cached readdir results, and a message version compat field. Finally
    there are several cleanups from Ilya, Dan, and Markus.

    Note that there is another series coming soon that fixes some bugs in
    the RBD 'lingering' requests, but it isn't quite ready yet"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (27 commits)
    ceph: fix setting empty extended attribute
    ceph: fix mksnap crash
    ceph: do_sync is never initialized
    libceph: fixup includes in pagelist.h
    ceph: support inline data feature
    ceph: flush inline version
    ceph: convert inline data to normal data before data write
    ceph: sync read inline data
    ceph: fetch inline data when getting Fcr cap refs
    ceph: use getattr request to fetch inline data
    ceph: add inline data to pagecache
    ceph: parse inline data in MClientReply and MClientCaps
    libceph: specify position of extent operation
    libceph: add CREATE osd operation support
    libceph: add SETXATTR/CMPXATTR osd operations support
    rbd: don't treat CEPH_OSD_OP_DELETE as extent op
    ceph: remove unused stringification macros
    libceph: require cephx message signature by default
    ceph: introduce global empty snap context
    ceph: message versioning fixes
    ...

    Linus Torvalds
     
  • Pull VFIO updates from Alex Williamson:
    - s390 support (Frank Blaschka)
    - Enable iommu-type1 for ARM SMMU (Will Deacon)

    * tag 'vfio-v3.19-rc1' of git://github.com/awilliam/linux-vfio:
    drivers/vfio: allow type-1 IOMMU instantiation on top of an ARM SMMU
    vfio: make vfio run on s390

    Linus Torvalds
     
  • Pull virtio updates from Rusty Russell:
    "A balloon enhancement, and a minor race-on-module-unload theoretical
    bug which doesn't merit cc: stable.

    All the exciting stuff went via MST this cycle"

    * tag 'virtio-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    virtio_balloon: free some memory from balloon on OOM
    virtio_balloon: return the amount of freed memory from leak_balloon()
    virtio_blk: fix race at module removal
    virtio: Fix comment typo 'CONFIG_S_FAILED'

    Linus Torvalds
     
  • Pull thermal management update from Zhang Rui:
    "Summary:

    - of-thermal extension to allow drivers to register and use its
    functionality in a better way, without exploiting thermal core.
    From Lukasz Majewski.

    - Fix a bug in intel_soc_dts_thermal driver which calls a sleep
    function in interrupt handler. From Maurice Petallo.

    - add a thermal UAPI header file for exporting the thermal generic
    netlink information to user-space. From Florian Fainelli.

    - First round of refactoring in Exynos driver. Bartlomiej and Lukasz
    are attempting to make it lean and easier to understand.

    - New thermal driver for Rockchip (rk3288), with support for DT
    thermal. From Caesar Wang.

    - New thermal driver for Nvidia, Tegra124 SOCTHERM driver, with
    support for DT thermal. From Mikko Perttunen.

    - New cooling device, based on common clock framework. From Eduardo
    Valentin.

    - a couple of small fixes in thermal core framework. From Srinivas
    Pandruvada, Javi Merino, Luis Henriques.

    - Dropping Armada A375-Z1 SoC thermal support as the chip is not in
    the market, armada folks decided to drop its support.

    - a couple of small fixes and cleanups in int340x thermal driver"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux: (58 commits)
    thermal: provide an UAPI header file
    Thermal/int340x: Clear the error value of the last acpi_bus_get_device() call
    thermal/powerclamp: add id for braswell cpu
    thermal: Intel SoC DTS: Don't do thermal zone update inside spin_lock
    Thermal: fix platform_no_drv_owner.cocci warnings
    Thermal/int340x: avoid unnecessary pointer casting
    thermal: int3403: Delete a check before thermal_zone_device_unregister()
    thermal/int3400: export uuids
    thermal: of: Extend current of-thermal.c code to allow setting emulated temp
    thermal: of: Extend of-thermal to export table of trip points
    thermal: of: Rename struct __thermal_trip to struct thermal_trip
    thermal: of: Extend of-thermal.c to provide check if trip point is valid
    thermal: of: Extend of-thermal.c to provide number of trip points
    thermal: Fix error path in thermal_init()
    thermal: lock the thermal zone when switching governors
    thermal: core: ignore invalid trip temperature
    thermal: armada: Remove support for A375-Z1 SoC
    thermal: rockchip: add driver for thermal
    dt-bindings: document Rockchip thermal
    thermal: exynos: remove exynos_tmu_data.h include
    ...

    Linus Torvalds
     
  • …ierry.reding/linux-pwm

    Pull pwm updates from Thierry Reding:
    "There are two new drivers, one for the BCM2835 (Raspberry Pi) and one
    used in conjunction with the LCD controller on various Atmel SoCs.
    The Samsung PWM driver can now be built for 64-bit ARM (Exynos7).

    A couple of fixes have been applied to the FTM PWM driver and system
    sleep support was added"

    * tag 'pwm/for-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
    pwm: atmel-hlcdc: add at91sam9x5 and sama5d3 errata handling
    pwm: ftm: Add Power Management support for FTM PWM
    pwm: ftm: Add regmap rbtree type cache support
    pwm: ftm: Correctly track usage count
    pwm: samsung: Allow Samsung PWM driver to be enabled on Exynos7
    pwm: add DT bindings documentation for atmel-hlcdc-pwm driver
    pwm: add support for atmel-hlcdc-pwm device
    pwm: Add BCM2835 PWM driver

    Linus Torvalds
     
  • Pull input subsystem updates from Dmitry Torokhov:
    "Two new drivers for Elan hardware (for I2C touchpad and touchscreen
    found in several Chromebooks and other devices), a driver for Goodix
    touch panel, and small fixes to Cypress I2C trackpad and other input
    drivers.

    Also we switched to use __maybe_unused instead of gating suspend/
    resume code with #ifdef guards to get better compile coverage"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (27 commits)
    Input: gpio_keys - fix warning regarding uninitialized 'button' variable
    Input: add support for Elan eKTH I2C touchscreens
    Input: gpio_keys - fix warning regarding uninitialized 'irq' variable
    Input: cyapa - use 'error' for error codes
    Input: cyapa - fix resuming the device
    Input: gpio_keys - add device tree support for interrupt only keys
    Input: amikbd - allocate temporary keymap buffer on the stack
    Input: amikbd - fix build if !CONFIG_HW_CONSOLE
    Input: lm8323 - missing error check in lm8323_set_disable()
    Input: initialize device counter variables with -1
    Input: initialize input_no to -1 to avoid subtraction
    Input: i8042 - do not try to load on Intel NUC D54250WYK
    Input: atkbd - correct MSC_SCAN events for force_release keys
    Input: cyapa - switch to using managed resources
    Input: lifebook - use "static inline" instead of "inline" in lifebook.h
    Input: touchscreen - use __maybe_unused instead of ifdef around suspend/resume
    Input: mouse - use __maybe_unused instead of ifdef around suspend/resume
    Input: misc - use __maybe_unused instead of ifdef around suspend/resume
    Input: cap11xx - support for irq-active-high option
    Input: cap11xx - add support for various cap11xx devices
    ...

    Linus Torvalds
     
  • Pull MTD updates from Brian Norris:
    "Summary:
    - Add device tree support for DoC3

    - SPI NOR:
    Refactoring, for better layering between spi-nor.c and its
    driver users (e.g., m25p80.c)

    New flash device support

    Support 6-byte ID strings

    - NAND:
    New NAND driver for Allwinner SoC's (sunxi)

    GPMI NAND: add support for raw (no ECC) access, for testing
    purposes

    Add ATO manufacturer ID

    A few odd driver fixes

    - MTD tests:
    Allow testers to compensate for OOB bitflips in oobtest

    Fix a torturetest regression

    - nandsim: Support longer ID byte strings

    And more"

    * tag 'for-linus-20141215' of git://git.infradead.org/linux-mtd: (63 commits)
    mtd: tests: abort torturetest on erase errors
    mtd: physmap_of: fix potential NULL dereference
    mtd: spi-nor: allow NULL as chip name and try to auto detect it
    mtd: nand: gpmi: add raw oob access functions
    mtd: nand: gpmi: add proper raw access support
    mtd: nand: gpmi: add gpmi_copy_bits function
    mtd: spi-nor: factor out write_enable() for erase commands
    mtd: spi-nor: add support for s25fl128s
    mtd: spi-nor: remove the jedec_id/ext_id
    mtd: spi-nor: add id/id_len for flash_info{}
    mtd: nand: correct the comment of function nand_block_isreserved()
    jffs2: Drop bogus if in comment
    mtd: atmel_nand: replace memcpy32_toio/memcpy32_fromio with memcpy
    mtd: cafe_nand: drop duplicate .write_page implementation
    mtd: m25p80: Add support for serial flash Spansion S25FL132K
    MTD: m25p80: fix inconsistency in m25p_ids compared to spi_nor_ids
    mtd: spi-nor: improve wait-till-ready timeout loop
    mtd: delete unnecessary checks before two function calls
    mtd: nand: omap: Fix NAND enumeration on 3430 LDP
    mtd: nand: add ATO manufacturer info
    ...

    Linus Torvalds
     
  • CEPH_OSD_OP_DELETE is not an extent op, stop treating it as such. This
    sneaked in with discard patches - it's one of the three osd ops (the
    other two are CEPH_OSD_OP_TRUNCATE and CEPH_OSD_OP_ZERO) that discard
    is implemented with.

    Signed-off-by: Ilya Dryomov
    Reviewed-by: Alex Elder

    Ilya Dryomov
     
  • The functions ceph_put_snap_context() and iput() test whether their
    argument is NULL and then return immediately. Thus the test around the
    call is not needed.

    This issue was detected by using the Coccinelle software.

    Signed-off-by: Markus Elfring
    [idryomov@redhat.com: squashed rbd.c hunk, changelog]
    Signed-off-by: Ilya Dryomov

    SF Markus Elfring