Skip to content
Permalink
Jacob-Pan/Enab…
Switch branches/tags

Commits on Dec 7, 2021

  1. dmaengine: idxd: Use DMA API for in-kernel DMA with PASID

    In-kernel DMA should be managed by DMA mapping API. The existing kernel
    PASID support is based on the SVA machinery in SVA lib that is intended
    for user process SVA. The binding between a kernel PASID and kernel
    mapping has many flaws. See discussions in the link below.
    
    This patch utilizes iommu_enable_pasid_dma() to enable DSA to perform DMA
    requests with PASID under the same mapping managed by DMA mapping API.
    In addition, SVA-related bits for kernel DMA are removed. As a result,
    DSA users shall use DMA mapping API to obtain DMA handles instead of
    using kernel virtual addresses.
    
    Link: https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@nvidia.com/
    Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
    jacobpan authored and intel-lab-lkp committed Dec 7, 2021
  2. iommu/vt-d: Support PASID DMA for in-kernel usage

    Between DMA requests with and without PASID (legacy), DMA mapping APIs
    are used indiscriminately on a device. Therefore, we should always match
    the addressing mode of the legacy DMA when enabling kernel PASID.
    
    This patch adds support for VT-d driver where the kernel PASID is
    programmed to match RIDPASID. i.e. if the device is in pass-through, the
    kernel PASID is also in pass-through; if the device is in IOVA mode, the
    kernel PASID will also be using the same IOVA space.
    
    There is additional handling for IOTLB and device TLB flush w.r.t. the
    kernel PASID. On VT-d, PASID-selective IOTLB flush is also on a
    per-domain basis; whereas device TLB flush is per device. Note that
    IOTLBs are used even when devices are in pass-through mode. ATS is
    enabled device-wide, but the device drivers can choose to manage ATS at
    per PASID level whenever control is available.
    
    Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
    jacobpan authored and intel-lab-lkp committed Dec 7, 2021
  3. iommu: Add PASID support for DMA mapping API users

    DMA mapping API is the de facto standard for in-kernel DMA. It operates
    on a per device/RID basis which is not PASID-aware.
    
    Some modern devices such as Intel Data Streaming Accelerator, PASID is
    required for certain work submissions. To allow such devices use DMA
    mapping API, we need the following functionalities:
    1. Provide device a way to retrieve a kernel PASID for work submission
    2. Enable the kernel PASID on the IOMMU
    3. Establish address space for the kernel PASID that matches the default
       domain. Let it be IOVA or physical address in case of pass-through.
    
    This patch introduces a driver facing API that enables DMA API
    PASID usage. Once enabled, device drivers can continue to use DMA APIs as
    is. There is no difference in dma_handle between without PASID and with
    PASID.
    
    To manage device IOTLB flush at PASID level, this patch also introduces
    a .pasid field to struct device. This also serves as a flag indicating
    whether PASID is being used for the device to perform in-kernel DMA.
    
    Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
    jacobpan authored and intel-lab-lkp committed Dec 7, 2021
  4. ioasid: Reserve a global PASID for in-kernel DMA

    In-kernel DMA is managed by DMA mapping APIs, which supports per device
    addressing mode for legacy DMA requests. With the introduction of
    Process Address Space ID (PASID), device DMA can now target at a finer
    granularity per PASID + Requester ID (RID).
    
    However, for in-kernel DMA there is no need to differentiate between
    legacy DMA and DMA with PASID in terms of mapping. DMA address mapping
    for RID+PASID can be made identical to the RID. The benefit for the
    drivers is the continuation of DMA mapping APIs without change.
    
    This patch reserves a special IOASID for devices that perform in-kernel
    DMA requests with PASID. This global IOASID is excluded from the
    IOASID allocator. The analogous case is PASID #0, a special PASID
    reserved for DMA requests without PASID (legacy). We could have different
    kernel PASIDs for individual devices, but for simplicity reasons, a
    globally reserved one will fit the bill.
    
    Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
    jacobpan authored and intel-lab-lkp committed Dec 7, 2021

