Skip to contentSkip to conversation

Linux 5.4.33

DISCUSSION Greg KH 1 participant 2 messages Apr 17, 2020 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 5.4.33 kernel.

All users of the 5.4 kernel series must upgrade.

The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/sound/hd-audio/index.rst                |    1 
 Documentation/sound/hd-audio/models.rst               |    2 
 Documentation/sound/hd-audio/realtek-pc-beep.rst      |  129 +++++++++
 Makefile                                              |    2 
 arch/arm/boot/dts/dm8148-evm.dts                      |    4 
 arch/arm/boot/dts/dm8148-t410.dts                     |    4 
 arch/arm/boot/dts/dra62x-j5eco-evm.dts                |    4 
 arch/arm/boot/dts/exynos4210-universal_c210.dts       |    4 
 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts             |    4 
 arch/arm64/Makefile                                   |    4 
 arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi          |    3 
 arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi          |    3 
 arch/arm64/boot/dts/ti/k3-am65-main.dtsi              |    2 
 arch/arm64/kernel/armv8_deprecated.c                  |    2 
 arch/mips/cavium-octeon/octeon-irq.c                  |    3 
 arch/mips/mm/tlbex.c                                  |    5 
 arch/powerpc/include/asm/book3s/64/hash-4k.h          |    6 
 arch/powerpc/include/asm/book3s/64/hash-64k.h         |    8 
 arch/powerpc/include/asm/book3s/64/pgtable.h          |    4 
 arch/powerpc/include/asm/book3s/64/radix.h            |    5 
 arch/powerpc/include/asm/drmem.h                      |    4 
 arch/powerpc/include/asm/setjmp.h                     |    6 
 arch/powerpc/kernel/Makefile                          |    3 
 arch/powerpc/kernel/dt_cpu_ftrs.c                     |    1 
 arch/powerpc/kernel/kprobes.c                         |    3 
 arch/powerpc/kernel/paca.c                            |   14 -
 arch/powerpc/kernel/setup.h                           |    6 
 arch/powerpc/kernel/setup_64.c                        |   32 +-
 arch/powerpc/kernel/signal_64.c                       |    4 
 arch/powerpc/mm/kasan/kasan_init_32.c                 |    2 
 arch/powerpc/mm/nohash/tlb_low.S                      |   12 
 arch/powerpc/platforms/pseries/hotplug-memory.c       |    8 
 arch/powerpc/platforms/pseries/lpar.c                 |    2 
 arch/powerpc/sysdev/xive/common.c                     |   16 -
 arch/powerpc/sysdev/xive/native.c                     |    4 
 arch/powerpc/sysdev/xive/spapr.c                      |    4 
 arch/powerpc/sysdev/xive/xive-internal.h              |    7 
 arch/powerpc/xmon/Makefile                            |    3 
 arch/s390/kernel/diag.c                               |    2 
 arch/s390/kvm/vsie.c                                  |    1 
 arch/s390/mm/gmap.c                                   |    6 
 arch/x86/boot/compressed/head_32.S                    |    2 
 arch/x86/boot/compressed/head_64.S                    |    4 
 arch/x86/entry/entry_32.S                             |    1 
 arch/x86/include/asm/kvm_host.h                       |    2 
 arch/x86/include/asm/pgtable.h                        |    7 
 arch/x86/include/asm/pgtable_types.h                  |    2 
 arch/x86/kernel/acpi/boot.c                           |    2 
 arch/x86/kernel/tsc_msr.c                             |  128 ++++++++-
 arch/x86/kvm/svm.c                                    |    4 
 arch/x86/kvm/vmx/nested.c                             |   18 -
 arch/x86/kvm/vmx/ops.h                                |   28 +-
 arch/x86/kvm/vmx/vmenter.S                            |   58 ++++
 arch/x86/kvm/vmx/vmx.c                                |   92 ++-----
 arch/x86/kvm/x86.c                                    |   21 +
 arch/x86/platform/efi/efi.c                           |    2 
 arch/x86/platform/efi/efi_64.c                        |    4 
 block/bfq-cgroup.c                                    |   14 -
 block/bfq-iosched.c                                   |   16 -
 block/blk-ioc.c                                       |    7 
 block/blk-settings.c                                  |    3 
 crypto/rng.c                                          |    8 
 drivers/acpi/acpica/achware.h                         |    2 
 drivers/acpi/acpica/evxfgpe.c                         |   17 -
 drivers/acpi/acpica/hwgpe.c                           |   47 ++-
 drivers/acpi/ec.c                                     |   11 
 drivers/acpi/internal.h                               |    1 
 drivers/acpi/sleep.c                                  |   19 -
 drivers/ata/libata-pmp.c                              |    1 
 drivers/ata/libata-scsi.c                             |    9 
 drivers/base/firmware_loader/fallback.c               |    2 
 drivers/base/power/domain.c                           |    2 
 drivers/base/power/wakeup.c                           |    4 
 drivers/block/null_blk_main.c                         |   10 
 drivers/block/xen-blkfront.c                          |   17 -
 drivers/bus/sunxi-rsb.c                               |    2 
 drivers/char/ipmi/ipmi_msghandler.c                   |    4 
 drivers/char/tpm/eventlog/common.c                    |   12 
 drivers/char/tpm/eventlog/tpm1.c                      |    2 
 drivers/char/tpm/eventlog/tpm2.c                      |    2 
 drivers/char/tpm/tpm-chip.c                           |    4 
 drivers/char/tpm/tpm.h                                |    2 
 drivers/clk/ingenic/jz4770-cgu.c                      |    4 
 drivers/clk/ingenic/tcu.c                             |    2 
 drivers/cpufreq/imx6q-cpufreq.c                       |   12 
 drivers/cpufreq/powernv-cpufreq.c                     |    6 
 drivers/crypto/caam/caamalg_desc.c                    |   30 +-
 drivers/crypto/ccree/cc_buffer_mgr.c                  |   76 ++---
 drivers/crypto/ccree/cc_buffer_mgr.h                  |    1 
 drivers/crypto/mxs-dcp.c                              |   58 ++--
 drivers/firmware/arm_sdei.c                           |   32 +-
 drivers/firmware/efi/efi.c                            |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c            |    5 
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c                 |    2 
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c            |    6 
 drivers/gpu/drm/amd/powerplay/renoir_ppt.h            |    2 
 drivers/gpu/drm/drm_dp_mst_topology.c                 |   19 -
 drivers/gpu/drm/drm_pci.c                             |   23 -
 drivers/gpu/drm/etnaviv/etnaviv_perfmon.c             |   59 ++++
 drivers/gpu/drm/i915/display/intel_ddi.c              |    6 
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c        |    8 
 drivers/gpu/drm/scheduler/sched_main.c                |    2 
 drivers/i2c/busses/i2c-pca-platform.c                 |    2 
 drivers/i2c/busses/i2c-st.c                           |    1 
 drivers/input/keyboard/tm2-touchkey.c                 |   11 
 drivers/input/serio/i8042-x86ia64io.h                 |   11 
 drivers/irqchip/irq-gic-v3-its.c                      |    6 
 drivers/irqchip/irq-versatile-fpga.c                  |   18 +
 drivers/md/dm-clone-metadata.c                        |   44 ++-
 drivers/md/dm-clone-metadata.h                        |    6 
 drivers/md/dm-clone-target.c                          |   90 ++++--
 drivers/md/dm-integrity.c                             |    4 
 drivers/md/dm-verity-fec.c                            |    1 
 drivers/md/dm-writecache.c                            |    6 
 drivers/md/dm-zoned-metadata.c                        |    1 
 drivers/md/md.c                                       |    2 
 drivers/media/i2c/ov5695.c                            |   49 ++-
 drivers/media/i2c/video-i2c.c                         |    2 
 drivers/media/platform/qcom/venus/firmware.c          |   10 
 drivers/media/platform/qcom/venus/hfi_parser.c        |    1 
 drivers/media/platform/ti-vpe/cal.c                   |   29 +-
 drivers/media/rc/keymaps/Makefile                     |    1 
 drivers/media/rc/keymaps/rc-videostrong-kii-pro.c     |   83 ++++++
 drivers/mfd/dln2.c                                    |    9 
 drivers/mmc/host/sdhci-of-esdhc.c                     |   43 +++
 drivers/mmc/host/sdhci.c                              |   41 +--
 drivers/mmc/host/sdhci.h                              |    2 
 drivers/mtd/nand/spi/core.c                           |   17 -
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c        |    3 
 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c     |    5 
 drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c      |   51 ---
 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c      |   26 +-
 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c     |    5 
 drivers/net/ethernet/huawei/hinic/hinic_rx.c          |    3 
 drivers/net/ethernet/huawei/hinic/hinic_tx.c          |    4 
 drivers/net/ethernet/neterion/vxge/vxge-config.h      |    2 
 drivers/net/ethernet/neterion/vxge/vxge-main.h        |   14 -
 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c |    2 
 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c    |   31 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c |   14 -
 drivers/net/wireless/ath/ath9k/main.c                 |    3 
 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c        |   29 +-
 drivers/nvme/host/fc.c                                |   14 -
 drivers/nvme/target/fcloop.c                          |    1 
 drivers/nvme/target/tcp.c                             |    2 
 drivers/pci/controller/dwc/pcie-qcom.c                |    8 
 drivers/pci/endpoint/pci-epc-mem.c                    |   10 
 drivers/pci/hotplug/pciehp_hpc.c                      |   14 -
 drivers/pci/pcie/aspm.c                               |    4 
 drivers/pci/quirks.c                                  |   80 +++++-
 drivers/pci/switch/switchtec.c                        |    2 
 drivers/platform/x86/asus-wmi.c                       |    5 
 drivers/remoteproc/qcom_q6v5_mss.c                    |   54 +++-
 drivers/remoteproc/remoteproc_virtio.c                |    7 
 drivers/s390/scsi/zfcp_erp.c                          |    2 
 drivers/scsi/lpfc/lpfc.h                              |   10 
 drivers/scsi/lpfc/lpfc_crtn.h                         |    8 
 drivers/scsi/lpfc/lpfc_ct.c                           |   48 ++-
 drivers/scsi/lpfc/lpfc_hbadisc.c                      |   67 +++--
 drivers/scsi/lpfc/lpfc_init.c                         |  204 +++++++++++++++
 drivers/scsi/lpfc/lpfc_nvme.c                         |    2 
 drivers/scsi/lpfc/lpfc_scsi.c                         |    4 
 drivers/scsi/lpfc/lpfc_sli.c                          |  164 ++++++++++++
 drivers/scsi/lpfc/lpfc_sli4.h                         |   21 +
 drivers/scsi/mpt3sas/mpt3sas_scsih.c                  |    8 
 drivers/scsi/qla2xxx/qla_nvme.c                       |    1 
 drivers/scsi/ufs/ufshcd.c                             |    3 
 drivers/scsi/ufs/ufshcd.h                             |    6 
 drivers/soc/fsl/dpio/dpio-driver.c                    |    8 
 drivers/spi/spi-fsl-dspi.c                            |   19 -
 drivers/staging/media/allegro-dvt/allegro-core.c      |    5 
 drivers/staging/media/hantro/hantro_h1_jpeg_enc.c     |    9 
 drivers/staging/media/hantro/rk3399_vpu_hw_jpeg_enc.c |    9 
 drivers/staging/media/imx/imx7-media-csi.c            |    4 
 drivers/staging/media/imx/imx7-mipi-csis.c            |    2 
 drivers/staging/wilc1000/wilc_wlan.c                  |    1 
 drivers/usb/dwc3/core.c                               |    5 
 drivers/usb/dwc3/core.h                               |    4 
 drivers/usb/gadget/composite.c                        |    9 
 drivers/usb/gadget/function/f_fs.c                    |    1 
 drivers/usb/host/xhci.c                               |    4 
 drivers/vfio/platform/vfio_platform.c                 |    2 
 fs/afs/rxrpc.c                                        |    3 
 fs/btrfs/async-thread.c                               |    8 
 fs/btrfs/async-thread.h                               |    1 
 fs/btrfs/delayed-inode.c                              |   13 +
 fs/btrfs/disk-io.c                                    |   27 +-
 fs/btrfs/extent_io.c                                  |   35 ++
 fs/btrfs/file.c                                       |   11 
 fs/btrfs/qgroup.c                                     |   11 
 fs/btrfs/relocation.c                                 |   62 ++--
 fs/cifs/file.c                                        |    2 
 fs/cifs/inode.c                                       |   23 -
 fs/debugfs/file.c                                     |   18 +
 fs/erofs/utils.c                                      |    2 
 fs/exec.c                                             |    2 
 fs/ext4/inode.c                                       |    2 
 fs/filesystems.c                                      |    4 
 fs/gfs2/glock.c                                       |    3 
 fs/gfs2/glops.c                                       |   27 ++
 fs/gfs2/log.c                                         |    2 
 fs/gfs2/log.h                                         |    1 
 fs/hfsplus/attributes.c                               |    4 
 fs/io_uring.c                                         |   18 -
 fs/nfs/pagelist.c                                     |   48 +--
 fs/nfs/write.c                                        |    1 
 fs/nfsd/nfsctl.c                                      |    1 
 fs/ocfs2/alloc.c                                      |    4 
 fs/pstore/inode.c                                     |    5 
 fs/pstore/platform.c                                  |    4 
 include/acpi/acpixf.h                                 |    2 
 include/linux/cpu.h                                   |   12 
 include/linux/devfreq_cooling.h                       |    2 
 include/linux/iocontext.h                             |    1 
 include/linux/nvme-fc-driver.h                        |    4 
 include/linux/pci-epc.h                               |    3 
 include/linux/sched.h                                 |    4 
 include/linux/xarray.h                                |    6 
 include/media/rc-map.h                                |    1 
 include/net/af_rxrpc.h                                |    8 
 kernel/bpf/verifier.c                                 |  108 +++++---
 kernel/cpu.c                                          |    4 
 kernel/dma/mapping.c                                  |    2 
 kernel/irq/debugfs.c                                  |   11 
 kernel/irq/irqdomain.c                                |   10 
 kernel/kmod.c                                         |    4 
 kernel/locking/lockdep.c                              |    4 
 kernel/sched/core.c                                   |    1 
 kernel/sched/fair.c                                   |   26 +-
 kernel/sched/sched.h                                  |    8 
 kernel/seccomp.c                                      |    1 
 kernel/signal.c                                       |    2 
 kernel/time/sched_clock.c                             |    9 
 kernel/trace/bpf_trace.c                              |    2 
 kernel/trace/trace_kprobe.c                           |    2 
 lib/test_xarray.c                                     |   37 ++
 lib/xarray.c                                          |    4 
 mm/memcontrol.c                                       |    3 
 net/rxrpc/af_rxrpc.c                                  |    4 
 net/rxrpc/ar-internal.h                               |    4 
 net/rxrpc/call_object.c                               |    3 
 net/rxrpc/conn_client.c                               |   13 -
 net/rxrpc/sendmsg.c                                   |   71 ++++-
 net/wireless/scan.c                                   |    6 
 security/keys/key.c                                   |    2 
 security/keys/keyctl.c                                |    4 
 sound/core/oss/pcm_plugin.c                           |   32 +-
 sound/pci/hda/hda_beep.c                              |    6 
 sound/pci/hda/hda_intel.c                             |   16 +
 sound/pci/hda/patch_realtek.c                         |  233 ++++++++++--------
 sound/pci/ice1712/prodigy_hifi.c                      |    4 
 sound/soc/soc-dapm.c                                  |    8 
 sound/soc/soc-ops.c                                   |    4 
 sound/soc/soc-pcm.c                                   |    6 
 sound/soc/soc-topology.c                              |    2 
 sound/soc/stm/stm32_sai_sub.c                         |    4 
 sound/usb/mixer_maps.c                                |   28 ++
 tools/gpio/Makefile                                   |    2 
 tools/perf/Makefile.config                            |   11 
 tools/testing/radix-tree/Makefile                     |    4 
 tools/testing/radix-tree/iteration_check_2.c          |   87 ++++++
 tools/testing/radix-tree/main.c                       |    1 
 tools/testing/radix-tree/test.h                       |    1 
 tools/testing/selftests/net/reuseport_addr_any.c      |    4 
 tools/testing/selftests/powerpc/mm/.gitignore         |    1 
 tools/testing/selftests/vm/map_hugetlb.c              |   14 -
 tools/testing/selftests/vm/mlock2-tests.c             |  233 ++----------------
 tools/testing/selftests/x86/ptrace_syscall.c          |    8 
 268 files changed, 2960 insertions(+), 1279 deletions(-)

Aaron Liu (1):
drm/amdgpu: unify fw_write_wait for new gfx9 asics

Ahmed S. Darwish (1):
time/sched_clock: Expire timer in hardirq context

Ajay Singh (1):

      staging: wilc1000: avoid double unlocking of 'wilc->hif_cs' mutex

Alain Volmat (1):
i2c: st: fix missing struct parameter description

Alan Maguire (1):
selftests/net: add definition for SOL_DCCP to fix compilation errors for old libc

Alexander Sverdlin (1):
genirq/irqdomain: Check pointer in irq_domain_alloc_irqs_hierarchy()

Alexey Dobriyan (1):
null_blk: fix spurious IO errors after failed past-wp access

Andrei Botila (1):
crypto: caam - update xts sector size for large input length

Andrzej Pietrasiewicz (1):
media: hantro: Read be32 words starting at every fourth byte

Andy Lutomirski (1):
selftests/x86/ptrace_syscall_32: Fix no-vDSO segfault

Andy Shevchenko (1):
mfd: dln2: Fix sanity checking for endpoints

Aneesh Kumar K.V (1):
powerpc/hash64/devmap: Use H_PAGE_THP_HUGE when setting up huge devmap PTE entries

Anssi Hannula (1):
tools: gpio: Fix out-of-tree build regression

Ard Biesheuvel (1):
efi/x86: Ignore the memory attributes table on i386

Arvind Sankar (1):
x86/boot: Use unsigned comparison for addresses

Bart Van Assche (2):
null_blk: Fix the null_add_dev() error path
null_blk: Handle null_add_dev() failures properly

Benoit Parrot (2):
media: ti-vpe: cal: fix disable_irqs to only the intended target
media: ti-vpe: cal: fix a kernel oops when unloading module

Bjorn Andersson (2):
PCI: qcom: Fix the fixup of PCI_VENDOR_ID_QCOM
remoteproc: qcom_q6v5_mss: Don't reassign mpss region on shutdown

Bob Liu (1):
dm zoned: remove duplicate nr_rnd_zones increase in dmz_init_zone()

