Skip to contentSkip to conversation

Linux 4.19.47

DISCUSSION Greg KH 1 participant 2 messages May 31, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 4.19.47 kernel.

All users of the 4.19 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/arm64/silicon-errata.txt                             |    1 
 Documentation/sysctl/net.txt                                       |    8 
 Makefile                                                           |    2 
 arch/arm/include/asm/cp15.h                                        |    2 
 arch/arm/vdso/vgettimeofday.c                                      |    5 
 arch/arm64/Kconfig                                                 |   18 ++
 arch/arm64/include/asm/cpucaps.h                                   |    3 
 arch/arm64/include/asm/cputype.h                                   |    2 
 arch/arm64/include/asm/pgtable.h                                   |    3 
 arch/arm64/include/asm/vdso_datapage.h                             |    1 
 arch/arm64/kernel/asm-offsets.c                                    |    2 
 arch/arm64/kernel/cpu_errata.c                                     |   24 ++
 arch/arm64/kernel/cpu_ops.c                                        |    1 
 arch/arm64/kernel/kaslr.c                                          |    6 
 arch/arm64/kernel/module.c                                         |    2 
 arch/arm64/kernel/syscall.c                                        |   31 +++
 arch/arm64/kernel/vdso.c                                           |    3 
 arch/arm64/kernel/vdso/gettimeofday.S                              |    7 
 arch/arm64/mm/dma-mapping.c                                        |   10 +
 arch/arm64/mm/fault.c                                              |   37 ++++
 arch/powerpc/boot/addnote.c                                        |    6 
 arch/powerpc/kernel/head_64.S                                      |    4 
 arch/powerpc/kernel/watchdog.c                                     |   81 ++++------
 arch/powerpc/mm/numa.c                                             |   18 +-
 arch/powerpc/perf/imc-pmu.c                                        |    7 
 arch/powerpc/platforms/powernv/opal-imc.c                          |    2 
 arch/s390/kernel/kexec_elf.c                                       |    7 
 arch/s390/mm/pgtable.c                                             |    2 
 arch/sh/include/cpu-sh4/cpu/sh7786.h                               |    2 
 arch/x86/Makefile                                                  |    2 
 arch/x86/events/intel/cstate.c                                     |    2 
 arch/x86/events/intel/rapl.c                                       |    2 
 arch/x86/events/msr.c                                              |    1 
 arch/x86/ia32/ia32_signal.c                                        |   29 ++-
 arch/x86/include/asm/text-patching.h                               |    4 
 arch/x86/kernel/alternative.c                                      |   28 ++-
 arch/x86/kernel/cpu/mcheck/mce-inject.c                            |   14 -
 arch/x86/kernel/cpu/mcheck/mce.c                                   |   66 +++++---
 arch/x86/kernel/cpu/microcode/core.c                               |    3 
 arch/x86/kernel/irq_64.c                                           |   19 +-
 arch/x86/kernel/module.c                                           |    2 
 arch/x86/kernel/signal.c                                           |   29 ++-
 arch/x86/kernel/vmlinux.lds.S                                      |    6 
 arch/x86/kvm/svm.c                                                 |    6 
 arch/x86/kvm/x86.c                                                 |    2 
 arch/x86/lib/memcpy_64.S                                           |    3 
 arch/x86/mm/fault.c                                                |    2 
 block/genhd.c                                                      |   19 ++
 block/partition-generic.c                                          |    7 
 block/sed-opal.c                                                   |    9 -
 drivers/acpi/arm64/iort.c                                          |   19 +-
 drivers/acpi/property.c                                            |    8 
 drivers/base/power/main.c                                          |    4 
 drivers/bluetooth/hci_qca.c                                        |    2 
 drivers/char/hw_random/omap-rng.c                                  |    1 
 drivers/char/random.c                                              |   57 +++----
 drivers/char/virtio_console.c                                      |    3 
 drivers/clk/rockchip/clk-rk3288.c                                  |   21 +-
 drivers/cpufreq/cpufreq.c                                          |    1 
 drivers/cpufreq/cpufreq_governor.c                                 |    2 
 drivers/cpufreq/kirkwood-cpufreq.c                                 |   19 +-
 drivers/cpufreq/pasemi-cpufreq.c                                   |    1 
 drivers/cpufreq/pmac32-cpufreq.c                                   |    2 
 drivers/cpufreq/ppc_cbe_cpufreq.c                                  |    1 
 drivers/crypto/sunxi-ss/sun4i-ss-hash.c                            |    5 
 drivers/crypto/vmx/aesp8-ppc.pl                                    |    2 
 drivers/dma/at_xdmac.c                                             |    6 
 drivers/dma/pl330.c                                                |   10 -
 drivers/dma/tegra210-adma.c                                        |   28 +--
 drivers/extcon/extcon-arizona.c                                    |   10 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c                          |   24 ++
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c                  |    3 
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c                  |    6 
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c              |   20 +-
 drivers/gpu/drm/drm_drv.c                                          |    5 
 drivers/gpu/drm/drm_file.c                                         |    1 
 drivers/gpu/drm/etnaviv/etnaviv_drv.c                              |    5 
 drivers/gpu/drm/etnaviv/etnaviv_drv.h                              |    1 
 drivers/gpu/drm/msm/adreno/a5xx_gpu.c                              |   10 -
 drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c                     |   12 +
 drivers/gpu/drm/omapdrm/dss/dsi.c                                  |   60 +++----
 drivers/gpu/drm/panel/panel-orisetech-otm8009a.c                   |    3 
 drivers/gpu/drm/pl111/pl111_versatile.c                            |    4 
 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c                             |    8 
 drivers/gpu/drm/tinydrm/ili9225.c                                  |    6 
 drivers/gpu/drm/tinydrm/mipi-dbi.c                                 |   58 +++++--
 drivers/gpu/drm/v3d/v3d_drv.c                                      |    8 
 drivers/gpu/drm/v3d/v3d_drv.h                                      |    2 
 drivers/gpu/drm/v3d/v3d_irq.c                                      |   13 +
 drivers/hid/hid-core.c                                             |   36 ++--
 drivers/hid/hid-logitech-hidpp.c                                   |   23 ++
 drivers/hwmon/f71805f.c                                            |   15 +
 drivers/hwmon/pc87427.c                                            |   14 +
 drivers/hwmon/smsc47b397.c                                         |   13 +
 drivers/hwmon/smsc47m1.c                                           |   28 ++-
 drivers/hwmon/vt1211.c                                             |   15 +
 drivers/iio/adc/Kconfig                                            |    1 
 drivers/iio/adc/ad_sigma_delta.c                                   |   16 +
 drivers/iio/adc/ti-ads7950.c                                       |   19 +-
 drivers/iio/common/ssp_sensors/ssp_iio.c                           |    2 
 drivers/iio/magnetometer/hmc5843_i2c.c                             |    7 
 drivers/iio/magnetometer/hmc5843_spi.c                             |    7 
 drivers/infiniband/core/cma.c                                      |   25 ++-
 drivers/infiniband/hw/cxgb4/cm.c                                   |    2 
 drivers/infiniband/hw/hfi1/init.c                                  |    3 
 drivers/infiniband/hw/hns/hns_roce_ah.c                            |    2 
 drivers/md/bcache/alloc.c                                          |    5 
 drivers/md/bcache/journal.c                                        |   26 ++-
 drivers/md/bcache/super.c                                          |   25 ++-
 drivers/media/common/videobuf2/videobuf2-core.c                    |   22 ++
 drivers/media/dvb-frontends/m88ds3103.c                            |    9 -
 drivers/media/dvb-frontends/si2165.c                               |    8 
 drivers/media/i2c/ov2659.c                                         |    6 
 drivers/media/i2c/ov6650.c                                         |   25 +--
 drivers/media/pci/saa7146/hexium_gemini.c                          |    5 
 drivers/media/pci/saa7146/hexium_orion.c                           |    5 
 drivers/media/platform/coda/coda-bit.c                             |    3 
 drivers/media/platform/stm32/stm32-dcmi.c                          |   20 +-
 drivers/media/platform/video-mux.c                                 |    5 
 drivers/media/platform/vimc/vimc-core.c                            |    2 
 drivers/media/platform/vimc/vimc-streamer.c                        |    2 
 drivers/media/platform/vivid/vivid-vid-cap.c                       |    2 
 drivers/media/radio/wl128x/fmdrv_common.c                          |    7 
 drivers/media/rc/serial_ir.c                                       |    9 -
 drivers/media/usb/au0828/au0828-video.c                            |   16 +
 drivers/media/usb/cpia2/cpia2_v4l.c                                |    3 
 drivers/media/usb/dvb-usb-v2/dvbsky.c                              |   18 +-
 drivers/media/usb/go7007/go7007-fw.c                               |    4 
 drivers/media/usb/gspca/gspca.c                                    |   12 +
 drivers/media/usb/pvrusb2/pvrusb2-hdw.c                            |    2 
 drivers/media/usb/pvrusb2/pvrusb2-hdw.h                            |    1 
 drivers/mmc/core/pwrseq_emmc.c                                     |   38 ++--
 drivers/mmc/core/sd.c                                              |    8 
 drivers/mmc/host/mmc_spi.c                                         |    4 
 drivers/mmc/host/sdhci-iproc.c                                     |    6 
 drivers/mmc/host/sdhci-of-esdhc.c                                  |    8 
 drivers/net/ethernet/amazon/ena/ena_netdev.c                       |    2 
 drivers/net/ethernet/chelsio/cxgb3/l2t.h                           |    2 
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c                    |   15 +
 drivers/net/ethernet/intel/e1000e/netdev.c                         |    2 
 drivers/net/ethernet/intel/i40e/i40e_main.c                        |    8 
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c                 |    6 
 drivers/net/ethernet/intel/igb/igb_main.c                          |    3 
 drivers/net/hyperv/netvsc.c                                        |   15 +
 drivers/net/usb/qmi_wwan.c                                         |   65 +++-----
 drivers/net/wireless/ath/wil6210/cfg80211.c                        |    5 
 drivers/net/wireless/ath/wil6210/wmi.c                             |   11 -
 drivers/net/wireless/atmel/at76c50x-usb.c                          |    4 
 drivers/net/wireless/broadcom/b43/phy_lp.c                         |    6 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c        |    6 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c            |   15 +
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h            |   16 +
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c        |   42 ++---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c          |    2 
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c             |   27 +--
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c          |    5 
 drivers/net/wireless/intel/iwlwifi/pcie/rx.c                       |    7 
 drivers/net/wireless/marvell/mwifiex/cfg80211.c                    |    6 
 drivers/net/wireless/marvell/mwifiex/cfp.c                         |    3 
 drivers/net/wireless/realtek/rtlwifi/base.c                        |    5 
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c                |    2 
 drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c          |    2 
 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c                |    2 
 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c                |    2 
 drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c                |    2 
 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c                |    4 
 drivers/net/wireless/rsi/rsi_91x_mac80211.c                        |   30 ++-
 drivers/net/wireless/st/cw1200/main.c                              |    5 
 drivers/nvdimm/pmem.c                                              |   10 -
 drivers/nvme/host/core.c                                           |    7 
 drivers/nvme/host/rdma.c                                           |   10 -
 drivers/perf/arm-cci.c                                             |   21 +-
 drivers/phy/allwinner/phy-sun4i-usb.c                              |    4 
 drivers/phy/motorola/Kconfig                                       |    2 
 drivers/pinctrl/pinctrl-pistachio.c                                |    2 
 drivers/pinctrl/samsung/pinctrl-exynos-arm.c                       |    1 
 drivers/pinctrl/zte/pinctrl-zx.c                                   |    1 
 drivers/rtc/rtc-88pm860x.c                                         |    2 
 drivers/rtc/rtc-stm32.c                                            |    9 -
 drivers/rtc/rtc-xgene.c                                            |   18 +-
 drivers/s390/cio/cio.h                                             |    2 
 drivers/s390/cio/vfio_ccw_drv.c                                    |   32 ++-
 drivers/s390/cio/vfio_ccw_ops.c                                    |   11 +
 drivers/s390/crypto/zcrypt_api.c                                   |    4 
 drivers/s390/net/qeth_core.h                                       |   10 -
 drivers/s390/net/qeth_core_main.c                                  |   14 +
 drivers/scsi/libsas/sas_expander.c                                 |    5 
 drivers/scsi/lpfc/lpfc_ct.c                                        |   20 +-
 drivers/scsi/lpfc/lpfc_hbadisc.c                                   |   11 +
 drivers/scsi/lpfc/lpfc_nvme.c                                      |    8 
 drivers/scsi/qedf/qedf_io.c                                        |    1 
 drivers/scsi/qedi/qedi_iscsi.c                                     |    3 
 drivers/scsi/qla2xxx/qla_isr.c                                     |    6 
 drivers/scsi/qla2xxx/qla_target.c                                  |   25 ---
 drivers/scsi/qla2xxx/tcm_qla2xxx.c                                 |    7 
 drivers/scsi/qla4xxx/ql4_os.c                                      |    2 
 drivers/scsi/sd.c                                                  |    3 
 drivers/scsi/ufs/ufs-hisi.c                                        |    4 
 drivers/scsi/ufs/ufshcd.c                                          |   28 ++-
 drivers/slimbus/qcom-ngd-ctrl.c                                    |    4 
 drivers/spi/spi-imx.c                                              |    2 
 drivers/spi/spi-pxa2xx.c                                           |    8 
 drivers/spi/spi-rspi.c                                             |    9 -
 drivers/spi/spi-tegra114.c                                         |   32 ++-
 drivers/spi/spi-topcliff-pch.c                                     |   15 +
 drivers/spi/spi.c                                                  |    2 
 drivers/ssb/bridge_pcmcia_80211.c                                  |    9 -
 drivers/staging/media/davinci_vpfe/Kconfig                         |    2 
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c |    3 
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c     |    2 
 drivers/thunderbolt/icm.c                                          |    5 
 drivers/thunderbolt/property.c                                     |   12 +
 drivers/thunderbolt/switch.c                                       |   67 ++++----
 drivers/thunderbolt/tb.h                                           |    3 
 drivers/thunderbolt/xdomain.c                                      |    8 
 drivers/tty/ipwireless/main.c                                      |    8 
 drivers/usb/core/hcd.c                                             |    3 
 drivers/usb/core/hub.c                                             |    5 
 drivers/usb/dwc2/gadget.c                                          |   27 +--
 drivers/usb/dwc3/core.c                                            |    2 
 drivers/usb/dwc3/gadget.c                                          |    2 
 drivers/video/fbdev/core/fbcmap.c                                  |    2 
 drivers/video/fbdev/core/modedb.c                                  |    3 
 drivers/video/fbdev/efifb.c                                        |    3 
 drivers/video/fbdev/udlfb.c                                        |   14 -
 drivers/w1/w1_io.c                                                 |    3 
 fs/btrfs/backref.c                                                 |   19 +-
 fs/btrfs/extent-tree.c                                             |   28 ---
 fs/btrfs/file.c                                                    |   19 +-
 fs/btrfs/relocation.c                                              |   31 ++-
 fs/btrfs/root-tree.c                                               |   17 +-
 fs/btrfs/sysfs.c                                                   |    7 
 fs/btrfs/tree-log.c                                                |    1 
 fs/char_dev.c                                                      |    6 
 fs/ext4/inode.c                                                    |   23 +-
 fs/f2fs/data.c                                                     |   17 +-
 fs/f2fs/f2fs.h                                                     |   13 +
 fs/f2fs/file.c                                                     |    2 
 fs/f2fs/gc.c                                                       |    2 
 fs/f2fs/segment.c                                                  |   13 -
 fs/gfs2/glock.c                                                    |   23 +-
 fs/gfs2/lock_dlm.c                                                 |    9 -
 fs/gfs2/log.c                                                      |    3 
 fs/gfs2/lops.c                                                     |    6 
 fs/internal.h                                                      |    2 
 fs/nfs/client.c                                                    |    7 
 fs/nfs/nfs42proc.c                                                 |    3 
 fs/nfs/nfs4file.c                                                  |   12 -
 fs/overlayfs/dir.c                                                 |    2 
 fs/overlayfs/inode.c                                               |    3 
 include/drm/tinydrm/mipi-dbi.h                                     |    5 
 include/linux/bio.h                                                |    2 
 include/linux/cgroup-defs.h                                        |    5 
 include/linux/filter.h                                             |    2 
 include/linux/genhd.h                                              |    1 
 include/linux/hid.h                                                |    1 
 include/linux/iio/adc/ad_sigma_delta.h                             |    1 
 include/linux/mount.h                                              |    2 
 include/linux/overflow.h                                           |   12 +
 include/linux/smpboot.h                                            |    2 
 include/linux/time64.h                                             |   21 ++
 include/media/videobuf2-core.h                                     |    1 
 include/net/bluetooth/hci.h                                        |    1 
 kernel/acct.c                                                      |    4 
 kernel/auditfilter.c                                               |   12 -
 kernel/bpf/core.c                                                  |   49 +++++-
 kernel/bpf/devmap.c                                                |    3 
 kernel/cgroup/cgroup.c                                             |    6 
 kernel/irq_work.c                                                  |   75 +++++----
 kernel/module.c                                                    |    5 
 kernel/rcu/rcuperf.c                                               |    5 
 kernel/rcu/rcutorture.c                                            |    5 
 kernel/sched/core.c                                                |    9 -
 kernel/sched/fair.c                                                |   16 +
 kernel/sched/rt.c                                                  |    5 
 kernel/time/time.c                                                 |    2 
 kernel/time/timekeeping.c                                          |    6 
 kernel/trace/trace_branch.c                                        |    4 
 lib/kobject_uevent.c                                               |   11 -
 lib/sbitmap.c                                                      |    2 
 lib/strncpy_from_user.c                                            |    5 
 lib/strnlen_user.c                                                 |    4 
 net/batman-adv/distributed-arp-table.c                             |    4 
 net/batman-adv/main.c                                              |    1 
 net/batman-adv/multicast.c                                         |   11 -
 net/batman-adv/types.h                                             |    5 
 net/bluetooth/hci_core.c                                           |    5 
 net/bluetooth/hci_event.c                                          |   12 +
 net/bluetooth/hci_request.c                                        |    5 
 net/bluetooth/hci_request.h                                        |    1 
 net/core/sysctl_net_core.c                                         |   10 -
 net/mac80211/mlme.c                                                |    3 
 net/wireless/nl80211.c                                             |    5 
 security/selinux/netlabel.c                                        |   14 -
 sound/soc/codecs/hdmi-codec.c                                      |    6 
 sound/soc/davinci/davinci-mcasp.c                                  |    2 
 sound/soc/fsl/Kconfig                                              |    9 -
 sound/soc/fsl/eukrea-tlv320.c                                      |    4 
 sound/soc/fsl/fsl_sai.c                                            |    2 
 sound/soc/fsl/fsl_utils.c                                          |    1 
 sound/soc/intel/boards/kbl_da7219_max98357a.c                      |    2 
 tools/bpf/bpftool/.gitignore                                       |    2 
 tools/lib/bpf/bpf.c                                                |    2 
 tools/lib/bpf/bpf.h                                                |    1 
 tools/testing/selftests/bpf/test_libbpf_open.c                     |    2 
 tools/testing/selftests/bpf/trace_helpers.c                        |    4 
 tools/testing/selftests/cgroup/test_memcontrol.c                   |   38 ++--
 307 files changed, 2129 insertions(+), 976 deletions(-)

Adam Ludkiewicz (1):
i40e: Able to add up to 16 MAC filters on an untrusted VF

Aditya Pakki (5):
rsi: Fix NULL pointer dereference in kmalloc
thunderbolt: Fix to check the return value of kmemdup
thunderbolt: Fix to check return value of ida_simple_get
thunderbolt: Fix to check for kmemdup failure spi : spi-topcliff-pch: Fix to handle empty DMA buffers

Akinobu Mita (1):
media: ov2659: make S_FMT succeed even if requested format doesn't match

Al Viro (1):
acct_on(): don't mess with freeze protection

Alan Stern (1):
USB: core: Don't unbind interfaces following device reset failure

Alexander Potapenko (1):

      media: vivid: use vfree() instead of kfree() for dev->bitmap_cap

Alexandre Belloni (1):
rtc: xgene: fix possible race condition

Amir Goldstein (1):
ovl: relax WARN_ON() for overlapping layers use case

Andrea Merello (1):
mmc: core: make pwrseq_emmc (partially) support sleepy GPIO controllers

Andrea Parri (2):
bio: fix improper use of smp_mb__before_atomic()
sbitmap: fix improper use of smp_mb__before_atomic()

Andreas Gruenbacher (2):
gfs2: Fix sign extension bug in gfs2_update_stats
gfs2: Fix occasional glock use-after-free

Anju T Sudhakar (2):
powerpc/perf: Return accordingly on invalid chip-id in powerpc/perf: Fix loop exit condition in nest_imc_event_init

Ard Biesheuvel (2):
arm64/kernel: kaslr: reduce module randomization range to 2 GB
efifb: Omit memory map check on legacy boot

Arend van Spriel (2):
brcmfmac: assure SSID length from firmware is limited
brcmfmac: add subtype check for event handling in data path

Arnd Bergmann (14):
ASoC: imx: fix fiq dependencies
s390: qeth: address type mismatch warning
bcache: avoid clang -Wunintialized warning
phy: mapphone-mdm6600: add gpiolib dependency
s390: zcrypt: initialize variables before_use
s390: cio: fix cio_irb declaration
b43: shut up clang -Wuninitialized variable warning
scsi: qla4xxx: avoid freeing unallocated dma memory
scsi: lpfc: avoid uninitialized variable warning
selinux: avoid uninitialized variable warning
media: staging: davinci_vpfe: disallow building with COMPILE_TEST
media: go7007: avoid clang frame overflow warning with KASAN
media: saa7146: avoid high stack usage with clang
ASoC: davinci-mcasp: Fix clang warning without CONFIG_PM

Balakrishna Godavarthi (1):
Bluetooth: hci_qca: Give enough time to ROME controller to bootup.

Bart Van Assche (4):
scsi: qla2xxx: Fix a qla24xx_enable_msix() error path
scsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending()
scsi: qla2xxx: Avoid that lockdep complains about unsafe locking in tcm_qla2xxx_close_session()
scsi: qla2xxx: Fix hardirq-unsafe locking

Benjamin Coddington (1):
NFS: Fix a double unlock from nfs_match,get_client

Bo YU (1):
powerpc/boot: Fix missing check of lseek() return value

Borislav Petkov (1):
x86/microcode: Fix the ancient deprecated microcode loading method

