1. 15 Apr, 2020 3 commits
    • Wolfram Sang's avatar
      i2c: remove i2c_new_probed_device API · 3c1d1613
      Wolfram Sang authored
      All in-tree users have been converted to the new i2c_new_scanned_device
      function, so remove this deprecated one.
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
    • Wolfram Sang's avatar
      i2c: altera: use proper variable to hold errno · edb2c9dd
      Wolfram Sang authored
      device_property_read_u32() returns errno or 0, so we should use the
      integer variable 'ret' and not the u32 'val' to hold the retval.
      Fixes: 0560ad57
       ("i2c: altera: Add Altera I2C Controller driver")
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      Reviewed-by: default avatarThor Thayer <thor.thayer@linux.intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
    • Hans de Goede's avatar
      i2c: designware: platdrv: Remove DPM_FLAG_SMART_SUSPEND flag on BYT and CHT · d79294d0
      Hans de Goede authored
      We already set DPM_FLAG_SMART_PREPARE, so we completely skip all
      callbacks (other then prepare) where possible, quoting from
               * If the ACPI companion device object is present for this device, it
               * may be accessed during suspend and resume of other devices via I2C
               * operation regions, so tell the PM core and middle layers to avoid
               * skipping system suspend/resume callbacks for it in that case.
              return !has_acpi_companion(dev);
      Also setting the DPM_FLAG_SMART_SUSPEND will cause acpi_subsys_suspend()
      to leave the controller runtime-suspended even if dw_i2c_plat_prepare()
      returned 0.
      Leaving the controller runtime-suspended normally, when the I2C controller
      is suspended during the suspend_late phase, is not an issue because
      the pm_runtime_get_sync() done by i2c_dw_xfer() will (runtime-)resume it.
      But for dw I2C controllers on Bay- and Cherry-Trail devices acpi_lpss.c
      leaves the controller alive until the suspend_noirq phase, because it may
      be used by the _PS3 ACPI methods of PCI devices and PCI devices are left
      powered on until the suspend_noirq phase.
      Between the suspend_late and resume_early phases runtime-pm is disabled.
      So for any ACPI I2C OPRegion accesses done after the suspend_late phase,
      the pm_runtime_get_sync() done by i2c_dw_xfer() is a no-op and the
      controller is left runtime-suspended.
      i2c_dw_xfer() has a check to catch this condition (rather then waiting
      for the I2C transfer to timeout because the controller is suspended).
      acpi_subsys_suspend() leaving the controller runtime-suspended in
      combination with an ACPI I2C OPRegion access done after the suspend_late
      phase triggers this check, leading to the following error being logged
      on a Bay Trail based Lenovo Thinkpad 8 tablet:
      [   93.275882] i2c_designware 80860F41:00: Transfer while suspended
      [   93.275993] WARNING: CPU: 0 PID: 412 at drivers/i2c/busses/i2c-designware-master.c:429 i2c_dw_xfer+0x239/0x280
      [   93.276252] Workqueue: kacpi_notify acpi_os_execute_deferred
      [   93.276267] RIP: 0010:i2c_dw_xfer+0x239/0x280
      [   93.276340] Call Trace:
      [   93.276366]  __i2c_transfer+0x121/0x520
      [   93.276379]  i2c_transfer+0x4c/0x100
      [   93.276392]  i2c_acpi_space_handler+0x219/0x510
      [   93.276408]  ? up+0x40/0x60
      [   93.276419]  ? i2c_acpi_notify+0x130/0x130
      [   93.276433]  acpi_ev_address_space_dispatch+0x1e1/0x252
      So since on BYT and CHT platforms we want ACPI I2c OPRegion accesses
      to work until the suspend_noirq phase, we need the controller to be
      runtime-resumed during the suspend phase if it is runtime-suspended
      suspended at that time. This means that we must not set the
      DPM_FLAG_SMART_SUSPEND on these platforms.
      On BYT and CHT we already have a special ACCESS_NO_IRQ_SUSPEND flag
      to make sure the controller stays functional until the suspend_noirq
      phase. This commit makes the driver not set the DPM_FLAG_SMART_SUSPEND
      flag when that flag is set.
      Cc: stable@vger.kernel.org
      Fixes: b30f2f65
       ("i2c: designware: Set IRQF_NO_SUSPEND flag for all BYT and CHT controllers")
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Acked-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
  2. 12 Apr, 2020 10 commits
    • Linus Torvalds's avatar
      Linux 5.7-rc1 · 8f3d9f35
      Linus Torvalds authored
    • Linus Torvalds's avatar
      MAINTAINERS: sort field names for all entries · 3b50142d
      Linus Torvalds authored
      This sorts the actual field names too, potentially causing even more
      chaos and confusion at merge time if you have edited the MAINTAINERS
      file.  But the end result is a more consistent layout, and hopefully
      it's a one-time pain minimized by doing this just before the -rc1
      This was entirely scripted:
        ./scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS --order
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Linus Torvalds's avatar
      MAINTAINERS: sort entries by entry name · 4400b7d6
      Linus Torvalds authored
      They are all supposed to be sorted, but people who add new entries don't
      always know the alphabet.  Plus sometimes the entry names get edited,
      and people don't then re-order the entry.
      Let's see how painful this will be for merging purposes (the MAINTAINERS
      file is often edited in various different trees), but Joe claims there's
      relatively few patches in -next that touch this, and doing it just
      before -rc1 is likely the best time.  Fingers crossed.
      This was scripted with
        /scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS
      but then I also ended up manually upper-casing a few entry names that
      stood out when looking at the end result.
      Requested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4f8a3cc1
      Linus Torvalds authored
      Pull x86 fixes from Thomas Gleixner:
       "A set of three patches to fix the fallout of the newly added split
        lock detection feature.
        It addressed the case where a KVM guest triggers a split lock #AC and
        KVM reinjects it into the guest which is not prepared to handle it.
        Add proper sanity checks which prevent the unconditional injection
        into the guest and handles the #AC on the host side in the same way as
        user space detections are handled. Depending on the detection mode it
        either warns and disables detection for the task or kills the task if
        the mode is set to fatal"
      * tag 'x86-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        KVM: VMX: Extend VMXs #AC interceptor to handle split lock #AC in guest
        KVM: x86: Emulate split-lock access as a write in emulator
        x86/split_lock: Provide handle_guest_split_lock()
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0785249f
      Linus Torvalds authored
      Pull time(keeping) updates from Thomas Gleixner:
       - Fix the time_for_children symlink in /proc/$PID/ so it properly
         reflects that it part of the 'time' namespace
       - Add the missing userns limit for the allowed number of time
         namespaces, which was half defined but the actual array member was
         not added. This went unnoticed as the array has an exessive empty
         member at the end but introduced a user visible regression as the
         output was corrupted.
       - Prevent further silent ucount corruption by adding a BUILD_BUG_ON()
         to catch half updated data.
      * tag 'timers-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ucount: Make sure ucounts in /proc/sys/user don't regress again
        time/namespace: Add max_time_namespaces ucount
        time/namespace: Fix time_for_children symlink
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 590680d1
      Linus Torvalds authored
      Pull scheduler fixes/updates from Thomas Gleixner:
       - Deduplicate the average computations in the scheduler core and the
         fair class code.
       - Fix a raise between runtime distribution and assignement which can
         cause exceeding the quota by up to 70%.
       - Prevent negative results in the imbalanace calculation
       - Remove a stale warning in the workqueue code which can be triggered
         since the call site was moved out of preempt disabled code. It's a
         false positive.
       - Deduplicate the print macros for procfs
       - Add the ucmap values to the SCHED_DEBUG procfs output for completness
      * tag 'sched-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/debug: Add task uclamp values to SCHED_DEBUG procfs
        sched/debug: Factor out printing formats into common macros
        sched/debug: Remove redundant macro define
        sched/core: Remove unused rq::last_load_update_tick
        workqueue: Remove the warning in wq_worker_sleeping()
        sched/fair: Fix negative imbalance in imbalance calculation
        sched/fair: Fix race between runtime distribution and assignment
        sched/fair: Align rq->avg_idle and rq->avg_scan_cost
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 20e2aa81
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Three fixes/updates for perf:
         - Fix the perf event cgroup tracking which tries to track the cgroup
           even for disabled events.
         - Add Ice Lake server support for uncore events
         - Disable pagefaults when retrieving the physical address in the
           sampling code"
      * tag 'perf-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/core: Disable page faults when getting phys address
        perf/x86/intel/uncore: Add Ice Lake server uncore support
        perf/cgroup: Correct indirection in perf_less_group_idx()
        perf/core: Fix event cgroup tracking
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 652fa53c
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Three small fixes/updates for the locking core code:
         - Plug a task struct reference leak in the percpu rswem
         - Document the refcount interaction with PID_MAX_LIMIT
         - Improve the 'invalid wait context' data dump in lockdep so it
           contains all information which is required to decode the problem"
      * tag 'locking-urgent-2020-04-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/lockdep: Improve 'invalid wait context' splat
        locking/refcount: Document interaction with PID_MAX_LIMIT
        locking/percpu-rwsem: Fix a task_struct refcount
    • Linus Torvalds's avatar
      Merge tag '5.7-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · 4119bf9f
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Ten cifs/smb fixes:
         - five RDMA (smbdirect) related fixes
         - add experimental support for swap over SMB3 mounts
         - also a fix which improves performance of signed connections"
      * tag '5.7-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: enable swap on SMB3 mounts
        smb3: change noisy error message to FYI
        smb3: smbdirect support can be configured by default
        cifs: smbd: Do not schedule work to send immediate packet on every receive
        cifs: smbd: Properly process errors on ib_post_send
        cifs: Allocate crypto structures on the fly for calculating signatures of incoming packets
        cifs: smbd: Update receive credits before sending and deal with credits roll back on failure before sending
        cifs: smbd: Check send queue size before posting a send
        cifs: smbd: Merge code to track pending packets
        cifs: ignore cached share root handle closing errors
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 50bda5fa
      Linus Torvalds authored
      Pull NFS client bugfix from Trond Myklebust:
       "Fix an RCU read lock leakage in pnfs_alloc_ds_commits_list()"
      * tag 'nfs-for-5.7-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        pNFS: Fix RCU lock leakage
  3. 11 Apr, 2020 14 commits
  4. 10 Apr, 2020 13 commits