Skip to contentSkip to conversation

Linux 5.2.9

DISCUSSION Greg KH 2 participants 3 messages Aug 16, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 5.2.9 kernel.

All users of the 5.2 kernel series must upgrade.

The updated 5.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.2.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

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

 Makefile                                                  |    2 
 arch/arm/boot/dts/bcm47094-linksys-panamera.dts           |    3 
 arch/arm/boot/dts/imx6ul-14x14-evk.dtsi                   |    2 
 arch/arm/boot/dts/imx6ul-geam.dts                         |    2 
 arch/arm/boot/dts/imx6ul-isiot.dtsi                       |    2 
 arch/arm/boot/dts/imx6ul-pico-hobbit.dts                  |    2 
 arch/arm/boot/dts/imx6ul-pico-pi.dts                      |    4 
 arch/arm/mach-davinci/sleep.S                             |    1 
 arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h            |    4 
 arch/arm64/boot/dts/freescale/imx8mq.dtsi                 |    3 
 arch/arm64/include/asm/processor.h                        |   14 +
 arch/arm64/kernel/entry.S                                 |   22 +
 arch/arm64/kernel/process.c                               |   29 ++
 arch/powerpc/kvm/powerpc.c                                |    5 
 arch/powerpc/mm/mem.c                                     |    2 
 arch/powerpc/platforms/pseries/papr_scm.c                 |   15 +
 arch/s390/include/asm/page.h                              |    2 
 arch/x86/boot/string.c                                    |    8 
 arch/x86/events/intel/core.c                              |    7 
 arch/x86/events/intel/ds.c                                |    2 
 arch/x86/include/asm/kvm_host.h                           |    1 
 arch/x86/kvm/svm.c                                        |   10 
 arch/x86/kvm/vmx/vmx.c                                    |    6 
 arch/x86/kvm/x86.c                                        |   16 +
 arch/x86/mm/fault.c                                       |   15 -
 arch/x86/purgatory/Makefile                               |   36 ++-
 arch/x86/purgatory/purgatory.c                            |    6 
 arch/x86/purgatory/string.c                               |   23 -
 block/blk-rq-qos.c                                        |    6 
 drivers/acpi/arm64/iort.c                                 |    4 
 drivers/base/platform.c                                   |    9 
 drivers/block/drbd/drbd_receiver.c                        |   14 +
 drivers/block/loop.c                                      |    2 
 drivers/cpufreq/pasemi-cpufreq.c                          |   23 -
 drivers/crypto/ccp/ccp-crypto-aes-galois.c                |   14 +
 drivers/crypto/ccp/ccp-ops.c                              |   33 ++
 drivers/firmware/Kconfig                                  |    5 
 drivers/firmware/iscsi_ibft.c                             |    4 
 drivers/gpu/drm/amd/display/dc/core/dc.c                  |    6 
 drivers/gpu/drm/amd/display/dc/core/dc_link.c             |    9 
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c          |    9 
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c         |   11 
 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c              |    4 
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c |   21 -
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c     |    2 
 drivers/gpu/drm/amd/display/dc/inc/core_types.h           |    2 
 drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h         |    1 
 drivers/gpu/drm/drm_framebuffer.c                         |    2 
 drivers/gpu/drm/i915/vlv_dsi_pll.c                        |    4 
 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c               |    3 
 drivers/hid/hid-sony.c                                    |   15 +
 drivers/hwmon/lm75.c                                      |    2 
 drivers/hwmon/nct6775.c                                   |    3 
 drivers/hwmon/nct7802.c                                   |    6 
 drivers/hwmon/occ/common.c                                |    6 
 drivers/hwtracing/coresight/coresight-etm-perf.c          |    1 
 drivers/iio/accel/cros_ec_accel_legacy.c                  |    1 
 drivers/iio/adc/ingenic-adc.c                             |   54 ++++
 drivers/iio/adc/max9611.c                                 |    2 
 drivers/iio/adc/rcar-gyroadc.c                            |    4 
 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c                |   43 +++
 drivers/input/mouse/elantech.c                            |   54 ++--
 drivers/input/mouse/synaptics.c                           |    1 
 drivers/input/touchscreen/usbtouchscreen.c                |    2 
 drivers/iommu/intel-iommu.c                               |    8 
 drivers/mmc/host/cavium.c                                 |    4 
 drivers/net/can/flexcan.c                                 |   39 ++-
 drivers/net/can/rcar/rcar_canfd.c                         |    9 
 drivers/net/can/usb/peak_usb/pcan_usb_core.c              |    8 
 drivers/net/can/usb/peak_usb/pcan_usb_fd.c                |    2 
 drivers/net/can/usb/peak_usb/pcan_usb_pro.c               |    2 
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c      |    3 
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c               |   29 +-
 drivers/net/wireless/intel/iwlwifi/mvm/tx.c               |    3 
 drivers/net/wireless/intel/iwlwifi/pcie/tx.c              |    2 
 drivers/net/wireless/marvell/mwifiex/main.h               |    1 
 drivers/net/wireless/marvell/mwifiex/scan.c               |    3 
 drivers/nvme/host/core.c                                  |   12 -
 drivers/nvme/host/pci.c                                   |    2 
 drivers/pci/pci.c                                         |   29 --
 drivers/pci/pci.h                                         |    1 
 drivers/pci/pcie/portdrv_core.c                           |   66 -----
 drivers/s390/cio/qdio_main.c                              |   12 -
 drivers/s390/cio/vfio_ccw_cp.c                            |    4 
 drivers/s390/cio/vfio_ccw_drv.c                           |    2 
 drivers/scsi/device_handler/scsi_dh_alua.c                |    7 
 drivers/scsi/ibmvscsi/ibmvfc.c                            |    2 
 drivers/scsi/megaraid/megaraid_sas_base.c                 |    3 
 drivers/staging/android/ion/ion_page_pool.c               |    3 
 drivers/staging/fbtft/fbtft-core.c                        |   43 +--
 drivers/staging/gasket/apex_driver.c                      |    2 
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c         |    1 
 drivers/tty/tty_ldsem.c                                   |    5 
 drivers/usb/core/devio.c                                  |    2 
 drivers/usb/host/xhci-rcar.c                              |    9 
 drivers/usb/misc/iowarrior.c                              |    7 
 drivers/usb/misc/rio500.c                                 |   43 ++-
 drivers/usb/misc/yurex.c                                  |    2 
 drivers/usb/typec/tcpm/tcpm.c                             |   58 +++-
 drivers/usb/typec/ucsi/ucsi_ccg.c                         |    2 
 fs/block_dev.c                                            |    5 
 fs/cifs/smb2pdu.c                                         |    7 
 fs/dax.c                                                  |    2 
 fs/gfs2/bmap.c                                            |  164 ++++++++------
 fs/nfs/delegation.c                                       |    2 
 fs/nfs/delegation.h                                       |    2 
 fs/nfs/nfs4proc.c                                         |   39 +--
 include/kvm/arm_vgic.h                                    |    1 
 include/linux/ccp.h                                       |    2 
 include/linux/kvm_host.h                                  |    1 
 include/sound/compress_driver.h                           |    5 
 include/uapi/linux/nl80211.h                              |    2 
 kernel/events/core.c                                      |    2 
 kernel/irq/affinity.c                                     |    6 
 lib/test_firmware.c                                       |    5 
 mm/vmalloc.c                                              |    9 
 net/ipv4/netfilter/ipt_rpfilter.c                         |    1 
 net/ipv6/netfilter/ip6t_rpfilter.c                        |    8 
 net/mac80211/cfg.c                                        |    8 
 net/mac80211/driver-ops.c                                 |   13 -
 net/mac80211/mlme.c                                       |   10 
 net/netfilter/nf_conntrack_proto_tcp.c                    |    8 
 net/netfilter/nfnetlink.c                                 |    2 
 net/netfilter/nft_chain_nat.c                             |    3 
 net/netfilter/nft_hash.c                                  |    2 
 net/netfilter/nft_redir.c                                 |    2 
 scripts/gen_compile_commands.py                           |    4 
 scripts/sphinx-pre-install                                |   74 ++++--
 sound/core/compress_offload.c                             |   60 ++++-
 sound/firewire/packets-buffer.c                           |    2 
 sound/pci/hda/hda_controller.c                            |   13 -
 sound/pci/hda/hda_controller.h                            |    2 
 sound/pci/hda/hda_intel.c                                 |   63 +++++
 sound/sound_core.c                                        |    3 
 sound/usb/hiface/pcm.c                                    |   11 
 sound/usb/stream.c                                        |    1 
 tools/perf/arch/s390/util/machine.c                       |   31 ++
 tools/perf/builtin-probe.c                                |   10 
 tools/perf/builtin-script.c                               |    2 
 tools/perf/builtin-stat.c                                 |    9 
 tools/perf/util/evsel.c                                   |    2 
 tools/perf/util/header.c                                  |    2 
 tools/perf/util/machine.c                                 |    3 
 tools/perf/util/machine.h                                 |    2 
 tools/perf/util/session.c                                 |   22 +
 tools/perf/util/session.h                                 |    1 
 tools/perf/util/symbol.c                                  |    7 
 tools/perf/util/symbol.h                                  |    1 
 tools/perf/util/thread.c                                  |   12 -
 tools/perf/util/zstd.c                                    |    4 
 virt/kvm/arm/arm.c                                        |   11 
 virt/kvm/arm/vgic/vgic-v2.c                               |    9 
 virt/kvm/arm/vgic/vgic-v3.c                               |    7 
 virt/kvm/arm/vgic/vgic.c                                  |   11 
 virt/kvm/arm/vgic/vgic.h                                  |    2 
 virt/kvm/kvm_main.c                                       |   25 ++
 156 files changed, 1222 insertions(+), 551 deletions(-)

Adham Abozaeid (1):
staging: wilc1000: flush the workqueue before deinit the host

Adrian Hunter (1):
perf db-export: Fix thread__exec_comm()

Alexey Budankov (1):
perf session: Fix loading of compressed data split across adjacent records

Alvin Lee (1):
drm/amd/display: Only enable audio if speaker allocation exists

Andi Kleen (1):
perf script: Fix off by one in brstackinsn IPC computation

Andrea Arcangeli (1):
powerpc: fix off by one in max_zone_pfn initialization for ZONE_DMA

Andreas Gruenbacher (1):
gfs2: gfs2_walk_metadata fix

Anson Huang (1):
arm64: dts: imx8mm: Correct SAI3 RXC/TXFS pin's mux option #1

Arnaldo Carvalho de Melo (1):
perf probe: Avoid calling freeing routine multiple times for same pointer

Arnd Bergmann (4):
iio: adc: gyroadc: fix uninitialized return code
drbd: dynamically allocate shash descriptor
ARM: davinci: fix sleep.S build error on ARMv4
ARM: dts: bcm: bcm47094: add missing #cells for mdio-bus-mux

Björn Gerhart (1):
hwmon: (nct6775) Fix register address and added missed tolerance for nct6106

Brian Norris (4):
driver core: platform: return -ENXIO for missing GpioInt
mac80211: don't warn about CW params when not using them
mac80211: don't WARN on short WMM parameters from AP
mwifiex: fix 802.11n/WPA detection

Charles Keepax (4):
ALSA: compress: Fix regression on compressed capture streams
ALSA: compress: Prevent bypasses of set_params
ALSA: compress: Don't allow paritial drain operations on capture streams
ALSA: compress: Be more restrictive about when a drain is allowed

Christian Hesse (1):
netfilter: nf_tables: fix module autoload for redir

Derek Lai (1):
drm/amd/display: allocate 4 ddc engines for RV2

Dmitry Safonov (1):

      iommu/vt-d: Check if domain->pgd was allocated

Dmitry Torokhov (1):
Input: synaptics - enable RMI mode for HP Spectre X360

Emmanuel Grumbach (3):
iwlwifi: don't unmap as page memory that was mapped as single
iwlwifi: mvm: fix an out-of-bound access
iwlwifi: mvm: fix a use-after-free bug in iwl_mvm_tx_tso_segment

Eric Yang (1):
drm/amd/display: put back front end initialization sequence

Farhan Ali (2):
vfio-ccw: Set pa_nr to 0 if memory allocation fails for pa_iova_pfn
vfio-ccw: Don't call cp_free if we are processing a channel program

Florian Westphal (2):
netfilter: nfnetlink: avoid deadlock due to synchronous request_module
netfilter: conntrack: always store window size un-scaled

Gary R Hook (3):
crypto: ccp - Fix oops by properly managing allocated structures
crypto: ccp - Add support for valid authsize values less than 16
crypto: ccp - Ignore tag length when decrypting GCM ciphertext

Gavin Li (1):
usb: usbfs: fix double-free of usb memory upon submiturb error

Greg Kroah-Hartman (1):

      Linux 5.2.9

Guenter Roeck (3):
usb: typec: tcpm: Add NULL check before dereferencing config
usb: typec: tcpm: Ignore unsupported/unknown alternate mode requests
hwmon: (nct7802) Fix wrong detection of in4 presence

Gwendal Grignou (1):
iio: cros_ec_accel_legacy: Fix incorrect channel setting

Halil Pasic (1):
s390/dma: provide proper ARCH_ZONE_DMA_BITS value

Hannes Reinecke (1):
scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG

Harmanprit Tatla (1):
drm/amd/display: No audio endpoint for Dell MST display

Heikki Krogerus (1):
usb: typec: ucsi: ccg: Fix uninitilized symbol error

Iker Perez del Palomar Sustatxa (1):
hwmon: (lm75) Fixup tmp75b clr_mask

Ivan Bornyakov (1):
staging: gasket: apex: fix copy-paste typo

James Morse (1):
arm64: entry: SP Alignment Fault doesn't write to FAR_EL1

Jan Kara (1):
bdev: Fixup error handling in blkdev_get()

Jean-Baptiste Maneyrol (1):
iio: imu: mpu6050: add missing available scan masks

Jiri Olsa (2):
perf tools: Fix proper buffer size for feature processing perf stat: Fix segfault for event group in repeat mode

Joakim Zhang (1):
can: flexcan: fix stop mode acknowledgment

Joe Perches (1):
iio: adc: max9611: Fix misuse of GENMASK macro

Joerg Roedel (3):
x86/mm: Check for pfn instead of page in vmalloc_sync_one() x86/mm: Sync also unmappings in vmalloc_sync_all() mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

John Crispin (1):

      nl80211: fix NL80211_HE_MAX_CAPABILITY_LEN

Josef Bacik (3):
rq-qos: don't reset has_sleepers on spurious wakeups
rq-qos: set ourself TASK_UNINTERRUPTIBLE after we schedule
rq-qos: use a mb for got_token

Julian Parkin (1):
drm/amd/display: Fix dc_create failure handling and 666 color depths

Julian Wiedmann (1):
s390/qdio: add sanity checks to the fast-requeue path

Junxiao Bi (1):
scsi: megaraid_sas: fix panic on loading firmware crashdump

Kai-Heng Feng (1):
Input: elantech - enable SMBus on new (2018+) systems

Kan Liang (1):
perf/x86/intel: Fix SLOTS PEBS event constraint

Kevin Hao (2):
mmc: cavium: Set the correct dma max segment size for mmc_host
mmc: cavium: Add the missing dma unmap when the dma has finished.

Laura Garcia Liebana (1):
netfilter: nft_hash: fix symhash with modulus one

Lei YU (1):
hwmon: (occ) Fix division by zero issue

Leonard Crestez (1):

      perf/core: Fix creating kernel counters for PMUs that override event->cpu

Li Jun (2):
usb: typec: tcpm: free log buf memory when remove debug file
usb: typec: tcpm: remove tcpm dir if no children

Logan Gunthorpe (1):
nvme: fix memory leak caused by incorrect subsystem free

Lorenzo Bianconi (1):
mac80211: fix possible memory leak in ieee80211_assign_beacon

Lorenzo Pieralisi (1):
ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id()

Luca Coelho (2):
iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT on version < 41
iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support

Lucas Stach (1):
arm64: dts: imx8mq: fix SAI compatible

Maarten ter Huurne (1):
IIO: Ingenic JZ47xx: Set clock divider on probe

Marc Zyngier (2):
arm64: Force SSBS on context switch
KVM: arm/arm64: Sync ICH_VMCR_EL2 back when about to block

Masahiro Yamada (1):
gen_compile_commands: lower the entry count threshold

Mauro Carvalho Chehab (3):
scripts/sphinx-pre-install: fix script for RHEL/CentOS scripts/sphinx-pre-install: don't use LaTeX with CentOS 7 scripts/sphinx-pre-install: fix latexmk dependencies

Miaohe Lin (1):
netfilter: Fix rpfilter dropping vrf packets by mistake

Mika Westerberg (1):
Revert "PCI: Add missing link delays required by the PCIe spec"

Mikulas Patocka (1):
loop: set PF_MEMALLOC_NOIO for the worker thread

Ming Lei (1):
genirq/affinity: Create affinity mask for single vector

Misha Nasledov (1):
nvme: ignore subnqn for ADATA SX6000LNP

Murton Liu (1):
drm/amd/display: Clock does not lower in Updateplanes

Navid Emamdoost (1):
allocate_flower_entry: should check for null deref

Nick Desaulniers (2):
x86/purgatory: Do not use __builtin_memcpy and __builtin_memset x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS

Nikita Yushchenko (1):
can: rcar_canfd: fix possible IRQ storm on high load

Oliver Neukum (3):
Revert "USB: rio500: simplify locking"
usb: iowarrior: fix deadlock on disconnect
Input: usbtouchscreen - initialize PM mutex before using it

Pavel Shilovsky (1):
SMB3: Fix deadlock in validate negotiate hits reconnect

Peter Zijlstra (1):
tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop

Phil Reid (2):
Staging: fbtft: Fix probing of gpio descriptor
Staging: fbtft: Fix reset assertion when using gpio descriptor

Phil Sutter (1):
netfilter: nf_tables: Support auto-loading for inet nat

Qian Cai (1):
drm: silence variable 'conn' set but not used

Roderick Colenbrander (1):
HID: sony: Fix race condition between rumble and device remove.

Shubhashree Dhar (1):
drm/msm/dpu: Correct dpu encoder spinlock initialization

SivapiriyanKumarasamy (1):
drm/amd/display: Wait for backlight programming completion in set backlight level

Stanislav Lisovskiy (1):
drm/i915: Fix wrong escape clock divisor init for GLK

Stephane Grosjean (1):
can: peak_usb: fix potential double kfree_skb()

Steve French (1):
smb3: send CAP_DFS capability during session setup

Suzuki K Poulose (2):
coresight: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute
usb: yurex: Fix use-after-free in yurex_delete

Sébastien Szymanski (1):
ARM: dts: imx6ul: fix clock frequency property name of I2C buses

Tai Man (2):
drm/amd/display: use encoder's engine id to find matched free audio device drm/amd/display: Increase size of audios array

Takashi Iwai (2):
ALSA: hda - Don't override global PCM hw info flag
ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)

Tetsuo Handa (1):
staging: android: ion: Bail out upon SIGKILL when allocating memory.

Thomas Richter (2):
perf annotate: Fix s390 gap between kernel end and module start perf record: Fix module size on s390

Thomas Tai (1):
iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND

Tomas Bortoli (2):
can: peak_usb: pcan_usb_pro: Fix info-leaks to USB devices
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices

Trond Myklebust (3):
NFSv4: Fix delegation state recovery
NFSv4: Check the return value of update_open_stateid()
NFSv4: Fix an Oops in nfs4_do_setattr

Tyrel Datwyler (1):
scsi: ibmvfc: fix WARN_ON during event pool release

Vaibhav Jain (1):
powerpc/papr_scm: Force a scm-unbind if initial scm-bind fails

Vitaly Kuznetsov (1):
KVM/nSVM: properly map nested VMCB

