1. 19 12月, 2016 1 次提交
  2. 17 12月, 2016 6 次提交
  3. 16 12月, 2016 1 次提交
  4. 14 12月, 2016 20 次提交
  5. 23 10月, 2016 1 次提交
    • V
      platform/x86: Introduce support for Mellanox hotplug driver · 30488704
      Vadim Pasternak 提交于
      Enable system support for the Mellanox Technologies hotplug platform
      driver, which provides support for the next Mellanox basic systems:
      "msx6710", "msx6720", "msb7700", "msn2700", "msx1410", "msn2410",
      "msb7800", "msn2740", "msn2100" and also various number of derivative
      systems from the above basic types.
      This driver handles hot-plug events for the power suppliers, power
      cables and fans for the above systems.
      
      The Kconfig currently controlling compilation of this code is:
      driver/platform/x86:config MLX_CPLD_PLATFORM
                             tristate "Mellanox platform hotplug driver support"
      Signed-off-by: NVadim Pasternak <vadimp@mellanox.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      30488704
  6. 20 10月, 2016 6 次提交
  7. 19 10月, 2016 5 次提交
    • L
      Merge branch 'gup_flag-cleanups' · 63ae602c
      Linus Torvalds 提交于
      Merge the gup_flags cleanups from Lorenzo Stoakes:
       "This patch series adjusts functions in the get_user_pages* family such
        that desired FOLL_* flags are passed as an argument rather than
        implied by flags.
      
        The purpose of this change is to make the use of FOLL_FORCE explicit
        so it is easier to grep for and clearer to callers that this flag is
        being used.  The use of FOLL_FORCE is an issue as it overrides missing
        VM_READ/VM_WRITE flags for the VMA whose pages we are reading
        from/writing to, which can result in surprising behaviour.
      
        The patch series came out of the discussion around commit 38e08854
        ("mm: check VMA flags to avoid invalid PROT_NONE NUMA balancing"),
        which addressed a BUG_ON() being triggered when a page was faulted in
        with PROT_NONE set but having been overridden by FOLL_FORCE.
        do_numa_page() was run on the assumption the page _must_ be one marked
        for NUMA node migration as an actual PROT_NONE page would have been
        dealt with prior to this code path, however FOLL_FORCE introduced a
        situation where this assumption did not hold.
      
        See
      
            https://marc.info/?l=linux-mm&m=147585445805166
      
        for the patch proposal"
      
      Additionally, there's a fix for an ancient bug related to FOLL_FORCE and
      FOLL_WRITE by me.
      
      [ This branch was rebased recently to add a few more acked-by's and
        reviewed-by's ]
      
      * gup_flag-cleanups:
        mm: replace access_process_vm() write parameter with gup_flags
        mm: replace access_remote_vm() write parameter with gup_flags
        mm: replace __access_remote_vm() write parameter with gup_flags
        mm: replace get_user_pages_remote() write/force parameters with gup_flags
        mm: replace get_user_pages() write/force parameters with gup_flags
        mm: replace get_vaddr_frames() write/force parameters with gup_flags
        mm: replace get_user_pages_locked() write/force parameters with gup_flags
        mm: replace get_user_pages_unlocked() write/force parameters with gup_flags
        mm: remove write/force parameters from __get_user_pages_unlocked()
        mm: remove write/force parameters from __get_user_pages_locked()
        mm: remove gup_flags FOLL_WRITE games from __get_user_pages()
      63ae602c
    • L
      mm: replace access_process_vm() write parameter with gup_flags · f307ab6d
      Lorenzo Stoakes 提交于
      This removes the 'write' argument from access_process_vm() and replaces
      it with 'gup_flags' as use of this function previously silently implied
      FOLL_FORCE, whereas after this patch callers explicitly pass this flag.
      
      We make this explicit as use of FOLL_FORCE can result in surprising
      behaviour (and hence bugs) within the mm subsystem.
      Signed-off-by: NLorenzo Stoakes <lstoakes@gmail.com>
      Acked-by: NJesper Nilsson <jesper.nilsson@axis.com>
      Acked-by: NMichal Hocko <mhocko@suse.com>
      Acked-by: NMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f307ab6d
    • L
      mm: replace access_remote_vm() write parameter with gup_flags · 6347e8d5
      Lorenzo Stoakes 提交于
      This removes the 'write' argument from access_remote_vm() and replaces
      it with 'gup_flags' as use of this function previously silently implied
      FOLL_FORCE, whereas after this patch callers explicitly pass this flag.
      
      We make this explicit as use of FOLL_FORCE can result in surprising
      behaviour (and hence bugs) within the mm subsystem.
      Signed-off-by: NLorenzo Stoakes <lstoakes@gmail.com>
      Acked-by: NMichal Hocko <mhocko@suse.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6347e8d5
    • L
      mm: replace __access_remote_vm() write parameter with gup_flags · 442486ec
      Lorenzo Stoakes 提交于
      This removes the 'write' argument from __access_remote_vm() and replaces
      it with 'gup_flags' as use of this function previously silently implied
      FOLL_FORCE, whereas after this patch callers explicitly pass this flag.
      
      We make this explicit as use of FOLL_FORCE can result in surprising
      behaviour (and hence bugs) within the mm subsystem.
      Signed-off-by: NLorenzo Stoakes <lstoakes@gmail.com>
      Acked-by: NMichal Hocko <mhocko@suse.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      442486ec
    • L
      mm: replace get_user_pages_remote() write/force parameters with gup_flags · 9beae1ea
      Lorenzo Stoakes 提交于
      This removes the 'write' and 'force' from get_user_pages_remote() and
      replaces them with 'gup_flags' to make the use of FOLL_FORCE explicit in
      callers as use of this flag can result in surprising behaviour (and
      hence bugs) within the mm subsystem.
      Signed-off-by: NLorenzo Stoakes <lstoakes@gmail.com>
      Acked-by: NMichal Hocko <mhocko@suse.com>
      Reviewed-by: NJan Kara <jack@suse.cz>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9beae1ea