Chad Dupuis (1):
scsi: qedf: Add missing return in qedf_post_io_req() in the fcport offload check

Charles Keepax (1):
extcon: arizona: Disable mic detect if running when driver is removed

Chengguang Xu (1):
chardev: add additional check for minor range overlap

Chris Lesiak (1):
spi: Fix zero length xfer bug

Chris Wilson (1):
drm: Wake up next in drm_read() chain if we are forced to putback the event

Christian König (1):
drm/amdgpu: fix old fence check in amdgpu_fence_emit

Christoph Hellwig (1):

      arm64/iommu: handle non-remapped addresses in ->mmap and ->get_sgtable

Colin Ian King (1):
RDMA/cxgb4: Fix null pointer dereference on alloc_skb failure

Coly Li (2):
bcache: return error immediately in bch_journal_replay()
bcache: add failure check to run_cache_set() for journal replay

Corentin Labbe (1):
crypto: sun4i-ss - Fix invalid calculation of hash end

Damien Le Moal (1):
f2fs: Fix use of number of devices

Dan Carpenter (5):
udlfb: fix some inconsistent NULL checking
brcm80211: potential NULL dereference in brcmf_cfg80211_vndr_cmds_dcmd_handler()
mwifiex: prevent an array overflow
media: pvrusb2: Prevent a buffer overflow
media: wl128x: prevent two potential buffer overflows

Dan Williams (1):
libnvdimm/pmem: Bypass CONFIG_HARDENED_USERCOPY overhead

Daniel Axtens (1):
crypto: vmx - CTR: always increment IV as quadword

Daniel Baluta (1):
ASoC: fsl_sai: Update is_slave_mode with correct value

Daniel Borkmann (1):
bpf: add bpf_jit_limit knob to restrict unpriv allocations

Daniel T. Lee (2):
libbpf: fix samples/bpf build failure due to undefined UINT32_MAX selftests/bpf: ksym_search won't check symbols exists

David Kozub (1):
block: sed-opal: fix IOC_OPAL_ENABLE_DISABLE_MBR

David Sterba (1):
Revert "btrfs: Honour FITRIM range constraints during free space trim"

Dmytro Laktyushkin (1):
drm/amd/display: fix releasing planes when exiting odm

Douglas Anderson (3):
clk: rockchip: undo several noc and special clocks as critical on rk3288
clk: rockchip: Fix video codec clocks on rk3288
clk: rockchip: Make rkpwm a critical clock on rk3288

Eric Anholt (1):
drm/v3d: Handle errors from IRQ setup.

Eric Dumazet (1):
bpf: devmap: fix use-after-free Read in __dev_map_entry_free

Ezequiel Garcia (1):
media: gspca: Kill URBs on USB device disconnect

Fabien Dessenne (2):
media: stm32-dcmi: return appropriate error codes during probe
rtc: stm32: manage the get_irq probe defer case

Fabrice Gasnier (1):
iio: adc: stm32-dfsdm: fix unmet direct dependencies detected

Farhan Ali (3):
vfio-ccw: Do not call flush_workqueue while holding the spinlock
vfio-ccw: Release any channel program when releasing/removing vfio-ccw mdev
vfio-ccw: Prevent quiesce function going into an infinite loop

Filipe Manana (3):
Btrfs: do not abort transaction at btrfs_update_root() after failure to COW path
Btrfs: avoid fallback to transaction commit during fsync of files with holes
Btrfs: fix race between ranged fsync and writeback of adjacent ranges

Flavio Suligoi (1):
spi: pxa2xx: fix SCR (divisor) calculation

Geert Uytterhoeven (2):
sh: sh7786: Add explicit I/O cast to sh7786_mm_sel()
spi: rspi: Fix sequencer reset during initialization

Greg Kroah-Hartman (1):

      Linux 4.19.47

Guenter Roeck (5):
hwmon: (vt1211) Use request_muxed_region for Super-IO accesses
hwmon: (smsc47m1) Use request_muxed_region for Super-IO accesses
hwmon: (smsc47b397) Use request_muxed_region for Super-IO accesses
hwmon: (pc87427) Use request_muxed_region for Super-IO accesses
hwmon: (f71805f) Use request_muxed_region for Super-IO accesses

Gustavo A. R. Silva (1):
cxgb3/l2t: Fix undefined behaviour

Haiyang Zhang (1):
hv_netvsc: fix race that may miss tx queue wakeup

Hans Verkuil (4):
media: vb2: add waiting_in_dqbuf flag
media: au0828: stop video streaming only when last user stops
media: gspca: do not resubmit URBs when streaming has stopped
media: vimc: zero the media_device on probe

Hans de Goede (2):
HID: logitech-hidpp: use RAP instead of FAP to get the protocol version
HID: logitech-hidpp: change low battery level threshold from 31 to 30 percent

Helen Fornazier (1):
media: vimc: stream: fix thread state before sleep

Hugues Fruchet (1):
media: stm32-dcmi: fix crash when subdev do not expose any formats

James Hutchinson (1):
media: m88ds3103: serialize reset messages in m88ds3103_set_frontend

James Smart (3):
scsi: lpfc: Fix FDMI manufacturer attribute value
scsi: lpfc: Fix fc4type information for FDMI
scsi: lpfc: Fix SLI3 commands being issued on SLI4 devices

Jan Kara (2):
ext4: do not delete unlinked inode from orphan list on failed truncate
ext4: wait for outstanding dio during truncate in nojournal mode

Janusz Krzysztofik (1):

      media: ov6650: Move v4l2_clk_get() to ov6650_video_probe() helper

Jerome Brunet (1):
ASoC: hdmi-codec: unlock the device on startup errors

Jiri Kosina (1):
x86/mm: Remove in_nmi() warning from 64-bit implementation of vmalloc_fault()

Jiufei Xue (1):
fbdev: fix WARNING in __alloc_pages_nodemask bug

Johannes Berg (1):
iwlwifi: pcie: don't crash on invalid RX interrupt

John Garry (1):
scsi: libsas: Do discovery on empty PHY to update PHY info

Jon DeVree (1):
random: fix CRNG initialization when random.trust_cpu=1

Jon Derrick (1):
drm/nouveau/bar/nv50: ensure BAR is mapped

Josef Bacik (3):
btrfs: don't double unlock on error in btrfs_punch_hole
btrfs: honor path->skip_locking in backref code
btrfs: fix panic during relocation after ENOSPC before writeback happens

João Paulo Rechi Vita (1):
Bluetooth: Ignore CC events not matching the last HCI command

Julian Wiedmann (1):
s390/qeth: handle error from qeth_update_from_chp_desc()

Justin Chen (1):
iio: adc: ti-ads7950: Fix improper use of mlock

Kai-Heng Feng (2):
e1000e: Disable runtime PM on CNP+
igb: Exclude device from suspend direct complete optimization

Kan Liang (3):
perf/x86/msr: Add Icelake support
perf/x86/intel/rapl: Add Icelake support
perf/x86/intel/cstate: Add Icelake support

Kangjie Lu (12):
slimbus: fix a potential NULL pointer dereference in of_qcom_slim_ngd_register
net: cw1200: fix a NULL pointer dereference
mmc_spi: add a status check for spi_sync_locked
iio: hmc5843: fix potential NULL pointer dereferences
rtlwifi: fix a potential NULL pointer dereference
brcmfmac: fix missing checks for kmemdup
media: video-mux: fix null pointer dereferences
thunderbolt: property: Fix a missing check of kzalloc
tty: ipwireless: fix missing checks for ioremap
thunderbolt: property: Fix a NULL pointer dereference
media: si2165: fix a missing check of return value
scsi: ufs: fix a missing check of devm_reset_control_get

Kees Cook (2):
x86/build: Move _etext to actual end of .text x86/build: Keep local relocations with ld.lld

Kefeng Wang (1):
ACPI/IORT: Reject platform device creation on NUMA node mapping failure

Konstantin Khlebnikov (3):
sched/core: Check quota and period overflow at usec to nsec conversion sched/rt: Check integer overflow at usec to nsec conversion sched/core: Handle overflow in cpu_shares_write_u64

Kristian Evensen (1):
qmi_wwan: Add quirk for Quectel dynamic config

Lars-Peter Clausen (1):
iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion

Leon Romanovsky (2):
RDMA/hns: Fix bad endianess of port_pd variable
overflow: Fix -Wtype-limits compilation warnings

Linus Lüssing (2):
batman-adv: mcast: fix multicast tt/tvlv worker locking
batman-adv: allow updating DAT entry timeouts on incoming ARP Replies

Lior David (1):
wil6210: fix return code of wmi_mgmt_tx and wmi_mgmt_tx_ext

Mac Chiang (1):

      ASoC: Intel: kbl_da7219_max98357a: Map BTN_0 to KEY_PLAYPAUSE

Manish Rangankar (1):
scsi: qedi: Abort ep termination if offload not scheduled

Marc Zyngier (1):
ARM: vdso: Remove dependency with the arch_timer driver internals

Marek Szyprowski (1):
usb: dwc3: move synchronize_irq() out of the spinlock protected block

Mariusz Bialonczyk (1):
w1: fix the resume command API

Martin K. Petersen (1):
Revert "scsi: sd: Keep disk read-only when re-reading partition"

Masahiro Yamada (1):
bpftool: exclude bash-completion/bpftool from .gitignore pattern

Maxime Ripard (2):
drm/sun4i: dsi: Change the start delay calculation drm/sun4i: dsi: Enforce boundaries on the start delay

Mika Westerberg (1):
thunderbolt: Take domain lock in switch sysfs attribute callbacks

Mike Marciniszyn (1):
IB/hfi1: Fix WQ_MEM_RECLAIM warning

Minas Harutyunyan (1):
usb: dwc2: gadget: Increase descriptors count for ISOC's

Murton Liu (1):
drm/amd/display: Fix Divide by 0 in memory calculations

Nadav Amit (1):
x86/modules: Avoid breaking W^X while loading modules

Nathan Chancellor (1):
iio: common: ssp_sensors: Initialize calculated_time in ssp_common_process_data

Nathan Lynch (1):
powerpc/numa: improve control of topology updates

Nicholas Kazlauskas (1):

      drm/amd/display: Set stream->mode_changed when connectors change

Nicholas Mc Guire (1):
staging: vc04_services: handle kzalloc failure

Nicholas Nunley (1):
i40e: don't allow changes to HW VLAN stripping on active port VLANs

Nicholas Piggin (3):
powerpc/watchdog: Use hrtimers for per-CPU heartbeat sched/nohz: Run NOHZ idle load balancer on HK_FLAG_MISC CPUs
irq_work: Do not raise an IPI when queueing work on the local CPU

Nicolas Ferre (1):
dmaengine: at_xdmac: remove BUG_ON macro in tasklet

Nicolas Saenz Julienne (1):
HID: core: move Usage Page concatenation to Main item

Noralf Trønnes (2):
tinydrm/mipi-dbi: Use dma-safe buffers for all SPI transfers drm/drv: Hold ref on parent device during drm_device lifetime

Olga Kornievskaia (2):
NFSv4.2 fix unnecessary retry in nfs4_copy_file_range NFSv4.1 fix incorrect return value in copy_file_range

Pankaj Gupta (1):
virtio_console: initialize vtermno value for ports

Paolo Bonzini (1):
KVM: x86: fix return value for reserved EFER

Parav Pandit (1):
RDMA/cma: Consider scope_id while binding to ipv6 ll address

Paul E. McKenney (2):
rcutorture: Fix cleanup path for invalid torture_type strings
rcuperf: Fix cleanup path for invalid perf_type strings

Paul Kocialkowski (1):
phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode

Peter Zijlstra (5):
mm/uaccess: Use 'unsigned long' to placate UBSAN warnings on older GCC versions x86/uaccess, ftrace: Fix ftrace_likely_update() vs. SMAP x86/uaccess, signal: Fix AC=1 bloat
x86/ia32: Fix ia32_restore_sigcontext() AC leak
x86/uaccess: Fix up the fixup

Philipp Rudo (1):
s390/kexec_file: Fix detection of text segment in ELF loader

Philipp Zabel (1):
media: coda: clear error return value before picture run

Pierre-Louis Bossart (1):
ACPI / property: fix handling of data_nodes in acpi_get_next_subnode()

Ping-Ke Shih (1):
rtlwifi: fix potential NULL pointer dereference

Piotr Figiel (4):
brcmfmac: convert dev_init_lock mutex to completion
brcmfmac: fix WARNING during USB disconnect in case of unempty psq
brcmfmac: fix race during disconnect when USB completion is in progress
brcmfmac: fix Oops when bringing up interface during USB disconnect

Qian Cai (1):
arm64: Fix compiler warning from pte_unmap() with -Wunused-but-set-variable

Qu Wenruo (1):
btrfs: Don't panic when we can't find a root key

Raul E Rangel (1):
mmc: core: Verify SD bus width

Robbie Ko (1):
Btrfs: fix data bytes_may_use underflow with fallocate due to failed quota reserve

Roberto Bergantinos Corpas (1):
NFS: make nfs_match_client killable

Robin Murphy (1):
perf/arm-cci: Remove broken race mitigation

Roman Gushchin (2):
cgroup: protect cgroup->nr_(dying_)descendants by css_set_lock
selftests: cgroup: fix cleanup path in test_memcg_subtree_control()

Ross Lagerwall (1):
gfs2: Fix lru_count going negative

Rouven Czerwinski (1):
hwrng: omap - Set default quality

Russell Currey (1):
powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX

Russell King (1):
drm: etnaviv: avoid DMA API warning when importing buffers

Sagi Grimberg (2):
nvme: set 0 capacity if namespace block size exceeds PAGE_SIZE
nvme-rdma: fix a NULL deref when an admin connect times out

Sameeh Jubran (1):
net: ena: gcc 8: fix compilation warning

Sameer Pujar (2):
dmaengine: tegra210-dma: free dma controller in remove()
dmaengine: tegra210-adma: use devm_clk_*() helpers

Sebastian Andrzej Siewior (2):
smpboot: Place the __percpu annotation correctly
random: add a spinlock_t to struct batched_entropy

Sergey Matyukevich (1):
mac80211/cfg80211: update bss channel on channel switch

Shenghui Wang (1):
bcache: avoid potential memleak of list of journal_replay(s) in the CACHE_SYNC branch of run_cache_set

Shile Zhang (1):
fbdev: fix divide error in fb_var_to_videomode

Shuah Khan (1):
media: au0828: Fix NULL pointer dereference in au0828_analog_stream_enable()

Sowjanya Komatineni (1):
spi: tegra114: reset controller on probe

Stanley Chu (2):
scsi: ufs: Fix regulator load and icc-level configuration
scsi: ufs: Avoid configuring regulator with undefined voltage range

Stefan Brüns (1):
media: dvbsky: Avoid leaking dvb frontend

Steven Rostedt (VMware) (1):
x86: Hide the int3_emulate_call/jmp functions from UML

Sugar Zhang (1):
dmaengine: pl330: _stop: clear interrupt status

Suthikulpanit, Suravee (1):
kvm: svm/avic: fix off-by-one in checking host APIC ID

Sven Van Asbroeck (1):

      rtc: 88pm860x: prevent use-after-free on device remove

Tang Junhui (1):
bcache: fix failure in journal relplay

Tetsuo Handa (1):
kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.

Thomas Gleixner (2):
x86/irq/64: Limit IST stack overflow check to #DB stack
timekeeping: Force upper bound for setting CLOCK_REALTIME

Thomas Huth (1):
s390/mm: silence compiler warning when compiling without CONFIG_PGSTE

Tobin C. Harding (2):
btrfs: sysfs: Fix error path kobject memory leak
btrfs: sysfs: don't leak memory when failing add fsid

Tony Lindgren (2):
usb: core: Add PM runtime calls to usb_hcd_platform_shutdown drm/omap: dsi: Fix PM for display blank with paired dss_pll calls

Tony Luck (1):
x86/mce: Fix machine_check_poll() tests for error types

Trac Hoang (2):
mmc: sdhci-iproc: cygnus: Set NO_HISPD bit to fix HS50 data hold time problem
mmc: sdhci-iproc: Set NO_HISPD bit to fix HS50 data hold time problem

Trent Piepho (1):
spi: imx: stop buffer overflow in RX FIFO flush

Ulf Hansson (1):

      PM / core: Propagate dev->power.wakeup_path when no callbacks

Vincenzo Frascino (1):
arm64: vdso: Fix clock_getres() for CLOCK_REALTIME

Vineet Gupta (1):
tools/bpf: fix perf build error with uClibc (seen on ARC)

Viresh Kumar (1):
sched/cpufreq: Fix kobject memleak

Wen Yang (12):
pinctrl: zte: fix leaked of_node references
pinctrl: pistachio: fix leaked of_node references
pinctrl: samsung: fix leaked of_node references
drm/msm: a5xx: fix possible object reference leak
cpufreq: ppc_cbe: fix possible object reference leak cpufreq/pasemi: fix possible object reference leak
cpufreq: pmac32: fix possible object reference leak
cpufreq: kirkwood: fix possible object reference leak drm/pl111: fix possible object reference leak
arm64: cpu_ops: fix a leaked reference by adding missing of_node_put
ASoC: eukrea-tlv320: fix a leaked reference by adding missing of_node_put
ASoC: fsl_utils: fix a leaked reference by adding missing of_node_put

Wenwen Wang (1):
audit: fix a memory leak bug

Will Deacon (1):
arm64: errata: Add workaround for Cortex-A76 erratum #1463225

Yannick Fertré (1):
drm/panel: otm8009a: Add delay at the end of initialization

Yazen Ghannam (1):
x86/mce: Handle varying MCA bank counts

Yinbo Zhu (3):
mmc: sdhci-of-esdhc: add erratum eSDHC5 support
mmc: sdhci-of-esdhc: add erratum A-009204 support
mmc: sdhci-of-esdhc: add erratum eSDHC-A001 and A-008358 support

Yonghong Song (1):
selftests/bpf: set RLIMIT_MEMLOCK properly for test_libbpf_open.c

YueHaibing (6):
media: cpia2: Fix use-after-free in cpia2_exit
media: serial_ir: Fix use-after-free in serial_ir_init_module
ssb: Fix possible NULL pointer dereference in ssb_host_pcmcia_exit
at76c50x-usb: Don't register led_trigger if usb_register_driver failed
cxgb4: Fix error path in cxgb4_init_module
mwifiex: Fix mem leak in mwifiex_tm_cmd

Yufen Yu (1):
block: fix use-after-free on gendisk

author maintainer
#1 lore raw
Documentation/arm64/silicon-errata.txt +1 -0
index 3c6fc2e08d04..eeb3fc9d777b 100644
@@ -58,6 +58,7 @@ stable kernels.
 | ARM            | Cortex-A72      | #853709         | N/A                         |
 | ARM            | Cortex-A73      | #858921         | ARM64_ERRATUM_858921        |
 | ARM            | Cortex-A55      | #1024718        | ARM64_ERRATUM_1024718       |
+| ARM            | Cortex-A76      | #1463225        | ARM64_ERRATUM_1463225       |
 | ARM            | MMU-500         | #841119,#826419 | N/A                         |
 |                |                 |                 |                             |
 | Cavium         | ThunderX ITS    | #22375, #24313  | CAVIUM_ERRATUM_22375        |
Documentation/sysctl/net.txt +8 -0
index 9ecde517728c..2793d4eac55f 100644
@@ -92,6 +92,14 @@ Values :
 	0 - disable JIT kallsyms export (default value)
 	1 - enable JIT kallsyms export for privileged users only
 
+bpf_jit_limit
+-------------
+
+This enforces a global limit for memory allocations to the BPF JIT
+compiler in order to reject unprivileged JIT requests once it has
+been surpassed. bpf_jit_limit contains the value of the global limit
+in bytes.
+
 dev_weight
 --------------
 
Makefile +1 -1
index 5383dd317d59..b3ba28ff73d5 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 4
 PATCHLEVEL = 19
-SUBLEVEL = 46
+SUBLEVEL = 47
 EXTRAVERSION =
 NAME = "People's Front"
 
arch/arm/include/asm/cp15.h +2 -0
index 07e27f212dc7..d2453e2d3f1f 100644
@@ -68,6 +68,8 @@
 #define BPIALL				__ACCESS_CP15(c7, 0, c5, 6)
 #define ICIALLU				__ACCESS_CP15(c7, 0, c5, 0)
 
+#define CNTVCT				__ACCESS_CP15_64(1, c14)
+
 extern unsigned long cr_alignment;	/* defined in entry-armv.S */
 
 static inline unsigned long get_cr(void)
arch/arm/vdso/vgettimeofday.c +3 -2
index a9dd619c6c29..7bdbf5d5c47d 100644
@@ -18,9 +18,9 @@
 #include <linux/compiler.h>
 #include <linux/hrtimer.h>
 #include <linux/time.h>
-#include <asm/arch_timer.h>
 #include <asm/barrier.h>
 #include <asm/bug.h>
+#include <asm/cp15.h>
 #include <asm/page.h>
 #include <asm/unistd.h>
 #include <asm/vdso_datapage.h>
@@ -123,7 +123,8 @@ static notrace u64 get_ns(struct vdso_data *vdata)
 	u64 cycle_now;
 	u64 nsec;
 
-	cycle_now = arch_counter_get_cntvct();
+	isb();
+	cycle_now = read_sysreg(CNTVCT);
 
 	cycle_delta = (cycle_now - vdata->cs_cycle_last) & vdata->cs_mask;
 
arch/arm64/Kconfig +18 -0
index 1b1a0e95c751..8790a29d0af4 100644
@@ -479,6 +479,24 @@ config ARM64_ERRATUM_1024718
 
 	  If unsure, say Y.
 
+config ARM64_ERRATUM_1463225
+	bool "Cortex-A76: Software Step might prevent interrupt recognition"
+	default y
+	help
+	  This option adds a workaround for Arm Cortex-A76 erratum 1463225.
+
+	  On the affected Cortex-A76 cores (r0p0 to r3p1), software stepping
+	  of a system call instruction (SVC) can prevent recognition of
+	  subsequent interrupts when software stepping is disabled in the
+	  exception handler of the system call and either kernel debugging
+	  is enabled or VHE is in use.
+
+	  Work around the erratum by triggering a dummy step exception
+	  when handling a system call from a task that is being stepped
+	  in a VHE configuration of the kernel.
+
+	  If unsure, say Y.
+
 config CAVIUM_ERRATUM_22375
 	bool "Cavium erratum 22375, 24313"
 	default y
arch/arm64/include/asm/cpucaps.h +2 -1
index ae1f70450fb2..25ce9056cf64 100644
@@ -51,7 +51,8 @@
 #define ARM64_SSBD				30
 #define ARM64_MISMATCHED_CACHE_TYPE		31
 #define ARM64_HAS_STAGE2_FWB			32