Vivek Goyal (1):
dax: dax_layout_busy_page() should not unmap cow pages

Wanpeng Li (1):
KVM: Fix leak vCPU's VMCS value into other pCPU

Wen Yang (2):
can: flexcan: fix an use-after-free in flexcan_setup_stop_mode() cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()

Wenwen Wang (5):
sound: fix a memory leak bug
test_firmware: fix a memory leak bug
ALSA: usb-audio: fix a memory leak bug
ALSA: firewire: fix a memory leak bug
ALSA: hiface: fix multiple memory leak bugs

Yoshihiro Shimoda (1):
usb: host: xhci-rcar: Fix timeout in xhci_suspend()

Yunying Sun (1):
perf/x86/intel: Fix invalid Bit 13 for Icelake MSR_OFFCORE_RSP_x register

Zhenzhong Duan (1):
perf/x86: Apply more accurate check on hypervisor platform

Zi Yu Liao (1):
drm/amd/display: fix DMCU hang when going into Modern Standby

author maintainer
#1 lore raw
Makefile +1 -1
index bad87c4c8117..cfc667fe9959 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 2
-SUBLEVEL = 8
+SUBLEVEL = 9
 EXTRAVERSION =
 NAME = Bobtail Squid
 
arch/arm/boot/dts/bcm47094-linksys-panamera.dts +3 -0
index 5fd47eec4407..1679959a3654 100644
@@ -126,6 +126,9 @@
 	};
 
 	mdio-bus-mux {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
 		/* BIT(9) = 1 => external mdio */
 		mdio_ext: mdio@200 {
 			reg = <0x200>;
arch/arm/boot/dts/imx6ul-14x14-evk.dtsi +1 -1
index 9207d5d071f1..d556f7c541ce 100644
@@ -112,7 +112,7 @@
 };
 
 &i2c2 {
-	clock_frequency = <100000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
arch/arm/boot/dts/imx6ul-geam.dts +1 -1
index bc77f26a2f1d..6157a058feec 100644
@@ -156,7 +156,7 @@
 };
 
 &i2c2 {
-	clock_frequency = <100000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
arch/arm/boot/dts/imx6ul-isiot.dtsi +1 -1
index 213e802bf35c..23e6e2e7ace9 100644
@@ -148,7 +148,7 @@
 };
 
 &i2c2 {
-	clock_frequency = <100000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
arch/arm/boot/dts/imx6ul-pico-hobbit.dts +1 -1
index 39eeeddac39e..09f7ffa9ad8c 100644
@@ -43,7 +43,7 @@
 };
 
 &i2c2 {
-	clock_frequency = <100000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
arch/arm/boot/dts/imx6ul-pico-pi.dts +2 -2
index de07357b27fc..6cd7d5877d20 100644
@@ -43,7 +43,7 @@
 };
 
 &i2c2 {
-	clock_frequency = <100000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c2>;
 	status = "okay";
@@ -58,7 +58,7 @@
 };
 
 &i2c3 {
-	clock_frequency = <100000>;
+	clock-frequency = <100000>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c3>;
 	status = "okay";
arch/arm/mach-davinci/sleep.S +1 -0
index 05d03f09ff54..71262dcdbca3 100644
@@ -24,6 +24,7 @@
 #define DEEPSLEEP_SLEEPENABLE_BIT	BIT(31)
 
 	.text
+	.arch	armv5te
 /*
  * Move DaVinci into deep sleep state
  *
arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h +2 -2
index e25f7fcd7997..cffa8991880d 100644
@@ -462,7 +462,7 @@
 #define MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28                                   0x1CC 0x434 0x000 0x5 0x0
 #define MX8MM_IOMUXC_SAI3_RXFS_TPSMP_HTRANS0                                0x1CC 0x434 0x000 0x7 0x0
 #define MX8MM_IOMUXC_SAI3_RXC_SAI3_RX_BCLK                                  0x1D0 0x438 0x000 0x0 0x0
-#define MX8MM_IOMUXC_SAI3_RXC_GPT1_CAPTURE2                                 0x1D0 0x438 0x000 0x1 0x0
+#define MX8MM_IOMUXC_SAI3_RXC_GPT1_CLK                                      0x1D0 0x438 0x000 0x1 0x0
 #define MX8MM_IOMUXC_SAI3_RXC_SAI5_RX_BCLK                                  0x1D0 0x438 0x4D0 0x2 0x2
 #define MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29                                    0x1D0 0x438 0x000 0x5 0x0
 #define MX8MM_IOMUXC_SAI3_RXC_TPSMP_HTRANS1                                 0x1D0 0x438 0x000 0x7 0x0
@@ -472,7 +472,7 @@
 #define MX8MM_IOMUXC_SAI3_RXD_GPIO4_IO30                                    0x1D4 0x43C 0x000 0x5 0x0
 #define MX8MM_IOMUXC_SAI3_RXD_TPSMP_HDATA0                                  0x1D4 0x43C 0x000 0x7 0x0
 #define MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC                                 0x1D8 0x440 0x000 0x0 0x0
-#define MX8MM_IOMUXC_SAI3_TXFS_GPT1_CLK                                     0x1D8 0x440 0x000 0x1 0x0
+#define MX8MM_IOMUXC_SAI3_TXFS_GPT1_CAPTURE2                                0x1D8 0x440 0x000 0x1 0x0
 #define MX8MM_IOMUXC_SAI3_TXFS_SAI5_RX_DATA1                                0x1D8 0x440 0x4D8 0x2 0x2
 #define MX8MM_IOMUXC_SAI3_TXFS_GPIO4_IO31                                   0x1D8 0x440 0x000 0x5 0x0
 #define MX8MM_IOMUXC_SAI3_TXFS_TPSMP_HDATA1                                 0x1D8 0x440 0x000 0x7 0x0
arch/arm64/boot/dts/freescale/imx8mq.dtsi +1 -2
index 6d635ba0904c..6632cbd88bed 100644
@@ -675,8 +675,7 @@
 
 			sai2: sai@308b0000 {
 				#sound-dai-cells = <0>;
-				compatible = "fsl,imx8mq-sai",
-					     "fsl,imx6sx-sai";
+				compatible = "fsl,imx8mq-sai";
 				reg = <0x308b0000 0x10000>;
 				interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&clk IMX8MQ_CLK_SAI2_IPG>,
arch/arm64/include/asm/processor.h +12 -2
index fd5b1a4efc70..844e2964b0f5 100644
@@ -193,6 +193,16 @@ static inline void start_thread_common(struct pt_regs *regs, unsigned long pc)
 		regs->pmr_save = GIC_PRIO_IRQON;
 }
 
+static inline void set_ssbs_bit(struct pt_regs *regs)
+{
+	regs->pstate |= PSR_SSBS_BIT;
+}
+
+static inline void set_compat_ssbs_bit(struct pt_regs *regs)
+{
+	regs->pstate |= PSR_AA32_SSBS_BIT;
+}
+
 static inline void start_thread(struct pt_regs *regs, unsigned long pc,
 				unsigned long sp)
 {
@@ -200,7 +210,7 @@ static inline void start_thread(struct pt_regs *regs, unsigned long pc,
 	regs->pstate = PSR_MODE_EL0t;
 
 	if (arm64_get_ssbd_state() != ARM64_SSBD_FORCE_ENABLE)
-		regs->pstate |= PSR_SSBS_BIT;
+		set_ssbs_bit(regs);
 
 	regs->sp = sp;
 }
@@ -219,7 +229,7 @@ static inline void compat_start_thread(struct pt_regs *regs, unsigned long pc,
 #endif
 
 	if (arm64_get_ssbd_state() != ARM64_SSBD_FORCE_ENABLE)
-		regs->pstate |= PSR_AA32_SSBS_BIT;
+		set_compat_ssbs_bit(regs);
 
 	regs->compat_sp = sp;
 }
arch/arm64/kernel/entry.S +13 -9
index 9cdc4592da3e..320a30dbe35e 100644
@@ -586,10 +586,8 @@ el1_sync:
 	b.eq	el1_ia
 	cmp	x24, #ESR_ELx_EC_SYS64		// configurable trap
 	b.eq	el1_undef
-	cmp	x24, #ESR_ELx_EC_SP_ALIGN	// stack alignment exception
-	b.eq	el1_sp_pc
 	cmp	x24, #ESR_ELx_EC_PC_ALIGN	// pc alignment exception
-	b.eq	el1_sp_pc
+	b.eq	el1_pc
 	cmp	x24, #ESR_ELx_EC_UNKNOWN	// unknown exception in EL1
 	b.eq	el1_undef
 	cmp	x24, #ESR_ELx_EC_BREAKPT_CUR	// debug exception in EL1
@@ -611,9 +609,11 @@ el1_da:
 	bl	do_mem_abort
 
 	kernel_exit 1
-el1_sp_pc:
+el1_pc:
 	/*
-	 * Stack or PC alignment exception handling
+	 * PC alignment exception handling. We don't handle SP alignment faults,
+	 * since we will have hit a recursive exception when trying to push the
+	 * initial pt_regs.
 	 */
 	mrs	x0, far_el1
 	inherit_daif	pstate=x23, tmp=x2
@@ -732,9 +732,9 @@ el0_sync:
 	ccmp	x24, #ESR_ELx_EC_WFx, #4, ne
 	b.eq	el0_sys
 	cmp	x24, #ESR_ELx_EC_SP_ALIGN	// stack alignment exception
-	b.eq	el0_sp_pc
+	b.eq	el0_sp
 	cmp	x24, #ESR_ELx_EC_PC_ALIGN	// pc alignment exception
-	b.eq	el0_sp_pc
+	b.eq	el0_pc
 	cmp	x24, #ESR_ELx_EC_UNKNOWN	// unknown exception in EL0
 	b.eq	el0_undef
 	cmp	x24, #ESR_ELx_EC_BREAKPT_LOW	// debug exception in EL0
@@ -758,7 +758,7 @@ el0_sync_compat:
 	cmp	x24, #ESR_ELx_EC_FP_EXC32	// FP/ASIMD exception
 	b.eq	el0_fpsimd_exc
 	cmp	x24, #ESR_ELx_EC_PC_ALIGN	// pc alignment exception
-	b.eq	el0_sp_pc
+	b.eq	el0_pc
 	cmp	x24, #ESR_ELx_EC_UNKNOWN	// unknown exception in EL0
 	b.eq	el0_undef
 	cmp	x24, #ESR_ELx_EC_CP15_32	// CP15 MRC/MCR trap
@@ -858,11 +858,15 @@ el0_fpsimd_exc:
 	mov	x1, sp
 	bl	do_fpsimd_exc
 	b	ret_to_user
+el0_sp:
+	ldr	x26, [sp, #S_SP]
+	b	el0_sp_pc
+el0_pc:
+	mrs	x26, far_el1
 el0_sp_pc:
 	/*
 	 * Stack or PC alignment exception handling
 	 */
-	mrs	x26, far_el1
 	gic_prio_kentry_setup tmp=x0
 	enable_da_f
 #ifdef CONFIG_TRACE_IRQFLAGS
arch/arm64/kernel/process.c +28 -1
index 6a869d9f304f..b0c859ca6320 100644
@@ -398,7 +398,7 @@ int copy_thread(unsigned long clone_flags, unsigned long stack_start,
 			childregs->pstate |= PSR_UAO_BIT;
 
 		if (arm64_get_ssbd_state() == ARM64_SSBD_FORCE_DISABLE)
-			childregs->pstate |= PSR_SSBS_BIT;
+			set_ssbs_bit(childregs);
 
 		if (system_uses_irq_prio_masking())
 			childregs->pmr_save = GIC_PRIO_IRQON;
@@ -442,6 +442,32 @@ void uao_thread_switch(struct task_struct *next)
 	}
 }
 
+/*
+ * Force SSBS state on context-switch, since it may be lost after migrating
+ * from a CPU which treats the bit as RES0 in a heterogeneous system.
+ */
+static void ssbs_thread_switch(struct task_struct *next)
+{
+	struct pt_regs *regs = task_pt_regs(next);
+
+	/*
+	 * Nothing to do for kernel threads, but 'regs' may be junk
+	 * (e.g. idle task) so check the flags and bail early.
+	 */
+	if (unlikely(next->flags & PF_KTHREAD))
+		return;
+
+	/* If the mitigation is enabled, then we leave SSBS clear. */
+	if ((arm64_get_ssbd_state() == ARM64_SSBD_FORCE_ENABLE) ||
+	    test_tsk_thread_flag(next, TIF_SSBD))
+		return;
+
+	if (compat_user_mode(regs))
+		set_compat_ssbs_bit(regs);
+	else if (user_mode(regs))
+		set_ssbs_bit(regs);
+}
+
 /*
  * We store our current task in sp_el0, which is clobbered by userspace. Keep a
  * shadow copy so that we can restore this upon entry from userspace.
@@ -471,6 +497,7 @@ __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev,
 	entry_task_switch(next);
 	uao_thread_switch(next);
 	ptrauth_thread_switch(next);
+	ssbs_thread_switch(next);
 
 	/*
 	 * Complete any pending TLB or cache maintenance on this CPU in case
arch/powerpc/kvm/powerpc.c +5 -0
index 6d704ad2472b..993017dd83ca 100644
@@ -50,6 +50,11 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *v)
 	return !!(v->arch.pending_exceptions) || kvm_request_pending(v);
 }
 
+bool kvm_arch_dy_runnable(struct kvm_vcpu *vcpu)
+{
+	return kvm_arch_vcpu_runnable(vcpu);
+}
+
 bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
 {
 	return false;
arch/powerpc/mm/mem.c +1 -1
index 2540d3b2588c..2eda1ec36f55 100644
@@ -249,7 +249,7 @@ void __init paging_init(void)
 
 #ifdef CONFIG_ZONE_DMA
 	max_zone_pfns[ZONE_DMA]	= min(max_low_pfn,
-			((1UL << ARCH_ZONE_DMA_BITS) - 1) >> PAGE_SHIFT);
+				      1UL << (ARCH_ZONE_DMA_BITS - PAGE_SHIFT));
 #endif
 	max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
 #ifdef CONFIG_HIGHMEM
arch/powerpc/platforms/pseries/papr_scm.c +14 -1
index 96c53b23e58f..dad9825e4087 100644
@@ -42,8 +42,9 @@ struct papr_scm_priv {
 static int drc_pmem_bind(struct papr_scm_priv *p)
 {
 	unsigned long ret[PLPAR_HCALL_BUFSIZE];
-	uint64_t rc, token;
 	uint64_t saved = 0;
+	uint64_t token;
+	int64_t rc;
 
 	/*
 	 * When the hypervisor cannot map all the requested memory in a single
@@ -63,6 +64,10 @@ static int drc_pmem_bind(struct papr_scm_priv *p)
 	} while (rc == H_BUSY);
 
 	if (rc) {
+		/* H_OVERLAP needs a separate error path */
+		if (rc == H_OVERLAP)
+			return -EBUSY;
+
 		dev_err(&p->pdev->dev, "bind err: %lld\n", rc);
 		return -ENXIO;
 	}
@@ -316,6 +321,14 @@ static int papr_scm_probe(struct platform_device *pdev)
 
 	/* request the hypervisor to bind this region to somewhere in memory */
 	rc = drc_pmem_bind(p);
+
+	/* If phyp says drc memory still bound then force unbound and retry */
+	if (rc == -EBUSY) {
+		dev_warn(&pdev->dev, "Retrying bind after unbinding\n");
+		drc_pmem_unbind(p);
+		rc = drc_pmem_bind(p);
+	}
+
 	if (rc)
 		goto err;
 
arch/s390/include/asm/page.h +2 -0
index a4d38092530a..823578c6b9e2 100644
@@ -177,6 +177,8 @@ static inline int devmem_is_allowed(unsigned long pfn)
 #define VM_DATA_DEFAULT_FLAGS	(VM_READ | VM_WRITE | \
 				 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
 
+#define ARCH_ZONE_DMA_BITS	31
+
 #include <asm-generic/memory_model.h>
 #include <asm-generic/getorder.h>
 
arch/x86/boot/string.c +8 -0
index 401e30ca0a75..8272a4492844 100644
@@ -37,6 +37,14 @@ int memcmp(const void *s1, const void *s2, size_t len)
 	return diff;
 }
 
