Skip to contentSkip to conversation

Linux 5.3.9

DISCUSSION Greg KH 1 participant 2 messages Nov 6, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 5.3.9 kernel.

All users of the 5.3 kernel series must upgrade.

The updated 5.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.3.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/admin-guide/kernel-parameters.txt          |    4 
 Documentation/scheduler/sched-bwc.rst                    |   74 +++-
 Makefile                                                 |    2 
 arch/arc/kernel/perf_event.c                             |    4 
 arch/arm64/Kconfig                                       |    2 
 arch/arm64/Makefile                                      |   22 -
 arch/arm64/boot/dts/qcom/Makefile                        |    3 
 arch/arm64/boot/dts/qcom/msm8998-asus-novago-tp370ql.dts |   47 ++
 arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi          |  240 ++++++++++++++
 arch/arm64/boot/dts/qcom/msm8998-hp-envy-x2.dts          |   30 +
 arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts     |   30 +
 arch/arm64/include/asm/pgtable-prot.h                    |   15 
 arch/arm64/include/asm/vdso/compat_barrier.h             |    2 
 arch/arm64/kernel/armv8_deprecated.c                     |    5 
 arch/arm64/kernel/cpu_errata.c                           |    1 
 arch/arm64/kernel/cpufeature.c                           |    1 
 arch/arm64/kernel/entry.S                                |    1 
 arch/arm64/kernel/ftrace.c                               |   12 
 arch/arm64/kernel/vdso32/Makefile                        |   17 -
 arch/mips/fw/sni/sniprom.c                               |    2 
 arch/mips/include/asm/cmpxchg.h                          |    9 
 arch/powerpc/platforms/powernv/smp.c                     |   53 ++-
 arch/riscv/kernel/traps.c                                |   14 
 arch/s390/include/asm/uaccess.h                          |    4 
 arch/s390/include/asm/unwind.h                           |    1 
 arch/s390/kernel/idle.c                                  |   29 +
 arch/s390/kernel/unwind_bc.c                             |   18 -
 arch/s390/mm/cmm.c                                       |   12 
 arch/s390/pci/pci_irq.c                                  |    2 
 arch/um/drivers/ubd_kern.c                               |    8 
 arch/x86/events/amd/core.c                               |   30 +
 arch/x86/include/asm/intel-family.h                      |    3 
 arch/x86/kvm/svm.c                                       |   10 
 arch/x86/kvm/vmx/vmx.c                                   |   14 
 arch/x86/platform/efi/efi.c                              |    3 
 arch/x86/xen/enlighten.c                                 |   28 +
 drivers/block/nbd.c                                      |   25 +
 drivers/dma/imx-sdma.c                                   |    8 
 drivers/dma/qcom/bam_dma.c                               |   19 +
 drivers/dma/tegra210-adma.c                              |    7 
 drivers/dma/ti/cppi41.c                                  |   21 +
 drivers/firmware/efi/cper.c                              |    2 
 drivers/gpio/gpio-max77620.c                             |    6 
 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c              |   14 
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c                   |    2 
 drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c                 |    9 
 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c                  |    9 
 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c                   |    1 
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c       |    4 
 drivers/gpu/drm/i915/display/intel_display.c             |   11 
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c            |   15 
 drivers/gpu/drm/i915/i915_drv.h                          |    2 
 drivers/hid/hid-axff.c                                   |   11 
 drivers/hid/hid-core.c                                   |    7 
 drivers/hid/hid-dr.c                                     |   12 
 drivers/hid/hid-emsff.c                                  |   12 
 drivers/hid/hid-gaff.c                                   |   12 
 drivers/hid/hid-holtekff.c                               |   12 
 drivers/hid/hid-hyperv.c                                 |   56 ---
 drivers/hid/hid-lg2ff.c                                  |   12 
 drivers/hid/hid-lg3ff.c                                  |   11 
 drivers/hid/hid-lg4ff.c                                  |   11 
 drivers/hid/hid-lgff.c                                   |   11 
 drivers/hid/hid-logitech-hidpp.c                         |  248 ++++++++-------
 drivers/hid/hid-microsoft.c                              |   12 
 drivers/hid/hid-sony.c                                   |   12 
 drivers/hid/hid-tmff.c                                   |   12 
 drivers/hid/hid-zpff.c                                   |   12 
 drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c                 |   19 +
 drivers/iio/accel/bmc150-accel-core.c                    |    2 
 drivers/iio/adc/meson_saradc.c                           |   10 
 drivers/iio/imu/adis_buffer.c                            |   10 
 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c             |    4 
 drivers/infiniband/core/cm.c                             |    3 
 drivers/infiniband/core/cma.c                            |    3 
 drivers/infiniband/core/nldev.c                          |   12 
 drivers/infiniband/hw/cxgb4/device.c                     |    7 
 drivers/infiniband/hw/cxgb4/qp.c                         |   10 
 drivers/infiniband/hw/hfi1/sdma.c                        |    5 
 drivers/infiniband/hw/hfi1/tid_rdma.c                    |    5 
 drivers/infiniband/hw/mlx5/devx.c                        |   58 ---
 drivers/infiniband/hw/mlx5/mlx5_ib.h                     |    1 
 drivers/infiniband/hw/mlx5/mr.c                          |   32 +
 drivers/infiniband/sw/siw/siw_qp.c                       |   15 
 drivers/iommu/intel-iommu.c                              |    2 
 drivers/md/dm-snap.c                                     |   94 ++++-
 drivers/misc/fastrpc.c                                   |    1 
 drivers/net/bonding/bond_main.c                          |    2 
 drivers/net/ethernet/mellanox/mlx5/core/mr.c             |    8 
 drivers/net/usb/sr9800.c                                 |    2 
 drivers/net/wireless/ath/ath10k/core.c                   |   15 
 drivers/net/wireless/ath/ath6kl/usb.c                    |    8 
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c              |   16 
 drivers/net/wireless/realtek/rtlwifi/pci.c               |    3 
 drivers/net/wireless/realtek/rtlwifi/ps.c                |    6 
 drivers/net/wireless/realtek/rtw88/rtw8822b.c            |    2 
 drivers/nfc/pn533/usb.c                                  |    9 
 drivers/nvme/host/core.c                                 |  108 ------
 drivers/s390/cio/cio.h                                   |    1 
 drivers/s390/cio/css.c                                   |    7 
 drivers/s390/cio/device.c                                |    2 
 drivers/scsi/qla2xxx/qla_attr.c                          |    7 
 drivers/staging/rtl8188eu/os_dep/usb_intf.c              |    6 
 drivers/target/iscsi/cxgbit/cxgbit_cm.c                  |    3 
 drivers/thunderbolt/nhi.c                                |   22 +
 drivers/thunderbolt/tunnel.c                             |    4 
 drivers/tty/n_hdlc.c                                     |    5 
 drivers/tty/serial/8250/8250_omap.c                      |    5 
 drivers/tty/serial/Kconfig                               |    1 
 drivers/tty/serial/owl-uart.c                            |    2 
 drivers/tty/serial/rda-uart.c                            |    2 
 drivers/tty/serial/serial_mctrl_gpio.c                   |    3 
 drivers/usb/gadget/udc/core.c                            |   11 
 drivers/usb/host/xhci-debugfs.c                          |   24 -
 drivers/usb/host/xhci-ring.c                             |    2 
 drivers/usb/host/xhci.c                                  |   54 ++-
 drivers/usb/misc/ldusb.c                                 |    6 
 drivers/usb/misc/legousbtower.c                          |    2 
 drivers/usb/serial/whiteheat.c                           |   13 
 drivers/usb/serial/whiteheat.h                           |    2 
 drivers/usb/storage/scsiglue.c                           |   10 
 drivers/usb/storage/uas.c                                |   20 -
 drivers/virt/vboxguest/vboxguest_utils.c                 |    3 
 drivers/virtio/virtio_ring.c                             |    7 
 fs/btrfs/ctree.h                                         |    3 
 fs/btrfs/delalloc-space.c                                |    6 
 fs/btrfs/file.c                                          |    7 
 fs/btrfs/inode-map.c                                     |    5 
 fs/btrfs/inode.c                                         |   12 
 fs/btrfs/ioctl.c                                         |    6 
 fs/btrfs/relocation.c                                    |    9 
 fs/btrfs/send.c                                          |    2 
 fs/cifs/netmisc.c                                        |    4 
 fs/fuse/dir.c                                            |   13 
 fs/fuse/file.c                                           |   10 
 fs/io_uring.c                                            |   58 ++-
 fs/nfs/delegation.c                                      |    2 
 fs/nfs/nfs4proc.c                                        |    1 
 fs/nfs/write.c                                           |    5 
 fs/ocfs2/aops.c                                          |   25 +
 fs/ocfs2/ioctl.c                                         |    2 
 fs/ocfs2/xattr.c                                         |   56 +--
 include/linux/platform_data/dma-imx-sdma.h               |    3 
 include/linux/sunrpc/xprtsock.h                          |    1 
 include/net/llc_conn.h                                   |    2 
 include/net/sch_generic.h                                |    5 
 include/trace/events/rxrpc.h                             |    6 
 include/uapi/linux/nvme_ioctl.h                          |   23 -
 kernel/events/core.c                                     |   45 ++
 kernel/sched/cputime.c                                   |    6 
 kernel/sched/fair.c                                      |  127 ++-----
 kernel/sched/sched.h                                     |    4 
 kernel/trace/trace.c                                     |    1 
 net/batman-adv/bat_iv_ogm.c                              |   61 +++
 net/batman-adv/hard-interface.c                          |    2 
 net/batman-adv/types.h                                   |    3 
 net/llc/llc_c_ac.c                                       |    8 
 net/llc/llc_conn.c                                       |   32 -
 net/llc/llc_s_ac.c                                       |   12 
 net/llc/llc_sap.c                                        |   23 -
 net/netfilter/nf_conntrack_core.c                        |    4 
 net/rxrpc/peer_object.c                                  |   16 
 net/rxrpc/sendmsg.c                                      |    1 
 net/sched/sch_netem.c                                    |    2 
 net/sched/sch_sfb.c                                      |    7 
 net/sunrpc/xprtsock.c                                    |   17 -
 net/wireless/nl80211.c                                   |    2 
 sound/core/timer.c                                       |   24 +
 sound/firewire/bebob/bebob_stream.c                      |    3 
 sound/hda/hdac_controller.c                              |    2 
 sound/pci/hda/hda_intel.c                                |    2 
 sound/pci/hda/patch_realtek.c                            |   11 
 sound/usb/quirks.c                                       |   13 
 tools/lib/subcmd/Makefile                                |    8 
 tools/perf/arch/arm/annotate/instructions.c              |    4 
 tools/perf/arch/arm64/annotate/instructions.c            |    4 
 tools/perf/arch/powerpc/util/header.c                    |    3 
 tools/perf/arch/s390/annotate/instructions.c             |    6 
 tools/perf/arch/s390/util/header.c                       |    9 
 tools/perf/arch/x86/annotate/instructions.c              |    6 
 tools/perf/arch/x86/util/header.c                        |    3 
 tools/perf/builtin-kvm.c                                 |    7 
 tools/perf/builtin-script.c                              |    6 
 tools/perf/pmu-events/jevents.c                          |   12 
 tools/perf/tests/perf-hooks.c                            |    3 
 tools/perf/util/annotate.c                               |   35 +-
 tools/perf/util/annotate.h                               |    4 
 tools/perf/util/map.c                                    |    3 
 tools/testing/selftests/Makefile                         |    4 
 tools/testing/selftests/kselftest/runner.sh              |   36 +-
 tools/testing/selftests/rtc/settings                     |    1 
 191 files changed, 1901 insertions(+), 1013 deletions(-)

Aaron Ma (1):

      ALSA: hda/realtek - Fix 2 front mics of codec 0x623

Adam Ford (2):
serial: mctrl_gpio: Check for NULL pointer
serial: 8250_omap: Fix gpio check for auto RTS/CTS

Alan Stern (4):
UAS: Revert commit 3ae62a42090f ("UAS: fix alignment of scatter/gather segments")
USB: gadget: Reject endpoints with 0 maxpacket value
usb-storage: Revert commit 747668dbc061 ("usb-storage: Set virt_boundary_mask to avoid SG overflows")
HID: Fix assumption that devices have inputs

Alex Deucher (1):
drm/amdgpu/gmc10: properly set BANK_SELECT and FRAGMENT_SIZE

Alexey Brodkin (1):
ARC: perf: Accommodate big-endian CPU

Andi Kleen (2):
perf script brstackinsn: Fix recovery from LBR/binary mismatch perf jevents: Fix period for Intel fixed counters

Andrey Smirnov (3):
HID: logitech-hidpp: split g920_get_config()
HID: logitech-hidpp: rework device validation
HID: logitech-hidpp: do all FF cleanup in hidpp_ff_destroy()

Anton Ivanov (1):
um-ubd: Entrust re-queue to the upper layers

Arnaldo Carvalho de Melo (7):
perf tools: Propagate get_cpuid() error
perf annotate: Propagate perf_env__arch() error
perf annotate: Fix the signedness of failure returns perf annotate: Propagate the symbol__annotate() error return perf annotate: Fix arch specific ->init() failure errors perf annotate: Return appropriate error code for allocation failures perf annotate: Don't return -1 for error when doing BPF disassembly

Austin Kim (2):
fs: cifs: mute -Wunused-const-variable message
btrfs: silence maybe-uninitialized warning in clone_range

Bart Van Assche (2):
RDMA/iwcm: Fix a lock inversion issue
scsi: target: cxgbit: Fix cxgbit_fw4_ack()

Ben Dooks (Codethink) (1):
usb: xhci: fix __le32/__le64 accessors in debugfs code

Benjamin Coddington (1):
SUNRPC: fix race to sk_err after xs_error_report

Bjorn Andersson (1):
arm64: cpufeature: Enable Qualcomm Falkor/Kryo errata 1003

Boris Ostrovsky (1):
x86/xen: Return from panic notifier

Catalin Marinas (1):
arm64: Ensure VM_WRITE|VM_SHARED ptes are clean by default

Christian Borntraeger (1):
s390/uaccess: avoid (false positive) compiler warnings

Christoph Hellwig (1):
serial/sifive: select SERIAL_EARLYCON

Christophe JAILLET (3):
tty: serial: owl: Fix the link time qualifier of 'owl_uart_exit()'
tty: serial: rda: Fix the link time qualifier of 'rda_uart_exit()' RDMA/core: Fix an error handling path in 'res_get_common_doit()'

Chuck Lever (1):

      NFSv4: Fix leak of clp->cl_acceptor string

Connor Kuehl (1):
staging: rtl8188eu: fix null dereference when kzalloc fails

Cristian Marussi (1):
kselftest: exclude failed TARGETS from runlist

Dan Carpenter (1):
USB: legousbtower: fix a signedness bug in tower_probe()

Dave Chiluk (1):
sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices

Dave Young (1):
efi/x86: Do not clean dummy variable in kexec path

David Howells (3):
rxrpc: Fix call ref leak
rxrpc: rxrpc_peer needs to hold a ref on the rxrpc_local record
rxrpc: Fix trace-after-put looking at the put peer record

Dexuan Cui (1):
HID: hyperv: Use in-place iterator API in the channel callback

Eric Biggers (2):
llc: fix sk_buff leak in llc_sap_state_process()
llc: fix sk_buff leak in llc_conn_service()

Eric Dumazet (3):
bonding: fix potential NULL deref in bond_update_slave_arr
netfilter: conntrack: avoid possible false sharing
sch_netem: fix rcu splat in netem_enqueue()

Filipe Manana (1):
Btrfs: fix inode cache block reserve leak on failure to allocate data space