+#define ARM64_WORKAROUND_1463225		33
 
-#define ARM64_NCAPS				33
+#define ARM64_NCAPS				34
 
 #endif /* __ASM_CPUCAPS_H */
arch/arm64/include/asm/cputype.h +2 -0
index ea690b3562af..b4a48419769f 100644
@@ -86,6 +86,7 @@
 #define ARM_CPU_PART_CORTEX_A75		0xD0A
 #define ARM_CPU_PART_CORTEX_A35		0xD04
 #define ARM_CPU_PART_CORTEX_A55		0xD05
+#define ARM_CPU_PART_CORTEX_A76		0xD0B
 
 #define APM_CPU_PART_POTENZA		0x000
 
@@ -110,6 +111,7 @@
 #define MIDR_CORTEX_A75 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A75)
 #define MIDR_CORTEX_A35 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A35)
 #define MIDR_CORTEX_A55 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A55)
+#define MIDR_CORTEX_A76 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A76)
 #define MIDR_THUNDERX	MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX)
 #define MIDR_THUNDERX_81XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_81XX)
 #define MIDR_THUNDERX_83XX MIDR_CPU_MODEL(ARM_CPU_IMP_CAVIUM, CAVIUM_CPU_PART_THUNDERX_83XX)
arch/arm64/include/asm/pgtable.h +2 -1
index 1bdeca8918a6..ea423db39364 100644
@@ -444,6 +444,8 @@ static inline phys_addr_t pmd_page_paddr(pmd_t pmd)
 	return __pmd_to_phys(pmd);
 }
 
+static inline void pte_unmap(pte_t *pte) { }
+
 /* Find an entry in the third-level page table. */
 #define pte_index(addr)		(((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
 
@@ -452,7 +454,6 @@ static inline phys_addr_t pmd_page_paddr(pmd_t pmd)
 
 #define pte_offset_map(dir,addr)	pte_offset_kernel((dir), (addr))
 #define pte_offset_map_nested(dir,addr)	pte_offset_kernel((dir), (addr))
-#define pte_unmap(pte)			do { } while (0)
 #define pte_unmap_nested(pte)		do { } while (0)
 
 #define pte_set_fixmap(addr)		((pte_t *)set_fixmap_offset(FIX_PTE, addr))
arch/arm64/include/asm/vdso_datapage.h +1 -0
index 2b9a63771eda..f89263c8e11a 100644
@@ -38,6 +38,7 @@ struct vdso_data {
 	__u32 tz_minuteswest;	/* Whacky timezone stuff */
 	__u32 tz_dsttime;
 	__u32 use_syscall;
+	__u32 hrtimer_res;
 };
 
 #endif /* !__ASSEMBLY__ */
arch/arm64/kernel/asm-offsets.c +1 -1
index 323aeb5f2fe6..92fba851ce53 100644
@@ -99,7 +99,7 @@ int main(void)
   DEFINE(CLOCK_REALTIME,	CLOCK_REALTIME);
   DEFINE(CLOCK_MONOTONIC,	CLOCK_MONOTONIC);
   DEFINE(CLOCK_MONOTONIC_RAW,	CLOCK_MONOTONIC_RAW);
-  DEFINE(CLOCK_REALTIME_RES,	MONOTONIC_RES_NSEC);
+  DEFINE(CLOCK_REALTIME_RES,	offsetof(struct vdso_data, hrtimer_res));
   DEFINE(CLOCK_REALTIME_COARSE,	CLOCK_REALTIME_COARSE);
   DEFINE(CLOCK_MONOTONIC_COARSE,CLOCK_MONOTONIC_COARSE);
   DEFINE(CLOCK_COARSE_RES,	LOW_RES_NSEC);
arch/arm64/kernel/cpu_errata.c +24 -0
index dec10898d688..dc6c535cbd13 100644
@@ -411,6 +411,22 @@ static bool has_ssbd_mitigation(const struct arm64_cpu_capabilities *entry,
 }
 #endif	/* CONFIG_ARM64_SSBD */
 
+#ifdef CONFIG_ARM64_ERRATUM_1463225
+DEFINE_PER_CPU(int, __in_cortex_a76_erratum_1463225_wa);
+
+static bool
+has_cortex_a76_erratum_1463225(const struct arm64_cpu_capabilities *entry,
+			       int scope)
+{
+	u32 midr = read_cpuid_id();
+	/* Cortex-A76 r0p0 - r3p1 */
+	struct midr_range range = MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 1);
+
+	WARN_ON(scope != SCOPE_LOCAL_CPU || preemptible());
+	return is_midr_in_range(midr, &range) && is_kernel_in_hyp_mode();
+}
+#endif
+
 #define CAP_MIDR_RANGE(model, v_min, r_min, v_max, r_max)	\
 	.matches = is_affected_midr_range,			\
 	.midr_range = MIDR_RANGE(model, v_min, r_min, v_max, r_max)
@@ -679,6 +695,14 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
 		.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
 		.matches = has_ssbd_mitigation,
 	},
+#endif
+#ifdef CONFIG_ARM64_ERRATUM_1463225
+	{
+		.desc = "ARM erratum 1463225",
+		.capability = ARM64_WORKAROUND_1463225,
+		.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
+		.matches = has_cortex_a76_erratum_1463225,
+	},
 #endif
 	{
 	}
arch/arm64/kernel/cpu_ops.c +1 -0
index ea001241bdd4..00f8b8612b69 100644
@@ -85,6 +85,7 @@ static const char *__init cpu_read_enable_method(int cpu)
 				pr_err("%pOF: missing enable-method property\n",
 					dn);
 		}