+/*
+ * Clang may lower `memcmp == 0` to `bcmp == 0`.
+ */
+int bcmp(const void *s1, const void *s2, size_t len)
+{
+	return memcmp(s1, s2, len);
+}
+
 int strcmp(const char *str1, const char *str2)
 {
 	const unsigned char *s1 = (const unsigned char *)str1;
arch/x86/events/intel/core.c +3 -4
index 2889dd023566..6179be624f35 100644
@@ -20,7 +20,6 @@
 #include <asm/intel-family.h>
 #include <asm/apic.h>
 #include <asm/cpu_device_id.h>
-#include <asm/hypervisor.h>
 
 #include "../perf_event.h"
 
@@ -263,8 +262,8 @@ static struct event_constraint intel_icl_event_constraints[] = {
 };
 
 static struct extra_reg intel_icl_extra_regs[] __read_mostly = {
-	INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0x3fffff9fffull, RSP_0),
-	INTEL_UEVENT_EXTRA_REG(0x01bb, MSR_OFFCORE_RSP_1, 0x3fffff9fffull, RSP_1),
+	INTEL_UEVENT_EXTRA_REG(0x01b7, MSR_OFFCORE_RSP_0, 0x3fffffbfffull, RSP_0),
+	INTEL_UEVENT_EXTRA_REG(0x01bb, MSR_OFFCORE_RSP_1, 0x3fffffbfffull, RSP_1),
 	INTEL_UEVENT_PEBS_LDLAT_EXTRA_REG(0x01cd),
 	INTEL_UEVENT_EXTRA_REG(0x01c6, MSR_PEBS_FRONTEND, 0x7fff17, FE),
 	EVENT_EXTRA_END
@@ -4057,7 +4056,7 @@ static bool check_msr(unsigned long msr, u64 mask)
 	 * Disable the check for real HW, so we don't
 	 * mess with potentionaly enabled registers:
 	 */
-	if (hypervisor_is_type(X86_HYPER_NATIVE))
+	if (!boot_cpu_has(X86_FEATURE_HYPERVISOR))
 		return true;
 
 	/*
arch/x86/events/intel/ds.c +1 -1
index 505c73dc6a73..6601b8759c92 100644
@@ -851,7 +851,7 @@ struct event_constraint intel_skl_pebs_event_constraints[] = {
 
 struct event_constraint intel_icl_pebs_event_constraints[] = {
 	INTEL_FLAGS_UEVENT_CONSTRAINT(0x1c0, 0x100000000ULL),	/* INST_RETIRED.PREC_DIST */
-	INTEL_FLAGS_UEVENT_CONSTRAINT(0x0400, 0x400000000ULL),	/* SLOTS */
+	INTEL_FLAGS_UEVENT_CONSTRAINT(0x0400, 0x800000000ULL),	/* SLOTS */
 
 	INTEL_PLD_CONSTRAINT(0x1cd, 0xff),			/* MEM_TRANS_RETIRED.LOAD_LATENCY */
 	INTEL_FLAGS_UEVENT_CONSTRAINT_DATALA_LD(0x1d0, 0xf),	/* MEM_INST_RETIRED.LOAD */
arch/x86/include/asm/kvm_host.h +1 -0
index 8253925c5e8c..921c609c2af7 100644
@@ -1169,6 +1169,7 @@ struct kvm_x86_ops {
 	int (*update_pi_irte)(struct kvm *kvm, unsigned int host_irq,
 			      uint32_t guest_irq, bool set);
 	void (*apicv_post_state_restore)(struct kvm_vcpu *vcpu);
+	bool (*dy_apicv_has_pending_interrupt)(struct kvm_vcpu *vcpu);
 
 	int (*set_hv_timer)(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc,
 			    bool *expired);
arch/x86/kvm/svm.c +8 -2
index 48c865a4e5dd..14384a1ec53f 100644
@@ -3290,7 +3290,7 @@ static int nested_svm_vmexit(struct vcpu_svm *svm)
 				       vmcb->control.exit_int_info_err,
 				       KVM_ISA_SVM);
 
-	rc = kvm_vcpu_map(&svm->vcpu, gfn_to_gpa(svm->nested.vmcb), &map);
+	rc = kvm_vcpu_map(&svm->vcpu, gpa_to_gfn(svm->nested.vmcb), &map);
 	if (rc) {
 		if (rc == -EINVAL)
 			kvm_inject_gp(&svm->vcpu, 0);
@@ -3580,7 +3580,7 @@ static bool nested_svm_vmrun(struct vcpu_svm *svm)
 
 	vmcb_gpa = svm->vmcb->save.rax;
 
-	rc = kvm_vcpu_map(&svm->vcpu, gfn_to_gpa(vmcb_gpa), &map);
+	rc = kvm_vcpu_map(&svm->vcpu, gpa_to_gfn(vmcb_gpa), &map);
 	if (rc) {
 		if (rc == -EINVAL)
 			kvm_inject_gp(&svm->vcpu, 0);
@@ -5167,6 +5167,11 @@ static void svm_deliver_avic_intr(struct kvm_vcpu *vcpu, int vec)
 		kvm_vcpu_wake_up(vcpu);
 }
 
+static bool svm_dy_apicv_has_pending_interrupt(struct kvm_vcpu *vcpu)
+{
+	return false;
+}
+
 static void svm_ir_list_del(struct vcpu_svm *svm, struct amd_iommu_pi_data *pi)
 {
 	unsigned long flags;
@@ -7264,6 +7269,7 @@ static struct kvm_x86_ops svm_x86_ops __ro_after_init = {
 
 	.pmu_ops = &amd_pmu_ops,
 	.deliver_posted_interrupt = svm_deliver_avic_intr,
+	.dy_apicv_has_pending_interrupt = svm_dy_apicv_has_pending_interrupt,
 	.update_pi_irte = svm_update_pi_irte,
 	.setup_mce = svm_setup_mce,
 
arch/x86/kvm/vmx/vmx.c +6 -0
index 924c2a79e4a9..4b830c0adcf8 100644
@@ -6096,6 +6096,11 @@ static int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu)
 	return max_irr;
 }
 
+static bool vmx_dy_apicv_has_pending_interrupt(struct kvm_vcpu *vcpu)
+{
+	return pi_test_on(vcpu_to_pi_desc(vcpu));
+}
+
 static void vmx_load_eoi_exitmap(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap)
 {
 	if (!kvm_vcpu_apicv_active(vcpu))
@@ -7662,6 +7667,7 @@ static struct kvm_x86_ops vmx_x86_ops __ro_after_init = {
 	.guest_apic_has_interrupt = vmx_guest_apic_has_interrupt,
 	.sync_pir_to_irr = vmx_sync_pir_to_irr,
 	.deliver_posted_interrupt = vmx_deliver_posted_interrupt,
+	.dy_apicv_has_pending_interrupt = vmx_dy_apicv_has_pending_interrupt,
 
 	.set_tss_addr = vmx_set_tss_addr,
 	.set_identity_map_addr = vmx_set_identity_map_addr,
arch/x86/kvm/x86.c +16 -0
index a8ad3a4d86b1..cbced8ff29d4 100644
@@ -9641,6 +9641,22 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu)
 	return kvm_vcpu_running(vcpu) || kvm_vcpu_has_events(vcpu);
 }
 
+bool kvm_arch_dy_runnable(struct kvm_vcpu *vcpu)
+{
+	if (READ_ONCE(vcpu->arch.pv.pv_unhalted))
+		return true;
+
+	if (kvm_test_request(KVM_REQ_NMI, vcpu) ||
+		kvm_test_request(KVM_REQ_SMI, vcpu) ||
+		 kvm_test_request(KVM_REQ_EVENT, vcpu))
+		return true;
+
+	if (vcpu->arch.apicv_active && kvm_x86_ops->dy_apicv_has_pending_interrupt(vcpu))
+		return true;
+
+	return false;
+}
+
 bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
 {
 	return vcpu->arch.preempted_in_kernel;
arch/x86/mm/fault.c +6 -9
index 46df4c6aae46..26a8b4b1b9ed 100644
@@ -194,13 +194,14 @@ static inline pmd_t *vmalloc_sync_one(pgd_t *pgd, unsigned long address)
 
 	pmd = pmd_offset(pud, address);
 	pmd_k = pmd_offset(pud_k, address);
-	if (!pmd_present(*pmd_k))
-		return NULL;
 
-	if (!pmd_present(*pmd))
+	if (pmd_present(*pmd) != pmd_present(*pmd_k))
 		set_pmd(pmd, *pmd_k);
+
+	if (!pmd_present(*pmd_k))
+		return NULL;
 	else
-		BUG_ON(pmd_page(*pmd) != pmd_page(*pmd_k));
+		BUG_ON(pmd_pfn(*pmd) != pmd_pfn(*pmd_k));
 
 	return pmd_k;
 }
@@ -220,17 +221,13 @@ void vmalloc_sync_all(void)
 		spin_lock(&pgd_lock);
 		list_for_each_entry(page, &pgd_list, lru) {
 			spinlock_t *pgt_lock;
-			pmd_t *ret;
 
 			/* the pgt_lock only for Xen */
 			pgt_lock = &pgd_page_get_mm(page)->page_table_lock;
 
 			spin_lock(pgt_lock);
-			ret = vmalloc_sync_one(page_address(page), address);
+			vmalloc_sync_one(page_address(page), address);
 			spin_unlock(pgt_lock);
-
-			if (!ret)
-				break;
 		}
 		spin_unlock(&pgd_lock);
 	}
arch/x86/purgatory/Makefile +31 -5
index 3cf302b26332..8901a1f89cf5 100644
@@ -6,6 +6,9 @@ purgatory-y := purgatory.o stack.o setup-x86_$(BITS).o sha256.o entry64.o string
 targets += $(purgatory-y)
 PURGATORY_OBJS = $(addprefix $(obj)/,$(purgatory-y))
 
+$(obj)/string.o: $(srctree)/arch/x86/boot/compressed/string.c FORCE
+	$(call if_changed_rule,cc_o_c)
+
 $(obj)/sha256.o: $(srctree)/lib/sha256.c FORCE
 	$(call if_changed_rule,cc_o_c)
 
@@ -17,11 +20,34 @@ KCOV_INSTRUMENT := n
 
 # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That
 # in turn leaves some undefined symbols like __fentry__ in purgatory and not
-# sure how to relocate those. Like kexec-tools, use custom flags.
-
-KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -Os -mcmodel=large
-KBUILD_CFLAGS += -m$(BITS)
-KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
+# sure how to relocate those.
+ifdef CONFIG_FUNCTION_TRACER
+CFLAGS_REMOVE_sha256.o		+= $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_purgatory.o	+= $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_string.o		+= $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_kexec-purgatory.o	+= $(CC_FLAGS_FTRACE)
+endif
+
+ifdef CONFIG_STACKPROTECTOR
+CFLAGS_REMOVE_sha256.o		+= -fstack-protector
+CFLAGS_REMOVE_purgatory.o	+= -fstack-protector
+CFLAGS_REMOVE_string.o		+= -fstack-protector
+CFLAGS_REMOVE_kexec-purgatory.o	+= -fstack-protector
+endif
+
+ifdef CONFIG_STACKPROTECTOR_STRONG
+CFLAGS_REMOVE_sha256.o		+= -fstack-protector-strong
+CFLAGS_REMOVE_purgatory.o	+= -fstack-protector-strong
+CFLAGS_REMOVE_string.o		+= -fstack-protector-strong
+CFLAGS_REMOVE_kexec-purgatory.o	+= -fstack-protector-strong
+endif
+
+ifdef CONFIG_RETPOLINE
+CFLAGS_REMOVE_sha256.o		+= $(RETPOLINE_CFLAGS)
+CFLAGS_REMOVE_purgatory.o	+= $(RETPOLINE_CFLAGS)
+CFLAGS_REMOVE_string.o		+= $(RETPOLINE_CFLAGS)
+CFLAGS_REMOVE_kexec-purgatory.o	+= $(RETPOLINE_CFLAGS)
+endif
 
 $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE
 		$(call if_changed,ld)
arch/x86/purgatory/purgatory.c +6 -0
index 6d8d5a34c377..b607bda786f6 100644
@@ -68,3 +68,9 @@ void purgatory(void)
 	}
 	copy_backup_region();
 }
+
+/*
+ * Defined in order to reuse memcpy() and memset() from
+ * arch/x86/boot/compressed/string.c
+ */
+void warn(const char *msg) {}
arch/x86/purgatory/string.c deleted +0 -23
deleted file mode 100644
index 01ad43873ad9..000000000000
@@ -1,23 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-only
-/*
- * Simple string functions.
- *
- * Copyright (C) 2014 Red Hat Inc.
- *
- * Author:
- *       Vivek Goyal <[email protected]>
- */
-
-#include <linux/types.h>
-
-#include "../boot/string.c"
-
-void *memcpy(void *dst, const void *src, size_t len)
-{
-	return __builtin_memcpy(dst, src, len);
-}
-
-void *memset(void *dst, int c, size_t len)
-{
-	return __builtin_memset(dst, c, len);
-}
block/blk-rq-qos.c +5 -1
index 659ccb8b693f..06d024204f50 100644
@@ -202,6 +202,7 @@ static int rq_qos_wake_function(struct wait_queue_entry *curr,
 		return -1;
 
 	data->got_token = true;
+	smp_wmb();
 	list_del_init(&curr->entry);
 	wake_up_process(data->task);
 	return 1;
@@ -245,6 +246,7 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
 
 	prepare_to_wait_exclusive(&rqw->wait, &data.wq, TASK_UNINTERRUPTIBLE);
 	do {
+		/* The memory barrier in set_task_state saves us here. */
 		if (data.got_token)
 			break;
 		if (!has_sleeper && acquire_inflight_cb(rqw, private_data)) {
@@ -255,12 +257,14 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data,
 			 * which means we now have two. Put our local token
 			 * and wake anyone else potentially waiting for one.
 			 */
+			smp_rmb();
 			if (data.got_token)
 				cleanup_cb(rqw, private_data);
 			break;
 		}
 		io_schedule();
-		has_sleeper = false;
+		has_sleeper = true;
+		set_current_state(TASK_UNINTERRUPTIBLE);
 	} while (1);
 	finish_wait(&rqw->wait, &data.wq);
 }
drivers/acpi/arm64/iort.c +2 -2
index d4551e33fa71..8569b79e8b58 100644
@@ -611,8 +611,8 @@ static int iort_dev_find_its_id(struct device *dev, u32 req_id,
 
 	/* Move to ITS specific data */
 	its = (struct acpi_iort_its_group *)node->node_data;
-	if (idx > its->its_count) {
-		dev_err(dev, "requested ITS ID index [%d] is greater than available [%d]\n",
+	if (idx >= its->its_count) {
+		dev_err(dev, "requested ITS ID index [%d] overruns ITS entries [%d]\n",
 			idx, its->its_count);
 		return -ENXIO;
 	}
drivers/base/platform.c +7 -2
index 4d1729853d1a..8b25c7b12179 100644
@@ -157,8 +157,13 @@ int platform_get_irq(struct platform_device *dev, unsigned int num)
 	 * the device will only expose one IRQ, and this fallback
 	 * allows a common code path across either kind of resource.
 	 */
-	if (num == 0 && has_acpi_companion(&dev->dev))
-		return acpi_dev_gpio_irq_get(ACPI_COMPANION(&dev->dev), num);
+	if (num == 0 && has_acpi_companion(&dev->dev)) {
+		int ret = acpi_dev_gpio_irq_get(ACPI_COMPANION(&dev->dev), num);
+
+		/* Our callers expect -ENXIO for missing IRQs. */
+		if (ret >= 0 || ret == -EPROBE_DEFER)
+			return ret;
+	}
 
 	return -ENXIO;
 #endif
drivers/block/drbd/drbd_receiver.c +12 -2
index 90ebfcae0ce6..2b3103c30857 100644
@@ -5417,7 +5417,7 @@ static int drbd_do_auth(struct drbd_connection *connection)
 	unsigned int key_len;
 	char secret[SHARED_SECRET_MAX]; /* 64 byte */
 	unsigned int resp_size;
-	SHASH_DESC_ON_STACK(desc, connection->cram_hmac_tfm);
+	struct shash_desc *desc;
 	struct packet_info pi;
 	struct net_conf *nc;
 	int err, rv;
@@ -5430,6 +5430,13 @@ static int drbd_do_auth(struct drbd_connection *connection)
 	memcpy(secret, nc->shared_secret, key_len);
 	rcu_read_unlock();
 
+	desc = kmalloc(sizeof(struct shash_desc) +
+		       crypto_shash_descsize(connection->cram_hmac_tfm),
+		       GFP_KERNEL);
+	if (!desc) {
+		rv = -1;
+		goto fail;
+	}
 	desc->tfm = connection->cram_hmac_tfm;
 
 	rv = crypto_shash_setkey(connection->cram_hmac_tfm, (u8 *)secret, key_len);
@@ -5571,7 +5578,10 @@ static int drbd_do_auth(struct drbd_connection *connection)
 	kfree(peers_ch);
 	kfree(response);
 	kfree(right_response);
-	shash_desc_zero(desc);
+	if (desc) {
+		shash_desc_zero(desc);
+		kfree(desc);
+	}
 
 	return rv;
 }
drivers/block/loop.c +1 -1
index 430d31499ce9..e1739efca37e 100644
@@ -893,7 +893,7 @@ static void loop_unprepare_queue(struct loop_device *lo)
 
 static int loop_kthread_worker_fn(void *worker_ptr)
 {
-	current->flags |= PF_LESS_THROTTLE;
+	current->flags |= PF_LESS_THROTTLE | PF_MEMALLOC_NOIO;
 	return kthread_worker_fn(worker_ptr);
 }
 
drivers/cpufreq/pasemi-cpufreq.c +9 -14
index 6b1e4abe3248..d2f061015323 100644
@@ -131,10 +131,18 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 	int err = -ENODEV;
 
 	cpu = of_get_cpu_node(policy->cpu, NULL);
+	if (!cpu)
+		goto out;
 
+	max_freqp = of_get_property(cpu, "clock-frequency", NULL);
 	of_node_put(cpu);
-	if (!cpu)
+	if (!max_freqp) {
+		err = -EINVAL;
 		goto out;
+	}
+
+	/* we need the freq in kHz */
+	max_freq = *max_freqp / 1000;
 
 	dn = of_find_compatible_node(NULL, NULL, "1682m-sdc");
 	if (!dn)
@@ -171,16 +179,6 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 	}
 
 	pr_debug("init cpufreq on CPU %d\n", policy->cpu);
-
-	max_freqp = of_get_property(cpu, "clock-frequency", NULL);
-	if (!max_freqp) {
-		err = -EINVAL;
-		goto out_unmap_sdcpwr;
-	}
-
-	/* we need the freq in kHz */
-	max_freq = *max_freqp / 1000;
-
 	pr_debug("max clock-frequency is at %u kHz\n", max_freq);
 	pr_debug("initializing frequency table\n");
 
@@ -198,9 +196,6 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 	return cpufreq_generic_init(policy, pas_freqs, get_gizmo_latency());
 
-out_unmap_sdcpwr:
-	iounmap(sdcpwr_mapbase);
-
 out_unmap_sdcasr:
 	iounmap(sdcasr_mapbase);
 out:
drivers/crypto/ccp/ccp-crypto-aes-galois.c +14 -0
index f9fec2ddf56a..94c1ad7eeddf 100644
@@ -58,6 +58,19 @@ static int ccp_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key,
 static int ccp_aes_gcm_setauthsize(struct crypto_aead *tfm,
 				   unsigned int authsize)
 {
+	switch (authsize) {
+	case 16:
+	case 15:
+	case 14:
+	case 13:
+	case 12:
+	case 8:
+	case 4:
+		break;
+	default:
+		return -EINVAL;
+	}
+
 	return 0;
 }
 
@@ -104,6 +117,7 @@ static int ccp_aes_gcm_crypt(struct aead_request *req, bool encrypt)
 	memset(&rctx->cmd, 0, sizeof(rctx->cmd));
 	INIT_LIST_HEAD(&rctx->cmd.entry);
 	rctx->cmd.engine = CCP_ENGINE_AES;
+	rctx->cmd.u.aes.authsize = crypto_aead_authsize(tfm);
 	rctx->cmd.u.aes.type = ctx->u.aes.type;
 	rctx->cmd.u.aes.mode = ctx->u.aes.mode;
 	rctx->cmd.u.aes.action = encrypt;
drivers/crypto/ccp/ccp-ops.c +24 -9
index 1cbdfc08ca00..a13e8a362316 100644
@@ -622,6 +622,7 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 
 	unsigned long long *final;
 	unsigned int dm_offset;
+	unsigned int authsize;
 	unsigned int jobid;
 	unsigned int ilen;
 	bool in_place = true; /* Default value */
@@ -643,6 +644,21 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 	if (!aes->key) /* Gotta have a key SGL */
 		return -EINVAL;
 
+	/* Zero defaults to 16 bytes, the maximum size */
+	authsize = aes->authsize ? aes->authsize : AES_BLOCK_SIZE;
+	switch (authsize) {
+	case 16:
+	case 15:
+	case 14:
+	case 13:
+	case 12:
+	case 8:
+	case 4:
+		break;
+	default:
+		return -EINVAL;
+	}
+
 	/* First, decompose the source buffer into AAD & PT,
 	 * and the destination buffer into AAD, CT & tag, or
 	 * the input into CT & tag.
@@ -657,7 +673,7 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 		p_tag = scatterwalk_ffwd(sg_tag, p_outp, ilen);
 	} else {
 		/* Input length for decryption includes tag */
-		ilen = aes->src_len - AES_BLOCK_SIZE;
+		ilen = aes->src_len - authsize;
 		p_tag = scatterwalk_ffwd(sg_tag, p_inp, ilen);
 	}
 