Frederic Weisbecker (1):
sched/vtime: Fix guest/system mis-accounting on task switch

Greg Kroah-Hartman (1):

      Linux 5.3.9

Gustavo A. R. Silva (1):
perf annotate: Fix multiple memory and file descriptor leaks

Halil Pasic (1):
s390/cio: fix virtio-ccw DMA without PV

Hans de Goede (1):
HID: i2c-hid: add Trekstor Primebook C11B to descriptor override

Heiko Carstens (1):
s390/idle: fix cpu idle time calculation

Hui Peng (1):
ath6kl: fix a NULL-ptr-deref bug in ath6kl_usb_alloc_urb_from_pipe()

Ian Rogers (2):
libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature perf tests: Avoid raising SEGV using an obvious NULL dereference

Ilya Leoshkevich (1):
s390/unwind: fix mixing regs and sp

Jack Morgenstein (1):
RDMA/cm: Fix memory leak in cm_add/remove_one

James Morse (2):
arm64: Fix incorrect irqflag restore for priority masking for compat
arm64: ftrace: Ensure synchronisation in PLT setup for Neoverse-N1 #1542419

Jason Gunthorpe (4):
RDMA/mlx5: Do not allow rereg of a ODP MR
RDMA/mlx5: Order num_pending_prefetch properly with synchronize_srcu RDMA/mlx5: Add missing synchronize_srcu() for MW cases RDMA/mlx5: Use irq xarray locking for mkey_table

Jeffrey Hugo (4):
arm64: dts: qcom: Add Lenovo Miix 630
arm64: dts: qcom: Add HP Envy x2
arm64: dts: qcom: Add Asus NovaGo TP370QL
dmaengine: qcom: bam_dma: Fix resource leak

Jens Axboe (2):
io_uring: fix up O_NONBLOCK handling for sockets
io_uring: ensure we clear io_kiocb->result before each issue

Jia Guo (1):
ocfs2: clear zero in unaligned direct IO

Jia-Ju Bai (3):
fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()
fs: ocfs2: fix a possible null-pointer dereference in ocfs2_write_end_nolock()
fs: ocfs2: fix a possible null-pointer dereference in ocfs2_info_scan_inode_alloc()

Joe Perches (1):
rtw88: Fix misuse of GENMASK macro

Johan Hovold (5):
USB: ldusb: fix ring-buffer locking
USB: ldusb: fix control-message timeout
USB: serial: whiteheat: fix potential slab corruption
USB: serial: whiteheat: fix line-speed endianness
NFC: pn533: fix use-after-free and memleaks

John Donnelly (1):
iommu/vt-d: Fix panic after kexec -p for kdump

Julien Grall (1):
arm64: cpufeature: Effectively expose FRINT capability to userspace

Jussi Laako (2):
ALSA: usb-audio: DSD auto-detection for Playback Designs
ALSA: usb-audio: Update DSD support quirks for Oppo and Rotel

Justin Song (1):
ALSA: usb-audio: Add DSD support for Gustard U16/X26 USB Interface

Kaike Wan (1):
IB/hfi1: Avoid excessive retry for TID RDMA READ request

Kailang Yang (1):
ALSA: hda/realtek - Add support for ALC623

Kan Liang (1):
x86/cpu: Add Comet Lake to the Intel CPU models header

Kees Cook (1):
selftests/kselftest/runner.sh: Add 45 second timeout per test

Krishnamraju Eraparaju (1):
RDMA/siw: Fix serialization issue in write_space()

Larry Finger (1):

      rtlwifi: rtl_pci: Fix problem of too small skb->len

Laura Abbott (1):
rtlwifi: Fix potential overflow on P2P code

Leon Romanovsky (1):
RDMA/nldev: Reshuffle the code to avoid need to rebind QP in error path

Lorenzo Bianconi (1):
iio: imu: st_lsm6dsx: fix waitime for st_lsm6dsx i2c controller

Luca Coelho (1):
iwlwifi: exclude GEO SAR support for 3168

Lukas Wunner (1):
efi/cper: Fix endianness of PCIe class code

Markus Theil (1):
nl80211: fix validation of mesh path nexthop

Marvin Liu (1):
virtio_ring: fix stalls for packed rings

Mathias Nyman (1):
xhci: Fix use-after-free regression in xhci clear hub TT implementation

Miaoqing Pan (1):
ath10k: fix latency issue for QCA988x

Michał Mirosław (1):
HID: fix error message in hid_open_report()

Mika Westerberg (2):
thunderbolt: Correct path indices for PCIe tunnel
thunderbolt: Use 32-bit writes when writing ring producer/consumer

Mike Christie (1):
nbd: verify socket is supported during setup

Miklos Szeredi (2):
fuse: flush dirty data/metadata before non-truncate setattr
fuse: truncate pending writes on O_TRUNC

Mikulas Patocka (2):
dm snapshot: introduce account_start_copy() and account_end_copy() dm snapshot: rework COW throttling to fix deadlock

Navid Emamdoost (5):
RDMA/hfi1: Prevent memory leak in sdma_init
misc: fastrpc: prevent memory leak in fastrpc_dma_buf_attach
iio: imu: adis16400: release allocated memory on failure
iio: imu: adis16400: fix memory leak
virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr

Nicholas Piggin (1):
powerpc/powernv: Fix CPU idle to be called with IRQs disabled

Nirmoy Das (1):
drm/amdgpu: fix memory leak

Paolo Bonzini (1):
KVM: vmx, svm: always run with EFER.NXE=1 when shadow paging is active

Pascal Bouwmann (1):
iio: fix center temperature of bmc150-accel-core

Pelle van Gils (1):
drm/amdgpu/powerplay/vega10: allow undervolting in p7

Petr Mladek (1):

      tracing: Initialize iter->seq after zeroing in tracing_read_pipe()

Potnuri Bharat Teja (1):
RDMA/iw_cxgb4: fix SRQ access from dump_qp()

Qian Cai (1):
sched/fair: Fix -Wunused-but-set-variable warnings

Qu Wenruo (1):
btrfs: qgroup: Always free PREALLOC META reserve in btrfs_delalloc_release_extents()

Quinn Tran (1):
scsi: qla2xxx: Fix partial flash write of MBI

Randy Dunlap (1):
tty: n_hdlc: fix build on SPARC

Remi Pommarel (1):
iio: adc: meson_saradc: Fix memory allocation order

Robin Gong (1):
dmaengine: imx-sdma: fix size check for sdma script_number

Sameer Pujar (1):
dmaengine: tegra210-adma: fix transfer failure

Samuel Holland (1):
usb: xhci: fix Immediate Data Transfer endianness

Sasha Levin (1):
Revert "nvme: allow 64-bit results in passthru commands"

Sebastian Ott (1):
s390/pci: fix MSI message data

Song Liu (2):
perf/core: Rework memory accounting in perf_mmap() perf/core: Fix corner case in perf_rotate_context()

Steve MacLean (1):
perf map: Fix overlapped map handling

Sven Eckelmann (1):
batman-adv: Avoid free/alloc race when handling OGM buffer

Takashi Iwai (2):
ALSA: timer: Fix mutex deadlock at releasing card Revert "ALSA: hda: Flush interrupts on disabling"

Takashi Sakamoto (1):
ALSA: bebob: Fix prototype of helper function to return negative value

Thierry Reding (1):
gpio: max77620: Use correct unit for debounce times

Thomas Bogendoerfer (3):
MIPS: include: Mark __cmpxchg as __always_inline
MIPS: include: Mark __xchg as __always_inline
MIPS: fw: sni: Fix out of bounds init of o32 stack

Thomas Richter (1):
perf/aux: Fix tracking of auxiliary trace buffer allocation

Tianci.Yin (1):
drm/amdgpu/gfx10: update gfx golden settings

Tom Lendacky (1):
perf/x86/amd: Change/fix NMI latency mitigation to use a timestamp

Tony Lindgren (1):
dmaengine: cppi41: Fix cppi41_dma_prep_slave_sg() when idle

Trond Myklebust (1):
NFS: Fix an RCU lock leak in nfs4_refresh_delegation_stateid()

Valentin Vidic (1):
net: usb: sr9800: fix uninitialized local variable

Ville Syrjälä (1):
drm/i915: Fix PCH reference clock for FDI on HSW/BDW

Vincent Chen (3):
riscv: avoid kernel hangs when trapped in BUG()
riscv: avoid sending a SIGTRAP to a user thread trapped in WARN()
riscv: Correct the handling of unexpected ebreak in do_trap_break()

Vincenzo Frascino (2):
arm64: vdso32: Fix broken compat vDSO build warnings
arm64: vdso32: Detect binutils support for dmb ishld

Vlad Buslov (1):
net: sched: sch_sfb: don't call qdisc_put() while holding tree lock

Will Deacon (2):
arm64: Default to building compat vDSO with clang when CONFIG_CC_IS_CLANG
arm64: vdso32: Don't use KBUILD_CPPFLAGS unconditionally

Xiubo Li (1):
nbd: fix possible sysfs duplicate warning

Xuewei Zhang (1):
sched/fair: Scale bandwidth quota and period without losing quota/period ratio precision

Yihui ZENG (1):
s390/cmm: fix information leak in cmm_timeout_handler()

Yunfeng Ye (1):
arm64: armv8_deprecated: Checking return value for memory allocation

ZhangXiaoxu (1):

      nfs: Fix nfsi->nrequests count error on nfs_inode_remove_request

chen gong (1):
drm/amdgpu: Fix SDMA hang when performing VKexample test

author maintainer
#1 lore raw
Documentation/admin-guide/kernel-parameters.txt +4 -0
index 4c1971960afa..5ea005c9e2d6 100644
@@ -5267,6 +5267,10 @@
 				the unplug protocol
 			never -- do not unplug even if version check succeeds
 
+	xen_legacy_crash	[X86,XEN]
+			Crash from Xen panic notifier, without executing late
+			panic() code such as dumping handler.
+
 	xen_nopvspin	[X86,XEN]
 			Disables the ticketlock slowpath using Xen PV
 			optimizations.
Documentation/scheduler/sched-bwc.rst +60 -14

101 lines not on this page · raw message

Makefile +1 -1
index 445f9488d8ba..ad5f5230bbbe 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 3
-SUBLEVEL = 8
+SUBLEVEL = 9
 EXTRAVERSION =
 NAME = Bobtail Squid
 