Bob Peterson (2):
gfs2: Do log_flush in gfs2_ail_empty_gl even if ail list is empty
gfs2: Don't demote a glock until its revokes are written

Boqun Feng (1):
locking/lockdep: Avoid recursion in lockdep_count_{for,back}ward_deps()

Changwei Ge (1):
ocfs2: no need try to truncate file beyond i_size

Chris Packham (1):
i2c: pca-platform: Use platform_irq_get_optional

Chris Wilson (2):
drm/i915/gem: Flush all the reloc_gpu batch
drm: Remove PageReserved manipulation from drm_pci_alloc

Christian Gmeiner (1):
drm/etnaviv: rework perfmon query infrastructure

Christoph Niedermaier (1):
cpufreq: imx6q: Fixes unwanted cpu overclocking on i.MX6ULL

Christophe Leroy (4):
selftests/vm: fix map_hugetlb length used for testing read and write selftests/powerpc: Add tlbie_test in .gitignore powerpc/kprobes: Ignore traps that happened in real mode powerpc/kasan: Fix kasan_remap_early_shadow_ro()

Clement Courbet (1):
powerpc: Make setjmp/longjmp signature standard

Cédric Le Goater (2):
powerpc/xive: Use XIVE_BAD_IRQ instead of zero to catch non configured IPIs powerpc/xive: Fix xmon support on the PowerNV platform

Dan Carpenter (1):
crypto: rng - Fix a refcounting bug in crypto_rng_reset()

Daniel Axtens (1):
powerpc/64: Setup a paca before parsing device tree etc.

Dave Gerlach (1):
arm64: dts: ti: k3-am65: Add clocks to dwc3 nodes

David Hildenbrand (2):
KVM: s390: vsie: Fix region 1 ASCE sanity shadow address checks
KVM: s390: vsie: Fix delivery of addressing exceptions

David Howells (2):
rxrpc: Abstract out the calculation of whether there's Tx space
rxrpc: Fix call interruptibility handling

Dongchun Zhu (1):
media: i2c: ov5695: Fix power on and off sequences

Eric Auger (1):
vfio: platform: Switch to platform_get_irq_optional()

Eric Biggers (2):
fs/filesystems.c: downgrade user-reachable WARN_ONCE() to pr_warn_once()
kmod: make request_module() return an error when autoloading is disabled

Eric W. Biederman (1):
signal: Extend exec_id to 64bits

Faiz Abbas (2):
mmc: sdhci: Convert sdhci_set_timeout_irq() to non-static
mmc: sdhci: Refactor sdhci_set_timeout()

Filipe Manana (2):
Btrfs: fix crash during unmount due to race with delayed inode workers
btrfs: fix missing file extent item for hole after ranged fsync

Fredrik Strupe (1):
arm64: armv8_deprecated: Fix undef_hook mask for thumb setend

Frieder Schrempf (2):
mtd: spinand: Stop using spinand->oobbuf for buffering bad block markers
mtd: spinand: Do not erase the block before writing a bad block marker

Gao Xiang (1):
erofs: correct the remaining shrink objects

Gary Lin (1):
efi/x86: Fix the deletion of variables in mixed mode

Gilad Ben-Yossef (3):
crypto: ccree - protect against empty or NULL scatterlists
crypto: ccree - only try to map auth tag if needed
crypto: ccree - dec auth tag size from cryptlen map

Greg Kroah-Hartman (1):

      Linux 5.4.33

Grigore Popescu (1):
soc: fsl: dpio: register dpio irq handlers after dpio create

Guoqing Jiang (1):
md: check arrays is suspended in mddev_detach before call quiesce operations

Gustavo A. R. Silva (1):
MIPS: OCTEON: irq: Fix potential NULL pointer dereference

Hans de Goede (5):
ALSA: hda/realtek - Add quirk for Lenovo Carbon X1 8th gen x86/tsc_msr: Use named struct initializers x86/tsc_msr: Fix MSR_FSB_FREQ mask for Cherry Trail devices x86/tsc_msr: Make MSR derived TSC frequency more accurate
Input: i8042 - add Acer Aspire 5738z to nomux list

Horia Geantă (1):
crypto: caam/qi2 - fix chacha20 data size error

Huacai Chen (1):
MIPS/tlbex: Fix LDDIR usage in setup_pw() for Loongson-3

Hui Wang (1):
ALSA: hda/realtek - a fake key event is triggered by running shutup

Ilan Peer (2):
iwlwifi: mvm: Fix rate scale NSS configuration
cfg80211: Do not warn on same channel at the end of CSA

Imre Deak (1):
drm/i915/icl+: Don't enable DDI IO power on a TypeC port in TBT mode

J. Bruce Fields (1):
nfsd: fsnotify on rmdir under nfsd/clients/

Jakub Kicinski (1):
mm, memcg: do not high throttle allocators based on wraparound

James Morse (1):
firmware: arm_sdei: fix double-lock on hibernate with shared events

James Smart (7):
nvme-fc: Revert "add module to ops template to allow module references"
scsi: lpfc: Fix lpfc_io_buf resource leak in lpfc_get_scsi_buf_s4 error path
scsi: lpfc: Add registration for CPU Offline/Online events
scsi: lpfc: Fix Fabric hostname registration if system hostname changes
scsi: lpfc: Fix configuration of BB credit recovery in service parameters
scsi: lpfc: Fix broken Credit Recovery after driver load
scsi: lpfc: fix inlining of lpfc_sli4_cleanup_poll_list()

Jan Engelhardt (1):
acpi/x86: ignore unspecified bit positions in the ACPI global lock field

Jann Horn (1):
bpf: Fix tnum constraints for 32-bit comparisons

Jens Axboe (2):
io_uring: remove bogus RLIMIT_NOFILE check in file registration
io_uring: honor original task RLIMIT_FSIZE

John Garry (1):
libata: Remove extra scsi_host_put() in ata_scsi_add_hosts()

Josef Bacik (8):
btrfs: remove a BUG_ON() from merge_reloc_roots()
btrfs: restart relocate_tree_blocks properly
btrfs: track reloc roots based on their commit root bytenr
btrfs: reloc: clean dirty subvols if we fail to start a transaction
btrfs: set update the uuid generation as soon as possible
btrfs: drop block from cache on error in relocation
btrfs: unset reloc control if we fail to recover
btrfs: use nofs allocations for running delayed items

Juergen Gross (1):
xen/blkfront: fix memory allocation flags in blkfront_setup_indirect()

Julia Lawall (1):
ASoC: stm32: sai: Add missing cleanup

Junyong Sun (1):
firmware: fix a double abort case with fw_load_sysfs_fallback

Kai-Heng Feng (2):
ALSA: hda/realtek: Enable mute LED on an HP system
libata: Return correct status in sata_pmp_eh_recover_pm() when ATA_DFLAG_DETACH is set

Kishon Vijay Abraham I (1):
PCI: endpoint: Fix for concurrent memory allocation in OB address region

Konstantin Khlebnikov (1):

      block: keep bdi->io_pages in sync with max_sectors_kb for stacked devices

Kristian Klausen (1):
platform/x86: asus-wmi: Support laptops where the first battery is named BATT

Laurent Pinchart (2):
media: imx: imx7_mipi_csis: Power off the source when stopping streaming
media: imx: imx7-media-csi: Fix video field handling

Laurentiu Tudor (1):
powerpc/fsl_booke: Avoid creating duplicate tlb1 entry

Libor Pechacek (1):
powerpc/pseries: Avoid NULL pointer dereference when drmem is unavailable

Logan Gunthorpe (1):
PCI/switchtec: Fix init_completion race condition with poll_wait()

Lukas Wunner (1):
PCI: pciehp: Fix indefinite wait on sysfs requests

Luo bin (5):
hinic: fix a bug of waitting for IO stopped
hinic: fix the bug of clearing event queue
hinic: fix out-of-order excution in arm cpu
hinic: fix wrong para of wait_for_completion_timeout
hinic: fix wrong value of MIN_SKB_LEN

Lyude Paul (1):
drm/dp_mst: Fix clearing payload state on topology disable

Marc Zyngier (1):
irqchip/gic-v4: Provide irq_retrigger to avoid circular locking dependency

Marek Szyprowski (1):
ARM: dts: exynos: Fix polarity of the LCD SPI bus on UniversalC210 board

Mark Brown (1):
arm64: Always force a branch protection mode when the compiler has one

Markus Fuchs (1):
net: stmmac: platform: Fix misleading interrupt error msg

Martin Blumenstingl (1):
thermal: devfreq_cooling: inline all stubs for CONFIG_DEVFREQ_THERMAL=n

Masami Hiramatsu (1):
ftrace/kprobe: Show the maxactive number on kprobe_events

Mathias Nyman (1):
xhci: bail out early if driver can't accress host in resume

Matt Ranostay (1):
media: i2c: video-i2c: fix build errors due to 'imply hwmon'

Matthew Garrett (1):
tpm: Don't make log failures fatal

Matthew Wilcox (Oracle) (2):
XArray: Fix xas_pause for large multi-index entries
xarray: Fix early termination of xas_for_each_marked

Maxime Ripard (2):
arm64: dts: allwinner: h6: Fix PMU compatible
arm64: dts: allwinner: h5: Fix PMU compatible

Michael Ellerman (2):
powerpc/64/tm: Don't let userspace set regs->trap via sigreturn powerpc/64: Prevent stack protection in early boot

Michael Mueller (1):
s390/diag: fix display of diagnose call statistics

Michael Tretter (1):
media: allegro: fix type of gop_length in channel_create message

Michael Wang (1):
sched: Avoid scale real weight down to zero

Michal Hocko (1):
selftests: vm: drop dependencies on page flags from mlock2 tests

Mikulas Patocka (3):
dm writecache: add cond_resched to avoid CPU hangs dm integrity: fix a crash with unusually large tag size dm clone: replace spin_lock_irqsave with spin_lock_irq

Mohammad Rasim (1):
media: rc: add keymap for Videostrong KII Pro

Neeraj Upadhyay (1):
PM: sleep: wakeup: Skip wakeup_source_sysfs_remove() if device is not there

Neil Armstrong (1):
usb: dwc3: core: add support for disabling SS instances in park mode

Nick Reitemeyer (1):
Input: tm2-touchkey - add support for Coreriver TC360 variant

Nikita Shubin (1):
remoteproc: Fix NULL pointer dereference in rproc_virtio_notify

Nikos Tsironis (4):
dm clone: Add overflow check for number of regions
dm clone metadata: Fix return type of dm_clone_nr_of_hydrated_regions() dm clone: Fix handling of partial region discards
dm clone: Add missing casts to prevent overflows and data corruption

Oliver O'Halloran (1):
cpufreq: powernv: Fix use-after-free

Ondrej Jirman (2):
ARM: dts: sun8i-a83t-tbs-a711: HM5065 doesn't like such a high voltage
bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads

Paolo Valente (1):
block, bfq: move forward the getting of an extra ref in bfq_bfqq_move

Paul Cercueil (2):
clk: ingenic/jz4770: Exit with error if CGU init failed
clk: ingenic/TCU: Fix round_rate returning error

Peng Fan (1):
cpufreq: imx6q: fix error handling

Prike Liang (1):
drm/amdgpu: fix gfx hang during suspend with video playback (v2)

Qian Cai (1):

      ext4: fix a data race at inode->i_blocks

Qu Wenruo (2):
btrfs: qgroup: ensure qgroup_rescan_running is only set when the worker is at least queued
btrfs: Don't submit any btree write bio if the fs has errors

Rafael J. Wysocki (3):
ACPI: EC: Do not clear boot_ec_is_ecdt in acpi_ec_add()
ACPICA: Allow acpi_any_gpe_status_set() to skip one GPE
ACPI: PM: s2idle: Refine active GPEs check

Raju Rangoju (1):
cxgb4/ptp: pass the sign of offset delta in FW CMD

Remi Pommarel (1):
ath9k: Handle txpower changes even when TPC is disabled

Robbie Ko (1):
btrfs: fix missing semaphore unlock in btrfs_sync_file

Rosioru Dragos (1):
crypto: mxs-dcp - fix scatterlist linearization for hash

Sagi Grimberg (1):
nvmet-tcp: fix maxh2cdata icresp parameter

Sahitya Tummala (1):
block: Fix use-after-free issue accessing struct io_cq

Sam Lunt (1):
perf tools: Support Python 3.8+ in Makefile

Sasha Levin (1):
Revert "drm/dp_mst: Remove VCPI while disabling topology mgr"

Scott Wood (1):
sched/core: Remove duplicate assignment in sched_tick_remote()

Sean Christopherson (5):
KVM: nVMX: Properly handle userspace interrupt window request
KVM: x86: Allocate new rmap and large page tracking when moving memslot
KVM: VMX: Always VMCLEAR in-use VMCSes during crash with kexec support
KVM: x86: Gracefully handle __vmalloc() failure during VM allocation
KVM: VMX: Add a trampoline to fix VMREAD error handling

Sean V Kelley (1):
PCI: Add boot interrupt quirk mechanism for Xeon chipsets

Shetty, Harshini X (EXT-Sony Mobile) (1):
dm verity fec: fix memory leak in verity_fec_dtr

Sibi Sankar (1):
remoteproc: qcom_q6v5_mss: Reload the mba region on coredump

Simon Gander (1):
hfsplus: fix crash and filesystem corruption when deleting files

Sreekanth Reddy (1):
scsi: mpt3sas: Fix kernel panic observed on soft HBA unplug

Sriharsha Allenki (1):
usb: gadget: f_fs: Fix use after free issue as part of queue failure

Stanimir Varbanov (1):
media: venus: firmware: Ignore secure call error on first resume

Stanley Chu (1):
scsi: ufs: fix Auto-Hibern8 error detection

Steffen Maier (1):
scsi: zfcp: fix missing erp_lock in port recovery trigger for point-to-point

Stephan Gerhold (1):
media: venus: hfi_parser: Ignore HEVC encoding for V1

Steve French (1):
smb3: fix performance regression with setting mtime

Subash Abhinov Kasiviswanathan (1):
net: qualcomm: rmnet: Allow configuration updates to existing devices

Sungbo Eo (2):
irqchip/versatile-fpga: Handle chained IRQs properly irqchip/versatile-fpga: Apply clear-mask earlier

Sven Schnelle (1):
seccomp: Add missing compat_ioctl for notify

Taehee Yoo (1):
debugfs: Check module state before warning in {full/open}_proxy_open()

Takashi Iwai (6):
ALSA: usb-audio: Add mixer workaround for TRX40 and co
ALSA: hda: Add driver blacklist
ALSA: hda: Fix potential access overflow in beep helper
ALSA: ice1724: Fix invalid access for enumerated ctl items
ALSA: pcm: oss: Fix regression by buffer overflow fix
ALSA: hda/realtek - Add quirk for MSI GL63

Thinh Nguyen (1):
usb: gadget: composite: Inform controller driver of self-powered

Thomas Gleixner (3):
cpu/hotplug: Ignore pm_wakeup_pending() for disable_nonboot_cpus() genirq/debugfs: Add missing sanity checks to interrupt injection x86/entry/32: Add missing ASM_CLAC to general_protection entry

Thomas Hebb (3):
ALSA: doc: Document PC Beep Hidden Register on Realtek ALC256
ALSA: hda/realtek - Set principled PC Beep configuration for ALC256
ALSA: hda/realtek - Remove now-unnecessary XPS 13 headphone noise fixups

Thomas Hellstrom (2):
x86: Don't let pgprot_modify() change the page encryption bit
dma-mapping: Fix dma_pgprot() for unencrypted coherent pages

Tom Lendacky (1):
efi/x86: Add TPM related EFI tables to unencrypted mapping checks

Tony Lindgren (1):
ARM: dts: Fix dm814x Ethernet by changing to use rgmii-id mode

Trond Myklebust (2):
NFS: Fix use-after-free issues in nfs_pageio_add_request()
NFS: Fix a page leak in nfs_destroy_unlinked_subrequests()

Ulf Hansson (1):
PM / Domains: Allow no domain-idle-states DT property in genpd when parsing

Vasily Averin (3):
tpm: tpm1_bios_measurements_next should increase position index
tpm: tpm2_bios_measurements_next should increase position index
pstore: pstore_ftrace_seq_next should increase position index

Vincent Guittot (1):
sched/fair: Fix enqueue_task_fair warning

Vitaly Kuznetsov (1):
KVM: VMX: fix crash cleanup when KVM wasn't used

Vladimir Oltean (1):
spi: spi-fsl-dspi: Replace interruptible wait queue with a simple completion

Wen Yang (1):
ipmi: fix hung processes in __get_guid()

Xu Wang (1):
qlcnic: Fix bad kzalloc null test

Yang Xu (1):
KEYS: reaching the keys quotas correctly

Yangbo Lu (1):
mmc: sdhci-of-esdhc: fix esdhc_reset() for different controller versions

Yicong Yang (1):
PCI/ASPM: Clear the correct bits when enabling L1 substates

Yilu Lin (1):
CIFS: Fix bug which the return value by asynchronous read is error

Yintian Tao (1):
drm/scheduler: fix rare NULL ptr race

Yonghong Song (1):
bpf: Fix deadlock with rq_lock in bpf_send_signal()

YueHaibing (1):
powerpc/pseries: Drop pointless static qualifier in vpa_debugfs_init()

Yuxian Dai (1):
drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK

Zheng Wei (1):
net: vxge: fix wrong __VA_ARGS__ usage

Zhiqiang Liu (1):
block, bfq: fix use-after-free in bfq_idle_slice_timer_body

chenqiwu (1):
pstore/platform: fix potential mem leak if pstore_init_fs failed

이경택 (4):
ASoC: fix regwmask
ASoC: dapm: connect virtual mux with default value
ASoC: dpcm: allow start or stop during pause for backend
ASoC: topology: use name_prefix for new kcontrol

author maintainer
#1 lore raw
Documentation/sound/hd-audio/index.rst +1 -0
index f8a72ffffe66..6e12de9fc34e 100644
@@ -8,3 +8,4 @@ HD-Audio
    models
    controls
    dp-mst
+   realtek-pc-beep
Documentation/sound/hd-audio/models.rst +0 -2
index 11298f0ce44d..0ea967d34583 100644
@@ -216,8 +216,6 @@ alc298-dell-aio
     ALC298 fixups on Dell AIO machines
 alc275-dell-xps
     ALC275 fixups on Dell XPS models
-alc256-dell-xps13
-    ALC256 fixups on Dell XPS13
 lenovo-spk-noise
     Workaround for speaker noise on Lenovo machines
 lenovo-hotkey
Documentation/sound/hd-audio/realtek-pc-beep.rst new file +129 -0

129 lines not on this page · raw message