Commits on Dec 6, 2021

  1. iommu/virtio: Support identity-mapped domains

    Support identity domains for devices that do not offer the
    VIRTIO_IOMMU_F_BYPASS_CONFIG feature, by creating 1:1 mappings between
    the virtual and physical address space. Identity domains created this
    way still perform noticeably better than DMA domains, because they don't
    have the overhead of setting up and tearing down mappings at runtime.
    The performance difference between this and bypass is minimal in
    comparison.
    
    It does not matter that the physical addresses in the identity mappings
    do not all correspond to memory. By enabling passthrough we are trusting
    the device driver and the device itself to only perform DMA to suitable
    locations. In some cases it may even be desirable to perform DMA to MMIO
    regions.
    
    Reviewed-by: Eric Auger <eric.auger@redhat.com>
    Reviewed-by: Kevin Tian <kevin.tian@intel.com>
    Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
    Link: https://lore.kernel.org/r/20211201173323.1045819-6-jean-philippe@linaro.org
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    jpbrucker authored and joergroedel committed Dec 6, 2021
  2. iommu/virtio: Pass end address to viommu_add_mapping()

    To support identity mappings, the virtio-iommu driver must be able to
    represent full 64-bit ranges internally. Pass (start, end) instead of
    (start, size) to viommu_add/del_mapping().
    
    Clean comments. The one about the returned size was never true: when
    sweeping the whole address space the returned size will most certainly
    be smaller than 2^64.
    
    Reviewed-by: Eric Auger <eric.auger@redhat.com>
    Reviewed-by: Kevin Tian <kevin.tian@intel.com>
    Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
    Link: https://lore.kernel.org/r/20211201173323.1045819-5-jean-philippe@linaro.org
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    jpbrucker authored and joergroedel committed Dec 6, 2021
  3. iommu/virtio: Sort reserved regions

    To ease identity mapping support, keep the list of reserved regions
    sorted.
    
    Reviewed-by: Eric Auger <eric.auger@redhat.com>
    Reviewed-by: Kevin Tian <kevin.tian@intel.com>
    Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
    Link: https://lore.kernel.org/r/20211201173323.1045819-4-jean-philippe@linaro.org
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    jpbrucker authored and joergroedel committed Dec 6, 2021
  4. iommu/virtio: Support bypass domains

    The VIRTIO_IOMMU_F_BYPASS_CONFIG feature adds a new flag to the ATTACH
    request, that creates a bypass domain. Use it to enable identity
    domains.
    
    When VIRTIO_IOMMU_F_BYPASS_CONFIG is not supported by the device, we
    currently fail attaching to an identity domain. Future patches will
    instead create identity mappings in this case.
    
    Reviewed-by: Kevin Tian <kevin.tian@intel.com>
    Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
    Reviewed-by: Eric Auger <eric.auger@redhat.com>
    Link: https://lore.kernel.org/r/20211201173323.1045819-3-jean-philippe@linaro.org
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    jpbrucker authored and joergroedel committed Dec 6, 2021
  5. iommu/virtio: Add definitions for VIRTIO_IOMMU_F_BYPASS_CONFIG

    Add definitions for the VIRTIO_IOMMU_F_BYPASS_CONFIG, which supersedes
    VIRTIO_IOMMU_F_BYPASS.
    
    Reviewed-by: Kevin Tian <kevin.tian@intel.com>
    Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
    Reviewed-by: Eric Auger <eric.auger@redhat.com>
    Link: https://lore.kernel.org/r/20211201173323.1045819-2-jean-philippe@linaro.org
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    jpbrucker authored and joergroedel committed Dec 6, 2021
  6. iommu/io-pgtable-arm: Fix table descriptor paddr formatting

    Table descriptors were being installed without properly formatting the
    address using paddr_to_iopte, which does not match up with the
    iopte_deref in __arm_lpae_map. This is incorrect for the LPAE pte
    format, as it does not handle the high bits properly.
    
    This was found on Apple T6000 DARTs, which require a new pte format
    (different shift); adding support for that to
    paddr_to_iopte/iopte_to_paddr caused it to break badly, as even <48-bit
    addresses would end up incorrect in that case.
    
    Fixes: 6c89928 ("iommu/io-pgtable-arm: Support 52-bit physical address")
    Acked-by: Robin Murphy <robin.murphy@arm.com>
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Link: https://lore.kernel.org/r/20211120031343.88034-1-marcan@marcan.st
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    marcan authored and joergroedel committed Dec 6, 2021
  7. iommu: Extend mutex lock scope in iommu_probe_device()

    Extend the scope of holding group->mutex so that it can cover the default
    domain check/attachment and direct mappings of reserved regions.
    
    Cc: Ashish Mhetre <amhetre@nvidia.com>
    Fixes: 211ff31 ("iommu: Fix race condition during default domain allocation")
    Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
    Link: https://lore.kernel.org/r/20211108061349.1985579-1-baolu.lu@linux.intel.com
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    LuBaolu authored and joergroedel committed Dec 6, 2021
  8. iommu: Log iova range in map/unmap trace events

    In case of an iommu page fault, the faulting iova is logged
    in trace_io_page_fault. It is therefore convenient to log
    the iova range in mapping/unmapping trace events so that it
    is easier to see if the faulting iova was recently in any of
    those ranges.
    
    Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
    Link: https://lore.kernel.org/r/20211104071620.27290-1-dafna.hirschfeld@collabora.com
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    Dafna Hirschfeld authored and joergroedel committed Dec 6, 2021