arch/arc/kernel/perf_event.c +2 -2
index 861a8aea51f9..661fd842ea97 100644
@@ -614,8 +614,8 @@ static int arc_pmu_device_probe(struct platform_device *pdev)
 	/* loop thru all available h/w condition indexes */
 	for (i = 0; i < cc_bcr.c; i++) {
 		write_aux_reg(ARC_REG_CC_INDEX, i);
-		cc_name.indiv.word0 = read_aux_reg(ARC_REG_CC_NAME0);
-		cc_name.indiv.word1 = read_aux_reg(ARC_REG_CC_NAME1);
+		cc_name.indiv.word0 = le32_to_cpu(read_aux_reg(ARC_REG_CC_NAME0));
+		cc_name.indiv.word1 = le32_to_cpu(read_aux_reg(ARC_REG_CC_NAME1));
 
 		arc_pmu_map_hw_event(i, cc_name.str);
 		arc_pmu_add_raw_event_attr(i, cc_name.str);
arch/arm64/Kconfig +1 -1
index e8cf56283871..f63b824cdc2d 100644
@@ -111,7 +111,7 @@ config ARM64
 	select GENERIC_STRNLEN_USER
 	select GENERIC_TIME_VSYSCALL
 	select GENERIC_GETTIMEOFDAY
-	select GENERIC_COMPAT_VDSO if (!CPU_BIG_ENDIAN && COMPAT)
+	select GENERIC_COMPAT_VDSO if (!CPU_BIG_ENDIAN && COMPAT && "$(CROSS_COMPILE_COMPAT)" != "")
 	select HANDLE_DOMAIN_IRQ
 	select HARDIRQS_SW_RESEND
 	select HAVE_PCI
arch/arm64/Makefile +9 -13
index 61de992bbea3..5858d6e44926 100644
@@ -47,20 +47,16 @@ $(warning Detected assembler with broken .inst; disassembly will be unreliable)
   endif
 endif
 
+ifeq ($(CONFIG_CC_IS_CLANG), y)
+COMPATCC ?= $(CC) --target=$(notdir $(CROSS_COMPILE_COMPAT:%-=%))
+else
+COMPATCC ?= $(CROSS_COMPILE_COMPAT)gcc
+endif
+export COMPATCC
+
 ifeq ($(CONFIG_GENERIC_COMPAT_VDSO), y)
-  CROSS_COMPILE_COMPAT ?= $(CONFIG_CROSS_COMPILE_COMPAT_VDSO:"%"=%)
-
-  ifeq ($(CONFIG_CC_IS_CLANG), y)
-    $(warning CROSS_COMPILE_COMPAT is clang, the compat vDSO will not be built)
-  else ifeq ($(strip $(CROSS_COMPILE_COMPAT)),)
-    $(warning CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will not be built)
-  else ifeq ($(shell which $(CROSS_COMPILE_COMPAT)gcc 2> /dev/null),)
-    $(error $(CROSS_COMPILE_COMPAT)gcc not found, check CROSS_COMPILE_COMPAT)
-  else
-    export CROSS_COMPILE_COMPAT
-    export CONFIG_COMPAT_VDSO := y
-    compat_vdso := -DCONFIG_COMPAT_VDSO=1
-  endif
+  export CONFIG_COMPAT_VDSO := y
+  compat_vdso := -DCONFIG_COMPAT_VDSO=1
 endif
 
 KBUILD_CFLAGS	+= -mgeneral-regs-only $(lseinstr) $(brokengasinst) $(compat_vdso)
arch/arm64/boot/dts/qcom/Makefile +3 -0
index 0a7e5dfce6f7..954d75de617b 100644
@@ -6,6 +6,9 @@ dtb-$(CONFIG_ARCH_QCOM)	+= msm8916-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8992-bullhead-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8994-angler-rev-101.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8996-mtp.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-asus-novago-tp370ql.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-hp-envy-x2.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-lenovo-miix-630.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8998-mtp.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sdm845-cheza-r1.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sdm845-cheza-r2.dtb
arch/arm64/boot/dts/qcom/msm8998-asus-novago-tp370ql.dts new file +47 -0

47 lines not on this page · raw message

arch/arm64/boot/dts/qcom/msm8998-clamshell.dtsi new file +240 -0

240 lines not on this page · raw message

arch/arm64/boot/dts/qcom/msm8998-hp-envy-x2.dts new file +30 -0
new file mode 100644
index 000000000000..24073127091f
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */
+
+/dts-v1/;
+
+#include "msm8998-clamshell.dtsi"
+
+/ {
+	model = "HP Envy x2";
+	compatible = "hp,envy-x2", "qcom,msm8998";
+};
+
+&blsp1_i2c6 {
+	status = "okay";
+
+	keyboard@3a {
+		compatible = "hid-over-i2c";
+		interrupt-parent = <&tlmm>;
+		interrupts = <0x79 IRQ_TYPE_LEVEL_LOW>;
+		reg = <0x3a>;
+		hid-descr-addr = <0x0001>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&touchpad>;
+	};
+};
+
+&sdhc2 {
+	cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>;
+};
arch/arm64/boot/dts/qcom/msm8998-lenovo-miix-630.dts new file +30 -0
new file mode 100644
index 000000000000..407c6a32911c
@@ -0,0 +1,30 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (c) 2019, Jeffrey Hugo. All rights reserved. */
+
+/dts-v1/;
+
+#include "msm8998-clamshell.dtsi"
+
+/ {
+	model = "Lenovo Miix 630";
+	compatible = "lenovo,miix-630", "qcom,msm8998";
+};
+
+&blsp1_i2c6 {
+	status = "okay";
+
+	keyboard@3a {
+		compatible = "hid-over-i2c";
+		interrupt-parent = <&tlmm>;
+		interrupts = <0x79 IRQ_TYPE_LEVEL_LOW>;
+		reg = <0x3a>;
+		hid-descr-addr = <0x0001>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&touchpad>;
+	};
+};
+
+&sdhc2 {
+	cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
+};
arch/arm64/include/asm/pgtable-prot.h +8 -7
index 92d2e9f28f28..a7edc079bcfd 100644
@@ -32,11 +32,11 @@
 #define PROT_DEFAULT		(_PROT_DEFAULT | PTE_MAYBE_NG)
 #define PROT_SECT_DEFAULT	(_PROT_SECT_DEFAULT | PMD_MAYBE_NG)
 
-#define PROT_DEVICE_nGnRnE	(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_nGnRnE))
-#define PROT_DEVICE_nGnRE	(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_nGnRE))
-#define PROT_NORMAL_NC		(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL_NC))
-#define PROT_NORMAL_WT		(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL_WT))
-#define PROT_NORMAL		(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL))
+#define PROT_DEVICE_nGnRnE	(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_nGnRnE))
+#define PROT_DEVICE_nGnRE	(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_nGnRE))
+#define PROT_NORMAL_NC		(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL_NC))
+#define PROT_NORMAL_WT		(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL_WT))
+#define PROT_NORMAL		(PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL))
 
 #define PROT_SECT_DEVICE_nGnRE	(PROT_SECT_DEFAULT | PMD_SECT_PXN | PMD_SECT_UXN | PMD_ATTRINDX(MT_DEVICE_nGnRE))
 #define PROT_SECT_NORMAL	(PROT_SECT_DEFAULT | PMD_SECT_PXN | PMD_SECT_UXN | PMD_ATTRINDX(MT_NORMAL))
@@ -80,8 +80,9 @@
 #define PAGE_S2_DEVICE		__pgprot(_PROT_DEFAULT | PAGE_S2_MEMATTR(DEVICE_nGnRE) | PTE_S2_RDONLY | PAGE_S2_XN)
 
 #define PAGE_NONE		__pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN)
-#define PAGE_SHARED		__pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_UXN | PTE_WRITE)
-#define PAGE_SHARED_EXEC	__pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_WRITE)
+/* shared+writable pages are clean by default, hence PTE_RDONLY|PTE_WRITE */
+#define PAGE_SHARED		__pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN | PTE_WRITE)
+#define PAGE_SHARED_EXEC	__pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_WRITE)
 #define PAGE_READONLY		__pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN)
 #define PAGE_READONLY_EXEC	__pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN)
 #define PAGE_EXECONLY		__pgprot(_PAGE_DEFAULT | PTE_RDONLY | PTE_NG | PTE_PXN)
arch/arm64/include/asm/vdso/compat_barrier.h +1 -1
index fb60a88b5ed4..3fd8fd6d8fc2 100644
@@ -20,7 +20,7 @@
 
 #define dmb(option) __asm__ __volatile__ ("dmb " #option : : : "memory")
 
-#if __LINUX_ARM_ARCH__ >= 8
+#if __LINUX_ARM_ARCH__ >= 8 && defined(CONFIG_AS_DMB_ISHLD)
 #define aarch32_smp_mb()	dmb(ish)
 #define aarch32_smp_rmb()	dmb(ishld)
 #define aarch32_smp_wmb()	dmb(ishst)
arch/arm64/kernel/armv8_deprecated.c +5 -0
index 2ec09debc2bb..ca158be21f83 100644
@@ -174,6 +174,9 @@ static void __init register_insn_emulation(struct insn_emulation_ops *ops)
 	struct insn_emulation *insn;
 
 	insn = kzalloc(sizeof(*insn), GFP_KERNEL);
+	if (!insn)
+		return;
+
 	insn->ops = ops;
 	insn->min = INSN_UNDEF;
 
@@ -233,6 +236,8 @@ static void __init register_insn_emulation_sysctl(void)
 
 	insns_sysctl = kcalloc(nr_insn_emulated + 1, sizeof(*sysctl),
 			       GFP_KERNEL);
+	if (!insns_sysctl)
+		return;
 
 	raw_spin_lock_irqsave(&insn_emulation_lock, flags);
 	list_for_each_entry(insn, &insn_emulation, node) {
arch/arm64/kernel/cpu_errata.c +1 -0
index 27b4a973f16d..1e0b9ae9bf7e 100644
@@ -816,6 +816,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
 	{
 		.desc = "Qualcomm Technologies Falkor/Kryo erratum 1003",
 		.capability = ARM64_WORKAROUND_QCOM_FALKOR_E1003,
+		.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
 		.matches = cpucap_multi_entry_cap_matches,
 		.match_list = qcom_erratum_1003_list,
 	},
arch/arm64/kernel/cpufeature.c +1 -0
index 9323bcc40a58..cabebf1a7976 100644
@@ -136,6 +136,7 @@ static const struct arm64_ftr_bits ftr_id_aa64isar0[] = {
 
 static const struct arm64_ftr_bits ftr_id_aa64isar1[] = {
 	ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_SB_SHIFT, 4, 0),
+	ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_FRINTTS_SHIFT, 4, 0),
 	ARM64_FTR_BITS(FTR_VISIBLE_IF_IS_ENABLED(CONFIG_ARM64_PTR_AUTH),
 		       FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR1_GPI_SHIFT, 4, 0),
 	ARM64_FTR_BITS(FTR_VISIBLE_IF_IS_ENABLED(CONFIG_ARM64_PTR_AUTH),
arch/arm64/kernel/entry.S +1 -0
index 109894bd3194..239f6841a741 100644
@@ -775,6 +775,7 @@ el0_sync_compat:
 	b.ge	el0_dbg
 	b	el0_inv
 el0_svc_compat:
+	gic_prio_kentry_setup tmp=x1
 	mov	x0, sp
 	bl	el0_svc_compat_handler
 	b	ret_to_user
arch/arm64/kernel/ftrace.c +9 -3
index 171773257974..06e56b470315 100644
@@ -121,10 +121,16 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned long addr)
 
 			/*
 			 * Ensure updated trampoline is visible to instruction
-			 * fetch before we patch in the branch.
+			 * fetch before we patch in the branch. Although the
+			 * architecture doesn't require an IPI in this case,
+			 * Neoverse-N1 erratum #1542419 does require one
+			 * if the TLB maintenance in module_enable_ro() is
+			 * skipped due to rodata_enabled. It doesn't seem worth
+			 * it to make it conditional given that this is
+			 * certainly not a fast-path.
 			 */
-			__flush_icache_range((unsigned long)&dst[0],
-					     (unsigned long)&dst[1]);
+			flush_icache_range((unsigned long)&dst[0],
+					   (unsigned long)&dst[1]);
 		}
 		addr = (unsigned long)dst;
 #else /* CONFIG_ARM64_MODULE_PLTS */
arch/arm64/kernel/vdso32/Makefile +11 -6
index 1fba0776ed40..aa171b043287 100644
@@ -8,8 +8,6 @@
 ARCH_REL_TYPE_ABS := R_ARM_JUMP_SLOT|R_ARM_GLOB_DAT|R_ARM_ABS32
 include $(srctree)/lib/vdso/Makefile
 
-COMPATCC := $(CROSS_COMPILE_COMPAT)gcc
-
 # Same as cc-*option, but using COMPATCC instead of CC
 cc32-option = $(call try-run,\
         $(COMPATCC) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2))
@@ -17,6 +15,8 @@ cc32-disable-warning = $(call try-run,\
 	$(COMPATCC) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1)))
 cc32-ldoption = $(call try-run,\
         $(COMPATCC) $(1) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2))
+cc32-as-instr = $(call try-run,\
+	printf "%b\n" "$(1)" | $(COMPATCC) $(VDSO_AFLAGS) -c -x assembler -o "$$TMP" -,$(2),$(3))
 
 # We cannot use the global flags to compile the vDSO files, the main reason
 # being that the 32-bit compiler may be older than the main (64-bit) compiler