Makefile +1 -1
index c2d5975844d9..c09d5a4d2e7a 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 4
-SUBLEVEL = 32
+SUBLEVEL = 33
 EXTRAVERSION =
 NAME = Kleptomaniac Octopus
 
arch/arm/boot/dts/dm8148-evm.dts +2 -2
index 3931fb068ff0..91d1018ab75f 100644
@@ -24,12 +24,12 @@
 
 &cpsw_emac0 {
 	phy-handle = <&ethphy0>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 };
 
 &cpsw_emac1 {
 	phy-handle = <&ethphy1>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 };
 
 &davinci_mdio {
arch/arm/boot/dts/dm8148-t410.dts +2 -2
index 9e43d5ec0bb2..79ccdd4470f4 100644
@@ -33,12 +33,12 @@
 
 &cpsw_emac0 {
 	phy-handle = <&ethphy0>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 };
 
 &cpsw_emac1 {
 	phy-handle = <&ethphy1>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 };
 
 &davinci_mdio {
arch/arm/boot/dts/dra62x-j5eco-evm.dts +2 -2
index 861ab90a3f3a..c16e183822be 100644
@@ -24,12 +24,12 @@
 
 &cpsw_emac0 {
 	phy-handle = <&ethphy0>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 };
 
 &cpsw_emac1 {
 	phy-handle = <&ethphy1>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 };
 
 &davinci_mdio {
arch/arm/boot/dts/exynos4210-universal_c210.dts +1 -3
index 09d3d54d09ff..1b5578381d78 100644
@@ -115,7 +115,7 @@
 		gpio-sck = <&gpy3 1 GPIO_ACTIVE_HIGH>;
 		gpio-mosi = <&gpy3 3 GPIO_ACTIVE_HIGH>;
 		num-chipselects = <1>;
-		cs-gpios = <&gpy4 3 GPIO_ACTIVE_HIGH>;
+		cs-gpios = <&gpy4 3 GPIO_ACTIVE_LOW>;
 
 		lcd@0 {
 			compatible = "samsung,ld9040";
@@ -124,8 +124,6 @@
 			vci-supply = <&ldo17_reg>;
 			reset-gpios = <&gpy4 5 GPIO_ACTIVE_HIGH>;
 			spi-max-frequency = <1200000>;
-			spi-cpol;
-			spi-cpha;
 			power-on-delay = <10>;
 			reset-delay = <10>;
 			panel-width-mm = <90>;
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +2 -2
index 397140454132..6bf93e5ed681 100644
@@ -358,8 +358,8 @@
 };
 
 &reg_dldo3 {
-	regulator-min-microvolt = <2800000>;
-	regulator-max-microvolt = <2800000>;
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <1800000>;
 	regulator-name = "vdd-csi";
 };
 
arch/arm64/Makefile +4 -0
index 2c0238ce0551..d65aef47ece3 100644
@@ -72,6 +72,10 @@ stack_protector_prepare: prepare0
 					include/generated/asm-offsets.h))
 endif
 
+# Ensure that if the compiler supports branch protection we default it
+# off.
+KBUILD_CFLAGS += $(call cc-option,-mbranch-protection=none)
+
 ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
 KBUILD_CPPFLAGS	+= -mbig-endian
 CHECKFLAGS	+= -D__AARCH64EB__
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +1 -2
index 1d34e3eefda3..eaf8f83794fd 100644
@@ -77,8 +77,7 @@
 	};
 
 	pmu {
-		compatible = "arm,cortex-a53-pmu",
-			     "arm,armv8-pmuv3";
+		compatible = "arm,cortex-a53-pmu";
 		interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +1 -2
index d19253891672..ab081efd5971 100644
@@ -71,8 +71,7 @@
 	};
 
 	pmu {
-		compatible = "arm,cortex-a53-pmu",
-			     "arm,armv8-pmuv3";
+		compatible = "arm,cortex-a53-pmu";
 		interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>,
 			     <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/ti/k3-am65-main.dtsi +2 -0
index 799c75fa7981..34a30842c47a 100644
@@ -307,6 +307,7 @@
 		interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 		dma-coherent;
 		power-domains = <&k3_pds 151 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 151 2>, <&k3_clks 151 7>;
 		assigned-clocks = <&k3_clks 151 2>, <&k3_clks 151 7>;
 		assigned-clock-parents = <&k3_clks 151 4>,	/* set REF_CLK to 20MHz i.e. PER0_PLL/48 */
 					 <&k3_clks 151 9>;	/* set PIPE3_TXB_CLK to CLK_12M_RC/256 (for HS only) */
@@ -346,6 +347,7 @@
 		interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
 		dma-coherent;
 		power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
+		clocks = <&k3_clks 152 2>;
 		assigned-clocks = <&k3_clks 152 2>;
 		assigned-clock-parents = <&k3_clks 152 4>;	/* set REF_CLK to 20MHz i.e. PER0_PLL/48 */
 
arch/arm64/kernel/armv8_deprecated.c +1 -1
index ca158be21f83..bcb14d11232f 100644
@@ -601,7 +601,7 @@ static struct undef_hook setend_hooks[] = {
 	},
 	{
 		/* Thumb mode */
-		.instr_mask	= 0x0000fff7,
+		.instr_mask	= 0xfffffff7,
 		.instr_val	= 0x0000b650,
 		.pstate_mask	= (PSR_AA32_T_BIT | PSR_AA32_MODE_MASK),
 		.pstate_val	= (PSR_AA32_T_BIT | PSR_AA32_MODE_USR),
arch/mips/cavium-octeon/octeon-irq.c +3 -0
index f97be32bf699..3ad1f76c063a 100644
@@ -2199,6 +2199,9 @@ static int octeon_irq_cib_map(struct irq_domain *d,
 	}
 
 	cd = kzalloc(sizeof(*cd), GFP_KERNEL);
+	if (!cd)
+		return -ENOMEM;
+
 	cd->host_data = host_data;
 	cd->bit = hw;
 
arch/mips/mm/tlbex.c +4 -1
index 41bb91f05688..547d813ead48 100644
@@ -1480,6 +1480,7 @@ static void build_r4000_tlb_refill_handler(void)
 
 static void setup_pw(void)
 {
+	unsigned int pwctl;
 	unsigned long pgd_i, pgd_w;
 #ifndef __PAGETABLE_PMD_FOLDED
 	unsigned long pmd_i, pmd_w;
@@ -1506,6 +1507,7 @@ static void setup_pw(void)
 
 	pte_i = ilog2(_PAGE_GLOBAL);
 	pte_w = 0;
+	pwctl = 1 << 30; /* Set PWDirExt */
 
 #ifndef __PAGETABLE_PMD_FOLDED
 	write_c0_pwfield(pgd_i << 24 | pmd_i << 12 | pt_i << 6 | pte_i);
@@ -1516,8 +1518,9 @@ static void setup_pw(void)
 #endif
 
 #ifdef CONFIG_MIPS_HUGE_TLB_SUPPORT
-	write_c0_pwctl(1 << 6 | psn);
+	pwctl |= (1 << 6 | psn);
 #endif
+	write_c0_pwctl(pwctl);
 	write_c0_kpgd((long)swapper_pg_dir);
 	kscratch_used_mask |= (1 << 7); /* KScratch6 is used for KPGD */
 }
arch/powerpc/include/asm/book3s/64/hash-4k.h +6 -0
index 8fd8599c9395..3f9ae3585ab9 100644
@@ -156,6 +156,12 @@ extern pmd_t hash__pmdp_huge_get_and_clear(struct mm_struct *mm,
 extern int hash__has_transparent_hugepage(void);
 #endif
 
+static inline pmd_t hash__pmd_mkdevmap(pmd_t pmd)
+{
+	BUG();
+	return pmd;
+}
+
 #endif /* !__ASSEMBLY__ */
 
 #endif /* _ASM_POWERPC_BOOK3S_64_HASH_4K_H */
arch/powerpc/include/asm/book3s/64/hash-64k.h +7 -1
index d1d9177d9ebd..0729c034e56f 100644
@@ -246,7 +246,7 @@ static inline void mark_hpte_slot_valid(unsigned char *hpte_slot_array,
  */
 static inline int hash__pmd_trans_huge(pmd_t pmd)
 {
-	return !!((pmd_val(pmd) & (_PAGE_PTE | H_PAGE_THP_HUGE)) ==
+	return !!((pmd_val(pmd) & (_PAGE_PTE | H_PAGE_THP_HUGE | _PAGE_DEVMAP)) ==
 		  (_PAGE_PTE | H_PAGE_THP_HUGE));
 }
 
@@ -272,6 +272,12 @@ extern pmd_t hash__pmdp_huge_get_and_clear(struct mm_struct *mm,
 				       unsigned long addr, pmd_t *pmdp);
 extern int hash__has_transparent_hugepage(void);
 #endif /*  CONFIG_TRANSPARENT_HUGEPAGE */
+
+static inline pmd_t hash__pmd_mkdevmap(pmd_t pmd)
+{
+	return __pmd(pmd_val(pmd) | (_PAGE_PTE | H_PAGE_THP_HUGE | _PAGE_DEVMAP));
+}
+
 #endif	/* __ASSEMBLY__ */
 
 #endif /* _ASM_POWERPC_BOOK3S_64_HASH_64K_H */
arch/powerpc/include/asm/book3s/64/pgtable.h +3 -1
index b01624e5c467..a143d394ff46 100644
@@ -1303,7 +1303,9 @@ extern void serialize_against_pte_lookup(struct mm_struct *mm);
 
 static inline pmd_t pmd_mkdevmap(pmd_t pmd)
 {
-	return __pmd(pmd_val(pmd) | (_PAGE_PTE | _PAGE_DEVMAP));
+	if (radix_enabled())
+		return radix__pmd_mkdevmap(pmd);
+	return hash__pmd_mkdevmap(pmd);
 }
 
 static inline int pmd_devmap(pmd_t pmd)
arch/powerpc/include/asm/book3s/64/radix.h +5 -0
index d97db3ad9aae..a1c60d5b50af 100644
@@ -263,6 +263,11 @@ static inline int radix__has_transparent_hugepage(void)
 }
 #endif
 
+static inline pmd_t radix__pmd_mkdevmap(pmd_t pmd)
+{
+	return __pmd(pmd_val(pmd) | (_PAGE_PTE | _PAGE_DEVMAP));
+}
+
 extern int __meminit radix__vmemmap_create_mapping(unsigned long start,
 					     unsigned long page_size,
 					     unsigned long phys);
arch/powerpc/include/asm/drmem.h +2 -2
index 3d76e1c388c2..28c3d936fdf3 100644
@@ -27,12 +27,12 @@ struct drmem_lmb_info {
 extern struct drmem_lmb_info *drmem_info;
 
 #define for_each_drmem_lmb_in_range(lmb, start, end)		\
-	for ((lmb) = (start); (lmb) <= (end); (lmb)++)
+	for ((lmb) = (start); (lmb) < (end); (lmb)++)
 
 #define for_each_drmem_lmb(lmb)					\
 	for_each_drmem_lmb_in_range((lmb),			\
 		&drmem_info->lmbs[0],				\
-		&drmem_info->lmbs[drmem_info->n_lmbs - 1])
+		&drmem_info->lmbs[drmem_info->n_lmbs])
 
 /*
  * The of_drconf_cell_v1 struct defines the layout of the LMB data
arch/powerpc/include/asm/setjmp.h +4 -2
index e9f81bb3f83b..f798e80e4106 100644
@@ -7,7 +7,9 @@
 
 #define JMP_BUF_LEN    23
 
-extern long setjmp(long *) __attribute__((returns_twice));
-extern void longjmp(long *, long) __attribute__((noreturn));
+typedef long jmp_buf[JMP_BUF_LEN];
+
+extern int setjmp(jmp_buf env) __attribute__((returns_twice));
+extern void longjmp(jmp_buf env, int val) __attribute__((noreturn));
 
 #endif /* _ASM_POWERPC_SETJMP_H */
arch/powerpc/kernel/Makefile +0 -3
index 3c02445cf086..dc0780f930d5 100644
@@ -5,9 +5,6 @@
 
 CFLAGS_ptrace.o		+= -DUTS_MACHINE='"$(UTS_MACHINE)"'
 
-# Avoid clang warnings around longjmp/setjmp declarations
-CFLAGS_crash.o += -ffreestanding
-
 ifdef CONFIG_PPC64
 CFLAGS_prom_init.o	+= $(NO_MINIMAL_TOC)
 endif
arch/powerpc/kernel/dt_cpu_ftrs.c +0 -1
index 180b3a5d1001..05606025a131 100644
@@ -139,7 +139,6 @@ static void __init cpufeatures_setup_cpu(void)
 	/* Initialize the base environment -- clear FSCR/HFSCR.  */
 	hv_mode = !!(mfmsr() & MSR_HV);
 	if (hv_mode) {
-		/* CPU_FTR_HVMODE is used early in PACA setup */
 		cur_cpu_spec->cpu_features |= CPU_FTR_HVMODE;
 		mtspr(SPRN_HFSCR, 0);
 	}
arch/powerpc/kernel/kprobes.c +3 -0
index 2d27ec4feee4..9b340af02c38 100644
@@ -264,6 +264,9 @@ int kprobe_handler(struct pt_regs *regs)
 	if (user_mode(regs))
 		return 0;
 
+	if (!(regs->msr & MSR_IR) || !(regs->msr & MSR_DR))
+		return 0;
+
 	/*
 	 * We don't want to be preempted for the entire
 	 * duration of kprobe processing
arch/powerpc/kernel/paca.c +9 -5
index 949eceb254d8..3f91ccaa9c74 100644
@@ -176,7 +176,7 @@ static struct slb_shadow * __init new_slb_shadow(int cpu, unsigned long limit)
 struct paca_struct **paca_ptrs __read_mostly;
 EXPORT_SYMBOL(paca_ptrs);
 
-void __init initialise_paca(struct paca_struct *new_paca, int cpu)
+void __init __nostackprotector initialise_paca(struct paca_struct *new_paca, int cpu)
 {
 #ifdef CONFIG_PPC_PSERIES
 	new_paca->lppaca_ptr = NULL;
@@ -205,7 +205,7 @@ void __init initialise_paca(struct paca_struct *new_paca, int cpu)
 }
 
 /* Put the paca pointer into r13 and SPRG_PACA */
-void setup_paca(struct paca_struct *new_paca)
+void __nostackprotector setup_paca(struct paca_struct *new_paca)
 {
 	/* Setup r13 */
 	local_paca = new_paca;
@@ -214,11 +214,15 @@ void setup_paca(struct paca_struct *new_paca)
 	/* On Book3E, initialize the TLB miss exception frames */
 	mtspr(SPRN_SPRG_TLB_EXFRAME, local_paca->extlb);
 #else
-	/* In HV mode, we setup both HPACA and PACA to avoid problems
+	/*
+	 * In HV mode, we setup both HPACA and PACA to avoid problems
 	 * if we do a GET_PACA() before the feature fixups have been
-	 * applied
+	 * applied.
+	 *
+	 * Normally you should test against CPU_FTR_HVMODE, but CPU features
+	 * are not yet set up when we first reach here.
 	 */
-	if (early_cpu_has_feature(CPU_FTR_HVMODE))
+	if (mfmsr() & MSR_HV)
 		mtspr(SPRN_SPRG_HPACA, local_paca);
 #endif
 	mtspr(SPRN_SPRG_PACA, local_paca);
arch/powerpc/kernel/setup.h +6 -0
index c82577c4b15d..1b02d338a5f5 100644
@@ -8,6 +8,12 @@
 #ifndef __ARCH_POWERPC_KERNEL_SETUP_H
 #define __ARCH_POWERPC_KERNEL_SETUP_H
 
+#ifdef CONFIG_CC_IS_CLANG
+#define __nostackprotector
+#else
+#define __nostackprotector __attribute__((__optimize__("no-stack-protector")))
+#endif
+
 void initialize_cache_info(void);
 void irqstack_early_init(void);
 
arch/powerpc/kernel/setup_64.c +25 -7
index 44b4c432a273..d7ff21316cfa 100644
@@ -284,24 +284,42 @@ void __init record_spr_defaults(void)
  * device-tree is not accessible via normal means at this point.
  */
 
-void __init early_setup(unsigned long dt_ptr)
+void __init __nostackprotector early_setup(unsigned long dt_ptr)
 {
 	static __initdata struct paca_struct boot_paca;
 
 	/* -------- printk is _NOT_ safe to use here ! ------- */
 
-	/* Try new device tree based feature discovery ... */
-	if (!dt_cpu_ftrs_init(__va(dt_ptr)))
-		/* Otherwise use the old style CPU table */
-		identify_cpu(0, mfspr(SPRN_PVR));
-
-	/* Assume we're on cpu 0 for now. Don't write to the paca yet! */
+	/*
+	 * Assume we're on cpu 0 for now.
+	 *
+	 * We need to load a PACA very early for a few reasons.
+	 *
+	 * The stack protector canary is stored in the paca, so as soon as we
+	 * call any stack protected code we need r13 pointing somewhere valid.
+	 *
+	 * If we are using kcov it will call in_task() in its instrumentation,
+	 * which relies on the current task from the PACA.
+	 *
+	 * dt_cpu_ftrs_init() calls into generic OF/fdt code, as well as
+	 * printk(), which can trigger both stack protector and kcov.
+	 *
+	 * percpu variables and spin locks also use the paca.
+	 *
+	 * So set up a temporary paca. It will be replaced below once we know
+	 * what CPU we are on.
+	 */
 	initialise_paca(&boot_paca, 0);
 	setup_paca(&boot_paca);
 	fixup_boot_paca();
 
 	/* -------- printk is now safe to use ------- */
 
+	/* Try new device tree based feature discovery ... */
+	if (!dt_cpu_ftrs_init(__va(dt_ptr)))
+		/* Otherwise use the old style CPU table */
+		identify_cpu(0, mfspr(SPRN_PVR));
+
 	/* Enable early debugging if any specified (see udbg.h) */
 	udbg_early_init();
 
arch/powerpc/kernel/signal_64.c +3 -1
index 84ed2e77ef9c..adfde59cf4ba 100644
@@ -473,8 +473,10 @@ static long restore_tm_sigcontexts(struct task_struct *tsk,
 	err |= __get_user(tsk->thread.ckpt_regs.ccr,
 			  &sc->gp_regs[PT_CCR]);
 
+	/* Don't allow userspace to set the trap value */
+	regs->trap = 0;
+
 	/* These regs are not checkpointed; they can go in 'regs'. */
-	err |= __get_user(regs->trap, &sc->gp_regs[PT_TRAP]);
 	err |= __get_user(regs->dar, &sc->gp_regs[PT_DAR]);
 	err |= __get_user(regs->dsisr, &sc->gp_regs[PT_DSISR]);
 	err |= __get_user(regs->result, &sc->gp_regs[PT_RESULT]);
arch/powerpc/mm/kasan/kasan_init_32.c +1 -1
index 0e6ed4413eea..1cfe57b51d7e 100644
@@ -117,7 +117,7 @@ static void __init kasan_remap_early_shadow_ro(void)
 
 	kasan_populate_pte(kasan_early_shadow_pte, prot);
 
-	for (k_cur = k_start & PAGE_MASK; k_cur < k_end; k_cur += PAGE_SIZE) {
+	for (k_cur = k_start & PAGE_MASK; k_cur != k_end; k_cur += PAGE_SIZE) {
 		pmd_t *pmd = pmd_offset(pud_offset(pgd_offset_k(k_cur), k_cur), k_cur);
 		pte_t *ptep = pte_offset_kernel(pmd, k_cur);
 
arch/powerpc/mm/nohash/tlb_low.S +11 -1
index 2ca407cedbe7..eaeee402f96e 100644
@@ -397,7 +397,7 @@ _GLOBAL(set_context)
  * extern void loadcam_entry(unsigned int index)
  *
  * Load TLBCAM[index] entry in to the L2 CAM MMU
- * Must preserve r7, r8, r9, and r10
+ * Must preserve r7, r8, r9, r10 and r11
  */
 _GLOBAL(loadcam_entry)
 	mflr	r5
@@ -433,6 +433,10 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_BIG_PHYS)
  */
 _GLOBAL(loadcam_multi)
 	mflr	r8
+	/* Don't switch to AS=1 if already there */
+	mfmsr	r11
+	andi.	r11,r11,MSR_IS
+	bne	10f
 
 	/*
 	 * Set up temporary TLB entry that is the same as what we're
@@ -458,6 +462,7 @@ _GLOBAL(loadcam_multi)
 	mtmsr	r6
 	isync
 
+10:
 	mr	r9,r3
 	add	r10,r3,r4
 2:	bl	loadcam_entry
@@ -466,6 +471,10 @@ _GLOBAL(loadcam_multi)
 	mr	r3,r9
 	blt	2b
 
+	/* Don't return to AS=0 if we were in AS=1 at function start */
+	andi.	r11,r11,MSR_IS
+	bne	3f
+
 	/* Return to AS=0 and clear the temporary entry */
 	mfmsr	r6
 	rlwinm.	r6,r6,0,~(MSR_IS|MSR_DS)
@@ -481,6 +490,7 @@ _GLOBAL(loadcam_multi)
 	tlbwe
 	isync
 
+3:
 	mtlr	r8
 	blr
 #endif
arch/powerpc/platforms/pseries/hotplug-memory.c +4 -4
index 4c3af2e9eb8e..f1888352b4e0 100644
@@ -223,7 +223,7 @@ static int get_lmb_range(u32 drc_index, int n_lmbs,
 			 struct drmem_lmb **end_lmb)
 {
 	struct drmem_lmb *lmb, *start, *end;
-	struct drmem_lmb *last_lmb;
+	struct drmem_lmb *limit;
 
 	start = NULL;
 	for_each_drmem_lmb(lmb) {
@@ -236,10 +236,10 @@ static int get_lmb_range(u32 drc_index, int n_lmbs,
 	if (!start)
 		return -EINVAL;
 
-	end = &start[n_lmbs - 1];
+	end = &start[n_lmbs];
 
-	last_lmb = &drmem_info->lmbs[drmem_info->n_lmbs - 1];
-	if (end > last_lmb)
+	limit = &drmem_info->lmbs[drmem_info->n_lmbs];
+	if (end > limit)
 		return -EINVAL;
 
 	*start_lmb = start;
arch/powerpc/platforms/pseries/lpar.c +1 -1
index f87a5c64e24d..c93b9a3bf237 100644
@@ -1992,7 +1992,7 @@ static int __init vpa_debugfs_init(void)
 {
 	char name[16];
 	long i;
-	static struct dentry *vpa_dir;
+	struct dentry *vpa_dir;
 
 	if (!firmware_has_feature(FW_FEATURE_SPLPAR))
 		return 0;
arch/powerpc/sysdev/xive/common.c +7 -9
index 9651ca061828..fe8d396e2301 100644
@@ -68,13 +68,6 @@ static u32 xive_ipi_irq;
 /* Xive state for each CPU */
 static DEFINE_PER_CPU(struct xive_cpu *, xive_cpu);
 
-/*
- * A "disabled" interrupt should never fire, to catch problems
- * we set its logical number to this
- */
-#define XIVE_BAD_IRQ		0x7fffffff
-#define XIVE_MAX_IRQ		(XIVE_BAD_IRQ - 1)
-
 /* An invalid CPU target */
 #define XIVE_INVALID_TARGET	(-1)
 
@@ -265,11 +258,15 @@ notrace void xmon_xive_do_dump(int cpu)
 
 int xmon_xive_get_irq_config(u32 hw_irq, struct irq_data *d)
 {
+	struct irq_chip *chip = irq_data_get_irq_chip(d);
 	int rc;
 	u32 target;
 	u8 prio;
 	u32 lirq;
 
+	if (!is_xive_irq(chip))
+		return -EINVAL;
+
 	rc = xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
 	if (rc) {
 		xmon_printf("IRQ 0x%08x : no config rc=%d\n", hw_irq, rc);
@@ -1150,7 +1147,7 @@ static int xive_setup_cpu_ipi(unsigned int cpu)
 	xc = per_cpu(xive_cpu, cpu);
 
 	/* Check if we are already setup */
-	if (xc->hw_ipi != 0)
+	if (xc->hw_ipi != XIVE_BAD_IRQ)
 		return 0;
 
 	/* Grab an IPI from the backend, this will populate xc->hw_ipi */
@@ -1187,7 +1184,7 @@ static void xive_cleanup_cpu_ipi(unsigned int cpu, struct xive_cpu *xc)
 	/* Disable the IPI and free the IRQ data */
 
 	/* Already cleaned up ? */
-	if (xc->hw_ipi == 0)
+	if (xc->hw_ipi == XIVE_BAD_IRQ)
 		return;
 
 	/* Mask the IPI */
@@ -1343,6 +1340,7 @@ static int xive_prepare_cpu(unsigned int cpu)
 		if (np)
 			xc->chip_id = of_get_ibm_chip_id(np);
 		of_node_put(np);
+		xc->hw_ipi = XIVE_BAD_IRQ;
 
 		per_cpu(xive_cpu, cpu) = xc;
 	}
arch/powerpc/sysdev/xive/native.c +2 -2
index 0ff6b739052c..50e1a8e02497 100644
@@ -312,7 +312,7 @@ static void xive_native_put_ipi(unsigned int cpu, struct xive_cpu *xc)
 	s64 rc;
 
 	/* Free the IPI */
-	if (!xc->hw_ipi)
+	if (xc->hw_ipi == XIVE_BAD_IRQ)
 		return;
 	for (;;) {
 		rc = opal_xive_free_irq(xc->hw_ipi);
@@ -320,7 +320,7 @@ static void xive_native_put_ipi(unsigned int cpu, struct xive_cpu *xc)
 			msleep(OPAL_BUSY_DELAY_MS);
 			continue;
 		}
-		xc->hw_ipi = 0;
+		xc->hw_ipi = XIVE_BAD_IRQ;
 		break;
 	}
 }
arch/powerpc/sysdev/xive/spapr.c +2 -2
index 55dc61cb4867..3f15615712b5 100644
@@ -560,11 +560,11 @@ static int xive_spapr_get_ipi(unsigned int cpu, struct xive_cpu *xc)
 
 static void xive_spapr_put_ipi(unsigned int cpu, struct xive_cpu *xc)
 {
-	if (!xc->hw_ipi)
+	if (xc->hw_ipi == XIVE_BAD_IRQ)
 		return;
 
 	xive_irq_bitmap_free(xc->hw_ipi);
-	xc->hw_ipi = 0;
+	xc->hw_ipi = XIVE_BAD_IRQ;
 }
 #endif /* CONFIG_SMP */
 
arch/powerpc/sysdev/xive/xive-internal.h +7 -0
index 59cd366e7933..382980f4de2d 100644
@@ -5,6 +5,13 @@
 #ifndef __XIVE_INTERNAL_H
 #define __XIVE_INTERNAL_H
 
+/*
+ * A "disabled" interrupt should never fire, to catch problems
+ * we set its logical number to this
+ */
+#define XIVE_BAD_IRQ		0x7fffffff
+#define XIVE_MAX_IRQ		(XIVE_BAD_IRQ - 1)
+
 /* Each CPU carry one of these with various per-CPU state */
 struct xive_cpu {
 #ifdef CONFIG_SMP
arch/powerpc/xmon/Makefile +0 -3
index c3842dbeb1b7..6f9cccea54f3 100644
@@ -1,9 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 # Makefile for xmon
 
-# Avoid clang warnings around longjmp/setjmp declarations
-subdir-ccflags-y := -ffreestanding
-
 GCOV_PROFILE := n
 KCOV_INSTRUMENT := n
 UBSAN_SANITIZE := n
arch/s390/kernel/diag.c +1 -1
index e9dac9a24d3f..61f2b0412345 100644
@@ -84,7 +84,7 @@ static int show_diag_stat(struct seq_file *m, void *v)
 
 static void *show_diag_stat_start(struct seq_file *m, loff_t *pos)
 {
-	return *pos <= nr_cpu_ids ? (void *)((unsigned long) *pos + 1) : NULL;
+	return *pos <= NR_DIAG_STAT ? (void *)((unsigned long) *pos + 1) : NULL;
 }
 
 static void *show_diag_stat_next(struct seq_file *m, void *v, loff_t *pos)
arch/s390/kvm/vsie.c +1 -0
index 076090f9e666..4f6c22d72072 100644
@@ -1202,6 +1202,7 @@ static int vsie_run(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
 		scb_s->iprcc = PGM_ADDRESSING;
 		scb_s->pgmilc = 4;
 		scb_s->gpsw.addr = __rewind_psw(scb_s->gpsw, 4);
+		rc = 1;
 	}
 	return rc;
 }
arch/s390/mm/gmap.c +5 -1
index edcdca97e85e..9d9ab77d02dd 100644
@@ -787,14 +787,18 @@ static void gmap_call_notifier(struct gmap *gmap, unsigned long start,
 static inline unsigned long *gmap_table_walk(struct gmap *gmap,
 					     unsigned long gaddr, int level)
 {
+	const int asce_type = gmap->asce & _ASCE_TYPE_MASK;
 	unsigned long *table;
 
 	if ((gmap->asce & _ASCE_TYPE_MASK) + 4 < (level * 4))
 		return NULL;
 	if (gmap_is_shadow(gmap) && gmap->removed)
 		return NULL;
-	if (gaddr & (-1UL << (31 + ((gmap->asce & _ASCE_TYPE_MASK) >> 2)*11)))
+
+	if (asce_type != _ASCE_TYPE_REGION1 &&
+	    gaddr & (-1UL << (31 + (asce_type >> 2) * 11)))
 		return NULL;
+
 	table = gmap->table;
 	switch (gmap->asce & _ASCE_TYPE_MASK) {
 	case _ASCE_TYPE_REGION1:
arch/x86/boot/compressed/head_32.S +1 -1
index 5e30eaaf8576..70ffce98c568 100644
@@ -106,7 +106,7 @@ ENTRY(startup_32)
 	notl	%eax
 	andl    %eax, %ebx
 	cmpl	$LOAD_PHYSICAL_ADDR, %ebx
-	jge	1f
+	jae	1f
 #endif
 	movl	$LOAD_PHYSICAL_ADDR, %ebx
 1:
arch/x86/boot/compressed/head_64.S +2 -2
index e9a7f7cadb12..07d2002da642 100644
@@ -106,7 +106,7 @@ ENTRY(startup_32)
 	notl	%eax
 	andl	%eax, %ebx
 	cmpl	$LOAD_PHYSICAL_ADDR, %ebx
-	jge	1f
+	jae	1f
 #endif
 	movl	$LOAD_PHYSICAL_ADDR, %ebx
 1:
@@ -297,7 +297,7 @@ ENTRY(startup_64)
 	notq	%rax
 	andq	%rax, %rbp
 	cmpq	$LOAD_PHYSICAL_ADDR, %rbp
-	jge	1f
+	jae	1f
 #endif
 	movq	$LOAD_PHYSICAL_ADDR, %rbp
 1:
arch/x86/entry/entry_32.S +1 -0
index f07baf0388bc..390edb763826 100644
@@ -1647,6 +1647,7 @@ ENTRY(int3)
 END(int3)
 
 ENTRY(general_protection)
+	ASM_CLAC
 	pushl	$do_general_protection
 	jmp	common_exception
 END(general_protection)
arch/x86/include/asm/kvm_host.h +1 -1
index 734a3334e0f0..380cee9bc175 100644
@@ -1130,7 +1130,7 @@ struct kvm_x86_ops {
 	bool (*pt_supported)(void);
 	bool (*pku_supported)(void);
 
-	int (*check_nested_events)(struct kvm_vcpu *vcpu, bool external_intr);
+	int (*check_nested_events)(struct kvm_vcpu *vcpu);
 	void (*request_immediate_exit)(struct kvm_vcpu *vcpu);
 
 	void (*sched_in)(struct kvm_vcpu *kvm, int cpu);
arch/x86/include/asm/pgtable.h +5 -2
index 0bc530c4eb13..1e6bb4c25334 100644
@@ -624,12 +624,15 @@ static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)
 	return __pmd(val);
 }
 
-/* mprotect needs to preserve PAT bits when updating vm_page_prot */
+/*
+ * mprotect needs to preserve PAT and encryption bits when updating
+ * vm_page_prot
+ */
 #define pgprot_modify pgprot_modify
 static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
 {
 	pgprotval_t preservebits = pgprot_val(oldprot) & _PAGE_CHG_MASK;
-	pgprotval_t addbits = pgprot_val(newprot);
+	pgprotval_t addbits = pgprot_val(newprot) & ~_PAGE_CHG_MASK;
 	return __pgprot(preservebits | addbits);
 }
 
arch/x86/include/asm/pgtable_types.h +1 -1
index b5e49e6bac63..8267dd426b15 100644
@@ -123,7 +123,7 @@
  */
 #define _PAGE_CHG_MASK	(PTE_PFN_MASK | _PAGE_PCD | _PAGE_PWT |		\
 			 _PAGE_SPECIAL | _PAGE_ACCESSED | _PAGE_DIRTY |	\
-			 _PAGE_SOFT_DIRTY | _PAGE_DEVMAP)
+			 _PAGE_SOFT_DIRTY | _PAGE_DEVMAP | _PAGE_ENC)
 #define _HPAGE_CHG_MASK (_PAGE_CHG_MASK | _PAGE_PSE)
 
 /*
arch/x86/kernel/acpi/boot.c +1 -1
index 04205ce127a1..f9e84a0e2fa2 100644
@@ -1740,7 +1740,7 @@ int __acpi_acquire_global_lock(unsigned int *lock)
 		new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));
 		val = cmpxchg(lock, old, new);
 	} while (unlikely (val != old));
-	return (new < 3) ? -1 : 0;
+	return ((new & 0x3) < 3) ? -1 : 0;
 }
 
 int __acpi_release_global_lock(unsigned int *lock)
arch/x86/kernel/tsc_msr.c +112 -16

190 lines not on this page · raw message

arch/x86/kvm/svm.c +4 -0
index 07459120a222..51ff6b342279 100644
@@ -1926,6 +1926,10 @@ static struct kvm *svm_vm_alloc(void)
 	struct kvm_svm *kvm_svm = __vmalloc(sizeof(struct kvm_svm),
 					    GFP_KERNEL_ACCOUNT | __GFP_ZERO,
 					    PAGE_KERNEL);
+
+	if (!kvm_svm)
+		return NULL;
+
 	return &kvm_svm->kvm;
 }
 
arch/x86/kvm/vmx/nested.c +4 -14
index 2b44554baf28..4a09f40b24dc 100644
@@ -3460,7 +3460,7 @@ static void nested_vmx_inject_exception_vmexit(struct kvm_vcpu *vcpu,
 	nested_vmx_vmexit(vcpu, EXIT_REASON_EXCEPTION_NMI, intr_info, exit_qual);
 }
 
-static int vmx_check_nested_events(struct kvm_vcpu *vcpu, bool external_intr)
+static int vmx_check_nested_events(struct kvm_vcpu *vcpu)
 {
 	struct vcpu_vmx *vmx = to_vmx(vcpu);
 	unsigned long exit_qual;
@@ -3507,8 +3507,7 @@ static int vmx_check_nested_events(struct kvm_vcpu *vcpu, bool external_intr)
 		return 0;
 	}
 
-	if ((kvm_cpu_has_interrupt(vcpu) || external_intr) &&
-	    nested_exit_on_intr(vcpu)) {
+	if (kvm_cpu_has_interrupt(vcpu) && nested_exit_on_intr(vcpu)) {
 		if (block_nested_events)
 			return -EBUSY;
 		nested_vmx_vmexit(vcpu, EXIT_REASON_EXTERNAL_INTERRUPT, 0, 0);
@@ -4158,17 +4157,8 @@ void nested_vmx_vmexit(struct kvm_vcpu *vcpu, u32 exit_reason,
 	vcpu->arch.mp_state = KVM_MP_STATE_RUNNABLE;
 
 	if (likely(!vmx->fail)) {
-		/*
-		 * TODO: SDM says that with acknowledge interrupt on
-		 * exit, bit 31 of the VM-exit interrupt information
-		 * (valid interrupt) is always set to 1 on
-		 * EXIT_REASON_EXTERNAL_INTERRUPT, so we shouldn't
-		 * need kvm_cpu_has_interrupt().  See the commit
-		 * message for details.
-		 */
-		if (nested_exit_intr_ack_set(vcpu) &&
-		    exit_reason == EXIT_REASON_EXTERNAL_INTERRUPT &&
-		    kvm_cpu_has_interrupt(vcpu)) {
+		if (exit_reason == EXIT_REASON_EXTERNAL_INTERRUPT &&
+		    nested_exit_intr_ack_set(vcpu)) {
 			int irq = kvm_cpu_get_interrupt(vcpu);
 			WARN_ON(irq < 0);
 			vmcs12->vm_exit_intr_info = irq |
arch/x86/kvm/vmx/ops.h +21 -7
index 45eaedee2ac0..09b0937d56b1 100644
@@ -12,7 +12,8 @@
 
 #define __ex(x) __kvm_handle_fault_on_reboot(x)
 
-asmlinkage void vmread_error(unsigned long field, bool fault);
+__attribute__((regparm(0))) void vmread_error_trampoline(unsigned long field,
+							 bool fault);
 void vmwrite_error(unsigned long field, unsigned long value);
 void vmclear_error(struct vmcs *vmcs, u64 phys_addr);
 void vmptrld_error(struct vmcs *vmcs, u64 phys_addr);
@@ -70,15 +71,28 @@ static __always_inline unsigned long __vmcs_readl(unsigned long field)
 	asm volatile("1: vmread %2, %1\n\t"
 		     ".byte 0x3e\n\t" /* branch taken hint */
 		     "ja 3f\n\t"
-		     "mov %2, %%" _ASM_ARG1 "\n\t"
-		     "xor %%" _ASM_ARG2 ", %%" _ASM_ARG2 "\n\t"
-		     "2: call vmread_error\n\t"
-		     "xor %k1, %k1\n\t"
+
+		     /*
+		      * VMREAD failed.  Push '0' for @fault, push the failing
+		      * @field, and bounce through the trampoline to preserve
+		      * volatile registers.
+		      */
+		     "push $0\n\t"
+		     "push %2\n\t"
+		     "2:call vmread_error_trampoline\n\t"
+
+		     /*
+		      * Unwind the stack.  Note, the trampoline zeros out the
+		      * memory for @fault so that the result is '0' on error.
+		      */
+		     "pop %2\n\t"
+		     "pop %1\n\t"
 		     "3:\n\t"
 
+		     /* VMREAD faulted.  As above, except push '1' for @fault. */
 		     ".pushsection .fixup, \"ax\"\n\t"
-		     "4: mov %2, %%" _ASM_ARG1 "\n\t"
-		     "mov $1, %%" _ASM_ARG2 "\n\t"
+		     "4: push $1\n\t"
+		     "push %2\n\t"
 		     "jmp 2b\n\t"
 		     ".popsection\n\t"
 		     _ASM_EXTABLE(1b, 4b)
arch/x86/kvm/vmx/vmenter.S +58 -0

61 lines not on this page · raw message

arch/x86/kvm/vmx/vmx.c +34 -58

162 lines not on this page · raw message

arch/x86/kvm/x86.c +16 -5
index c5e15eba8052..56a0f9c18892 100644
@@ -7555,7 +7555,7 @@ static void update_cr8_intercept(struct kvm_vcpu *vcpu)
 	kvm_x86_ops->update_cr8_intercept(vcpu, tpr, max_irr);
 }
 
-static int inject_pending_event(struct kvm_vcpu *vcpu, bool req_int_win)
+static int inject_pending_event(struct kvm_vcpu *vcpu)
 {
 	int r;
 
@@ -7591,7 +7591,7 @@ static int inject_pending_event(struct kvm_vcpu *vcpu, bool req_int_win)
 	 * from L2 to L1.
 	 */
 	if (is_guest_mode(vcpu) && kvm_x86_ops->check_nested_events) {
-		r = kvm_x86_ops->check_nested_events(vcpu, req_int_win);
+		r = kvm_x86_ops->check_nested_events(vcpu);
 		if (r != 0)
 			return r;
 	}
@@ -7653,7 +7653,7 @@ static int inject_pending_event(struct kvm_vcpu *vcpu, bool req_int_win)
 		 * KVM_REQ_EVENT only on certain events and not unconditionally?
 		 */
 		if (is_guest_mode(vcpu) && kvm_x86_ops->check_nested_events) {
-			r = kvm_x86_ops->check_nested_events(vcpu, req_int_win);
+			r = kvm_x86_ops->check_nested_events(vcpu);
 			if (r != 0)
 				return r;
 		}
@@ -8130,7 +8130,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
 			goto out;
 		}
 
-		if (inject_pending_event(vcpu, req_int_win) != 0)
+		if (inject_pending_event(vcpu) != 0)
 			req_immediate_exit = true;
 		else {
 			/* Enable SMI/NMI/IRQ window open exits if needed.
@@ -8360,7 +8360,7 @@ static inline int vcpu_block(struct kvm *kvm, struct kvm_vcpu *vcpu)
 static inline bool kvm_vcpu_running(struct kvm_vcpu *vcpu)
 {
 	if (is_guest_mode(vcpu) && kvm_x86_ops->check_nested_events)
-		kvm_x86_ops->check_nested_events(vcpu, false);
+		kvm_x86_ops->check_nested_events(vcpu);
 
 	return (vcpu->arch.mp_state == KVM_MP_STATE_RUNNABLE &&
 		!vcpu->arch.apf.halted);
@@ -9726,6 +9726,13 @@ int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
 {
 	int i;
 
+	/*
+	 * Clear out the previous array pointers for the KVM_MR_MOVE case.  The
+	 * old arrays will be freed by __kvm_set_memory_region() if installing
+	 * the new memslot is successful.
+	 */
+	memset(&slot->arch, 0, sizeof(slot->arch));
+
 	for (i = 0; i < KVM_NR_PAGE_SIZES; ++i) {
 		struct kvm_lpage_info *linfo;
 		unsigned long ugfn;
@@ -9807,6 +9814,10 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
 				const struct kvm_userspace_memory_region *mem,
 				enum kvm_mr_change change)
 {
+	if (change == KVM_MR_MOVE)
+		return kvm_arch_create_memslot(kvm, memslot,
+					       mem->memory_size >> PAGE_SHIFT);
+
 	return 0;
 }
 
arch/x86/platform/efi/efi.c +2 -0
index 01d7ca492741..ae1c5baf27cd 100644
@@ -85,6 +85,8 @@ static const unsigned long * const efi_tables[] = {
 #ifdef CONFIG_EFI_RCI2_TABLE
 	&rci2_table_phys,
 #endif
+	&efi.tpm_log,
+	&efi.tpm_final_log,
 };
 
 u64 efi_setup;		/* efi setup_data physical address */
arch/x86/platform/efi/efi_64.c +2 -2
index fe0e647411da..e39c930cfbd1 100644
@@ -834,7 +834,7 @@ efi_thunk_set_variable(efi_char16_t *name, efi_guid_t *vendor,
 	phys_vendor = virt_to_phys_or_null(vnd);
 	phys_data = virt_to_phys_or_null_size(data, data_size);
 
-	if (!phys_name || !phys_data)
+	if (!phys_name || (data && !phys_data))
 		status = EFI_INVALID_PARAMETER;
 	else
 		status = efi_thunk(set_variable, phys_name, phys_vendor,
@@ -865,7 +865,7 @@ efi_thunk_set_variable_nonblocking(efi_char16_t *name, efi_guid_t *vendor,
 	phys_vendor = virt_to_phys_or_null(vnd);
 	phys_data = virt_to_phys_or_null_size(data, data_size);
 
-	if (!phys_name || !phys_data)
+	if (!phys_name || (data && !phys_data))
 		status = EFI_INVALID_PARAMETER;
 	else
 		status = efi_thunk(set_variable, phys_name, phys_vendor,
block/bfq-cgroup.c +7 -7
index 86cd718e0380..5611769e1569 100644
@@ -625,6 +625,12 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 {
 	struct bfq_entity *entity = &bfqq->entity;
 
+	/*
+	 * Get extra reference to prevent bfqq from being freed in
+	 * next possible expire or deactivate.
+	 */
+	bfqq->ref++;
+
 	/* If bfqq is empty, then bfq_bfqq_expire also invokes
 	 * bfq_del_bfqq_busy, thereby removing bfqq and its entity
 	 * from data structures related to current group. Otherwise we
@@ -635,12 +641,6 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 		bfq_bfqq_expire(bfqd, bfqd->in_service_queue,
 				false, BFQQE_PREEMPTED);
 
-	/*
-	 * get extra reference to prevent bfqq from being freed in
-	 * next possible deactivate
-	 */
-	bfqq->ref++;
-
 	if (bfq_bfqq_busy(bfqq))
 		bfq_deactivate_bfqq(bfqd, bfqq, false, false);
 	else if (entity->on_st)
@@ -660,7 +660,7 @@ void bfq_bfqq_move(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 
 	if (!bfqd->in_service_queue && !bfqd->rq_in_driver)
 		bfq_schedule_dispatch(bfqd);
-	/* release extra ref taken above */
+	/* release extra ref taken above, bfqq may happen to be freed now */
 	bfq_put_queue(bfqq);
 }
 
block/bfq-iosched.c +12 -4
index 48189ff88916..5a825f9f1ea0 100644
@@ -6210,20 +6210,28 @@ static struct bfq_queue *bfq_init_rq(struct request *rq)
 	return bfqq;
 }
 
-static void bfq_idle_slice_timer_body(struct bfq_queue *bfqq)
+static void
+bfq_idle_slice_timer_body(struct bfq_data *bfqd, struct bfq_queue *bfqq)
 {
-	struct bfq_data *bfqd = bfqq->bfqd;
 	enum bfqq_expiration reason;
 	unsigned long flags;
 
 	spin_lock_irqsave(&bfqd->lock, flags);
-	bfq_clear_bfqq_wait_request(bfqq);
 
+	/*
+	 * Considering that bfqq may be in race, we should firstly check
+	 * whether bfqq is in service before doing something on it. If
+	 * the bfqq in race is not in service, it has already been expired
+	 * through __bfq_bfqq_expire func and its wait_request flags has
+	 * been cleared in __bfq_bfqd_reset_in_service func.
+	 */
 	if (bfqq != bfqd->in_service_queue) {
 		spin_unlock_irqrestore(&bfqd->lock, flags);
 		return;
 	}
 
+	bfq_clear_bfqq_wait_request(bfqq);
+
 	if (bfq_bfqq_budget_timeout(bfqq))
 		/*
 		 * Also here the queue can be safely expired
@@ -6268,7 +6276,7 @@ static enum hrtimer_restart bfq_idle_slice_timer(struct hrtimer *timer)
 	 * early.
 	 */
 	if (bfqq)
-		bfq_idle_slice_timer_body(bfqq);
+		bfq_idle_slice_timer_body(bfqd, bfqq);
 
 	return HRTIMER_NORESTART;
 }
block/blk-ioc.c +7 -0
index 5ed59ac6ae58..9df50fb507ca 100644
@@ -84,6 +84,7 @@ static void ioc_destroy_icq(struct io_cq *icq)
 	 * making it impossible to determine icq_cache.  Record it in @icq.
 	 */
 	icq->__rcu_icq_cache = et->icq_cache;
+	icq->flags |= ICQ_DESTROYED;
 	call_rcu(&icq->__rcu_head, icq_free_icq_rcu);
 }
 
@@ -212,15 +213,21 @@ static void __ioc_clear_queue(struct list_head *icq_list)
 {
 	unsigned long flags;
 
+	rcu_read_lock();
 	while (!list_empty(icq_list)) {
 		struct io_cq *icq = list_entry(icq_list->next,
 						struct io_cq, q_node);
 		struct io_context *ioc = icq->ioc;
 
 		spin_lock_irqsave(&ioc->lock, flags);
+		if (icq->flags & ICQ_DESTROYED) {
+			spin_unlock_irqrestore(&ioc->lock, flags);
+			continue;
+		}
 		ioc_destroy_icq(icq);
 		spin_unlock_irqrestore(&ioc->lock, flags);
 	}
+	rcu_read_unlock();
 }
 
 /**
block/blk-settings.c +3 -0
index c8eda2e7b91e..be1dca0103a4 100644
@@ -664,6 +664,9 @@ void disk_stack_limits(struct gendisk *disk, struct block_device *bdev,
 		printk(KERN_NOTICE "%s: Warning: Device %s is misaligned\n",
 		       top, bottom);
 	}
+
+	t->backing_dev_info->io_pages =
+		t->limits.max_sectors >> (PAGE_SHIFT - 9);
 }
 EXPORT_SYMBOL(disk_stack_limits);
 
crypto/rng.c +6 -2
index 1e21231f71c9..1490d210f1a1 100644
@@ -37,12 +37,16 @@ int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen)
 	crypto_stats_get(alg);
 	if (!seed && slen) {
 		buf = kmalloc(slen, GFP_KERNEL);
-		if (!buf)
+		if (!buf) {
+			crypto_alg_put(alg);
 			return -ENOMEM;
+		}
 
 		err = get_random_bytes_wait(buf, slen);
-		if (err)
+		if (err) {
+			crypto_alg_put(alg);
 			goto out;
+		}
 		seed = buf;
 	}
 
drivers/acpi/acpica/achware.h +1 -1
index a74c1a0e892d..c0e243668261 100644
@@ -101,7 +101,7 @@ acpi_status acpi_hw_enable_all_runtime_gpes(void);
 
 acpi_status acpi_hw_enable_all_wakeup_gpes(void);
 
-u8 acpi_hw_check_all_gpes(void);
+u8 acpi_hw_check_all_gpes(acpi_handle gpe_skip_device, u32 gpe_skip_number);
 
 acpi_status
 acpi_hw_enable_runtime_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
drivers/acpi/acpica/evxfgpe.c +12 -5
index 84b0b410310e..3e1813ebcca8 100644
@@ -799,17 +799,19 @@ ACPI_EXPORT_SYMBOL(acpi_enable_all_wakeup_gpes)
  *
  * FUNCTION:    acpi_any_gpe_status_set
  *
- * PARAMETERS:  None
+ * PARAMETERS:  gpe_skip_number      - Number of the GPE to skip
  *
  * RETURN:      Whether or not the status bit is set for any GPE
  *
- * DESCRIPTION: Check the status bits of all enabled GPEs and return TRUE if any
- *              of them is set or FALSE otherwise.
+ * DESCRIPTION: Check the status bits of all enabled GPEs, except for the one
+ *              represented by the "skip" argument, and return TRUE if any of
+ *              them is set or FALSE otherwise.
  *
  ******************************************************************************/
-u32 acpi_any_gpe_status_set(void)
+u32 acpi_any_gpe_status_set(u32 gpe_skip_number)
 {
 	acpi_status status;
+	acpi_handle gpe_device;
 	u8 ret;
 
 	ACPI_FUNCTION_TRACE(acpi_any_gpe_status_set);
@@ -819,7 +821,12 @@ u32 acpi_any_gpe_status_set(void)
 		return (FALSE);
 	}
 
-	ret = acpi_hw_check_all_gpes();
+	status = acpi_get_gpe_device(gpe_skip_number, &gpe_device);
+	if (ACPI_FAILURE(status)) {
+		gpe_device = NULL;
+	}
+
+	ret = acpi_hw_check_all_gpes(gpe_device, gpe_skip_number);
 	(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);
 
 	return (ret);
drivers/acpi/acpica/hwgpe.c +38 -9

93 lines not on this page · raw message

drivers/acpi/ec.c +9 -2
index ca5cdb621c2a..ed2ecb00004f 100644
@@ -1573,7 +1573,6 @@ static int acpi_ec_add(struct acpi_device *device)
 
 		if (boot_ec && ec->command_addr == boot_ec->command_addr &&
 		    ec->data_addr == boot_ec->data_addr) {
-			boot_ec_is_ecdt = false;
 			/*
 			 * Trust PNP0C09 namespace location rather than
 			 * ECDT ID. But trust ECDT GPE rather than _GPE
@@ -1593,9 +1592,12 @@ static int acpi_ec_add(struct acpi_device *device)
 
 	if (ec == boot_ec)
 		acpi_handle_info(boot_ec->handle,
-				 "Boot %s EC used to handle transactions and events\n",
+				 "Boot %s EC initialization complete\n",
 				 boot_ec_is_ecdt ? "ECDT" : "DSDT");
 
+	acpi_handle_info(ec->handle,
+			 "EC: Used to handle transactions and events\n");
+
 	device->driver_data = ec;
 
 	ret = !!request_region(ec->data_addr, 1, "EC data");
@@ -1962,6 +1964,11 @@ void acpi_ec_set_gpe_wake_mask(u8 action)
 		acpi_set_gpe_wake_mask(NULL, first_ec->gpe, action);
 }
 
+bool acpi_ec_other_gpes_active(void)
+{
+	return acpi_any_gpe_status_set(first_ec ? first_ec->gpe : U32_MAX);
+}
+
 bool acpi_ec_dispatch_gpe(void)
 {
 	u32 ret;
drivers/acpi/internal.h +1 -0
index afe6636f9ad3..cbf7f34c3ce7 100644
@@ -201,6 +201,7 @@ void acpi_ec_remove_query_handler(struct acpi_ec *ec, u8 query_bit);
 
 #ifdef CONFIG_PM_SLEEP
 void acpi_ec_flush_work(void);
+bool acpi_ec_other_gpes_active(void);
 bool acpi_ec_dispatch_gpe(void);
 #endif
 
drivers/acpi/sleep.c +10 -9
index abd39cc5ff88..ce1d9048a36d 100644
@@ -1014,18 +1014,19 @@ static bool acpi_s2idle_wake(void)
 			return true;
 
 		/*
-		 * If there are no EC events to process and at least one of the
-		 * other enabled GPEs is active, the wakeup is regarded as a
-		 * genuine one.
-		 *
-		 * Note that the checks below must be carried out in this order
-		 * to avoid returning prematurely due to a change of the EC GPE
-		 * status bit from unset to set between the checks with the
-		 * status bits of all the other GPEs unset.
+		 * If the status bit is set for any enabled GPE other than the
+		 * EC one, the wakeup is regarded as a genuine one.
 		 */
-		if (acpi_any_gpe_status_set() && !acpi_ec_dispatch_gpe())
+		if (acpi_ec_other_gpes_active())
 			return true;
 
+		/*
+		 * If the EC GPE status bit has not been set, the wakeup is
+		 * regarded as a spurious one.
+		 */
+		if (!acpi_ec_dispatch_gpe())
+			return false;
+
 		/*
 		 * Cancel the wakeup and process all pending events in case
 		 * there are any wakeup ones in there.
drivers/ata/libata-pmp.c +1 -0
index 3ff14071617c..79f2aeeb482a 100644
@@ -763,6 +763,7 @@ static int sata_pmp_eh_recover_pmp(struct ata_port *ap,
 
 	if (dev->flags & ATA_DFLAG_DETACH) {
 		detach = 1;
+		rc = -ENODEV;
 		goto fail;
 	}
 
drivers/ata/libata-scsi.c +3 -6
index 58e09ffe8b9c..5af34a3201ed 100644
@@ -4553,22 +4553,19 @@ int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht)
 		 */
 		shost->max_host_blocked = 1;
 
-		rc = scsi_add_host_with_dma(ap->scsi_host,
-						&ap->tdev, ap->host->dev);
+		rc = scsi_add_host_with_dma(shost, &ap->tdev, ap->host->dev);
 		if (rc)
-			goto err_add;
+			goto err_alloc;
 	}
 
 	return 0;
 
- err_add:
-	scsi_host_put(host->ports[i]->scsi_host);
  err_alloc:
 	while (--i >= 0) {
 		struct Scsi_Host *shost = host->ports[i]->scsi_host;
 
+		/* scsi_host_put() is in ata_devres_release() */
 		scsi_remove_host(shost);
-		scsi_host_put(shost);
 	}
 	return rc;
 }
drivers/base/firmware_loader/fallback.c +1 -1
index 62ee90b4db56..70efbb22dfc3 100644
@@ -525,7 +525,7 @@ static int fw_load_sysfs_fallback(struct fw_sysfs *fw_sysfs,
 	}
 
 	retval = fw_sysfs_wait_timeout(fw_priv, timeout);
-	if (retval < 0) {
+	if (retval < 0 && retval != -ENOENT) {
 		mutex_lock(&fw_lock);
 		fw_load_abort(fw_sysfs);
 		mutex_unlock(&fw_lock);
drivers/base/power/domain.c +1 -1
index cc85e87eaf05..8428d02cfe58 100644
@@ -2615,7 +2615,7 @@ static int genpd_iterate_idle_states(struct device_node *dn,
 
 	ret = of_count_phandle_with_args(dn, "domain-idle-states", NULL);
 	if (ret <= 0)
-		return ret;
+		return ret == -ENOENT ? 0 : ret;
 
 	/* Loop over the phandles until all the requested entry is found */
 	of_for_each_phandle(&it, ret, dn, "domain-idle-states", NULL, 0) {
drivers/base/power/wakeup.c +3 -1
index 5817b51d2b15..0bd9b291bb29 100644
@@ -241,7 +241,9 @@ void wakeup_source_unregister(struct wakeup_source *ws)
 {
 	if (ws) {
 		wakeup_source_remove(ws);
-		wakeup_source_sysfs_remove(ws);
+		if (ws->dev)
+			wakeup_source_sysfs_remove(ws);
+
 		wakeup_source_destroy(ws);
 	}
 }
drivers/block/null_blk_main.c +9 -1
index 0e7da5015ccd..c4454cfc6d53 100644
@@ -579,6 +579,7 @@ static struct nullb_cmd *__alloc_cmd(struct nullb_queue *nq)
 	if (tag != -1U) {
 		cmd = &nq->cmds[tag];
 		cmd->tag = tag;
+		cmd->error = BLK_STS_OK;
 		cmd->nq = nq;
 		if (nq->dev->irqmode == NULL_IRQ_TIMER) {
 			hrtimer_init(&cmd->timer, CLOCK_MONOTONIC,
@@ -1335,6 +1336,7 @@ static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx,
 		cmd->timer.function = null_cmd_timer_expired;
 	}
 	cmd->rq = bd->rq;
+	cmd->error = BLK_STS_OK;
 	cmd->nq = nq;
 
 	blk_mq_start_request(bd->rq);
@@ -1382,7 +1384,12 @@ static void cleanup_queues(struct nullb *nullb)
 
 static void null_del_dev(struct nullb *nullb)
 {
-	struct nullb_device *dev = nullb->dev;
+	struct nullb_device *dev;
+
+	if (!nullb)
+		return;
+
+	dev = nullb->dev;
 
 	ida_simple_remove(&nullb_indexes, nullb->index);
 
@@ -1736,6 +1743,7 @@ static int null_add_dev(struct nullb_device *dev)
 	cleanup_queues(nullb);
 out_free_nullb:
 	kfree(nullb);
+	dev->nullb = NULL;
 out:
 	return rv;
 }
drivers/block/xen-blkfront.c +12 -5
index c02be06c5299..ab5482202cfb 100644
@@ -47,6 +47,7 @@
 #include <linux/bitmap.h>
 #include <linux/list.h>
 #include <linux/workqueue.h>
+#include <linux/sched/mm.h>
 
 #include <xen/xen.h>
 #include <xen/xenbus.h>
@@ -2188,10 +2189,12 @@ static void blkfront_setup_discard(struct blkfront_info *info)
 
 static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo)
 {
-	unsigned int psegs, grants;
+	unsigned int psegs, grants, memflags;
 	int err, i;
 	struct blkfront_info *info = rinfo->dev_info;
 
+	memflags = memalloc_noio_save();
+
 	if (info->max_indirect_segments == 0) {
 		if (!HAS_EXTRA_REQ)
 			grants = BLKIF_MAX_SEGMENTS_PER_REQUEST;
@@ -2223,7 +2226,7 @@ static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo)
 
 		BUG_ON(!list_empty(&rinfo->indirect_pages));
 		for (i = 0; i < num; i++) {
-			struct page *indirect_page = alloc_page(GFP_NOIO);
+			struct page *indirect_page = alloc_page(GFP_KERNEL);
 			if (!indirect_page)
 				goto out_of_memory;
 			list_add(&indirect_page->lru, &rinfo->indirect_pages);
@@ -2234,15 +2237,15 @@ static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo)
 		rinfo->shadow[i].grants_used =
 			kvcalloc(grants,
 				 sizeof(rinfo->shadow[i].grants_used[0]),
-				 GFP_NOIO);
+				 GFP_KERNEL);
 		rinfo->shadow[i].sg = kvcalloc(psegs,
 					       sizeof(rinfo->shadow[i].sg[0]),
-					       GFP_NOIO);
+					       GFP_KERNEL);
 		if (info->max_indirect_segments)
 			rinfo->shadow[i].indirect_grants =
 				kvcalloc(INDIRECT_GREFS(grants),
 					 sizeof(rinfo->shadow[i].indirect_grants[0]),
-					 GFP_NOIO);
+					 GFP_KERNEL);
 		if ((rinfo->shadow[i].grants_used == NULL) ||
 			(rinfo->shadow[i].sg == NULL) ||
 		     (info->max_indirect_segments &&
@@ -2251,6 +2254,7 @@ static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo)
 		sg_init_table(rinfo->shadow[i].sg, psegs);
 	}
 
+	memalloc_noio_restore(memflags);
 
 	return 0;
 
@@ -2270,6 +2274,9 @@ static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo)
 			__free_page(indirect_page);
 		}
 	}
+
+	memalloc_noio_restore(memflags);
+
 	return -ENOMEM;
 }
 
drivers/bus/sunxi-rsb.c +1 -1
index be79d6c6a4e4..1bb00a959c67 100644
@@ -345,7 +345,7 @@ static int sunxi_rsb_read(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr,
 	if (ret)
 		goto unlock;
 
-	*buf = readl(rsb->regs + RSB_DATA);
+	*buf = readl(rsb->regs + RSB_DATA) & GENMASK(len * 8 - 1, 0);
 
 unlock:
 	mutex_unlock(&rsb->lock);
drivers/char/ipmi/ipmi_msghandler.c +2 -2
index 0b6e7f8d9729..90f5292e2051 100644
@@ -3207,8 +3207,8 @@ static void __get_guid(struct ipmi_smi *intf)
 	if (rv)
 		/* Send failed, no GUID available. */
 		bmc->dyn_guid_set = 0;
-
-	wait_event(intf->waitq, bmc->dyn_guid_set != 2);
+	else
+		wait_event(intf->waitq, bmc->dyn_guid_set != 2);
 
 	/* dyn_guid_set makes the guid data available. */
 	smp_rmb();
drivers/char/tpm/eventlog/common.c +4 -8
index 7a0fca659b6a..7460f230bae4 100644
@@ -99,11 +99,8 @@ static int tpm_read_log(struct tpm_chip *chip)
  *
  * If an event log is found then the securityfs files are setup to
  * export it to userspace, otherwise nothing is done.
- *
- * Returns -ENODEV if the firmware has no event log or securityfs is not
- * supported.
  */
-int tpm_bios_log_setup(struct tpm_chip *chip)
+void tpm_bios_log_setup(struct tpm_chip *chip)
 {
 	const char *name = dev_name(&chip->dev);
 	unsigned int cnt;
@@ -112,7 +109,7 @@ int tpm_bios_log_setup(struct tpm_chip *chip)
 
 	rc = tpm_read_log(chip);
 	if (rc < 0)
-		return rc;
+		return;
 	log_version = rc;
 
 	cnt = 0;
@@ -158,13 +155,12 @@ int tpm_bios_log_setup(struct tpm_chip *chip)
 		cnt++;
 	}
 
-	return 0;
+	return;
 
 err:
-	rc = PTR_ERR(chip->bios_dir[cnt]);
 	chip->bios_dir[cnt] = NULL;
 	tpm_bios_log_teardown(chip);
-	return rc;
+	return;
 }
 
 void tpm_bios_log_teardown(struct tpm_chip *chip)
drivers/char/tpm/eventlog/tpm1.c +1 -1
index 739b1d9d16b6..2c96977ad080 100644
@@ -115,6 +115,7 @@ static void *tpm1_bios_measurements_next(struct seq_file *m, void *v,
 	u32 converted_event_size;
 	u32 converted_event_type;
 
+	(*pos)++;
 	converted_event_size = do_endian_conversion(event->event_size);
 
 	v += sizeof(struct tcpa_event) + converted_event_size;
@@ -132,7 +133,6 @@ static void *tpm1_bios_measurements_next(struct seq_file *m, void *v,
 	    ((v + sizeof(struct tcpa_event) + converted_event_size) > limit))
 		return NULL;
 
-	(*pos)++;
 	return v;
 }
 
drivers/char/tpm/eventlog/tpm2.c +1 -1
index b9aeda1cbcd7..e741b1157525 100644
@@ -94,6 +94,7 @@ static void *tpm2_bios_measurements_next(struct seq_file *m, void *v,
 	size_t event_size;
 	void *marker;
 
+	(*pos)++;
 	event_header = log->bios_event_log;
 
 	if (v == SEQ_START_TOKEN) {
@@ -118,7 +119,6 @@ static void *tpm2_bios_measurements_next(struct seq_file *m, void *v,
 	if (((v + event_size) >= limit) || (event_size == 0))
 		return NULL;
 
-	(*pos)++;
 	return v;
 }
 
drivers/char/tpm/tpm-chip.c +1 -3
index 3d6d394a8661..58073836b555 100644
@@ -596,9 +596,7 @@ int tpm_chip_register(struct tpm_chip *chip)
 
 	tpm_sysfs_add_device(chip);
 
-	rc = tpm_bios_log_setup(chip);
-	if (rc != 0 && rc != -ENODEV)
-		return rc;
+	tpm_bios_log_setup(chip);
 
 	tpm_add_ppi(chip);
 
drivers/char/tpm/tpm.h +1 -1
index a7fea3e0ca86..218cb496222a 100644
@@ -464,7 +464,7 @@ int tpm2_prepare_space(struct tpm_chip *chip, struct tpm_space *space, u8 *cmd,
 int tpm2_commit_space(struct tpm_chip *chip, struct tpm_space *space, void *buf,
 		      size_t *bufsiz);
 
-int tpm_bios_log_setup(struct tpm_chip *chip);
+void tpm_bios_log_setup(struct tpm_chip *chip);
 void tpm_bios_log_teardown(struct tpm_chip *chip);
 int tpm_dev_common_init(void);
 void tpm_dev_common_exit(void);
drivers/clk/ingenic/jz4770-cgu.c +3 -1
index 956dd653a43d..c051ecba5cf8 100644
@@ -432,8 +432,10 @@ static void __init jz4770_cgu_init(struct device_node *np)
 
 	cgu = ingenic_cgu_new(jz4770_cgu_clocks,
 			      ARRAY_SIZE(jz4770_cgu_clocks), np);
-	if (!cgu)
+	if (!cgu) {
 		pr_err("%s: failed to initialise CGU\n", __func__);
+		return;
+	}
 
 	retval = ingenic_cgu_register_clocks(cgu);
 	if (retval)
drivers/clk/ingenic/tcu.c +1 -1
index a1a5f9cb439e..926696fba3f4 100644
@@ -189,7 +189,7 @@ static long ingenic_tcu_round_rate(struct clk_hw *hw, unsigned long req_rate,
 	u8 prescale;
 
 	if (req_rate > rate)
-		return -EINVAL;
+		return rate;
 
 	prescale = ingenic_tcu_get_prescale(rate, req_rate);
 
drivers/cpufreq/imx6q-cpufreq.c +8 -4
index 648a09a1778a..edef3399c979 100644
@@ -280,6 +280,9 @@ static int imx6ul_opp_check_speed_grading(struct device *dev)
 		void __iomem *base;
 
 		np = of_find_compatible_node(NULL, NULL, "fsl,imx6ul-ocotp");
+		if (!np)
+			np = of_find_compatible_node(NULL, NULL,
+						     "fsl,imx6ull-ocotp");
 		if (!np)
 			return -ENOENT;
 
@@ -378,23 +381,24 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
 		goto put_reg;
 	}
 
+	/* Because we have added the OPPs here, we must free them */
+	free_opp = true;
+
 	if (of_machine_is_compatible("fsl,imx6ul") ||
 	    of_machine_is_compatible("fsl,imx6ull")) {
 		ret = imx6ul_opp_check_speed_grading(cpu_dev);
 		if (ret) {
 			if (ret == -EPROBE_DEFER)
-				goto put_node;
+				goto out_free_opp;
 
 			dev_err(cpu_dev, "failed to read ocotp: %d\n",
 				ret);
-			goto put_node;
+			goto out_free_opp;
 		}
 	} else {
 		imx6q_opp_check_speed_grading(cpu_dev);
 	}
 
-	/* Because we have added the OPPs here, we must free them */
-	free_opp = true;
 	num = dev_pm_opp_get_opp_count(cpu_dev);
 	if (num < 0) {
 		ret = num;
drivers/cpufreq/powernv-cpufreq.c +6 -0
index 56f4bc0d209e..1806b1da4366 100644
@@ -1080,6 +1080,12 @@ static int init_chip_info(void)
 
 static inline void clean_chip_info(void)
 {
+	int i;
+
+	/* flush any pending work items */
+	if (chips)
+		for (i = 0; i < nr_chips; i++)
+			cancel_work_sync(&chips[i].throttle);
 	kfree(chips);
 }
 
drivers/crypto/caam/caamalg_desc.c +24 -6
index aa9ccca67045..d6c58184bb57 100644
@@ -1379,6 +1379,9 @@ void cnstr_shdsc_skcipher_encap(u32 * const desc, struct alginfo *cdata,
 				const u32 ctx1_iv_off)
 {
 	u32 *key_jump_cmd;
+	u32 options = cdata->algtype | OP_ALG_AS_INIT | OP_ALG_ENCRYPT;
+	bool is_chacha20 = ((cdata->algtype & OP_ALG_ALGSEL_MASK) ==
+			    OP_ALG_ALGSEL_CHACHA20);
 
 	init_sh_desc(desc, HDR_SHARE_SERIAL | HDR_SAVECTX);
 	/* Skip if already shared */
@@ -1417,14 +1420,15 @@ void cnstr_shdsc_skcipher_encap(u32 * const desc, struct alginfo *cdata,
 				      LDST_OFFSET_SHIFT));
 
 	/* Load operation */
-	append_operation(desc, cdata->algtype | OP_ALG_AS_INIT |
-			 OP_ALG_ENCRYPT);
+	if (is_chacha20)
+		options |= OP_ALG_AS_FINALIZE;
+	append_operation(desc, options);
 
 	/* Perform operation */
 	skcipher_append_src_dst(desc);
 
 	/* Store IV */
-	if (ivsize)
+	if (!is_chacha20 && ivsize)
 		append_seq_store(desc, ivsize, LDST_SRCDST_BYTE_CONTEXT |
 				 LDST_CLASS_1_CCB | (ctx1_iv_off <<
 				 LDST_OFFSET_SHIFT));
@@ -1451,6 +1455,8 @@ void cnstr_shdsc_skcipher_decap(u32 * const desc, struct alginfo *cdata,
 				const u32 ctx1_iv_off)
 {
 	u32 *key_jump_cmd;
+	bool is_chacha20 = ((cdata->algtype & OP_ALG_ALGSEL_MASK) ==
+			    OP_ALG_ALGSEL_CHACHA20);
 
 	init_sh_desc(desc, HDR_SHARE_SERIAL | HDR_SAVECTX);
 	/* Skip if already shared */
@@ -1499,7 +1505,7 @@ void cnstr_shdsc_skcipher_decap(u32 * const desc, struct alginfo *cdata,
 	skcipher_append_src_dst(desc);
 
 	/* Store IV */
-	if (ivsize)
+	if (!is_chacha20 && ivsize)
 		append_seq_store(desc, ivsize, LDST_SRCDST_BYTE_CONTEXT |
 				 LDST_CLASS_1_CCB | (ctx1_iv_off <<
 				 LDST_OFFSET_SHIFT));
@@ -1518,7 +1524,13 @@ EXPORT_SYMBOL(cnstr_shdsc_skcipher_decap);
  */
 void cnstr_shdsc_xts_skcipher_encap(u32 * const desc, struct alginfo *cdata)
 {
-	__be64 sector_size = cpu_to_be64(512);
+	/*
+	 * Set sector size to a big value, practically disabling
+	 * sector size segmentation in xts implementation. We cannot
+	 * take full advantage of this HW feature with existing
+	 * crypto API / dm-crypt SW architecture.
+	 */
+	__be64 sector_size = cpu_to_be64(BIT(15));
 	u32 *key_jump_cmd;
 
 	init_sh_desc(desc, HDR_SHARE_SERIAL | HDR_SAVECTX);
@@ -1571,7 +1583,13 @@ EXPORT_SYMBOL(cnstr_shdsc_xts_skcipher_encap);
  */
 void cnstr_shdsc_xts_skcipher_decap(u32 * const desc, struct alginfo *cdata)
 {
-	__be64 sector_size = cpu_to_be64(512);
+	/*
+	 * Set sector size to a big value, practically disabling
+	 * sector size segmentation in xts implementation. We cannot
+	 * take full advantage of this HW feature with existing
+	 * crypto API / dm-crypt SW architecture.
+	 */
+	__be64 sector_size = cpu_to_be64(BIT(15));
 	u32 *key_jump_cmd;
 
 	init_sh_desc(desc, HDR_SHARE_SERIAL | HDR_SAVECTX);
drivers/crypto/ccree/cc_buffer_mgr.c +37 -39

137 lines not on this page · raw message

drivers/crypto/ccree/cc_buffer_mgr.h +1 -0
index af434872c6ff..827b6cb1236e 100644
@@ -25,6 +25,7 @@ enum cc_sg_cpy_direct {
 
 struct cc_mlli {
 	cc_sram_addr_t sram_addr;
+	unsigned int mapped_nents;
 	unsigned int nents; //sg nents
 	unsigned int mlli_nents; //mlli nents might be different than the above
 };
drivers/crypto/mxs-dcp.c +28 -30

83 lines not on this page · raw message

drivers/firmware/arm_sdei.c +15 -17
index 9cd70d1a5622..eb2df89d4924 100644
@@ -491,11 +491,6 @@ static int _sdei_event_unregister(struct sdei_event *event)
 {
 	lockdep_assert_held(&sdei_events_lock);
 
-	spin_lock(&sdei_list_lock);
-	event->reregister = false;
-	event->reenable = false;
-	spin_unlock(&sdei_list_lock);
-
 	if (event->type == SDEI_EVENT_TYPE_SHARED)
 		return sdei_api_event_unregister(event->event_num);
 
@@ -518,6 +513,11 @@ int sdei_event_unregister(u32 event_num)
 			break;
 		}
 
+		spin_lock(&sdei_list_lock);
+		event->reregister = false;
+		event->reenable = false;
+		spin_unlock(&sdei_list_lock);
+
 		err = _sdei_event_unregister(event);
 		if (err)
 			break;
@@ -585,26 +585,15 @@ static int _sdei_event_register(struct sdei_event *event)
 
 	lockdep_assert_held(&sdei_events_lock);
 
-	spin_lock(&sdei_list_lock);
-	event->reregister = true;
-	spin_unlock(&sdei_list_lock);
-
 	if (event->type == SDEI_EVENT_TYPE_SHARED)
 		return sdei_api_event_register(event->event_num,
 					       sdei_entry_point,
 					       event->registered,
 					       SDEI_EVENT_REGISTER_RM_ANY, 0);
 
-
 	err = sdei_do_cross_call(_local_event_register, event);
-	if (err) {
-		spin_lock(&sdei_list_lock);
-		event->reregister = false;
-		event->reenable = false;
-		spin_unlock(&sdei_list_lock);
-
+	if (err)
 		sdei_do_cross_call(_local_event_unregister, event);
-	}
 
 	return err;
 }
@@ -632,8 +621,17 @@ int sdei_event_register(u32 event_num, sdei_event_callback *cb, void *arg)
 			break;
 		}
 
+		spin_lock(&sdei_list_lock);
+		event->reregister = true;
+		spin_unlock(&sdei_list_lock);
+
 		err = _sdei_event_register(event);
 		if (err) {
+			spin_lock(&sdei_list_lock);
+			event->reregister = false;
+			event->reenable = false;
+			spin_unlock(&sdei_list_lock);
+
 			sdei_event_destroy(event);
 			pr_warn("Failed to register event %u: %d\n", event_num,
 				err);
drivers/firmware/efi/efi.c +1 -1
index ad8a4bc074fb..e3861d267d9a 100644
@@ -562,7 +562,7 @@ int __init efi_config_parse_tables(void *config_tables, int count, int sz,
 		}
 	}
 
-	if (efi_enabled(EFI_MEMMAP))
+	if (!IS_ENABLED(CONFIG_X86_32) && efi_enabled(EFI_MEMMAP))
 		efi_memattr_init();
 
 	efi_tpm_eventlog_init();
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -2
index 13694d5eba47..f423b5384705 100644
@@ -2176,8 +2176,6 @@ static int amdgpu_device_ip_suspend_phase1(struct amdgpu_device *adev)
 {
 	int i, r;
 
-	amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
-	amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
 
 	for (i = adev->num_ip_blocks - 1; i >= 0; i--) {
 		if (!adev->ip_blocks[i].status.valid)
@@ -3070,6 +3068,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
 		}
 	}
 
+	amdgpu_device_set_pg_state(adev, AMD_PG_STATE_UNGATE);
+	amdgpu_device_set_cg_state(adev, AMD_CG_STATE_UNGATE);
+
 	amdgpu_amdkfd_suspend(adev);
 
 	amdgpu_ras_suspend(adev);
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2 -0
index 40034efa64bb..c34ddaa65324 100644
@@ -1026,6 +1026,8 @@ static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev)
 			adev->gfx.mec_fw_write_wait = true;
 		break;
 	default:
+		adev->gfx.me_fw_write_wait = true;
+		adev->gfx.mec_fw_write_wait = true;
 		break;
 	}
 }
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6 -0
index e5283dafc414..9a083cd80133 100644
@@ -184,6 +184,7 @@ static int renoir_print_clk_levels(struct smu_context *smu,
 	uint32_t cur_value = 0, value = 0, count = 0, min = 0, max = 0;
 	DpmClocks_t *clk_table = smu->smu_table.clocks_table;
 	SmuMetrics_t metrics;
+	bool cur_value_match_level = false;
 
 	if (!clk_table || clk_type >= SMU_CLK_COUNT)
 		return -EINVAL;
@@ -243,8 +244,13 @@ static int renoir_print_clk_levels(struct smu_context *smu,
 		GET_DPM_CUR_FREQ(clk_table, clk_type, i, value);
 		size += sprintf(buf + size, "%d: %uMhz %s\n", i, value,
 				cur_value == value ? "*" : "");
+		if (cur_value == value)
+			cur_value_match_level = true;
 	}
 
+	if (!cur_value_match_level)
+		size += sprintf(buf + size, "   %uMhz *\n", cur_value);
+
 	return size;
 }
 
drivers/gpu/drm/amd/powerplay/renoir_ppt.h +1 -1
index 2a390ddd37dd..89cd6da118a3 100644
@@ -37,7 +37,7 @@ extern void renoir_set_ppt_funcs(struct smu_context *smu);
 			freq = table->SocClocks[dpm_level].Freq;	\
 			break;						\
 		case SMU_MCLK:						\
-			freq = table->MemClocks[dpm_level].Freq;	\
+			freq = table->FClocks[dpm_level].Freq;	\
 			break;						\
 		case SMU_DCEFCLK:					\
 			freq = table->DcfClocks[dpm_level].Freq;	\
drivers/gpu/drm/drm_dp_mst_topology.c +6 -13
index c5e9e2305fff..4b7aaad07423 100644
@@ -2694,9 +2694,9 @@ static bool drm_dp_get_vc_payload_bw(int dp_link_bw,
 int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool mst_state)
 {
 	int ret = 0;
-	int i = 0;
 	struct drm_dp_mst_branch *mstb = NULL;
 
+	mutex_lock(&mgr->payload_lock);
 	mutex_lock(&mgr->lock);
 	if (mst_state == mgr->mst_state)
 		goto out_unlock;
@@ -2755,25 +2755,18 @@ int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool ms
 		/* this can fail if the device is gone */
 		drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL, 0);
 		ret = 0;
-		mutex_lock(&mgr->payload_lock);
-		memset(mgr->payloads, 0, mgr->max_payloads * sizeof(struct drm_dp_payload));
+		memset(mgr->payloads, 0,
+		       mgr->max_payloads * sizeof(mgr->payloads[0]));
+		memset(mgr->proposed_vcpis, 0,
+		       mgr->max_payloads * sizeof(mgr->proposed_vcpis[0]));
 		mgr->payload_mask = 0;
 		set_bit(0, &mgr->payload_mask);
-		for (i = 0; i < mgr->max_payloads; i++) {
-			struct drm_dp_vcpi *vcpi = mgr->proposed_vcpis[i];
-
-			if (vcpi) {
-				vcpi->vcpi = 0;
-				vcpi->num_slots = 0;
-			}
-			mgr->proposed_vcpis[i] = NULL;
-		}
 		mgr->vcpi_mask = 0;
-		mutex_unlock(&mgr->payload_lock);
 	}
 
 out_unlock:
 	mutex_unlock(&mgr->lock);
+	mutex_unlock(&mgr->payload_lock);
 	if (mstb)
 		drm_dp_mst_topology_put_mstb(mstb);
 	return ret;
drivers/gpu/drm/drm_pci.c +2 -21
index a86a3ab2771c..235729f4aadb 100644
@@ -51,8 +51,6 @@
 drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align)
 {
 	drm_dma_handle_t *dmah;
-	unsigned long addr;
-	size_t sz;
 
 	/* pci_alloc_consistent only guarantees alignment to the smallest
 	 * PAGE_SIZE order which is greater than or equal to the requested size.
@@ -68,20 +66,13 @@ drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t ali
 	dmah->size = size;
 	dmah->vaddr = dma_alloc_coherent(&dev->pdev->dev, size,
 					 &dmah->busaddr,
-					 GFP_KERNEL | __GFP_COMP);
+					 GFP_KERNEL);
 
 	if (dmah->vaddr == NULL) {
 		kfree(dmah);
 		return NULL;
 	}
 
-	/* XXX - Is virt_to_page() legal for consistent mem? */
-	/* Reserve */
-	for (addr = (unsigned long)dmah->vaddr, sz = size;
-	     sz > 0; addr += PAGE_SIZE, sz -= PAGE_SIZE) {
-		SetPageReserved(virt_to_page((void *)addr));
-	}
-
 	return dmah;
 }
 
@@ -94,19 +85,9 @@ EXPORT_SYMBOL(drm_pci_alloc);
  */
 void __drm_legacy_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah)
 {
-	unsigned long addr;
-	size_t sz;
-
-	if (dmah->vaddr) {
-		/* XXX - Is virt_to_page() legal for consistent mem? */
-		/* Unreserve */
-		for (addr = (unsigned long)dmah->vaddr, sz = dmah->size;
-		     sz > 0; addr += PAGE_SIZE, sz -= PAGE_SIZE) {
-			ClearPageReserved(virt_to_page((void *)addr));
-		}
+	if (dmah->vaddr)
 		dma_free_coherent(&dev->pdev->dev, dmah->size, dmah->vaddr,
 				  dmah->busaddr);
-	}
 }
 
 /**
drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +52 -7

108 lines not on this page · raw message

drivers/gpu/drm/i915/display/intel_ddi.c +5 -1
index 8eb2b3ec01ed..b3c77c988d1c 100644
@@ -2124,7 +2124,11 @@ static void intel_ddi_get_power_domains(struct intel_encoder *encoder,
 		return;
 
 	dig_port = enc_to_dig_port(&encoder->base);
-	intel_display_power_get(dev_priv, dig_port->ddi_io_power_domain);
+
+	if (!intel_phy_is_tc(dev_priv, phy) ||
+	    dig_port->tc_mode != TC_PORT_TBT_ALT)
+		intel_display_power_get(dev_priv,
+					dig_port->ddi_io_power_domain);
 
 	/*
 	 * AUX power is only needed for (e)DP mode, and for HDMI mode on TC
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +5 -3
index bd4e41380777..3d8dff2d894a 100644
@@ -931,11 +931,13 @@ static inline struct i915_ggtt *cache_to_ggtt(struct reloc_cache *cache)
 
 static void reloc_gpu_flush(struct reloc_cache *cache)
 {
-	GEM_BUG_ON(cache->rq_size >= cache->rq->batch->obj->base.size / sizeof(u32));
+	struct drm_i915_gem_object *obj = cache->rq->batch->obj;
+
+	GEM_BUG_ON(cache->rq_size >= obj->base.size / sizeof(u32));
 	cache->rq_cmd[cache->rq_size] = MI_BATCH_BUFFER_END;
 
-	__i915_gem_object_flush_map(cache->rq->batch->obj, 0, cache->rq_size);
-	i915_gem_object_unpin_map(cache->rq->batch->obj);
+	__i915_gem_object_flush_map(obj, 0, sizeof(u32) * (cache->rq_size + 1));
+	i915_gem_object_unpin_map(obj);
 
 	intel_gt_chipset_flush(cache->rq->engine->gt);
 
drivers/gpu/drm/scheduler/sched_main.c +2 -0
index 2af64459b3d7..dfb29e6eeff1 100644
@@ -627,7 +627,9 @@ static void drm_sched_process_job(struct dma_fence *f, struct dma_fence_cb *cb)
 
 	trace_drm_sched_process_job(s_fence);
 
+	dma_fence_get(&s_fence->finished);
 	drm_sched_fence_finished(s_fence);
+	dma_fence_put(&s_fence->finished);
 	wake_up_interruptible(&sched->wake_up_worker);
 }
 
drivers/i2c/busses/i2c-pca-platform.c +1 -1
index a7a81846d5b1..635dd697ac0b 100644
@@ -140,7 +140,7 @@ static int i2c_pca_pf_probe(struct platform_device *pdev)
 	int ret = 0;
 	int irq;
 
-	irq = platform_get_irq(pdev, 0);
+	irq = platform_get_irq_optional(pdev, 0);
 	/* If irq is 0, we do polling. */
 	if (irq < 0)
 		irq = 0;
drivers/i2c/busses/i2c-st.c +1 -0
index 54e1fc8a495e..f7f7b5b64720 100644
@@ -434,6 +434,7 @@ static void st_i2c_wr_fill_tx_fifo(struct st_i2c_dev *i2c_dev)
 /**
  * st_i2c_rd_fill_tx_fifo() - Fill the Tx FIFO in read mode
  * @i2c_dev: Controller's private data
+ * @max: Maximum amount of data to fill into the Tx FIFO
  *
  * This functions fills the Tx FIFO with fixed pattern when
  * in read mode to trigger clock.
drivers/input/keyboard/tm2-touchkey.c +11 -0
index 14b55bacdd0f..fb078e049413 100644
@@ -75,6 +75,14 @@ static struct touchkey_variant aries_touchkey_variant = {
 	.cmd_led_off = ARIES_TOUCHKEY_CMD_LED_OFF,
 };
 
+static const struct touchkey_variant tc360_touchkey_variant = {
+	.keycode_reg = 0x00,
+	.base_reg = 0x00,
+	.fixed_regulator = true,
+	.cmd_led_on = TM2_TOUCHKEY_CMD_LED_ON,
+	.cmd_led_off = TM2_TOUCHKEY_CMD_LED_OFF,
+};
+
 static int tm2_touchkey_led_brightness_set(struct led_classdev *led_dev,
 					    enum led_brightness brightness)
 {
@@ -327,6 +335,9 @@ static const struct of_device_id tm2_touchkey_of_match[] = {
 	}, {
 		.compatible = "cypress,aries-touchkey",
 		.data = &aries_touchkey_variant,
+	}, {
+		.compatible = "coreriver,tc360-touchkey",
+		.data = &tc360_touchkey_variant,
 	},
 	{ },
 };
drivers/input/serio/i8042-x86ia64io.h +11 -0
index dc974c288e88..08e919dbeb5d 100644
@@ -530,6 +530,17 @@ static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = {
 			DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo LaVie Z"),
 		},
 	},
+	{
+		/*
+		 * Acer Aspire 5738z
+		 * Touchpad stops working in mux mode when dis- + re-enabled
+		 * with the touchpad enable/disable toggle hotkey
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5738"),
+		},
+	},
 	{ }
 };
 
drivers/irqchip/irq-gic-v3-its.c +6 -0
index 11f3b50dcdcb..263cf9240b16 100644
@@ -2985,12 +2985,18 @@ static int its_vpe_set_irqchip_state(struct irq_data *d,
 	return 0;
 }
 
+static int its_vpe_retrigger(struct irq_data *d)
+{
+	return !its_vpe_set_irqchip_state(d, IRQCHIP_STATE_PENDING, true);
+}
+
 static struct irq_chip its_vpe_irq_chip = {
 	.name			= "GICv4-vpe",
 	.irq_mask		= its_vpe_mask_irq,
 	.irq_unmask		= its_vpe_unmask_irq,
 	.irq_eoi		= irq_chip_eoi_parent,
 	.irq_set_affinity	= its_vpe_set_affinity,
+	.irq_retrigger		= its_vpe_retrigger,
 	.irq_set_irqchip_state	= its_vpe_set_irqchip_state,
 	.irq_set_vcpu_affinity	= its_vpe_set_vcpu_affinity,
 };
drivers/irqchip/irq-versatile-fpga.c +13 -5
index 928858dada75..f1386733d3bc 100644
@@ -6,6 +6,7 @@
 #include <linux/irq.h>
 #include <linux/io.h>
 #include <linux/irqchip.h>
+#include <linux/irqchip/chained_irq.h>
 #include <linux/irqchip/versatile-fpga.h>
 #include <linux/irqdomain.h>
 #include <linux/module.h>
@@ -68,12 +69,16 @@ static void fpga_irq_unmask(struct irq_data *d)
 
 static void fpga_irq_handle(struct irq_desc *desc)
 {
+	struct irq_chip *chip = irq_desc_get_chip(desc);
 	struct fpga_irq_data *f = irq_desc_get_handler_data(desc);
-	u32 status = readl(f->base + IRQ_STATUS);
+	u32 status;
+
+	chained_irq_enter(chip, desc);
 
+	status = readl(f->base + IRQ_STATUS);
 	if (status == 0) {
 		do_bad_IRQ(desc);
-		return;
+		goto out;
 	}
 
 	do {
@@ -82,6 +87,9 @@ static void fpga_irq_handle(struct irq_desc *desc)
 		status &= ~(1 << irq);
 		generic_handle_irq(irq_find_mapping(f->domain, irq));
 	} while (status);
+
+out:
+	chained_irq_exit(chip, desc);
 }
 
 /*
@@ -204,6 +212,9 @@ int __init fpga_irq_of_init(struct device_node *node,
 	if (of_property_read_u32(node, "valid-mask", &valid_mask))
 		valid_mask = 0;
 
+	writel(clear_mask, base + IRQ_ENABLE_CLEAR);
+	writel(clear_mask, base + FIQ_ENABLE_CLEAR);
+
 	/* Some chips are cascaded from a parent IRQ */
 	parent_irq = irq_of_parse_and_map(node, 0);
 	if (!parent_irq) {
@@ -213,9 +224,6 @@ int __init fpga_irq_of_init(struct device_node *node,
 
 	fpga_irq_init(base, node->name, 0, parent_irq, valid_mask, node);
 
-	writel(clear_mask, base + IRQ_ENABLE_CLEAR);
-	writel(clear_mask, base + FIQ_ENABLE_CLEAR);
-
 	/*
 	 * On Versatile AB/PB, some secondary interrupts have a direct
 	 * pass-thru to the primary controller for IRQs 20 and 22-31 which need
drivers/md/dm-clone-metadata.c +26 -18

113 lines not on this page · raw message

drivers/md/dm-clone-metadata.h +4 -2
index c7848c49aef8..d848b8799c07 100644
@@ -44,7 +44,9 @@ int dm_clone_set_region_hydrated(struct dm_clone_metadata *cmd, unsigned long re
  * @start: Starting region number
  * @nr_regions: Number of regions in the range
  *
- * This function doesn't block, so it's safe to call it from interrupt context.
+ * This function doesn't block, but since it uses spin_lock_irq()/spin_unlock_irq()
+ * it's NOT safe to call it from any context where interrupts are disabled, e.g.,
+ * from interrupt context.
  */
 int dm_clone_cond_set_range(struct dm_clone_metadata *cmd, unsigned long start,
 			    unsigned long nr_regions);
@@ -154,7 +156,7 @@ bool dm_clone_is_range_hydrated(struct dm_clone_metadata *cmd,
 /*
  * Returns the number of hydrated regions.
  */
-unsigned long dm_clone_nr_of_hydrated_regions(struct dm_clone_metadata *cmd);
+unsigned int dm_clone_nr_of_hydrated_regions(struct dm_clone_metadata *cmd);
 
 /*
  * Returns the first unhydrated region with region_nr >= @start
drivers/md/dm-clone-target.c +57 -33

50 lines not on this page · raw message

drivers/md/dm-integrity.c +2 -2
index 145bc2e7eaf0..56248773a9e0 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-verity-fec.c +1 -0
index 3ceeb6b404ed..49147e634046 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-writecache.c +5 -1
index 184dabce1bad..5bf60d6be96a 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-zoned-metadata.c +0 -1
index 5205cf9bbfd9..e0a6cf9239f1 100644

Lines of this file are not shown. View the raw message.

drivers/md/md.c +1 -1
index 4e7c9f398bc6..6b69a12ca2d8 100644

Lines of this file are not shown. View the raw message.

drivers/media/i2c/ov5695.c +31 -18

49 lines not on this page · raw message

drivers/media/i2c/video-i2c.c +1 -1
index 078141712c88..0b977e73ceb2 100644

Lines of this file are not shown. View the raw message.

drivers/media/platform/qcom/venus/firmware.c +8 -2
index d3d1748a7ef6..33f70e1def94 100644

Lines of this file are not shown. View the raw message.

drivers/media/platform/qcom/venus/hfi_parser.c +1 -0
index 2293d936e49c..7f515a4b9bd1 100644

Lines of this file are not shown. View the raw message.

drivers/media/platform/ti-vpe/cal.c +16 -13
index 223161f9c403..955a49b8e9c0 100644

Lines of this file are not shown. View the raw message.

drivers/media/rc/keymaps/Makefile +1 -0
index a56fc634d2d6..ea91a9afa6a0 100644

Lines of this file are not shown. View the raw message.

drivers/media/rc/keymaps/rc-videostrong-kii-pro.c new file +83 -0

83 lines not on this page · raw message

drivers/mfd/dln2.c +7 -2
index 7841c11411d0..4faa8d2e5d04 100644

Lines of this file are not shown. View the raw message.

drivers/mmc/host/sdhci-of-esdhc.c +39 -4

43 lines not on this page · raw message

drivers/mmc/host/sdhci.c +22 -19

41 lines not on this page · raw message

drivers/mmc/host/sdhci.h +2 -0
index fe83ece6965b..76e69288632d 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/nand/spi/core.c +7 -10
index 89f6beefb01c..5750c45019d8 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c +3 -0
index 58a039c3224a..af1f40cbccc8 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c +4 -1
index eb53c15b13f3..5f2d57d1b2d3 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c +2 -49

51 lines not on this page · raw message

drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c +19 -7
index 79243b626ddb..c0b6bcb067cd 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c +3 -2
index c1a6be6bf6a8..8995e32dd1c0 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/huawei/hinic/hinic_rx.c +3 -0
index 2695ad69fca6..815649e37cb1 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/huawei/hinic/hinic_tx.c +3 -1
index 0e13d1c7e474..365016450bdb 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/neterion/vxge/vxge-config.h +1 -1
index e678ba379598..628fa9b2f741 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/neterion/vxge/vxge-main.h +7 -7
index 59a57ff5e96a..9c86f4f9cd42 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c +1 -1
index 07f9067affc6..cda5b0a9e948 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +19 -12
index fbf4cbcf1a65..02cdbb22d335 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +10 -4
index 5150551c28be..508325cc105d 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath/ath9k/main.c +3 -0
index 34121fbf32e3..bd7e757a0f92 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c +21 -8
index 24df3182ec9e..5b2bd603febf 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/fc.c +2 -12
index 59474bd0c728..83ac88924f25 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/target/fcloop.c +0 -1
index 1c50af6219f3..b50b53db3746 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/target/tcp.c +1 -1
index 2fe34fd4c3f3..22014e76d771 100644

Lines of this file are not shown. View the raw message.

drivers/pci/controller/dwc/pcie-qcom.c +7 -1
index 7e581748ee9f..70ded8900e28 100644

Lines of this file are not shown. View the raw message.

drivers/pci/endpoint/pci-epc-mem.c +8 -2
index 2bf8bd1f0563..0471643cf536 100644

Lines of this file are not shown. View the raw message.

drivers/pci/hotplug/pciehp_hpc.c +7 -7
index 86d97f3112f0..d74a71712cde 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/aspm.c +2 -2
index 652ef23bba35..32c34330e5a6 100644

Lines of this file are not shown. View the raw message.

drivers/pci/quirks.c +73 -7

80 lines not on this page · raw message

drivers/pci/switch/switchtec.c +1 -1
index cc43c855452f..2c9c3061894b 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/asus-wmi.c +4 -1
index 982f0cc8270c..41e28552b2ce 100644

Lines of this file are not shown. View the raw message.

drivers/remoteproc/qcom_q6v5_mss.c +42 -12

54 lines not on this page · raw message

drivers/remoteproc/remoteproc_virtio.c +7 -0
index 8c07cb2ca8ba..31a62a0b470e 100644

Lines of this file are not shown. View the raw message.

drivers/s390/scsi/zfcp_erp.c +1 -1
index 96f0d34e9459..cb84125ab80d 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc.h +10 -0
index 691acbdcc46d..8943d42fc406 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_crtn.h +7 -1
index b2ad8c750486..0f019e889ba6 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_ct.c +37 -11

48 lines not on this page · raw message

drivers/scsi/lpfc/lpfc_hbadisc.c +42 -25

67 lines not on this page · raw message

drivers/scsi/lpfc/lpfc_init.c +199 -5

204 lines not on this page · raw message

drivers/scsi/lpfc/lpfc_nvme.c +0 -2
index 8e0f03ef346b..a227e36cbdc2 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_scsi.c +3 -1
index 40706cb842fd..cbab15d299ca 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/lpfc/lpfc_sli.c +159 -5

164 lines not on this page · raw message

drivers/scsi/lpfc/lpfc_sli4.h +18 -3
index 0d4882a9e634..c60a636a8894 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/mpt3sas/mpt3sas_scsih.c +4 -4
index c8e512ba6d39..aff630fccb07 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_nvme.c +0 -1
index bfcd02fdf2b8..941aa53363f5 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/ufs/ufshcd.c +2 -1
index d9ea0ae4f374..a6863b51a1d0 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/ufs/ufshcd.h +6 -0
index 5260e594e0b9..4f1dec68a853 100644

Lines of this file are not shown. View the raw message.

drivers/soc/fsl/dpio/dpio-driver.c +4 -4
index 70014ecce2a7..7b642c330977 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-fsl-dspi.c +6 -13
index d47bd26577b3..68e33457c814 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/allegro-dvt/allegro-core.c +4 -1
index 6f0cd0784786..c5a262a12e40 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/hantro/hantro_h1_jpeg_enc.c +7 -2
index ecd34a7db190..8b76f1f13b06 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/hantro/rk3399_vpu_hw_jpeg_enc.c +7 -2
index 06162f569b5e..4f9272e5b8d9 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/imx/imx7-media-csi.c +4 -0
index bfd6b5fbf484..d24897d06947 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/imx/imx7-mipi-csis.c +1 -1
index e50b1f88e25b..6f628195c4da 100644

Lines of this file are not shown. View the raw message.

drivers/staging/wilc1000/wilc_wlan.c +0 -1
index 771d8cb68dc1..02f551536e18 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc3/core.c +5 -0
index cede7a8e3605..526c275ad0bc 100644

Lines of this file are not shown. View the raw message.

drivers/usb/dwc3/core.h +4 -0
index 77c4a9abe365..3ecc69c5b150 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/composite.c +9 -0
index d7871636fced..d98ca1566e95 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/function/f_fs.c +1 -0
index a9a711e04614..87fdeb042c67 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci.c +3 -1
index 9b3b1b16eafb..2f49a7b3ce85 100644

Lines of this file are not shown. View the raw message.

drivers/vfio/platform/vfio_platform.c +1 -1
index ae1a5eb98620..1e2769010089 100644

Lines of this file are not shown. View the raw message.

fs/afs/rxrpc.c +2 -1
index ef1d09f8920b..52aa90fb4fbd 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/async-thread.c +8 -0
index 3f3110975f88..11be02459b87 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/async-thread.h +1 -0
index c5bf2b117c05..714ab6855423 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/delayed-inode.c +13 -0
index c7a53e79c66d..5bcccfbcc7c1 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/disk-io.c +25 -2
index 5cdd1b51285b..273d1ccdd45d 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/extent_io.c +34 -1
index 284540cdbbd9..8aab286f2028 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/file.c +11 -0
index 5739b8fc7fff..3cfbccacef7f 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/qgroup.c +9 -2
index 286c8c11c8d3..590defdf8860 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/relocation.c +33 -29

62 lines not on this page · raw message

fs/cifs/file.c +1 -1
index 35c55cf38a35..b095094c0842 100644

Lines of this file are not shown. View the raw message.

fs/cifs/inode.c +12 -11
index 7c5e983fe385..5e6bc8fa4e46 100644

Lines of this file are not shown. View the raw message.

fs/debugfs/file.c +14 -4
index 8fd45eb89424..b43960794922 100644

Lines of this file are not shown. View the raw message.

fs/erofs/utils.c +1 -1
index d92b3e753a6f..3e28fd082df0 100644

Lines of this file are not shown. View the raw message.

fs/exec.c +1 -1
index c27231234764..fc2870f2aca9 100644

Lines of this file are not shown. View the raw message.

fs/ext4/inode.c +1 -1
index 70ef4a714b33..d2edd6e9072f 100644

Lines of this file are not shown. View the raw message.

fs/filesystems.c +3 -1
index 9135646e41ac..5e1a19013373 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/glock.c +3 -0
index 0290a22ebccf..21820a5b388f 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/glops.c +26 -1
index ff213690e364..83cf64da474c 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/log.c +1 -1
index 2aed73666a65..47bc27d4169e 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/log.h +1 -0
index c762da494546..52b9bf27e918 100644

Lines of this file are not shown. View the raw message.

fs/hfsplus/attributes.c +4 -0
index e6d554476db4..eeebe80c6be4 100644

Lines of this file are not shown. View the raw message.

fs/io_uring.c +11 -7
index e37b84146453..b2ccb908f6b6 100644

Lines of this file are not shown. View the raw message.

fs/nfs/pagelist.c +24 -24

48 lines not on this page · raw message

fs/nfs/write.c +1 -0
index 913eb37c249b..58c8317dd7d8 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfsctl.c +1 -0
index 11b42c523f04..d77c5261c03c 100644

Lines of this file are not shown. View the raw message.

fs/ocfs2/alloc.c +4 -0
index f9baefc76cf9..0a6fe7d5aba7 100644

Lines of this file are not shown. View the raw message.

fs/pstore/inode.c +4 -1
index 7fbe8f058220..d99b5d39aa90 100644

Lines of this file are not shown. View the raw message.

fs/pstore/platform.c +2 -2
index 3d7024662d29..cdf5b8ae2583 100644

Lines of this file are not shown. View the raw message.

include/acpi/acpixf.h +1 -1
index 4010c42e40bd..00441e24a5b9 100644

Lines of this file are not shown. View the raw message.

include/linux/cpu.h +9 -3
index bc6c879bd110..4e9822cb11f3 100644

Lines of this file are not shown. View the raw message.

include/linux/devfreq_cooling.h +1 -1
index 4635f95000a4..79a6e37a1d6f 100644

Lines of this file are not shown. View the raw message.

include/linux/iocontext.h +1 -0
index dba15ca8e60b..1dcd9198beb7 100644

Lines of this file are not shown. View the raw message.

include/linux/nvme-fc-driver.h +0 -4
index 6d0d70f3219c..10f81629b9ce 100644

Lines of this file are not shown. View the raw message.

include/linux/pci-epc.h +3 -0
index f641badc2c61..0c12d69dde92 100644

Lines of this file are not shown. View the raw message.

include/linux/sched.h +2 -2
index b968d736833b..5710b80f8050 100644

Lines of this file are not shown. View the raw message.

include/linux/xarray.h +5 -1
index 86eecbd98e84..3b257c97837d 100644

Lines of this file are not shown. View the raw message.

include/media/rc-map.h +1 -0
index afd2ab31bdf2..c2ef3906e1cd 100644

Lines of this file are not shown. View the raw message.

include/net/af_rxrpc.h +7 -1
index 299240df79e4..04e97bab6f28 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/verifier.c +72 -36

108 lines not on this page · raw message

kernel/cpu.c +2 -2
index 406828fb3038..d7890c1285bf 100644

Lines of this file are not shown. View the raw message.

kernel/dma/mapping.c +2 -0
index d9334f31a5af..8682a5305cb3 100644

Lines of this file are not shown. View the raw message.

kernel/irq/debugfs.c +9 -2
index a949bd39e343..d44c8fd17609 100644

Lines of this file are not shown. View the raw message.

kernel/irq/irqdomain.c +5 -5
index 480df3659720..c776b8e86fbc 100644

Lines of this file are not shown. View the raw message.

kernel/kmod.c +2 -2
index bc6addd9152b..a2de58de6ab6 100644

Lines of this file are not shown. View the raw message.

kernel/locking/lockdep.c +4 -0
index 35d3b6925b1e..9ab1a965c3b9 100644

Lines of this file are not shown. View the raw message.

kernel/sched/core.c +0 -1
index e921126aec84..195d0019e6bb 100644

Lines of this file are not shown. View the raw message.

kernel/sched/fair.c +22 -4
index f32ce3a359fa..eeaf34d65742 100644

Lines of this file are not shown. View the raw message.

kernel/sched/sched.h +7 -1
index e5e2605778c9..c7e7481968bf 100644

Lines of this file are not shown. View the raw message.

kernel/seccomp.c +1 -0
index 614a557a0814..2c697ce7be21 100644

Lines of this file are not shown. View the raw message.

kernel/signal.c +1 -1
index eea748174ade..7d3d35eb7a0b 100644

Lines of this file are not shown. View the raw message.

kernel/time/sched_clock.c +5 -4
index dbd69052eaa6..a5538dd76a81 100644

Lines of this file are not shown. View the raw message.

kernel/trace/bpf_trace.c +1 -1
index 89bdac61233d..2372b861f2cf 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_kprobe.c +2 -0
index 3f54dc2f6e1c..2f0f7fcee73e 100644

Lines of this file are not shown. View the raw message.

lib/test_xarray.c +37 -0
index 8c7d7a8468b8..d4f97925dbd8 100644

Lines of this file are not shown. View the raw message.

lib/xarray.c +3 -1
index acd1fad2e862..08d71c7b7599 100644

Lines of this file are not shown. View the raw message.

mm/memcontrol.c +3 -0
index 5d0575d633d2..8159000781be 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/af_rxrpc.c +2 -2
index a293238fe1e7..2921fc276713 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/ar-internal.h +2 -2
index 394d18857979..3eb1ab40ca5c 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/call_object.c +1 -2
index c9f34b0a11df..f07970207b54 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/conn_client.c +10 -3
index ea7d4c21f889..f2a1a5dbb5a7 100644

Lines of this file are not shown. View the raw message.

net/rxrpc/sendmsg.c +54 -17

71 lines not on this page · raw message

net/wireless/scan.c +5 -1
index aef240fdf8df..328402ab64a3 100644

Lines of this file are not shown. View the raw message.

security/keys/key.c +1 -1
index 764f4c57913e..e9845d0d8d34 100644

Lines of this file are not shown. View the raw message.

security/keys/keyctl.c +2 -2
index 9b898c969558..d1a3dea58dee 100644

Lines of this file are not shown. View the raw message.

sound/core/oss/pcm_plugin.c +24 -8
index 732bbede7ebf..8539047145de 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_beep.c +5 -1
index b7d9160ed868..c6e1e03a5e4d 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_intel.c +16 -0
index 85beb172d810..1db9d0579c72 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +130 -103

233 lines not on this page · raw message

sound/pci/ice1712/prodigy_hifi.c +2 -2
index 9d71e9d5c9a0..3cf41c11a405 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-dapm.c +7 -1
index ebd785f9aa46..e0ff40b10d85 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-ops.c +2 -2
index f4dc3d445aae..95fc24580f85 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-pcm.c +4 -2
index d978df95c5c6..cc4e9aa80fb0 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-topology.c +1 -1
index b19ecaf0febf..17556a47f727 100644

Lines of this file are not shown. View the raw message.

sound/soc/stm/stm32_sai_sub.c +3 -1
index 10eb4b8e8e7e..d3259de43712 100644

Lines of this file are not shown. View the raw message.

sound/usb/mixer_maps.c +28 -0
index 73baf398c84a..f6a67eecb063 100644

Lines of this file are not shown. View the raw message.

tools/gpio/Makefile +1 -1
index 6080de58861f..6289b8d20dff 100644

Lines of this file are not shown. View the raw message.

tools/perf/Makefile.config +10 -1
index 46f7fba2306c..9832affd5d54 100644

Lines of this file are not shown. View the raw message.

tools/testing/radix-tree/Makefile +2 -2
index 397d6b612502..aa6abfe0749c 100644

Lines of this file are not shown. View the raw message.

tools/testing/radix-tree/iteration_check_2.c new file +87 -0

87 lines not on this page · raw message

tools/testing/radix-tree/main.c +1 -0
index 7a22d6e3732e..f2cbc8e5b97c 100644

Lines of this file are not shown. View the raw message.

tools/testing/radix-tree/test.h +1 -0
index 1ee4b2c0ad10..34dab4d18744 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/reuseport_addr_any.c +4 -0
index c6233935fed1..b8475cb29be7 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/powerpc/mm/.gitignore +1 -0
index 7101ffd08d66..d021172fa2eb 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/vm/map_hugetlb.c +7 -7
index 5a2d7b8efc40..6af951900aa3 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/vm/mlock2-tests.c +37 -196

233 lines not on this page · raw message

tools/testing/selftests/x86/ptrace_syscall.c +6 -2
index 6f22238f3217..12aaa063196e 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.