1. 11 10月, 2012 23 次提交
  2. 10 10月, 2012 17 次提交
    • A
      vfio: Fix PCI INTx disable consistency · 899649b7
      Alex Williamson 提交于
      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: NAlex Williamson <alex.williamson@redhat.com>
      899649b7
    • A
      vfio: Move PCI INTx eventfd setting earlier · 9dbdfd23
      Alex Williamson 提交于
      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: NAlex Williamson <alex.williamson@redhat.com>
      9dbdfd23
    • A
      vfio: Fix PCI mmap after b3b9c293 · 34002f54
      Alex Williamson 提交于
      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: NAlex Williamson <alex.williamson@redhat.com>
      34002f54
    • L
      Merge tag 'nfs-for-3.7-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · df632d3c
      Linus Torvalds 提交于
      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
    • J
      hwmon: Drop needless includes of <linux/delay.h> · 0657777f
      Jean Delvare 提交于
      These drivers use no sleep or delay functions so they don't need to
      include <linux/delay.h>.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      0657777f
    • J
      hwmon: Add missing inclusions of <linux/err.h> · fa845740
      Jean Delvare 提交于
      These drivers use IS_ERR so they should include <linux/err.h>.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Acked-by: NLuca Tettamanti <kronos.it@gmail.com>
      Cc: Henrik Rydberg <rydberg@euromail.se>
      fa845740
    • J
      hwmon: Add missing inclusions of <linux/jiffies.h> · dcd8f392
      Jean Delvare 提交于
      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: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <linux@roeck-us.net>
      Acked-by: NLuca Tettamanti <kronos.it@gmail.com>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      dcd8f392
    • P
      hwmon: Fix spelling of Celsius · 4d7e47bc
      Peter Meerwald 提交于
      Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      4d7e47bc
    • O
      hwmon: Update Alexey Fisher's name · 9292f055
      Oleksij Rempel 提交于
      My name was change after migration.
      Signed-off-by: NOleksij Rempel <bug-track@fisher-privat.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      9292f055
    • L
      Merge tag 'for-3.7-rc1' of git://gitorious.org/linux-pwm/linux-pwm · 2474542f
      Linus Torvalds 提交于
      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
    • L
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds · c7a6ced9
      Linus Torvalds 提交于
      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
    • L
      Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · a188e7e9
      Linus Torvalds 提交于
      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
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · e1b28147
      Linus Torvalds 提交于
      Pull second s390 update from Martin Schwidefsky:
       "The big thing in this pull request is the UAPI patch from David, and
        worth mentioning is the page table dumper.  The rest are small
        improvements and bug fixes."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/entry: fix svc number for TIF_SYSCALL system call restart
        s390/mm,vmem: fix vmem_add_mem()/vmem_remove_range()
        s390/vmalloc: have separate modules area
        s390/zcrypt: remove duplicated include from zcrypt_pcixcc.c
        s390/css_chars: remove superfluous ifdef
        s390/chsc: make headers usable
        s390/mm: let kernel text section always begin at 1MB
        s390/mm: fix mapping of read-only kernel text section
        s390/mm: add page table dumper
        s390: add support to start the kernel in 64 bit mode.
        s390/mm,pageattr: remove superfluous EXPORT_SYMBOLs
        s390/mm,pageattr: add more page table walk sanity checks
        s390/mm: fix pmd_huge() usage for kernel mapping
        s390/dcssblk: cleanup device attribute usage
        s390/mm: use pfmf instruction to initialize storage keys
        s390/facilities: cleanup PFMF and HPAGE machine facility detection
        UAPI: (Scripted) Disintegrate arch/s390/include/asm
      e1b28147
    • L
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · ba706765
      Linus Torvalds 提交于
      Pull nouveau drm fixes from Dave Airlie:
       "Just a bunch of nouveau fixes, Ben wants to get some alternate
        versions into stable."
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/nouveau/timer: bump ptimer's alarm delay from u32 to u64
        drm/nouveau/fan: fix a typo in PWM's input clock calculation
        drm/nv50/clk: wire up pll_calc hook
        drm/nouveau: remove unused _nouveau_parent_ctor
        drm/nouveau/bios: fix shadowing of ACPI ROMs larger than 64KiB
      ba706765
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal · 42859eea
      Linus Torvalds 提交于
      Pull generic execve() changes from Al Viro:
       "This introduces the generic kernel_thread() and kernel_execve()
        functions, and switches x86, arm, alpha, um and s390 over to them."
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal: (26 commits)
        s390: convert to generic kernel_execve()
        s390: switch to generic kernel_thread()
        s390: fold kernel_thread_helper() into ret_from_fork()
        s390: fold execve_tail() into start_thread(), convert to generic sys_execve()
        um: switch to generic kernel_thread()
        x86, um/x86: switch to generic sys_execve and kernel_execve
        x86: split ret_from_fork
        alpha: introduce ret_from_kernel_execve(), switch to generic kernel_execve()
        alpha: switch to generic kernel_thread()
        alpha: switch to generic sys_execve()
        arm: get rid of execve wrapper, switch to generic execve() implementation
        arm: optimized current_pt_regs()
        arm: introduce ret_from_kernel_execve(), switch to generic kernel_execve()
        arm: split ret_from_fork, simplify kernel_thread() [based on patch by rmk]
        generic sys_execve()
        generic kernel_execve()
        new helper: current_pt_regs()
        preparation for generic kernel_thread()
        um: kill thread->forking
        um: let signal_delivered() do SIGTRAP on singlestepping into handler
        ...
      42859eea
    • L
      Merge branch 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · f59b51fe
      Linus Torvalds 提交于
      Pull UML changes from Richard Weinberger:
       "UML receives this time only cleanups.
      
        The most outstanding change is the 'include "foo.h"' do 'include
        <foo.h>' conversion done by Al Viro.
      
        It touches many files, that's why the diffstat is rather big."
      
      * 'for-linus-37rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        typo in UserModeLinux-HOWTO
        hppfs: fix the return value of get_inode()
        hostfs: drop vmtruncate
        um: get rid of pointless include "..." where include <...> will do
        um: move sysrq.h out of include/shared
        um/x86: merge 32 and 64 bit variants of ptrace.h
        um/x86: merge 32 and 64bit variants of checksum.h
      f59b51fe
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · aac2b1f5
      Linus Torvalds 提交于
      Pull networking updates from David Miller:
      
       1) UAPI changes for networking from David Howells
      
       2) A netlink dump is an operation we can sleep within, and therefore we
          need to make sure the dump provider module doesn't disappear on us
          meanwhile.  Fix from Gao Feng.
      
       3) Now that tunnels support GRO, we have to be more careful in
          skb_gro_reset_offset() otherwise we OOPS, from Eric Dumazet.
      
       4) We can end up processing packets for VLANs we aren't actually
          configured to be on, fix from Florian Zumbiehl.
      
       5) Fix routing cache removal regression in redirects and IPVS.  The
          core issue on the IPVS side is that it wants to rewrite who the
          nexthop is and we have to explicitly accomodate that case.  From
          Julian Anastasov.
      
       6) Error code return fixes all over the networking drivers from Peter
          Senna Tschudin.
      
       7) Fix routing cache removal regressions in IPSEC, from Steffen
          Klassert.
      
       8) Fix deadlock in RDS during pings, from Jeff Liu.
      
       9) Neighbour packet queue can trigger skb_under_panic() because we do
          not reset the network header of the SKB in the right spot.  From
          Ramesh Nagappa.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (61 commits)
        RDS: fix rds-ping spinlock recursion
        netdev/phy: Prototype of_mdio_find_bus()
        farsync: fix support for over 30 cards
        be2net: Remove code that stops further access to BE NIC based on UE bits
        pch_gbe: Fix build error by selecting all the possible dependencies.
        e1000e: add device IDs for i218
        ixgbe/ixgbevf: Limit maximum jumbo frame size to 9.5K to avoid Tx hangs
        ixgbevf: Set the netdev number of Tx queues
        UAPI: (Scripted) Disintegrate include/linux/tc_ematch
        UAPI: (Scripted) Disintegrate include/linux/tc_act
        UAPI: (Scripted) Disintegrate include/linux/netfilter_ipv6
        UAPI: (Scripted) Disintegrate include/linux/netfilter_ipv4
        UAPI: (Scripted) Disintegrate include/linux/netfilter_bridge
        UAPI: (Scripted) Disintegrate include/linux/netfilter_arp
        UAPI: (Scripted) Disintegrate include/linux/netfilter/ipset
        UAPI: (Scripted) Disintegrate include/linux/netfilter
        UAPI: (Scripted) Disintegrate include/linux/isdn
        UAPI: (Scripted) Disintegrate include/linux/caif
        net: fix typo in freescale/ucc_geth.c
        vxlan: fix more sparse warnings
        ...
      aac2b1f5