Skip to content
  1. Dec 13, 2021
    • Arnd Bergmann's avatar
      Merge tag 'v5.16-rockchip-dtsfixes1' of... · d823bf89
      Arnd Bergmann authored
      
      Merge tag 'v5.16-rockchip-dtsfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/fixes
      
      Fixes for some board-level issues (regulators, mmc, poweroff, audio)
      
      * tag 'v5.16-rockchip-dtsfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
        arm64: dts: rockchip: fix poweroff on helios64
        arm64: dts: rockchip: fix audio-supply for Rock Pi 4
        arm64: dts: rockchip: fix rk3399-leez-p710 vcc3v3-lan supply
        arm64: dts: rockchip: fix rk3308-roc-cc vcc-sd supply
        arm64: dts: rockchip: remove mmc-hs400-enhanced-strobe from rk3399-khadas-edge
      
      Link: https://lore.kernel.org/r/3072346.MIvVl8DfR5@phil
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      d823bf89
    • Arnd Bergmann's avatar
      Merge tag 'imx-fixes-5.16-2' of... · e3c68ab1
      Arnd Bergmann authored
      
      Merge tag 'imx-fixes-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.16, round 2:
      
      - One fix on imx8m-blk-ctrl driver to get i.MX8MM MIPI reset work
        properly
      - Fix CSI_DATA07__ESAI_TX0 pad name in i.MX7ULL pin function header
      - Remove interconnect property from i.MX8MQ LCDIF device to fix the
        regression that LCDIF driver stops probe, because interconnect
        provider driver (imx-bus) hasn't been fully working.
      - Fix soc-imx driver to register SoC device only on i.MX platform.
      
      * tag 'imx-fixes-5.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        soc: imx: Register SoC device only on i.MX boards
        soc: imx: imx8m-blk-ctrl: Fix imx8mm mipi reset
        ARM: dts: imx6ull-pinfunc: Fix CSI_DATA07__ESAI_TX0 pad name
        arm64: dts: imx8mq: remove interconnect property from lcdif
      
      Link: https://lore.kernel.org/r/20211211015625.GK4216@dragon
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      e3c68ab1
    • Arnd Bergmann's avatar
      Merge tag 'tegra-for-5.16-firmware-fixes' of... · 7ad1a90a
      Arnd Bergmann authored
      
      Merge tag 'tegra-for-5.16-firmware-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into arm/fixes
      
      firmware: Fixes for v5.16-rc5
      
      This contains a single fix for an incorrect usage of sizeof().
      
      * tag 'tegra-for-5.16-firmware-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
        firmware: tegra: Fix error application of sizeof() to pointer
      
      Link: https://lore.kernel.org/r/20211207162115.450554-1-thierry.reding@gmail.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      7ad1a90a
    • Arnd Bergmann's avatar
      Merge tag 'asahi-soc-fixes-5.16' of https://github.com/AsahiLinux/linux into arm/fixes · f6bdc610
      Arnd Bergmann authored
      
      
      Asahi SoC DT/binding fixes for 5.16.
      
      Just some minor DT fixups we found after things got merged.
      
      * tag 'asahi-soc-fixes-5.16' of https://github.com/AsahiLinux/linux:
        arm64: dts: apple: add #interrupt-cells property to pinctrl nodes
        dt-bindings: i2c: apple,i2c: allow multiple compatibles
        arm64: dts: apple: change ethernet0 device type to ethernet
      
      Link: https://lore.kernel.org/r/cc9a1a67-3b2d-ae9f-5733-859111eb78c1@marcan.st
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      f6bdc610
    • Arnd Bergmann's avatar
      Merge tag 'socfpga_fix_for_v5.16_part_2' of... · ddae25ed
      Arnd Bergmann authored
      
      Merge tag 'socfpga_fix_for_v5.16_part_2' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into arm/fixes
      
      SoCFPGA fix for v5.16, part 2
      - Fix QSPI dts entry to include "jedec,spi-nor"
      
      * tag 'socfpga_fix_for_v5.16_part_2' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux:
        ARM: socfpga: dts: fix qspi node compatible
      
      Link: https://lore.kernel.org/r/20211203181007.3138381-1-dinguyen@kernel.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      ddae25ed
    • Arnd Bergmann's avatar
      Merge branch 'v5.16/fixes' of... · b257c5f0
      Arnd Bergmann authored
      
      Merge branch 'v5.16/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux into arm/fixes
      
      * 'v5.16/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux:
        arm64: meson: remove COMMON_CLK
        arm64: meson: fix dts for JetHub D1
      
      Link: https://lore.kernel.org/r/ab9f066f-480b-84b2-248e-953f2f2b5f59@baylibre.com
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      b257c5f0
    • Arnd Bergmann's avatar
      Merge tag 'amdtee-fix-for-v5.16' of... · df0a9b52
      Arnd Bergmann authored
      
      Merge tag 'amdtee-fix-for-v5.16' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
      
      AMD-TEE fix IS_ERR() bug
      
      * tag 'amdtee-fix-for-v5.16' of git://git.linaro.org/people/jens.wiklander/linux-tee:
        tee: amdtee: fix an IS_ERR() vs NULL bug
      
      Link: https://lore.kernel.org/r/20211130070351.GA2308099@jade
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      df0a9b52
    • Arnd Bergmann's avatar
      Merge tag 'imx-fixes-5.16' of... · 708038dc
      Arnd Bergmann authored
      
      Merge tag 'imx-fixes-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.16:
      
      - A series from Vladimir Oltean to update SJA1105 switch RGMII delay for
        a few boards, so that kernel doesn't warn on the legacy bindings.
      - Remove redundant interrupt declaration for gpio-keys on board
        ls1088a-ten64, as this causes an IRQ reclaiming error on kernel v5.15
        and later.
      
      * tag 'imx-fixes-5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        arm64: dts: ten64: remove redundant interrupt declaration for gpio-keys
        arm64: dts: lx2160abluebox3: update RGMII delays for sja1105 switch
        ARM: dts: ls1021a-tsn: update RGMII delays for sja1105 switch
        ARM: dts: imx6qp-prtwd3: update RGMII delays for sja1105 switch
      
      Link: https://lore.kernel.org/r/20211126100716.GF4216@dragon
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      708038dc
    • Arnd Bergmann's avatar
      Merge tag 'reset-fixes-for-v5.16' of git://git.pengutronix.de/pza/linux into arm/fixes · 1e3dbfbb
      Arnd Bergmann authored
      Reset controller fixes for v5.16
      
      Well, just one: revert commit c045ceb5
      
       ("reset: tegra-bpmp: Handle
      errors in BPMP response"), which exposed an issue with the Tegra194 HDA
      controller reset. BPMP response error handling will be reinstated once
      there's a fix for the HDA issue.
      
      * tag 'reset-fixes-for-v5.16' of git://git.pengutronix.de/pza/linux:
        reset: tegra-bpmp: Revert Handle errors in BPMP response
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      1e3dbfbb
  2. Dec 08, 2021
    • Stephan Gerhold's avatar
      soc: imx: Register SoC device only on i.MX boards · 4ebd29f9
      Stephan Gerhold authored
      At the moment, using the ARM32 multi_v7_defconfig always results in two
      SoCs being exposed in sysfs. This is wrong, as far as I'm aware the
      Qualcomm DragonBoard 410c does not actually make use of a i.MX SoC. :)
      
        qcom-db410c:/sys/devices/soc0$ grep . *
        family:Freescale i.MX
        machine:Qualcomm Technologies, Inc. APQ 8016 SBC
        revision:0.0
        serial_number:0000000000000000
        soc_id:Unknown
      
        qcom-db410c:/sys/devices/soc1$ grep . *
        family:Snapdragon
        machine:APQ8016
        ...
      
      This happens because imx_soc_device_init() registers the soc device
      unconditionally, even when running on devices that do not make use of i.MX.
      Arnd already reported this more than a year ago and even suggested a fix
      similar to this commit, but for some reason it was never submitted.
      
      Fix it by checking if the "__mxc_cpu_type" variable was actually
      initialized by earlier platform code. On devices without i.MX it will
      simply stay 0.
      
      Cc: Peng Fan <peng.fan@nxp.com>
      Fixes: d2199b34
      
       ("ARM: imx: use device_initcall for imx_soc_device_init")
      Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/CAK8P3a0hxO1TmK6oOMQ70AHSWJnP_CAq57YMOutrxkSYNjFeuw@mail.gmail.com/
      Signed-off-by: default avatarStephan Gerhold <stephan@gerhold.net>
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      4ebd29f9
  3. Dec 06, 2021
    • Adam Ford's avatar
      soc: imx: imx8m-blk-ctrl: Fix imx8mm mipi reset · 042b6779
      Adam Ford authored
      Most of the blk-ctrl reset bits are found in one register, however
      there are two bits in offset 8 for pulling the MIPI DPHY out of reset
      and one of them needs to be set when IMX8MM_DISPBLK_PD_MIPI_CSI is brought
      out of reset or the MIPI_CSI hangs.
      
      Since MIPI_DSI is impacted, add the additional one for MIPI_DSI too.
      
      Fixes: 926e57c0
      
       ("soc: imx: imx8m-blk-ctrl: add DISP blk-ctrl")
      Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      Reviewed-by: default avatarLucas Stach <l.stach@pengutronix.de>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Tested by: Tim Harvey <tharvey@gateworks.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      042b6779
    • Fabio Estevam's avatar
      ARM: dts: imx6ull-pinfunc: Fix CSI_DATA07__ESAI_TX0 pad name · 737e65c7
      Fabio Estevam authored
      According to the i.MX6ULL Reference Manual, pad CSI_DATA07 may
      have the ESAI_TX0 functionality, not ESAI_T0.
      
      Also, NXP's i.MX Config Tools 10.0 generates dtsi with the
      MX6ULL_PAD_CSI_DATA07__ESAI_TX0 naming, so fix it accordingly.
      
      There are no devicetree users in mainline that use the old name,
      so just remove the old entry.
      
      Fixes: c201369d
      
       ("ARM: dts: imx6ull: add imx6ull support")
      Reported-by: default avatarGeorge Makarov <georgemakarov1@gmail.com>
      Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      737e65c7
    • Martin Kepplinger's avatar
      arm64: dts: imx8mq: remove interconnect property from lcdif · e5e6268f
      Martin Kepplinger authored
      The mxsfb driver handling imx8mq lcdif doesn't yet request the
      interconnect bandwidth that's needed at runtime when the description is
      present in the DT node.
      
      So remove that description and bring it back when it's supported.
      
      Fixes: ad1abc8a
      
       ("arm64: dts: imx8mq: Add interconnect for lcdif")
      Signed-off-by: default avatarMartin Kepplinger <martin.kepplinger@puri.sm>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      e5e6268f
    • Linus Torvalds's avatar
      Linux 5.16-rc4 · 0fcfb00b
      Linus Torvalds authored
      0fcfb00b
    • Linus Torvalds's avatar
      Merge tag 'for-5.16/parisc-6' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 268ba095
      Linus Torvalds authored
      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
      268ba095
    • Linus Torvalds's avatar
      Merge tag 'usb-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 94420704
      Linus Torvalds authored
      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.
      94420704
    • Linus Torvalds's avatar
      Merge tag 'tty-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 51639539
      Linus Torvalds authored
      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
      51639539
    • Linus Torvalds's avatar
      Merge tag 'timers_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7587a4a5
      Linus Torvalds authored
      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
      7587a4a5
    • Linus Torvalds's avatar
      Merge tag 'sched_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1d213767
      Linus Torvalds authored
      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
      1d213767
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.16_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f5d54a42
      Linus Torvalds authored
      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
      f5d54a42
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 90bf8d98
      Linus Torvalds authored
      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
      90bf8d98
  4. Dec 05, 2021
    • Tom Lendacky's avatar
      KVM: SVM: Do not terminate SEV-ES guests on GHCB validation failure · ad5b3532
      Tom Lendacky authored
      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: 291bd20d
      
       ("KVM: SVM: Add initial support for a VMGEXIT VMEXIT")
      Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
      Message-Id: <b57280b5562893e2616257ac9c2d4525a9aeeb42.1638471124.git.thomas.lendacky@amd.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      ad5b3532
    • Sean Christopherson's avatar
      KVM: SEV: Fall back to vmalloc for SEV-ES scratch area if necessary · a655276a
      Sean Christopherson authored
      
      
      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: default avatarSean Christopherson <seanjc@google.com>
      Message-Id: <20211109222350.2266045-3-seanjc@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a655276a
    • Sean Christopherson's avatar
      KVM: SEV: Return appropriate error codes if SEV-ES scratch setup fails · 75236f5f
      Sean Christopherson authored
      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: 8f423a80
      
       ("KVM: SVM: Support MMIO for an SEV-ES guest")
      Cc: Tom Lendacky <thomas.lendacky@amd.com>
      Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
      Message-Id: <20211109222350.2266045-2-seanjc@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      75236f5f
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.16-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 79a72162
      Linus Torvalds authored
      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
      79a72162
    • Linus Torvalds's avatar
      Merge tag '5.16-rc3-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 23b55d67
      Linus Torvalds authored
      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
      23b55d67
    • Helge Deller's avatar
      parisc: Mark cr16 CPU clocksource unstable on all SMP machines · afdb4a5b
      Helge Deller authored
      In commit c8c37359 ("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: c8c37359
      
       ("parisc: Enhance detection of synchronous cr16 clocksources")
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: <stable@vger.kernel.org> # v5.15+
      afdb4a5b
    • Helge Deller's avatar
      parisc: Fix "make install" on newer debian releases · 0f9fee4c
      Helge Deller authored
      
      
      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: default avatarHelge Deller <deller@gmx.de>
      Cc: <stable@vger.kernel.org> # v3.13+
      0f9fee4c
    • Linus Torvalds's avatar
      Merge tag 'block-5.16-2021-12-03' of git://git.kernel.dk/linux-block · bbef3c7a
      Linus Torvalds authored
      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
      bbef3c7a
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.16-2021-12-03' of git://git.kernel.dk/linux-block · 8b9a0228
      Linus Torvalds authored
      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
      8b9a0228
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · e3b8bb45
      Linus Torvalds authored
      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
      e3b8bb45
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v5.16-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 5c623c36
      Linus Torvalds authored
      Pull gfs2 fixes from Andreas Gruenbacher:
      
       - Since commit 486408d6 ("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
      5c623c36
  5. Dec 04, 2021
    • Qais Yousef's avatar
      sched/uclamp: Fix rq->uclamp_max not set on first enqueue · 315c4f88
      Qais Yousef authored
      Commit d81ae8aa ("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 d81ae8aa 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: d81ae8aa
      
       ("sched/uclamp: Fix initialization of struct uclamp_rq")
      Signed-off-by: default avatarQais Yousef <qais.yousef@arm.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Reviewed-by: default avatarValentin Schneider <Valentin.Schneider@arm.com>
      Tested-by: default avatarDietmar Eggemann <dietmar.eggemann@arm.com>
      Link: https://lkml.kernel.org/r/20211202112033.1705279-1-qais.yousef@arm.com
      315c4f88
    • Andrew Halaney's avatar
      preempt/dynamic: Fix setup_preempt_mode() return value · 9ed20baf
      Andrew Halaney authored
      __setup() callbacks expect 1 for success and 0 for failure. Correct the
      usage here to reflect that.
      
      Fixes: 826bfeb3
      
       ("preempt/dynamic: Support dynamic preempt with preempt= boot option")
      Reported-by: default avatarMark Rutland <mark.rutland@arm.com>
      Signed-off-by: default avatarAndrew Halaney <ahalaney@redhat.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Link: https://lkml.kernel.org/r/20211203233203.133581-1-ahalaney@redhat.com
      9ed20baf
    • Linus Torvalds's avatar
      Merge tag 'vfio-v5.16-rc4' of git://github.com/awilliam/linux-vfio · 12119cfa
      Linus Torvalds authored
      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
      12119cfa
    • Linus Torvalds's avatar
      Merge tag 'pm-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 4ec6afd6
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix a CPU hot-add issue in the cpufreq core, fix a comment in
        the cpufreq core code and update its documentation, and disable the
        DTPM (Dynamic Thermal Power Management) code for the time being to
        prevent it from causing issues to appear.
      
        Specifics:
      
         - Disable DTPM for this cycle to prevent it from causing issues to
           appear on otherwise functional systems (Daniel Lezcano)
      
         - Fix cpufreq sysfs interface failure related to physical CPU hot-add
           (Xiongfeng Wang)
      
         - Fix comment in cpufreq core and update its documentation (Tang
           Yizhou)"
      
      * tag 'pm-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        powercap: DTPM: Drop unused local variable from init_dtpm()
        cpufreq: docs: Update core.rst
        cpufreq: Fix a comment in cpufreq_policy_free
        powercap/drivers/dtpm: Disable DTPM at boot time
        cpufreq: Fix get_cpu_device() failure in add_cpu_dev_symlink()
      4ec6afd6
    • Linus Torvalds's avatar
      Merge tag 's390-5.16-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 757f3e6d
      Linus Torvalds authored
      Pull s390 fixes from Heiko Carstens:
      
       - Fix potential overlap of pseudo-MMIO addresses with MIO addresses
      
       - Fix stack unwinder test case inline assembly compile error that
         happens with LLVM's integrated assembler
      
       - Update defconfigs
      
      * tag 's390-5.16-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390: update defconfigs
        s390/pci: move pseudo-MMIO to prevent MIO overlap
        s390/test_unwind: use raw opcode instead of invalid instruction
      757f3e6d
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · a2aeaeab
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "Three arm64 fixes for -rc4.
      
        One of them is just a trivial documentation fix, whereas the other two
        address a warning in the kexec code and a crash in ftrace on systems
        implementing BTI.
      
        The latter patch has a couple of ugly ifdefs which Mark plans to clean
        up separately, but as-is the patch is straightforward for backporting
        to stable kernels.
      
        Summary:
      
         - Add missing BTI landing instructions to the ftrace*_caller
           trampolines
      
         - Fix kexec() WARN when DEBUG_VIRTUAL is enabled
      
         - Fix PAC documentation by removing stale references to compiler
           flags"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: ftrace: add missing BTIs
        arm64: kexec: use __pa_symbol(empty_zero_page)
        arm64: update PAC description for kernel
      a2aeaeab
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · f66062c7
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "I2C has another set of driver bugfixes, mostly for the stm32f7 driver"
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: rk3x: Handle a spurious start completion interrupt flag
        i2c: stm32f7: use proper DMAENGINE API for termination
        i2c: stm32f7: stop dma transfer in case of NACK
        i2c: stm32f7: recover the bus on access timeout
        i2c: stm32f7: flush TX FIFO upon transfer errors
        i2c: cbus-gpio: set atomic transfer callback
      f66062c7
    • Linus Torvalds's avatar
      Merge tag 'libata-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · a44f27e4
      Linus Torvalds authored
      Pull libata fixes from Damien Le Moal:
       "Two sparse warning fixes and a couple of patches to fix an issue with
        sata_fsl driver module removal:
      
         - A couple of patches to avoid sparse warnings in libata-sata and in
           the pata_falcon driver (from Yang and Finn).
      
         - A couple of sata_fsl driver patches fixing IRQ free and proc
           unregister on module removal (from Baokun)"
      
      * tag 'libata-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: replace snprintf in show functions with sysfs_emit
        sata_fsl: fix warning in remove_proc_entry when rmmod sata_fsl
        sata_fsl: fix UAF in sata_fsl_port_stop when rmmod sata_fsl
        pata_falcon: Avoid type warnings from sparse
      a44f27e4