@@ -25,11 +25,9 @@ cc32-ldoption = $(call try-run,\
 # arm64 one.
 # As a result we set our own flags here.
 
-# From top-level Makefile
-# NOSTDINC_FLAGS
-VDSO_CPPFLAGS := -nostdinc -isystem $(shell $(COMPATCC) -print-file-name=include)
+# KBUILD_CPPFLAGS and NOSTDINC_FLAGS from top-level Makefile
+VDSO_CPPFLAGS := -D__KERNEL__ -nostdinc -isystem $(shell $(COMPATCC) -print-file-name=include)
 VDSO_CPPFLAGS += $(LINUXINCLUDE)
-VDSO_CPPFLAGS += $(KBUILD_CPPFLAGS)
 
 # Common C and assembly flags
 # From top-level Makefile
@@ -55,6 +53,7 @@ endif
 VDSO_CAFLAGS += -fPIC -fno-builtin -fno-stack-protector
 VDSO_CAFLAGS += -DDISABLE_BRANCH_PROFILING
 
+
 # Try to compile for ARMv8. If the compiler is too old and doesn't support it,
 # fall back to v7. There is no easy way to check for what architecture the code
 # is being compiled, so define a macro specifying that (see arch/arm/Makefile).
@@ -91,6 +90,12 @@ VDSO_CFLAGS += -Wno-int-to-pointer-cast
 VDSO_AFLAGS := $(VDSO_CAFLAGS)
 VDSO_AFLAGS += -D__ASSEMBLY__
 
+# Check for binutils support for dmb ishld
+dmbinstr := $(call cc32-as-instr,dmb ishld,-DCONFIG_AS_DMB_ISHLD=1)
+
+VDSO_CFLAGS += $(dmbinstr)
+VDSO_AFLAGS += $(dmbinstr)
+
 VDSO_LDFLAGS := $(VDSO_CPPFLAGS)
 # From arm vDSO Makefile
 VDSO_LDFLAGS += -Wl,-Bsymbolic -Wl,--no-undefined -Wl,-soname=linux-vdso.so.1
arch/mips/fw/sni/sniprom.c +1 -1
index 8772617b64ce..80112f2298b6 100644
@@ -43,7 +43,7 @@
 
 /* O32 stack has to be 8-byte aligned. */
 static u64 o32_stk[4096];
-#define O32_STK	  &o32_stk[sizeof(o32_stk)]
+#define O32_STK	  (&o32_stk[ARRAY_SIZE(o32_stk)])
 
 #define __PROM_O32(fun, arg) fun arg __asm__(#fun); \
 				     __asm__(#fun " = call_o32")
arch/mips/include/asm/cmpxchg.h +5 -4
index c8a47d18f628..2b61052e10c9 100644
@@ -77,8 +77,8 @@ extern unsigned long __xchg_called_with_bad_pointer(void)
 extern unsigned long __xchg_small(volatile void *ptr, unsigned long val,
 				  unsigned int size);
 
-static inline unsigned long __xchg(volatile void *ptr, unsigned long x,
-				   int size)
+static __always_inline
+unsigned long __xchg(volatile void *ptr, unsigned long x, int size)
 {
 	switch (size) {
 	case 1:
@@ -153,8 +153,9 @@ static inline unsigned long __xchg(volatile void *ptr, unsigned long x,
 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old,
 				     unsigned long new, unsigned int size);
 
-static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
-				      unsigned long new, unsigned int size)
+static __always_inline
+unsigned long __cmpxchg(volatile void *ptr, unsigned long old,
+			unsigned long new, unsigned int size)
 {
 	switch (size) {
 	case 1:
arch/powerpc/platforms/powernv/smp.c +37 -16

89 lines not on this page · raw message

arch/riscv/kernel/traps.c +7 -7
index 424eb72d56b1..93742df9067f 100644
@@ -124,24 +124,24 @@ static inline unsigned long get_break_insn_length(unsigned long pc)
 
 asmlinkage void do_trap_break(struct pt_regs *regs)
 {
-#ifdef CONFIG_GENERIC_BUG
 	if (!user_mode(regs)) {
 		enum bug_trap_type type;
 
 		type = report_bug(regs->sepc, regs);
 		switch (type) {
-		case BUG_TRAP_TYPE_NONE:
-			break;
+#ifdef CONFIG_GENERIC_BUG
 		case BUG_TRAP_TYPE_WARN:
 			regs->sepc += get_break_insn_length(regs->sepc);
-			break;
+			return;
 		case BUG_TRAP_TYPE_BUG:
+#endif /* CONFIG_GENERIC_BUG */
+		default:
 			die(regs, "Kernel BUG");
 		}
+	} else {
+		force_sig_fault(SIGTRAP, TRAP_BRKPT,
+				(void __user *)(regs->sepc));
 	}
-#endif /* CONFIG_GENERIC_BUG */
-
-	force_sig_fault(SIGTRAP, TRAP_BRKPT, (void __user *)(regs->sepc));
 }
 
 #ifdef CONFIG_GENERIC_BUG
arch/s390/include/asm/uaccess.h +2 -2
index bd2fd9a7821d..a470f1fa9f2a 100644
@@ -83,7 +83,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n);
 	__rc;							\
 })
 
-static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size)
+static __always_inline int __put_user_fn(void *x, void __user *ptr, unsigned long size)
 {
 	unsigned long spec = 0x010000UL;
 	int rc;
@@ -113,7 +113,7 @@ static inline int __put_user_fn(void *x, void __user *ptr, unsigned long size)
 	return rc;
 }
 
-static inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size)
+static __always_inline int __get_user_fn(void *x, const void __user *ptr, unsigned long size)
 {
 	unsigned long spec = 0x01UL;
 	int rc;
arch/s390/include/asm/unwind.h +1 -0
index d827b5b9a32c..eaaefeceef6f 100644
@@ -35,6 +35,7 @@ struct unwind_state {
 	struct task_struct *task;
 	struct pt_regs *regs;
 	unsigned long sp, ip;
+	bool reuse_sp;
 	int graph_idx;
 	bool reliable;
 	bool error;
arch/s390/kernel/idle.c +22 -7
index b9d8fe45737a..8f8456816d83 100644
@@ -69,18 +69,26 @@ DEVICE_ATTR(idle_count, 0444, show_idle_count, NULL);
 static ssize_t show_idle_time(struct device *dev,
 				struct device_attribute *attr, char *buf)
 {
+	unsigned long long now, idle_time, idle_enter, idle_exit, in_idle;
 	struct s390_idle_data *idle = &per_cpu(s390_idle, dev->id);
-	unsigned long long now, idle_time, idle_enter, idle_exit;
 	unsigned int seq;
 
 	do {
-		now = get_tod_clock();
 		seq = read_seqcount_begin(&idle->seqcount);
 		idle_time = READ_ONCE(idle->idle_time);
 		idle_enter = READ_ONCE(idle->clock_idle_enter);
 		idle_exit = READ_ONCE(idle->clock_idle_exit);
 	} while (read_seqcount_retry(&idle->seqcount, seq));
-	idle_time += idle_enter ? ((idle_exit ? : now) - idle_enter) : 0;
+	in_idle = 0;
+	now = get_tod_clock();
+	if (idle_enter) {
+		if (idle_exit) {
+			in_idle = idle_exit - idle_enter;
+		} else if (now > idle_enter) {
+			in_idle = now - idle_enter;
+		}
+	}
+	idle_time += in_idle;
 	return sprintf(buf, "%llu\n", idle_time >> 12);
 }
 DEVICE_ATTR(idle_time_us, 0444, show_idle_time, NULL);
@@ -88,17 +96,24 @@ DEVICE_ATTR(idle_time_us, 0444, show_idle_time, NULL);
 u64 arch_cpu_idle_time(int cpu)
 {
 	struct s390_idle_data *idle = &per_cpu(s390_idle, cpu);
-	unsigned long long now, idle_enter, idle_exit;
+	unsigned long long now, idle_enter, idle_exit, in_idle;
 	unsigned int seq;
 
 	do {
-		now = get_tod_clock();
 		seq = read_seqcount_begin(&idle->seqcount);
 		idle_enter = READ_ONCE(idle->clock_idle_enter);
 		idle_exit = READ_ONCE(idle->clock_idle_exit);
 	} while (read_seqcount_retry(&idle->seqcount, seq));
-
-	return cputime_to_nsecs(idle_enter ? ((idle_exit ?: now) - idle_enter) : 0);
+	in_idle = 0;
+	now = get_tod_clock();
+	if (idle_enter) {
+		if (idle_exit) {
+			in_idle = idle_exit - idle_enter;
+		} else if (now > idle_enter) {
+			in_idle = now - idle_enter;
+		}
+	}
+	return cputime_to_nsecs(in_idle);
 }
 
 void arch_cpu_idle_enter(void)
arch/s390/kernel/unwind_bc.c +13 -5
index 8fc9daae47a2..a8204f952315 100644
@@ -46,10 +46,15 @@ bool unwind_next_frame(struct unwind_state *state)
 
 	regs = state->regs;
 	if (unlikely(regs)) {
-		sp = READ_ONCE_NOCHECK(regs->gprs[15]);
-		if (unlikely(outside_of_stack(state, sp))) {
-			if (!update_stack_info(state, sp))
-				goto out_err;
+		if (state->reuse_sp) {
+			sp = state->sp;
+			state->reuse_sp = false;
+		} else {
+			sp = READ_ONCE_NOCHECK(regs->gprs[15]);
+			if (unlikely(outside_of_stack(state, sp))) {
+				if (!update_stack_info(state, sp))
+					goto out_err;
+			}
 		}
 		sf = (struct stack_frame *) sp;
 		ip = READ_ONCE_NOCHECK(sf->gprs[8]);
@@ -107,9 +112,9 @@ void __unwind_start(struct unwind_state *state, struct task_struct *task,
 {
 	struct stack_info *info = &state->stack_info;
 	unsigned long *mask = &state->stack_mask;
+	bool reliable, reuse_sp;
 	struct stack_frame *sf;
 	unsigned long ip;
-	bool reliable;
 
 	memset(state, 0, sizeof(*state));
 	state->task = task;
@@ -134,10 +139,12 @@ void __unwind_start(struct unwind_state *state, struct task_struct *task,
 	if (regs) {
 		ip = READ_ONCE_NOCHECK(regs->psw.addr);
 		reliable = true;
+		reuse_sp = true;
 	} else {
 		sf = (struct stack_frame *) sp;
 		ip = READ_ONCE_NOCHECK(sf->gprs[8]);
 		reliable = false;
+		reuse_sp = false;
 	}
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
@@ -151,5 +158,6 @@ void __unwind_start(struct unwind_state *state, struct task_struct *task,
 	state->sp = sp;
 	state->ip = ip;
 	state->reliable = reliable;
+	state->reuse_sp = reuse_sp;
 }
 EXPORT_SYMBOL_GPL(__unwind_start);
arch/s390/mm/cmm.c +6 -6
index 510a18299196..a51c892f14f3 100644
@@ -298,16 +298,16 @@ static int cmm_timeout_handler(struct ctl_table *ctl, int write,
 	}
 
 	if (write) {
-		len = *lenp;
-		if (copy_from_user(buf, buffer,
-				   len > sizeof(buf) ? sizeof(buf) : len))
+		len = min(*lenp, sizeof(buf));
+		if (copy_from_user(buf, buffer, len))
 			return -EFAULT;
-		buf[sizeof(buf) - 1] = '\0';
+		buf[len - 1] = '\0';
 		cmm_skip_blanks(buf, &p);
 		nr = simple_strtoul(p, &p, 0);
 		cmm_skip_blanks(p, &p);
 		seconds = simple_strtoul(p, &p, 0);
 		cmm_set_timeout(nr, seconds);
+		*ppos += *lenp;
 	} else {
 		len = sprintf(buf, "%ld %ld\n",
 			      cmm_timeout_pages, cmm_timeout_seconds);
@@ -315,9 +315,9 @@ static int cmm_timeout_handler(struct ctl_table *ctl, int write,
 			len = *lenp;
 		if (copy_to_user(buffer, buf, len))
 			return -EFAULT;
+		*lenp = len;
+		*ppos += len;
 	}
-	*lenp = len;
-	*ppos += len;
 	return 0;
 }
 
arch/s390/pci/pci_irq.c +1 -1
index d80616ae8dd8..fbe97ab2e228 100644
@@ -284,7 +284,7 @@ int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
 			return rc;
 		irq_set_chip_and_handler(irq, &zpci_irq_chip,
 					 handle_percpu_irq);
-		msg.data = hwirq;
+		msg.data = hwirq - bit;
 		if (irq_delivery == DIRECTED) {
 			msg.address_lo = zdev->msi_addr & 0xff0000ff;
 			msg.address_lo |= msi->affinity ?
arch/um/drivers/ubd_kern.c +6 -2
index 33c1cd6a12ac..40ab9ad7aa96 100644
@@ -1403,8 +1403,12 @@ static blk_status_t ubd_queue_rq(struct blk_mq_hw_ctx *hctx,
 
 	spin_unlock_irq(&ubd_dev->lock);
 
-	if (ret < 0)
-		blk_mq_requeue_request(req, true);
+	if (ret < 0) {
+		if (ret == -ENOMEM)
+			res = BLK_STS_RESOURCE;
+		else
+			res = BLK_STS_DEV_RESOURCE;
+	}
 
 	return res;
 }
arch/x86/events/amd/core.c +17 -13
index e7d35f60d53f..64c3e70b0556 100644
@@ -5,12 +5,14 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
+#include <linux/jiffies.h>
 #include <asm/apicdef.h>
 #include <asm/nmi.h>
 
 #include "../perf_event.h"
 
-static DEFINE_PER_CPU(unsigned int, perf_nmi_counter);
+static DEFINE_PER_CPU(unsigned long, perf_nmi_tstamp);
+static unsigned long perf_nmi_window;
 
 static __initconst const u64 amd_hw_cache_event_ids
 				[PERF_COUNT_HW_CACHE_MAX]
@@ -641,11 +643,12 @@ static void amd_pmu_disable_event(struct perf_event *event)
  * handler when multiple PMCs are active or PMC overflow while handling some
  * other source of an NMI.
  *
- * Attempt to mitigate this by using the number of active PMCs to determine
- * whether to return NMI_HANDLED if the perf NMI handler did not handle/reset
- * any PMCs. The per-CPU perf_nmi_counter variable is set to a minimum of the
- * number of active PMCs or 2. The value of 2 is used in case an NMI does not
- * arrive at the LAPIC in time to be collapsed into an already pending NMI.
+ * Attempt to mitigate this by creating an NMI window in which un-handled NMIs
+ * received during this window will be claimed. This prevents extending the
+ * window past when it is possible that latent NMIs should be received. The
+ * per-CPU perf_nmi_tstamp will be set to the window end time whenever perf has
+ * handled a counter. When an un-handled NMI is received, it will be claimed
+ * only if arriving within that window.
  */
 static int amd_pmu_handle_irq(struct pt_regs *regs)
 {
@@ -663,21 +666,19 @@ static int amd_pmu_handle_irq(struct pt_regs *regs)
 	handled = x86_pmu_handle_irq(regs);
 
 	/*
-	 * If a counter was handled, record the number of possible remaining
-	 * NMIs that can occur.
+	 * If a counter was handled, record a timestamp such that un-handled
+	 * NMIs will be claimed if arriving within that window.
 	 */
 	if (handled) {
-		this_cpu_write(perf_nmi_counter,
-			       min_t(unsigned int, 2, active));
+		this_cpu_write(perf_nmi_tstamp,
+			       jiffies + perf_nmi_window);
 
 		return handled;
 	}
 
-	if (!this_cpu_read(perf_nmi_counter))
+	if (time_after(jiffies, this_cpu_read(perf_nmi_tstamp)))
 		return NMI_DONE;
 
-	this_cpu_dec(perf_nmi_counter);
-
 	return NMI_HANDLED;
 }
 
@@ -909,6 +910,9 @@ static int __init amd_core_pmu_init(void)
 	if (!boot_cpu_has(X86_FEATURE_PERFCTR_CORE))
 		return 0;
 
+	/* Avoid calulating the value each time in the NMI handler */
+	perf_nmi_window = msecs_to_jiffies(100);
+
 	switch (boot_cpu_data.x86) {
 	case 0x15:
 		pr_cont("Fam15h ");
arch/x86/include/asm/intel-family.h +3 -0
index 9ae1c0f05fd2..3525014c71da 100644
@@ -76,6 +76,9 @@
 #define INTEL_FAM6_TIGERLAKE_L		0x8C
 #define INTEL_FAM6_TIGERLAKE		0x8D
 
+#define INTEL_FAM6_COMETLAKE		0xA5
+#define INTEL_FAM6_COMETLAKE_L		0xA6
+
 /* "Small Core" Processors (Atom) */
 
 #define INTEL_FAM6_ATOM_BONNELL		0x1C /* Diamondville, Pineview */
arch/x86/kvm/svm.c +8 -2
index 45e425c5e6f5..fe887f723708 100644
@@ -736,8 +736,14 @@ static int get_npt_level(struct kvm_vcpu *vcpu)
 static void svm_set_efer(struct kvm_vcpu *vcpu, u64 efer)
 {
 	vcpu->arch.efer = efer;
-	if (!npt_enabled && !(efer & EFER_LMA))
-		efer &= ~EFER_LME;
+
+	if (!npt_enabled) {
+		/* Shadow paging assumes NX to be available.  */
+		efer |= EFER_NX;
+
+		if (!(efer & EFER_LMA))
+			efer &= ~EFER_LME;
+	}
 
 	to_svm(vcpu)->vmcb->save.efer = efer | EFER_SVME;
 	mark_dirty(to_svm(vcpu)->vmcb, VMCB_CR);
arch/x86/kvm/vmx/vmx.c +3 -11
index 1d11bf4bab8b..2a0e281542cc 100644
@@ -897,17 +897,9 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset)
 	u64 guest_efer = vmx->vcpu.arch.efer;
 	u64 ignore_bits = 0;
 
-	if (!enable_ept) {
-		/*
-		 * NX is needed to handle CR0.WP=1, CR4.SMEP=1.  Testing
-		 * host CPUID is more efficient than testing guest CPUID
-		 * or CR4.  Host SMEP is anyway a requirement for guest SMEP.
-		 */
-		if (boot_cpu_has(X86_FEATURE_SMEP))
-			guest_efer |= EFER_NX;
-		else if (!(guest_efer & EFER_NX))
-			ignore_bits |= EFER_NX;
-	}
+	/* Shadow paging assumes NX to be available.  */
+	if (!enable_ept)
+		guest_efer |= EFER_NX;
 
 	/*
 	 * LMA and LME handled by hardware; SCE meaningless outside long mode.
arch/x86/platform/efi/efi.c +0 -3
index a7189a3b4d70..3304f61538a2 100644
@@ -894,9 +894,6 @@ static void __init kexec_enter_virtual_mode(void)
 
 	if (efi_enabled(EFI_OLD_MEMMAP) && (__supported_pte_mask & _PAGE_NX))
 		runtime_code_page_mkexec();
-
-	/* clean DUMMY object */
-	efi_delete_dummy_variable();
 #endif
 }
 
arch/x86/xen/enlighten.c +25 -3
index 750f46ad018a..205b1176084f 100644
@@ -269,19 +269,41 @@ void xen_reboot(int reason)
 		BUG();
 }
 
+static int reboot_reason = SHUTDOWN_reboot;
+static bool xen_legacy_crash;
 void xen_emergency_restart(void)
 {
-	xen_reboot(SHUTDOWN_reboot);
+	xen_reboot(reboot_reason);
 }
 
 static int
 xen_panic_event(struct notifier_block *this, unsigned long event, void *ptr)
 {
-	if (!kexec_crash_loaded())
-		xen_reboot(SHUTDOWN_crash);
+	if (!kexec_crash_loaded()) {
+		if (xen_legacy_crash)
+			xen_reboot(SHUTDOWN_crash);
+
+		reboot_reason = SHUTDOWN_crash;
+
+		/*
+		 * If panic_timeout==0 then we are supposed to wait forever.
+		 * However, to preserve original dom0 behavior we have to drop
+		 * into hypervisor. (domU behavior is controlled by its
+		 * config file)
+		 */
+		if (panic_timeout == 0)
+			panic_timeout = -1;
+	}
 	return NOTIFY_DONE;
 }
 
+static int __init parse_xen_legacy_crash(char *arg)
+{
+	xen_legacy_crash = true;
+	return 0;
+}
+early_param("xen_legacy_crash", parse_xen_legacy_crash);
+
 static struct notifier_block xen_panic_block = {
 	.notifier_call = xen_panic_event,
 	.priority = INT_MIN
drivers/block/nbd.c +22 -3
index 0b727f7432f9..9650777d0aaf 100644
@@ -230,8 +230,8 @@ static void nbd_put(struct nbd_device *nbd)
 	if (refcount_dec_and_mutex_lock(&nbd->refs,
 					&nbd_index_mutex)) {
 		idr_remove(&nbd_index_idr, nbd->index);
-		mutex_unlock(&nbd_index_mutex);
 		nbd_dev_remove(nbd);
+		mutex_unlock(&nbd_index_mutex);
 	}
 }
 
@@ -935,6 +935,25 @@ static blk_status_t nbd_queue_rq(struct blk_mq_hw_ctx *hctx,
 	return ret;
 }
 
+static struct socket *nbd_get_socket(struct nbd_device *nbd, unsigned long fd,
+				     int *err)
+{
+	struct socket *sock;
+
+	*err = 0;
+	sock = sockfd_lookup(fd, err);
+	if (!sock)
+		return NULL;
+
+	if (sock->ops->shutdown == sock_no_shutdown) {
+		dev_err(disk_to_dev(nbd->disk), "Unsupported socket: shutdown callout must be supported.\n");
+		*err = -EINVAL;
+		return NULL;
+	}
+
+	return sock;
+}
+
 static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg,
 			  bool netlink)
 {
@@ -944,7 +963,7 @@ static int nbd_add_socket(struct nbd_device *nbd, unsigned long arg,
 	struct nbd_sock *nsock;
 	int err;
 
-	sock = sockfd_lookup(arg, &err);
+	sock = nbd_get_socket(nbd, arg, &err);
 	if (!sock)
 		return err;
 
@@ -996,7 +1015,7 @@ static int nbd_reconnect_socket(struct nbd_device *nbd, unsigned long arg)
 	int i;
 	int err;
 
-	sock = sockfd_lookup(arg, &err);
+	sock = nbd_get_socket(nbd, arg, &err);
 	if (!sock)
 		return err;
 
drivers/dma/imx-sdma.c +8 -0
index a01f4b5d793c..be9ef4dd756f 100644
@@ -1707,6 +1707,14 @@ static void sdma_add_scripts(struct sdma_engine *sdma,
 	if (!sdma->script_number)
 		sdma->script_number = SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1;
 
+	if (sdma->script_number > sizeof(struct sdma_script_start_addrs)
+				  / sizeof(s32)) {
+		dev_err(sdma->dev,
+			"SDMA script number %d not match with firmware.\n",
+			sdma->script_number);
+		return;
+	}
+
 	for (i = 0; i < sdma->script_number; i++)
 		if (addr_arr[i] > 0)
 			saddr_arr[i] = addr_arr[i];
drivers/dma/qcom/bam_dma.c +19 -0
index 8e90a405939d..ef73f65224b1 100644
@@ -694,6 +694,25 @@ static int bam_dma_terminate_all(struct dma_chan *chan)
 
 	/* remove all transactions, including active transaction */
 	spin_lock_irqsave(&bchan->vc.lock, flag);
+	/*
+	 * If we have transactions queued, then some might be committed to the
+	 * hardware in the desc fifo.  The only way to reset the desc fifo is
+	 * to do a hardware reset (either by pipe or the entire block).
+	 * bam_chan_init_hw() will trigger a pipe reset, and also reinit the
+	 * pipe.  If the pipe is left disabled (default state after pipe reset)
+	 * and is accessed by a connected hardware engine, a fatal error in
+	 * the BAM will occur.  There is a small window where this could happen
+	 * with bam_chan_init_hw(), but it is assumed that the caller has
+	 * stopped activity on any attached hardware engine.  Make sure to do
+	 * this first so that the BAM hardware doesn't cause memory corruption
+	 * by accessing freed resources.
+	 */
+	if (!list_empty(&bchan->desc_list)) {
+		async_desc = list_first_entry(&bchan->desc_list,
+					      struct bam_async_desc, desc_node);
+		bam_chan_init_hw(bchan, async_desc->dir);
+	}
+
 	list_for_each_entry_safe(async_desc, tmp,
 				 &bchan->desc_list, desc_node) {
 		list_add(&async_desc->vd.node, &bchan->vc.desc_issued);
drivers/dma/tegra210-adma.c +7 -0
index b33cf6e8ab8e..d13fe1030a3e 100644
@@ -40,6 +40,7 @@
 #define ADMA_CH_CONFIG_MAX_BURST_SIZE                   16
 #define ADMA_CH_CONFIG_WEIGHT_FOR_WRR(val)		((val) & 0xf)
 #define ADMA_CH_CONFIG_MAX_BUFS				8
+#define TEGRA186_ADMA_CH_CONFIG_OUTSTANDING_REQS(reqs)	(reqs << 4)
 
 #define ADMA_CH_FIFO_CTRL				0x2c
 #define TEGRA210_ADMA_CH_FIFO_CTRL_OFLWTHRES(val)	(((val) & 0xf) << 24)
@@ -85,6 +86,7 @@ struct tegra_adma;
  * @ch_req_tx_shift: Register offset for AHUB transmit channel select.
  * @ch_req_rx_shift: Register offset for AHUB receive channel select.
  * @ch_base_offset: Register offset of DMA channel registers.
+ * @has_outstanding_reqs: If DMA channel can have outstanding requests.
  * @ch_fifo_ctrl: Default value for channel FIFO CTRL register.
  * @ch_req_mask: Mask for Tx or Rx channel select.
  * @ch_req_max: Maximum number of Tx or Rx channels available.
@@ -103,6 +105,7 @@ struct tegra_adma_chip_data {
 	unsigned int ch_req_max;
 	unsigned int ch_reg_size;
 	unsigned int nr_channels;
+	bool has_outstanding_reqs;
 };
 
 /*
@@ -602,6 +605,8 @@ static int tegra_adma_set_xfer_params(struct tegra_adma_chan *tdc,
 			 ADMA_CH_CTRL_FLOWCTRL_EN;
 	ch_regs->config |= cdata->adma_get_burst_config(burst_size);
 	ch_regs->config |= ADMA_CH_CONFIG_WEIGHT_FOR_WRR(1);
+	if (cdata->has_outstanding_reqs)
+		ch_regs->config |= TEGRA186_ADMA_CH_CONFIG_OUTSTANDING_REQS(8);
 	ch_regs->fifo_ctrl = cdata->ch_fifo_ctrl;
 	ch_regs->tc = desc->period_len & ADMA_CH_TC_COUNT_MASK;
 
@@ -786,6 +791,7 @@ static const struct tegra_adma_chip_data tegra210_chip_data = {
 	.ch_req_tx_shift	= 28,
 	.ch_req_rx_shift	= 24,
 	.ch_base_offset		= 0,
+	.has_outstanding_reqs	= false,
 	.ch_fifo_ctrl		= TEGRA210_FIFO_CTRL_DEFAULT,
 	.ch_req_mask		= 0xf,
 	.ch_req_max		= 10,
@@ -800,6 +806,7 @@ static const struct tegra_adma_chip_data tegra186_chip_data = {
 	.ch_req_tx_shift	= 27,
 	.ch_req_rx_shift	= 22,
 	.ch_base_offset		= 0x10000,
+	.has_outstanding_reqs	= true,
 	.ch_fifo_ctrl		= TEGRA186_FIFO_CTRL_DEFAULT,
 	.ch_req_mask		= 0x1f,
 	.ch_req_max		= 20,
drivers/dma/ti/cppi41.c +20 -1
index 2f946f55076c..8c2f7ebe998c 100644
@@ -586,9 +586,22 @@ static struct dma_async_tx_descriptor *cppi41_dma_prep_slave_sg(
 	enum dma_transfer_direction dir, unsigned long tx_flags, void *context)
 {
 	struct cppi41_channel *c = to_cpp41_chan(chan);
+	struct dma_async_tx_descriptor *txd = NULL;
+	struct cppi41_dd *cdd = c->cdd;
 	struct cppi41_desc *d;
 	struct scatterlist *sg;
 	unsigned int i;
+	int error;
+
+	error = pm_runtime_get(cdd->ddev.dev);
+	if (error < 0) {
+		pm_runtime_put_noidle(cdd->ddev.dev);
+
+		return NULL;
+	}
+
+	if (cdd->is_suspended)
+		goto err_out_not_ready;
 
 	d = c->desc;
 	for_each_sg(sgl, sg, sg_len, i) {
@@ -611,7 +624,13 @@ static struct dma_async_tx_descriptor *cppi41_dma_prep_slave_sg(
 		d++;
 	}
 
-	return &c->txd;
+	txd = &c->txd;
+
+err_out_not_ready:
+	pm_runtime_mark_last_busy(cdd->ddev.dev);
+	pm_runtime_put_autosuspend(cdd->ddev.dev);
+
+	return txd;
 }
 
 static void cppi41_compute_td_desc(struct cppi41_desc *d)
drivers/firmware/efi/cper.c +1 -1
index addf0749dd8b..b1af0de2e100 100644
@@ -381,7 +381,7 @@ static void cper_print_pcie(const char *pfx, const struct cper_sec_pcie *pcie,
 		printk("%s""vendor_id: 0x%04x, device_id: 0x%04x\n", pfx,
 		       pcie->device_id.vendor_id, pcie->device_id.device_id);
 		p = pcie->device_id.class_code;
-		printk("%s""class_code: %02x%02x%02x\n", pfx, p[0], p[1], p[2]);
+		printk("%s""class_code: %02x%02x%02x\n", pfx, p[2], p[1], p[0]);
 	}
 	if (pcie->validation_bits & CPER_PCIE_VALID_SERIAL_NUMBER)
 		printk("%s""serial number: 0x%04x, 0x%04x\n", pfx,
drivers/gpio/gpio-max77620.c +3 -3
index b7d89e30131e..06e8caaafa81 100644
@@ -192,13 +192,13 @@ static int max77620_gpio_set_debounce(struct max77620_gpio *mgpio,
 	case 0:
 		val = MAX77620_CNFG_GPIO_DBNC_None;
 		break;
-	case 1 ... 8:
+	case 1000 ... 8000:
 		val = MAX77620_CNFG_GPIO_DBNC_8ms;
 		break;
-	case 9 ... 16:
+	case 9000 ... 16000:
 		val = MAX77620_CNFG_GPIO_DBNC_16ms;
 		break;
-	case 17 ... 32:
+	case 17000 ... 32000:
 		val = MAX77620_CNFG_GPIO_DBNC_32ms;
 		break;
 	default:
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +7 -7
index 7bcf86c61999..61e38e43ad1d 100644
@@ -270,7 +270,7 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data,
 
 	r = amdgpu_bo_create_list_entry_array(&args->in, &info);
 	if (r)
-		goto error_free;
+		return r;
 
 	switch (args->in.operation) {
 	case AMDGPU_BO_LIST_OP_CREATE:
@@ -283,8 +283,7 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data,
 		r = idr_alloc(&fpriv->bo_list_handles, list, 1, 0, GFP_KERNEL);
 		mutex_unlock(&fpriv->bo_list_lock);
 		if (r < 0) {
-			amdgpu_bo_list_put(list);
-			return r;
+			goto error_put_list;
 		}
 
 		handle = r;
@@ -306,9 +305,8 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data,
 		mutex_unlock(&fpriv->bo_list_lock);
 
 		if (IS_ERR(old)) {
-			amdgpu_bo_list_put(list);
 			r = PTR_ERR(old);
-			goto error_free;
+			goto error_put_list;
 		}
 
 		amdgpu_bo_list_put(old);
@@ -325,8 +323,10 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data,
 
 	return 0;
 
+error_put_list:
+	amdgpu_bo_list_put(list);
+
 error_free:
-	if (info)
-		kvfree(info);
+	kvfree(info);
 	return r;
 }
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
index f41287f9000d..8cd6a6f94542 100644
@@ -67,7 +67,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_1[] =
 {
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_4, 0xffffffff, 0x00400014),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_CPF_CLK_CTRL, 0xfcff8fff, 0xf8000100),
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_SPI_CLK_CTRL, 0xc0000000, 0xc0000100),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_SPI_CLK_CTRL, 0xcd000000, 0x0d000100),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_SQ_CLK_CTRL, 0x60000ff0, 0x60000100),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_SQG_CLK_CTRL, 0x40000000, 0x40000100),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCGTT_VGT_CLK_CTRL, 0xffff8fff, 0xffff8100),
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c +9 -0
index d605b4963f8a..141727ce7e76 100644
@@ -151,6 +151,15 @@ static void gfxhub_v2_0_init_cache_regs(struct amdgpu_device *adev)
 	WREG32_SOC15(GC, 0, mmGCVM_L2_CNTL2, tmp);
 
 	tmp = mmGCVM_L2_CNTL3_DEFAULT;
+	if (adev->gmc.translate_further) {
+		tmp = REG_SET_FIELD(tmp, GCVM_L2_CNTL3, BANK_SELECT, 12);
+		tmp = REG_SET_FIELD(tmp, GCVM_L2_CNTL3,
+				    L2_CACHE_BIGK_FRAGMENT_SIZE, 9);
+	} else {
+		tmp = REG_SET_FIELD(tmp, GCVM_L2_CNTL3, BANK_SELECT, 9);
+		tmp = REG_SET_FIELD(tmp, GCVM_L2_CNTL3,
+				    L2_CACHE_BIGK_FRAGMENT_SIZE, 6);
+	}
 	WREG32_SOC15(GC, 0, mmGCVM_L2_CNTL3, tmp);
 
 	tmp = mmGCVM_L2_CNTL4_DEFAULT;
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c +9 -0
index 0f9549f19ade..9e5c3a1909c7 100644
@@ -137,6 +137,15 @@ static void mmhub_v2_0_init_cache_regs(struct amdgpu_device *adev)
 	WREG32_SOC15(MMHUB, 0, mmMMVM_L2_CNTL2, tmp);
 
 	tmp = mmMMVM_L2_CNTL3_DEFAULT;
+	if (adev->gmc.translate_further) {
+		tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL3, BANK_SELECT, 12);
+		tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL3,
+				    L2_CACHE_BIGK_FRAGMENT_SIZE, 9);
+	} else {
+		tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL3, BANK_SELECT, 9);
+		tmp = REG_SET_FIELD(tmp, MMVM_L2_CNTL3,
+				    L2_CACHE_BIGK_FRAGMENT_SIZE, 6);
+	}
 	WREG32_SOC15(MMHUB, 0, mmMMVM_L2_CNTL3, tmp);
 
 	tmp = mmMMVM_L2_CNTL4_DEFAULT;
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +1 -0
index 4428018672d3..4f14ef813dda 100644
@@ -159,6 +159,7 @@ static const struct soc15_reg_golden golden_settings_sdma0_4_2[] =
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC7_RB_RPTR_ADDR_LO, 0xfffffffd, 0x00000001),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC7_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000),
 	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0),
+	SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_WATERMK, 0xfc000000, 0x00000000)
 };
 
 static const struct soc15_reg_golden golden_settings_sdma1_4_2[] = {
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +1 -3
index 3be8eb21fd6e..64be81eea9b4 100644
@@ -5097,9 +5097,7 @@ static void vega10_odn_update_soc_table(struct pp_hwmgr *hwmgr,
 
 	if (type == PP_OD_EDIT_SCLK_VDDC_TABLE) {
 		podn_vdd_dep = &data->odn_dpm_table.vdd_dep_on_sclk;
-		for (i = 0; i < podn_vdd_dep->count - 1; i++)
-			od_vddc_lookup_table->entries[i].us_vdd = podn_vdd_dep->entries[i].vddc;
-		if (od_vddc_lookup_table->entries[i].us_vdd < podn_vdd_dep->entries[i].vddc)
+		for (i = 0; i < podn_vdd_dep->count; i++)
 			od_vddc_lookup_table->entries[i].us_vdd = podn_vdd_dep->entries[i].vddc;
 	} else if (type == PP_OD_EDIT_MCLK_VDDC_TABLE) {
 		podn_vdd_dep = &data->odn_dpm_table.vdd_dep_on_mclk;
drivers/gpu/drm/i915/display/intel_display.c +6 -5
index 9b61fae5aef7..dae45b6a35b7 100644
@@ -9186,7 +9186,6 @@ static bool wrpll_uses_pch_ssc(struct drm_i915_private *dev_priv,
 static void lpt_init_pch_refclk(struct drm_i915_private *dev_priv)
 {
 	struct intel_encoder *encoder;
-	bool pch_ssc_in_use = false;
 	bool has_fdi = false;
 
 	for_each_intel_encoder(&dev_priv->drm, encoder) {
@@ -9214,22 +9213,24 @@ static void lpt_init_pch_refclk(struct drm_i915_private *dev_priv)
 	 * clock hierarchy. That would also allow us to do
 	 * clock bending finally.
 	 */
+	dev_priv->pch_ssc_use = 0;
+
 	if (spll_uses_pch_ssc(dev_priv)) {
 		DRM_DEBUG_KMS("SPLL using PCH SSC\n");
-		pch_ssc_in_use = true;
+		dev_priv->pch_ssc_use |= BIT(DPLL_ID_SPLL);
 	}
 
 	if (wrpll_uses_pch_ssc(dev_priv, DPLL_ID_WRPLL1)) {
 		DRM_DEBUG_KMS("WRPLL1 using PCH SSC\n");
-		pch_ssc_in_use = true;
+		dev_priv->pch_ssc_use |= BIT(DPLL_ID_WRPLL1);
 	}
 
 	if (wrpll_uses_pch_ssc(dev_priv, DPLL_ID_WRPLL2)) {
 		DRM_DEBUG_KMS("WRPLL2 using PCH SSC\n");
-		pch_ssc_in_use = true;
+		dev_priv->pch_ssc_use |= BIT(DPLL_ID_WRPLL2);
 	}
 
-	if (pch_ssc_in_use)
+	if (dev_priv->pch_ssc_use)
 		return;
 
 	if (has_fdi) {
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +15 -0
index 2d4e7b9a7b9d..f199a6769962 100644
@@ -498,16 +498,31 @@ static void hsw_ddi_wrpll_disable(struct drm_i915_private *dev_priv,
 	val = I915_READ(WRPLL_CTL(id));
 	I915_WRITE(WRPLL_CTL(id), val & ~WRPLL_PLL_ENABLE);
 	POSTING_READ(WRPLL_CTL(id));
+
+	/*
+	 * Try to set up the PCH reference clock once all DPLLs
+	 * that depend on it have been shut down.
+	 */
+	if (dev_priv->pch_ssc_use & BIT(id))
+		intel_init_pch_refclk(dev_priv);
 }
 
 static void hsw_ddi_spll_disable(struct drm_i915_private *dev_priv,
 				 struct intel_shared_dpll *pll)
 {
+	enum intel_dpll_id id = pll->info->id;
 	u32 val;
 
 	val = I915_READ(SPLL_CTL);
 	I915_WRITE(SPLL_CTL, val & ~SPLL_PLL_ENABLE);
 	POSTING_READ(SPLL_CTL);
+
+	/*
+	 * Try to set up the PCH reference clock once all DPLLs
+	 * that depend on it have been shut down.
+	 */
+	if (dev_priv->pch_ssc_use & BIT(id))
+		intel_init_pch_refclk(dev_priv);
 }
 
 static bool hsw_ddi_wrpll_get_hw_state(struct drm_i915_private *dev_priv,
drivers/gpu/drm/i915/i915_drv.h +2 -0
index 94b91a952699..edb88406cb75 100644
@@ -1881,6 +1881,8 @@ struct drm_i915_private {
 		struct work_struct idle_work;
 	} gem;
 
+	u8 pch_ssc_use;
+
 	/* For i945gm vblank irq vs. C3 workaround */
 	struct {
 		struct work_struct work;
drivers/hid/hid-axff.c +9 -2
index 6654c1550e2e..fbe4e16ab029 100644
@@ -63,13 +63,20 @@ static int axff_init(struct hid_device *hid)
 {
 	struct axff_device *axff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_first_entry(&hid->inputs, struct hid_input, list);
+	struct hid_input *hidinput;
 	struct list_head *report_list =&hid->report_enum[HID_OUTPUT_REPORT].report_list;
-	struct input_dev *dev = hidinput->input;
+	struct input_dev *dev;
 	int field_count = 0;
 	int i, j;
 	int error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_first_entry(&hid->inputs, struct hid_input, list);
+	dev = hidinput->input;
+
 	if (list_empty(report_list)) {
 		hid_err(hid, "no output reports found\n");
 		return -ENODEV;
drivers/hid/hid-core.c +5 -2
index 210b81a56e1a..3af76624e4aa 100644
@@ -1139,6 +1139,7 @@ int hid_open_report(struct hid_device *device)
 	__u8 *start;
 	__u8 *buf;
 	__u8 *end;
+	__u8 *next;
 	int ret;
 	static int (*dispatch_type[])(struct hid_parser *parser,
 				      struct hid_item *item) = {
@@ -1192,7 +1193,8 @@ int hid_open_report(struct hid_device *device)
 	device->collection_size = HID_DEFAULT_NUM_COLLECTIONS;
 
 	ret = -EINVAL;
-	while ((start = fetch_item(start, end, &item)) != NULL) {
+	while ((next = fetch_item(start, end, &item)) != NULL) {
+		start = next;
 
 		if (item.format != HID_ITEM_FORMAT_SHORT) {
 			hid_err(device, "unexpected long global item\n");
@@ -1230,7 +1232,8 @@ int hid_open_report(struct hid_device *device)
 		}
 	}
 
-	hid_err(device, "item fetching failed at offset %d\n", (int)(end - start));
+	hid_err(device, "item fetching failed at offset %u/%u\n",
+		size - (unsigned int)(end - start), size);
 err:
 	kfree(parser->collection_stack);
 alloc_err:
drivers/hid/hid-dr.c +9 -3
index 17e17f9a597b..947f19f8685f 100644
@@ -75,13 +75,19 @@ static int drff_init(struct hid_device *hid)
 {
 	struct drff_device *drff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_first_entry(&hid->inputs,
-						struct hid_input, list);
+	struct hid_input *hidinput;
 	struct list_head *report_list =
 			&hid->report_enum[HID_OUTPUT_REPORT].report_list;
-	struct input_dev *dev = hidinput->input;
+	struct input_dev *dev;
 	int error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_first_entry(&hid->inputs, struct hid_input, list);
+	dev = hidinput->input;
+
 	if (list_empty(report_list)) {
 		hid_err(hid, "no output reports found\n");
 		return -ENODEV;
drivers/hid/hid-emsff.c +9 -3
index 7cd5651872d3..c34f2e5a049f 100644
@@ -47,13 +47,19 @@ static int emsff_init(struct hid_device *hid)
 {
 	struct emsff_device *emsff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_first_entry(&hid->inputs,
-						struct hid_input, list);
+	struct hid_input *hidinput;
 	struct list_head *report_list =
 			&hid->report_enum[HID_OUTPUT_REPORT].report_list;
-	struct input_dev *dev = hidinput->input;
+	struct input_dev *dev;
 	int error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_first_entry(&hid->inputs, struct hid_input, list);
+	dev = hidinput->input;
+
 	if (list_empty(report_list)) {
 		hid_err(hid, "no output reports found\n");
 		return -ENODEV;
drivers/hid/hid-gaff.c +9 -3
index 0f95c96b70f8..ecbd3995a4eb 100644
@@ -64,14 +64,20 @@ static int gaff_init(struct hid_device *hid)
 {
 	struct gaff_device *gaff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_entry(hid->inputs.next,
-						struct hid_input, list);
+	struct hid_input *hidinput;
 	struct list_head *report_list =
 			&hid->report_enum[HID_OUTPUT_REPORT].report_list;
 	struct list_head *report_ptr = report_list;
-	struct input_dev *dev = hidinput->input;
+	struct input_dev *dev;
 	int error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	if (list_empty(report_list)) {
 		hid_err(hid, "no output reports found\n");
 		return -ENODEV;
drivers/hid/hid-holtekff.c +9 -3
index 10a720558830..8619b80c834c 100644
@@ -124,13 +124,19 @@ static int holtekff_init(struct hid_device *hid)
 {
 	struct holtekff_device *holtekff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_entry(hid->inputs.next,
-						struct hid_input, list);
+	struct hid_input *hidinput;
 	struct list_head *report_list =
 			&hid->report_enum[HID_OUTPUT_REPORT].report_list;
-	struct input_dev *dev = hidinput->input;
+	struct input_dev *dev;
 	int error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	if (list_empty(report_list)) {
 		hid_err(hid, "no output report found\n");
 		return -ENODEV;
drivers/hid/hid-hyperv.c +10 -46

70 lines not on this page · raw message

drivers/hid/hid-lg2ff.c +9 -3
index dd1a6c3a7de6..73d07e35f12a 100644
@@ -50,11 +50,17 @@ int lg2ff_init(struct hid_device *hid)
 {
 	struct lg2ff_device *lg2ff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_entry(hid->inputs.next,
-						struct hid_input, list);
-	struct input_dev *dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *dev;
 	int error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	/* Check that the report looks ok */
 	report = hid_validate_values(hid, HID_OUTPUT_REPORT, 0, 0, 7);
 	if (!report)
drivers/hid/hid-lg3ff.c +9 -2
index 9ecb6fd06203..b7e1949f3cf7 100644
@@ -117,12 +117,19 @@ static const signed short ff3_joystick_ac[] = {
 
 int lg3ff_init(struct hid_device *hid)
 {
-	struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
-	struct input_dev *dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *dev;
 	const signed short *ff_bits = ff3_joystick_ac;
 	int error;
 	int i;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	/* Check that the report looks ok */
 	if (!hid_validate_values(hid, HID_OUTPUT_REPORT, 0, 0, 35))
 		return -ENODEV;
drivers/hid/hid-lg4ff.c +9 -2
index 03f0220062ca..5e6a0cef2a06 100644
@@ -1253,8 +1253,8 @@ static int lg4ff_handle_multimode_wheel(struct hid_device *hid, u16 *real_produc
 
 int lg4ff_init(struct hid_device *hid)
 {
-	struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
-	struct input_dev *dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *dev;
 	struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
 	struct hid_report *report = list_entry(report_list->next, struct hid_report, list);
 	const struct usb_device_descriptor *udesc = &(hid_to_usb_dev(hid)->descriptor);
@@ -1266,6 +1266,13 @@ int lg4ff_init(struct hid_device *hid)
 	int mmode_ret, mmode_idx = -1;
 	u16 real_product_id;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	/* Check that the report looks ok */
 	if (!hid_validate_values(hid, HID_OUTPUT_REPORT, 0, 0, 7))
 		return -1;
drivers/hid/hid-lgff.c +9 -2
index c79a6ec43745..aed4ddc397a9 100644
@@ -115,12 +115,19 @@ static void hid_lgff_set_autocenter(struct input_dev *dev, u16 magnitude)
 
 int lgff_init(struct hid_device* hid)
 {
-	struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
-	struct input_dev *dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *dev;
 	const signed short *ff_bits = ff_joystick;
 	int error;
 	int i;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	/* Check that the report looks ok */
 	if (!hid_validate_values(hid, HID_OUTPUT_REPORT, 0, 0, 7))
 		return -ENODEV;
drivers/hid/hid-logitech-hidpp.c +140 -108

378 lines not on this page · raw message

drivers/hid/hid-microsoft.c +9 -3
index 8b3a922bdad3..572b5789d20f 100644
@@ -328,11 +328,17 @@ static int ms_play_effect(struct input_dev *dev, void *data,
 
 static int ms_init_ff(struct hid_device *hdev)
 {
-	struct hid_input *hidinput = list_entry(hdev->inputs.next,
-						struct hid_input, list);
-	struct input_dev *input_dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *input_dev;
 	struct ms_data *ms = hid_get_drvdata(hdev);
 
+	if (list_empty(&hdev->inputs)) {
+		hid_err(hdev, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hdev->inputs.next, struct hid_input, list);
+	input_dev = hidinput->input;
+
 	if (!(ms->quirks & MS_QUIRK_FF))
 		return 0;
 
drivers/hid/hid-sony.c +9 -3
index 73c0f7a95e2d..4c6ed6ef31f1 100644
@@ -2254,9 +2254,15 @@ static int sony_play_effect(struct input_dev *dev, void *data,
 
 static int sony_init_ff(struct sony_sc *sc)
 {
-	struct hid_input *hidinput = list_entry(sc->hdev->inputs.next,
-						struct hid_input, list);
-	struct input_dev *input_dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *input_dev;
+
+	if (list_empty(&sc->hdev->inputs)) {
+		hid_err(sc->hdev, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(sc->hdev->inputs.next, struct hid_input, list);
+	input_dev = hidinput->input;
 
 	input_set_capability(input_dev, EV_FF, FF_RUMBLE);
 	return input_ff_create_memless(input_dev, NULL, sony_play_effect);
drivers/hid/hid-tmff.c +9 -3
index bdfc5ff3b2c5..90acef304536 100644
@@ -124,12 +124,18 @@ static int tmff_init(struct hid_device *hid, const signed short *ff_bits)
 	struct tmff_device *tmff;
 	struct hid_report *report;
 	struct list_head *report_list;
-	struct hid_input *hidinput = list_entry(hid->inputs.next,
-							struct hid_input, list);
-	struct input_dev *input_dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *input_dev;
 	int error;
 	int i;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	input_dev = hidinput->input;
+
 	tmff = kzalloc(sizeof(struct tmff_device), GFP_KERNEL);
 	if (!tmff)
 		return -ENOMEM;
drivers/hid/hid-zpff.c +9 -3
index f90959e94028..3abaca045869 100644
@@ -54,11 +54,17 @@ static int zpff_init(struct hid_device *hid)
 {
 	struct zpff_device *zpff;
 	struct hid_report *report;
-	struct hid_input *hidinput = list_entry(hid->inputs.next,
-						struct hid_input, list);
-	struct input_dev *dev = hidinput->input;
+	struct hid_input *hidinput;
+	struct input_dev *dev;
 	int i, error;
 
+	if (list_empty(&hid->inputs)) {
+		hid_err(hid, "no inputs found\n");
+		return -ENODEV;
+	}
+	hidinput = list_entry(hid->inputs.next, struct hid_input, list);
+	dev = hidinput->input;
+
 	for (i = 0; i < 4; i++) {
 		report = hid_validate_values(hid, HID_OUTPUT_REPORT, 0, i, 1);
 		if (!report)
drivers/hid/i2c-hid/i2c-hid-dmi-quirks.c +19 -0
index 75078c83be1a..d31ea82b84c1 100644
@@ -322,6 +322,25 @@ static const struct dmi_system_id i2c_hid_dmi_desc_override_table[] = {
 		},
 		.driver_data = (void *)&sipodev_desc
 	},
+	{
+		/*
+		 * There are at least 2 Primebook C11B versions, the older
+		 * version has a product-name of "Primebook C11B", and a
+		 * bios version / release / firmware revision of:
+		 * V2.1.2 / 05/03/2018 / 18.2
+		 * The new version has "PRIMEBOOK C11B" as product-name and a
+		 * bios version / release / firmware revision of:
+		 * CFALKSW05_BIOS_V1.1.2 / 11/19/2018 / 19.2
+		 * Only the older version needs this quirk, note the newer
+		 * version will not match as it has a different product-name.
+		 */
+		.ident = "Trekstor Primebook C11B",
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "TREKSTOR"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Primebook C11B"),
+		},
+		.driver_data = (void *)&sipodev_desc
+	},
 	{
 		.ident = "Direkt-Tek DTLAPY116-2",
 		.matches = {
drivers/iio/accel/bmc150-accel-core.c +1 -1
index cf6c0e3a83d3..121b4e89f038 100644
@@ -117,7 +117,7 @@
 #define BMC150_ACCEL_SLEEP_1_SEC		0x0F
 
 #define BMC150_ACCEL_REG_TEMP			0x08
-#define BMC150_ACCEL_TEMP_CENTER_VAL		24
+#define BMC150_ACCEL_TEMP_CENTER_VAL		23
 
 #define BMC150_ACCEL_AXIS_TO_REG(axis)	(BMC150_ACCEL_REG_XOUT_L + (axis * 2))
 #define BMC150_AUTO_SUSPEND_DELAY_MS		2000
drivers/iio/adc/meson_saradc.c +5 -5
index 7b28d045d271..7b27306330a3 100644
@@ -1219,6 +1219,11 @@ static int meson_sar_adc_probe(struct platform_device *pdev)
 	if (IS_ERR(base))
 		return PTR_ERR(base);
 
+	priv->regmap = devm_regmap_init_mmio(&pdev->dev, base,
+					     priv->param->regmap_config);
+	if (IS_ERR(priv->regmap))
+		return PTR_ERR(priv->regmap);
+
 	irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
 	if (!irq)
 		return -EINVAL;
@@ -1228,11 +1233,6 @@ static int meson_sar_adc_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
-	priv->regmap = devm_regmap_init_mmio(&pdev->dev, base,
-					     priv->param->regmap_config);
-	if (IS_ERR(priv->regmap))
-		return PTR_ERR(priv->regmap);
-
 	priv->clkin = devm_clk_get(&pdev->dev, "clkin");
 	if (IS_ERR(priv->clkin)) {
 		dev_err(&pdev->dev, "failed to get clkin\n");
drivers/iio/imu/adis_buffer.c +8 -2
index 9ac8356d9a95..4998a89d083d 100644
@@ -35,8 +35,11 @@ static int adis_update_scan_mode_burst(struct iio_dev *indio_dev,
 		return -ENOMEM;
 
 	adis->buffer = kzalloc(burst_length + sizeof(u16), GFP_KERNEL);
-	if (!adis->buffer)
+	if (!adis->buffer) {
+		kfree(adis->xfer);
+		adis->xfer = NULL;
 		return -ENOMEM;
+	}
 
 	tx = adis->buffer + burst_length;
 	tx[0] = ADIS_READ_REG(adis->burst->reg_cmd);
@@ -78,8 +81,11 @@ int adis_update_scan_mode(struct iio_dev *indio_dev,
 		return -ENOMEM;
 
 	adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL);
-	if (!adis->buffer)
+	if (!adis->buffer) {
+		kfree(adis->xfer);
+		adis->xfer = NULL;
 		return -ENOMEM;
+	}
 
 	rx = adis->buffer;
 	tx = rx + scan_count;
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c +3 -1
index 66fbcd94642d..4c754a02717b 100644
@@ -92,9 +92,11 @@ static const struct st_lsm6dsx_ext_dev_settings st_lsm6dsx_ext_dev_table[] = {
 static void st_lsm6dsx_shub_wait_complete(struct st_lsm6dsx_hw *hw)
 {
 	struct st_lsm6dsx_sensor *sensor;
+	u16 odr;
 
 	sensor = iio_priv(hw->iio_devs[ST_LSM6DSX_ID_ACC]);
-	msleep((2000U / sensor->odr) + 1);
+	odr = (hw->enable_mask & BIT(ST_LSM6DSX_ID_ACC)) ? sensor->odr : 13;
+	msleep((2000U / odr) + 1);
 }
 
 /**
drivers/infiniband/core/cm.c +3 -0
index da10e6ccb43c..5920c0085d35 100644
@@ -4399,6 +4399,7 @@ static void cm_add_one(struct ib_device *ib_device)
 error1:
 	port_modify.set_port_cap_mask = 0;
 	port_modify.clr_port_cap_mask = IB_PORT_CM_SUP;
+	kfree(port);
 	while (--i) {
 		if (!rdma_cap_ib_cm(ib_device, i))
 			continue;
@@ -4407,6 +4408,7 @@ static void cm_add_one(struct ib_device *ib_device)
 		ib_modify_port(ib_device, port->port_num, 0, &port_modify);
 		ib_unregister_mad_agent(port->mad_agent);
 		cm_remove_port_fs(port);
+		kfree(port);
 	}
 free:
 	kfree(cm_dev);
@@ -4460,6 +4462,7 @@ static void cm_remove_one(struct ib_device *ib_device, void *client_data)
 		spin_unlock_irq(&cm.state_lock);
 		ib_unregister_mad_agent(cur_mad_agent);
 		cm_remove_port_fs(port);
+		kfree(port);
 	}
 
 	kfree(cm_dev);
drivers/infiniband/core/cma.c +2 -1
index a68d0ccf67a4..2e48b59926c1 100644
@@ -2396,9 +2396,10 @@ static int iw_conn_req_handler(struct iw_cm_id *cm_id,
 		conn_id->cm_id.iw = NULL;
 		cma_exch(conn_id, RDMA_CM_DESTROYING);
 		mutex_unlock(&conn_id->handler_mutex);
+		mutex_unlock(&listen_id->handler_mutex);
 		cma_deref_id(conn_id);
 		rdma_destroy_id(&conn_id->id);
-		goto out;
+		return ret;
 	}
 
 	mutex_unlock(&conn_id->handler_mutex);
drivers/infiniband/core/nldev.c +5 -7
index 020c26976558..f42e856f3072 100644
@@ -1230,7 +1230,7 @@ static int res_get_common_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
 	msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
 	if (!msg) {
 		ret = -ENOMEM;
-		goto err;
+		goto err_get;
 	}
 
 	nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq,
@@ -1787,10 +1787,6 @@ static int nldev_stat_del_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
 
 	cntn = nla_get_u32(tb[RDMA_NLDEV_ATTR_STAT_COUNTER_ID]);
 	qpn = nla_get_u32(tb[RDMA_NLDEV_ATTR_RES_LQPN]);
-	ret = rdma_counter_unbind_qpn(device, port, qpn, cntn);
-	if (ret)
-		goto err_unbind;
-
 	if (fill_nldev_handle(msg, device) ||
 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, port) ||
 	    nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_COUNTER_ID, cntn) ||
@@ -1799,13 +1795,15 @@ static int nldev_stat_del_doit(struct sk_buff *skb, struct nlmsghdr *nlh,
 		goto err_fill;
 	}
 
+	ret = rdma_counter_unbind_qpn(device, port, qpn, cntn);
+	if (ret)
+		goto err_fill;
+
 	nlmsg_end(msg, nlh);
 	ib_device_put(device);
 	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid);
 
 err_fill:
-	rdma_counter_bind_qpn(device, port, qpn, cntn);
-err_unbind:
 	nlmsg_free(msg);
 err:
 	ib_device_put(device);
drivers/infiniband/hw/cxgb4/device.c +5 -2
index a8b9548bd1a2..599340c1f0b8 100644
@@ -242,10 +242,13 @@ static void set_ep_sin6_addrs(struct c4iw_ep *ep,
 	}
 }
 
-static int dump_qp(struct c4iw_qp *qp, struct c4iw_debugfs_data *qpd)
+static int dump_qp(unsigned long id, struct c4iw_qp *qp,
+		   struct c4iw_debugfs_data *qpd)
 {
 	int space;
 	int cc;
+	if (id != qp->wq.sq.qid)
+		return 0;
 
 	space = qpd->bufsize - qpd->pos - 1;
 	if (space == 0)
@@ -350,7 +353,7 @@ static int qp_open(struct inode *inode, struct file *file)
 
 	xa_lock_irq(&qpd->devp->qps);
 	xa_for_each(&qpd->devp->qps, index, qp)
-		dump_qp(qp, qpd);
+		dump_qp(index, qp, qpd);
 	xa_unlock_irq(&qpd->devp->qps);
 
 	qpd->buf[qpd->pos++] = 0;
drivers/infiniband/hw/cxgb4/qp.c +1 -9
index eb9368be28c1..bbcac539777a 100644
@@ -2737,15 +2737,11 @@ int c4iw_create_srq(struct ib_srq *ib_srq, struct ib_srq_init_attr *attrs,
 	if (CHELSIO_CHIP_VERSION(rhp->rdev.lldi.adapter_type) > CHELSIO_T6)
 		srq->flags = T4_SRQ_LIMIT_SUPPORT;
 
-	ret = xa_insert_irq(&rhp->qps, srq->wq.qid, srq, GFP_KERNEL);
-	if (ret)
-		goto err_free_queue;
-
 	if (udata) {
 		srq_key_mm = kmalloc(sizeof(*srq_key_mm), GFP_KERNEL);
 		if (!srq_key_mm) {
 			ret = -ENOMEM;
-			goto err_remove_handle;
+			goto err_free_queue;
 		}
 		srq_db_key_mm = kmalloc(sizeof(*srq_db_key_mm), GFP_KERNEL);
 		if (!srq_db_key_mm) {
@@ -2789,8 +2785,6 @@ int c4iw_create_srq(struct ib_srq *ib_srq, struct ib_srq_init_attr *attrs,
 	kfree(srq_db_key_mm);
 err_free_srq_key_mm:
 	kfree(srq_key_mm);
-err_remove_handle:
-	xa_erase_irq(&rhp->qps, srq->wq.qid);
 err_free_queue:
 	free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
 		       srq->wr_waitp);
@@ -2813,8 +2807,6 @@ void c4iw_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata)
 	rhp = srq->rhp;
 
 	pr_debug("%s id %d\n", __func__, srq->wq.qid);
-
-	xa_erase_irq(&rhp->qps, srq->wq.qid);
 	ucontext = rdma_udata_to_drv_context(udata, struct c4iw_ucontext,
 					     ibucontext);
 	free_srq_queue(srq, ucontext ? &ucontext->uctx : &rhp->rdev.uctx,
drivers/infiniband/hw/hfi1/sdma.c +4 -1
index 2395fd4233a7..2ed7bfd5feea 100644
@@ -1526,8 +1526,11 @@ int sdma_init(struct hfi1_devdata *dd, u8 port)
 	}
 
 	ret = rhashtable_init(tmp_sdma_rht, &sdma_rht_params);
-	if (ret < 0)
+	if (ret < 0) {
+		kfree(tmp_sdma_rht);
 		goto bail;
+	}
+
 	dd->sdma_rht = tmp_sdma_rht;
 
 	dd_dev_info(dd, "SDMA num_sdma: %u\n", dd->num_sdma);
drivers/infiniband/hw/hfi1/tid_rdma.c +0 -5
index 6141f4edc6bf..536d974c78cf 100644
@@ -2728,11 +2728,6 @@ static bool handle_read_kdeth_eflags(struct hfi1_ctxtdata *rcd,
 				diff = cmp_psn(psn,
 					       flow->flow_state.r_next_psn);
 				if (diff > 0) {
-					if (!(qp->r_flags & RVT_R_RDMAR_SEQ))
-						restart_tid_rdma_read_req(rcd,
-									  qp,
-									  wqe);
-
 					/* Drop the packet.*/
 					goto s_unlock;
 				} else if (diff < 0) {
drivers/infiniband/hw/mlx5/devx.c +16 -42

91 lines not on this page · raw message

drivers/infiniband/hw/mlx5/mlx5_ib.h +0 -1
index 9ae587b74b12..43c7353b9812 100644
@@ -638,7 +638,6 @@ struct mlx5_ib_mw {
 struct mlx5_ib_devx_mr {
 	struct mlx5_core_mkey	mmkey;
 	int			ndescs;
-	struct rcu_head		rcu;
 };
 
 struct mlx5_ib_umr_context {
drivers/infiniband/hw/mlx5/mr.c +22 -10
index 3401f5f6792e..a6198fe7f376 100644
@@ -1423,6 +1423,9 @@ int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start,
 	if (!mr->umem)
 		return -EINVAL;
 
+	if (is_odp_mr(mr))
+		return -EOPNOTSUPP;
+
 	if (flags & IB_MR_REREG_TRANS) {
 		addr = virt_addr;
 		len = length;
@@ -1468,8 +1471,6 @@ int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start,
 		}
 
 		mr->allocated_from_cache = 0;
-		if (IS_ENABLED(CONFIG_INFINIBAND_ON_DEMAND_PAGING))
-			mr->live = 1;
 	} else {
 		/*
 		 * Send a UMR WQE
@@ -1498,7 +1499,6 @@ int mlx5_ib_rereg_user_mr(struct ib_mr *ib_mr, int flags, u64 start,
 
 	set_mr_fields(dev, mr, npages, len, access_flags);
 
-	update_odp_mr(mr);
 	return 0;
 
 err:
@@ -1591,13 +1591,14 @@ static void dereg_mr(struct mlx5_ib_dev *dev, struct mlx5_ib_mr *mr)
 		 */
 		mr->live = 0;
 
+		/* Wait for all running page-fault handlers to finish. */
+		synchronize_srcu(&dev->mr_srcu);
+
 		/* dequeue pending prefetch requests for the mr */
 		if (atomic_read(&mr->num_pending_prefetch))
 			flush_workqueue(system_unbound_wq);
 		WARN_ON(atomic_read(&mr->num_pending_prefetch));
 
-		/* Wait for all running page-fault handlers to finish. */
-		synchronize_srcu(&dev->mr_srcu);
 		/* Destroy all page mappings */
 		if (umem_odp->page_list)
 			mlx5_ib_invalidate_range(umem_odp,
@@ -1969,14 +1970,25 @@ struct ib_mw *mlx5_ib_alloc_mw(struct ib_pd *pd, enum ib_mw_type type,
 
 int mlx5_ib_dealloc_mw(struct ib_mw *mw)
 {
+	struct mlx5_ib_dev *dev = to_mdev(mw->device);
 	struct mlx5_ib_mw *mmw = to_mmw(mw);
 	int err;
 
-	err =  mlx5_core_destroy_mkey((to_mdev(mw->device))->mdev,
-				      &mmw->mmkey);
-	if (!err)
-		kfree(mmw);
-	return err;
+	if (IS_ENABLED(CONFIG_INFINIBAND_ON_DEMAND_PAGING)) {
+		xa_erase_irq(&dev->mdev->priv.mkey_table,
+			     mlx5_base_mkey(mmw->mmkey.key));
+		/*
+		 * pagefault_single_data_segment() may be accessing mmw under
+		 * SRCU if the user bound an ODP MR to this MW.
+		 */
+		synchronize_srcu(&dev->mr_srcu);
+	}
+
+	err = mlx5_core_destroy_mkey(dev->mdev, &mmw->mmkey);
+	if (err)
+		return err;
+	kfree(mmw);
+	return 0;
 }
 
 int mlx5_ib_check_mr_status(struct ib_mr *ibmr, u32 check_mask,
drivers/infiniband/sw/siw/siw_qp.c +11 -4
index 430314c8abd9..52d402f39df9 100644
@@ -182,12 +182,19 @@ void siw_qp_llp_close(struct siw_qp *qp)
  */
 void siw_qp_llp_write_space(struct sock *sk)
 {
-	struct siw_cep *cep = sk_to_cep(sk);
+	struct siw_cep *cep;
 
-	cep->sk_write_space(sk);
+	read_lock(&sk->sk_callback_lock);
+
+	cep  = sk_to_cep(sk);
+	if (cep) {
+		cep->sk_write_space(sk);
 
-	if (!test_bit(SOCK_NOSPACE, &sk->sk_socket->flags))
-		(void)siw_sq_start(cep->qp);
+		if (!test_bit(SOCK_NOSPACE, &sk->sk_socket->flags))
+			(void)siw_sq_start(cep->qp);
+	}
+
+	read_unlock(&sk->sk_callback_lock);
 }
 
 static int siw_qp_readq_init(struct siw_qp *qp, int irq_size, int orq_size)
drivers/iommu/intel-iommu.c +1 -1
index c4e0e4a9ee9e..f83a9a302f8e 100644
@@ -2783,7 +2783,7 @@ static int identity_mapping(struct device *dev)
 	struct device_domain_info *info;
 
 	info = dev->archdata.iommu;
-	if (info && info != DUMMY_DEVICE_DOMAIN_INFO)
+	if (info && info != DUMMY_DEVICE_DOMAIN_INFO && info != DEFER_DEVICE_DOMAIN_INFO)
 		return (info->domain == si_domain);
 
 	return 0;
drivers/md/dm-snap.c +77 -17

200 lines not on this page · raw message

drivers/misc/fastrpc.c +1 -0
index 98603e235cf0..a76b6c6fd660 100644
@@ -499,6 +499,7 @@ static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf,
 			      FASTRPC_PHYS(buffer->phys), buffer->size);
 	if (ret < 0) {
 		dev_err(buffer->dev, "failed to get scatterlist from DMA API\n");
+		kfree(a);
 		return -EINVAL;
 	}
 
drivers/net/bonding/bond_main.c +1 -1
index 931d9d935686..21d8fcc83c9c 100644
@@ -4039,7 +4039,7 @@ int bond_update_slave_arr(struct bonding *bond, struct slave *skipslave)
 		 * this to-be-skipped slave to send a packet out.
 		 */
 		old_arr = rtnl_dereference(bond->slave_arr);
-		for (idx = 0; idx < old_arr->count; idx++) {
+		for (idx = 0; old_arr != NULL && idx < old_arr->count; idx++) {
 			if (skipslave == old_arr->arr[idx]) {
 				old_arr->arr[idx] =
 				    old_arr->arr[old_arr->count-1];
drivers/net/ethernet/mellanox/mlx5/core/mr.c +1 -7
index 9231b39d18b2..c501bf2a0252 100644
@@ -112,17 +112,11 @@ int mlx5_core_destroy_mkey(struct mlx5_core_dev *dev,
 	u32 out[MLX5_ST_SZ_DW(destroy_mkey_out)] = {0};
 	u32 in[MLX5_ST_SZ_DW(destroy_mkey_in)]   = {0};
 	struct xarray *mkeys = &dev->priv.mkey_table;
-	struct mlx5_core_mkey *deleted_mkey;
 	unsigned long flags;
 
 	xa_lock_irqsave(mkeys, flags);
-	deleted_mkey = __xa_erase(mkeys, mlx5_base_mkey(mkey->key));
+	__xa_erase(mkeys, mlx5_base_mkey(mkey->key));
 	xa_unlock_irqrestore(mkeys, flags);
-	if (!deleted_mkey) {
-		mlx5_core_dbg(dev, "failed xarray delete of mkey 0x%x\n",
-			      mlx5_base_mkey(mkey->key));
-		return -ENOENT;
-	}
 
 	MLX5_SET(destroy_mkey_in, in, opcode, MLX5_CMD_OP_DESTROY_MKEY);
 	MLX5_SET(destroy_mkey_in, in, mkey_index, mlx5_mkey_to_idx(mkey->key));
drivers/net/usb/sr9800.c +1 -1
index 35f39f23d881..8f8c9ede88c2 100644
@@ -336,7 +336,7 @@ static void sr_set_multicast(struct net_device *net)
 static int sr_mdio_read(struct net_device *net, int phy_id, int loc)
 {
 	struct usbnet *dev = netdev_priv(net);
-	__le16 res;
+	__le16 res = 0;
 
 	mutex_lock(&dev->phy_mutex);
 	sr_set_sw_mii(dev);
drivers/net/wireless/ath/ath10k/core.c +9 -6
index dc45d16e8d21..383d4fa555a8 100644
@@ -2118,12 +2118,15 @@ static int ath10k_init_uart(struct ath10k *ar)
 		return ret;
 	}
 
-	if (!uart_print && ar->hw_params.uart_pin_workaround) {
-		ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin,
-					 ar->hw_params.uart_pin);
-		if (ret) {
-			ath10k_warn(ar, "failed to set UART TX pin: %d", ret);
-			return ret;
+	if (!uart_print) {
+		if (ar->hw_params.uart_pin_workaround) {
+			ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin,
+						 ar->hw_params.uart_pin);
+			if (ret) {
+				ath10k_warn(ar, "failed to set UART TX pin: %d",
+					    ret);
+				return ret;
+			}
 		}
 
 		return 0;
drivers/net/wireless/ath/ath6kl/usb.c +8 -0
index 4defb7a0330f..53b66e9434c9 100644
@@ -132,6 +132,10 @@ ath6kl_usb_alloc_urb_from_pipe(struct ath6kl_usb_pipe *pipe)
 	struct ath6kl_urb_context *urb_context = NULL;
 	unsigned long flags;
 
+	/* bail if this pipe is not initialized */
+	if (!pipe->ar_usb)
+		return NULL;
+
 	spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags);
 	if (!list_empty(&pipe->urb_list_head)) {
 		urb_context =
@@ -150,6 +154,10 @@ static void ath6kl_usb_free_urb_to_pipe(struct ath6kl_usb_pipe *pipe,
 {
 	unsigned long flags;
 
+	/* bail if this pipe is not initialized */
+	if (!pipe->ar_usb)
+		return;
+
 	spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags);
 	pipe->urb_cnt++;
 
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +9 -7
index 8b0b464a1f21..c520f42d165c 100644
@@ -887,15 +887,17 @@ static bool iwl_mvm_sar_geo_support(struct iwl_mvm *mvm)
 	 * firmware versions.  Unfortunately, we don't have a TLV API
 	 * flag to rely on, so rely on the major version which is in
 	 * the first byte of ucode_ver.  This was implemented
-	 * initially on version 38 and then backported to29 and 17.
-	 * The intention was to have it in 36 as well, but not all
-	 * 8000 family got this feature enabled.  The 8000 family is
-	 * the only one using version 36, so skip this version
-	 * entirely.
+	 * initially on version 38 and then backported to 17.  It was
+	 * also backported to 29, but only for 7265D devices.  The
+	 * intention was to have it in 36 as well, but not all 8000
+	 * family got this feature enabled.  The 8000 family is the
+	 * only one using version 36, so skip this version entirely.
 	 */
 	return IWL_UCODE_SERIAL(mvm->fw->ucode_ver) >= 38 ||
-	       IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 29 ||
-	       IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 17;
+	       IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 17 ||
+	       (IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 29 &&
+		((mvm->trans->hw_rev & CSR_HW_REV_TYPE_MSK) ==
[… more lines in the raw message]

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

drivers/net/wireless/realtek/rtlwifi/pci.c +2 -1
index 4055e0ab75ba..05050f6c36db 100644

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

drivers/net/wireless/realtek/rtlwifi/ps.c +6 -0
index 70f04c2f5b17..fff8dda14023 100644

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

drivers/net/wireless/realtek/rtw88/rtw8822b.c +1 -1
index 1172f6c0605b..d61d534396c7 100644

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

drivers/nfc/pn533/usb.c +8 -1
index c5289eaf17ee..e897e4d768ef 100644

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

drivers/nvme/host/core.c +16 -92

108 lines not on this page · raw message

drivers/s390/cio/cio.h +1 -0
index ba7d2480613b..dcdaba689b20 100644

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

drivers/s390/cio/css.c +6 -1
index 1fbfb0a93f5f..831850435c23 100644

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

drivers/s390/cio/device.c +1 -1
index c421899be20f..027ef1dde5a7 100644

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

drivers/scsi/qla2xxx/qla_attr.c +3 -4
index 6b7b390b2e52..9584c5a48397 100644

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

drivers/staging/rtl8188eu/os_dep/usb_intf.c +4 -2
index 664d93a7f90d..4fac9dca798e 100644

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

drivers/target/iscsi/cxgbit/cxgbit_cm.c +2 -1
index c70caf4ea490..a2b5c796bbc4 100644

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

drivers/thunderbolt/nhi.c +18 -4
index 27fbe62c7ddd..9c782706e652 100644

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

drivers/thunderbolt/tunnel.c +2 -2
index 31d0234837e4..5a99234826e7 100644

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

drivers/tty/n_hdlc.c +5 -0
index e55c79eb6430..98361acd3053 100644

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

drivers/tty/serial/8250/8250_omap.c +3 -2
index 3ef65cbd2478..e4b08077f875 100644

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

drivers/tty/serial/Kconfig +1 -0
index 3083dbae35f7..3b436ccd29da 100644

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

drivers/tty/serial/owl-uart.c +1 -1
index 29a6dc6a8d23..73fcc6bdb031 100644

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

drivers/tty/serial/rda-uart.c +1 -1
index 284623eefaeb..ba5e488a0374 100644

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

drivers/tty/serial/serial_mctrl_gpio.c +3 -0
index 2b400189be91..54c43e02e375 100644

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

drivers/usb/gadget/udc/core.c +11 -0
index 7cf34beb50df..4d8f8f4ecf98 100644

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

drivers/usb/host/xhci-debugfs.c +12 -12
index 7ba6afc7ef23..76c3f29562d2 100644

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

drivers/usb/host/xhci-ring.c +2 -0
index 85ceb43e3405..e7aab31fd9a5 100644

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

drivers/usb/host/xhci.c +45 -9

54 lines not on this page · raw message

drivers/usb/misc/ldusb.c +3 -3
index 15b5f06fb0b3..f5e34c503454 100644

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

drivers/usb/misc/legousbtower.c +1 -1
index 62dab2441ec4..23061f1526b4 100644

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

drivers/usb/serial/whiteheat.c +10 -3
index 79314d8c94a4..ca3bd58f2025 100644

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

drivers/usb/serial/whiteheat.h +1 -1
index 00398149cd8d..269e727a92f9 100644

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

drivers/usb/storage/scsiglue.c +0 -10
index 05b80211290d..f3c4caf64051 100644

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

drivers/usb/storage/uas.c +0 -20
index 047c5922618f..0d044d59317e 100644

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

drivers/virt/vboxguest/vboxguest_utils.c +2 -1
index 75fd140b02ff..43c391626a00 100644

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

drivers/virtio/virtio_ring.c +3 -4
index bdc08244a648..a8041e451e9e 100644

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

fs/btrfs/ctree.h +1 -2
index e7a1ec075c65..180749080fd8 100644

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

fs/btrfs/delalloc-space.c +2 -4
index 934521fe7e71..8d2bb28ff5e0 100644

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

fs/btrfs/file.c +3 -4
index d68add0bf346..a8a2adaf222f 100644

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

fs/btrfs/inode-map.c +3 -2
index 2e8bb402050b..e2f49615c429 100644

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

fs/btrfs/inode.c +6 -6
index b3453adb214d..1b85278471f6 100644

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

fs/btrfs/ioctl.c +2 -4
index 818f7ec8bb0e..8dad66df74ed 100644

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

fs/btrfs/relocation.c +4 -5
index 074947bebd16..572314aebdf1 100644

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

fs/btrfs/send.c +1 -1
index c3c0c064c25d..91c702b4cae9 100644

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

fs/cifs/netmisc.c +0 -4
index ed92958e842d..657f409d4de0 100644

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

fs/fuse/dir.c +13 -0
index dd0f64f7bc06..0c4b6a41e385 100644

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

fs/fuse/file.c +7 -3
index 91c99724dee0..d199dc0fbac1 100644

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

fs/io_uring.c +40 -18

58 lines not on this page · raw message

fs/nfs/delegation.c +1 -1
index 071b90a45933..ad7a77101471 100644

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

fs/nfs/nfs4proc.c +1 -0
index 1406858bae6c..e1e7d2724b97 100644

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

fs/nfs/write.c +3 -2
index 85ca49549b39..52cab65f91cf 100644

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

fs/ocfs2/aops.c +23 -2
index a4c905d6b575..9b827143a350 100644

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

fs/ocfs2/ioctl.c +1 -1
index d6f7b299eb23..efeea208fdeb 100644

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

fs/ocfs2/xattr.c +23 -33

56 lines not on this page · raw message

include/linux/platform_data/dma-imx-sdma.h +3 -0
index 6eaa53cef0bd..30e676b36b24 100644

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

include/linux/sunrpc/xprtsock.h +1 -0
index 7638dbe7bc50..a940de03808d 100644

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

include/net/llc_conn.h +1 -1
index df528a623548..ea985aa7a6c5 100644

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

include/net/sch_generic.h +5 -0
index 6b6b01234dd9..58b1fbc884a7 100644

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

include/trace/events/rxrpc.h +3 -3
index edc5c887a44c..45556fe771c3 100644

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

include/uapi/linux/nvme_ioctl.h +0 -23
index e168dc59e9a0..1c215ea1798e 100644

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

kernel/events/core.c +36 -9

45 lines not on this page · raw message

kernel/sched/cputime.c +3 -3
index 2305ce89a26c..46ed4e1383e2 100644

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

kernel/sched/fair.c +35 -92

127 lines not on this page · raw message

kernel/sched/sched.h +0 -4
index 802b1f3405f2..28c16e94bc1d 100644

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

kernel/trace/trace.c +1 -0
index 04458ed44a55..a5e27f1c35a1 100644

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

net/batman-adv/bat_iv_ogm.c +52 -9

61 lines not on this page · raw message

net/batman-adv/hard-interface.c +2 -0
index c90e47342bb0..afb52282d5bd 100644

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

net/batman-adv/types.h +3 -0
index 6ae139d74e0f..10597a5f3303 100644

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

net/llc/llc_c_ac.c +6 -2
index 4d78375f9872..647c0554d04c 100644

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

net/llc/llc_conn.c +9 -23
index 4ff89cb7c86f..ed2aca12460c 100644

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

net/llc/llc_s_ac.c +9 -3
index a94bd56bcac6..7ae4cc684d3a 100644

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

net/llc/llc_sap.c +8 -15
index a7f7b8ff4729..be419062e19a 100644

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

net/netfilter/nf_conntrack_core.c +2 -2
index 81a8ef42b88d..56b1cf82ed3a 100644

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

net/rxrpc/peer_object.c +10 -6
index 9c3ac96f71cb..64830d8c1fdb 100644

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

net/rxrpc/sendmsg.c +1 -0
index 6a1547b270fe..22f51a7e356e 100644

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

net/sched/sch_netem.c +1 -1
index f5cb35e550f8..0e44039e729c 100644

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

net/sched/sch_sfb.c +4 -3
index 1dff8506a715..d448fe3068e5 100644

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

net/sunrpc/xprtsock.c +8 -9
index e2176c167a57..4e0b5bed6c73 100644

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

net/wireless/nl80211.c +1 -1
index c2ce582ea143..da752caa1cda 100644

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

sound/core/timer.c +17 -7
index 5c9fbf3f4340..6b724d2ee2de 100644

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

sound/firewire/bebob/bebob_stream.c +1 -2
index 334dc7c96e1d..80ea162bf1a1 100644

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

sound/hda/hdac_controller.c +0 -2
index 196bbc85699e..3b0110545070 100644

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

sound/pci/hda/hda_intel.c +1 -1
index 783f9a9c40ec..b0de3e3b33e5 100644

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

sound/pci/hda/patch_realtek.c +11 -0
index 26249c607f2c..d4daa3c937ba 100644

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

sound/usb/quirks.c +7 -6
index b6f7b13768a1..059b70313f35 100644

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

tools/lib/subcmd/Makefile +7 -1
index ed61fb3a46c0..5b2cd5e58df0 100644

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

tools/perf/arch/arm/annotate/instructions.c +2 -2
index c7d1a69b894f..19ac54758c71 100644

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

tools/perf/arch/arm64/annotate/instructions.c +2 -2
index 8f70a1b282df..223e2f161f41 100644

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

tools/perf/arch/powerpc/util/header.c +2 -1
index 0b242664f5ea..e46be9ef5a68 100644

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

tools/perf/arch/s390/annotate/instructions.c +4 -2
index 89bb8f2c54ce..a50e70baf918 100644

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

tools/perf/arch/s390/util/header.c +5 -4
index 8b0b018d896a..7933f6871c81 100644

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

tools/perf/arch/x86/annotate/instructions.c +4 -2
index 44f5aba78210..7eb5621c021d 100644

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

tools/perf/arch/x86/util/header.c +2 -1
index af9a9f2600be..a089af60906a 100644

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

tools/perf/builtin-kvm.c +4 -3
index b33c83489120..44ff3ea1da23 100644

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

tools/perf/builtin-script.c +5 -1
index 0140ddb8dd0b..c14a1cdad80c 100644

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

tools/perf/pmu-events/jevents.c +6 -6
index d413761621b0..fa85e33762f7 100644

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

tools/perf/tests/perf-hooks.c +1 -2
index a693bcf017ea..44c16fd11bf6 100644

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

tools/perf/util/annotate.c +26 -9
index 163536720149..2e02d2a0176a 100644

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

tools/perf/util/annotate.h +4 -0
index 5bc0cf655d37..2004e2cf0211 100644

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

tools/perf/util/map.c +3 -0
index 7666206d06fa..f18113581cf0 100644

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

tools/testing/selftests/Makefile +4 -0
index 25b43a8c2b15..1779923d7a7b 100644

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

tools/testing/selftests/kselftest/runner.sh +33 -3
index 00c9020bdda8..84de7bc74f2c 100644

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

tools/testing/selftests/rtc/settings new file +1 -0
new file mode 100644
index 000000000000..ba4d85f74cd6

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.