Skip to content
Permalink
Odin-Ugedal/sc…
Switch branches/tags

Commits on Jun 16, 2021

  1. sched/fair: Correctly insert cfs_rq's to list on unthrottle

    This fixes an issue where fairness is decreased since cfs_rq's can
    end up not being decayed properly. For two sibling control groups with
    the same priority, this can often lead to a load ratio of 99/1 (!!).
    
    This happen because when a cfs_rq is throttled, all the descendant cfs_rq's
    will be removed from the leaf list. When they initial cfs_rq is
    unthrottled, it will currently only re add descendant cfs_rq's if they
    have one or more entities enqueued. This is not a perfect heuristic.
    
    Instead, we insert all cfs_rq's that contain one or more enqueued
    entities, or it its load is not completely decayed.
    
    Can often lead to situations like this for equally weighted control
    groups:
    
    $ ps u -C stress
    USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root       10009 88.8  0.0   3676   100 pts/1    R+   11:04   0:13 stress --cpu 1
    root       10023  3.0  0.0   3676   104 pts/1    R+   11:04   0:00 stress --cpu 1
    
    Fixes: 31bc6ae ("sched/fair: Optimize update_blocked_averages()")
    Signed-off-by: Odin Ugedal <odin@uged.al>
    odinuge authored and intel-lab-lkp committed Jun 16, 2021

Commits on Jun 10, 2021

  1. Documentation: Add usecases, design and interface for core scheduling

    Now that core scheduling is merged, update the documentation.
    
    Co-developed-by: Chris Hyser <chris.hyser@oracle.com>
    Signed-off-by: Chris Hyser <chris.hyser@oracle.com>
    Co-developed-by: Josh Don <joshdon@google.com>
    Signed-off-by: Josh Don <joshdon@google.com>
    Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/r/20210603013136.370918-1-joel@joelfernandes.org
    joelagnel authored and Peter Zijlstra committed Jun 10, 2021

