1. 17 Sep, 2019 1 commit
    • Rafael J. Wysocki's avatar
      Merge suspend-to-idle rework material for v5.4. · 1b531e55
      Rafael J. Wysocki authored
      * pm-s2idle-rework: (21 commits)
        ACPI: PM: s2idle: Always set up EC GPE for system wakeup
        ACPI: PM: s2idle: Avoid rearming SCI for wakeup unnecessarily
        PM: suspend: Fix platform_suspend_prepare_noirq()
        intel-hid: Disable button array during suspend-to-idle
        intel-hid: intel-vbtn: Avoid leaking wakeup_mode set
        ACPI: PM: s2idle: Execute LPS0 _DSM functions with suspended devices
        ACPI: EC: PM: Make acpi_ec_dispatch_gpe() print debug message
        ACPI: EC: PM: Consolidate some code depending on PM_SLEEP
        ACPI: PM: s2idle: Eliminate acpi_sleep_no_ec_events()
        ACPI: PM: s2idle: Switch EC over to polling during "noirq" suspend
        ACPI: PM: s2idle: Add acpi.sleep_no_lps0 module parameter
        ACPI: PM: s2idle: Rearrange lps0_device_attach()
        ACPI: PM: Set up EC GPE for system wakeup from drivers that need it
        PM: sleep: Drop dpm_noirq_begin() and dpm_noirq_end()
        PM: sleep: Integrate suspend-to-idle with generig suspend flow
        PM: sleep: Simplify suspend-to-idle control flow
        ACPI: PM: Set s2idle_wakeup earlier and clear it later
        PM: sleep: Fix possible overflow in pm_system_cancel_wakeup()
        ACPI: EC: Return bool from acpi_ec_dispatch_gpe()
        ACPICA: Return u32 from acpi_dispatch_gpe()
        ...
      1b531e55
  2. 21 Aug, 2019 2 commits
  3. 20 Aug, 2019 6 commits
  4. 16 Aug, 2019 1 commit
  5. 10 Aug, 2019 1 commit
  6. 09 Aug, 2019 2 commits
    • Rafael J. Wysocki's avatar
      intel-hid: Disable button array during suspend-to-idle · d19bdb87
      Rafael J. Wysocki authored
      Notice that intel_button_array_enable() never disables the power
      button which is the only one needed to wake up the system from
      suspend-to-idle, so it can be safely called during suspend-to-idle
      as well as during "regular" system suspend, and rearrange the
      code in the driver's "suspend" and "resume" callbacks accordingly.
      
      While at it, use pm_suspend_no_platform() to check if the current
      suspend-resume cycle is suspend-to-idle, as that is the only
      case when the device should be enabled while suspended.
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      d19bdb87
    • Rafael J. Wysocki's avatar
      intel-hid: intel-vbtn: Avoid leaking wakeup_mode set · 31eb8457
      Rafael J. Wysocki authored
      Both intel-hid and intel-vbtn set a wakeup_mode flag causing them
      to behave in a special way during system suspend and while suspended
      in their "prepare" PM callbacks and clear it in their "resume" PM
      callbacks.  That may cause the wakeup_mode flag to remain set after
      a system suspend failure (if some other driver's "suspend" callback
      returns an error before the "suspend" callback of either intel-hid
      or intel-vbtn is invoked).
      
      After commit 10a08fd6 ("ACPI: PM: Set up EC GPE for system wakeup
      from drivers that need it") that also affects the "wakeup mask" bit
      of the EC GPE, which may not be cleared after a failing system
      suspend.
      
      Fix this issue by adding "complete" PM callbacks to intel-hid and
      intel-vbtn to clear the wakeup_mode flag and the "wakeup mask" bit
      of the EC GPE if they have not been cleared earlier.
      
      Fixes: 10a08fd6 ("ACPI: PM: Set up EC GPE for system wakeup from drivers that need it")
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      31eb8457
  7. 08 Aug, 2019 7 commits
  8. 05 Aug, 2019 2 commits
  9. 04 Aug, 2019 10 commits
  10. 03 Aug, 2019 8 commits
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · cf6c8aef
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "A set of driver fixes for the I2C subsystem"
      
      * 'i2c/for-current-fixed' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: s3c2410: Mark expected switch fall-through
        i2c: at91: fix clk_offset for sama5d2
        i2c: at91: disable TXRDY interrupt after sending data
        i2c: iproc: Fix i2c master read more than 63 bytes
        eeprom: at24: make spd world-readable again
      cf6c8aef
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8b7fd679
      Linus Torvalds authored
      Pull perf tooling fixes from Thomas Gleixner:
       "A set of updates for perf tools and documentation:
      
        perf header:
          - Prevent a division by zero
          - Deal with an uninitialized warning proper
      
        libbpf:
          - Fix the missiong __WORDSIZE definition for musl & al
      
        UAPI headers:
          - Synchronize kernel headers
      
        Documentation:
          - Fix the memory units for perf.data size"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        libbpf: fix missing __WORDSIZE definition
        perf tools: Fix perf.data documentation units for memory size
        perf header: Fix use of unitialized value warning
        perf header: Fix divide by zero error if f_header.attr_size==0
        tools headers UAPI: Sync if_link.h with the kernel
        tools headers UAPI: Sync sched.h with the kernel
        tools headers UAPI: Sync usbdevice_fs.h with the kernels to get new ioctl
        tools perf beauty: Fix usbdevfs_ioctl table generator to handle _IOC()
        tools headers UAPI: Update tools's copy of drm.h headers
        tools headers UAPI: Update tools's copy of mman.h headers
        tools headers UAPI: Update tools's copy of kvm.h headers
        tools include UAPI: Sync x86's syscalls_64.tbl and generic unistd.h to pick up clone3 and pidfd_open
      8b7fd679
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0432a0a0
      Linus Torvalds authored
      Pull vdso timer fixes from Thomas Gleixner:
       "A series of commits to deal with the regression caused by the generic
        VDSO implementation.
      
        The usage of clock_gettime64() for 32bit compat fallback syscalls
        caused seccomp filters to kill innocent processes because they only
        allow clock_gettime().
      
        Handle the compat syscalls with clock_gettime() as before, which is
        not a functional problem for the VDSO as the legacy compat application
        interface is not y2038 safe anyway. It's just extra fallback code
        which needs to be implemented on every architecture.
      
        It's opt in for now so that it does not break the compile of already
        converted architectures in linux-next. Once these are fixed, the
        #ifdeffery goes away.
      
        So much for trying to be smart and reuse code..."
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        arm64: compat: vdso: Use legacy syscalls as fallback
        x86/vdso/32: Use 32bit syscall fallback
        lib/vdso/32: Provide legacy syscall fallbacks
        lib/vdso: Move fallback invocation to the callers
        lib/vdso/32: Remove inconsistent NULL pointer checks
      0432a0a0
    • Linus Torvalds's avatar
      Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · af42e745
      Linus Torvalds authored
      Pull irq fixes from Thomas Gleixner:
       "A small bunch of fixes from the irqchip department:
      
         - Fix a couple of UAF on error paths (RZA1, GICv3 ITS)
      
         - Fix iMX GPCv2 trigger setting
      
         - Add missing of_node_put() on error path in MBIGEN
      
         - Add another bunch of /* fall-through */ to silence warnings"
      
      * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/renesas-rza1: Fix an use-after-free in rza1_irqc_probe()
        irqchip/irq-imx-gpcv2: Forward irq type to parent
        irqchip/irq-mbigen: Add of_node_put() before return
        irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail
        irqchip/gic-v3: Mark expected switch fall-through
      af42e745
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.3-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · e12b243d
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
      
       - Avoid leaking kernel stack contents to userspace
      
       - Fix a potential null pointer dereference in the dabtree scrub code
      
      * tag 'xfs-5.3-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: Fix possible null-pointer dereferences in xchk_da_btree_block_check_sibling()
        xfs: fix stack contents leakage in the v1 inumber ioctls
      e12b243d
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · b7aea68a
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "17 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        drivers/acpi/scan.c: document why we don't need the device_hotplug_lock
        memremap: move from kernel/ to mm/
        lib/test_meminit.c: use GFP_ATOMIC in RCU critical section
        asm-generic: fix -Wtype-limits compiler warnings
        cgroup: kselftest: relax fs_spec checks
        mm/memory_hotplug.c: remove unneeded return for void function
        mm/migrate.c: initialize pud_entry in migrate_vma()
        coredump: split pipe command whitespace before expanding template
        page flags: prioritize kasan bits over last-cpuid
        ubsan: build ubsan.c more conservatively
        kasan: remove clang version check for KASAN_STACK
        mm: compaction: avoid 100% CPU usage during compaction when a task is killed
        mm: migrate: fix reference check race between __find_get_block() and migration
        mm: vmscan: check if mem cgroup is disabled or not before calling memcg slab shrinker
        ocfs2: remove set but not used variable 'last_hash'
        Revert "kmemleak: allow to coexist with fault injection"
        kernel/signal.c: fix a kernel-doc markup
      b7aea68a
    • Linus Torvalds's avatar
      Merge tag 'riscv/for-v5.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 61672549
      Linus Torvalds authored
      Pull RISC-V fixes from Paul Walmsley:
       "Three minor RISC-V-related changes for v5.3-rc3:
      
         - Add build ID to VDSO builds to avoid a double-free in perf when
           libelf isn't used
      
         - Align the RV64 defconfig to the output of "make savedefconfig" so
           subsequent defconfig patches don't get out of hand
      
         - Drop a superfluous DT property from the FU540 SoC DT data (since it
           must be already set in board data that includes it)"
      
      * tag 'riscv/for-v5.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: defconfig: align RV64 defconfig to the output of "make savedefconfig"
        riscv: dts: fu540-c000: drop "timebase-frequency"
        riscv: Fix perf record without libelf support
      61672549
    • David Hildenbrand's avatar
      drivers/acpi/scan.c: document why we don't need the device_hotplug_lock · 7291edca
      David Hildenbrand authored
      Let's document why the lock is not needed in acpi_scan_init(), right now
      this is not really obvious.
      
      [akpm@linux-foundation.org: fix tpyo]
      Link: http://lkml.kernel.org/r/20190731135306.31524-1-david@redhat.comSigned-off-by: default avatarDavid Hildenbrand <david@redhat.com>
      Acked-by: default avatarMichal Hocko <mhocko@suse.com>
      Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7291edca