Skip to content
  1. Oct 11, 2012
  2. Oct 10, 2012
    • Alex Williamson's avatar
      vfio: Fix PCI INTx disable consistency · 899649b7
      Alex Williamson authored
      
      
      The virq_disabled flag tracks the userspace view of INTx masking
      across interrupt mode changes, but we're not consistently applying
      this to the interrupt and masking handler notion of the device.
      Currently if the user sets DisINTx while in MSI or MSIX mode, then
      returns to INTx mode (ex. rebooting a qemu guest), the hardware has
      DisINTx+, but the management of INTx thinks it's enabled, making it
      impossible to actually clear DisINTx.  Fix this by updating the
      handler state when INTx is re-enabled.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      899649b7
    • Alex Williamson's avatar
      vfio: Move PCI INTx eventfd setting earlier · 9dbdfd23
      Alex Williamson authored
      
      
      We need to be ready to recieve an interrupt as soon as we call
      request_irq, so our eventfd context setting needs to be moved
      earlier.  Without this, an interrupt from our device or one
      sharing the interrupt line can pass a NULL into eventfd_signal
      and oops.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      9dbdfd23
    • Alex Williamson's avatar
      vfio: Fix PCI mmap after b3b9c293 · 34002f54
      Alex Williamson authored
      Our mmap path mistakely relied on vma->vm_pgoff to get set in
      remap_pfn_range.  After b3b9c293
      
      , that path only applies to
      copy-on-write mappings.  Set it in our own code.
      
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      34002f54
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-3.7-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · df632d3c
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Features include:
      
         - Remove CONFIG_EXPERIMENTAL dependency from NFSv4.1
           Aside from the issues discussed at the LKS, distros are shipping
           NFSv4.1 with all the trimmings.
         - Fix fdatasync()/fsync() for the corner case of a server reboot.
         - NFSv4 OPEN access fix: finally distinguish correctly between
           open-for-read and open-for-execute permissions in all situations.
         - Ensure that the TCP socket is closed when we're in CLOSE_WAIT
         - More idmapper bugfixes
         - Lots of pNFS bugfixes and cleanups to remove unnecessary state and
           make the code easier to read.
         - In cases where a pNFS read or write fails, allow the client to
           resume trying layoutgets after two minutes of read/write-
           through-mds.
         - More net namespace fixes to the NFSv4 callback code.
         - More net namespace fixes to the NFSv3 locking code.
         - More NFSv4 migration preparatory patches.
           Including patches to detect network trunking in both NFSv4 and
           NFSv4.1
         - pNFS block updates to optimise LAYOUTGET calls."
      
      * tag 'nfs-for-3.7-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (113 commits)
        pnfsblock: cleanup nfs4_blkdev_get
        NFS41: send real read size in layoutget
        NFS41: send real write size in layoutget
        NFS: track direct IO left bytes
        NFSv4.1: Cleanup ugliness in pnfs_layoutgets_blocked()
        NFSv4.1: Ensure that the layout sequence id stays 'close' to the current
        NFSv4.1: Deal with seqid wraparound in the pNFS return-on-close code
        NFSv4 set open access operation call flag in nfs4_init_opendata_res
        NFSv4.1: Remove the dependency on CONFIG_EXPERIMENTAL
        NFSv4 reduce attribute requests for open reclaim
        NFSv4: nfs4_open_done first must check that GETATTR decoded a file type
        NFSv4.1: Deal with wraparound when updating the layout "barrier" seqid
        NFSv4.1: Deal with wraparound issues when updating the layout stateid
        NFSv4.1: Always set the layout stateid if this is the first layoutget
        NFSv4.1: Fix another refcount issue in pnfs_find_alloc_layout
        NFSv4: don't put ACCESS in OPEN compound if O_EXCL
        NFSv4: don't check MAY_WRITE access bit in OPEN
        NFS: Set key construction data for the legacy upcall
        NFSv4.1: don't do two EXCHANGE_IDs on mount
        NFS: nfs41_walk_client_list(): re-lock before iterating
        ...
      df632d3c
    • Jean Delvare's avatar
      hwmon: Drop needless includes of <linux/delay.h> · 0657777f
      Jean Delvare authored
      
      
      These drivers use no sleep or delay functions so they don't need to
      include <linux/delay.h>.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      0657777f
    • Jean Delvare's avatar
      hwmon: Add missing inclusions of <linux/err.h> · fa845740
      Jean Delvare authored
      
      
      These drivers use IS_ERR so they should include <linux/err.h>.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
      Cc: Henrik Rydberg <rydberg@euromail.se>
      fa845740
    • Jean Delvare's avatar
      hwmon: Add missing inclusions of <linux/jiffies.h> · dcd8f392
      Jean Delvare authored
      
      
      Many hwmon drivers use jiffies but omit the inclusion of the header
      file. Fix that, and also fix one driver which was including the header
      file but didn't need it.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      dcd8f392
    • Peter Meerwald's avatar
      hwmon: Fix spelling of Celsius · 4d7e47bc
      Peter Meerwald authored
      
      
      Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      4d7e47bc
    • Oleksij Rempel's avatar
      hwmon: Update Alexey Fisher's name · 9292f055
      Oleksij Rempel authored
      
      
      My name was change after migration.
      
      Signed-off-by: default avatarOleksij Rempel <bug-track@fisher-privat.net>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      9292f055
    • Linus Torvalds's avatar
      Merge tag 'for-3.7-rc1' of git://gitorious.org/linux-pwm/linux-pwm · 2474542f
      Linus Torvalds authored
      Pull pwm changes from Thierry Reding:
       "All legacy PWM providers have now been moved to the PWM subsystem.
        The plan for 3.8 is to adapt all board files to provide a lookup table
        for PWM devices in order to get rid of the global namespace.
        Subsequently, users of the legacy pwm_request() and pwm_free()
        functions can be migrated to the new pwm_get() and pwm_put()
        functions.  Once this has been completed, the legacy API and the
        compatibility code in the core can be removed.
      
        In addition to the above, these changes also add support for
        configuring the polarity of a PWM signal (currently only supported on
        ECAP and EHRPWM) and include a much needed rework of the i.MX driver.
        Managed functions to obtain and release a PWM device (devm_pwm_get()
        and devm_pwm_put()) have been added and the pwm-backlight driver has
        been updated to use them.  If the PWM subsystem hasn't been enabled,
        dummy functions are provided that allow the subsystem to safely
        compile out.
      
        Some common checks on input parameters have been moved to the core and
        removed from the drivers.  Finally, a small fix corrects the
        description of the PWM specifier's second cell in the device tree
        representation."
      
      * tag 'for-3.7-rc1' of git://gitorious.org/linux-pwm/linux-pwm: (23 commits)
        pwm: dt: Fix description of second PWM cell
        pwm: Check for negative duty-cycle and period
        pwm: Add Ingenic JZ4740 support
        MIPS: JZ4740: Export timer API
        pwm: Move PUV3 PWM driver to PWM framework
        unicore32: pwm: Use managed resource allocations
        unicore32: pwm: Remove unnecessary indirection
        unicore32: pwm: Use module_platform_driver()
        unicore32: pwm: Properly remap memory-mapped registers
        pwm-backlight: Use devm_pwm_get() instead of pwm_get()
        pwm: Move AB8500 PWM driver to PWM framework
        pwm: Fix compilation error when CONFIG_PWM is not defined
        pwm: i.MX: fix clock lookup
        pwm: i.MX: use per clock unconditionally
        pwm: i.MX: add devicetree support
        pwm: i.MX: Use module_platform_driver
        pwm: i.MX: add functions to enable/disable pwm.
        pwm: i.MX: remove unnecessary if in pwm_[en|dis]able
        pwm: i.MX: factor out SoC specific functions
        pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM
        ...
      2474542f
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds · c7a6ced9
      Linus Torvalds authored
      Pull LED subsystem update from Bryan Wu.
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds: (24 commits)
        leds: add output driver configuration for pca9633 led driver
        leds: lm3642: Use regmap_update_bits() in lm3642_chip_init()
        leds: Add new LED driver for lm3642 chips
        leds-lp5523: Fix riskiness of the page fault
        leds-lp5523: turn off the LED engines on unloading the driver
        leds-lm3530: Fix smatch warnings
        leds-lm3530: Use devm_regulator_get function
        leds: leds-gpio: adopt pinctrl support
        leds: Add new LED driver for lm355x chips
        leds-lp5523: use the i2c device id rather than fixed name
        leds-lp5523: add new device id for LP55231
        leds-lp5523: support new LP55231 device
        leds: triggers: send uevent when changing triggers
        leds-lp5523: minor code style fixes
        leds-lp5523: change the return type of lp5523_set_mode()
        leds-lp5523: set the brightness to 0 forcely on removing the driver
        leds-lp5523: add channel name in the platform data
        leds: leds-gpio: Use of_get_child_count() helper
        leds: leds-gpio: Use platform_{get,set}_drvdata
        leds: leds-gpio: use of_match_ptr()
        ...
      c7a6ced9
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · a188e7e9
      Linus Torvalds authored
      Pull scsi target updates from Nicholas Bellinger:
       "Things have been calm for the most part with no new fabric drivers in
        flight for v3.7 (we're up to eight now !), so this update is primarily
        focused on addressing a few long-standing items within target-core and
        iscsi-target fabric code.
      
        The highlights include:
      
         - target: Simplify fabric sense data length handling (roland)
         - qla2xxx: Fix endianness of task management response code (roland)
         - target: fix truncation of mode data, support zero allocation length
           (paolo)
         - target: Properly support zero-length commands in normal processing
           path (paolo)
         - iscsi-target: Correctly set 0xffffffff field within ISCSI_OP_REJECT
           PDU (ronnie + nab)
         - iscsi-target: Add explicit set of cache_dynamic_acls=1 for TPG
           demo-mode (ronnie + nab)
         - target/file: Re-enable optional fd_buffered_io=1 operation (nab +
           hch)
         - iscsi-target: Add MaxXmitDataSegmenthLength forr target ->
           initiator MDRSL declaration (nab)
         - target: Add target_submit_cmd_map_sgls for SGL fabric memory
           passthrough (nab + hch)
         - tcm_loop: Convert I/O path to use target_submit_cmd_map_sgls (hch +
           nab)
         - tcm_vhost: Convert I/O path to use target_submit_cmd_map_sgls (nab
           + hch)
      
        The last series for adding a new target_submit_cmd_map_sgls() fabric
        caller (as requested by hch) that accepts pre-allocated SGL memory
        (using existing logic), along with converting tcm_loop + tcm_vhost has
        only been in -next for the last days, but has gotten enough review
        +testing and is clear enough a mechanical change that I think it's
        reasonable to merge for -rc1 code.
      
        Thanks again to everyone who contributed this round! Extra special
        thanks to Roland (PureStorage) for tracking down the qla2xxx target
        TMR response code endian issue, and to Paolo (Redhat) for resolving
        the long standing zero-length CDB issues within target-core between
        virtual and pSCSI backends."
      
      * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (44 commits)
        iscsi-target: Bump defaults for nopin_timeout + nopin_response_timeout values
        iscsit: proper endianess conversions
        iscsit: use the itt_t abstract type
        iscsit: add missing endianess conversion in iscsit_check_inaddr_any
        iscsit: remove incorrect unlock in iscsit_build_sendtargets_resp
        iscsit: mark various functions static
        target/iscsi: precedence bug in iscsit_set_dataout_sequence_values()
        target/usb-gadget: strlen() doesn't count the terminator
        target/usb-gadget: remove duplicate initialization
        tcm_vhost: Convert I/O path to use target_submit_cmd_map_sgls
        target: Add control CDB READ payload zero work-around
        tcm_loop: Convert I/O path to use target_submit_cmd_map_sgls
        target: Add target_submit_cmd_map_sgls for SGL fabric memory passthrough
        iscsi-target: Add explicit set of cache_dynamic_acls=1 for TPG demo-mode
        iscsi-target: Change iscsi_target_seq_pdu_list.c to honor MaxXmitDataSegmentLength
        iscsi-target: Add MaxXmitDataSegmentLength connection recovery check
        iscsi-target: Convert incoming PDU payload checks to MaxXmitDataSegmentLength
        iscsi-target: Enable MaxXmitDataSegmentLength operation in login path
        iscsi-target: Add base MaxXmitDataSegmentLength code
        target/file: Re-enable optional fd_buffered_io=1 operation
        ...
      a188e7e9