+		of_node_put(dn);
 	} else {
 		enable_method = acpi_get_enable_method(cpu);
 		if (!enable_method) {
arch/arm64/kernel/kaslr.c +3 -3
index b09b6f75f759..06941c1fe418 100644
@@ -145,15 +145,15 @@ u64 __init kaslr_early_init(u64 dt_phys)
 
 	if (IS_ENABLED(CONFIG_RANDOMIZE_MODULE_REGION_FULL)) {
 		/*
-		 * Randomize the module region over a 4 GB window covering the
+		 * Randomize the module region over a 2 GB window covering the
 		 * kernel. This reduces the risk of modules leaking information
 		 * about the address of the kernel itself, but results in
 		 * branches between modules and the core kernel that are
 		 * resolved via PLTs. (Branches between modules will be
 		 * resolved normally.)
 		 */
-		module_range = SZ_4G - (u64)(_end - _stext);
-		module_alloc_base = max((u64)_end + offset - SZ_4G,
+		module_range = SZ_2G - (u64)(_end - _stext);
+		module_alloc_base = max((u64)_end + offset - SZ_2G,
 					(u64)MODULES_VADDR);
 	} else {
 		/*
arch/arm64/kernel/module.c +1 -1
index f0f27aeefb73..0b368ceccee4 100644
@@ -56,7 +56,7 @@ void *module_alloc(unsigned long size)
 		 * can simply omit this fallback in that case.
 		 */
 		p = __vmalloc_node_range(size, MODULE_ALIGN, module_alloc_base,
-				module_alloc_base + SZ_4G, GFP_KERNEL,
+				module_alloc_base + SZ_2G, GFP_KERNEL,
 				PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE,
 				__builtin_return_address(0));
 
arch/arm64/kernel/syscall.c +31 -0
index 5610ac01c1ec..871c739f060a 100644
@@ -8,6 +8,7 @@
 #include <linux/syscalls.h>
 
 #include <asm/daifflags.h>
+#include <asm/debug-monitors.h>
 #include <asm/fpsimd.h>
 #include <asm/syscall.h>
 #include <asm/thread_info.h>
@@ -60,6 +61,35 @@ static inline bool has_syscall_work(unsigned long flags)
 int syscall_trace_enter(struct pt_regs *regs);
 void syscall_trace_exit(struct pt_regs *regs);
 
+#ifdef CONFIG_ARM64_ERRATUM_1463225
+DECLARE_PER_CPU(int, __in_cortex_a76_erratum_1463225_wa);
+
+static void cortex_a76_erratum_1463225_svc_handler(void)
+{
+	u32 reg, val;
+
+	if (!unlikely(test_thread_flag(TIF_SINGLESTEP)))
+		return;
+
+	if (!unlikely(this_cpu_has_cap(ARM64_WORKAROUND_1463225)))
+		return;
+
+	__this_cpu_write(__in_cortex_a76_erratum_1463225_wa, 1);
+	reg = read_sysreg(mdscr_el1);
+	val = reg | DBG_MDSCR_SS | DBG_MDSCR_KDE;
+	write_sysreg(val, mdscr_el1);
+	asm volatile("msr daifclr, #8");
+	isb();
+
+	/* We will have taken a single-step exception by this point */
+
+	write_sysreg(reg, mdscr_el1);
+	__this_cpu_write(__in_cortex_a76_erratum_1463225_wa, 0);
+}
+#else
+static void cortex_a76_erratum_1463225_svc_handler(void) { }
+#endif /* CONFIG_ARM64_ERRATUM_1463225 */
+
 static void el0_svc_common(struct pt_regs *regs, int scno, int sc_nr,
 			   const syscall_fn_t syscall_table[])
 {
@@ -68,6 +98,7 @@ static void el0_svc_common(struct pt_regs *regs, int scno, int sc_nr,
 	regs->orig_x0 = regs->regs[0];
 	regs->syscallno = scno;
 
+	cortex_a76_erratum_1463225_svc_handler();
 	local_daif_restore(DAIF_PROCCTX);
 	user_exit();
 
arch/arm64/kernel/vdso.c +3 -0
index 2d419006ad43..ec0bb588d755 100644
@@ -232,6 +232,9 @@ void update_vsyscall(struct timekeeper *tk)
 	vdso_data->wtm_clock_sec		= tk->wall_to_monotonic.tv_sec;
 	vdso_data->wtm_clock_nsec		= tk->wall_to_monotonic.tv_nsec;
 
+	/* Read without the seqlock held by clock_getres() */
+	WRITE_ONCE(vdso_data->hrtimer_res, hrtimer_resolution);
+
 	if (!use_syscall) {
 		/* tkr_mono.cycle_last == tkr_raw.cycle_last */
 		vdso_data->cs_cycle_last	= tk->tkr_mono.cycle_last;
arch/arm64/kernel/vdso/gettimeofday.S +3 -4
index e8f60112818f..856fee6d3512 100644
@@ -308,13 +308,14 @@ ENTRY(__kernel_clock_getres)
 	ccmp	w0, #CLOCK_MONOTONIC_RAW, #0x4, ne
 	b.ne	1f
 
-	ldr	x2, 5f
+	adr	vdso_data, _vdso_data
+	ldr	w2, [vdso_data, #CLOCK_REALTIME_RES]
 	b	2f
 1:
 	cmp	w0, #CLOCK_REALTIME_COARSE
 	ccmp	w0, #CLOCK_MONOTONIC_COARSE, #0x4, ne
 	b.ne	4f
-	ldr	x2, 6f
+	ldr	x2, 5f
 2:
 	cbz	x1, 3f
 	stp	xzr, x2, [x1]
@@ -328,8 +329,6 @@ ENTRY(__kernel_clock_getres)
 	svc	#0
 	ret
 5:
-	.quad	CLOCK_REALTIME_RES
-6:
 	.quad	CLOCK_COARSE_RES
 	.cfi_endproc
 ENDPROC(__kernel_clock_getres)
arch/arm64/mm/dma-mapping.c +10 -0
index c389f2bef938..d3a5bb16f0b2 100644
@@ -664,6 +664,11 @@ static int __iommu_mmap_attrs(struct device *dev, struct vm_area_struct *vma,
 	if (dma_mmap_from_dev_coherent(dev, vma, cpu_addr, size, &ret))
 		return ret;
 
+	if (!is_vmalloc_addr(cpu_addr)) {
+		unsigned long pfn = page_to_pfn(virt_to_page(cpu_addr));
+		return __swiotlb_mmap_pfn(vma, pfn, size);
+	}
+
 	if (attrs & DMA_ATTR_FORCE_CONTIGUOUS) {
 		/*
 		 * DMA_ATTR_FORCE_CONTIGUOUS allocations are always remapped,
@@ -687,6 +692,11 @@ static int __iommu_get_sgtable(struct device *dev, struct sg_table *sgt,
 	unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT;
 	struct vm_struct *area = find_vm_area(cpu_addr);
 
+	if (!is_vmalloc_addr(cpu_addr)) {
+		struct page *page = virt_to_page(cpu_addr);
+		return __swiotlb_get_sgtable_page(sgt, page, size);
+	}
+
 	if (attrs & DMA_ATTR_FORCE_CONTIGUOUS) {
 		/*
 		 * DMA_ATTR_FORCE_CONTIGUOUS allocations are always remapped,
arch/arm64/mm/fault.c +35 -2
index a4c134677285..88cf0a0cb616 100644
@@ -827,14 +827,47 @@ void __init hook_debug_fault_code(int nr,
 	debug_fault_info[nr].name	= name;
 }
 
+#ifdef CONFIG_ARM64_ERRATUM_1463225
+DECLARE_PER_CPU(int, __in_cortex_a76_erratum_1463225_wa);
+
+static int __exception
+cortex_a76_erratum_1463225_debug_handler(struct pt_regs *regs)
+{
+	if (user_mode(regs))
+		return 0;
+
+	if (!__this_cpu_read(__in_cortex_a76_erratum_1463225_wa))
+		return 0;
+
+	/*
+	 * We've taken a dummy step exception from the kernel to ensure
+	 * that interrupts are re-enabled on the syscall path. Return back
+	 * to cortex_a76_erratum_1463225_svc_handler() with debug exceptions
+	 * masked so that we can safely restore the mdscr and get on with
+	 * handling the syscall.
+	 */
+	regs->pstate |= PSR_D_BIT;
+	return 1;
+}
+#else
+static int __exception
+cortex_a76_erratum_1463225_debug_handler(struct pt_regs *regs)
+{
+	return 0;
+}
+#endif /* CONFIG_ARM64_ERRATUM_1463225 */
+
 asmlinkage int __exception do_debug_exception(unsigned long addr_if_watchpoint,
-					      unsigned int esr,
-					      struct pt_regs *regs)
+					       unsigned int esr,
+					       struct pt_regs *regs)
 {
 	const struct fault_info *inf = debug_fault_info + DBG_ESR_EVT(esr);
 	unsigned long pc = instruction_pointer(regs);
 	int rv;
 
+	if (cortex_a76_erratum_1463225_debug_handler(regs))
+		return 0;
+
 	/*
 	 * Tell lockdep we disabled irqs in entry.S. Do nothing if they were
 	 * already disabled to preserve the last enabled/disabled addresses.
arch/powerpc/boot/addnote.c +5 -1
index 9d9f6f334d3c..3da3e2b1b51b 100644
@@ -223,7 +223,11 @@ main(int ac, char **av)
 	PUT_16(E_PHNUM, np + 2);
 
 	/* write back */
-	lseek(fd, (long) 0, SEEK_SET);
+	i = lseek(fd, (long) 0, SEEK_SET);
+	if (i < 0) {
+		perror("lseek");
+		exit(1);
+	}
 	i = write(fd, buf, n);
 	if (i < 0) {
 		perror("write");
arch/powerpc/kernel/head_64.S +3 -1
index 4898e9491a1c..9168a247e24f 100644
@@ -970,7 +970,9 @@ start_here_multiplatform:
 
 	/* Restore parameters passed from prom_init/kexec */
 	mr	r3,r31
-	bl	early_setup		/* also sets r13 and SPRG_PACA */
+	LOAD_REG_ADDR(r12, DOTSYM(early_setup))
+	mtctr	r12
+	bctrl		/* also sets r13 and SPRG_PACA */
 
 	LOAD_REG_ADDR(r3, start_here_common)
 	ld	r4,PACAKMSR(r13)
arch/powerpc/kernel/watchdog.c +40 -41

153 lines not on this page · raw message

arch/powerpc/mm/numa.c +12 -6
index 10fb43efef50..f473c05e9649 100644
@@ -1495,6 +1495,9 @@ int start_topology_update(void)
 {
 	int rc = 0;
 
+	if (!topology_updates_enabled)
+		return 0;
+
 	if (firmware_has_feature(FW_FEATURE_PRRN)) {
 		if (!prrn_enabled) {
 			prrn_enabled = 1;
@@ -1524,6 +1527,9 @@ int stop_topology_update(void)
 {
 	int rc = 0;
 
+	if (!topology_updates_enabled)
+		return 0;
+
 	if (prrn_enabled) {
 		prrn_enabled = 0;
 #ifdef CONFIG_SMP
@@ -1579,11 +1585,13 @@ static ssize_t topology_write(struct file *file, const char __user *buf,
 
 	kbuf[read_len] = '\0';
 
-	if (!strncmp(kbuf, "on", 2))
+	if (!strncmp(kbuf, "on", 2)) {
+		topology_updates_enabled = true;
 		start_topology_update();
-	else if (!strncmp(kbuf, "off", 3))
+	} else if (!strncmp(kbuf, "off", 3)) {
 		stop_topology_update();
-	else
+		topology_updates_enabled = false;
+	} else
 		return -EINVAL;
 
 	return count;
@@ -1598,9 +1606,7 @@ static const struct file_operations topology_ops = {
 
 static int topology_update_init(void)
 {
-	/* Do not poll for changes if disabled at boot */
-	if (topology_updates_enabled)
-		start_topology_update();
+	start_topology_update();
 
 	if (vphn_enabled)
 		topology_schedule_update();
arch/powerpc/perf/imc-pmu.c +6 -1
index 1fafc32b12a0..555322677074 100644
@@ -496,6 +496,11 @@ static int nest_imc_event_init(struct perf_event *event)
 	 * Get the base memory addresss for this cpu.
 	 */
 	chip_id = cpu_to_chip_id(event->cpu);
+
+	/* Return, if chip_id is not valid */
+	if (chip_id < 0)
+		return -ENODEV;
+
 	pcni = pmu->mem_info;
 	do {
 		if (pcni->id == chip_id) {
@@ -503,7 +508,7 @@ static int nest_imc_event_init(struct perf_event *event)
 			break;
 		}
 		pcni++;
-	} while (pcni);
+	} while (pcni->vbase != 0);
 
 	if (!flag)
 		return -ENODEV;
arch/powerpc/platforms/powernv/opal-imc.c +1 -1
index 58a07948c76e..3d27f02695e4 100644
@@ -127,7 +127,7 @@ static int imc_get_mem_addr_nest(struct device_node *node,
 								nr_chips))
 		goto error;
 
-	pmu_ptr->mem_info = kcalloc(nr_chips, sizeof(*pmu_ptr->mem_info),
+	pmu_ptr->mem_info = kcalloc(nr_chips + 1, sizeof(*pmu_ptr->mem_info),
 				    GFP_KERNEL);
 	if (!pmu_ptr->mem_info)
 		goto error;
arch/s390/kernel/kexec_elf.c +6 -1
index 5a286b012043..602e7cc26d11 100644
@@ -19,10 +19,15 @@ static int kexec_file_add_elf_kernel(struct kimage *image,
 	struct kexec_buf buf;
 	const Elf_Ehdr *ehdr;
 	const Elf_Phdr *phdr;
+	Elf_Addr entry;
 	int i, ret;
 
 	ehdr = (Elf_Ehdr *)kernel;
 	buf.image = image;
+	if (image->type == KEXEC_TYPE_CRASH)
+		entry = STARTUP_KDUMP_OFFSET;
+	else
+		entry = ehdr->e_entry;
 
 	phdr = (void *)ehdr + ehdr->e_phoff;
 	for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
@@ -35,7 +40,7 @@ static int kexec_file_add_elf_kernel(struct kimage *image,
 		buf.mem = ALIGN(phdr->p_paddr, phdr->p_align);
 		buf.memsz = phdr->p_memsz;
 
-		if (phdr->p_paddr == 0) {
+		if (entry - phdr->p_paddr < phdr->p_memsz) {
 			data->kernel_buf = buf.buffer;
 			data->memsz += STARTUP_NORMAL_OFFSET;
 
arch/s390/mm/pgtable.c +2 -0
index f2cc7da473e4..ae894ac83fd6 100644
@@ -410,6 +410,7 @@ static inline pmd_t pmdp_flush_lazy(struct mm_struct *mm,
 	return old;
 }
 
+#ifdef CONFIG_PGSTE
 static pmd_t *pmd_alloc_map(struct mm_struct *mm, unsigned long addr)
 {
 	pgd_t *pgd;
@@ -427,6 +428,7 @@ static pmd_t *pmd_alloc_map(struct mm_struct *mm, unsigned long addr)
 	pmd = pmd_alloc(mm, pud, addr);
 	return pmd;
 }
+#endif
 
 pmd_t pmdp_xchg_direct(struct mm_struct *mm, unsigned long addr,
 		       pmd_t *pmdp, pmd_t new)
arch/sh/include/cpu-sh4/cpu/sh7786.h +1 -1
index 96b8cb1f754a..029bbadaf7ab 100644
@@ -135,7 +135,7 @@ enum {
 
 static inline u32 sh7786_mm_sel(void)
 {
-	return __raw_readl(0xFC400020) & 0x7;
+	return __raw_readl((const volatile void __iomem *)0xFC400020) & 0x7;
 }
 
 #endif /* __CPU_SH7786_H__ */
arch/x86/Makefile +1 -1
index ffc823a8312f..ab2071e40efe 100644
@@ -47,7 +47,7 @@ export REALMODE_CFLAGS
 export BITS
 
 ifdef CONFIG_X86_NEED_RELOCS
-        LDFLAGS_vmlinux := --emit-relocs
+        LDFLAGS_vmlinux := --emit-relocs --discard-none
 endif
 
 #
arch/x86/events/intel/cstate.c +2 -0
index 56194c571299..4a650eb3d94a 100644
@@ -584,6 +584,8 @@ static const struct x86_cpu_id intel_cstates_match[] __initconst = {
 	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_GOLDMONT_X, glm_cstates),
 
 	X86_CSTATES_MODEL(INTEL_FAM6_ATOM_GOLDMONT_PLUS, glm_cstates),
+
+	X86_CSTATES_MODEL(INTEL_FAM6_ICELAKE_MOBILE, snb_cstates),
 	{ },
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_cstates_match);
arch/x86/events/intel/rapl.c +2 -0
index 91039ffed633..2413169ce362 100644
@@ -780,6 +780,8 @@ static const struct x86_cpu_id rapl_cpu_match[] __initconst = {
 	X86_RAPL_MODEL_MATCH(INTEL_FAM6_ATOM_GOLDMONT_X, hsw_rapl_init),
 
 	X86_RAPL_MODEL_MATCH(INTEL_FAM6_ATOM_GOLDMONT_PLUS, hsw_rapl_init),
+
+	X86_RAPL_MODEL_MATCH(INTEL_FAM6_ICELAKE_MOBILE,  skl_rapl_init),
 	{},
 };
 
arch/x86/events/msr.c +1 -0
index 1b9f85abf9bc..ace6c1e752fb 100644
@@ -89,6 +89,7 @@ static bool test_intel(int idx)
 	case INTEL_FAM6_SKYLAKE_X:
 	case INTEL_FAM6_KABYLAKE_MOBILE:
 	case INTEL_FAM6_KABYLAKE_DESKTOP:
+	case INTEL_FAM6_ICELAKE_MOBILE:
 		if (idx == PERF_MSR_SMI || idx == PERF_MSR_PPERF)
 			return true;
 		break;
arch/x86/ia32/ia32_signal.c +17 -12
index 86b1341cba9a..513ba49c204f 100644
@@ -61,9 +61,8 @@
 } while (0)
 
 #define RELOAD_SEG(seg)		{		\
-	unsigned int pre = GET_SEG(seg);	\
+	unsigned int pre = (seg) | 3;		\
 	unsigned int cur = get_user_seg(seg);	\
-	pre |= 3;				\
 	if (pre != cur)				\
 		set_user_seg(seg, pre);		\
 }
@@ -72,6 +71,7 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 				   struct sigcontext_32 __user *sc)
 {
 	unsigned int tmpflags, err = 0;
+	u16 gs, fs, es, ds;
 	void __user *buf;
 	u32 tmp;
 
@@ -79,16 +79,10 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 	current->restart_block.fn = do_no_restart_syscall;
 
 	get_user_try {
-		/*
-		 * Reload fs and gs if they have changed in the signal
-		 * handler.  This does not handle long fs/gs base changes in
-		 * the handler, but does not clobber them at least in the
-		 * normal case.
-		 */
-		RELOAD_SEG(gs);
-		RELOAD_SEG(fs);
-		RELOAD_SEG(ds);
-		RELOAD_SEG(es);
+		gs = GET_SEG(gs);
+		fs = GET_SEG(fs);
+		ds = GET_SEG(ds);
+		es = GET_SEG(es);
 
 		COPY(di); COPY(si); COPY(bp); COPY(sp); COPY(bx);
 		COPY(dx); COPY(cx); COPY(ip); COPY(ax);
@@ -106,6 +100,17 @@ static int ia32_restore_sigcontext(struct pt_regs *regs,
 		buf = compat_ptr(tmp);
 	} get_user_catch(err);
 
+	/*
+	 * Reload fs and gs if they have changed in the signal
+	 * handler.  This does not handle long fs/gs base changes in
+	 * the handler, but does not clobber them at least in the
+	 * normal case.
+	 */
+	RELOAD_SEG(gs);
+	RELOAD_SEG(fs);
+	RELOAD_SEG(ds);
+	RELOAD_SEG(es);
+
 	err |= fpu__restore_sig(buf, 1);
 
 	force_iret();
arch/x86/include/asm/text-patching.h +3 -1
index 05861cc08787..0bbb07eaed6b 100644
@@ -39,6 +39,7 @@ extern int poke_int3_handler(struct pt_regs *regs);
 extern void *text_poke_bp(void *addr, const void *opcode, size_t len, void *handler);
 extern int after_bootmem;
 
+#ifndef CONFIG_UML_X86
 static inline void int3_emulate_jmp(struct pt_regs *regs, unsigned long ip)
 {
 	regs->ip = ip;
@@ -65,6 +66,7 @@ static inline void int3_emulate_call(struct pt_regs *regs, unsigned long func)
 	int3_emulate_push(regs, regs->ip - INT3_INSN_SIZE + CALL_INSN_SIZE);
 	int3_emulate_jmp(regs, func);
 }
-#endif
+#endif /* CONFIG_X86_64 */
+#endif /* !CONFIG_UML_X86 */
 
 #endif /* _ASM_X86_TEXT_PATCHING_H */
arch/x86/kernel/alternative.c +21 -7
index b9d5e7c9ef43..918a23704c0c 100644
@@ -662,15 +662,29 @@ void __init alternative_instructions(void)
  * handlers seeing an inconsistent instruction while you patch.
  */
 void *__init_or_module text_poke_early(void *addr, const void *opcode,
-					      size_t len)
+				       size_t len)
 {
 	unsigned long flags;
-	local_irq_save(flags);
-	memcpy(addr, opcode, len);
-	local_irq_restore(flags);
-	sync_core();
-	/* Could also do a CLFLUSH here to speed up CPU recovery; but
-	   that causes hangs on some VIA CPUs. */
+
+	if (boot_cpu_has(X86_FEATURE_NX) &&
+	    is_module_text_address((unsigned long)addr)) {
+		/*
+		 * Modules text is marked initially as non-executable, so the
+		 * code cannot be running and speculative code-fetches are
+		 * prevented. Just change the code.
+		 */
+		memcpy(addr, opcode, len);
+	} else {
+		local_irq_save(flags);
+		memcpy(addr, opcode, len);
+		local_irq_restore(flags);
+		sync_core();
+
+		/*
+		 * Could also do a CLFLUSH here to speed up CPU recovery; but
+		 * that causes hangs on some VIA CPUs.
+		 */
+	}
 	return addr;
 }
 
arch/x86/kernel/cpu/mcheck/mce-inject.c +7 -7
index c805a06e14c3..ff1c00b695ae 100644
@@ -46,8 +46,6 @@
 static struct mce i_mce;
 static struct dentry *dfs_inj;
 
-static u8 n_banks;
-
 #define MAX_FLAG_OPT_SIZE	4
 #define NBCFG			0x44
 
@@ -567,9 +565,15 @@ static void do_inject(void)
 static int inj_bank_set(void *data, u64 val)
 {
 	struct mce *m = (struct mce *)data;
+	u8 n_banks;
+	u64 cap;
+
+	/* Get bank count on target CPU so we can handle non-uniform values. */
+	rdmsrl_on_cpu(m->extcpu, MSR_IA32_MCG_CAP, &cap);
+	n_banks = cap & MCG_BANKCNT_MASK;
 
 	if (val >= n_banks) {
-		pr_err("Non-existent MCE bank: %llu\n", val);
+		pr_err("MCA bank %llu non-existent on CPU%d\n", val, m->extcpu);
 		return -EINVAL;
 	}
 
@@ -659,10 +663,6 @@ static struct dfs_node {
 static int __init debugfs_init(void)
 {
 	unsigned int i;
-	u64 cap;
-
-	rdmsrl(MSR_IA32_MCG_CAP, cap);
-	n_banks = cap & MCG_BANKCNT_MASK;
 
 	dfs_inj = debugfs_create_dir("mce-inject", NULL);
 	if (!dfs_inj)
arch/x86/kernel/cpu/mcheck/mce.c +44 -22

110 lines not on this page · raw message

arch/x86/kernel/cpu/microcode/core.c +2 -1
index b9bc8a1a584e..b43ddefd77f4 100644
@@ -418,8 +418,9 @@ static int do_microcode_update(const void __user *buf, size_t size)
 		if (ustate == UCODE_ERROR) {
 			error = -1;
 			break;
-		} else if (ustate == UCODE_OK)
+		} else if (ustate == UCODE_NEW) {
 			apply_microcode_on_target(cpu);
+		}
 	}
 
 	return error;
arch/x86/kernel/irq_64.c +14 -5
index 0469cd078db1..b50ac9c7397b 100644
@@ -26,9 +26,18 @@ int sysctl_panic_on_stackoverflow;
 /*
  * Probabilistic stack overflow check:
  *
- * Only check the stack in process context, because everything else
- * runs on the big interrupt stacks. Checking reliably is too expensive,
- * so we just check from interrupts.
+ * Regular device interrupts can enter on the following stacks:
+ *
+ * - User stack
+ *
+ * - Kernel task stack
+ *
+ * - Interrupt stack if a device driver reenables interrupts
+ *   which should only happen in really old drivers.
+ *
+ * - Debug IST stack
+ *
+ * All other contexts are invalid.
  */
 static inline void stack_overflow_check(struct pt_regs *regs)
 {
@@ -53,8 +62,8 @@ static inline void stack_overflow_check(struct pt_regs *regs)
 		return;
 
 	oist = this_cpu_ptr(&orig_ist);
-	estack_top = (u64)oist->ist[0] - EXCEPTION_STKSZ + STACK_TOP_MARGIN;
-	estack_bottom = (u64)oist->ist[N_EXCEPTION_STACKS - 1];
+	estack_bottom = (u64)oist->ist[DEBUG_STACK];
+	estack_top = estack_bottom - DEBUG_STKSZ + STACK_TOP_MARGIN;
 	if (regs->sp >= estack_top && regs->sp <= estack_bottom)
 		return;
 
arch/x86/kernel/module.c +1 -1
index f58336af095c..6645f123419c 100644
@@ -87,7 +87,7 @@ void *module_alloc(unsigned long size)
 	p = __vmalloc_node_range(size, MODULE_ALIGN,
 				    MODULES_VADDR + get_module_load_offset(),
 				    MODULES_END, GFP_KERNEL,
-				    PAGE_KERNEL_EXEC, 0, NUMA_NO_NODE,
+				    PAGE_KERNEL, 0, NUMA_NO_NODE,
 				    __builtin_return_address(0));
 	if (p && (kasan_module_alloc(p, size) < 0)) {
 		vfree(p);
arch/x86/kernel/signal.c +17 -12
index 92a3b312a53c..44e647a65de8 100644
@@ -132,16 +132,6 @@ static int restore_sigcontext(struct pt_regs *regs,
 		COPY_SEG_CPL3(cs);
 		COPY_SEG_CPL3(ss);
 
-#ifdef CONFIG_X86_64
-		/*
-		 * Fix up SS if needed for the benefit of old DOSEMU and
-		 * CRIU.
-		 */
-		if (unlikely(!(uc_flags & UC_STRICT_RESTORE_SS) &&
-			     user_64bit_mode(regs)))
-			force_valid_ss(regs);
-#endif
-
 		get_user_ex(tmpflags, &sc->flags);
 		regs->flags = (regs->flags & ~FIX_EFLAGS) | (tmpflags & FIX_EFLAGS);
 		regs->orig_ax = -1;		/* disable syscall checks */
@@ -150,6 +140,15 @@ static int restore_sigcontext(struct pt_regs *regs,
 		buf = (void __user *)buf_val;
 	} get_user_catch(err);
 
+#ifdef CONFIG_X86_64
+	/*
+	 * Fix up SS if needed for the benefit of old DOSEMU and
+	 * CRIU.
+	 */
+	if (unlikely(!(uc_flags & UC_STRICT_RESTORE_SS) && user_64bit_mode(regs)))
+		force_valid_ss(regs);
+#endif
+
 	err |= fpu__restore_sig(buf, IS_ENABLED(CONFIG_X86_32));
 
 	force_iret();
@@ -461,6 +460,7 @@ static int __setup_rt_frame(int sig, struct ksignal *ksig,
 {
 	struct rt_sigframe __user *frame;
 	void __user *fp = NULL;
+	unsigned long uc_flags;
 	int err = 0;
 
 	frame = get_sigframe(&ksig->ka, regs, sizeof(struct rt_sigframe), &fp);
@@ -473,9 +473,11 @@ static int __setup_rt_frame(int sig, struct ksignal *ksig,
 			return -EFAULT;
 	}
 
+	uc_flags = frame_uc_flags(regs);
+
 	put_user_try {
 		/* Create the ucontext.  */
-		put_user_ex(frame_uc_flags(regs), &frame->uc.uc_flags);
+		put_user_ex(uc_flags, &frame->uc.uc_flags);
 		put_user_ex(0, &frame->uc.uc_link);
 		save_altstack_ex(&frame->uc.uc_stack, regs->sp);
 
@@ -541,6 +543,7 @@ static int x32_setup_rt_frame(struct ksignal *ksig,
 {
 #ifdef CONFIG_X86_X32_ABI
 	struct rt_sigframe_x32 __user *frame;
+	unsigned long uc_flags;
 	void __user *restorer;
 	int err = 0;
 	void __user *fpstate = NULL;
@@ -555,9 +558,11 @@ static int x32_setup_rt_frame(struct ksignal *ksig,
 			return -EFAULT;
 	}
 
+	uc_flags = frame_uc_flags(regs);
+
 	put_user_try {
 		/* Create the ucontext.  */
-		put_user_ex(frame_uc_flags(regs), &frame->uc.uc_flags);
+		put_user_ex(uc_flags, &frame->uc.uc_flags);
 		put_user_ex(0, &frame->uc.uc_link);
 		compat_save_altstack_ex(&frame->uc.uc_stack, regs->sp);
 		put_user_ex(0, &frame->uc.uc__pad0);
arch/x86/kernel/vmlinux.lds.S +3 -3
index 85e6d5620188..2fb152d813c1 100644
@@ -151,11 +151,11 @@ SECTIONS
 		*(.text.__x86.indirect_thunk)
 		__indirect_thunk_end = .;
 #endif
-
-		/* End of text section */
-		_etext = .;
 	} :text = 0x9090
 
+	/* End of text section */
+	_etext = .;
+
 	NOTES :text :note
 
 	EXCEPTION_TABLE(16) :text = 0x9090
arch/x86/kvm/svm.c +5 -1
index 8dd9208ae4de..ea454d3f7763 100644
@@ -2022,7 +2022,11 @@ static void avic_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
 	if (!kvm_vcpu_apicv_active(vcpu))
 		return;
 
-	if (WARN_ON(h_physical_id >= AVIC_MAX_PHYSICAL_ID_COUNT))
+	/*
+	 * Since the host physical APIC id is 8 bits,
+	 * we can support host APIC ID upto 255.
+	 */
+	if (WARN_ON(h_physical_id > AVIC_PHYSICAL_ID_ENTRY_HOST_PHYSICAL_ID_MASK))
 		return;
 
 	entry = READ_ONCE(*(svm->avic_physical_id_cache));
arch/x86/kvm/x86.c +1 -1
index d0eb37c069b8..be4ba0975a0f 100644
@@ -1188,7 +1188,7 @@ static int set_efer(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
 	u64 efer = msr_info->data;
 
 	if (efer & efer_reserved_bits)
-		return false;
+		return 1;
 
 	if (!msr_info->host_initiated) {
 		if (!__kvm_valid_efer(vcpu, efer))
arch/x86/lib/memcpy_64.S +2 -1
index 3b24dc05251c..9d05572370ed 100644
@@ -257,6 +257,7 @@ ENTRY(__memcpy_mcsafe)
 	/* Copy successful. Return zero */
 .L_done_memcpy_trap:
 	xorl %eax, %eax
+.L_done:
 	ret
 ENDPROC(__memcpy_mcsafe)
 EXPORT_SYMBOL_GPL(__memcpy_mcsafe)
@@ -273,7 +274,7 @@ EXPORT_SYMBOL_GPL(__memcpy_mcsafe)
 	addl	%edx, %ecx
 .E_trailing_bytes:
 	mov	%ecx, %eax
-	ret
+	jmp	.L_done
 
 	/*
 	 * For write fault handling, given the destination is unaligned,
arch/x86/mm/fault.c +0 -2
index 47bebfe6efa7..9d9765e4d1ef 100644
@@ -427,8 +427,6 @@ static noinline int vmalloc_fault(unsigned long address)
 	if (!(address >= VMALLOC_START && address < VMALLOC_END))
 		return -1;
 
-	WARN_ON_ONCE(in_nmi());
-
 	/*
 	 * Copy kernel mappings over when needed. This can also
 	 * happen within a race in page table update. In the later
block/genhd.c +19 -0
index be5bab20b2ab..2b2a936cf848 100644
@@ -518,6 +518,18 @@ void blk_free_devt(dev_t devt)
 	}
 }
 
+/**
+ *	We invalidate devt by assigning NULL pointer for devt in idr.
+ */
+void blk_invalidate_devt(dev_t devt)
+{
+	if (MAJOR(devt) == BLOCK_EXT_MAJOR) {
+		spin_lock_bh(&ext_devt_lock);
+		idr_replace(&ext_devt_idr, NULL, blk_mangle_minor(MINOR(devt)));
+		spin_unlock_bh(&ext_devt_lock);
+	}
+}
+
 static char *bdevt_str(dev_t devt, char *buf)
 {
 	if (MAJOR(devt) <= 0xff && MINOR(devt) <= 0xff) {
@@ -769,6 +781,13 @@ void del_gendisk(struct gendisk *disk)
 
 	if (!(disk->flags & GENHD_FL_HIDDEN))
 		blk_unregister_region(disk_devt(disk), disk->minors);
+	/*
+	 * Remove gendisk pointer from idr so that it cannot be looked up
+	 * while RCU period before freeing gendisk is running to prevent
+	 * use-after-free issues. Note that the device number stays
+	 * "in-use" until we really free the gendisk.
+	 */
+	blk_invalidate_devt(disk_devt(disk));
 
 	kobject_put(disk->part0.holder_dir);
 	kobject_put(disk->slave_dir);
block/partition-generic.c +7 -0
index 5f8db5c5140f..98d60a59b843 100644
@@ -289,6 +289,13 @@ void delete_partition(struct gendisk *disk, int partno)
 	kobject_put(part->holder_dir);
 	device_del(part_to_dev(part));
 
+	/*
+	 * Remove gendisk pointer from idr so that it cannot be looked up
+	 * while RCU period before freeing gendisk is running to prevent
+	 * use-after-free issues. Note that the device number stays
+	 * "in-use" until we really free the gendisk.
+	 */
+	blk_invalidate_devt(part_devt(part));
 	hd_struct_kill(part);
 }
 
block/sed-opal.c +6 -3
index e0de4dd448b3..119640897293 100644
@@ -2095,13 +2095,16 @@ static int opal_erase_locking_range(struct opal_dev *dev,
 static int opal_enable_disable_shadow_mbr(struct opal_dev *dev,
 					  struct opal_mbr_data *opal_mbr)
 {
+	u8 enable_disable = opal_mbr->enable_disable == OPAL_MBR_ENABLE ?
+		OPAL_TRUE : OPAL_FALSE;
+
 	const struct opal_step mbr_steps[] = {
 		{ opal_discovery0, },
 		{ start_admin1LSP_opal_session, &opal_mbr->key },
-		{ set_mbr_done, &opal_mbr->enable_disable },
+		{ set_mbr_done, &enable_disable },
 		{ end_opal_session, },
 		{ start_admin1LSP_opal_session, &opal_mbr->key },
-		{ set_mbr_enable_disable, &opal_mbr->enable_disable },
+		{ set_mbr_enable_disable, &enable_disable },
 		{ end_opal_session, },
 		{ NULL, }
 	};
@@ -2221,7 +2224,7 @@ static int __opal_lock_unlock(struct opal_dev *dev,
 
 static int __opal_set_mbr_done(struct opal_dev *dev, struct opal_key *key)
 {
-	u8 mbr_done_tf = 1;
+	u8 mbr_done_tf = OPAL_TRUE;
 	const struct opal_step mbrdone_step [] = {
 		{ opal_discovery0, },
 		{ start_admin1LSP_opal_session, key },
drivers/acpi/arm64/iort.c +14 -5
index e48eebc27b81..43c2615434b4 100644
@@ -1231,18 +1231,24 @@ static bool __init arm_smmu_v3_is_coherent(struct acpi_iort_node *node)
 /*
  * set numa proximity domain for smmuv3 device
  */
-static void  __init arm_smmu_v3_set_proximity(struct device *dev,
+static int  __init arm_smmu_v3_set_proximity(struct device *dev,
 					      struct acpi_iort_node *node)
 {
 	struct acpi_iort_smmu_v3 *smmu;
 
 	smmu = (struct acpi_iort_smmu_v3 *)node->node_data;
 	if (smmu->flags & ACPI_IORT_SMMU_V3_PXM_VALID) {
-		set_dev_node(dev, acpi_map_pxm_to_node(smmu->pxm));
+		int node = acpi_map_pxm_to_node(smmu->pxm);
+
+		if (node != NUMA_NO_NODE && !node_online(node))
+			return -EINVAL;
+
+		set_dev_node(dev, node);
 		pr_info("SMMU-v3[%llx] Mapped to Proximity domain %d\n",
 			smmu->base_address,
 			smmu->pxm);
 	}
+	return 0;
 }
 #else
 #define arm_smmu_v3_set_proximity NULL
@@ -1317,7 +1323,7 @@ struct iort_dev_config {
 	int (*dev_count_resources)(struct acpi_iort_node *node);
 	void (*dev_init_resources)(struct resource *res,
 				     struct acpi_iort_node *node);
-	void (*dev_set_proximity)(struct device *dev,
+	int (*dev_set_proximity)(struct device *dev,
 				    struct acpi_iort_node *node);
 };
 
@@ -1368,8 +1374,11 @@ static int __init iort_add_platform_device(struct acpi_iort_node *node,
 	if (!pdev)
 		return -ENOMEM;
 
-	if (ops->dev_set_proximity)
-		ops->dev_set_proximity(&pdev->dev, node);
+	if (ops->dev_set_proximity) {
+		ret = ops->dev_set_proximity(&pdev->dev, node);
+		if (ret)
+			goto dev_put;
+	}
 
 	count = ops->dev_count_resources(node);
 
drivers/acpi/property.c +8 -0
index 693cf05b0cc4..288673cff85e 100644
@@ -975,6 +975,14 @@ struct fwnode_handle *acpi_get_next_subnode(const struct fwnode_handle *fwnode,
 		const struct acpi_data_node *data = to_acpi_data_node(fwnode);
 		struct acpi_data_node *dn;
 
+		/*
+		 * We can have a combination of device and data nodes, e.g. with
+		 * hierarchical _DSD properties. Make sure the adev pointer is
+		 * restored before going through data nodes, otherwise we will
+		 * be looking for data_nodes below the last device found instead
+		 * of the common fwnode shared by device_nodes and data_nodes.
+		 */
+		adev = to_acpi_device_node(fwnode);
 		if (adev)
 			head = &adev->data.subnodes;
 		else if (data)
drivers/base/power/main.c +4 -0
index a690fd400260..4abd7c6531d9 100644
@@ -1736,6 +1736,10 @@ static int __device_suspend(struct device *dev, pm_message_t state, bool async)
 	if (dev->power.syscore)
 		goto Complete;
 
+	/* Avoid direct_complete to let wakeup_path propagate. */
+	if (device_may_wakeup(dev) || dev->power.wakeup_path)
+		dev->power.direct_complete = false;
+
 	if (dev->power.direct_complete) {
 		if (pm_runtime_status_suspended(dev)) {
 			pm_runtime_disable(dev);
drivers/bluetooth/hci_qca.c +2 -0
index f0d593c3fa72..77004c29da08 100644
@@ -504,6 +504,8 @@ static int qca_open(struct hci_uart *hu)
 		qcadev = serdev_device_get_drvdata(hu->serdev);
 		if (qcadev->btsoc_type != QCA_WCN3990) {
 			gpiod_set_value_cansleep(qcadev->bt_en, 1);
+			/* Controller needs time to bootup. */
+			msleep(150);
 		} else {
 			hu->init_speed = qcadev->init_speed;
 			hu->oper_speed = qcadev->oper_speed;
drivers/char/hw_random/omap-rng.c +1 -0
index b65ff6962899..e9b6ac61fb7f 100644
@@ -443,6 +443,7 @@ static int omap_rng_probe(struct platform_device *pdev)
 	priv->rng.read = omap_rng_do_read;
 	priv->rng.init = omap_rng_init;
 	priv->rng.cleanup = omap_rng_cleanup;
+	priv->rng.quality = 900;
 
 	priv->rng.priv = (unsigned long)priv;
 	platform_set_drvdata(pdev, priv);
drivers/char/random.c +31 -26

122 lines not on this page · raw message

drivers/char/virtio_console.c +2 -1
index 5b5b5d72eab7..c55f6aeb4227 100644
@@ -75,7 +75,7 @@ struct ports_driver_data {
 	/* All the console devices handled by this driver */
 	struct list_head consoles;
 };
-static struct ports_driver_data pdrvdata;
+static struct ports_driver_data pdrvdata = { .next_vtermno = 1};
 
 static DEFINE_SPINLOCK(pdrvdata_lock);
 static DECLARE_COMPLETION(early_console_added);
@@ -1405,6 +1405,7 @@ static int add_port(struct ports_device *portdev, u32 id)
 	port->async_queue = NULL;
 
 	port->cons.ws.ws_row = port->cons.ws.ws_col = 0;
+	port->cons.vtermno = 0;
 
 	port->host_connected = port->guest_connected = false;
 	port->stats = (struct port_stats) { 0 };
drivers/clk/rockchip/clk-rk3288.c +9 -12
index 450de24a1b42..64191694ff6e 100644
@@ -198,7 +198,7 @@ PNAME(mux_hsadcout_p)	= { "hsadc_src", "ext_hsadc" };
 PNAME(mux_edp_24m_p)	= { "ext_edp_24m", "xin24m" };
 PNAME(mux_tspout_p)	= { "cpll", "gpll", "npll", "xin27m" };
 
-PNAME(mux_aclk_vcodec_pre_p)	= { "aclk_vepu", "aclk_vdpu" };
+PNAME(mux_aclk_vcodec_pre_p)	= { "aclk_vdpu", "aclk_vepu" };
 PNAME(mux_usbphy480m_p)		= { "sclk_otgphy1_480m", "sclk_otgphy2_480m",
 				    "sclk_otgphy0_480m" };
 PNAME(mux_hsicphy480m_p)	= { "cpll", "gpll", "usbphy480m_src" };
@@ -292,13 +292,13 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
 	COMPOSITE_NOMUX(0, "aclk_core_mp", "armclk", CLK_IGNORE_UNUSED,
 			RK3288_CLKSEL_CON(0), 4, 4, DFLAGS | CLK_DIVIDER_READ_ONLY,
 			RK3288_CLKGATE_CON(12), 6, GFLAGS),
-	COMPOSITE_NOMUX(0, "atclk", "armclk", CLK_IGNORE_UNUSED,
+	COMPOSITE_NOMUX(0, "atclk", "armclk", 0,
 			RK3288_CLKSEL_CON(37), 4, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
 			RK3288_CLKGATE_CON(12), 7, GFLAGS),
 	COMPOSITE_NOMUX(0, "pclk_dbg_pre", "armclk", CLK_IGNORE_UNUSED,
 			RK3288_CLKSEL_CON(37), 9, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
 			RK3288_CLKGATE_CON(12), 8, GFLAGS),
-	GATE(0, "pclk_dbg", "pclk_dbg_pre", CLK_IGNORE_UNUSED,
+	GATE(0, "pclk_dbg", "pclk_dbg_pre", 0,
 			RK3288_CLKGATE_CON(12), 9, GFLAGS),
 	GATE(0, "cs_dbg", "pclk_dbg_pre", CLK_IGNORE_UNUSED,
 			RK3288_CLKGATE_CON(12), 10, GFLAGS),
@@ -399,7 +399,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
 	COMPOSITE(0, "aclk_vdpu", mux_pll_src_cpll_gpll_usb480m_p, 0,
 			RK3288_CLKSEL_CON(32), 14, 2, MFLAGS, 8, 5, DFLAGS,
 			RK3288_CLKGATE_CON(3), 11, GFLAGS),
-	MUXGRF(0, "aclk_vcodec_pre", mux_aclk_vcodec_pre_p, 0,
+	MUXGRF(0, "aclk_vcodec_pre", mux_aclk_vcodec_pre_p, CLK_SET_RATE_PARENT,
 			RK3288_GRF_SOC_CON(0), 7, 1, MFLAGS),
 	GATE(ACLK_VCODEC, "aclk_vcodec", "aclk_vcodec_pre", 0,
 		RK3288_CLKGATE_CON(9), 0, GFLAGS),
@@ -626,7 +626,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
 	INVERTER(SCLK_HSADC, "sclk_hsadc", "sclk_hsadc_out",
 			RK3288_CLKSEL_CON(22), 7, IFLAGS),
 
-	GATE(0, "jtag", "ext_jtag", CLK_IGNORE_UNUSED,
+	GATE(0, "jtag", "ext_jtag", 0,
 			RK3288_CLKGATE_CON(4), 14, GFLAGS),
 
 	COMPOSITE_NODIV(SCLK_USBPHY480M_SRC, "usbphy480m_src", mux_usbphy480m_p, 0,
@@ -635,7 +635,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
 	COMPOSITE_NODIV(SCLK_HSICPHY480M, "sclk_hsicphy480m", mux_hsicphy480m_p, 0,
 			RK3288_CLKSEL_CON(29), 0, 2, MFLAGS,
 			RK3288_CLKGATE_CON(3), 6, GFLAGS),
-	GATE(0, "hsicphy12m_xin12m", "xin12m", CLK_IGNORE_UNUSED,
+	GATE(0, "hsicphy12m_xin12m", "xin12m", 0,
 			RK3288_CLKGATE_CON(13), 9, GFLAGS),
 	DIV(0, "hsicphy12m_usbphy", "sclk_hsicphy480m", 0,
 			RK3288_CLKSEL_CON(11), 8, 6, DFLAGS),
@@ -676,7 +676,7 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = {
 	GATE(PCLK_TZPC, "pclk_tzpc", "pclk_cpu", 0, RK3288_CLKGATE_CON(11), 3, GFLAGS),
 	GATE(PCLK_UART2, "pclk_uart2", "pclk_cpu", 0, RK3288_CLKGATE_CON(11), 9, GFLAGS),
 	GATE(PCLK_EFUSE256, "pclk_efuse_256", "pclk_cpu", 0, RK3288_CLKGATE_CON(11), 10, GFLAGS),
-	GATE(PCLK_RKPWM, "pclk_rkpwm", "pclk_cpu", CLK_IGNORE_UNUSED, RK3288_CLKGATE_CON(11), 11, GFLAGS),
+	GATE(PCLK_RKPWM, "pclk_rkpwm", "pclk_cpu", 0, RK3288_CLKGATE_CON(11), 11, GFLAGS),
 
 	/* ddrctrl [DDR Controller PHY clock] gates */
 	GATE(0, "nclk_ddrupctl0", "ddrphy", CLK_IGNORE_UNUSED, RK3288_CLKGATE_CON(11), 4, GFLAGS),
@@ -816,12 +816,9 @@ static const char *const rk3288_critical_clocks[] __initconst = {
 	"pclk_alive_niu",
 	"pclk_pd_pmu",
 	"pclk_pmu_niu",
-	"pclk_core_niu",
-	"pclk_ddrupctl0",
-	"pclk_publ0",
-	"pclk_ddrupctl1",
-	"pclk_publ1",
 	"pmu_hclk_otg0",
+	/* pwm-regulators on some boards, so handoff-critical later */
+	"pclk_rkpwm",
 };
 
 static void __iomem *rk3288_cru_base;
drivers/cpufreq/cpufreq.c +1 -0
index 505c9a55d555..d3213594d1a7 100644
@@ -1103,6 +1103,7 @@ static struct cpufreq_policy *cpufreq_policy_alloc(unsigned int cpu)
 				   cpufreq_global_kobject, "policy%u", cpu);
 	if (ret) {
 		pr_err("%s: failed to init policy->kobj: %d\n", __func__, ret);
+		kobject_put(&policy->kobj);
 		goto err_free_real_cpus;
 	}
 
drivers/cpufreq/cpufreq_governor.c +2 -0
index 6d53f7d9fc7a..69fc5cf4782f 100644
@@ -459,6 +459,8 @@ int cpufreq_dbs_governor_init(struct cpufreq_policy *policy)
 	/* Failure, so roll back. */
 	pr_err("initialization failed (dbs_data kobject init error %d)\n", ret);
 
+	kobject_put(&dbs_data->attr_set.kobj);
+
 	policy->governor_data = NULL;
 
 	if (!have_governor_per_policy())
drivers/cpufreq/kirkwood-cpufreq.c +11 -8
index c2dd43f3f5d8..8d63a6dc8383 100644
@@ -124,13 +124,14 @@ static int kirkwood_cpufreq_probe(struct platform_device *pdev)
 	priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk");
 	if (IS_ERR(priv.cpu_clk)) {
 		dev_err(priv.dev, "Unable to get cpuclk\n");
-		return PTR_ERR(priv.cpu_clk);
+		err = PTR_ERR(priv.cpu_clk);
+		goto out_node;
 	}
 
 	err = clk_prepare_enable(priv.cpu_clk);
 	if (err) {
 		dev_err(priv.dev, "Unable to prepare cpuclk\n");
-		return err;
+		goto out_node;
 	}
 
 	kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000;
@@ -161,20 +162,22 @@ static int kirkwood_cpufreq_probe(struct platform_device *pdev)
 		goto out_ddr;
 	}
 
-	of_node_put(np);
-	np = NULL;
-
 	err = cpufreq_register_driver(&kirkwood_cpufreq_driver);
-	if (!err)
-		return 0;
+	if (err) {
+		dev_err(priv.dev, "Failed to register cpufreq driver\n");
+		goto out_powersave;
+	}
 
-	dev_err(priv.dev, "Failed to register cpufreq driver\n");
+	of_node_put(np);
+	return 0;
 
+out_powersave:
 	clk_disable_unprepare(priv.powersave_clk);
 out_ddr:
 	clk_disable_unprepare(priv.ddr_clk);
 out_cpu:
 	clk_disable_unprepare(priv.cpu_clk);
+out_node:
 	of_node_put(np);
 
 	return err;
drivers/cpufreq/pasemi-cpufreq.c +1 -0
index 75dfbd2a58ea..c7710c149de8 100644
@@ -146,6 +146,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)
 
 	cpu = of_get_cpu_node(policy->cpu, NULL);
 
+	of_node_put(cpu);
 	if (!cpu)
 		goto out;
 
drivers/cpufreq/pmac32-cpufreq.c +2 -0
index 61ae06ca008e..e225edb5c359 100644
@@ -552,6 +552,7 @@ static int pmac_cpufreq_init_7447A(struct device_node *cpunode)
 	volt_gpio_np = of_find_node_by_name(NULL, "cpu-vcore-select");
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
+	of_node_put(volt_gpio_np);
 	if (!voltage_gpio){
 		pr_err("missing cpu-vcore-select gpio\n");
 		return 1;
@@ -588,6 +589,7 @@ static int pmac_cpufreq_init_750FX(struct device_node *cpunode)
 	if (volt_gpio_np)
 		voltage_gpio = read_gpio(volt_gpio_np);
 
+	of_node_put(volt_gpio_np);
 	pvr = mfspr(SPRN_PVR);
 	has_cpu_l2lve = !((pvr & 0xf00) == 0x100);
 
drivers/cpufreq/ppc_cbe_cpufreq.c +1 -0
index 41a0f0be3f9f..8414c3a4ea08 100644
@@ -86,6 +86,7 @@ static int cbe_cpufreq_cpu_init(struct cpufreq_policy *policy)
 	if (!cbe_get_cpu_pmd_regs(policy->cpu) ||
 	    !cbe_get_cpu_mic_tm_regs(policy->cpu)) {
 		pr_info("invalid CBE regs pointers for cpufreq\n");
+		of_node_put(cpu);
 		return -EINVAL;
 	}
 
drivers/crypto/sunxi-ss/sun4i-ss-hash.c +4 -1
index a4b5ff2b72f8..f6936bb3b7be 100644
@@ -240,7 +240,10 @@ static int sun4i_hash(struct ahash_request *areq)
 		}
 	} else {
 		/* Since we have the flag final, we can go up to modulo 4 */
-		end = ((areq->nbytes + op->len) / 4) * 4 - op->len;
+		if (areq->nbytes < 4)
+			end = 0;
+		else
+			end = ((areq->nbytes + op->len) / 4) * 4 - op->len;
 	}
 
 	/* TODO if SGlen % 4 and !op->len then DMA */
drivers/crypto/vmx/aesp8-ppc.pl +1 -1
index de78282b8f44..9c6b5c1d6a1a 100644
@@ -1357,7 +1357,7 @@ Loop_ctr32_enc:
 	addi		$idx,$idx,16
 	bdnz		Loop_ctr32_enc
 
-	vadduwm		$ivec,$ivec,$one
+	vadduqm		$ivec,$ivec,$one
 	 vmr		$dat,$inptail
 	 lvx		$inptail,0,$inp
 	 addi		$inp,$inp,16
drivers/dma/at_xdmac.c +5 -1
index a75b95fac3bd..db5b8fe1dd4a 100644
@@ -1606,7 +1606,11 @@ static void at_xdmac_tasklet(unsigned long data)
 					struct at_xdmac_desc,
 					xfer_node);
 		dev_vdbg(chan2dev(&atchan->chan), "%s: desc 0x%p\n", __func__, desc);
-		BUG_ON(!desc->active_xfer);
+		if (!desc->active_xfer) {
+			dev_err(chan2dev(&atchan->chan), "Xfer not active: exiting");
+			spin_unlock_bh(&atchan->lock);
+			return;
+		}
 
 		txd = &desc->tx_dma_desc;
 
drivers/dma/pl330.c +7 -3
index 88750a34e859..bc8050c025b7 100644
@@ -961,6 +961,7 @@ static void _stop(struct pl330_thread *thrd)
 {
 	void __iomem *regs = thrd->dmac->base;
 	u8 insn[6] = {0, 0, 0, 0, 0, 0};
+	u32 inten = readl(regs + INTEN);
 
 	if (_state(thrd) == PL330_STATE_FAULT_COMPLETING)
 		UNTIL(thrd, PL330_STATE_FAULTING | PL330_STATE_KILLING);
@@ -973,10 +974,13 @@ static void _stop(struct pl330_thread *thrd)
 
 	_emit_KILL(0, insn);
 
-	/* Stop generating interrupts for SEV */
-	writel(readl(regs + INTEN) & ~(1 << thrd->ev), regs + INTEN);
-
 	_execute_DBGINSN(thrd, insn, is_manager(thrd));
+
+	/* clear the event */
+	if (inten & (1 << thrd->ev))
+		writel(1 << thrd->ev, regs + INTCLR);
+	/* Stop generating interrupts for SEV */
+	writel(inten & ~(1 << thrd->ev), regs + INTEN);
 }
 
 /* Start doing req 'idx' of thread 'thrd' */
drivers/dma/tegra210-adma.c +13 -15
index b26256f23d67..09b6756366c3 100644
@@ -22,7 +22,6 @@
 #include <linux/of_device.h>
 #include <linux/of_dma.h>
 #include <linux/of_irq.h>
-#include <linux/pm_clock.h>
 #include <linux/pm_runtime.h>
 #include <linux/slab.h>
 
@@ -141,6 +140,7 @@ struct tegra_adma {
 	struct dma_device		dma_dev;
 	struct device			*dev;
 	void __iomem			*base_addr;
+	struct clk			*ahub_clk;
 	unsigned int			nr_channels;
 	unsigned long			rx_requests_reserved;
 	unsigned long			tx_requests_reserved;
@@ -637,8 +637,9 @@ static int tegra_adma_runtime_suspend(struct device *dev)
 	struct tegra_adma *tdma = dev_get_drvdata(dev);
 
 	tdma->global_cmd = tdma_read(tdma, ADMA_GLOBAL_CMD);
+	clk_disable_unprepare(tdma->ahub_clk);
 
-	return pm_clk_suspend(dev);
+	return 0;
 }
 
 static int tegra_adma_runtime_resume(struct device *dev)
@@ -646,10 +647,11 @@ static int tegra_adma_runtime_resume(struct device *dev)
 	struct tegra_adma *tdma = dev_get_drvdata(dev);
 	int ret;
 
-	ret = pm_clk_resume(dev);
-	if (ret)
+	ret = clk_prepare_enable(tdma->ahub_clk);
+	if (ret) {
+		dev_err(dev, "ahub clk_enable failed: %d\n", ret);
 		return ret;
-
+	}
 	tdma_write(tdma, ADMA_GLOBAL_CMD, tdma->global_cmd);
 
 	return 0;
@@ -692,13 +694,11 @@ static int tegra_adma_probe(struct platform_device *pdev)
 	if (IS_ERR(tdma->base_addr))
 		return PTR_ERR(tdma->base_addr);
 
-	ret = pm_clk_create(&pdev->dev);
-	if (ret)
-		return ret;
-
-	ret = of_pm_clk_add_clk(&pdev->dev, "d_audio");
-	if (ret)
-		goto clk_destroy;
+	tdma->ahub_clk = devm_clk_get(&pdev->dev, "d_audio");
+	if (IS_ERR(tdma->ahub_clk)) {
+		dev_err(&pdev->dev, "Error: Missing ahub controller clock\n");
+		return PTR_ERR(tdma->ahub_clk);
+	}
 
 	pm_runtime_enable(&pdev->dev);
 
@@ -775,8 +775,6 @@ static int tegra_adma_probe(struct platform_device *pdev)
 	pm_runtime_put_sync(&pdev->dev);
 rpm_disable:
 	pm_runtime_disable(&pdev->dev);
-clk_destroy:
-	pm_clk_destroy(&pdev->dev);
 
 	return ret;
 }
@@ -786,6 +784,7 @@ static int tegra_adma_remove(struct platform_device *pdev)
 	struct tegra_adma *tdma = platform_get_drvdata(pdev);
 	int i;
 
+	of_dma_controller_free(pdev->dev.of_node);
 	dma_async_device_unregister(&tdma->dma_dev);
 
 	for (i = 0; i < tdma->nr_channels; ++i)
@@ -793,7 +792,6 @@ static int tegra_adma_remove(struct platform_device *pdev)
 
 	pm_runtime_put_sync(&pdev->dev);
 	pm_runtime_disable(&pdev->dev);
-	pm_clk_destroy(&pdev->dev);
 
 	return 0;
 }
drivers/extcon/extcon-arizona.c +10 -0
index da0e9bc4262f..9327479c719c 100644
@@ -1726,6 +1726,16 @@ static int arizona_extcon_remove(struct platform_device *pdev)
 	struct arizona_extcon_info *info = platform_get_drvdata(pdev);
 	struct arizona *arizona = info->arizona;
 	int jack_irq_rise, jack_irq_fall;
+	bool change;
+
+	regmap_update_bits_check(arizona->regmap, ARIZONA_MIC_DETECT_1,
+				 ARIZONA_MICD_ENA, 0,
+				 &change);
+
+	if (change) {
+		regulator_disable(info->micvdd);
+		pm_runtime_put(info->dev);
+	}
 
 	gpiod_put(info->micd_pol_gpio);
 
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +17 -7
index 7056925eb386..869ff624b108 100644
@@ -136,8 +136,9 @@ int amdgpu_fence_emit(struct amdgpu_ring *ring, struct dma_fence **f,
 {
 	struct amdgpu_device *adev = ring->adev;
 	struct amdgpu_fence *fence;
-	struct dma_fence *old, **ptr;
+	struct dma_fence __rcu **ptr;
 	uint32_t seq;
+	int r;
 
 	fence = kmem_cache_alloc(amdgpu_fence_slab, GFP_KERNEL);
 	if (fence == NULL)
@@ -153,15 +154,24 @@ int amdgpu_fence_emit(struct amdgpu_ring *ring, struct dma_fence **f,
 			       seq, flags | AMDGPU_FENCE_FLAG_INT);
 
 	ptr = &ring->fence_drv.fences[seq & ring->fence_drv.num_fences_mask];
+	if (unlikely(rcu_dereference_protected(*ptr, 1))) {
+		struct dma_fence *old;
+
+		rcu_read_lock();
+		old = dma_fence_get_rcu_safe(ptr);
+		rcu_read_unlock();
+
+		if (old) {
+			r = dma_fence_wait(old, false);
+			dma_fence_put(old);
+			if (r)
+				return r;
+		}
+	}
+
 	/* This function can't be called concurrently anyway, otherwise
 	 * emitting the fence would mess up the hardware ring buffer.
 	 */
-	old = rcu_dereference_protected(*ptr, 1);
-	if (old && !dma_fence_is_signaled(old)) {
-		DRM_INFO("rcu slot is busy\n");
-		dma_fence_wait(old, false);
-	}
-
 	rcu_assign_pointer(*ptr, dma_fence_get(&fence->base));
 
 	*f = &fence->base;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -2
index 76ee2de43ea6..dac7978f5ee1 100644
@@ -4369,8 +4369,7 @@ static void amdgpu_dm_commit_planes(struct drm_atomic_state *state,
 static void amdgpu_dm_crtc_copy_transient_flags(struct drm_crtc_state *crtc_state,
 						struct dc_stream_state *stream_state)
 {
-	stream_state->mode_changed =
-		crtc_state->mode_changed || crtc_state->active_changed;
+	stream_state->mode_changed = drm_atomic_crtc_needs_modeset(crtc_state);
 }
 
 static int amdgpu_dm_atomic_commit(struct drm_device *dev,
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +4 -2
index 87bf422f16be..e0a96abb3c46 100644
@@ -1401,10 +1401,12 @@ bool dc_remove_plane_from_context(
 			 * For head pipe detach surfaces from pipe for tail
 			 * pipe just zero it out
 			 */
-			if (!pipe_ctx->top_pipe) {
+			if (!pipe_ctx->top_pipe ||
+				(!pipe_ctx->top_pipe->top_pipe &&
+					pipe_ctx->top_pipe->stream_res.opp != pipe_ctx->stream_res.opp)) {
 				pipe_ctx->plane_state = NULL;
 				pipe_ctx->bottom_pipe = NULL;
-			} else  {
+			} else {
 				memset(pipe_ctx, 0, sizeof(*pipe_ctx));
 			}
 		}
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_dscl.c +15 -5
index 4a863a5dab41..321af9af95e8 100644
@@ -406,15 +406,25 @@ void dpp1_dscl_calc_lb_num_partitions(
 		int *num_part_y,
 		int *num_part_c)
 {
+	int lb_memory_size, lb_memory_size_c, lb_memory_size_a, num_partitions_a,
+	lb_bpc, memory_line_size_y, memory_line_size_c, memory_line_size_a;
+
 	int line_size = scl_data->viewport.width < scl_data->recout.width ?
 			scl_data->viewport.width : scl_data->recout.width;
 	int line_size_c = scl_data->viewport_c.width < scl_data->recout.width ?
 			scl_data->viewport_c.width : scl_data->recout.width;
-	int lb_bpc = dpp1_dscl_get_lb_depth_bpc(scl_data->lb_params.depth);
-	int memory_line_size_y = (line_size * lb_bpc + 71) / 72; /* +71 to ceil */
-	int memory_line_size_c = (line_size_c * lb_bpc + 71) / 72; /* +71 to ceil */
-	int memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */
-	int lb_memory_size, lb_memory_size_c, lb_memory_size_a, num_partitions_a;
+
+	if (line_size == 0)
+		line_size = 1;
+
+	if (line_size_c == 0)
+		line_size_c = 1;
+
+
+	lb_bpc = dpp1_dscl_get_lb_depth_bpc(scl_data->lb_params.depth);
+	memory_line_size_y = (line_size * lb_bpc + 71) / 72; /* +71 to ceil */
+	memory_line_size_c = (line_size_c * lb_bpc + 71) / 72; /* +71 to ceil */
+	memory_line_size_a = (line_size + 5) / 6; /* +5 to ceil */
 
 	if (lb_config == LB_MEMORY_CONFIG_1) {
 		lb_memory_size = 816;
drivers/gpu/drm/drm_drv.c +4 -1
index 0201ccb22f4c..d8ae4ca129c7 100644
@@ -499,7 +499,7 @@ int drm_dev_init(struct drm_device *dev,
 	}
 
 	kref_init(&dev->ref);
-	dev->dev = parent;
+	dev->dev = get_device(parent);
 	dev->driver = driver;
 
 	INIT_LIST_HEAD(&dev->filelist);
@@ -568,6 +568,7 @@ int drm_dev_init(struct drm_device *dev,
 	drm_minor_free(dev, DRM_MINOR_RENDER);
 	drm_fs_inode_free(dev->anon_inode);
 err_free:
+	put_device(dev->dev);
 	mutex_destroy(&dev->master_mutex);
 	mutex_destroy(&dev->ctxlist_mutex);
 	mutex_destroy(&dev->clientlist_mutex);
@@ -603,6 +604,8 @@ void drm_dev_fini(struct drm_device *dev)
 	drm_minor_free(dev, DRM_MINOR_PRIMARY);
 	drm_minor_free(dev, DRM_MINOR_RENDER);
 
+	put_device(dev->dev);
+
 	mutex_destroy(&dev->master_mutex);
 	mutex_destroy(&dev->ctxlist_mutex);
 	mutex_destroy(&dev->clientlist_mutex);
drivers/gpu/drm/drm_file.c +1 -0
index e4ccb52c67ea..334addaca9c5 100644
@@ -567,6 +567,7 @@ ssize_t drm_read(struct file *filp, char __user *buffer,
 				file_priv->event_space -= length;
 				list_add(&e->link, &file_priv->event_list);
 				spin_unlock_irq(&dev->event_lock);
+				wake_up_interruptible(&file_priv->event_wait);
 				break;
 			}
 
drivers/gpu/drm/etnaviv/etnaviv_drv.c +5 -0
index 83c1f46670bf..00675fcbffa2 100644
@@ -527,6 +527,9 @@ static int etnaviv_bind(struct device *dev)
 	}
 	drm->dev_private = priv;
 
+	dev->dma_parms = &priv->dma_parms;
+	dma_set_max_seg_size(dev, SZ_2G);
+
 	mutex_init(&priv->gem_lock);
 	INIT_LIST_HEAD(&priv->gem_list);
 	priv->num_gpus = 0;
@@ -564,6 +567,8 @@ static void etnaviv_unbind(struct device *dev)
 
 	component_unbind_all(dev, drm);
 
+	dev->dma_parms = NULL;
+
 	drm->dev_private = NULL;
 	kfree(priv);
 
drivers/gpu/drm/etnaviv/etnaviv_drv.h +1 -0
index 8d02d1b7dcf5..b2930d1fe97c 100644
@@ -43,6 +43,7 @@ struct etnaviv_file_private {
 
 struct etnaviv_drm_private {
 	int num_gpus;
+	struct device_dma_parameters dma_parms;
 	struct etnaviv_gpu *gpu[ETNA_MAX_PIPES];
 
 	/* list of GEM objects: */
drivers/gpu/drm/msm/adreno/a5xx_gpu.c +6 -4
index ab1d9308c311..ba6f3c14495c 100644
@@ -35,7 +35,7 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname)
 {
 	struct device *dev = &gpu->pdev->dev;
 	const struct firmware *fw;
-	struct device_node *np;
+	struct device_node *np, *mem_np;
 	struct resource r;
 	phys_addr_t mem_phys;
 	ssize_t mem_size;
@@ -49,11 +49,13 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname)
 	if (!np)
 		return -ENODEV;
 
-	np = of_parse_phandle(np, "memory-region", 0);
-	if (!np)
+	mem_np = of_parse_phandle(np, "memory-region", 0);
+	of_node_put(np);
+	if (!mem_np)
 		return -EINVAL;
 
-	ret = of_address_to_resource(np, 0, &r);
+	ret = of_address_to_resource(mem_np, 0, &r);
+	of_node_put(mem_np);
 	if (ret)
 		return ret;
 
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c +9 -3
index 157b076a1272..38c9c086754b 100644
@@ -109,7 +109,7 @@ nv50_bar_oneinit(struct nvkm_bar *base)
 	struct nvkm_device *device = bar->base.subdev.device;
 	static struct lock_class_key bar1_lock;
 	static struct lock_class_key bar2_lock;
-	u64 start, limit;
+	u64 start, limit, size;
 	int ret;
 
 	ret = nvkm_gpuobj_new(device, 0x20000, 0, false, NULL, &bar->mem);
@@ -127,7 +127,10 @@ nv50_bar_oneinit(struct nvkm_bar *base)
 
 	/* BAR2 */
 	start = 0x0100000000ULL;
-	limit = start + device->func->resource_size(device, 3);
+	size = device->func->resource_size(device, 3);
+	if (!size)
+		return -ENOMEM;
+	limit = start + size;
 
 	ret = nvkm_vmm_new(device, start, limit-- - start, NULL, 0,
 			   &bar2_lock, "bar2", &bar->bar2_vmm);
@@ -164,7 +167,10 @@ nv50_bar_oneinit(struct nvkm_bar *base)
 
 	/* BAR1 */
 	start = 0x0000000000ULL;
-	limit = start + device->func->resource_size(device, 1);
+	size = device->func->resource_size(device, 1);
+	if (!size)
+		return -ENOMEM;
+	limit = start + size;
 
 	ret = nvkm_vmm_new(device, start, limit-- - start, NULL, 0,
 			   &bar1_lock, "bar1", &bar->bar1_vmm);
drivers/gpu/drm/omapdrm/dss/dsi.c +31 -29

113 lines not on this page · raw message

drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +3 -0
index 87fa316e1d7b..58ccf648b70f 100644
@@ -248,6 +248,9 @@ static int otm8009a_init_sequence(struct otm8009a *ctx)
 	/* Send Command GRAM memory write (no parameters) */
 	dcs_write_seq(ctx, MIPI_DCS_WRITE_MEMORY_START);
 
+	/* Wait a short while to let the panel be ready before the 1st frame */
+	mdelay(10);
+
 	return 0;
 }
 
drivers/gpu/drm/pl111/pl111_versatile.c +4 -0
index b9baefdba38a..1c318ad32a8c 100644
@@ -330,6 +330,7 @@ int pl111_versatile_init(struct device *dev, struct pl111_drm_dev_private *priv)
 		ret = vexpress_muxfpga_init();
 		if (ret) {
 			dev_err(dev, "unable to initialize muxfpga driver\n");
+			of_node_put(np);
 			return ret;
 		}
 
@@ -337,17 +338,20 @@ int pl111_versatile_init(struct device *dev, struct pl111_drm_dev_private *priv)
 		pdev = of_find_device_by_node(np);
 		if (!pdev) {
 			dev_err(dev, "can't find the sysreg device, deferring\n");
+			of_node_put(np);
 			return -EPROBE_DEFER;
 		}
 		map = dev_get_drvdata(&pdev->dev);
 		if (!map) {
 			dev_err(dev, "sysreg has not yet probed\n");
 			platform_device_put(pdev);
+			of_node_put(np);
 			return -EPROBE_DEFER;
 		}
 	} else {
 		map = syscon_node_to_regmap(np);
 	}
+	of_node_put(np);
 
 	if (IS_ERR(map)) {
 		dev_err(dev, "no Versatile syscon regmap\n");
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +7 -1
index e3b34a345546..97a0573cc514 100644
@@ -357,7 +357,13 @@ static void sun6i_dsi_inst_init(struct sun6i_dsi *dsi,
 static u16 sun6i_dsi_get_video_start_delay(struct sun6i_dsi *dsi,
 					   struct drm_display_mode *mode)
 {
-	return mode->vtotal - (mode->vsync_end - mode->vdisplay) + 1;
+	u16 start = clamp(mode->vtotal - mode->vdisplay - 10, 8, 100);
+	u16 delay = mode->vtotal - (mode->vsync_end - mode->vdisplay) + start;
+
+	if (delay > mode->vtotal)
+		delay = delay % mode->vtotal;
+
+	return max_t(u16, delay, 1);
 }
 
 static void sun6i_dsi_setup_burst(struct sun6i_dsi *dsi,
drivers/gpu/drm/tinydrm/ili9225.c +3 -3
index 455fefe012f5..6044a01069ce 100644
@@ -278,7 +278,7 @@ static void ili9225_pipe_disable(struct drm_simple_display_pipe *pipe)
 	mipi->enabled = false;
 }
 
-static int ili9225_dbi_command(struct mipi_dbi *mipi, u8 cmd, u8 *par,
+static int ili9225_dbi_command(struct mipi_dbi *mipi, u8 *cmd, u8 *par,
 			       size_t num)
 {
 	struct spi_device *spi = mipi->spi;
@@ -288,11 +288,11 @@ static int ili9225_dbi_command(struct mipi_dbi *mipi, u8 cmd, u8 *par,
 
 	gpiod_set_value_cansleep(mipi->dc, 0);
 	speed_hz = mipi_dbi_spi_cmd_max_speed(spi, 1);
-	ret = tinydrm_spi_transfer(spi, speed_hz, NULL, 8, &cmd, 1);
+	ret = tinydrm_spi_transfer(spi, speed_hz, NULL, 8, cmd, 1);
 	if (ret || !num)
 		return ret;
 
-	if (cmd == ILI9225_WRITE_DATA_TO_GRAM && !mipi->swap_bytes)
+	if (*cmd == ILI9225_WRITE_DATA_TO_GRAM && !mipi->swap_bytes)
 		bpw = 16;
 
 	gpiod_set_value_cansleep(mipi->dc, 1);
drivers/gpu/drm/tinydrm/mipi-dbi.c +42 -16

130 lines not on this page · raw message

drivers/gpu/drm/v3d/v3d_drv.c +6 -2
index 2a85fa68ffea..2a4c6187e675 100644
@@ -305,14 +305,18 @@ static int v3d_platform_drm_probe(struct platform_device *pdev)
 	if (ret)
 		goto dev_destroy;
 
-	v3d_irq_init(v3d);
+	ret = v3d_irq_init(v3d);
+	if (ret)
+		goto gem_destroy;
 
 	ret = drm_dev_register(drm, 0);
 	if (ret)
-		goto gem_destroy;
+		goto irq_disable;
 
 	return 0;
 
+irq_disable:
+	v3d_irq_disable(v3d);
 gem_destroy:
 	v3d_gem_destroy(drm);
 dev_destroy:
drivers/gpu/drm/v3d/v3d_drv.h +1 -1
index e6fed696ad86..0ad73f4b7509 100644
@@ -284,7 +284,7 @@ void v3d_invalidate_caches(struct v3d_dev *v3d);
 void v3d_flush_caches(struct v3d_dev *v3d);
 
 /* v3d_irq.c */
-void v3d_irq_init(struct v3d_dev *v3d);
+int v3d_irq_init(struct v3d_dev *v3d);
 void v3d_irq_enable(struct v3d_dev *v3d);
 void v3d_irq_disable(struct v3d_dev *v3d);
 void v3d_irq_reset(struct v3d_dev *v3d);
drivers/gpu/drm/v3d/v3d_irq.c +11 -2
index e07514eb11b5..22be0f2dff99 100644
@@ -137,7 +137,7 @@ v3d_hub_irq(int irq, void *arg)
 	return status;
 }
 
-void
+int
 v3d_irq_init(struct v3d_dev *v3d)
 {
 	int ret, core;
@@ -154,13 +154,22 @@ v3d_irq_init(struct v3d_dev *v3d)
 	ret = devm_request_irq(v3d->dev, platform_get_irq(v3d->pdev, 0),
 			       v3d_hub_irq, IRQF_SHARED,
 			       "v3d_hub", v3d);
+	if (ret)
+		goto fail;
+
 	ret = devm_request_irq(v3d->dev, platform_get_irq(v3d->pdev, 1),
 			       v3d_irq, IRQF_SHARED,
 			       "v3d_core0", v3d);
 	if (ret)
-		dev_err(v3d->dev, "IRQ setup failed: %d\n", ret);
+		goto fail;
 
 	v3d_irq_enable(v3d);
+	return 0;
+
+fail:
+	if (ret != -EPROBE_DEFER)
+		dev_err(v3d->dev, "IRQ setup failed: %d\n", ret);
+	return ret;
 }
 
 void
drivers/hid/hid-core.c +24 -12
index 44564f61e9cc..861375561156 100644
@@ -215,13 +215,14 @@ static unsigned hid_lookup_collection(struct hid_parser *parser, unsigned type)
  * Add a usage to the temporary parser table.
  */
 
-static int hid_add_usage(struct hid_parser *parser, unsigned usage)
+static int hid_add_usage(struct hid_parser *parser, unsigned usage, u8 size)
 {
 	if (parser->local.usage_index >= HID_MAX_USAGES) {
 		hid_err(parser->device, "usage index exceeded\n");
 		return -1;
 	}
 	parser->local.usage[parser->local.usage_index] = usage;
+	parser->local.usage_size[parser->local.usage_index] = size;
 	parser->local.collection_index[parser->local.usage_index] =
 		parser->collection_stack_ptr ?
 		parser->collection_stack[parser->collection_stack_ptr - 1] : 0;
@@ -482,10 +483,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			return 0;
 		}
 
-		if (item->size <= 2)
-			data = (parser->global.usage_page << 16) + data;
-
-		return hid_add_usage(parser, data);
+		return hid_add_usage(parser, data, item->size);
 
 	case HID_LOCAL_ITEM_TAG_USAGE_MINIMUM:
 
@@ -494,9 +492,6 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			return 0;
 		}
 
-		if (item->size <= 2)
-			data = (parser->global.usage_page << 16) + data;
-
 		parser->local.usage_minimum = data;
 		return 0;
 
@@ -507,9 +502,6 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 			return 0;
 		}
 
-		if (item->size <= 2)
-			data = (parser->global.usage_page << 16) + data;
-
 		count = data - parser->local.usage_minimum;
 		if (count + parser->local.usage_index >= HID_MAX_USAGES) {
 			/*
@@ -529,7 +521,7 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 		}
 
 		for (n = parser->local.usage_minimum; n <= data; n++)
-			if (hid_add_usage(parser, n)) {
+			if (hid_add_usage(parser, n, item->size)) {
 				dbg_hid("hid_add_usage failed\n");
 				return -1;
 			}
@@ -543,6 +535,22 @@ static int hid_parser_local(struct hid_parser *parser, struct hid_item *item)
 	return 0;
 }
 
+/*
+ * Concatenate Usage Pages into Usages where relevant:
+ * As per specification, 6.2.2.8: "When the parser encounters a main item it
+ * concatenates the last declared Usage Page with a Usage to form a complete
+ * usage value."
+ */
+
+static void hid_concatenate_usage_page(struct hid_parser *parser)
+{
+	int i;
+
+	for (i = 0; i < parser->local.usage_index; i++)
+		if (parser->local.usage_size[i] <= 2)
+			parser->local.usage[i] += parser->global.usage_page << 16;
+}
+
 /*
  * Process a main item.
  */
@@ -552,6 +560,8 @@ static int hid_parser_main(struct hid_parser *parser, struct hid_item *item)
 	__u32 data;
 	int ret;
 
+	hid_concatenate_usage_page(parser);
+
 	data = item_udata(item);
 
 	switch (item->tag) {
@@ -761,6 +771,8 @@ static int hid_scan_main(struct hid_parser *parser, struct hid_item *item)
 	__u32 data;
 	int i;
 
+	hid_concatenate_usage_page(parser);
+
 	data = item_udata(item);
 
 	switch (item->tag) {
drivers/hid/hid-logitech-hidpp.c +18 -5
index 8425d3548a41..e642cfaf303b 100644
@@ -725,13 +725,16 @@ static int hidpp_root_get_feature(struct hidpp_device *hidpp, u16 feature,
 
 static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp)
 {
+	const u8 ping_byte = 0x5a;
+	u8 ping_data[3] = { 0, 0, ping_byte };
 	struct hidpp_report response;
 	int ret;
 
-	ret = hidpp_send_fap_command_sync(hidpp,
+	ret = hidpp_send_rap_command_sync(hidpp,
+			REPORT_ID_HIDPP_SHORT,
 			HIDPP_PAGE_ROOT_IDX,
 			CMD_ROOT_GET_PROTOCOL_VERSION,
-			NULL, 0, &response);
+			ping_data, sizeof(ping_data), &response);
 
 	if (ret == HIDPP_ERROR_INVALID_SUBID) {
 		hidpp->protocol_major = 1;
@@ -751,8 +754,14 @@ static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp)
 	if (ret)
 		return ret;
 
-	hidpp->protocol_major = response.fap.params[0];
-	hidpp->protocol_minor = response.fap.params[1];
+	if (response.rap.params[2] != ping_byte) {
+		hid_err(hidpp->hid_dev, "%s: ping mismatch 0x%02x != 0x%02x\n",
+			__func__, response.rap.params[2], ping_byte);
+		return -EPROTO;
+	}
+
+	hidpp->protocol_major = response.rap.params[0];
+	hidpp->protocol_minor = response.rap.params[1];
 
 	return ret;
 }
@@ -901,7 +910,11 @@ static int hidpp_map_battery_level(int capacity)
 {
 	if (capacity < 11)
 		return POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL;
-	else if (capacity < 31)
+	/*
+	 * The spec says this should be < 31 but some devices report 30
+	 * with brand new batteries and Windows reports 30 as "Good".
+	 */
+	else if (capacity < 30)
 		return POWER_SUPPLY_CAPACITY_LEVEL_LOW;
 	else if (capacity < 81)
 		return POWER_SUPPLY_CAPACITY_LEVEL_NORMAL;
drivers/hwmon/f71805f.c +12 -3
index 73c681162653..623736d2a7c1 100644
@@ -96,17 +96,23 @@ superio_select(int base, int ld)
 	outb(ld, base + 1);
 }
 
-static inline void
+static inline int
 superio_enter(int base)
 {
+	if (!request_muxed_region(base, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x87, base);
 	outb(0x87, base);
+
+	return 0;
 }
 
 static inline void
 superio_exit(int base)
 {
 	outb(0xaa, base);
+	release_region(base, 2);
 }
 
 /*
@@ -1561,7 +1567,7 @@ static int __init f71805f_device_add(unsigned short address,
 static int __init f71805f_find(int sioaddr, unsigned short *address,
 			       struct f71805f_sio_data *sio_data)
 {
-	int err = -ENODEV;
+	int err;
 	u16 devid;
 
 	static const char * const names[] = {
@@ -1569,8 +1575,11 @@ static int __init f71805f_find(int sioaddr, unsigned short *address,
 		"F71872F/FG or F71806F/FG",
 	};
 
-	superio_enter(sioaddr);
+	err = superio_enter(sioaddr);
+	if (err)
+		return err;
 
+	err = -ENODEV;
 	devid = superio_inw(sioaddr, SIO_REG_MANID);
 	if (devid != SIO_FINTEK_ID)
 		goto exit;
drivers/hwmon/pc87427.c +13 -1
index dc5a9d5ada51..81a05cd1a512 100644
@@ -106,6 +106,13 @@ static const char *logdev_str[2] = { DRVNAME " FMC", DRVNAME " HMC" };
 #define LD_IN		1
 #define LD_TEMP		1
 
+static inline int superio_enter(int sioaddr)
+{
+	if (!request_muxed_region(sioaddr, 2, DRVNAME))
+		return -EBUSY;
+	return 0;
+}
+
 static inline void superio_outb(int sioaddr, int reg, int val)
 {
 	outb(reg, sioaddr);
@@ -122,6 +129,7 @@ static inline void superio_exit(int sioaddr)
 {
 	outb(0x02, sioaddr);
 	outb(0x02, sioaddr + 1);
+	release_region(sioaddr, 2);
 }
 
 /*
@@ -1220,7 +1228,11 @@ static int __init pc87427_find(int sioaddr, struct pc87427_sio_data *sio_data)
 {
 	u16 val;
 	u8 cfg, cfg_b;
-	int i, err = 0;
+	int i, err;
+
+	err = superio_enter(sioaddr);
+	if (err)
+		return err;
 
 	/* Identify device */
 	val = force_id ? force_id : superio_inb(sioaddr, SIOREG_DEVID);
drivers/hwmon/smsc47b397.c +11 -2
index 6bd200756560..cbdb5c4991ae 100644
@@ -72,14 +72,19 @@ static inline void superio_select(int ld)
 	superio_outb(0x07, ld);
 }
 
-static inline void superio_enter(void)
+static inline int superio_enter(void)
 {
+	if (!request_muxed_region(REG, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x55, REG);
+	return 0;
 }
 
 static inline void superio_exit(void)
 {
 	outb(0xAA, REG);
+	release_region(REG, 2);
 }
 
 #define SUPERIO_REG_DEVID	0x20
@@ -300,8 +305,12 @@ static int __init smsc47b397_find(void)
 	u8 id, rev;
 	char *name;
 	unsigned short addr;
+	int err;
+
+	err = superio_enter();
+	if (err)
+		return err;
 
-	superio_enter();
 	id = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID);
 
 	switch (id) {
drivers/hwmon/smsc47m1.c +19 -9
index c7b6a425e2c0..5eeac9853d0a 100644
@@ -73,16 +73,21 @@ superio_inb(int reg)
 /* logical device for fans is 0x0A */
 #define superio_select() superio_outb(0x07, 0x0A)
 
-static inline void
+static inline int
 superio_enter(void)
 {
+	if (!request_muxed_region(REG, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x55, REG);
+	return 0;
 }
 
 static inline void
 superio_exit(void)
 {
 	outb(0xAA, REG);
+	release_region(REG, 2);
 }
 
 #define SUPERIO_REG_ACT		0x30
@@ -531,8 +536,12 @@ static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data)
 {
 	u8 val;
 	unsigned short addr;
+	int err;
+
+	err = superio_enter();
+	if (err)
+		return err;
 
-	superio_enter();
 	val = force_id ? force_id : superio_inb(SUPERIO_REG_DEVID);
 
 	/*
@@ -608,13 +617,14 @@ static int __init smsc47m1_find(struct smsc47m1_sio_data *sio_data)
 static void smsc47m1_restore(const struct smsc47m1_sio_data *sio_data)
 {
 	if ((sio_data->activate & 0x01) == 0) {
-		superio_enter();
-		superio_select();
-
-		pr_info("Disabling device\n");
-		superio_outb(SUPERIO_REG_ACT, sio_data->activate);
-
-		superio_exit();
+		if (!superio_enter()) {
+			superio_select();
+			pr_info("Disabling device\n");
+			superio_outb(SUPERIO_REG_ACT, sio_data->activate);
+			superio_exit();
+		} else {
+			pr_warn("Failed to disable device\n");
+		}
 	}
 }
 
drivers/hwmon/vt1211.c +12 -3
index 3a6bfa51cb94..95d5e8ec8b7f 100644
@@ -226,15 +226,21 @@ static inline void superio_select(int sio_cip, int ldn)
 	outb(ldn, sio_cip + 1);
 }
 
-static inline void superio_enter(int sio_cip)
+static inline int superio_enter(int sio_cip)
 {
+	if (!request_muxed_region(sio_cip, 2, DRVNAME))
+		return -EBUSY;
+
 	outb(0x87, sio_cip);
 	outb(0x87, sio_cip);
+
+	return 0;
 }
 
 static inline void superio_exit(int sio_cip)
 {
 	outb(0xaa, sio_cip);
+	release_region(sio_cip, 2);
 }
 
 /* ---------------------------------------------------------------------
@@ -1282,11 +1288,14 @@ static int __init vt1211_device_add(unsigned short address)
 
 static int __init vt1211_find(int sio_cip, unsigned short *address)
 {
-	int err = -ENODEV;
+	int err;
 	int devid;
 
-	superio_enter(sio_cip);
+	err = superio_enter(sio_cip);
+	if (err)
+		return err;
 
+	err = -ENODEV;
 	devid = force_id ? force_id : superio_inb(sio_cip, SIO_VT1211_DEVID);
 	if (devid != SIO_VT1211_ID)
 		goto EXIT;
drivers/iio/adc/Kconfig +1 -0
index 4a754921fb6f..9421c1ec86f7 100644
@@ -696,6 +696,7 @@ config STM32_DFSDM_ADC
 	depends on (ARCH_STM32 && OF) || COMPILE_TEST
 	select STM32_DFSDM_CORE
 	select REGMAP_MMIO
+	select IIO_BUFFER
 	select IIO_BUFFER_HW_CONSUMER
 	help
 	  Select this option to support ADCSigma delta modulator for
drivers/iio/adc/ad_sigma_delta.c +11 -5
index ae2a5097f449..25af4c76b57f 100644
@@ -62,7 +62,7 @@ int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg,
 	struct spi_transfer t = {
 		.tx_buf		= data,
 		.len		= size + 1,
-		.cs_change	= sigma_delta->bus_locked,
+		.cs_change	= sigma_delta->keep_cs_asserted,
 	};
 	struct spi_message m;
 	int ret;
@@ -218,6 +218,7 @@ static int ad_sd_calibrate(struct ad_sigma_delta *sigma_delta,
 
 	spi_bus_lock(sigma_delta->spi->master);
 	sigma_delta->bus_locked = true;
+	sigma_delta->keep_cs_asserted = true;
 	reinit_completion(&sigma_delta->completion);
 
 	ret = ad_sigma_delta_set_mode(sigma_delta, mode);
@@ -235,9 +236,10 @@ static int ad_sd_calibrate(struct ad_sigma_delta *sigma_delta,
 		ret = 0;
 	}
 out:
+	sigma_delta->keep_cs_asserted = false;
+	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
 	sigma_delta->bus_locked = false;
 	spi_bus_unlock(sigma_delta->spi->master);
-	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
 
 	return ret;
 }
@@ -289,6 +291,7 @@ int ad_sigma_delta_single_conversion(struct iio_dev *indio_dev,
 
 	spi_bus_lock(sigma_delta->spi->master);
 	sigma_delta->bus_locked = true;
+	sigma_delta->keep_cs_asserted = true;
 	reinit_completion(&sigma_delta->completion);
 
 	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_SINGLE);
@@ -298,9 +301,6 @@ int ad_sigma_delta_single_conversion(struct iio_dev *indio_dev,
 	ret = wait_for_completion_interruptible_timeout(
 			&sigma_delta->completion, HZ);
 
-	sigma_delta->bus_locked = false;
-	spi_bus_unlock(sigma_delta->spi->master);
-
 	if (ret == 0)
 		ret = -EIO;
 	if (ret < 0)
@@ -316,7 +316,10 @@ int ad_sigma_delta_single_conversion(struct iio_dev *indio_dev,
 		sigma_delta->irq_dis = true;
 	}
 
+	sigma_delta->keep_cs_asserted = false;
 	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
+	sigma_delta->bus_locked = false;
+	spi_bus_unlock(sigma_delta->spi->master);
 	mutex_unlock(&indio_dev->mlock);
 
 	if (ret)
@@ -353,6 +356,8 @@ static int ad_sd_buffer_postenable(struct iio_dev *indio_dev)
 
 	spi_bus_lock(sigma_delta->spi->master);
 	sigma_delta->bus_locked = true;
+	sigma_delta->keep_cs_asserted = true;
+
 	ret = ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_CONTINUOUS);
 	if (ret)
 		goto err_unlock;
@@ -381,6 +386,7 @@ static int ad_sd_buffer_postdisable(struct iio_dev *indio_dev)
 		sigma_delta->irq_dis = true;
 	}
 
+	sigma_delta->keep_cs_asserted = false;
 	ad_sigma_delta_set_mode(sigma_delta, AD_SD_MODE_IDLE);
 
 	sigma_delta->bus_locked = false;
drivers/iio/adc/ti-ads7950.c +15 -4
index a5bd5944bc66..c9cd7e5c1b61 100644
@@ -56,6 +56,9 @@ struct ti_ads7950_state {
 	struct spi_message	ring_msg;
 	struct spi_message	scan_single_msg;
 
+	/* Lock to protect the spi xfer buffers */
+	struct mutex		slock;
+
 	struct regulator	*reg;
 	unsigned int		vref_mv;
 
@@ -277,6 +280,7 @@ static irqreturn_t ti_ads7950_trigger_handler(int irq, void *p)
 	struct ti_ads7950_state *st = iio_priv(indio_dev);
 	int ret;
 
+	mutex_lock(&st->slock);
 	ret = spi_sync(st->spi, &st->ring_msg);
 	if (ret < 0)
 		goto out;
@@ -285,6 +289,7 @@ static irqreturn_t ti_ads7950_trigger_handler(int irq, void *p)
 					   iio_get_time_ns(indio_dev));
 
 out:
+	mutex_unlock(&st->slock);
 	iio_trigger_notify_done(indio_dev->trig);
 
 	return IRQ_HANDLED;
@@ -295,7 +300,7 @@ static int ti_ads7950_scan_direct(struct iio_dev *indio_dev, unsigned int ch)
 	struct ti_ads7950_state *st = iio_priv(indio_dev);
 	int ret, cmd;
 
-	mutex_lock(&indio_dev->mlock);
+	mutex_lock(&st->slock);
 
 	cmd = TI_ADS7950_CR_WRITE | TI_ADS7950_CR_CHAN(ch) | st->settings;
 	st->single_tx = cpu_to_be16(cmd);
@@ -307,7 +312,7 @@ static int ti_ads7950_scan_direct(struct iio_dev *indio_dev, unsigned int ch)
 	ret = be16_to_cpu(st->single_rx);
 
 out:
-	mutex_unlock(&indio_dev->mlock);
+	mutex_unlock(&st->slock);
 
 	return ret;
 }
@@ -423,16 +428,19 @@ static int ti_ads7950_probe(struct spi_device *spi)
 	if (ACPI_COMPANION(&spi->dev))
 		st->vref_mv = TI_ADS7950_VA_MV_ACPI_DEFAULT;
 
+	mutex_init(&st->slock);
+
 	st->reg = devm_regulator_get(&spi->dev, "vref");
 	if (IS_ERR(st->reg)) {
 		dev_err(&spi->dev, "Failed get get regulator \"vref\"\n");
-		return PTR_ERR(st->reg);
+		ret = PTR_ERR(st->reg);
+		goto error_destroy_mutex;
 	}
 
 	ret = regulator_enable(st->reg);
 	if (ret) {
 		dev_err(&spi->dev, "Failed to enable regulator \"vref\"\n");
-		return ret;
+		goto error_destroy_mutex;
 	}
 
 	ret = iio_triggered_buffer_setup(indio_dev, NULL,
@@ -454,6 +462,8 @@ static int ti_ads7950_probe(struct spi_device *spi)
 	iio_triggered_buffer_cleanup(indio_dev);
 error_disable_reg:
 	regulator_disable(st->reg);
+error_destroy_mutex:
+	mutex_destroy(&st->slock);
 
 	return ret;
 }
@@ -466,6 +476,7 @@ static int ti_ads7950_remove(struct spi_device *spi)
 	iio_device_unregister(indio_dev);
 	iio_triggered_buffer_cleanup(indio_dev);
 	regulator_disable(st->reg);
+	mutex_destroy(&st->slock);
 
 	return 0;
 }
drivers/iio/common/ssp_sensors/ssp_iio.c +1 -1
index 645f2e3975db..e38f704d88b7 100644
@@ -81,7 +81,7 @@ int ssp_common_process_data(struct iio_dev *indio_dev, void *buf,
 			    unsigned int len, int64_t timestamp)
 {
 	__le32 time;
-	int64_t calculated_time;
+	int64_t calculated_time = 0;
 	struct ssp_sensor_data *spd = iio_priv(indio_dev);
 
 	if (indio_dev->scan_bytes == 0)
drivers/iio/magnetometer/hmc5843_i2c.c +6 -1
index 3de7f4426ac4..86abba5827a2 100644
@@ -58,8 +58,13 @@ static const struct regmap_config hmc5843_i2c_regmap_config = {
 static int hmc5843_i2c_probe(struct i2c_client *cli,
 			     const struct i2c_device_id *id)
 {
+	struct regmap *regmap = devm_regmap_init_i2c(cli,
+			&hmc5843_i2c_regmap_config);
+	if (IS_ERR(regmap))
+		return PTR_ERR(regmap);
+
 	return hmc5843_common_probe(&cli->dev,
-			devm_regmap_init_i2c(cli, &hmc5843_i2c_regmap_config),
+			regmap,
 			id->driver_data, id->name);
 }
 
drivers/iio/magnetometer/hmc5843_spi.c +6 -1
index 535f03a70d63..79b2b707f90e 100644
@@ -58,6 +58,7 @@ static const struct regmap_config hmc5843_spi_regmap_config = {
 static int hmc5843_spi_probe(struct spi_device *spi)
 {
 	int ret;
+	struct regmap *regmap;
 	const struct spi_device_id *id = spi_get_device_id(spi);
 
 	spi->mode = SPI_MODE_3;
@@ -67,8 +68,12 @@ static int hmc5843_spi_probe(struct spi_device *spi)
 	if (ret)
 		return ret;
 
+	regmap = devm_regmap_init_spi(spi, &hmc5843_spi_regmap_config);
+	if (IS_ERR(regmap))
+		return PTR_ERR(regmap);
+
 	return hmc5843_common_probe(&spi->dev,
-			devm_regmap_init_spi(spi, &hmc5843_spi_regmap_config),
+			regmap,
 			id->driver_data, id->name);
 }
 
drivers/infiniband/core/cma.c +19 -6
index 6f5be7802476..39dc7be56884 100644
@@ -1078,18 +1078,31 @@ static inline bool cma_any_addr(const struct sockaddr *addr)
 	return cma_zero_addr(addr) || cma_loopback_addr(addr);
 }
 
-static int cma_addr_cmp(struct sockaddr *src, struct sockaddr *dst)
+static int cma_addr_cmp(const struct sockaddr *src, const struct sockaddr *dst)
 {
 	if (src->sa_family != dst->sa_family)
 		return -1;
 
 	switch (src->sa_family) {
 	case AF_INET:
-		return ((struct sockaddr_in *) src)->sin_addr.s_addr !=
-		       ((struct sockaddr_in *) dst)->sin_addr.s_addr;
-	case AF_INET6:
-		return ipv6_addr_cmp(&((struct sockaddr_in6 *) src)->sin6_addr,
-				     &((struct sockaddr_in6 *) dst)->sin6_addr);
+		return ((struct sockaddr_in *)src)->sin_addr.s_addr !=
+		       ((struct sockaddr_in *)dst)->sin_addr.s_addr;
+	case AF_INET6: {
+		struct sockaddr_in6 *src_addr6 = (struct sockaddr_in6 *)src;
+		struct sockaddr_in6 *dst_addr6 = (struct sockaddr_in6 *)dst;
+		bool link_local;
+
+		if (ipv6_addr_cmp(&src_addr6->sin6_addr,
+					  &dst_addr6->sin6_addr))
+			return 1;
+		link_local = ipv6_addr_type(&dst_addr6->sin6_addr) &
+			     IPV6_ADDR_LINKLOCAL;
+		/* Link local must match their scope_ids */
+		return link_local ? (src_addr6->sin6_scope_id !=
+				     dst_addr6->sin6_scope_id) :
+				    0;
+	}
+
 	default:
 		return ib_addr_cmp(&((struct sockaddr_ib *) src)->sib_addr,
 				   &((struct sockaddr_ib *) dst)->sib_addr);
drivers/infiniband/hw/cxgb4/cm.c +2 -0
index a68569ec86bf..3be6405d9855 100644
@@ -458,6 +458,8 @@ static struct sk_buff *get_skb(struct sk_buff *skb, int len, gfp_t gfp)
 		skb_reset_transport_header(skb);
 	} else {
 		skb = alloc_skb(len, gfp);
+		if (!skb)
+			return NULL;
 	}
 	t4_set_arp_err_handler(skb, NULL, NULL);
 	return skb;
drivers/infiniband/hw/hfi1/init.c +2 -1
index da786eb18558..368f4f08b686 100644
@@ -798,7 +798,8 @@ static int create_workqueues(struct hfi1_devdata *dd)
 			ppd->hfi1_wq =
 				alloc_workqueue(
 				    "hfi%d_%d",
-				    WQ_SYSFS | WQ_HIGHPRI | WQ_CPU_INTENSIVE,
+				    WQ_SYSFS | WQ_HIGHPRI | WQ_CPU_INTENSIVE |
+				    WQ_MEM_RECLAIM,
 				    HFI1_MAX_ACTIVE_WORKQUEUE_ENTRIES,
 				    dd->unit, pidx);
 			if (!ppd->hfi1_wq)
drivers/infiniband/hw/hns/hns_roce_ah.c +1 -1
index 0d96c5bb38cd..d2d4ab9ab071 100644
@@ -66,7 +66,7 @@ struct ib_ah *hns_roce_create_ah(struct ib_pd *ibpd,
 			     HNS_ROCE_VLAN_SL_BIT_MASK) <<
 			     HNS_ROCE_VLAN_SL_SHIFT;
 
-	ah->av.port_pd = cpu_to_be32(to_hr_pd(ibpd)->pdn |
+	ah->av.port_pd = cpu_to_le32(to_hr_pd(ibpd)->pdn |
 				     (rdma_ah_get_port_num(ah_attr) <<
 				     HNS_ROCE_PORT_NUM_SHIFT));
 	ah->av.gid_index = grh->sgid_index;
drivers/md/bcache/alloc.c +3 -2
index 7a28232d868b..de85b3af3b39 100644
@@ -327,10 +327,11 @@ static int bch_allocator_thread(void *arg)
 		 * possibly issue discards to them, then we add the bucket to
 		 * the free list:
 		 */
-		while (!fifo_empty(&ca->free_inc)) {
+		while (1) {
 			long bucket;
 
-			fifo_pop(&ca->free_inc, bucket);
+			if (!fifo_pop(&ca->free_inc, bucket))
+				break;
 
 			if (ca->discard) {
 				mutex_unlock(&ca->set->bucket_lock);
drivers/md/bcache/journal.c +23 -3
index 772258ee1f51..f880e5eba8dd 100644
@@ -317,6 +317,18 @@ void bch_journal_mark(struct cache_set *c, struct list_head *list)
 	}
 }
 
+bool is_discard_enabled(struct cache_set *s)
+{
+	struct cache *ca;
+	unsigned int i;
+
+	for_each_cache(ca, s, i)
+		if (ca->discard)
+			return true;
+
+	return false;
+}
+
 int bch_journal_replay(struct cache_set *s, struct list_head *list)
 {
 	int ret = 0, keys = 0, entries = 0;
@@ -330,9 +342,17 @@ int bch_journal_replay(struct cache_set *s, struct list_head *list)
 	list_for_each_entry(i, list, list) {
 		BUG_ON(i->pin && atomic_read(i->pin) != 1);
 
-		cache_set_err_on(n != i->j.seq, s,
-"bcache: journal entries %llu-%llu missing! (replaying %llu-%llu)",
-				 n, i->j.seq - 1, start, end);
+		if (n != i->j.seq) {
+			if (n == start && is_discard_enabled(s))
+				pr_info("bcache: journal entries %llu-%llu may be discarded! (replaying %llu-%llu)",
+					n, i->j.seq - 1, start, end);
+			else {
+				pr_err("bcache: journal entries %llu-%llu missing! (replaying %llu-%llu)",
+					n, i->j.seq - 1, start, end);
+				ret = -EIO;
+				goto err;
+			}
+		}
 
 		for (k = i->j.start;
 		     k < bset_bkey_last(&i->j);
drivers/md/bcache/super.c +20 -5
index 2c0d35c882ed..2409507d7bff 100644
@@ -1770,13 +1770,15 @@ struct cache_set *bch_cache_set_alloc(struct cache_sb *sb)
 	return NULL;
 }
 
-static void run_cache_set(struct cache_set *c)
+static int run_cache_set(struct cache_set *c)
 {
 	const char *err = "cannot allocate memory";
 	struct cached_dev *dc, *t;
 	struct cache *ca;
 	struct closure cl;
 	unsigned int i;
+	LIST_HEAD(journal);
+	struct journal_replay *l;
 
 	closure_init_stack(&cl);
 
@@ -1864,7 +1866,9 @@ static void run_cache_set(struct cache_set *c)
 		if (j->version < BCACHE_JSET_VERSION_UUID)
 			__uuid_write(c);
 
-		bch_journal_replay(c, &journal);
+		err = "bcache: replay journal failed";
+		if (bch_journal_replay(c, &journal))
+			goto err;
 	} else {
 		pr_notice("invalidating existing data");
 
@@ -1932,11 +1936,19 @@ static void run_cache_set(struct cache_set *c)
 	flash_devs_run(c);
 
 	set_bit(CACHE_SET_RUNNING, &c->flags);
-	return;
+	return 0;
 err:
+	while (!list_empty(&journal)) {
+		l = list_first_entry(&journal, struct journal_replay, list);
+		list_del(&l->list);
+		kfree(l);
+	}
+
 	closure_sync(&cl);
 	/* XXX: test this, it's broken */
 	bch_cache_set_error(c, "%s", err);
+
+	return -EIO;
 }
 
 static bool can_attach_cache(struct cache *ca, struct cache_set *c)
@@ -2000,8 +2012,11 @@ static const char *register_cache_set(struct cache *ca)
 	ca->set->cache[ca->sb.nr_this_dev] = ca;
 	c->cache_by_alloc[c->caches_loaded++] = ca;
 
-	if (c->caches_loaded == c->sb.nr_in_set)
-		run_cache_set(c);
+	if (c->caches_loaded == c->sb.nr_in_set) {
+		err = "failed to run cache set";
+		if (run_cache_set(c) < 0)
+			goto err;
+	}
 
 	return NULL;
 err:
drivers/media/common/videobuf2/videobuf2-core.c +22 -0
index 6889c25c62cb..9226dca44e90 100644
@@ -668,6 +668,11 @@ int vb2_core_reqbufs(struct vb2_queue *q, enum vb2_memory memory,
 		return -EBUSY;
 	}
 
+	if (q->waiting_in_dqbuf && *count) {
+		dprintk(1, "another dup()ped fd is waiting for a buffer\n");
+		return -EBUSY;
+	}
+
 	if (*count == 0 || q->num_buffers != 0 ||
 	    (q->memory != VB2_MEMORY_UNKNOWN && q->memory != memory)) {
 		/*
@@ -797,6 +802,10 @@ int vb2_core_create_bufs(struct vb2_queue *q, enum vb2_memory memory,
 	}
 
 	if (!q->num_buffers) {
+		if (q->waiting_in_dqbuf && *count) {
+			dprintk(1, "another dup()ped fd is waiting for a buffer\n");
+			return -EBUSY;
+		}
 		memset(q->alloc_devs, 0, sizeof(q->alloc_devs));
 		q->memory = memory;
 		q->waiting_for_buffers = !q->is_output;
@@ -1466,6 +1475,11 @@ static int __vb2_wait_for_done_vb(struct vb2_queue *q, int nonblocking)
 	for (;;) {
 		int ret;
 
+		if (q->waiting_in_dqbuf) {
+			dprintk(1, "another dup()ped fd is waiting for a buffer\n");
[… more lines in the raw message]

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

drivers/media/dvb-frontends/m88ds3103.c +4 -5
index dffd2d4bf1c8..c25c92797408 100644

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

drivers/media/dvb-frontends/si2165.c +5 -3
index feacd8da421d..d55d8f169dca 100644

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

drivers/media/i2c/ov2659.c +4 -2
index 4715edc8ca33..e6a8b5669b9c 100644

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

drivers/media/i2c/ov6650.c +14 -11
index a9264d515e54..edded869d792 100644

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

drivers/media/pci/saa7146/hexium_gemini.c +2 -3
index 5817d9cde4d0..6d8e4afe9673 100644

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

drivers/media/pci/saa7146/hexium_orion.c +2 -3
index 0a05176c18ab..a794f9e5f990 100644

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

drivers/media/platform/coda/coda-bit.c +3 -0
index d20d3df5778b..a3cfefdbee12 100644

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

drivers/media/platform/stm32/stm32-dcmi.c +14 -6
index 721564176d8c..d38682265892 100644

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

drivers/media/platform/video-mux.c +5 -0
index c01e1592ad0a..c8ffe7bff77f 100644

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

drivers/media/platform/vimc/vimc-core.c +2 -0
index 9246f265de31..27db8835c241 100644

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

drivers/media/platform/vimc/vimc-streamer.c +1 -1
index fcc897fb247b..392754c18046 100644

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

drivers/media/platform/vivid/vivid-vid-cap.c +1 -1
index baa7c83ee6e0..3b09ffceefd5 100644

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

drivers/media/radio/wl128x/fmdrv_common.c +5 -2
index 800d69c3f80b..1cf4019689a5 100644

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

drivers/media/rc/serial_ir.c +1 -8
index 8bf5637b3a69..e613c0175591 100644

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

drivers/media/usb/au0828/au0828-video.c +11 -5
index 62b45062b1e6..3e111f7f56df 100644

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

drivers/media/usb/cpia2/cpia2_v4l.c +1 -2
index 99f106b13280..d47318958fe5 100644

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

drivers/media/usb/dvb-usb-v2/dvbsky.c +10 -8
index e28bd8836751..ae0814dd202a 100644

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

drivers/media/usb/go7007/go7007-fw.c +2 -2
index 24f5b615dc7a..dfa9f899d0c2 100644

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

drivers/media/usb/gspca/gspca.c +9 -3
index 405a6a76d820..b12356c533a6 100644

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

drivers/media/usb/pvrusb2/pvrusb2-hdw.c +2 -0
index a8519da0020b..673fdca8d2da 100644

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

drivers/media/usb/pvrusb2/pvrusb2-hdw.h +1 -0
index 25648add77e5..bd2b7a67b732 100644

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

drivers/mmc/core/pwrseq_emmc.c +20 -18
index efb8a7965dd4..154f4204d58c 100644

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

drivers/mmc/core/sd.c +8 -0
index d0d9f90e7cdf..cfb8ee24eaba 100644

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

drivers/mmc/host/mmc_spi.c +4 -0
index 67f6bd24a9d0..ea254d00541f 100644

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

drivers/mmc/host/sdhci-iproc.c +4 -2
index 94eeed2a1b53..f903ab96aa21 100644

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

drivers/mmc/host/sdhci-of-esdhc.c +8 -0
index a7bf8515116f..e5c598ae5f24 100644

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

drivers/net/ethernet/amazon/ena/ena_netdev.c +1 -1
index 1b5f591cf0a2..b5d72815776c 100644

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

drivers/net/ethernet/chelsio/cxgb3/l2t.h +1 -1
index c2fd323c4078..ea75f275023f 100644

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

drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +12 -3
index 961e3087d1d3..bb04c695ab9f 100644

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

drivers/net/ethernet/intel/e1000e/netdev.c +1 -1
index 8b11682ebba2..8cd339c92c1a 100644

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

drivers/net/ethernet/intel/i40e/i40e_main.c +8 -0
index f81ad0aa8b09..df8808cd7e11 100644

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

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +4 -2
index c6d24eaede18..d86f3fa7aa6a 100644

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

drivers/net/ethernet/intel/igb/igb_main.c +3 -0
index aa39a068858e..5aa083d9a6c9 100644

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

drivers/net/hyperv/netvsc.c +9 -6
index fb12b63439c6..35413041dcf8 100644

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

drivers/net/usb/qmi_wwan.c +31 -34

65 lines not on this page · raw message

drivers/net/wireless/ath/wil6210/cfg80211.c +5 -0
index 2daf33342b23..1fc2bf66845c 100644

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

drivers/net/wireless/ath/wil6210/wmi.c +6 -5
index 42c02a20ec97..6e3b3031f29b 100644

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

drivers/net/wireless/atmel/at76c50x-usb.c +2 -2
index e99e766a3028..1cabae424839 100644

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

drivers/net/wireless/broadcom/b43/phy_lp.c +3 -3
index 6922cbb99a04..5a0699fb4b9a 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +6 -0
index 6f3faaf1b1cb..c7c520f327f2 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +10 -5
index 860a4372cb56..36a04c1144e5 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h +12 -4
index 816f80ea925b..ebd66fe0d949 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c +24 -18

42 lines not on this page · raw message

drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c +1 -1
index 4e8397a0cbc8..ee922b052561 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c +16 -11
index a4308c6e72d7..44ead0fea7c6 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/vendor.c +3 -2
index 8eff2753abad..d493021f6031 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/rx.c +6 -1
index b2905f01b7df..6dcd5374d9b4 100644

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

drivers/net/wireless/marvell/mwifiex/cfg80211.c +5 -1
index 2d87ebbfa4da..47ec5293c045 100644

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

drivers/net/wireless/marvell/mwifiex/cfp.c +3 -0
index bfe84e55df77..f1522fb1c1e8 100644

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

drivers/net/wireless/realtek/rtlwifi/base.c +5 -0
index ef9b502ce576..a3189294ecb8 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/fw.c +2 -0
index 63874512598b..b5f91c994c79 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8192c/fw_common.c +2 -0
index f3bff66e85d0..81ec0e6e07c1 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8192ee/fw.c +2 -0
index 84a0d0eb72e1..a933490928ba 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8723ae/fw.c +2 -0
index bf9859f74b6f..52f108744e96 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8723be/fw.c +2 -0
index f2441fbb92f1..307c2bd77f06 100644

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

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/fw.c +4 -0
index d868a034659f..d7235f6165fd 100644

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

drivers/net/wireless/rsi/rsi_91x_mac80211.c +18 -12
index 4e510cbe0a89..be59d66585d6 100644

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

drivers/net/wireless/st/cw1200/main.c +5 -0
index 90dc979f260b..c1608f0bf6d0 100644

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

drivers/nvdimm/pmem.c +8 -2
index cff027fc2676..a7ce2f1761a2 100644

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

drivers/nvme/host/core.c +6 -1
index 2cdb3032ca0f..abfb46378cc1 100644

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

drivers/nvme/host/rdma.c +6 -4
index 0939a4e178fb..e4f167e35353 100644

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

drivers/perf/arm-cci.c +12 -9
index 1bfeb160c5b1..14a541c453e5 100644

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

drivers/phy/allwinner/phy-sun4i-usb.c +4 -0
index 15c8fc2abf01..1f8809bab002 100644

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

drivers/phy/motorola/Kconfig +1 -1
index 82651524ffb9..718f8729701d 100644

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

drivers/pinctrl/pinctrl-pistachio.c +2 -0
index 302190d1558d..0d7d379e9bb8 100644

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

drivers/pinctrl/samsung/pinctrl-exynos-arm.c +1 -0
index 44c6b753f692..85ddf49a5188 100644

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

drivers/pinctrl/zte/pinctrl-zx.c +1 -0
index caa44dd2880a..3cb69309912b 100644

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

drivers/rtc/rtc-88pm860x.c +1 -1
index 01ffc0ef8033..fbcf13bbbd8d 100644

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

drivers/rtc/rtc-stm32.c +6 -3
index c5908cfea234..8e6c9b3bcc29 100644

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

drivers/rtc/rtc-xgene.c +11 -7
index 153820876a82..2f741f455c30 100644

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

drivers/s390/cio/cio.h +1 -1
index 9811fd8a0c73..92eabbb5f18d 100644

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

drivers/s390/cio/vfio_ccw_drv.c +18 -14
index fabd9798e4c4..7a06cdff6572 100644

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

drivers/s390/cio/vfio_ccw_ops.c +10 -1
index f673e106c041..dc5ff47de3fe 100644

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

drivers/s390/crypto/zcrypt_api.c +4 -0
index e6854127b434..b2737bfeb8bb 100644

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

drivers/s390/net/qeth_core.h +7 -3
index 2d1f6a583641..b2657582cfcf 100644

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

drivers/s390/net/qeth_core_main.c +10 -4
index 56aacf32f71b..461afc276db7 100644

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

drivers/scsi/libsas/sas_expander.c +5 -0
index e9ecc667e3fb..231eb79efa32 100644

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

drivers/scsi/lpfc/lpfc_ct.c +13 -7
index 1a964e71582f..d909d90035bb 100644

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

drivers/scsi/lpfc/lpfc_hbadisc.c +10 -1
index eb71877f12f8..ccdd82b1123f 100644

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

drivers/scsi/lpfc/lpfc_nvme.c +4 -4
index ca62117a2d13..099f70798fdd 100644

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

drivers/scsi/qedf/qedf_io.c +1 -0
index 6bbc38b1b465..a17c13846d1e 100644

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

drivers/scsi/qedi/qedi_iscsi.c +3 -0
index d4821b9dea45..4130b9117055 100644

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

drivers/scsi/qla2xxx/qla_isr.c +5 -1
index 36cbb29c84f6..88d8acf86a2a 100644

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

drivers/scsi/qla2xxx/qla_target.c +8 -17
index a8c67cd17625..9d7feb005acf 100644

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

drivers/scsi/qla2xxx/tcm_qla2xxx.c +4 -3
index 64e2d859f633..b8c1a739dfbd 100644

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

drivers/scsi/qla4xxx/ql4_os.c +1 -1
index 5dd3e4e01b10..25c8ce54a976 100644

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

drivers/scsi/sd.c +1 -2
index e925eda93191..77cb45ef55fc 100644

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

drivers/scsi/ufs/ufs-hisi.c +4 -0
index 452e19f8fb47..c2cee73a8560 100644

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

drivers/scsi/ufs/ufshcd.c +20 -8
index 6e80dfe4fa97..3183fa8c5857 100644

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

drivers/slimbus/qcom-ngd-ctrl.c +4 -0
index 14a9d18306cb..f63d1b8a0933 100644

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

drivers/spi/spi-imx.c +1 -1
index 08dd3a31a3e5..5b6f3655c366 100644

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

drivers/spi/spi-pxa2xx.c +6 -2
index b624f6fb04ce..729be74621e3 100644

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

drivers/spi/spi-rspi.c +6 -3
index b37de1d991d6..d61120822f02 100644

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

drivers/spi/spi-tegra114.c +18 -14
index a76acedd7e2f..a1888dc6a938 100644

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

drivers/spi/spi-topcliff-pch.c +13 -2
index 97d137591b18..4389ab80c23e 100644

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

drivers/spi/spi.c +2 -0
index 9da0bc5a036c..88a8a8edd44b 100644

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

drivers/ssb/bridge_pcmcia_80211.c +7 -2
index f51f150307df..ffa379efff83 100644

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

drivers/staging/media/davinci_vpfe/Kconfig +1 -1
index aea449a8dbf8..76818cc48ddc 100644

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

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +3 -0
index e76720903064..c7c8ef67b67f 100644

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

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +2 -0
index 7642ced31436..63ce567eb6b7 100644

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

drivers/thunderbolt/icm.c +5 -0
index 28fc4ce75edb..8490a1b6b615 100644

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

drivers/thunderbolt/property.c +11 -1
index 8fe913a95b4a..be3f8b592b05 100644

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

drivers/thunderbolt/switch.c +35 -32

67 lines not on this page · raw message

drivers/thunderbolt/tb.h +1 -2
index 5067d69d0501..7a0ee9836a8a 100644

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

drivers/thunderbolt/xdomain.c +7 -1
index db8bece63327..befe75490697 100644

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

drivers/tty/ipwireless/main.c +8 -0
index 3475e841ef5c..4c18bbfe1a92 100644

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

drivers/usb/core/hcd.c +3 -0
index 1c21955fe7c0..b82a7d787add 100644

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

drivers/usb/core/hub.c +4 -1
index bbcfa63d0233..eb24ec0e160d 100644

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

drivers/usb/dwc2/gadget.c +15 -12
index 220c0f9b89b0..03614ef64ca4 100644

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

drivers/usb/dwc3/core.c +2 -0
index 4d5c7dda8f54..05b9ccff7447 100644

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

drivers/usb/dwc3/gadget.c +0 -2
index 524104eed8a7..65ba1038b111 100644

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

drivers/video/fbdev/core/fbcmap.c +2 -0
index 68a113594808..2811c4afde01 100644

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

drivers/video/fbdev/core/modedb.c +3 -0
index 283d9307df21..ac049871704d 100644

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

drivers/video/fbdev/efifb.c +2 -1
index fd02e8a4841d..9f39f0c360e0 100644

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

drivers/video/fbdev/udlfb.c +6 -8
index 2001910fd241..5a0d6fb02bbc 100644

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

drivers/w1/w1_io.c +1 -2
index 0364d3329c52..3516ce6718d9 100644

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

fs/btrfs/backref.c +12 -7
index 2a4f52c7be22..ac6c383d6314 100644

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

fs/btrfs/extent-tree.c +7 -21
index 809c2c307c64..0cc800d22a08 100644

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

fs/btrfs/file.c +15 -4
index ca4902c66dc4..e24c0a69ff5d 100644

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

fs/btrfs/relocation.c +20 -11
index 0526b6c473c7..5d57ed629345 100644

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

fs/btrfs/root-tree.c +9 -8
index 65bda0682928..3228d3b3084a 100644

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

fs/btrfs/sysfs.c +6 -1
index 3717c864ba23..aefb0169d46d 100644

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

fs/btrfs/tree-log.c +1 -0
index 2f4f0958e5f2..75051d36dc1a 100644

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

fs/char_dev.c +6 -0
index a279c58fe360..8a63cfa29005 100644

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

fs/ext4/inode.c +10 -13
index 67e8aa35197e..05dc5a4ba481 100644

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

fs/f2fs/data.c +11 -6
index 08314fb42652..4d02e76b648a 100644

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

fs/f2fs/f2fs.h +12 -1
index 1f5d5f62bb77..a4b6eacf22ea 100644

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

fs/f2fs/file.c +1 -1
index b3f46e3bec17..8d1eb8dec605 100644

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

fs/f2fs/gc.c +1 -1
index 5c8d00422237..d44b57a363ff 100644

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

fs/f2fs/segment.c +7 -6
index ac038563273d..03fa2c4d3d79 100644

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

fs/gfs2/glock.c +14 -9
index 9d566e62684c..ccdd8c821abd 100644

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

fs/gfs2/lock_dlm.c +5 -4
index ac7caa267ed6..62edf8f5615f 100644

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

fs/gfs2/log.c +2 -1
index ee20ea42e7b5..cd85092723de 100644

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

fs/gfs2/lops.c +4 -2
index f2567f958d00..8f99b395d7bf 100644

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

fs/internal.h +0 -2
index d410186bc369..d109665b9e50 100644

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

fs/nfs/client.c +6 -1
index 751ca65da8a3..c092661147b3 100644

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

fs/nfs/nfs42proc.c +0 -3
index fed06fd9998d..94f98e190e63 100644

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

fs/nfs/nfs4file.c +4 -8
index 4288a6ecaf75..134858507268 100644

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

fs/overlayfs/dir.c +1 -1
index b2aadd3e1fec..336f04da80ed 100644

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

fs/overlayfs/inode.c +2 -1
index 3b7ed5d2279c..b48273e846ad 100644

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

include/drm/tinydrm/mipi-dbi.h +3 -2
index b8ba58861986..bcc98bd447f7 100644

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

include/linux/bio.h +1 -1
index 51371740d2a8..c7433a201171 100644

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

include/linux/cgroup-defs.h +5 -0
index 6002275937f5..a6090154b2ab 100644

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

include/linux/filter.h +2 -0
index 037610845892..d52a7484aeb2 100644

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

include/linux/genhd.h +1 -0
index f767293b00e6..f13272d84332 100644

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

include/linux/hid.h +1 -0
index d44a78362942..8b3e5e8a72fb 100644

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

include/linux/iio/adc/ad_sigma_delta.h +1 -0
index 730ead1a46df..57c122ae5452 100644

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

include/linux/mount.h +2 -0
index 45b1f56c6c2f..4b0db4418954 100644

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

include/linux/overflow.h +9 -3
index 40b48e2133cb..15eb85de9226 100644

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

include/linux/smpboot.h +1 -1
index d0884b525001..9d1bc65d226c 100644

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

include/linux/time64.h +21 -0
index 05634afba0db..4a45aea0f96e 100644

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

include/media/videobuf2-core.h +1 -0
index f6818f732f34..bddd86c11f5f 100644

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

include/net/bluetooth/hci.h +1 -0
index cdd9f1fe7cfa..845d947dbae8 100644

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

kernel/acct.c +2 -2
index addf7732fb56..81f9831a7859 100644

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

kernel/auditfilter.c +7 -5
index bf309f2592c4..425c67e4f568 100644

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

kernel/bpf/core.c +46 -3

49 lines not on this page · raw message

kernel/bpf/devmap.c +3 -0
index 141710b82a6c..2faad033715f 100644

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

kernel/cgroup/cgroup.c +6 -0
index 63dae7e0ccae..81441117f611 100644

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

kernel/irq_work.c +42 -33

75 lines not on this page · raw message

kernel/module.c +5 -0
index 38bf28b5cc20..f797c6ace712 100644

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

kernel/rcu/rcuperf.c +5 -0
index 34244523550e..19249b86fb33 100644

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

kernel/rcu/rcutorture.c +5 -0
index c596c6f1e457..0b7af7e2bcbb 100644

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

kernel/sched/core.c +8 -1
index d7f409866cdf..6138754e5030 100644

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

kernel/sched/fair.c +10 -6
index d31916366d39..7a1e9db617f7 100644

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

kernel/sched/rt.c +5 -0
index 2e2955a8cf8f..b980cc96604f 100644

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

kernel/time/time.c +1 -1
index ccdb351277ee..be057d6579f1 100644

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

kernel/time/timekeeping.c +3 -3
index 7846ce24ecc0..9a6bfcd22dc6 100644

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

kernel/trace/trace_branch.c +4 -0
index 4ad967453b6f..3ea65cdff30d 100644

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

lib/kobject_uevent.c +7 -4
index 63d0816ab23b..7761f3294339 100644

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

lib/sbitmap.c +1 -1
index fdd1b8aa8ac6..0572ac340325 100644

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

lib/strncpy_from_user.c +3 -2
index b53e1b5d80f4..e304b54c9c7d 100644

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

lib/strnlen_user.c +2 -2
index 60d0bbda8f5e..184f80f7bacf 100644

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

net/batman-adv/distributed-arp-table.c +3 -1
index a60bacf7120b..2895e3b26e93 100644

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

net/batman-adv/main.c +1 -0
index 69c0d85bceb3..79b8a2d8793e 100644

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

net/batman-adv/multicast.c +3 -8
index 86725d792e15..b90fe25d6b0b 100644

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

net/batman-adv/types.h +5 -0
index 343d304851a5..eeee3e61c625 100644

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

net/bluetooth/hci_core.c +5 -0
index a06f03047717..5afd67ef797a 100644

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

net/bluetooth/hci_event.c +12 -0
index 7f800c3480f7..3e7badb3ac2d 100644

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

net/bluetooth/hci_request.c +5 -0
index e8c9ef1e1922..9448ebd3780a 100644

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

net/bluetooth/hci_request.h +1 -0
index 692cc8b13368..55b2050cc9ff 100644

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

net/core/sysctl_net_core.c +8 -2
index b1a2c5e38530..37b4667128a3 100644

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

net/mac80211/mlme.c +0 -3
index 3dbecae4be73..2ac749c4a6b2 100644

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

net/wireless/nl80211.c +5 -0
index 048e004ed0ee..c6711ead5e59 100644

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

security/selinux/netlabel.c +5 -9
index 186e727b737b..6fd9954e1c08 100644

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

sound/soc/codecs/hdmi-codec.c +5 -1
index d5f73c837281..7994e8ddc7d2 100644

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

sound/soc/davinci/davinci-mcasp.c +2 -0
index f70db8412c7c..160b2764b2ad 100644

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

sound/soc/fsl/Kconfig +5 -4
index 2e75b5bc5f1d..f721cd4e3f97 100644

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

sound/soc/fsl/eukrea-tlv320.c +2 -2
index 191426a6d9ad..30a3d68b5c03 100644

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

sound/soc/fsl/fsl_sai.c +2 -0
index 4163f2cfc06f..bfc5b21d0c3f 100644

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

sound/soc/fsl/fsl_utils.c +1 -0
index 7f0fa4b52223..cca33ab7020a 100644

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

sound/soc/intel/boards/kbl_da7219_max98357a.c +1 -1
index 38f6ab74709d..07491a0f8fb8 100644

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

tools/bpf/bpftool/.gitignore +1 -1
index 67167e44b726..8248b8dd89d4 100644

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

tools/lib/bpf/bpf.c +2 -0
index 7a0014794bff..dd0b68d1f4be 100644

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

tools/lib/bpf/bpf.h +1 -0
index 6f38164b2618..c3145ab3bdca 100644

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

tools/testing/selftests/bpf/test_libbpf_open.c +2 -0
index 8fcd1c076add..cbd55f5f8d59 100644

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

tools/testing/selftests/bpf/trace_helpers.c +4 -0
index cabe2a3a3b30..cf156b353679 100644

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

tools/testing/selftests/cgroup/test_memcontrol.c +21 -17
index 28d321ba311b..6f339882a6ca 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.