@@ -766,8 +782,7 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 		while (src.sg_wa.bytes_left) {
 			ccp_prepare_data(&src, &dst, &op, AES_BLOCK_SIZE, true);
 			if (!src.sg_wa.bytes_left) {
-				unsigned int nbytes = aes->src_len
-						      % AES_BLOCK_SIZE;
+				unsigned int nbytes = ilen % AES_BLOCK_SIZE;
 
 				if (nbytes) {
 					op.eom = 1;
@@ -839,19 +854,19 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 
 	if (aes->action == CCP_AES_ACTION_ENCRYPT) {
 		/* Put the ciphered tag after the ciphertext. */
-		ccp_get_dm_area(&final_wa, 0, p_tag, 0, AES_BLOCK_SIZE);
+		ccp_get_dm_area(&final_wa, 0, p_tag, 0, authsize);
 	} else {
 		/* Does this ciphered tag match the input? */
-		ret = ccp_init_dm_workarea(&tag, cmd_q, AES_BLOCK_SIZE,
+		ret = ccp_init_dm_workarea(&tag, cmd_q, authsize,
 					   DMA_BIDIRECTIONAL);
 		if (ret)
 			goto e_tag;
-		ret = ccp_set_dm_area(&tag, 0, p_tag, 0, AES_BLOCK_SIZE);
+		ret = ccp_set_dm_area(&tag, 0, p_tag, 0, authsize);
 		if (ret)
 			goto e_tag;
 
 		ret = crypto_memneq(tag.address, final_wa.address,
-				    AES_BLOCK_SIZE) ? -EBADMSG : 0;
+				    authsize) ? -EBADMSG : 0;
 		ccp_dm_free(&tag);
 	}
 
@@ -859,11 +874,11 @@ static int ccp_run_aes_gcm_cmd(struct ccp_cmd_queue *cmd_q,
 	ccp_dm_free(&final_wa);
 
 e_dst:
-	if (aes->src_len && !in_place)
+	if (ilen > 0 && !in_place)
 		ccp_free_data(&dst, cmd_q);
 
 e_src:
-	if (aes->src_len)
+	if (ilen > 0)
 		ccp_free_data(&src, cmd_q);
 
 e_aad:
drivers/firmware/Kconfig +3 -2
index d40ccc3af9e2..fa7ed01415b7 100644
@@ -157,7 +157,7 @@ config DMI_SCAN_MACHINE_NON_EFI_FALLBACK
 
 config ISCSI_IBFT_FIND
 	bool "iSCSI Boot Firmware Table Attributes"
-	depends on X86 && ACPI
+	depends on X86 && ISCSI_IBFT
 	default n
 	help
 	  This option enables the kernel to find the region of memory
@@ -168,7 +168,8 @@ config ISCSI_IBFT_FIND
 config ISCSI_IBFT
 	tristate "iSCSI Boot Firmware Table Attributes module"
 	select ISCSI_BOOT_SYSFS
-	depends on ISCSI_IBFT_FIND && SCSI && SCSI_LOWLEVEL
+	select ISCSI_IBFT_FIND if X86
+	depends on ACPI && SCSI && SCSI_LOWLEVEL
 	default	n
 	help
 	  This option enables support for detection and exposing of iSCSI
drivers/firmware/iscsi_ibft.c +4 -0
index ab3aa3983833..7e12cbdf957c 100644
@@ -84,6 +84,10 @@ MODULE_DESCRIPTION("sysfs interface to BIOS iBFT information");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(IBFT_ISCSI_VERSION);
 
+#ifndef CONFIG_ISCSI_IBFT_FIND
+struct acpi_table_ibft *ibft_addr;
+#endif
+
 struct ibft_hdr {
 	u8 id;
 	u8 version;
drivers/gpu/drm/amd/display/dc/core/dc.c +4 -2
index ee6b646180b6..0a7adc2925e3 100644
@@ -608,8 +608,10 @@ const struct dc_link_settings *dc_link_get_link_cap(
 
 static void destruct(struct dc *dc)
 {
-	dc_release_state(dc->current_state);
-	dc->current_state = NULL;
+	if (dc->current_state) {
+		dc_release_state(dc->current_state);
+		dc->current_state = NULL;
+	}
 
 	destroy_links(dc);
 
drivers/gpu/drm/amd/display/dc/core/dc_link.c +8 -1
index a3ff33ff6da1..adf39e3b8d29 100644
@@ -2284,7 +2284,7 @@ bool dc_link_set_backlight_level(const struct dc_link *link,
 			if (core_dc->current_state->res_ctx.pipe_ctx[i].stream) {
 				if (core_dc->current_state->res_ctx.
 						pipe_ctx[i].stream->link
-						== link)
+						== link) {
 					/* DMCU -1 for all controller id values,
 					 * therefore +1 here
 					 */
@@ -2292,6 +2292,13 @@ bool dc_link_set_backlight_level(const struct dc_link *link,
 						core_dc->current_state->
 						res_ctx.pipe_ctx[i].stream_res.tg->inst +
 						1;
+
+					/* Disable brightness ramping when the display is blanked
+					 * as it can hang the DMCU
+					 */
+					if (core_dc->current_state->res_ctx.pipe_ctx[i].plane_state == NULL)
+						frame_ramp = 0;
+				}
 			}
 		}
 		abm->funcs->set_backlight_level_pwm(
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +8 -1
index 253311864cdd..966aa3b754c5 100644
@@ -2218,11 +2218,18 @@ static void get_active_converter_info(
 		link->dpcd_caps.dongle_type = DISPLAY_DONGLE_NONE;
 		ddc_service_set_dongle_type(link->ddc,
 				link->dpcd_caps.dongle_type);
+		link->dpcd_caps.is_branch_dev = false;
 		return;
 	}
 
 	/* DPCD 0x5 bit 0 = 1, it indicate it's branch device */
-	link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+	if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) {
+		link->dpcd_caps.is_branch_dev = false;
+	}
+
+	else {
+		link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
+	}
 
 	switch (ds_port.fields.PORT_TYPE) {
 	case DOWNSTREAM_VGA:
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +9 -2
index 12142d13f22f..b459ce056b60 100644
@@ -254,7 +254,7 @@ bool resource_construct(
 		 * PORT_CONNECTIVITY == 1 (as instructed by HW team).
 		 */
 		update_num_audio(&straps, &num_audio, &pool->audio_support);
-		for (i = 0; i < pool->pipe_count && i < num_audio; i++) {
+		for (i = 0; i < caps->num_audio; i++) {
 			struct audio *aud = create_funcs->create_audio(ctx, i);
 
 			if (aud == NULL) {
@@ -1702,6 +1702,12 @@ static struct audio *find_first_free_audio(
 			return pool->audios[i];
 		}
 	}
+
+    /* use engine id to find free audio */
+	if ((id < pool->audio_count) && (res_ctx->is_audio_acquired[id] == false)) {
+		return pool->audios[id];
+	}
+
 	/*not found the matching one, first come first serve*/
 	for (i = 0; i < pool->audio_count; i++) {
 		if (res_ctx->is_audio_acquired[i] == false) {
@@ -1866,6 +1872,7 @@ static int get_norm_pix_clk(const struct dc_crtc_timing *timing)
 		pix_clk /= 2;
 	if (timing->pixel_encoding != PIXEL_ENCODING_YCBCR422) {
 		switch (timing->display_color_depth) {
+		case COLOR_DEPTH_666:
 		case COLOR_DEPTH_888:
 			normalized_pix_clk = pix_clk;
 			break;
@@ -2012,7 +2019,7 @@ enum dc_status resource_map_pool_resources(
 	/* TODO: Add check if ASIC support and EDID audio */
 	if (!stream->converter_disable_audio &&
 	    dc_is_audio_capable_signal(pipe_ctx->stream->signal) &&
-	    stream->audio_info.mode_count) {
+	    stream->audio_info.mode_count && stream->audio_info.flags.all) {
 		pipe_ctx->stream_res.audio = find_first_free_audio(
 		&context->res_ctx, pool, pipe_ctx->stream_res.stream_enc->id);
 
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c +4 -0
index 2959c3c9390b..da30ae04e82b 100644
@@ -234,6 +234,10 @@ static void dmcu_set_backlight_level(
 	s2 |= (backlight_8_bit << ATOM_S2_CURRENT_BL_LEVEL_SHIFT);
 
 	REG_WRITE(BIOS_SCRATCH_2, s2);
+
+	/* waitDMCUReadyForCmd */
+	REG_WAIT(MASTER_COMM_CNTL_REG, MASTER_COMM_INTERRUPT,
+			0, 1, 80000);
 }
 
 static void dce_abm_init(struct abm *abm)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +7 -14
index 9e4d70a0055e..5cc5dabf4d65 100644
@@ -1120,16 +1120,7 @@ static void dcn10_init_hw(struct dc *dc)
 	 * everything down.
 	 */
 	if (dcb->funcs->is_accelerated_mode(dcb) || dc->config.power_down_display_on_boot) {
-		for (i = 0; i < dc->res_pool->pipe_count; i++) {
-			struct hubp *hubp = dc->res_pool->hubps[i];
-			struct dpp *dpp = dc->res_pool->dpps[i];
-
-			hubp->funcs->hubp_init(hubp);
-			dc->res_pool->opps[i]->mpc_tree_params.opp_id = dc->res_pool->opps[i]->inst;
-			plane_atomic_power_down(dc, dpp, hubp);
-		}
-
-		apply_DEGVIDCN10_253_wa(dc);
+		dc->hwss.init_pipes(dc, dc->current_state);
 	}
 
 	for (i = 0; i < dc->res_pool->audio_count; i++) {
@@ -1298,10 +1289,6 @@ static bool dcn10_set_input_transfer_func(struct pipe_ctx *pipe_ctx,
 	return result;
 }
 
-
-
-
-
 static bool
 dcn10_set_output_transfer_func(struct pipe_ctx *pipe_ctx,
 			       const struct dc_stream_state *stream)
@@ -2416,6 +2403,12 @@ static void dcn10_apply_ctx_for_surface(
 		if (removed_pipe[i])
 			dcn10_disable_plane(dc, &dc->current_state->res_ctx.pipe_ctx[i]);
 
+	for (i = 0; i < dc->res_pool->pipe_count; i++)
+		if (removed_pipe[i]) {
+			dc->hwss.optimize_bandwidth(dc, context);
+			break;
+		}
+
 	if (dc->hwseq->wa.DEGVIDCN10_254)
 		hubbub1_wm_change_req_wa(dc->res_pool->hubbub);
 }
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +1 -1
index 7eccb54c421d..aac52eed6b2a 100644
@@ -512,7 +512,7 @@ static const struct resource_caps rv2_res_cap = {
 		.num_audio = 3,
 		.num_stream_encoder = 3,
 		.num_pll = 3,
-		.num_ddc = 3,
+		.num_ddc = 4,
 };
 #endif
 
drivers/gpu/drm/amd/display/dc/inc/core_types.h +1 -1
index 6f5ab05d6467..6f0cc718fbd7 100644
@@ -169,7 +169,7 @@ struct resource_pool {
 	struct clock_source *clock_sources[MAX_CLOCK_SOURCES];
 	unsigned int clk_src_count;
 
-	struct audio *audios[MAX_PIPES];
+	struct audio *audios[MAX_AUDIOS];
 	unsigned int audio_count;
 	struct audio_support audio_support;
 
drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h +1 -0
index 4c8e2c6fb6db..72266efd826c 100644
@@ -34,6 +34,7 @@
  * Data types shared between different Virtual HW blocks
  ******************************************************************************/
 
+#define MAX_AUDIOS 7
 #define MAX_PIPES 6
 
 struct gamma_curve {
drivers/gpu/drm/drm_framebuffer.c +1 -1
index d8d75e25f6fb..45f6f11a88a7 100644
@@ -830,7 +830,7 @@ static int atomic_remove_fb(struct drm_framebuffer *fb)
 	struct drm_device *dev = fb->dev;
 	struct drm_atomic_state *state;
 	struct drm_plane *plane;
-	struct drm_connector *conn;
+	struct drm_connector *conn __maybe_unused;
 	struct drm_connector_state *conn_state;
 	int i, ret;
 	unsigned plane_mask;
drivers/gpu/drm/i915/vlv_dsi_pll.c +2 -2
index 5e7b1fb2db5d..8ea1c927dbad 100644
@@ -394,8 +394,8 @@ static void glk_dsi_program_esc_clock(struct drm_device *dev,
 	else
 		txesc2_div = 10;
 
-	I915_WRITE(MIPIO_TXESC_CLK_DIV1, txesc1_div & GLK_TX_ESC_CLK_DIV1_MASK);
-	I915_WRITE(MIPIO_TXESC_CLK_DIV2, txesc2_div & GLK_TX_ESC_CLK_DIV2_MASK);
+	I915_WRITE(MIPIO_TXESC_CLK_DIV1, (1 << (txesc1_div - 1)) & GLK_TX_ESC_CLK_DIV1_MASK);
+	I915_WRITE(MIPIO_TXESC_CLK_DIV2, (1 << (txesc2_div - 1)) & GLK_TX_ESC_CLK_DIV2_MASK);
 }
 
 /* Program BXT Mipi clocks and dividers */
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +1 -2
index 0ea150196659..c62f7abcf509 100644
@@ -2226,8 +2226,6 @@ int dpu_encoder_setup(struct drm_device *dev, struct drm_encoder *enc,
 	if (ret)
 		goto fail;
 
-	spin_lock_init(&dpu_enc->enc_spinlock);
-
 	atomic_set(&dpu_enc->frame_done_timeout_ms, 0);
 	timer_setup(&dpu_enc->frame_done_timer,
 			dpu_encoder_frame_done_timeout, 0);
@@ -2281,6 +2279,7 @@ struct drm_encoder *dpu_encoder_init(struct drm_device *dev,
 
 	drm_encoder_helper_add(&dpu_enc->base, &dpu_encoder_helper_funcs);
 
+	spin_lock_init(&dpu_enc->enc_spinlock);
 	dpu_enc->enabled = false;
 
 	return &dpu_enc->base;
drivers/hid/hid-sony.c +12 -3
index 93942063b51b..49dd2d905c7f 100644
@@ -585,10 +585,14 @@ static void sony_set_leds(struct sony_sc *sc);
 static inline void sony_schedule_work(struct sony_sc *sc,
 				      enum sony_worker which)
 {
+	unsigned long flags;
+
 	switch (which) {
 	case SONY_WORKER_STATE:
-		if (!sc->defer_initialization)
+		spin_lock_irqsave(&sc->lock, flags);
+		if (!sc->defer_initialization && sc->state_worker_initialized)
 			schedule_work(&sc->state_worker);
+		spin_unlock_irqrestore(&sc->lock, flags);
 		break;
 	case SONY_WORKER_HOTPLUG:
 		if (sc->hotplug_worker_initialized)
@@ -2558,13 +2562,18 @@ static inline void sony_init_output_report(struct sony_sc *sc,
 
 static inline void sony_cancel_work_sync(struct sony_sc *sc)
 {
+	unsigned long flags;
+
 	if (sc->hotplug_worker_initialized)
 		cancel_work_sync(&sc->hotplug_worker);
-	if (sc->state_worker_initialized)
+	if (sc->state_worker_initialized) {
+		spin_lock_irqsave(&sc->lock, flags);
+		sc->state_worker_initialized = 0;
+		spin_unlock_irqrestore(&sc->lock, flags);
 		cancel_work_sync(&sc->state_worker);
+	}
 }
 
-
 static int sony_input_configured(struct hid_device *hdev,
 					struct hid_input *hidinput)
 {
drivers/hwmon/lm75.c +1 -1
index 3fb9c0a2d6d0..ce5ec403ec73 100644
@@ -343,7 +343,7 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
 		data->sample_time = MSEC_PER_SEC / 2;
 		break;
 	case tmp75b:  /* not one-shot mode, Conversion rate 37Hz */
-		clr_mask |= 1 << 15 | 0x3 << 13;
+		clr_mask |= 1 << 7 | 0x3 << 5;
 		data->resolution = 12;
 		data->sample_time = MSEC_PER_SEC / 37;
 		break;
drivers/hwmon/nct6775.c +2 -1
index e7dff5febe16..d42bc0883a32 100644
@@ -852,7 +852,7 @@ static const u16 NCT6106_REG_TARGET[] = { 0x111, 0x121, 0x131 };
 static const u16 NCT6106_REG_WEIGHT_TEMP_SEL[] = { 0x168, 0x178, 0x188 };
 static const u16 NCT6106_REG_WEIGHT_TEMP_STEP[] = { 0x169, 0x179, 0x189 };
 static const u16 NCT6106_REG_WEIGHT_TEMP_STEP_TOL[] = { 0x16a, 0x17a, 0x18a };
-static const u16 NCT6106_REG_WEIGHT_DUTY_STEP[] = { 0x16b, 0x17b, 0x17c };
+static const u16 NCT6106_REG_WEIGHT_DUTY_STEP[] = { 0x16b, 0x17b, 0x18b };
 static const u16 NCT6106_REG_WEIGHT_TEMP_BASE[] = { 0x16c, 0x17c, 0x18c };
 static const u16 NCT6106_REG_WEIGHT_DUTY_BASE[] = { 0x16d, 0x17d, 0x18d };
 
@@ -3764,6 +3764,7 @@ static int nct6775_probe(struct platform_device *pdev)
 		data->REG_FAN_TIME[0] = NCT6106_REG_FAN_STOP_TIME;
 		data->REG_FAN_TIME[1] = NCT6106_REG_FAN_STEP_UP_TIME;
 		data->REG_FAN_TIME[2] = NCT6106_REG_FAN_STEP_DOWN_TIME;
+		data->REG_TOLERANCE_H = NCT6106_REG_TOLERANCE_H;
 		data->REG_PWM[0] = NCT6106_REG_PWM;
 		data->REG_PWM[1] = NCT6106_REG_FAN_START_OUTPUT;
 		data->REG_PWM[2] = NCT6106_REG_FAN_STOP_OUTPUT;
drivers/hwmon/nct7802.c +3 -3
index ec7bcf8d7cd6..f3dd2a17bd42 100644
@@ -704,7 +704,7 @@ static struct attribute *nct7802_in_attrs[] = {
 	&sensor_dev_attr_in3_alarm.dev_attr.attr,
 	&sensor_dev_attr_in3_beep.dev_attr.attr,
 
-	&sensor_dev_attr_in4_input.dev_attr.attr,	/* 17 */
+	&sensor_dev_attr_in4_input.dev_attr.attr,	/* 16 */
 	&sensor_dev_attr_in4_min.dev_attr.attr,
 	&sensor_dev_attr_in4_max.dev_attr.attr,
 	&sensor_dev_attr_in4_alarm.dev_attr.attr,
@@ -730,9 +730,9 @@ static umode_t nct7802_in_is_visible(struct kobject *kobj,
 
 	if (index >= 6 && index < 11 && (reg & 0x03) != 0x03)	/* VSEN1 */
 		return 0;
-	if (index >= 11 && index < 17 && (reg & 0x0c) != 0x0c)	/* VSEN2 */
+	if (index >= 11 && index < 16 && (reg & 0x0c) != 0x0c)	/* VSEN2 */
 		return 0;
-	if (index >= 17 && (reg & 0x30) != 0x30)		/* VSEN3 */
+	if (index >= 16 && (reg & 0x30) != 0x30)		/* VSEN3 */
 		return 0;
 
 	return attr->mode;
drivers/hwmon/occ/common.c +4 -2
index 13a6290c8d25..f02aa403332c 100644
@@ -402,8 +402,10 @@ static ssize_t occ_show_power_1(struct device *dev,
 
 static u64 occ_get_powr_avg(u64 *accum, u32 *samples)
 {
-	return div64_u64(get_unaligned_be64(accum) * 1000000ULL,
-			 get_unaligned_be32(samples));
+	u64 divisor = get_unaligned_be32(samples);
+
+	return (divisor == 0) ? 0 :
+		div64_u64(get_unaligned_be64(accum) * 1000000ULL, divisor);
 }
 
 static ssize_t occ_show_power_2(struct device *dev,
drivers/hwtracing/coresight/coresight-etm-perf.c +1 -0
index 3c6294432748..1ef098ff27c3 100644
@@ -544,6 +544,7 @@ int etm_perf_add_symlink_sink(struct coresight_device *csdev)
 	/* See function coresight_get_sink_by_id() to know where this is used */
 	hash = hashlen_hash(hashlen_string(NULL, name));
 
+	sysfs_attr_init(&ea->attr.attr);
 	ea->attr.attr.name = devm_kstrdup(pdev, name, GFP_KERNEL);
 	if (!ea->attr.attr.name)
 		return -ENOMEM;
drivers/iio/accel/cros_ec_accel_legacy.c +0 -1
index 46bb2e421bb9..ad19d9c716f4 100644
@@ -319,7 +319,6 @@ static const struct iio_chan_spec_ext_info cros_ec_accel_legacy_ext_info[] = {
 		.modified = 1,					        \
 		.info_mask_separate =					\
 			BIT(IIO_CHAN_INFO_RAW) |			\
-			BIT(IIO_CHAN_INFO_SCALE) |			\
 			BIT(IIO_CHAN_INFO_CALIBBIAS),			\
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SCALE),	\
 		.ext_info = cros_ec_accel_legacy_ext_info,		\
drivers/iio/adc/ingenic-adc.c +54 -0

104 lines not on this page · raw message

drivers/iio/adc/max9611.c +1 -1
index 917223d5ff5b..0e3c6529fc4c 100644
@@ -83,7 +83,7 @@
 #define MAX9611_TEMP_MAX_POS		0x7f80
 #define MAX9611_TEMP_MAX_NEG		0xff80
 #define MAX9611_TEMP_MIN_NEG		0xd980
-#define MAX9611_TEMP_MASK		GENMASK(7, 15)
+#define MAX9611_TEMP_MASK		GENMASK(15, 7)
 #define MAX9611_TEMP_SHIFT		0x07
 #define MAX9611_TEMP_RAW(_r)		((_r) >> MAX9611_TEMP_SHIFT)
 #define MAX9611_TEMP_SCALE_NUM		1000000
drivers/iio/adc/rcar-gyroadc.c +2 -2
index 2c0d0316d149..b373acce5927 100644
@@ -382,7 +382,7 @@ static int rcar_gyroadc_parse_subdevs(struct iio_dev *indio_dev)
 				dev_err(dev,
 					"Only %i channels supported with %pOFn, but reg = <%i>.\n",
 					num_channels, child, reg);
-				return ret;
+				return -EINVAL;
 			}
 		}
 
@@ -391,7 +391,7 @@ static int rcar_gyroadc_parse_subdevs(struct iio_dev *indio_dev)
 			dev_err(dev,
 				"Channel %i uses different ADC mode than the rest.\n",
 				reg);
-			return ret;
+			return -EINVAL;
 		}
 
 		/* Channel is valid, grab the regulator. */
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +43 -0

64 lines not on this page · raw message

drivers/input/mouse/elantech.c +25 -29

72 lines not on this page · raw message

drivers/input/mouse/synaptics.c +1 -0
index 7f8f4780b511..c0e188cd3811 100644
@@ -182,6 +182,7 @@ static const char * const smbus_pnp_ids[] = {
 	"LEN2055", /* E580 */
 	"SYN3052", /* HP EliteBook 840 G4 */
 	"SYN3221", /* HP 15-ay000 */
+	"SYN323d", /* HP Spectre X360 13-w013dx */
 	NULL
 };
 
drivers/input/touchscreen/usbtouchscreen.c +2 -0
index a2cec6cacf57..16d70201de4a 100644
@@ -1659,6 +1659,8 @@ static int usbtouch_probe(struct usb_interface *intf,
 	if (!usbtouch || !input_dev)
 		goto out_free;
 
+	mutex_init(&usbtouch->pm_mutex);
+
 	type = &usbtouch_dev_info[id->driver_info];
 	usbtouch->type = type;
 	if (!type->process_pkt)
drivers/iommu/intel-iommu.c +5 -3
index 2101601adf57..1ad24367373f 100644
@@ -1900,7 +1900,6 @@ static int domain_init(struct dmar_domain *domain, struct intel_iommu *iommu,
 
 static void domain_exit(struct dmar_domain *domain)
 {
-	struct page *freelist;
 
 	/* Remove associated devices and clear attached or cached domains */
 	rcu_read_lock();
@@ -1910,9 +1909,12 @@ static void domain_exit(struct dmar_domain *domain)
 	/* destroy iovas */
 	put_iova_domain(&domain->iovad);
 
-	freelist = domain_unmap(domain, 0, DOMAIN_MAX_PFN(domain->gaw));
+	if (domain->pgd) {
+		struct page *freelist;
 
-	dma_free_pagelist(freelist);
+		freelist = domain_unmap(domain, 0, DOMAIN_MAX_PFN(domain->gaw));
+		dma_free_pagelist(freelist);
+	}
 
 	free_domain_mem(domain);
 }
drivers/mmc/host/cavium.c +3 -1
index ed5cefb83768..89deb451e0ac 100644
@@ -374,6 +374,7 @@ static int finish_dma_single(struct cvm_mmc_host *host, struct mmc_data *data)
 {
 	data->bytes_xfered = data->blocks * data->blksz;
 	data->error = 0;
+	dma_unmap_sg(host->dev, data->sg, data->sg_len, get_dma_dir(data));
 	return 1;
 }
 
@@ -1046,7 +1047,8 @@ int cvm_mmc_of_slot_probe(struct device *dev, struct cvm_mmc_host *host)
 		mmc->max_segs = 1;
 
 	/* DMA size field can address up to 8 MB */
-	mmc->max_seg_size = 8 * 1024 * 1024;
+	mmc->max_seg_size = min_t(unsigned int, 8 * 1024 * 1024,
+				  dma_get_max_seg_size(host->dev));
 	mmc->max_req_size = mmc->max_seg_size;
 	/* External DMA is in 512 byte blocks */
 	mmc->max_blk_size = 512;
drivers/net/can/flexcan.c +32 -7
index f2fe344593d5..fcec8bcb53d6 100644
@@ -400,9 +400,10 @@ static void flexcan_enable_wakeup_irq(struct flexcan_priv *priv, bool enable)
 	priv->write(reg_mcr, &regs->mcr);
 }
 
-static inline void flexcan_enter_stop_mode(struct flexcan_priv *priv)
+static inline int flexcan_enter_stop_mode(struct flexcan_priv *priv)
 {
 	struct flexcan_regs __iomem *regs = priv->regs;
+	unsigned int ackval;
 	u32 reg_mcr;
 
 	reg_mcr = priv->read(&regs->mcr);
@@ -412,20 +413,37 @@ static inline void flexcan_enter_stop_mode(struct flexcan_priv *priv)
 	/* enable stop request */
 	regmap_update_bits(priv->stm.gpr, priv->stm.req_gpr,
 			   1 << priv->stm.req_bit, 1 << priv->stm.req_bit);
+
+	/* get stop acknowledgment */
+	if (regmap_read_poll_timeout(priv->stm.gpr, priv->stm.ack_gpr,
+				     ackval, ackval & (1 << priv->stm.ack_bit),
+				     0, FLEXCAN_TIMEOUT_US))
+		return -ETIMEDOUT;
+
+	return 0;
 }
 
-static inline void flexcan_exit_stop_mode(struct flexcan_priv *priv)
+static inline int flexcan_exit_stop_mode(struct flexcan_priv *priv)
 {
 	struct flexcan_regs __iomem *regs = priv->regs;
+	unsigned int ackval;
 	u32 reg_mcr;
 
 	/* remove stop request */
 	regmap_update_bits(priv->stm.gpr, priv->stm.req_gpr,
 			   1 << priv->stm.req_bit, 0);
 
+	/* get stop acknowledgment */
+	if (regmap_read_poll_timeout(priv->stm.gpr, priv->stm.ack_gpr,
+				     ackval, !(ackval & (1 << priv->stm.ack_bit)),
+				     0, FLEXCAN_TIMEOUT_US))
+		return -ETIMEDOUT;
+
 	reg_mcr = priv->read(&regs->mcr);
 	reg_mcr &= ~FLEXCAN_MCR_SLF_WAK;
 	priv->write(reg_mcr, &regs->mcr);
+
+	return 0;
 }
 
 static inline void flexcan_error_irq_enable(const struct flexcan_priv *priv)
@@ -1437,10 +1455,10 @@ static int flexcan_setup_stop_mode(struct platform_device *pdev)
 
 	priv = netdev_priv(dev);
 	priv->stm.gpr = syscon_node_to_regmap(gpr_np);
-	of_node_put(gpr_np);
 	if (IS_ERR(priv->stm.gpr)) {
 		dev_dbg(&pdev->dev, "could not find gpr regmap\n");
-		return PTR_ERR(priv->stm.gpr);
+		ret = PTR_ERR(priv->stm.gpr);
+		goto out_put_node;
 	}
 
 	priv->stm.req_gpr = out_val[1];
@@ -1455,7 +1473,9 @@ static int flexcan_setup_stop_mode(struct platform_device *pdev)
 
 	device_set_wakeup_capable(&pdev->dev, true);
 
-	return 0;
+out_put_node:
+	of_node_put(gpr_np);
+	return ret;
 }
 
 static const struct of_device_id flexcan_of_match[] = {
@@ -1612,7 +1632,9 @@ static int __maybe_unused flexcan_suspend(struct device *device)
 		 */
 		if (device_may_wakeup(device)) {
 			enable_irq_wake(dev->irq);
-			flexcan_enter_stop_mode(priv);
+			err = flexcan_enter_stop_mode(priv);
+			if (err)
+				return err;
 		} else {
 			err = flexcan_chip_disable(priv);
 			if (err)
@@ -1662,10 +1684,13 @@ static int __maybe_unused flexcan_noirq_resume(struct device *device)
 {
 	struct net_device *dev = dev_get_drvdata(device);
 	struct flexcan_priv *priv = netdev_priv(dev);
+	int err;
 
 	if (netif_running(dev) && device_may_wakeup(device)) {
 		flexcan_enable_wakeup_irq(priv, false);
-		flexcan_exit_stop_mode(priv);
+		err = flexcan_exit_stop_mode(priv);
+		if (err)
+			return err;
 	}
 
 	return 0;
drivers/net/can/rcar/rcar_canfd.c +5 -4
index 05410008aa6b..de34a4b82d4a 100644
@@ -1508,10 +1508,11 @@ static int rcar_canfd_rx_poll(struct napi_struct *napi, int quota)
 
 	/* All packets processed */
 	if (num_pkts < quota) {
-		napi_complete_done(napi, num_pkts);
-		/* Enable Rx FIFO interrupts */
-		rcar_canfd_set_bit(priv->base, RCANFD_RFCC(ridx),
-				   RCANFD_RFCC_RFIE);
+		if (napi_complete_done(napi, num_pkts)) {
+			/* Enable Rx FIFO interrupts */
+			rcar_canfd_set_bit(priv->base, RCANFD_RFCC(ridx),
+					   RCANFD_RFCC_RFIE);
+		}
 	}
 	return num_pkts;
 }
drivers/net/can/usb/peak_usb/pcan_usb_core.c +4 -4
index 458154c9b482..22b9c8e6d040 100644
@@ -568,16 +568,16 @@ static int peak_usb_ndo_stop(struct net_device *netdev)
 	dev->state &= ~PCAN_USB_STATE_STARTED;
 	netif_stop_queue(netdev);
 
+	close_candev(netdev);
+
+	dev->can.state = CAN_STATE_STOPPED;
+
 	/* unlink all pending urbs and free used memory */
 	peak_usb_unlink_all_urbs(dev);
 
 	if (dev->adapter->dev_stop)
 		dev->adapter->dev_stop(dev);
 
-	close_candev(netdev);
-
-	dev->can.state = CAN_STATE_STOPPED;
-
 	/* can set bus off now */
 	if (dev->adapter->dev_set_bus) {
 		int err = dev->adapter->dev_set_bus(dev, 0);
drivers/net/can/usb/peak_usb/pcan_usb_fd.c +1 -1
index 34761c3a6286..47cc1ff5b88e 100644
@@ -841,7 +841,7 @@ static int pcan_usb_fd_init(struct peak_usb_device *dev)
 			goto err_out;
 
 		/* allocate command buffer once for all for the interface */
-		pdev->cmd_buffer_addr = kmalloc(PCAN_UFD_CMD_BUFFER_SIZE,
+		pdev->cmd_buffer_addr = kzalloc(PCAN_UFD_CMD_BUFFER_SIZE,
 						GFP_KERNEL);
 		if (!pdev->cmd_buffer_addr)
 			goto err_out_1;
drivers/net/can/usb/peak_usb/pcan_usb_pro.c +1 -1
index 178bb7cff0c1..53cb2f72bdd0 100644
@@ -494,7 +494,7 @@ static int pcan_usb_pro_drv_loaded(struct peak_usb_device *dev, int loaded)
 	u8 *buffer;
 	int err;
 
-	buffer = kmalloc(PCAN_USBPRO_FCT_DRVLD_REQ_LEN, GFP_KERNEL);
+	buffer = kzalloc(PCAN_USBPRO_FCT_DRVLD_REQ_LEN, GFP_KERNEL);
 	if (!buffer)
 		return -ENOMEM;
 
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c +2 -1
index cfaf8f618d1f..56742fa0c1af 100644
@@ -67,7 +67,8 @@ static struct ch_tc_pedit_fields pedits[] = {
 static struct ch_tc_flower_entry *allocate_flower_entry(void)
 {
 	struct ch_tc_flower_entry *new = kzalloc(sizeof(*new), GFP_KERNEL);
-	spin_lock_init(&new->lock);
+	if (new)
+		spin_lock_init(&new->lock);
 	return new;
 }
 
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +21 -8
index 559f6df1a74d..5af9959d05e5 100644
@@ -753,7 +753,7 @@ static int iwl_mvm_sar_get_ewrd_table(struct iwl_mvm *mvm)
 
 	for (i = 0; i < n_profiles; i++) {
 		/* the tables start at element 3 */
-		static int pos = 3;
+		int pos = 3;
 
 		/* The EWRD profiles officially go from 2 to 4, but we
 		 * save them in sar_profiles[1-3] (because we don't
@@ -874,6 +874,22 @@ int iwl_mvm_sar_select_profile(struct iwl_mvm *mvm, int prof_a, int prof_b)
 	return iwl_mvm_send_cmd_pdu(mvm, REDUCE_TX_POWER_CMD, 0, len, &cmd);
 }
 
+static bool iwl_mvm_sar_geo_support(struct iwl_mvm *mvm)
+{
+	/*
+	 * The GEO_TX_POWER_LIMIT command is not supported on earlier
+	 * 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 to 36, 29 and
+	 * 17.
+	 */
+	return IWL_UCODE_SERIAL(mvm->fw->ucode_ver) >= 38 ||
+	       IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 36 ||
+	       IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 29 ||
+	       IWL_UCODE_SERIAL(mvm->fw->ucode_ver) == 17;
+}
+
 int iwl_mvm_get_sar_geo_profile(struct iwl_mvm *mvm)
 {
 	struct iwl_geo_tx_power_profiles_resp *resp;
@@ -889,6 +905,9 @@ int iwl_mvm_get_sar_geo_profile(struct iwl_mvm *mvm)
 		.data = { &geo_cmd },
 	};
 
+	if (!iwl_mvm_sar_geo_support(mvm))
+		return -EOPNOTSUPP;
+
 	ret = iwl_mvm_send_cmd(mvm, &cmd);
 	if (ret) {
 		IWL_ERR(mvm, "Failed to get geographic profile info %d\n", ret);
@@ -914,13 +933,7 @@ static int iwl_mvm_sar_geo_init(struct iwl_mvm *mvm)
 	int ret, i, j;
 	u16 cmd_wide_id =  WIDE_ID(PHY_OPS_GROUP, GEO_TX_POWER_LIMIT);
 
-	/*
-	 * This command is not supported on earlier 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.
-	 */
-	if (IWL_UCODE_SERIAL(mvm->fw->ucode_ver) < 41)
+	if (!iwl_mvm_sar_geo_support(mvm))
 		return 0;
 
 	ret = iwl_mvm_sar_get_wgds_table(mvm);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c +2 -1
index 96f8d38ea321..a12ee20fb9ab 100644
@@ -831,6 +831,7 @@ iwl_mvm_tx_tso_segment(struct sk_buff *skb, unsigned int num_subframes,
 	unsigned int tcp_payload_len;
 	unsigned int mss = skb_shinfo(skb)->gso_size;
 	bool ipv4 = (skb->protocol == htons(ETH_P_IP));
+	bool qos = ieee80211_is_data_qos(hdr->frame_control);
 	u16 ip_base_id = ipv4 ? ntohs(ip_hdr(skb)->id) : 0;
 
 	skb_shinfo(skb)->gso_size = num_subframes * mss;
@@ -864,7 +865,7 @@ iwl_mvm_tx_tso_segment(struct sk_buff *skb, unsigned int num_subframes,
 		if (tcp_payload_len > mss) {
 			skb_shinfo(tmp)->gso_size = mss;
 		} else {
-			if (ieee80211_is_data_qos(hdr->frame_control)) {
+			if (qos) {
 				u8 *qc;
 
 				if (ipv4)
drivers/net/wireless/intel/iwlwifi/pcie/tx.c +2 -0
index fa4245d0d4a8..2f0ba7ef53b8 100644
@@ -435,6 +435,8 @@ static void iwl_pcie_tfd_unmap(struct iwl_trans *trans,
 					 DMA_TO_DEVICE);
 	}
 
+	meta->tbs = 0;
+
 	if (trans->cfg->use_tfh) {
 		struct iwl_tfh_tfd *tfd_fh = (void *)tfd;
 
drivers/net/wireless/marvell/mwifiex/main.h +1 -0
index b025ba164412..e39bb5c42c9a 100644
@@ -124,6 +124,7 @@ enum {
 
 #define MWIFIEX_MAX_TOTAL_SCAN_TIME	(MWIFIEX_TIMER_10S - MWIFIEX_TIMER_1S)
 
+#define WPA_GTK_OUI_OFFSET				2
 #define RSN_GTK_OUI_OFFSET				2
 
 #define MWIFIEX_OUI_NOT_PRESENT			0
drivers/net/wireless/marvell/mwifiex/scan.c +2 -1
index e2786ab612ca..dd02bbd9544e 100644
@@ -181,7 +181,8 @@ mwifiex_is_wpa_oui_present(struct mwifiex_bssdescriptor *bss_desc, u32 cipher)
 	u8 ret = MWIFIEX_OUI_NOT_PRESENT;
 
 	if (has_vendor_hdr(bss_desc->bcn_wpa_ie, WLAN_EID_VENDOR_SPECIFIC)) {
-		iebody = (struct ie_body *) bss_desc->bcn_wpa_ie->data;
+		iebody = (struct ie_body *)((u8 *)bss_desc->bcn_wpa_ie->data +
+					    WPA_GTK_OUI_OFFSET);
 		oui = &mwifiex_wpa_oui[cipher][0];
 		ret = mwifiex_search_oui_in_ie(iebody, oui);
 		if (ret)
drivers/nvme/host/core.c +5 -7
index 4a1d2ab4d161..5deb4deb3820 100644
@@ -2264,17 +2264,15 @@ static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ct
 	memset(subsys->subnqn + off, 0, sizeof(subsys->subnqn) - off);
 }
 
-static void __nvme_release_subsystem(struct nvme_subsystem *subsys)
+static void nvme_release_subsystem(struct device *dev)
 {
+	struct nvme_subsystem *subsys =
+		container_of(dev, struct nvme_subsystem, dev);
+
 	ida_simple_remove(&nvme_subsystems_ida, subsys->instance);
 	kfree(subsys);
 }
 
-static void nvme_release_subsystem(struct device *dev)
-{
-	__nvme_release_subsystem(container_of(dev, struct nvme_subsystem, dev));
-}
-
 static void nvme_destroy_subsystem(struct kref *ref)
 {
 	struct nvme_subsystem *subsys =
@@ -2429,7 +2427,7 @@ static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
 	mutex_lock(&nvme_subsystems_lock);
 	found = __nvme_find_get_subsystem(subsys->subnqn);
 	if (found) {
-		__nvme_release_subsystem(subsys);
+		put_device(&subsys->dev);
 		subsys = found;
 
 		if (!nvme_validate_cntlid(subsys, ctrl, id)) {
drivers/nvme/host/pci.c +2 -0
index 7fbcd72c438f..f9959eaaa185 100644
@@ -2959,6 +2959,8 @@ static const struct pci_device_id nvme_id_table[] = {
 		.driver_data = NVME_QUIRK_LIGHTNVM, },
 	{ PCI_DEVICE(0x1d1d, 0x2601),	/* CNEX Granby */
 		.driver_data = NVME_QUIRK_LIGHTNVM, },
+	{ PCI_DEVICE(0x10ec, 0x5762),   /* ADATA SX6000LNP */
+		.driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN, },
 	{ PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_EXPRESS, 0xffffff) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2001) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_APPLE, 0x2003) },
drivers/pci/pci.c +10 -19
index 720da09d4d73..088fcdc8d2b4 100644
@@ -1004,10 +1004,15 @@ static void __pci_start_power_transition(struct pci_dev *dev, pci_power_t state)
 	if (state == PCI_D0) {
 		pci_platform_power_transition(dev, PCI_D0);
 		/*
-		 * Mandatory power management transition delays are
-		 * handled in the PCIe portdrv resume hooks.
+		 * Mandatory power management transition delays, see
+		 * PCI Express Base Specification Revision 2.0 Section
+		 * 6.6.1: Conventional Reset.  Do not delay for
+		 * devices powered on/off by corresponding bridge,
+		 * because have already delayed for the bridge.
 		 */
 		if (dev->runtime_d3cold) {
+			if (dev->d3cold_delay && !dev->imm_ready)
+				msleep(dev->d3cold_delay);
 			/*
 			 * When powering on a bridge from D3cold, the
 			 * whole hierarchy may be powered on into
@@ -4570,16 +4575,14 @@ static int pci_pm_reset(struct pci_dev *dev, int probe)
 
 	return pci_dev_wait(dev, "PM D3->D0", PCIE_RESET_READY_POLL_MS);
 }
-
 /**
- * pcie_wait_for_link_delay - Wait until link is active or inactive
+ * pcie_wait_for_link - Wait until link is active or inactive
  * @pdev: Bridge device
  * @active: waiting for active or inactive?
- * @delay: Delay to wait after link has become active (in ms)
  *
  * Use this to wait till link becomes active or inactive.
  */
-bool pcie_wait_for_link_delay(struct pci_dev *pdev, bool active, int delay)
+bool pcie_wait_for_link(struct pci_dev *pdev, bool active)
 {
 	int timeout = 1000;
 	bool ret;
@@ -4616,25 +4619,13 @@ bool pcie_wait_for_link_delay(struct pci_dev *pdev, bool active, int delay)
 		timeout -= 10;
 	}
 	if (active && ret)
-		msleep(delay);
+		msleep(100);
 	else if (ret != active)
 		pci_info(pdev, "Data Link Layer Link Active not %s in 1000 msec\n",
 			active ? "set" : "cleared");
 	return ret == active;
 }
 
-/**
- * pcie_wait_for_link - Wait until link is active or inactive
- * @pdev: Bridge device
- * @active: waiting for active or inactive?
- *
- * Use this to wait till link becomes active or inactive.
- */
-bool pcie_wait_for_link(struct pci_dev *pdev, bool active)
-{
-	return pcie_wait_for_link_delay(pdev, active, 100);
-}
-
 void pci_reset_secondary_bus(struct pci_dev *dev)
 {
 	u16 ctrl;
drivers/pci/pci.h +0 -1
index 59802b3def4b..9cb99380c61e 100644
@@ -493,7 +493,6 @@ static inline int pci_dev_specific_disable_acs_redir(struct pci_dev *dev)
 void pcie_do_recovery(struct pci_dev *dev, enum pci_channel_state state,
 		      u32 service);
 
-bool pcie_wait_for_link_delay(struct pci_dev *pdev, bool active, int delay);
 bool pcie_wait_for_link(struct pci_dev *pdev, bool active);
 #ifdef CONFIG_PCIEASPM
 void pcie_aspm_init_link_state(struct pci_dev *pdev);
drivers/pci/pcie/portdrv_core.c +0 -66

90 lines not on this page · raw message

drivers/s390/cio/qdio_main.c +6 -6
index 730c4e68094b..7f5adf02f095 100644
@@ -1558,13 +1558,13 @@ static int handle_outbound(struct qdio_q *q, unsigned int callflags,
 		rc = qdio_kick_outbound_q(q, phys_aob);
 	} else if (need_siga_sync(q)) {
 		rc = qdio_siga_sync_q(q);
+	} else if (count < QDIO_MAX_BUFFERS_PER_Q &&
+		   get_buf_state(q, prev_buf(bufnr), &state, 0) > 0 &&
+		   state == SLSB_CU_OUTPUT_PRIMED) {
+		/* The previous buffer is not processed yet, tack on. */
+		qperf_inc(q, fast_requeue);
 	} else {
-		/* try to fast requeue buffers */
-		get_buf_state(q, prev_buf(bufnr), &state, 0);
-		if (state != SLSB_CU_OUTPUT_PRIMED)
-			rc = qdio_kick_outbound_q(q, 0);
-		else
-			qperf_inc(q, fast_requeue);
+		rc = qdio_kick_outbound_q(q, 0);
 	}
 
 	/* in case of SIGA errors we must process the error immediately */
drivers/s390/cio/vfio_ccw_cp.c +3 -1
index 0e79799e9a71..79eb40bdaf9f 100644
@@ -89,8 +89,10 @@ static int pfn_array_alloc_pin(struct pfn_array *pa, struct device *mdev,
 				  sizeof(*pa->pa_iova_pfn) +
 				  sizeof(*pa->pa_pfn),
 				  GFP_KERNEL);
-	if (unlikely(!pa->pa_iova_pfn))
+	if (unlikely(!pa->pa_iova_pfn)) {
+		pa->pa_nr = 0;
 		return -ENOMEM;
+	}
 	pa->pa_pfn = pa->pa_iova_pfn + pa->pa_nr;
 
 	pa->pa_iova_pfn[0] = pa->pa_iova >> PAGE_SHIFT;
drivers/s390/cio/vfio_ccw_drv.c +1 -1
index 9125f7f4e64c..8a8fbde7e186 100644
@@ -88,7 +88,7 @@ static void vfio_ccw_sch_io_todo(struct work_struct *work)
 		     (SCSW_ACTL_DEVACT | SCSW_ACTL_SCHACT));
 	if (scsw_is_solicited(&irb->scsw)) {
 		cp_update_scsw(&private->cp, &irb->scsw);
-		if (is_final)
+		if (is_final && private->state == VFIO_CCW_STATE_CP_PENDING)
 			cp_free(&private->cp);
 	}
 	mutex_lock(&private->io_mutex);
drivers/scsi/device_handler/scsi_dh_alua.c +6 -1
index f0066f8a1786..4971104b1817 100644
@@ -40,6 +40,7 @@
 #define ALUA_FAILOVER_TIMEOUT		60
 #define ALUA_FAILOVER_RETRIES		5
 #define ALUA_RTPG_DELAY_MSECS		5
+#define ALUA_RTPG_RETRY_DELAY		2
 
 /* device handler flags */
 #define ALUA_OPTIMIZE_STPG		0x01
@@ -682,7 +683,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_port_group *pg)
 	case SCSI_ACCESS_STATE_TRANSITIONING:
 		if (time_before(jiffies, pg->expiry)) {
 			/* State transition, retry */
-			pg->interval = 2;
+			pg->interval = ALUA_RTPG_RETRY_DELAY;
 			err = SCSI_DH_RETRY;
 		} else {
 			struct alua_dh_data *h;
@@ -807,6 +808,8 @@ static void alua_rtpg_work(struct work_struct *work)
 				spin_lock_irqsave(&pg->lock, flags);
 				pg->flags &= ~ALUA_PG_RUNNING;
 				pg->flags |= ALUA_PG_RUN_RTPG;
+				if (!pg->interval)
+					pg->interval = ALUA_RTPG_RETRY_DELAY;
 				spin_unlock_irqrestore(&pg->lock, flags);
 				queue_delayed_work(kaluad_wq, &pg->rtpg_work,
 						   pg->interval * HZ);
@@ -818,6 +821,8 @@ static void alua_rtpg_work(struct work_struct *work)
 		spin_lock_irqsave(&pg->lock, flags);
 		if (err == SCSI_DH_RETRY || pg->flags & ALUA_PG_RUN_RTPG) {
 			pg->flags &= ~ALUA_PG_RUNNING;
+			if (!pg->interval && !(pg->flags & ALUA_PG_RUN_RTPG))
+				pg->interval = ALUA_RTPG_RETRY_DELAY;
 			pg->flags |= ALUA_PG_RUN_RTPG;
 			spin_unlock_irqrestore(&pg->lock, flags);
 			queue_delayed_work(kaluad_wq, &pg->rtpg_work,
drivers/scsi/ibmvscsi/ibmvfc.c +1 -1
index acd16e0d52cf..8cdbac076a1b 100644
@@ -4864,8 +4864,8 @@ static int ibmvfc_remove(struct vio_dev *vdev)
 
 	spin_lock_irqsave(vhost->host->host_lock, flags);
 	ibmvfc_purge_requests(vhost, DID_ERROR);
-	ibmvfc_free_event_pool(vhost);
 	spin_unlock_irqrestore(vhost->host->host_lock, flags);
+	ibmvfc_free_event_pool(vhost);
 
 	ibmvfc_free_mem(vhost);
 	spin_lock(&ibmvfc_driver_lock);
drivers/scsi/megaraid/megaraid_sas_base.c +3 -0
index 7237114a1d53..5f30016e9b64 100644
@@ -3045,6 +3045,7 @@ megasas_fw_crash_buffer_show(struct device *cdev,
 	u32 size;
 	unsigned long buff_addr;
 	unsigned long dmachunk = CRASH_DMA_BUF_SIZE;
+	unsigned long chunk_left_bytes;
 	unsigned long src_addr;
 	unsigned long flags;
 	u32 buff_offset;
@@ -3070,6 +3071,8 @@ megasas_fw_crash_buffer_show(struct device *cdev,
 	}
 
 	size = (instance->fw_crash_buffer_size * dmachunk) - buff_offset;
+	chunk_left_bytes = dmachunk - (buff_offset % dmachunk);
+	size = (size > chunk_left_bytes) ? chunk_left_bytes : size;
 	size = (size >= PAGE_SIZE) ? (PAGE_SIZE - 1) : size;
 
 	src_addr = (unsigned long)instance->crash_buf[buff_offset / dmachunk] +
drivers/staging/android/ion/ion_page_pool.c +3 -0
index fd4995fb676e..f85ec5b16b65 100644
@@ -8,11 +8,14 @@
 #include <linux/list.h>
 #include <linux/slab.h>
 #include <linux/swap.h>
+#include <linux/sched/signal.h>
 
 #include "ion.h"
 
 static inline struct page *ion_page_pool_alloc_pages(struct ion_page_pool *pool)
 {
+	if (fatal_signal_pending(current))
+		return NULL;
 	return alloc_pages(pool->gfp_mask, pool->order);
 }
 
drivers/staging/fbtft/fbtft-core.c +20 -23

84 lines not on this page · raw message

drivers/staging/gasket/apex_driver.c +1 -1
index 2be45ee9d061..464648ee2036 100644
@@ -532,7 +532,7 @@ static ssize_t sysfs_show(struct device *device, struct device_attribute *attr,
 		break;
 	case ATTR_KERNEL_HIB_SIMPLE_PAGE_TABLE_SIZE:
 		ret = scnprintf(buf, PAGE_SIZE, "%u\n",
-				gasket_page_table_num_entries(
+				gasket_page_table_num_simple_entries(
 					gasket_dev->page_table[0]));
 		break;
 	case ATTR_KERNEL_HIB_NUM_ACTIVE_PAGES:
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +1 -0
index f6825727bf77..3592b545246c 100644
@@ -1789,6 +1789,7 @@ void wilc_deinit_host_int(struct net_device *net)
 
 	priv->p2p_listen_state = false;
 
+	flush_workqueue(vif->wilc->hif_workqueue);
 	mutex_destroy(&priv->scan_req_lock);
 	ret = wilc_deinit(vif);
 
drivers/tty/tty_ldsem.c +2 -3
index 717292c1c0df..60ff236a3d63 100644
@@ -93,8 +93,7 @@ static void __ldsem_wake_readers(struct ld_semaphore *sem)
 
 	list_for_each_entry_safe(waiter, next, &sem->read_wait, list) {
 		tsk = waiter->task;
-		smp_mb();
-		waiter->task = NULL;
+		smp_store_release(&waiter->task, NULL);
 		wake_up_process(tsk);
 		put_task_struct(tsk);
 	}
@@ -194,7 +193,7 @@ down_read_failed(struct ld_semaphore *sem, long count, long timeout)
 	for (;;) {
 		set_current_state(TASK_UNINTERRUPTIBLE);
 
-		if (!waiter.task)
+		if (!smp_load_acquire(&waiter.task))
 			break;
 		if (!timeout)
 			break;
drivers/usb/core/devio.c +0 -2
index a02448105527..86130e8d35f9 100644
@@ -1788,8 +1788,6 @@ static int proc_do_submiturb(struct usb_dev_state *ps, struct usbdevfs_urb *uurb
 	return 0;
 
  error:
-	if (as && as->usbm)
-		dec_usb_memory_use_count(as->usbm, &as->usbm->urb_use_count);
 	kfree(isopkt);
 	kfree(dr);
 	if (as)
drivers/usb/host/xhci-rcar.c +7 -2
index 671bce18782c..8616c52849c6 100644
@@ -238,10 +238,15 @@ int xhci_rcar_init_quirk(struct usb_hcd *hcd)
 	 * pointers. So, this driver clears the AC64 bit of xhci->hcc_params
 	 * to call dma_set_coherent_mask(dev, DMA_BIT_MASK(32)) in
 	 * xhci_gen_setup().
+	 *
+	 * And, since the firmware/internal CPU control the USBSTS.STS_HALT
+	 * and the process speed is down when the roothub port enters U3,
+	 * long delay for the handshake of STS_HALT is neeed in xhci_suspend().
 	 */
 	if (xhci_rcar_is_gen2(hcd->self.controller) ||
-			xhci_rcar_is_gen3(hcd->self.controller))
-		xhci->quirks |= XHCI_NO_64BIT_SUPPORT;
+			xhci_rcar_is_gen3(hcd->self.controller)) {
+		xhci->quirks |= XHCI_NO_64BIT_SUPPORT | XHCI_SLOW_SUSPEND;
+	}
 
 	if (!xhci_rcar_wait_for_pll_active(hcd))
 		return -ETIMEDOUT;
drivers/usb/misc/iowarrior.c +4 -3
index ba05dd80a020..f5bed9f29e56 100644
@@ -866,19 +866,20 @@ static void iowarrior_disconnect(struct usb_interface *interface)
 	dev = usb_get_intfdata(interface);
 	mutex_lock(&iowarrior_open_disc_lock);
 	usb_set_intfdata(interface, NULL);
+	/* prevent device read, write and ioctl */
+	dev->present = 0;
 
 	minor = dev->minor;
+	mutex_unlock(&iowarrior_open_disc_lock);
+	/* give back our minor - this will call close() locks need to be dropped at this point*/
 
-	/* give back our minor */
 	usb_deregister_dev(interface, &iowarrior_class);
 
 	mutex_lock(&dev->mutex);
 
 	/* prevent device read, write and ioctl */
-	dev->present = 0;
 
 	mutex_unlock(&dev->mutex);
-	mutex_unlock(&iowarrior_open_disc_lock);
 
 	if (dev->opened) {
 		/* There is a process that holds a filedescriptor to the device ,
drivers/usb/misc/rio500.c +27 -16

182 lines not on this page · raw message

drivers/usb/misc/yurex.c +1 -1
index 7b306aa22d25..6715a128e6c8 100644
@@ -92,7 +92,6 @@ static void yurex_delete(struct kref *kref)
 
 	dev_dbg(&dev->interface->dev, "%s\n", __func__);
 
-	usb_put_dev(dev->udev);
 	if (dev->cntl_urb) {
 		usb_kill_urb(dev->cntl_urb);
 		kfree(dev->cntl_req);
@@ -108,6 +107,7 @@ static void yurex_delete(struct kref *kref)
 				dev->int_buffer, dev->urb->transfer_dma);
 		usb_free_urb(dev->urb);
 	}
+	usb_put_dev(dev->udev);
 	kfree(dev);
 }
 
drivers/usb/typec/tcpm/tcpm.c +41 -17

111 lines not on this page · raw message

drivers/usb/typec/ucsi/ucsi_ccg.c +1 -1
index bf63074675fc..c274a36c2fe4 100644
@@ -963,7 +963,7 @@ static int do_flash(struct ucsi_ccg *uc, enum enum_flash_mode mode)
  ******************************************************************************/
 static int ccg_fw_update(struct ucsi_ccg *uc, enum enum_flash_mode flash_mode)
 {
-	int err;
+	int err = 0;
 
 	while (flash_mode != FLASH_NOT_NEEDED) {
 		err = do_flash(uc, flash_mode);
fs/block_dev.c +4 -1
index 09c9d6726f07..a9e7c1b69437 100644
@@ -1723,7 +1723,10 @@ int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder)
 
 		/* finish claiming */
 		mutex_lock(&bdev->bd_mutex);
-		bd_finish_claiming(bdev, whole, holder);
+		if (!res)
+			bd_finish_claiming(bdev, whole, holder);
+		else
+			bd_abort_claiming(bdev, whole, holder);
 		/*
 		 * Block event polling for write claims if requested.  Any
 		 * write holder makes the write_holder state stick until
fs/cifs/smb2pdu.c +6 -1
index 75311a8a68bf..c3c8de5513db 100644
@@ -252,7 +252,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon)
 	if (tcon == NULL)
 		return 0;
 
-	if (smb2_command == SMB2_TREE_CONNECT)
+	if (smb2_command == SMB2_TREE_CONNECT || smb2_command == SMB2_IOCTL)
 		return 0;
 
 	if (tcon->tidStatus == CifsExiting) {
@@ -1173,7 +1173,12 @@ SMB2_sess_alloc_buffer(struct SMB2_sess_data *sess_data)
 	else
 		req->SecurityMode = 0;
 
+#ifdef CONFIG_CIFS_DFS_UPCALL
+	req->Capabilities = cpu_to_le32(SMB2_GLOBAL_CAP_DFS);
+#else
 	req->Capabilities = 0;
+#endif /* DFS_UPCALL */
+
 	req->Channel = 0; /* MBZ */
 
 	sess_data->iov[0].iov_base = (char *)req;
fs/dax.c +1 -1
index 7d0e99982d48..4f42b852375b 100644
@@ -601,7 +601,7 @@ struct page *dax_layout_busy_page(struct address_space *mapping)
 	 * guaranteed to either see new references or prevent new
 	 * references from being established.
 	 */
-	unmap_mapping_range(mapping, 0, 0, 1);
+	unmap_mapping_range(mapping, 0, 0, 0);
 
 	xas_lock_irq(&xas);
 	xas_for_each(&xas, entry, ULONG_MAX) {
fs/gfs2/bmap.c +101 -63

233 lines not on this page · raw message

fs/nfs/delegation.c +1 -1
index 0ff3facf81da..0af854cce8ff 100644
@@ -153,7 +153,7 @@ static int nfs_delegation_claim_opens(struct inode *inode,
 		/* Block nfs4_proc_unlck */
 		mutex_lock(&sp->so_delegreturn_mutex);
 		seq = raw_seqcount_begin(&sp->so_reclaim_seqcount);
-		err = nfs4_open_delegation_recall(ctx, state, stateid, type);
+		err = nfs4_open_delegation_recall(ctx, state, stateid);
 		if (!err)
 			err = nfs_delegation_claim_locks(state, stateid);
 		if (!err && read_seqcount_retry(&sp->so_reclaim_seqcount, seq))
fs/nfs/delegation.h +1 -1
index 5799777df5ec..9eb87ae4c982 100644
@@ -63,7 +63,7 @@ void nfs_reap_expired_delegations(struct nfs_client *clp);
 
 /* NFSv4 delegation-related procedures */
 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync);
-int nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid, fmode_t type);
+int nfs4_open_delegation_recall(struct nfs_open_context *ctx, struct nfs4_state *state, const nfs4_stateid *stateid);
 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
 bool nfs4_copy_delegation_stateid(struct inode *inode, fmode_t flags, nfs4_stateid *dst, const struct cred **cred);
 bool nfs4_refresh_delegation_stateid(nfs4_stateid *dst, struct inode *inode);
fs/nfs/nfs4proc.c +21 -18
index 6418cb6c079b..63edda145d1b 100644
@@ -1878,8 +1878,9 @@ _nfs4_opendata_reclaim_to_nfs4_state(struct nfs4_opendata *data)
 	if (data->o_res.delegation_type != 0)
 		nfs4_opendata_check_deleg(data, state);
 update:
-	update_open_stateid(state, &data->o_res.stateid, NULL,
-			    data->o_arg.fmode);
+	if (!update_open_stateid(state, &data->o_res.stateid,
+				NULL, data->o_arg.fmode))
+		return ERR_PTR(-EAGAIN);
 	refcount_inc(&state->count);
 
 	return state;
@@ -1944,8 +1945,11 @@ _nfs4_opendata_to_nfs4_state(struct nfs4_opendata *data)
 
 	if (data->o_res.delegation_type != 0)
 		nfs4_opendata_check_deleg(data, state);
-	update_open_stateid(state, &data->o_res.stateid, NULL,
-			data->o_arg.fmode);
+	if (!update_open_stateid(state, &data->o_res.stateid,
+				NULL, data->o_arg.fmode)) {
+		nfs4_put_open_state(state);
+		state = ERR_PTR(-EAGAIN);
+	}
 out:
 	nfs_release_seqid(data->o_arg.seqid);
 	return state;
@@ -2148,12 +2152,10 @@ static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct
 		case -NFS4ERR_BAD_HIGH_SLOT:
 		case -NFS4ERR_CONN_NOT_BOUND_TO_SESSION:
 		case -NFS4ERR_DEADSESSION:
-			set_bit(NFS_DELEGATED_STATE, &state->flags);
 			nfs4_schedule_session_recovery(server->nfs_client->cl_session, err);
 			return -EAGAIN;
 		case -NFS4ERR_STALE_CLIENTID:
 		case -NFS4ERR_STALE_STATEID:
-			set_bit(NFS_DELEGATED_STATE, &state->flags);
 			/* Don't recall a delegation if it was lost */
 			nfs4_schedule_lease_recovery(server->nfs_client);
 			return -EAGAIN;
@@ -2174,7 +2176,6 @@ static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct
 			return -EAGAIN;
 		case -NFS4ERR_DELAY:
 		case -NFS4ERR_GRACE:
-			set_bit(NFS_DELEGATED_STATE, &state->flags);
 			ssleep(1);
 			return -EAGAIN;
 		case -ENOMEM:
@@ -2190,8 +2191,7 @@ static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct
 }
 
 int nfs4_open_delegation_recall(struct nfs_open_context *ctx,
-		struct nfs4_state *state, const nfs4_stateid *stateid,
-		fmode_t type)
+		struct nfs4_state *state, const nfs4_stateid *stateid)
 {
 	struct nfs_server *server = NFS_SERVER(state->inode);
 	struct nfs4_opendata *opendata;
@@ -2202,20 +2202,23 @@ int nfs4_open_delegation_recall(struct nfs_open_context *ctx,
 	if (IS_ERR(opendata))
 		return PTR_ERR(opendata);
 	nfs4_stateid_copy(&opendata->o_arg.u.delegation, stateid);
-	nfs_state_clear_delegation(state);
-	switch (type & (FMODE_READ|FMODE_WRITE)) {
-	case FMODE_READ|FMODE_WRITE:
-	case FMODE_WRITE:
+	if (!test_bit(NFS_O_RDWR_STATE, &state->flags)) {
 		err = nfs4_open_recover_helper(opendata, FMODE_READ|FMODE_WRITE);
 		if (err)
-			break;
+			goto out;
+	}
+	if (!test_bit(NFS_O_WRONLY_STATE, &state->flags)) {
 		err = nfs4_open_recover_helper(opendata, FMODE_WRITE);
 		if (err)
-			break;
-		/* Fall through */
-	case FMODE_READ:
+			goto out;
+	}
+	if (!test_bit(NFS_O_RDONLY_STATE, &state->flags)) {
 		err = nfs4_open_recover_helper(opendata, FMODE_READ);
+		if (err)
+			goto out;
 	}
+	nfs_state_clear_delegation(state);
+out:
 	nfs4_opendata_put(opendata);
 	return nfs4_handle_delegation_recall_error(server, state, stateid, NULL, err);
 }
@@ -3172,7 +3175,7 @@ static int _nfs4_do_setattr(struct inode *inode,
 
 	if (nfs4_copy_delegation_stateid(inode, FMODE_WRITE, &arg->stateid, &delegation_cred)) {
 		/* Use that stateid */
-	} else if (ctx != NULL) {
+	} else if (ctx != NULL && ctx->state) {
 		struct nfs_lock_context *l_ctx;
 		if (!nfs4_valid_open_stateid(ctx->state))
 			return -EBADF;
include/kvm/arm_vgic.h +1 -0
index 46bbc949c20a..7a30524a80ee 100644
@@ -350,6 +350,7 @@ int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu);
 
 void kvm_vgic_load(struct kvm_vcpu *vcpu);
 void kvm_vgic_put(struct kvm_vcpu *vcpu);
+void kvm_vgic_vmcr_sync(struct kvm_vcpu *vcpu);
 
 #define irqchip_in_kernel(k)	(!!((k)->arch.vgic.in_kernel))
 #define vgic_initialized(k)	((k)->arch.vgic.initialized)
include/linux/ccp.h +2 -0
index 55cb455cfcb0..a5dfbaf2470d 100644
@@ -170,6 +170,8 @@ struct ccp_aes_engine {
 	enum ccp_aes_mode mode;
 	enum ccp_aes_action action;
 
+	u32 authsize;
+
 	struct scatterlist *key;
 	u32 key_len;		/* In bytes */
 
include/linux/kvm_host.h +1 -0
index d1ad38a3f048..7546cbf3dfb0 100644
@@ -871,6 +871,7 @@ void kvm_arch_check_processor_compat(void *rtn);
 int kvm_arch_vcpu_runnable(struct kvm_vcpu *vcpu);
 bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu);
 int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu);
+bool kvm_arch_dy_runnable(struct kvm_vcpu *vcpu);
 
 #ifndef __KVM_HAVE_ARCH_VM_ALLOC
 /*
include/sound/compress_driver.h +1 -4
index c5188ff724d1..bc88d6f964da 100644
@@ -173,10 +173,7 @@ static inline void snd_compr_drain_notify(struct snd_compr_stream *stream)
 	if (snd_BUG_ON(!stream))
 		return;
 
-	if (stream->direction == SND_COMPRESS_PLAYBACK)
-		stream->runtime->state = SNDRV_PCM_STATE_SETUP;
-	else
-		stream->runtime->state = SNDRV_PCM_STATE_PREPARED;
+	stream->runtime->state = SNDRV_PCM_STATE_SETUP;
 
 	wake_up(&stream->runtime->sleep);
 }
include/uapi/linux/nl80211.h +1 -1
index 6f09d1500960..70da1c6cdd07 100644
@@ -2844,7 +2844,7 @@ enum nl80211_attrs {
 #define NL80211_HT_CAPABILITY_LEN		26
 #define NL80211_VHT_CAPABILITY_LEN		12
 #define NL80211_HE_MIN_CAPABILITY_LEN           16
-#define NL80211_HE_MAX_CAPABILITY_LEN           51
+#define NL80211_HE_MAX_CAPABILITY_LEN           54
 #define NL80211_MAX_NR_CIPHER_SUITES		5
 #define NL80211_MAX_NR_AKM_SUITES		2
 
kernel/events/core.c +1 -1
index f851934d55d4..4bc15cff1026 100644
@@ -11266,7 +11266,7 @@ perf_event_create_kernel_counter(struct perf_event_attr *attr, int cpu,
 		goto err_unlock;
 	}
 
-	perf_install_in_context(ctx, event, cpu);
+	perf_install_in_context(ctx, event, event->cpu);
 	perf_unpin_context(ctx);
 	mutex_unlock(&ctx->mutex);
 
kernel/irq/affinity.c +2 -4
index f18cd5aa33e8..656c14333613 100644
@@ -253,11 +253,9 @@ irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd)
 	 * Determine the number of vectors which need interrupt affinities
 	 * assigned. If the pre/post request exhausts the available vectors
 	 * then nothing to do here except for invoking the calc_sets()
-	 * callback so the device driver can adjust to the situation. If there
-	 * is only a single vector, then managing the queue is pointless as
-	 * well.
+	 * callback so the device driver can adjust to the situation.
 	 */
-	if (nvecs > 1 && nvecs > affd->pre_vectors + affd->post_vectors)
+	if (nvecs > affd->pre_vectors + affd->post_vectors)
 		affvecs = nvecs - affd->pre_vectors - affd->post_vectors;
 	else
 		affvecs = 0;
lib/test_firmware.c +4 -1
index 83ea6c4e623c..6ca97a63b3d6 100644
@@ -886,8 +886,11 @@ static int __init test_firmware_init(void)
 		return -ENOMEM;
 
 	rc = __test_firmware_config_init();
-	if (rc)
+	if (rc) {
+		kfree(test_fw_config);
+		pr_err("could not init firmware test config: %d\n", rc);
 		return rc;
+	}
 
 	rc = misc_register(&test_fw_misc_device);
 	if (rc) {
mm/vmalloc.c +9 -0
index 0f76cca32a1c..080d30408ce3 100644
@@ -1213,6 +1213,12 @@ static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end)
 	if (unlikely(valist == NULL))
 		return false;
 
+	/*
+	 * First make sure the mappings are removed from all page-tables
+	 * before they are freed.
+	 */
+	vmalloc_sync_all();
+
 	/*
 	 * TODO: to calculate a flush range without looping.
 	 * The list can be up to lazy_max_pages() elements.
@@ -3001,6 +3007,9 @@ EXPORT_SYMBOL(remap_vmalloc_range);
 /*
  * Implement a stub for vmalloc_sync_all() if the architecture chose not to
  * have one.
+ *
+ * The purpose of this function is to make sure the vmalloc area
+ * mappings are identical in all page-tables in the system.
  */
 void __weak vmalloc_sync_all(void)
 {
net/ipv4/netfilter/ipt_rpfilter.c +1 -0
index 59031670b16a..cc23f1ce239c 100644
@@ -78,6 +78,7 @@ static bool rpfilter_mt(const struct sk_buff *skb, struct xt_action_param *par)
 	flow.flowi4_mark = info->flags & XT_RPFILTER_VALID_MARK ? skb->mark : 0;
 	flow.flowi4_tos = RT_TOS(iph->tos);
 	flow.flowi4_scope = RT_SCOPE_UNIVERSE;
+	flow.flowi4_oif = l3mdev_master_ifindex_rcu(xt_in(par));
 
 	return rpfilter_lookup_reverse(xt_net(par), &flow, xt_in(par), info->flags) ^ invert;
 }
net/ipv6/netfilter/ip6t_rpfilter.c +6 -2
index 6bcaf7357183..d800801a5dd2 100644
@@ -55,7 +55,9 @@ static bool rpfilter_lookup_reverse6(struct net *net, const struct sk_buff *skb,
 	if (rpfilter_addr_linklocal(&iph->saddr)) {
 		lookup_flags |= RT6_LOOKUP_F_IFACE;
 		fl6.flowi6_oif = dev->ifindex;
-	} else if ((flags & XT_RPFILTER_LOOSE) == 0)
+	/* Set flowi6_oif for vrf devices to lookup route in l3mdev domain. */
+	} else if (netif_is_l3_master(dev) || netif_is_l3_slave(dev) ||
+		  (flags & XT_RPFILTER_LOOSE) == 0)
 		fl6.flowi6_oif = dev->ifindex;
 
 	rt = (void *)ip6_route_lookup(net, &fl6, skb, lookup_flags);
@@ -70,7 +72,9 @@ static bool rpfilter_lookup_reverse6(struct net *net, const struct sk_buff *skb,
 		goto out;
 	}
 
-	if (rt->rt6i_idev->dev == dev || (flags & XT_RPFILTER_LOOSE))
+	if (rt->rt6i_idev->dev == dev ||
+	    l3mdev_master_ifindex_rcu(rt->rt6i_idev->dev) == dev->ifindex ||
+	    (flags & XT_RPFILTER_LOOSE))
 		ret = true;
  out:
 	ip6_rt_put(rt);
net/mac80211/cfg.c +6 -2
index a1973a26c7fc..b8288125e05d 100644
@@ -935,8 +935,10 @@ static int ieee80211_assign_beacon(struct ieee80211_sub_if_data *sdata,
 
 	err = ieee80211_set_probe_resp(sdata, params->probe_resp,
 				       params->probe_resp_len, csa);
-	if (err < 0)
+	if (err < 0) {
+		kfree(new);
 		return err;
+	}
 	if (err == 0)
 		changed |= BSS_CHANGED_AP_PROBE_RESP;
 
@@ -948,8 +950,10 @@ static int ieee80211_assign_beacon(struct ieee80211_sub_if_data *sdata,
 							 params->civicloc,
 							 params->civicloc_len);
 
-		if (err < 0)
+		if (err < 0) {
+			kfree(new);
 			return err;
+		}
 
 		changed |= BSS_CHANGED_FTM_RESPONDER;
 	}
net/mac80211/driver-ops.c +9 -4
index acd4afb4944b..c9a8a2433e8a 100644
@@ -187,11 +187,16 @@ int drv_conf_tx(struct ieee80211_local *local,
 	if (!check_sdata_in_driver(sdata))
 		return -EIO;
 
-	if (WARN_ONCE(params->cw_min == 0 ||
-		      params->cw_min > params->cw_max,
-		      "%s: invalid CW_min/CW_max: %d/%d\n",
-		      sdata->name, params->cw_min, params->cw_max))
+	if (params->cw_min == 0 || params->cw_min > params->cw_max) {
+		/*
+		 * If we can't configure hardware anyway, don't warn. We may
+		 * never have initialized the CW parameters.
+		 */
+		WARN_ONCE(local->ops->conf_tx,
+			  "%s: invalid CW_min/CW_max: %d/%d\n",
+			  sdata->name, params->cw_min, params->cw_max);
 		return -EINVAL;
+	}
 
 	trace_drv_conf_tx(local, sdata, ac, params);
 	if (local->ops->conf_tx)
net/mac80211/mlme.c +10 -0
index 379d2ab6d327..36b60f39930b 100644
@@ -2041,6 +2041,16 @@ ieee80211_sta_wmm_params(struct ieee80211_local *local,
 		ieee80211_regulatory_limit_wmm_params(sdata, &params[ac], ac);
 	}
 
+	/* WMM specification requires all 4 ACIs. */
+	for (ac = 0; ac < IEEE80211_NUM_ACS; ac++) {
+		if (params[ac].cw_min == 0) {
[… more lines in the raw message]

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

net/netfilter/nf_conntrack_proto_tcp.c +5 -3
index 1e2cc83ff5da..ae1f8c6b3a97 100644

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

net/netfilter/nfnetlink.c +1 -1
index 92077d459109..4abbb452cf6c 100644

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

net/netfilter/nft_chain_nat.c +3 -0
index 2f89bde3c61c..ff9ac8ae0031 100644

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

net/netfilter/nft_hash.c +1 -1
index fe93e731dc7f..b836d550b919 100644

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

net/netfilter/nft_redir.c +1 -1
index 8487eeff5c0e..43eeb1f609f1 100644

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

scripts/gen_compile_commands.py +2 -2
index 7915823b92a5..c458696ef3a7 100755

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

scripts/sphinx-pre-install +55 -19

74 lines not on this page · raw message

sound/core/compress_offload.c +49 -11

60 lines not on this page · raw message

sound/firewire/packets-buffer.c +1 -1
index 0d35359d25cd..0ecafd0c6722 100644

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

sound/pci/hda/hda_controller.c +9 -4
index 232a1926758a..dd96def48a3a 100644

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

sound/pci/hda/hda_controller.h +1 -1
index 3aa5c957ffbf..863695d025af 100644

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

sound/pci/hda/hda_intel.c +62 -1

63 lines not on this page · raw message

sound/sound_core.c +2 -1
index b730d97c4de6..90d118cd9164 100644

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

sound/usb/hiface/pcm.c +8 -3
index 14fc1e1d5d13..c406497c5919 100644

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

sound/usb/stream.c +1 -0
index 7ee9d17d0143..e852c7fd6109 100644

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

tools/perf/arch/s390/util/machine.c +30 -1
index a19690a17291..c8c86a0c9b79 100644

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

tools/perf/builtin-probe.c +10 -0
index 8bb124e55c6d..2c376f5b2120 100644

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

tools/perf/builtin-script.c +1 -1
index d089eb706d18..4380474c8c35 100644

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

tools/perf/builtin-stat.c +8 -1
index e28002d90573..c6c550dbb947 100644

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

tools/perf/util/evsel.c +2 -0
index 2c46f9aa416c..b854541604df 100644

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

tools/perf/util/header.c +1 -1
index b82d4577d969..e84b70be3fc1 100644

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

tools/perf/util/machine.c +2 -1
index dc7aafe45a2b..081fe4bdebaa 100644

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

tools/perf/util/machine.h +1 -1
index f70ab98a7bde..7aa38da26427 100644

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

tools/perf/util/session.c +14 -8
index 2e61dd6a3574..d78984096044 100644

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

tools/perf/util/session.h +1 -0
index dd8920b745bc..863dbad87849 100644

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

tools/perf/util/symbol.c +6 -1
index 5cbad55cd99d..3b49eb4e3ed9 100644

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

tools/perf/util/symbol.h +1 -0
index 9a8fe012910a..f30ab608ea54 100644

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

tools/perf/util/thread.c +11 -1
index b413ba5b9835..4a9f88d9b7ab 100644

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

tools/perf/util/zstd.c +2 -2
index 23bdb9884576..d2202392ffdb 100644

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

virt/kvm/arm/arm.c +11 -0
index bd5c55916d0d..9b778c51af1b 100644

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

virt/kvm/arm/vgic/vgic-v2.c +8 -1
index 6dd5ad706c92..96aab77d0471 100644

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

virt/kvm/arm/vgic/vgic-v3.c +6 -1
index c2c9ce009f63..0c653a1e5215 100644

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

virt/kvm/arm/vgic/vgic.c +11 -0
index 04786c8ec77e..13d4b38a94ec 100644

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

virt/kvm/arm/vgic/vgic.h +2 -0
index 57205beaa981..11adbdac1d56 100644

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

virt/kvm/kvm_main.c +24 -1
index e629766f0ec8..7e0d18ac62bf 100644

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

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

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

#2 lore raw
In reply to Greg KH

Thanks, a bunch Greg! :)

Quoted 520 lines · Greg KH

I'm announcing the release of the 5.2.9 kernel.

All users of the 5.2 kernel series must upgrade.

The updated 5.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.2.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

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

Makefile                                                  |    2
arch/arm/boot/dts/bcm47094-linksys-panamera.dts           |    3
arch/arm/boot/dts/imx6ul-14x14-evk.dtsi                   |    2
arch/arm/boot/dts/imx6ul-geam.dts                         |    2
arch/arm/boot/dts/imx6ul-isiot.dtsi                       |    2
arch/arm/boot/dts/imx6ul-pico-hobbit.dts                  |    2
arch/arm/boot/dts/imx6ul-pico-pi.dts                      |    4
arch/arm/mach-davinci/sleep.S                             |    1
arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h            |    4
arch/arm64/boot/dts/freescale/imx8mq.dtsi                 |    3
arch/arm64/include/asm/processor.h                        |   14 +
arch/arm64/kernel/entry.S                                 |   22 +
arch/arm64/kernel/process.c                               |   29 ++
arch/powerpc/kvm/powerpc.c                                |    5
arch/powerpc/mm/mem.c                                     |    2
arch/powerpc/platforms/pseries/papr_scm.c                 |   15 +
arch/s390/include/asm/page.h                              |    2
arch/x86/boot/string.c                                    |    8
arch/x86/events/intel/core.c                              |    7
arch/x86/events/intel/ds.c                                |    2
arch/x86/include/asm/kvm_host.h                           |    1
arch/x86/kvm/svm.c                                        |   10
arch/x86/kvm/vmx/vmx.c                                    |    6
arch/x86/kvm/x86.c                                        |   16 +
arch/x86/mm/fault.c                                       |   15 -
arch/x86/purgatory/Makefile                               |   36 ++-
arch/x86/purgatory/purgatory.c                            |    6
arch/x86/purgatory/string.c                               |   23 -
block/blk-rq-qos.c                                        |    6
drivers/acpi/arm64/iort.c                                 |    4
drivers/base/platform.c                                   |    9
drivers/block/drbd/drbd_receiver.c                        |   14 +
drivers/block/loop.c                                      |    2
drivers/cpufreq/pasemi-cpufreq.c                          |   23 -
drivers/crypto/ccp/ccp-crypto-aes-galois.c                |   14 +
drivers/crypto/ccp/ccp-ops.c                              |   33 ++
drivers/firmware/Kconfig                                  |    5
drivers/firmware/iscsi_ibft.c                             |    4
drivers/gpu/drm/amd/display/dc/core/dc.c                  |    6
drivers/gpu/drm/amd/display/dc/core/dc_link.c             |    9
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c          |    9
drivers/gpu/drm/amd/display/dc/core/dc_resource.c         |   11
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c              |    4
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c |   21 -
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c     |    2
drivers/gpu/drm/amd/display/dc/inc/core_types.h           |    2
drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h         |    1
drivers/gpu/drm/drm_framebuffer.c                         |    2
drivers/gpu/drm/i915/vlv_dsi_pll.c                        |    4
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c               |    3
drivers/hid/hid-sony.c                                    |   15 +
drivers/hwmon/lm75.c                                      |    2
drivers/hwmon/nct6775.c                                   |    3
drivers/hwmon/nct7802.c                                   |    6
drivers/hwmon/occ/common.c                                |    6
drivers/hwtracing/coresight/coresight-etm-perf.c          |    1
drivers/iio/accel/cros_ec_accel_legacy.c                  |    1
drivers/iio/adc/ingenic-adc.c                             |   54 ++++
drivers/iio/adc/max9611.c                                 |    2
drivers/iio/adc/rcar-gyroadc.c                            |    4
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c                |   43 +++
drivers/input/mouse/elantech.c                            |   54 ++--
drivers/input/mouse/synaptics.c                           |    1
drivers/input/touchscreen/usbtouchscreen.c                |    2
drivers/iommu/intel-iommu.c                               |    8
drivers/mmc/host/cavium.c                                 |    4
drivers/net/can/flexcan.c                                 |   39 ++-
drivers/net/can/rcar/rcar_canfd.c                         |    9
drivers/net/can/usb/peak_usb/pcan_usb_core.c              |    8
drivers/net/can/usb/peak_usb/pcan_usb_fd.c                |    2
drivers/net/can/usb/peak_usb/pcan_usb_pro.c               |    2
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c      |    3
drivers/net/wireless/intel/iwlwifi/mvm/fw.c               |   29 +-
drivers/net/wireless/intel/iwlwifi/mvm/tx.c               |    3
drivers/net/wireless/intel/iwlwifi/pcie/tx.c              |    2
drivers/net/wireless/marvell/mwifiex/main.h               |    1
drivers/net/wireless/marvell/mwifiex/scan.c               |    3
drivers/nvme/host/core.c                                  |   12 -
drivers/nvme/host/pci.c                                   |    2
drivers/pci/pci.c                                         |   29 --
drivers/pci/pci.h                                         |    1
drivers/pci/pcie/portdrv_core.c                           |   66 -----
drivers/s390/cio/qdio_main.c                              |   12 -
drivers/s390/cio/vfio_ccw_cp.c                            |    4
drivers/s390/cio/vfio_ccw_drv.c                           |    2
drivers/scsi/device_handler/scsi_dh_alua.c                |    7
drivers/scsi/ibmvscsi/ibmvfc.c                            |    2
drivers/scsi/megaraid/megaraid_sas_base.c                 |    3
drivers/staging/android/ion/ion_page_pool.c               |    3
drivers/staging/fbtft/fbtft-core.c                        |   43 +--
drivers/staging/gasket/apex_driver.c                      |    2
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c         |    1
drivers/tty/tty_ldsem.c                                   |    5
drivers/usb/core/devio.c                                  |    2
drivers/usb/host/xhci-rcar.c                              |    9
drivers/usb/misc/iowarrior.c                              |    7
drivers/usb/misc/rio500.c                                 |   43 ++-
drivers/usb/misc/yurex.c                                  |    2
drivers/usb/typec/tcpm/tcpm.c                             |   58 +++-
drivers/usb/typec/ucsi/ucsi_ccg.c                         |    2
fs/block_dev.c                                            |    5
fs/cifs/smb2pdu.c                                         |    7
fs/dax.c                                                  |    2
fs/gfs2/bmap.c                                            |  164 ++++++++------
fs/nfs/delegation.c                                       |    2
fs/nfs/delegation.h                                       |    2
fs/nfs/nfs4proc.c                                         |   39 +--
include/kvm/arm_vgic.h                                    |    1
include/linux/ccp.h                                       |    2
include/linux/kvm_host.h                                  |    1
include/sound/compress_driver.h                           |    5
include/uapi/linux/nl80211.h                              |    2
kernel/events/core.c                                      |    2
kernel/irq/affinity.c                                     |    6
lib/test_firmware.c                                       |    5
mm/vmalloc.c                                              |    9
net/ipv4/netfilter/ipt_rpfilter.c                         |    1
net/ipv6/netfilter/ip6t_rpfilter.c                        |    8
net/mac80211/cfg.c                                        |    8
net/mac80211/driver-ops.c                                 |   13 -
net/mac80211/mlme.c                                       |   10
net/netfilter/nf_conntrack_proto_tcp.c                    |    8
net/netfilter/nfnetlink.c                                 |    2
net/netfilter/nft_chain_nat.c                             |    3
net/netfilter/nft_hash.c                                  |    2
net/netfilter/nft_redir.c                                 |    2
scripts/gen_compile_commands.py                           |    4
scripts/sphinx-pre-install                                |   74 ++++--
sound/core/compress_offload.c                             |   60 ++++-
sound/firewire/packets-buffer.c                           |    2
sound/pci/hda/hda_controller.c                            |   13 -
sound/pci/hda/hda_controller.h                            |    2
sound/pci/hda/hda_intel.c                                 |   63 +++++
sound/sound_core.c                                        |    3
sound/usb/hiface/pcm.c                                    |   11
sound/usb/stream.c                                        |    1
tools/perf/arch/s390/util/machine.c                       |   31 ++
tools/perf/builtin-probe.c                                |   10
tools/perf/builtin-script.c                               |    2
tools/perf/builtin-stat.c                                 |    9
tools/perf/util/evsel.c                                   |    2
tools/perf/util/header.c                                  |    2
tools/perf/util/machine.c                                 |    3
tools/perf/util/machine.h                                 |    2
tools/perf/util/session.c                                 |   22 +
tools/perf/util/session.h                                 |    1
tools/perf/util/symbol.c                                  |    7
tools/perf/util/symbol.h                                  |    1
tools/perf/util/thread.c                                  |   12 -
tools/perf/util/zstd.c                                    |    4
virt/kvm/arm/arm.c                                        |   11
virt/kvm/arm/vgic/vgic-v2.c                               |    9
virt/kvm/arm/vgic/vgic-v3.c                               |    7
virt/kvm/arm/vgic/vgic.c                                  |   11
virt/kvm/arm/vgic/vgic.h                                  |    2
virt/kvm/kvm_main.c                                       |   25 ++
156 files changed, 1222 insertions(+), 551 deletions(-)

Adham Abozaeid (1):
staging: wilc1000: flush the workqueue before deinit the host

Adrian Hunter (1):
perf db-export: Fix thread__exec_comm()

Alexey Budankov (1):
perf session: Fix loading of compressed data split across adjacent records

Alvin Lee (1):
drm/amd/display: Only enable audio if speaker allocation exists

Andi Kleen (1):
perf script: Fix off by one in brstackinsn IPC computation

Andrea Arcangeli (1):
powerpc: fix off by one in max_zone_pfn initialization for ZONE_DMA

Andreas Gruenbacher (1):
gfs2: gfs2_walk_metadata fix

Anson Huang (1):
arm64: dts: imx8mm: Correct SAI3 RXC/TXFS pin's mux option #1

Arnaldo Carvalho de Melo (1):
perf probe: Avoid calling freeing routine multiple times for same pointer

Arnd Bergmann (4):
iio: adc: gyroadc: fix uninitialized return code
drbd: dynamically allocate shash descriptor
ARM: davinci: fix sleep.S build error on ARMv4
ARM: dts: bcm: bcm47094: add missing #cells for mdio-bus-mux

Björn Gerhart (1):
hwmon: (nct6775) Fix register address and added missed tolerance for nct6106

Brian Norris (4):
driver core: platform: return -ENXIO for missing GpioInt
mac80211: don't warn about CW params when not using them
mac80211: don't WARN on short WMM parameters from AP
mwifiex: fix 802.11n/WPA detection

Charles Keepax (4):
ALSA: compress: Fix regression on compressed capture streams
ALSA: compress: Prevent bypasses of set_params
ALSA: compress: Don't allow paritial drain operations on capture streams
ALSA: compress: Be more restrictive about when a drain is allowed

Christian Hesse (1):
netfilter: nf_tables: fix module autoload for redir

Derek Lai (1):
drm/amd/display: allocate 4 ddc engines for RV2

Dmitry Safonov (1):

     iommu/vt-d: Check if domain->pgd was allocated

Dmitry Torokhov (1):
Input: synaptics - enable RMI mode for HP Spectre X360

Emmanuel Grumbach (3):
iwlwifi: don't unmap as page memory that was mapped as single
iwlwifi: mvm: fix an out-of-bound access
iwlwifi: mvm: fix a use-after-free bug in iwl_mvm_tx_tso_segment

Eric Yang (1):
drm/amd/display: put back front end initialization sequence

Farhan Ali (2):
vfio-ccw: Set pa_nr to 0 if memory allocation fails for pa_iova_pfn
vfio-ccw: Don't call cp_free if we are processing a channel program

Florian Westphal (2):
netfilter: nfnetlink: avoid deadlock due to synchronous request_module
netfilter: conntrack: always store window size un-scaled

Gary R Hook (3):
crypto: ccp - Fix oops by properly managing allocated structures
crypto: ccp - Add support for valid authsize values less than 16
crypto: ccp - Ignore tag length when decrypting GCM ciphertext

Gavin Li (1):
usb: usbfs: fix double-free of usb memory upon submiturb error

Greg Kroah-Hartman (1):

     Linux 5.2.9

Guenter Roeck (3):
usb: typec: tcpm: Add NULL check before dereferencing config
usb: typec: tcpm: Ignore unsupported/unknown alternate mode requests
hwmon: (nct7802) Fix wrong detection of in4 presence

Gwendal Grignou (1):
iio: cros_ec_accel_legacy: Fix incorrect channel setting

Halil Pasic (1):
s390/dma: provide proper ARCH_ZONE_DMA_BITS value

Hannes Reinecke (1):
scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG

Harmanprit Tatla (1):
drm/amd/display: No audio endpoint for Dell MST display

Heikki Krogerus (1):
usb: typec: ucsi: ccg: Fix uninitilized symbol error

Iker Perez del Palomar Sustatxa (1):
hwmon: (lm75) Fixup tmp75b clr_mask

Ivan Bornyakov (1):
staging: gasket: apex: fix copy-paste typo

James Morse (1):
arm64: entry: SP Alignment Fault doesn't write to FAR_EL1

Jan Kara (1):
bdev: Fixup error handling in blkdev_get()

Jean-Baptiste Maneyrol (1):
iio: imu: mpu6050: add missing available scan masks

Jiri Olsa (2):
perf tools: Fix proper buffer size for feature processing perf stat: Fix segfault for event group in repeat mode

Joakim Zhang (1):
can: flexcan: fix stop mode acknowledgment

Joe Perches (1):
iio: adc: max9611: Fix misuse of GENMASK macro

Joerg Roedel (3):
x86/mm: Check for pfn instead of page in vmalloc_sync_one() x86/mm: Sync also unmappings in vmalloc_sync_all() mm/vmalloc: Sync unmappings in __purge_vmap_area_lazy()

John Crispin (1):

     nl80211: fix NL80211_HE_MAX_CAPABILITY_LEN

Josef Bacik (3):
rq-qos: don't reset has_sleepers on spurious wakeups
rq-qos: set ourself TASK_UNINTERRUPTIBLE after we schedule
rq-qos: use a mb for got_token

Julian Parkin (1):
drm/amd/display: Fix dc_create failure handling and 666 color depths

Julian Wiedmann (1):
s390/qdio: add sanity checks to the fast-requeue path

Junxiao Bi (1):
scsi: megaraid_sas: fix panic on loading firmware crashdump

Kai-Heng Feng (1):
Input: elantech - enable SMBus on new (2018+) systems

Kan Liang (1):
perf/x86/intel: Fix SLOTS PEBS event constraint

Kevin Hao (2):
mmc: cavium: Set the correct dma max segment size for mmc_host
mmc: cavium: Add the missing dma unmap when the dma has finished.

Laura Garcia Liebana (1):
netfilter: nft_hash: fix symhash with modulus one

Lei YU (1):
hwmon: (occ) Fix division by zero issue

Leonard Crestez (1):

     perf/core: Fix creating kernel counters for PMUs that override event->cpu

Li Jun (2):
usb: typec: tcpm: free log buf memory when remove debug file
usb: typec: tcpm: remove tcpm dir if no children

Logan Gunthorpe (1):
nvme: fix memory leak caused by incorrect subsystem free

Lorenzo Bianconi (1):
mac80211: fix possible memory leak in ieee80211_assign_beacon

Lorenzo Pieralisi (1):
ACPI/IORT: Fix off-by-one check in iort_dev_find_its_id()

Luca Coelho (2):
iwlwifi: mvm: don't send GEO_TX_POWER_LIMIT on version < 41
iwlwifi: mvm: fix version check for GEO_TX_POWER_LIMIT support

Lucas Stach (1):
arm64: dts: imx8mq: fix SAI compatible

Maarten ter Huurne (1):
IIO: Ingenic JZ47xx: Set clock divider on probe

Marc Zyngier (2):
arm64: Force SSBS on context switch
KVM: arm/arm64: Sync ICH_VMCR_EL2 back when about to block

Masahiro Yamada (1):
gen_compile_commands: lower the entry count threshold

Mauro Carvalho Chehab (3):
scripts/sphinx-pre-install: fix script for RHEL/CentOS scripts/sphinx-pre-install: don't use LaTeX with CentOS 7 scripts/sphinx-pre-install: fix latexmk dependencies

Miaohe Lin (1):
netfilter: Fix rpfilter dropping vrf packets by mistake

Mika Westerberg (1):
Revert "PCI: Add missing link delays required by the PCIe spec"

Mikulas Patocka (1):
loop: set PF_MEMALLOC_NOIO for the worker thread

Ming Lei (1):
genirq/affinity: Create affinity mask for single vector

Misha Nasledov (1):
nvme: ignore subnqn for ADATA SX6000LNP

Murton Liu (1):
drm/amd/display: Clock does not lower in Updateplanes

Navid Emamdoost (1):
allocate_flower_entry: should check for null deref

Nick Desaulniers (2):
x86/purgatory: Do not use __builtin_memcpy and __builtin_memset x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS

Nikita Yushchenko (1):
can: rcar_canfd: fix possible IRQ storm on high load

Oliver Neukum (3):
Revert "USB: rio500: simplify locking"
usb: iowarrior: fix deadlock on disconnect
Input: usbtouchscreen - initialize PM mutex before using it

Pavel Shilovsky (1):
SMB3: Fix deadlock in validate negotiate hits reconnect

Peter Zijlstra (1):
tty/ldsem, locking/rwsem: Add missing ACQUIRE to read_failed sleep loop

Phil Reid (2):
Staging: fbtft: Fix probing of gpio descriptor
Staging: fbtft: Fix reset assertion when using gpio descriptor

Phil Sutter (1):
netfilter: nf_tables: Support auto-loading for inet nat

Qian Cai (1):
drm: silence variable 'conn' set but not used

Roderick Colenbrander (1):
HID: sony: Fix race condition between rumble and device remove.

Shubhashree Dhar (1):
drm/msm/dpu: Correct dpu encoder spinlock initialization

SivapiriyanKumarasamy (1):
drm/amd/display: Wait for backlight programming completion in set backlight level

Stanislav Lisovskiy (1):
drm/i915: Fix wrong escape clock divisor init for GLK

Stephane Grosjean (1):
can: peak_usb: fix potential double kfree_skb()

Steve French (1):
smb3: send CAP_DFS capability during session setup

Suzuki K Poulose (2):
coresight: Fix DEBUG_LOCKS_WARN_ON for uninitialized attribute
usb: yurex: Fix use-after-free in yurex_delete

Sébastien Szymanski (1):
ARM: dts: imx6ul: fix clock frequency property name of I2C buses

Tai Man (2):
drm/amd/display: use encoder's engine id to find matched free audio device drm/amd/display: Increase size of audios array

Takashi Iwai (2):
ALSA: hda - Don't override global PCM hw info flag
ALSA: hda - Workaround for crackled sound on AMD controller (1022:1457)

Tetsuo Handa (1):
staging: android: ion: Bail out upon SIGKILL when allocating memory.

Thomas Richter (2):
perf annotate: Fix s390 gap between kernel end and module start perf record: Fix module size on s390

Thomas Tai (1):
iscsi_ibft: make ISCSI_IBFT dependson ACPI instead of ISCSI_IBFT_FIND

Tomas Bortoli (2):
can: peak_usb: pcan_usb_pro: Fix info-leaks to USB devices
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices

Trond Myklebust (3):
NFSv4: Fix delegation state recovery
NFSv4: Check the return value of update_open_stateid()
NFSv4: Fix an Oops in nfs4_do_setattr

Tyrel Datwyler (1):
scsi: ibmvfc: fix WARN_ON during event pool release

Vaibhav Jain (1):
powerpc/papr_scm: Force a scm-unbind if initial scm-bind fails

Vitaly Kuznetsov (1):
KVM/nSVM: properly map nested VMCB

Vivek Goyal (1):
dax: dax_layout_busy_page() should not unmap cow pages

Wanpeng Li (1):
KVM: Fix leak vCPU's VMCS value into other pCPU

Wen Yang (2):
can: flexcan: fix an use-after-free in flexcan_setup_stop_mode() cpufreq/pasemi: fix use-after-free in pas_cpufreq_cpu_init()

Wenwen Wang (5):
sound: fix a memory leak bug
test_firmware: fix a memory leak bug
ALSA: usb-audio: fix a memory leak bug
ALSA: firewire: fix a memory leak bug
ALSA: hiface: fix multiple memory leak bugs

Yoshihiro Shimoda (1):
usb: host: xhci-rcar: Fix timeout in xhci_suspend()

Yunying Sun (1):
perf/x86/intel: Fix invalid Bit 13 for Icelake MSR_OFFCORE_RSP_x register

Zhenzhong Duan (1):
perf/x86: Apply more accurate check on hypervisor platform

Zi Yu Liao (1):
drm/amd/display: fix DMCU hang when going into Modern Standby