Commits on Jun 4, 2021

  1. sched/debug: Remove obsolete init_schedstats()

    Revert commit 4698f88 ("sched/debug: Fix 'schedstats=enable'
    cmdline option").
    
    After commit 6041186 ("init: initialize jump labels before
    command line option parsing") we can rely on jump label infra being
    ready for use when setup_schedstats() is called.
    
    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Kees Cook <keescook@chromium.org>
    Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
    Link: https://lkml.kernel.org/r/20210602112108.1709635-1-eric.dumazet@gmail.com
    neebe000 authored and Peter Zijlstra committed Jun 4, 2021

Commits on Jun 3, 2021

  1. Merge branch 'sched/urgent' into sched/core, to pick up fixes

    Signed-off-by: Ingo Molnar <mingo@kernel.org>
    Ingo Molnar committed Jun 3, 2021
  2. sched/pelt: Ensure that *_sum is always synced with *_avg

    Rounding in PELT calculation happening when entities are attached/detached
    of a cfs_rq can result into situations where util/runnable_avg is not null
    but util/runnable_sum is. This is normally not possible so we need to
    ensure that util/runnable_sum stays synced with util/runnable_avg.
    
    detach_entity_load_avg() is the last place where we don't sync
    util/runnable_sum with util/runnbale_avg when moving some sched_entities
    
    Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/r/20210601085832.12626-1-vincent.guittot@linaro.org
    vingu-linaro authored and Peter Zijlstra committed Jun 3, 2021

Commits on Jun 1, 2021

  1. sched: Don't defer CPU pick to migration_cpu_stop()

    Will reported that the 'XXX __migrate_task() can fail' in migration_cpu_stop()
    can happen, and it *is* sort of a big deal. Looking at it some more, one
    will note there is a glaring hole in the deferred CPU selection:
    
      (w/ CONFIG_CPUSET=n, so that the affinity mask passed via taskset doesn't
      get AND'd with cpu_online_mask)
    
      $ taskset -pc 0-2 $PID
      # offline CPUs 3-4
      $ taskset -pc 3-5 $PID
        `\
          $PID may stay on 0-2 due to the cpumask_any_distribute() picking an
          offline CPU and __migrate_task() refusing to do anything due to
          cpu_is_allowed().
    
    set_cpus_allowed_ptr() goes to some length to pick a dest_cpu that matches
    the right constraints vs affinity and the online/active state of the
    CPUs. Reuse that instead of discarding it in the affine_move_task() case.
    
    Fixes: 6d337ea ("sched: Fix migrate_disable() vs set_cpus_allowed_ptr()")
    Reported-by: Will Deacon <will@kernel.org>
    Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/r/20210526205751.842360-2-valentin.schneider@arm.com
    valschneider authored and Peter Zijlstra committed Jun 1, 2021
  2. sched/fair: Fix ascii art by relpacing tabs

    When using something other than 8 spaces per tab, this ascii art
    makes not sense, and the reader might end up wondering what this
    advanced equation "is".
    
    Signed-off-by: Odin Ugedal <odin@uged.al>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
    Link: https://lkml.kernel.org/r/20210518125202.78658-4-odin@uged.al
    odinuge authored and Peter Zijlstra committed Jun 1, 2021
  3. sched,init: Fix DEBUG_PREEMPT vs early boot

    Extend 8fb1215 ("init: Pin init task to the boot CPU, initially")
    to cover the new PF_NO_SETAFFINITY requirement.
    
    While there, move wait_for_completion(&kthreadd_done) into kernel_init()
    to make it absolutely clear it is the very first thing done by the init
    thread.
    
    Fixes: 570a752 ("lib/smp_processor_id: Use is_percpu_thread() instead of nr_cpus_allowed")
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
    Tested-by: Valentin Schneider <valentin.schneider@arm.com>
    Tested-by: Borislav Petkov <bp@alien8.de>
    Link: https://lkml.kernel.org/r/YLS4mbKUrA3Gnb4t@hirez.programming.kicks-ass.net
    Peter Zijlstra committed Jun 1, 2021
  4. sched: Add CONFIG_SCHED_CORE help text

    Hugh noted that the SCHED_CORE Kconfig option could do with a help
    text.
    
    Requested-by: Hugh Dickins <hughd@google.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
    Acked-by: Hugh Dickins <hughd@google.com>
    Link: https://lkml.kernel.org/r/YKyhtwhEgvtUDOyl@hirez.programming.kicks-ass.net
    Peter Zijlstra committed Jun 1, 2021

Commits on May 31, 2021

  1. tick/nohz: Only check for RCU deferred wakeup on user/guest entry whe…

    …n needed
    
    Checking for and processing RCU-nocb deferred wakeup upon user/guest
    entry is only relevant when nohz_full runs on the local CPU, otherwise
    the periodic tick should take care of it.
    
    Make sure we don't needlessly pollute these fast-paths as a -3%
    performance regression on a will-it-scale.per_process_ops has been
    reported so far.
    
    Fixes: 47b8ff1 (entry: Explicitly flush pending rcuog wakeup before last rescheduling point)
    Fixes: 4ae7dc9 (entry/kvm: Explicitly flush pending rcuog wakeup before last rescheduling point)
    Reported-by: kernel test robot <oliver.sang@intel.com>
    Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
    Cc: stable@vger.kernel.org
    Link: https://lkml.kernel.org/r/20210527113441.465489-1-frederic@kernel.org
    Frederic Weisbecker authored and Peter Zijlstra committed May 31, 2021
  2. sched/fair: Make sure to update tg contrib for blocked load

    During the update of fair blocked load (__update_blocked_fair()), we
    update the contribution of the cfs in tg->load_avg if cfs_rq's pelt
    has decayed.  Nevertheless, the pelt values of a cfs_rq could have
    been recently updated while propagating the change of a child. In this
    case, cfs_rq's pelt will not decayed because it has already been
    updated and we don't update tg->load_avg.
    
    __update_blocked_fair
      ...
      for_each_leaf_cfs_rq_safe: child cfs_rq
        update cfs_rq_load_avg() for child cfs_rq
        ...
        update_load_avg(cfs_rq_of(se), se, 0)
          ...
          update cfs_rq_load_avg() for parent cfs_rq
    		-propagation of child's load makes parent cfs_rq->load_sum
    		 becoming null
            -UPDATE_TG is not set so it doesn't update parent
    		 cfs_rq->tg_load_avg_contrib
      ..
      for_each_leaf_cfs_rq_safe: parent cfs_rq
        update cfs_rq_load_avg() for parent cfs_rq
          - nothing to do because parent cfs_rq has already been updated
    		recently so cfs_rq->tg_load_avg_contrib is not updated
        ...
        parent cfs_rq is decayed
          list_del_leaf_cfs_rq parent cfs_rq
    	  - but it still contibutes to tg->load_avg
    
    we must set UPDATE_TG flags when propagting pending load to the parent
    
    Fixes: 039ae8b ("sched/fair: Fix O(nr_cgroups) in the load balancing path")
    Reported-by: Odin Ugedal <odin@uged.al>
    Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Odin Ugedal <odin@uged.al>
    Link: https://lkml.kernel.org/r/20210527122916.27683-3-vincent.guittot@linaro.org
    vingu-linaro authored and Peter Zijlstra committed May 31, 2021
  3. sched/fair: Keep load_avg and load_sum synced

    when removing a cfs_rq from the list we only check _sum value so we must
    ensure that _avg and _sum stay synced so load_sum can't be null whereas
    load_avg is not after propagating load in the cgroup hierarchy.
    
    Use load_avg to compute load_sum similarly to what is done for util_sum
    and runnable_sum.
    
    Fixes: 0e2d2aa ("sched/fair: Rewrite PELT migration propagation")
    Reported-by: Odin Ugedal <odin@uged.al>
    Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Odin Ugedal <odin@uged.al>
    Link: https://lkml.kernel.org/r/20210527122916.27683-2-vincent.guittot@linaro.org
    vingu-linaro authored and Peter Zijlstra committed May 31, 2021

Commits on May 30, 2021

  1. Linux 5.13-rc4

    torvalds committed May 30, 2021
  2. Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/wsa/linux
    
    Pull i2c fixes from Wolfram Sang:
     "This is a bit larger than usual at rc4 time. The reason is due to
      Lee's work of fixing newly reported build warnings.
    
      The rest is fixes as usual"
    
    * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (22 commits)
      MAINTAINERS: adjust to removing i2c designware platform data
      i2c: s3c2410: fix possible NULL pointer deref on read message after write
      i2c: mediatek: Disable i2c start_en and clear intr_stat brfore reset
      i2c: i801: Don't generate an interrupt on bus reset
      i2c: mpc: implement erratum A-004447 workaround
      powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers
      powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers
      dt-bindings: i2c: mpc: Add fsl,i2c-erratum-a004447 flag
      i2c: busses: i2c-stm32f4: Remove incorrectly placed ' ' from function name
      i2c: busses: i2c-st: Fix copy/paste function misnaming issues
      i2c: busses: i2c-pnx: Provide descriptions for 'alg_data' data structure
      i2c: busses: i2c-ocores: Place the expected function names into the documentation headers
      i2c: busses: i2c-eg20t: Fix 'bad line' issue and provide description for 'msgs' param
      i2c: busses: i2c-designware-master: Fix misnaming of 'i2c_dw_init_master()'
      i2c: busses: i2c-cadence: Fix incorrectly documented 'enum cdns_i2c_slave_mode'
      i2c: busses: i2c-ali1563: File headers are not good candidates for kernel-doc
      i2c: muxes: i2c-arb-gpio-challenge: Demote non-conformant kernel-doc headers
      i2c: busses: i2c-nomadik: Fix formatting issue pertaining to 'timeout'
      i2c: sh_mobile: Use new clock calculation formulas for RZ/G2E
      i2c: I2C_HISI should depend on ACPI
      ...
    torvalds committed May 30, 2021
  3. Merge tag 'seccomp-fixes-v5.13-rc4' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/kees/linux
    
    Pull seccomp fixes from Kees Cook:
     "This fixes a hard-to-hit race condition in the addfd user_notif
      feature of seccomp, visible since v5.9.
    
      And a small documentation fix"
    
    * tag 'seccomp-fixes-v5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      seccomp: Refactor notification handler to prepare for new semantics
      Documentation: seccomp: Fix user notification documentation
    torvalds committed May 30, 2021
  4. Merge tag 'riscv-for-linus-5.13-rc4' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
     "A handful of RISC-V related fixes:
    
       - avoid errors when the stack tracing code is tracing itself.
    
       - resurrect the memtest= kernel command line argument on RISC-V,
         which was briefly enabled during the merge window before a
         refactoring disabled it.
    
       - build fix and some warning cleanups"
    
    * tag 'riscv-for-linus-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      riscv: kexec: Fix W=1 build warnings
      riscv: kprobes: Fix build error when MMU=n
      riscv: Select ARCH_USE_MEMTEST
      riscv: stacktrace: fix the riscv stacktrace when CONFIG_FRAME_POINTER enabled
    torvalds committed May 30, 2021
  5. Merge tag 'xfs-5.13-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/x…

    …fs-linux
    
    Pull xfs fixes from Darrick Wong:
     "This week's pile mitigates some decades-old problems in how extent
      size hints interact with realtime volumes, fixes some failures in
      online shrink, and fixes a problem where directory and symlink
      shrinking on extremely fragmented filesystems could fail.
    
      The most user-notable change here is to point users at our (new) IRC
      channel on OFTC. Freedom isn't free, it costs folks like you and me;
      and if you don't kowtow, they'll expel everyone and take over your
      channel. (Ok, ok, that didn't fit the song lyrics...)
    
      Summary:
    
       - Fix a bug where unmapping operations end earlier than expected,
         which can cause chaos on multi-block directory and symlink shrink
         operations.
    
       - Fix an erroneous assert that can trigger if we try to transition a
         bmap structure from btree format to extents format with zero
         extents. This was exposed by xfs/538"
    
    * tag 'xfs-5.13-fixes-3' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
      xfs: bunmapi has unnecessary AG lock ordering issues
      xfs: btree format inode forks can have zero extents
      xfs: add new IRC channel to MAINTAINERS
      xfs: validate extsz hints against rt extent size when rtinherit is set
      xfs: standardize extent size hint validation
      xfs: check free AG space when making per-AG reservations
    torvalds committed May 30, 2021

Commits on May 29, 2021

  1. seccomp: Refactor notification handler to prepare for new semantics

    This refactors the user notification code to have a do / while loop around
    the completion condition. This has a small change in semantic, in that
    previously we ignored addfd calls upon wakeup if the notification had been
    responded to, but instead with the new change we check for an outstanding
    addfd calls prior to returning to userspace.
    
    Rodrigo Campos also identified a bug that can result in addfd causing
    an early return, when the supervisor didn't actually handle the
    syscall [1].
    
    [1]: https://lore.kernel.org/lkml/20210413160151.3301-1-rodrigo@kinvolk.io/
    
    Fixes: 7cf97b1 ("seccomp: Introduce addfd ioctl to seccomp user notifier")
    Signed-off-by: Sargun Dhillon <sargun@sargun.me>
    Acked-by: Tycho Andersen <tycho@tycho.pizza>
    Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
    Signed-off-by: Kees Cook <keescook@chromium.org>
    Tested-by: Rodrigo Campos <rodrigo@kinvolk.io>
    Cc: stable@vger.kernel.org
    Link: https://lore.kernel.org/r/20210517193908.3113-3-sargun@sargun.me
    sargun authored and kees committed May 29, 2021
  2. Merge tag 'thermal-v5.13-rc4' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/thermal/linux
    
    Pull thermal fixes from Daniel Lezcano:
    
     - Fix uninitialized error code value for the SPMI adc driver (Yang
       Yingliang)
    
     - Fix kernel doc warning (Yang Li)
    
     - Fix wrong read-write thermal trip point initialization (Srinivas
       Pandruvada)
    
    * tag 'thermal-v5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux:
      thermal/drivers/qcom: Fix error code in adc_tm5_get_dt_channel_data()
      thermal/ti-soc-thermal: Fix kernel-doc
      thermal/drivers/intel: Initialize RW trip to THERMAL_TEMP_INVALID
    torvalds committed May 29, 2021
  3. Merge tag 'char-misc-5.13-rc4' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are some tiny char/misc driver fixes for 5.13-rc4.
    
      Nothing huge here, just some tiny fixes for reported issues:
    
       - two interconnect driver fixes
    
       - kgdb build warning fix for gcc-11
    
       - hgafb regression fix
    
       - soundwire driver fix
    
       - mei driver fix
    
      All have been in linux-next with no reported issues"
    
    * tag 'char-misc-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      mei: request autosuspend after sending rx flow control
      kgdb: fix gcc-11 warnings harder
      video: hgafb: correctly handle card detect failure during probe
      soundwire: qcom: fix handling of qcom,ports-block-pack-mode
      interconnect: qcom: Add missing MODULE_DEVICE_TABLE
      interconnect: qcom: bcm-voter: add a missing of_node_put()
    torvalds committed May 29, 2021
  4. Merge tag 'driver-core-5.13-rc4' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gregkh/driver-core
    
    Pull driver core fixes from Greg KH:
     "Here are three small driver core / debugfs fixes for 5.13-rc4:
    
       - debugfs fix for incorrect "lockdown" mode for selinux accesses
    
       - two device link changes, one bugfix and one cleanup
    
      All of these have been in linux-next for over a week with no reported
      problems"
    
    * tag 'driver-core-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
      drivers: base: Reduce device link removal code duplication
      drivers: base: Fix device link removal
      debugfs: fix security_locked_down() call for SELinux
    torvalds committed May 29, 2021
  5. Merge tag 'staging-5.13-rc4' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gregkh/staging
    
    Pull staging and IIO driver fixes from Greg KH:
     "Here are some small IIO and staging driver fixes for reported issues
      for 5.13-rc4.
    
      Nothing major here, tiny changes for reported problems, full details
      are in the shortlog if people are curious.
    
      All have been in linux-next for a while with no reported problems"
    
    * tag 'staging-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
      iio: adc: ad7793: Add missing error code in ad7793_setup()
      iio: adc: ad7923: Fix undersized rx buffer.
      iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()
      iio: dac: ad5770r: Put fwnode in error case during ->probe()
      iio: gyro: fxas21002c: balance runtime power in error path
      staging: emxx_udc: fix loop in _nbu2ss_nuke()
      staging: iio: cdc: ad7746: avoid overwrite of num_channels
      iio: adc: ad7192: handle regulator voltage error first
      iio: adc: ad7192: Avoid disabling a clock that was never enabled.
      iio: adc: ad7124: Fix potential overflow due to non sequential channel numbers
      iio: adc: ad7124: Fix missbalanced regulator enable / disable on error.
    torvalds committed May 29, 2021
  6. Merge tag 'tty-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/tty
    
    Pull tty / serial driver fixes from Greg KH:
     "Here are some small fixes for reported problems for tty and serial
      drivers for 5.13-rc4.
    
      They consist of:
    
       - 8250 bugfixes and new device support
    
       - lockdown security mode fixup
    
       - syzbot found problems fixed
    
       - 8250_omap fix for interrupt storm
    
       - revert of 8250_omap driver fix as it caused worse problem than the
         original issue
    
      All but the last patch have been in linux-next for a while, the last
      one is a revert of a problem found in linux-next with the 8250_omap
      driver change"
    
    * tag 'tty-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
      Revert "serial: 8250: 8250_omap: Fix possible interrupt storm"
      serial: 8250_pci: handle FL_NOIRQ board flag
      serial: rp2: use 'request_firmware' instead of 'request_firmware_nowait'
      serial: 8250_pci: Add support for new HPE serial device
      serial: 8250: 8250_omap: Fix possible interrupt storm
      serial: 8250: Use BIT(x) for UART_{CAP,BUG}_*
      serial: 8250: Add UART_BUG_TXRACE workaround for Aspeed VUART
      serial: 8250_dw: Add device HID for new AMD UART controller
      serial: sh-sci: Fix off-by-one error in FIFO threshold register setting
      serial: core: fix suspicious security_locked_down() call
      serial: tegra: Fix a mask operation that is always true
    torvalds committed May 29, 2021
  7. Merge tag 'usb-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB / Thunderbolt fixes from Greg KH:
     "Here are a number of tiny USB and Thunderbolt driver fixes for
      5.13-rc4.
    
      They consist of:
    
       - thunderbolt fixes for some NVM bound issues
    
       - xhci fixes for reported problems
    
       - control-request fixups
    
       - documentation build warning fixes
    
       - new usb-serial driver device ids
    
       - typec bugfixes for reported issues
    
       - usbfs warning fixups (could be triggered from userspace)
    
       - other tiny fixes for reported problems.
    
      All of these have been in linux-next with no reported issues"
    
    * tag 'usb-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (22 commits)
      xhci: Fix 5.12 regression of missing xHC cache clearing command after a Stall
      xhci: fix giving back URB with incorrect status regression in 5.12
      usb: gadget: udc: renesas_usb3: Fix a race in usb3_start_pipen()
      usb: typec: tcpm: Respond Not_Supported if no snk_vdo
      usb: typec: tcpm: Properly interrupt VDM AMS
      USB: trancevibrator: fix control-request direction
      usb: Restore the usb_header label
      usb: typec: tcpm: Use LE to CPU conversion when accessing msg->header
      usb: typec: ucsi: Clear pending after acking connector change
      usb: typec: mux: Fix matching with typec_altmode_desc
      misc/uss720: fix memory leak in uss720_probe
      usb: dwc3: gadget: Properly track pending and queued SG
      USB: usbfs: Don't WARN about excessively large memory allocations
      thunderbolt: usb4: Fix NVM read buffer bounds and offset issue
      thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue
      usb: chipidea: udc: assign interrupt number to USB gadget structure
      usb: cdnsp: Fix lack of removing request from pending list.
      usb: cdns3: Fix runtime PM imbalance on error
      USB: serial: pl2303: add device id for ADLINK ND-6530 GC
      USB: serial: ti_usb_3410_5052: add startech.com device id
      ...
    torvalds committed May 29, 2021
  8. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull KVM fixes from Paolo Bonzini:
     "ARM fixes:
    
       - Another state update on exit to userspace fix
    
       - Prevent the creation of mixed 32/64 VMs
    
       - Fix regression with irqbypass not restarting the guest on failed
         connect
    
       - Fix regression with debug register decoding resulting in
         overlapping access
    
       - Commit exception state on exit to usrspace
    
       - Fix the MMU notifier return values
    
       - Add missing 'static' qualifiers in the new host stage-2 code
    
      x86 fixes:
    
       - fix guest missed wakeup with assigned devices
    
       - fix WARN reported by syzkaller
    
       - do not use BIT() in UAPI headers
    
       - make the kvm_amd.avic parameter bool
    
      PPC fixes:
    
       - make halt polling heuristics consistent with other architectures
    
      selftests:
    
       - various fixes
    
       - new performance selftest memslot_perf_test
    
       - test UFFD minor faults in demand_paging_test"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (44 commits)
      selftests: kvm: fix overlapping addresses in memslot_perf_test
      KVM: X86: Kill off ctxt->ud
      KVM: X86: Fix warning caused by stale emulation context
      KVM: X86: Use kvm_get_linear_rip() in single-step and #DB/#BP interception
      KVM: x86/mmu: Fix comment mentioning skip_4k
      KVM: VMX: update vcpu posted-interrupt descriptor when assigning device
      KVM: rename KVM_REQ_PENDING_TIMER to KVM_REQ_UNBLOCK
      KVM: x86: add start_assignment hook to kvm_x86_ops
      KVM: LAPIC: Narrow the timer latency between wait_lapic_expire and world switch
      selftests: kvm: do only 1 memslot_perf_test run by default
      KVM: X86: Use _BITUL() macro in UAPI headers
      KVM: selftests: add shared hugetlbfs backing source type
      KVM: selftests: allow using UFFD minor faults for demand paging
      KVM: selftests: create alias mappings when using shared memory
      KVM: selftests: add shmem backing source type
      KVM: selftests: refactor vm_mem_backing_src_type flags
      KVM: selftests: allow different backing source types
      KVM: selftests: compute correct demand paging size
      KVM: selftests: simplify setup_demand_paging error handling
      KVM: selftests: Print a message if /dev/kvm is missing
      ...
    torvalds committed May 29, 2021
  9. Merge tag 's390-5.13-3' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/s390/linux
    
    Pull s390 fixes from Vasily Gorbik:
     "Fix races in vfio-ccw request handling"
    
    * tag 's390-5.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
      vfio-ccw: Serialize FSM IDLE state with I/O completion
      vfio-ccw: Reset FSM state to IDLE inside FSM
      vfio-ccw: Check initialized flag in cp_init()
    torvalds committed May 29, 2021
  10. selftests: kvm: fix overlapping addresses in memslot_perf_test

    vm_create allocates memory and maps it close to GPA.  This memory
    is separate from what is allocated in subsequent calls to
    vm_userspace_mem_region_add, so it is incorrect to pass the
    test memory size to vm_create_default.  Just pass a small
    fixed amount of memory which can be used later for page table,
    otherwise GPAs are already allocated at MEM_GPA and the
    test aborts.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini committed May 29, 2021
  11. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Ten small fixes, all in drivers"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: target: qla2xxx: Wait for stop_phase1 at WWN removal
      scsi: hisi_sas: Drop free_irq() of devm_request_irq() allocated irq
      scsi: vmw_pvscsi: Set correct residual data length
      scsi: bnx2fc: Return failure if io_req is already in ABTS processing
      scsi: aic7xxx: Remove multiple definition of globals
      scsi: aic7xxx: Restore several defines for aic7xxx firmware build
      scsi: target: iblock: Fix smp_processor_id() BUG messages
      scsi: libsas: Use _safe() loop in sas_resume_port()
      scsi: target: tcmu: Fix xarray RCU warning
      scsi: target: core: Avoid smp_processor_id() in preemptible code
    torvalds committed May 29, 2021
  12. Merge tag 'block-5.13-2021-05-28' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
    
     - NVMe pull request (Christoph):
          - fix a memory leak in nvme_cdev_add (Guoqing Jiang)
          - fix inline data size comparison in nvmet_tcp_queue_response (Hou
            Pu)
          - fix false keep-alive timeout when a controller is torn down
            (Sagi Grimberg)
          - fix a nvme-tcp Kconfig dependency (Sagi Grimberg)
          - short-circuit reconnect retries for FC (Hannes Reinecke)
          - decode host pathing error for connect (Hannes Reinecke)
    
     - MD pull request (Song):
          - Fix incorrect chunk boundary assert (Christoph)
    
     - Fix s390/dasd verification panic (Stefan)
    
    * tag 'block-5.13-2021-05-28' of git://git.kernel.dk/linux-block:
      nvmet: fix false keep-alive timeout when a controller is torn down
      nvmet-tcp: fix inline data size comparison in nvmet_tcp_queue_response
      nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME
      md/raid5: remove an incorrect assert in in_chunk_boundary
      s390/dasd: add missing discipline function
      nvme-fabrics: decode host pathing error for connect
      nvme-fc: short-circuit reconnect retries
      nvme: fix potential memory leaks in nvme_cdev_add
    torvalds committed May 29, 2021
  13. Merge tag 'io_uring-5.13-2021-05-28' of git://git.kernel.dk/linux-block

    Pull io_uring fixes from Jens Axboe:
     "A few minor fixes:
    
       - Fix an issue with hashed wait removal on exit (Zqiang, Pavel)
    
       - Fix a recent data race introduced in this series (Marco)"
    
    * tag 'io_uring-5.13-2021-05-28' of git://git.kernel.dk/linux-block:
      io_uring: fix data race to avoid potential NULL-deref
      io-wq: Fix UAF when wakeup wqe in hash waitqueue
      io_uring/io-wq: close io-wq full-stop gap
    torvalds committed May 29, 2021
  14. Merge tag 'drm-fixes-2021-05-29' of git://anongit.freedesktop.org/drm…

    …/drm
    
    Pull drm fixes from Dave Airlie:
     "Pretty quiet this week, couple of amdgpu, one i915, and a few misc otherwise.
    
      ttm:
       - prevent irrelevant swapout
    
      amdgpu:
       - MultiGPU fan fix
       - VCN powergating fixes
    
      amdkfd:
       - Fix SDMA register offset error
    
      meson:
       - fix shutdown crash
    
      i915:
       - Re-enable LTTPR non-transparent LT mode for DPCD_REV < 1.4"
    
    * tag 'drm-fixes-2021-05-29' of git://anongit.freedesktop.org/drm/drm:
      drm/ttm: Skip swapout if ttm object is not populated
      drm/i915: Reenable LTTPR non-transparent LT mode for DPCD_REV<1.4
      drm/meson: fix shutdown crash when component not probed
      drm/amdgpu/jpeg3: add cancel_delayed_work_sync before power gate
      drm/amdgpu/jpeg2.5: add cancel_delayed_work_sync before power gate
      drm/amdgpu/jpeg2.0: add cancel_delayed_work_sync before power gate
      drm/amdgpu/vcn3: add cancel_delayed_work_sync before power gate
      drm/amdgpu/vcn2.5: add cancel_delayed_work_sync before power gate
      drm/amdgpu/vcn2.0: add cancel_delayed_work_sync before power gate
      drm/amdgpu/vcn1: add cancel_delayed_work_sync before power gate
      drm/amdkfd: correct sienna_cichlid SDMA RLC register offset error
      drm/amd/pm: correct MGpuFanBoost setting
    torvalds committed May 29, 2021
  15. Merge tag 'perf-tools-fixes-for-v5.13-2021-05-28' of git://git.kernel…

    ….org/pub/scm/linux/kernel/git/acme/linux
    
    Pull perf tools fixes from Arnaldo Carvalho de Melo:
    
     - Fix error checking of BPF prog attachment in 'perf stat'.
    
     - Fix getting maximum number of fds in the vendor events JSON parser.
    
     - Move debug initialization earlier, fixing a segfault in some cases.
    
     - Fix eventcode of power10 JSON events.
    
    * tag 'perf-tools-fixes-for-v5.13-2021-05-28' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
      perf vendor events powerpc: Fix eventcode of power10 JSON events
      perf stat: Fix error check for bpf_program__attach
      perf debug: Move debug initialization earlier
      perf jevents: Fix getting maximum number of fds
    torvalds committed May 29, 2021
  16. Merge tag '5.13-rc4-smb3' of git://git.samba.org/sfrench/cifs-2.6

    Pull cifs fixes from Steve French:
     "Three SMB3 fixes.
    
      Two for stable, and the other fixes a problem pointed out with a
      recently added ioctl"
    
    * tag '5.13-rc4-smb3' of git://git.samba.org/sfrench/cifs-2.6:
      cifs: change format of CIFS_FULL_KEY_DUMP ioctl
      cifs: fix string declarations and assignments in tracepoints
      cifs: set server->cipher_type to AES-128-CCM for SMB3.0
    torvalds committed May 29, 2021

Commits on May 28, 2021

  1. Merge tag 'nfs-for-5.13-2' of git://git.linux-nfs.org/projects/trondm…

    …y/linux-nfs
    
    Pull NFS client bugfixes from Trond Myklebust:
    "Stable fixes:
       - Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config
       - Fix Oops in xs_tcp_send_request() when transport is disconnected
       - Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()
    
      Bugfixes:
       - Fix instances where signal_pending() should be fatal_signal_pending()
       - fix an incorrect limit in filelayout_decode_layout()
       - Fixes for the SUNRPC backlogged RPC queue
       - Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
       - Revert commit 586a078 ("Clean up rpcrdma_prepare_readch()")"
    
    * tag 'nfs-for-5.13-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
      nfs: Remove trailing semicolon in macros
      xprtrdma: Revert 586a078
      NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config
      NFS: Clean up reset of the mirror accounting variables
      NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
      NFS: Fix an Oopsable condition in __nfs_pageio_add_request()
      SUNRPC: More fixes for backlog congestion
      SUNRPC: Fix Oops in xs_tcp_send_request() when transport is disconnected
      NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()
      SUNRPC in case of backlog, hand free slots directly to waiting task
      pNFS/NFSv4: Remove redundant initialization of 'rd_size'
      NFS: fix an incorrect limit in filelayout_decode_layout()
      fs/nfs: Use fatal_signal_pending instead of signal_pending
    torvalds committed May 28, 2021
  2. Merge tag 'sound-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/tiwai/sound
    
    Pull sound fixes from Takashi Iwai:
     "A slightly high volume at this time due to pending ASoC fixes.
    
      While there are a few generic simple-card fixes for regressions, most
      of the changes are device-specific fixes: ASoC Intel SOF, codec
      clocks, other codec / platform fixes as well as usual HD-audio and
      USB-audio"
    
    * tag 'sound-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (37 commits)
      ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Zbook Fury 17 G8
      ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Zbook Fury 15 G8
      ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Zbook G8
      ALSA: hda/realtek: fix mute/micmute LEDs for HP 855 G8
      ALSA: hda/realtek: Chain in pop reduction fixup for ThinkStation P340
      ALSA: usb-audio: scarlett2: snd_scarlett_gen2_controls_create() can be static
      ALSA: hda/realtek: the bass speaker can't output sound on Yoga 9i
      ALSA: hda/realtek: Headphone volume is controlled by Front mixer
      ALSA: usb-audio: scarlett2: Improve driver startup messages
      ALSA: usb-audio: scarlett2: Fix device hang with ehci-pci
      ALSA: usb-audio: fix control-request direction
      ASoC: qcom: lpass-cpu: Use optional clk APIs
      ASoC: cs35l33: fix an error code in probe()
      ASoC: SOF: Intel: hda: don't send DAI_CONFIG IPC for older firmware
      ASoC: fsl: fix SND_SOC_IMX_RPMSG dependency
      ASoC: cs42l52: Minor tidy up of error paths
      ASoC: cs35l32: Add missing regmap use_single config
      ASoC: cs35l34: Add missing regmap use_single config
      ASoC: cs42l73: Add missing regmap use_single config
      ASoC: cs53l30: Add missing regmap use_single config
      ...
    torvalds committed May 28, 2021
Older