Commits on Dec 5, 2021

  1. Linux 5.16-rc4

    torvalds committed Dec 5, 2021
  2. Merge tag 'for-5.16/parisc-6' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/deller/parisc-linux
    
    Pull parisc fixes from Helge Deller:
     "Some bug and warning fixes:
    
       - Fix "make install" to use debians "installkernel" script which is
         now in /usr/sbin
    
       - Fix the bindeb-pkg make target by giving the correct KBUILD_IMAGE
         file name
    
       - Fix compiler warnings by annotating parisc agp init functions with
         __init
    
       - Fix timekeeping on SMP machines with dual-core CPUs
    
       - Enable some more config options in the 64-bit defconfig"
    
    * tag 'for-5.16/parisc-6' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
      parisc: Mark cr16 CPU clocksource unstable on all SMP machines
      parisc: Fix "make install" on newer debian releases
      parisc/agp: Annotate parisc agp init functions with __init
      parisc: Enable sata sil, audit and usb support on 64-bit defconfig
      parisc: Fix KBUILD_IMAGE for self-extracting kernel
    torvalds committed Dec 5, 2021
  3. Merge tag 'usb-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB fixes from Greg KH:
     "Here are some small USB fixes for a few reported issues. Included in
      here are:
    
       - xhci fix for a _much_ reported regression. I don't think there's a
         community distro that has not reported this problem yet :(
    
       - new USB quirk addition
    
       - cdns3 minor fixes
    
       - typec regression fix.
    
      All of these have been in linux-next with no reported problems, and
      the xhci fix has been reported by many to resolve their reported
      problem"
    
    * tag 'usb-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
      usb: cdnsp: Fix a NULL pointer dereference in cdnsp_endpoint_init()
      usb: cdns3: gadget: fix new urb never complete if ep cancel previous requests
      usb: typec: tcpm: Wait in SNK_DEBOUNCED until disconnect
      USB: NO_LPM quirk Lenovo Powered USB-C Travel Hub
      xhci: Fix commad ring abort, write all 64 bits to CRCR register.
    torvalds committed Dec 5, 2021
  4. Merge tag 'tty-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/tty
    
    Pull tty/serial fixes from Greg KH:
     "Here are some small TTY and Serial driver fixes for 5.16-rc4 to
      resolve a number of reported problems.
    
      They include:
    
       - liteuart serial driver fixes
    
       - 8250_pci serial driver fixes for pericom devices
    
       - 8250 RTS line control fix while in RS-485 mode
    
       - tegra serial driver fix
    
       - msm_serial driver fix
    
       - pl011 serial driver new id
    
       - fsl_lpuart revert of broken change
    
       - 8250_bcm7271 serial driver fix
    
       - MAINTAINERS file update for rpmsg tty driver that came in 5.16-rc1
    
       - vgacon fix for reported problem
    
      All of these, except for the 8250_bcm7271 fix have been in linux-next
      with no reported problem. The 8250_bcm7271 fix was added to the tree
      on Friday so no chance to be linux-next yet. But it should be fine as
      the affected developers submitted it"
    
    * tag 'tty-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
      serial: 8250_bcm7271: UART errors after resuming from S2
      serial: 8250_pci: rewrite pericom_do_set_divisor()
      serial: 8250_pci: Fix ACCES entries in pci_serial_quirks array
      serial: 8250: Fix RTS modem control while in rs485 mode
      Revert "tty: serial: fsl_lpuart: drop earlycon entry for i.MX8QXP"
      serial: tegra: Change lower tolerance baud rate limit for tegra20 and tegra30
      serial: liteuart: relax compile-test dependencies
      serial: liteuart: fix minor-number leak on probe errors
      serial: liteuart: fix use-after-free and memleak on unbind
      serial: liteuart: Fix NULL pointer dereference in ->remove()
      vgacon: Propagate console boot parameters before calling `vc_resize'
      tty: serial: msm_serial: Deactivate RX DMA for polling support
      serial: pl011: Add ACPI SBSA UART match id
      serial: core: fix transmit-buffer reset and memleak
      MAINTAINERS: Add rpmsg tty driver maintainer
    torvalds committed Dec 5, 2021
  5. Merge tag 'timers_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/s…

    …cm/linux/kernel/git/tip/tip
    
    Pull timer fix from Borislav Petkov:
    
     - Prevent a tick storm when a dedicated timekeeper CPU in nohz_full
       mode runs for prolonged periods with interrupts disabled and ends up
       programming the next tick in the past, leading to that storm
    
    * tag 'timers_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      timers/nohz: Last resort update jiffies on nohz_full IRQ entry
    torvalds committed Dec 5, 2021
  6. Merge tag 'sched_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/sc…

    …m/linux/kernel/git/tip/tip
    
    Pull scheduler fixes from Borislav Petkov:
    
     - Properly init uclamp_flags of a runqueue, on first enqueuing
    
     - Fix preempt= callback return values
    
     - Correct utime/stime resource usage reporting on nohz_full to return
       the proper times instead of shorter ones
    
    * tag 'sched_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      sched/uclamp: Fix rq->uclamp_max not set on first enqueue
      preempt/dynamic: Fix setup_preempt_mode() return value
      sched/cputime: Fix getrusage(RUSAGE_THREAD) with nohz_full
    torvalds committed Dec 5, 2021
  7. Merge tag 'x86_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull x86 fixes from Borislav Petkov:
    
     - Fix a couple of SWAPGS fencing issues in the x86 entry code
    
     - Use the proper operand types in __{get,put}_user() to prevent
       truncation in SEV-ES string io
    
     - Make sure the kernel mappings are present in trampoline_pgd in order
       to prevent any potential accesses to unmapped memory after switching
       to it
    
     - Fix a trivial list corruption in objtool's pv_ops validation
    
     - Disable the clocksource watchdog for TSC on platforms which claim
       that the TSC is constant, doesn't stop in sleep states, CPU has TSC
       adjust and the number of sockets of the platform are max 2, to
       prevent erroneous markings of the TSC as unstable.
    
     - Make sure TSC adjust is always checked not only when going idle
    
     - Prevent a stack leak by initializing struct _fpx_sw_bytes properly in
       the FPU code
    
     - Fix INTEL_FAM6_RAPTORLAKE define naming to adhere to the convention
    
    * tag 'x86_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/xen: Add xenpv_restore_regs_and_return_to_usermode()
      x86/entry: Use the correct fence macro after swapgs in kernel CR3
      x86/entry: Add a fence for kernel entry SWAPGS in paranoid_entry()
      x86/sev: Fix SEV-ES INS/OUTS instructions for word, dword, and qword
      x86/64/mm: Map all kernel memory into trampoline_pgd
      objtool: Fix pv_ops noinstr validation
      x86/tsc: Disable clocksource watchdog for TSC on qualified platorms
      x86/tsc: Add a timer to make sure TSC_adjust is always checked
      x86/fpu/signal: Initialize sw_bytes in save_xstate_epilog()
      x86/cpu: Drop spurious underscore from RAPTOR_LAKE #define
    torvalds committed Dec 5, 2021
  8. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull more kvm fixes from Paolo Bonzini:
    
     - Static analysis fix
    
     - New SEV-ES protocol for communicating invalid VMGEXIT requests
    
     - Ensure APICv is considered inactive if there is no APIC
    
     - Fix reserved bits for AMD PerfEvtSeln register
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: SVM: Do not terminate SEV-ES guests on GHCB validation failure
      KVM: SEV: Fall back to vmalloc for SEV-ES scratch area if necessary
      KVM: SEV: Return appropriate error codes if SEV-ES scratch setup fails
      KVM: x86/mmu: Retry page fault if root is invalidated by memslot update
      KVM: VMX: Set failure code in prepare_vmcs02()
      KVM: ensure APICv is considered inactive if there is no APIC
      KVM: x86/pmu: Fix reserved bits for AMD PerfEvtSeln register
    torvalds committed Dec 5, 2021
  9. KVM: SVM: Do not terminate SEV-ES guests on GHCB validation failure

    Currently, an SEV-ES guest is terminated if the validation of the VMGEXIT
    exit code or exit parameters fails.
    
    The VMGEXIT instruction can be issued from userspace, even though
    userspace (likely) can't update the GHCB. To prevent userspace from being
    able to kill the guest, return an error through the GHCB when validation
    fails rather than terminating the guest. For cases where the GHCB can't be
    updated (e.g. the GHCB can't be mapped, etc.), just return back to the
    guest.
    
    The new error codes are documented in the lasest update to the GHCB
    specification.
    
    Fixes: 291bd20 ("KVM: SVM: Add initial support for a VMGEXIT VMEXIT")
    Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
    Message-Id: <b57280b5562893e2616257ac9c2d4525a9aeeb42.1638471124.git.thomas.lendacky@amd.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    tlendacky authored and bonzini committed Dec 5, 2021
  10. KVM: SEV: Fall back to vmalloc for SEV-ES scratch area if necessary

    Use kvzalloc() to allocate KVM's buffer for SEV-ES's GHCB scratch area so
    that KVM falls back to __vmalloc() if physically contiguous memory isn't
    available.  The buffer is purely a KVM software construct, i.e. there's
    no need for it to be physically contiguous.
    
    Cc: Tom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    Message-Id: <20211109222350.2266045-3-seanjc@google.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    sean-jc authored and bonzini committed Dec 5, 2021
  11. KVM: SEV: Return appropriate error codes if SEV-ES scratch setup fails

    Return appropriate error codes if setting up the GHCB scratch area for an
    SEV-ES guest fails.  In particular, returning -EINVAL instead of -ENOMEM
    when allocating the kernel buffer could be confusing as userspace would
    likely suspect a guest issue.
    
    Fixes: 8f423a8 ("KVM: SVM: Support MMIO for an SEV-ES guest")
    Cc: Tom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: Sean Christopherson <seanjc@google.com>
    Message-Id: <20211109222350.2266045-2-seanjc@google.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    sean-jc authored and bonzini committed Dec 5, 2021
  12. Merge tag 'xfs-5.16-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/x…

    …fs-linux
    
    Pull xfs fix from Darrick Wong:
     "Remove an unnecessary (and backwards) rename flags check that
      duplicates a VFS level check"
    
    * tag 'xfs-5.16-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
      xfs: remove incorrect ASSERT in xfs_rename
    torvalds committed Dec 5, 2021

Commits on Dec 4, 2021

  1. Merge tag '5.16-rc3-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6

    Pull cifs fixes from Steve French:
     "Three SMB3 multichannel/fscache fixes and a DFS fix.
    
      In testing multichannel reconnect scenarios recently various problems
      with the cifs.ko implementation of fscache were found (e.g. incorrect
      initialization of fscache cookies in some cases)"
    
    * tag '5.16-rc3-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
      cifs: avoid use of dstaddr as key for fscache client cookie
      cifs: add server conn_id to fscache client cookie
      cifs: wait for tcon resource_id before getting fscache super
      cifs: fix missed refcounting of ipc tcon
    torvalds committed Dec 4, 2021
  2. parisc: Mark cr16 CPU clocksource unstable on all SMP machines

    In commit c8c3735 ("parisc: Enhance detection of synchronous cr16
    clocksources") I assumed that CPUs on the same physical core are syncronous.
    While booting up the kernel on two different C8000 machines, one with a
    dual-core PA8800 and one with a dual-core PA8900 CPU, this turned out to be
    wrong. The symptom was that I saw a jump in the internal clocks printed to the
    syslog and strange overall behaviour.  On machines which have 4 cores (2
    dual-cores) the problem isn't visible, because the current logic already marked
    the cr16 clocksource unstable in this case.
    
    This patch now marks the cr16 interval timers unstable if we have more than one
    CPU in the system, and it fixes this issue.
    
    Fixes: c8c3735 ("parisc: Enhance detection of synchronous cr16 clocksources")
    Signed-off-by: Helge Deller <deller@gmx.de>
    Cc: <stable@vger.kernel.org> # v5.15+
    hdeller committed Dec 4, 2021
  3. parisc: Fix "make install" on newer debian releases

    On newer debian releases the debian-provided "installkernel" script is
    installed in /usr/sbin. Fix the kernel install.sh script to look for the
    script in this directory as well.
    
    Signed-off-by: Helge Deller <deller@gmx.de>
    Cc: <stable@vger.kernel.org> # v3.13+
    hdeller committed Dec 4, 2021
  4. Merge tag 'block-5.16-2021-12-03' of git://git.kernel.dk/linux-block

    Pull block fix from Jens Axboe:
     "A single fix for repeated printk spam from loop"
    
    * tag 'block-5.16-2021-12-03' of git://git.kernel.dk/linux-block:
      loop: Use pr_warn_once() for loop_control_remove() warning
    torvalds committed Dec 4, 2021
  5. Merge tag 'io_uring-5.16-2021-12-03' of git://git.kernel.dk/linux-block

    Pull io_uring fix from Jens Axboe:
     "Just a single fix preventing repeated retries of task_work based io-wq
      thread creation, fixing a regression from when io-wq was made more (a
      bit too much) resilient against signals"
    
    * tag 'io_uring-5.16-2021-12-03' of git://git.kernel.dk/linux-block:
      io-wq: don't retry task_work creation failure on fatal conditions
    torvalds committed Dec 4, 2021
  6. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Two patches, both in drivers.
    
      One is a fix to FC recovery (lpfc) and the other is an enhancement to
      support the Intel Alder Motherboard with the UFS driver which comes
      under the -rc exception process for hardware enabling"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: ufs: ufs-pci: Add support for Intel ADL
      scsi: lpfc: Fix non-recovery of remote ports following an unsolicited LOGO
    torvalds committed Dec 4, 2021
  7. Merge tag 'gfs2-v5.16-rc4-fixes' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gfs2/linux-gfs2
    
    Pull gfs2 fixes from Andreas Gruenbacher:
    
     - Since commit 486408d ("gfs2: Cancel remote delete work
       asynchronously"), inode create and lookup-by-number can overlap more
       easily and we can end up with temporary duplicate inodes. Fix the
       code to prevent that.
    
     - Fix a BUG demoting weak glock holders from a remote node.
    
    * tag 'gfs2-v5.16-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
      gfs2: gfs2_create_inode rework
      gfs2: gfs2_inode_lookup rework
      gfs2: gfs2_inode_lookup cleanup
      gfs2: Fix remote demote of weak glock holders
    torvalds committed Dec 4, 2021
  8. sched/uclamp: Fix rq->uclamp_max not set on first enqueue

    Commit d81ae8a ("sched/uclamp: Fix initialization of struct
    uclamp_rq") introduced a bug where uclamp_max of the rq is not reset to
    match the woken up task's uclamp_max when the rq is idle.
    
    The code was relying on rq->uclamp_max initialized to zero, so on first
    enqueue
    
    	static inline void uclamp_rq_inc_id(struct rq *rq, struct task_struct *p,
    					    enum uclamp_id clamp_id)
    	{
    		...
    
    		if (uc_se->value > READ_ONCE(uc_rq->value))
    			WRITE_ONCE(uc_rq->value, uc_se->value);
    	}
    
    was actually resetting it. But since commit d81ae8a changed the
    default to 1024, this no longer works. And since rq->uclamp_flags is
    also initialized to 0, neither above code path nor uclamp_idle_reset()
    update the rq->uclamp_max on first wake up from idle.
    
    This is only visible from first wake up(s) until the first dequeue to
    idle after enabling the static key. And it only matters if the
    uclamp_max of this task is < 1024 since only then its uclamp_max will be
    effectively ignored.
    
    Fix it by properly initializing rq->uclamp_flags = UCLAMP_FLAG_IDLE to
    ensure uclamp_idle_reset() is called which then will update the rq
    uclamp_max value as expected.
    
    Fixes: d81ae8a ("sched/uclamp: Fix initialization of struct uclamp_rq")
    Signed-off-by: Qais Yousef <qais.yousef@arm.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Reviewed-by: Valentin Schneider <Valentin.Schneider@arm.com>
    Tested-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
    Link: https://lkml.kernel.org/r/20211202112033.1705279-1-qais.yousef@arm.com
    qais-yousef authored and Peter Zijlstra committed Dec 4, 2021
  9. preempt/dynamic: Fix setup_preempt_mode() return value

    __setup() callbacks expect 1 for success and 0 for failure. Correct the
    usage here to reflect that.
    
    Fixes: 826bfeb ("preempt/dynamic: Support dynamic preempt with preempt= boot option")
    Reported-by: Mark Rutland <mark.rutland@arm.com>
    Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
    Link: https://lkml.kernel.org/r/20211203233203.133581-1-ahalaney@redhat.com
    ahalaney authored and Peter Zijlstra committed Dec 4, 2021

Commits on Dec 3, 2021

  1. Merge tag 'vfio-v5.16-rc4' of git://github.com/awilliam/linux-vfio

    Pull VFIO fixes from Alex Williamson:
    
     - Fix OpRegion pointer arithmetic (Zhenyu Wang)
    
     - Fix comment format triggering kernel-doc warnings (Randy Dunlap)
    
    * tag 'vfio-v5.16-rc4' of git://github.com/awilliam/linux-vfio:
      vfio/pci: Fix OpRegion read
      vfio: remove all kernel-doc notation
    torvalds committed Dec 3, 2021
Older