Skip to contentSkip to conversation

Linux 5.2.5

DISCUSSION Greg KH 2 participants 3 messages Jul 31, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 5.2.5 kernel.

All users of the 5.2 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt |    9 
 Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml   |   21 
 Documentation/devicetree/bindings/usb/usb251xb.txt                        |    6 
 Makefile                                                                  |    3 
 arch/arm64/include/asm/assembler.h                                        |    4 
 arch/powerpc/Kconfig                                                      |    1 
 arch/powerpc/boot/xz_config.h                                             |   20 
 arch/powerpc/include/asm/cacheflush.h                                     |    7 
 arch/powerpc/include/asm/pmc.h                                            |    5 
 arch/powerpc/kernel/Makefile                                              |    3 
 arch/powerpc/kernel/dma-common.c                                          |   17 
 arch/powerpc/kernel/eeh.c                                                 |   15 
 arch/powerpc/kernel/hw_breakpoint.c                                       |    7 
 arch/powerpc/kernel/irq.c                                                 |    6 
 arch/powerpc/kernel/pci_of_scan.c                                         |    2 
 arch/powerpc/kernel/rtas.c                                                |    7 
 arch/powerpc/kernel/signal_32.c                                           |    3 
 arch/powerpc/kernel/signal_64.c                                           |    5 
 arch/powerpc/kvm/book3s_hv.c                                              |   13 
 arch/powerpc/kvm/book3s_xive.c                                            |    4 
 arch/powerpc/kvm/book3s_xive_native.c                                     |    4 
 arch/powerpc/mm/book3s64/hash_native.c                                    |    2 
 arch/powerpc/mm/book3s64/hash_utils.c                                     |    9 
 arch/powerpc/mm/book3s64/radix_tlb.c                                      |   32 -
 arch/powerpc/mm/hugetlbpage.c                                             |    8 
 arch/powerpc/platforms/4xx/uic.c                                          |    1 
 arch/powerpc/platforms/pseries/mobility.c                                 |    9 
 arch/powerpc/sysdev/xive/common.c                                         |    7 
 arch/powerpc/xmon/xmon.c                                                  |    6 
 arch/sh/include/asm/io.h                                                  |    6 
 arch/um/include/asm/mmu_context.h                                         |    2 
 arch/x86/include/uapi/asm/vmx.h                                           |    1 
 arch/x86/kernel/cpu/bugs.c                                                |    2 
 arch/x86/kernel/stacktrace.c                                              |    2 
 arch/x86/kernel/sysfb_efi.c                                               |   46 +
 arch/x86/kvm/vmx/nested.c                                                 |   87 +--
 arch/x86/kvm/vmx/nested.h                                                 |    2 
 arch/x86/kvm/vmx/vmcs_shadow_fields.h                                     |    4 
 arch/x86/kvm/vmx/vmx.c                                                    |    3 
 arch/x86/kvm/x86.c                                                        |    9 
 block/bio-integrity.c                                                     |    8 
 block/blk-core.c                                                          |    1 
 drivers/android/binder.c                                                  |    5 
 drivers/base/core.c                                                       |   27 
 drivers/char/hpet.c                                                       |    3 
 drivers/char/ipmi/ipmi_si_platform.c                                      |    6 
 drivers/char/ipmi/ipmi_ssif.c                                             |    5 
 drivers/fpga/Kconfig                                                      |    1 
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c                          |    4 
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c                                     |    3 
 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c                     |   21 
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c                           |    5 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c                         |   30 -
 drivers/gpu/drm/amd/display/dc/core/dc.c                                  |   14 
 drivers/gpu/drm/amd/display/dc/core/dc_link.c                             |    6 
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c                          |    9 
 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c                              |    2 
 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c                             |    3 
 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h                             |    2 
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c               |    3 
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c                 |    1 
 drivers/gpu/drm/amd/display/modules/color/color_gamma.c                   |    3 
 drivers/gpu/drm/bochs/bochs_drv.c                                         |    2 
 drivers/gpu/drm/bridge/sii902x.c                                          |    5 
 drivers/gpu/drm/bridge/tc358767.c                                         |    7 
 drivers/gpu/drm/bridge/ti-tfp410.c                                        |    3 
 drivers/gpu/drm/drm_debugfs_crc.c                                         |    9 
 drivers/gpu/drm/drm_edid_load.c                                           |    2 
 drivers/gpu/drm/i915/i915_request.c                                       |    4 
 drivers/gpu/drm/i915/intel_context.c                                      |    1 
 drivers/gpu/drm/i915/intel_context_types.h                                |    2 
 drivers/gpu/drm/i915/intel_engine_cs.c                                    |    1 
 drivers/gpu/drm/i915/intel_engine_types.h                                 |    2 
 drivers/gpu/drm/lima/lima_pp.c                                            |    8 
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c                                     |   20 
 drivers/gpu/drm/msm/adreno/a6xx_gmu.h                                     |    1 
 drivers/gpu/drm/msm/adreno/adreno_gpu.c                                   |    8 
 drivers/gpu/drm/msm/msm_drv.c                                             |   14 
 drivers/gpu/drm/omapdrm/omap_crtc.c                                       |   18 
 drivers/gpu/drm/panel/panel-simple.c                                      |   38 +
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c                               |    3 
 drivers/gpu/drm/virtio/virtgpu_drv.h                                      |    1 
 drivers/gpu/drm/virtio/virtgpu_fence.c                                    |   17 
 drivers/gpu/drm/virtio/virtgpu_ioctl.c                                    |    3 
 drivers/gpu/drm/virtio/virtgpu_vq.c                                       |    2 
 drivers/gpu/drm/vkms/vkms_crtc.c                                          |   22 
 drivers/gpu/host1x/bus.c                                                  |    3 
 drivers/i2c/busses/i2c-nvidia-gpu.c                                       |   14 
 drivers/i2c/busses/i2c-stm32f7.c                                          |   26 
 drivers/iio/accel/adxl372.c                                               |   27 
 drivers/iio/adc/stm32-dfsdm-adc.c                                         |    6 
 drivers/iio/adc/stm32-dfsdm-core.c                                        |    8 
 drivers/infiniband/core/addr.c                                            |    2 
 drivers/infiniband/hw/i40iw/i40iw_verbs.c                                 |    2 
 drivers/infiniband/hw/mlx5/mad.c                                          |   60 +-
 drivers/infiniband/sw/rxe/rxe_resp.c                                      |    5 
 drivers/infiniband/sw/rxe/rxe_verbs.h                                     |    1 
 drivers/infiniband/ulp/ipoib/ipoib_main.c                                 |   34 -
 drivers/iommu/intel-iommu.c                                               |    3 
 drivers/iommu/iova.c                                                      |   23 
 drivers/mailbox/mailbox.c                                                 |    6 
 drivers/media/platform/coda/Makefile                                      |    4 
 drivers/memstick/core/memstick.c                                          |   13 
 drivers/mfd/arizona-core.c                                                |    2 
 drivers/mfd/cros_ec_dev.c                                                 |   13 
 drivers/mfd/hi655x-pmic.c                                                 |    2 
 drivers/mfd/madera-core.c                                                 |    1 
 drivers/mfd/mfd-core.c                                                    |    1 
 drivers/misc/eeprom/Kconfig                                               |    3 
 drivers/misc/mei/hw-me-regs.h                                             |    3 
 drivers/misc/mei/pci-me.c                                                 |    3 
 drivers/mmc/host/sdhci-pci-o2micro.c                                      |   12 
 drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c                            |   19 
 drivers/nvdimm/bus.c                                                      |  121 ++--
 drivers/nvdimm/nd-core.h                                                  |    3 
 drivers/nvdimm/region.c                                                   |   22 
 drivers/nvme/host/core.c                                                  |    5 
 drivers/nvme/host/pci.c                                                   |   17 
 drivers/nvme/host/tcp.c                                                   |    9 
 drivers/pci/controller/dwc/pci-dra7xx.c                                   |    1 
 drivers/pci/controller/pcie-mobiveil.c                                    |   22 
 drivers/pci/controller/pcie-xilinx-nwl.c                                  |   11 
 drivers/pci/endpoint/functions/pci-epf-test.c                             |    8 
 drivers/pci/pci-driver.c                                                  |   13 
 drivers/pci/pci-sysfs.c                                                   |    2 
 drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c                            |    2 
 drivers/phy/renesas/phy-rcar-gen2.c                                       |    2 
 drivers/phy/renesas/phy-rcar-gen3-usb2.c                                  |   19 
 drivers/pinctrl/pinctrl-rockchip.c                                        |    1 
 drivers/platform/x86/Kconfig                                              |    2 
 drivers/platform/x86/asus-wmi.c                                           |   10 
 drivers/regulator/88pm800-regulator.c                                     |  286 ++++++++++
 drivers/regulator/88pm800.c                                               |  286 ----------
 drivers/regulator/Makefile                                                |    2 
 drivers/staging/kpc2000/TODO                                              |    1 
 drivers/staging/kpc2000/kpc2000/cell_probe.c                              |    3 
 drivers/staging/kpc2000/kpc_spi/spi_driver.c                              |    8 
 drivers/staging/vt6656/main_usb.c                                         |   42 -
 drivers/tty/serial/8250/8250_port.c                                       |    3 
 drivers/tty/serial/cpm_uart/cpm_uart_core.c                               |   17 
 drivers/tty/serial/digicolor-usart.c                                      |    6 
 drivers/tty/serial/imx.c                                                  |   23 
 drivers/tty/serial/max310x.c                                              |   51 +
 drivers/tty/serial/msm_serial.c                                           |    4 
 drivers/tty/serial/serial_core.c                                          |    7 
 drivers/tty/serial/serial_mctrl_gpio.c                                    |   14 
 drivers/tty/serial/sh-sci.c                                               |   33 -
 drivers/tty/serial/sunhv.c                                                |    2 
 drivers/tty/serial/xilinx_uartps.c                                        |    5 
 drivers/usb/core/hub.c                                                    |   28 
 drivers/usb/dwc3/core.c                                                   |   12 
 drivers/usb/gadget/function/f_fs.c                                        |    6 
 drivers/usb/host/hwa-hc.c                                                 |    2 
 drivers/usb/host/pci-quirks.c                                             |   31 -
 drivers/usb/host/xhci.h                                                   |    3 
 drivers/usb/misc/usb251xb.c                                               |   15 
 drivers/usb/storage/scsiglue.c                                            |   11 
 fs/9p/vfs_addr.c                                                          |    6 
 fs/btrfs/inode.c                                                          |   24 
 fs/btrfs/props.c                                                          |    2 
 fs/dlm/lowcomms.c                                                         |   18 
 fs/f2fs/checkpoint.c                                                      |   11 
 fs/f2fs/data.c                                                            |    3 
 fs/f2fs/f2fs.h                                                            |   18 
 fs/f2fs/segment.c                                                         |   21 
 fs/f2fs/super.c                                                           |   10 
 fs/io_uring.c                                                             |   60 +-
 fs/notify/fanotify/fanotify.c                                             |    5 
 fs/notify/inotify/inotify_fsnotify.c                                      |    8 
 fs/open.c                                                                 |   19 
 fs/proc/base.c                                                            |   28 
 fs/proc/task_mmu.c                                                        |   23 
 fs/proc/task_nommu.c                                                      |    6 
 include/linux/cred.h                                                      |    8 
 include/linux/device.h                                                    |    1 
 include/linux/hmm.h                                                       |    1 
 include/linux/host1x.h                                                    |    2 
 include/linux/iova.h                                                      |    6 
 include/linux/swap.h                                                      |   13 
 include/uapi/linux/videodev2.h                                            |    8 
 kernel/cred.c                                                             |   21 
 kernel/dma/remap.c                                                        |    3 
 kernel/locking/lockdep_proc.c                                             |    8 
 mm/gup.c                                                                  |   12 
 mm/hmm.c                                                                  |   23 
 mm/kmemleak.c                                                             |    2 
 mm/memory.c                                                               |    6 
 mm/mincore.c                                                              |   12 
 mm/mmu_notifier.c                                                         |    2 
 mm/nommu.c                                                                |    3 
 mm/swap.c                                                                 |   13 
 mm/swap_state.c                                                           |   16 
 mm/swapfile.c                                                             |  154 ++++-
 net/rds/rdma_transport.c                                                  |    5 
 scripts/basic/fixdep.c                                                    |   51 +
 scripts/genksyms/keywords.c                                               |    4 
 scripts/genksyms/parse.y                                                  |    2 
 scripts/kallsyms.c                                                        |    3 
 scripts/recordmcount.h                                                    |    3 
 security/Kconfig.hardening                                                |    7 
 security/selinux/ss/sidtab.c                                              |    5 
 sound/ac97/bus.c                                                          |   13 
 sound/core/pcm_native.c                                                   |    9 
 sound/pci/hda/hda_intel.c                                                 |    5 
 sound/pci/hda/patch_conexant.c                                            |    1 
 sound/usb/line6/podhd.c                                                   |    2 
 tools/iio/iio_utils.c                                                     |    4 
 tools/pci/pcitest.c                                                       |    6 
 tools/perf/builtin-stat.c                                                 |    2 
 tools/perf/builtin-top.c                                                  |    8 
 tools/perf/builtin-trace.c                                                |    6 
 tools/perf/tests/mmap-thread-lookup.c                                     |    2 
 tools/perf/ui/browsers/hists.c                                            |   15 
 tools/perf/util/annotate.c                                                |    6 
 tools/perf/util/intel-bts.c                                               |    5 
 tools/perf/util/map.c                                                     |    7 
 tools/perf/util/session.c                                                 |    3 
 tools/testing/selftests/rseq/rseq-arm.h                                   |   61 +-
 218 files changed, 2070 insertions(+), 963 deletions(-)

Ajay Gupta (1):
i2c: nvidia-gpu: resume ccgx i2c client

Alan Mikhak (3):
tools: PCI: Fix broken pcitest compilation
PCI: endpoint: Allocate enough space for fixed size BAR
nvme-pci: check for NULL return from pci_alloc_p2pmem()

Alex Williamson (1):
PCI: Return error if cannot probe VF

Alexander Usyskin (1):
mei: me: add mule creek canyon (EHL) device ids

Alexandru Ardelean (1):
iio: adxl372: fix iio_triggered_buffer_{pre,post}enable positions

Alexey Kardashevskiy (1):
powerpc/pci/of: Fix OF flags parsing for 64bit BARs

Anders Roxell (2):
regulator: 88pm800: fix warning same module names
media: drivers: media: coda: fix warning same module names

Andrzej Pietrasiewicz (1):
usb: gadget: Zero ffs_io_data

Andy Lutomirski (1):
mm/gup.c: remove some BUG_ONs from get_gate_page()

Aneesh Kumar K.V (1):
powerpc/mm: Handle page table allocation failures

Anthony Koo (1):
drm/amd/display: fix multi display seamless boot case

Arnd Bergmann (5):
btrfs: shut up bogus -Wmaybe-uninitialized warning
mfd: arizona: Fix undefined behavior
cxgb4: reduce kernel stack usage in cudbg_collect_mem_region() locking/lockdep: Hide unused 'class' variable
structleak: disable STRUCTLEAK_BYREF in combination with KASAN_STACK

Arseny Solokha (1):
eeprom: make older eeprom drivers select NVMEM_SYSFS

Axel Lin (1):
mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk

Bastien Nocera (1):
iio: iio-utils: Fix possible incorrect mask calculation

Bharat Kumar Gogada (1):
PCI: xilinx-nwl: Fix Multi MSI data programming

Brian Masney (1):
dt-bindings: backlight: lm3630a: correct schema validation

Chao Yu (2):
f2fs: fix to check layout on last valid checkpoint park
f2fs: fix to avoid deadloop if data_flush is on

Chia-I Wu (1):
drm/virtio: set seqno for dma-fence

Chris Wilson (2):
iommu/iova: Remove stale cached32_node drm/i915: Make the semaphore saturation mask global

Christian Lamparter (1):
powerpc/4xx/uic: clear pending interrupt after irq type/pol change

Christoph Hellwig (2):
nvme-pci: limit max_hw_sectors based on the DMA max mapping size 9p: pass the correct prototype to read_cache_page

Christophe Leroy (1):
tty: serial: cpm_uart - fix init when SMC is relocated

Cédric Le Goater (1):
KVM: PPC: Book3S HV: XIVE: fix rollback when kvmppc_xive_create fails

Dag Moxnes (1):
RDMA/core: Fix race when resolving IP address

Dan Williams (4):
drivers/base: Introduce kill_device()
libnvdimm/bus: Prevent duplicate device_unregister() calls libnvdimm/region: Register badblocks before namespaces libnvdimm/bus: Stop holding nvdimm_bus_list_mutex over __nd_ioctl()

Daniel Gomez (1):
mfd: madera: Add missing of table registration

Daniel Rosenberg (2):
f2fs: Fix accounting for unusable blocks
f2fs: Lower threshold for disable_cp_again

Daniel Vetter (3):
drm/crc-debugfs: User irqsafe spinlock in drm_crtc_add_crc_entry drm/crc-debugfs: Also sprinkle irqrestore over early exits drm/vkms: Forward timer right after drm_crtc_handle_vblank

David Riley (1):
drm/virtio: Add memory barriers for capset cache.

David Windsor (1):
dlm: check if workqueues are NULL before flushing/destroying

Ding Xiang (1):
ALSA: ac97: Fix double free of ac97_codec_device

Dmitry Safonov (1):
iommu/vt-d: Don't queue_iova() if there is no flush queue

Dmitry Vyukov (1):
mm/kmemleak.c: fix check for softirq context

Douglas Anderson (1):
drm/rockchip: Properly adjust to a true clock in adjusted_mode

Eiichi Tsukata (1):
x86/stacktrace: Prevent access_ok() warnings in arch_stack_walk_user()

Enric Balletbo i Serra (1):
usb: dwc3: Fix core validation in probe, move after clocks are enabled

Eryk Brol (1):
drm/amd/display: Increase Backlight Gain Step Size

Eugene Korenevsky (2):
kvm: vmx: fix limit checking in get_vmx_mem_address()
kvm: vmx: segment limit check: use access length

Fabien Dessenne (2):
iio: adc: stm32-dfsdm: manage the get_irq error case
iio: adc: stm32-dfsdm: missing error case during probe

Fabrice Gasnier (1):
i2c: stm32f7: fix the get_irq error cases

Felix Kuehling (1):
drm/amdgpu: Reserve shared fence for eviction fence

Florian Fainelli (1):
dma-remap: Avoid de-referencing NULL atomic_pool

Gautham R. Shenoy (1):
powerpc/xive: Fix loop exit-condition in xive_find_target_in_mask()

Geert Uytterhoeven (2):
serial: sh-sci: Terminate TX DMA during buffer flushing
serial: sh-sci: Fix TX DMA buffer flushing and workqueue races

Gen Zhang (1):
drm/edid: Fix a missing-check bug in drm_load_edid_firmware()

Gerd Rausch (1):
rds: Accept peer connection reject messages due to incompatible version

Greg Kroah-Hartman (1):

      Linux 5.2.5

Guenter Roeck (1):
mm/gup.c: mark undo_dev_pagemap as __maybe_unused

Gwendal Grignou (1):
mfd: cros_ec: Register cros_ec_lid_angle driver when presented

Hans Verkuil (1):
media: videodev2.h: change V4L2_PIX_FMT_BGRA444 define: fourcc was already in use

Hans de Goede (1):
x86/sysfb_efi: Add quirks for some devices with swapped width and height

Hariprasad Kelam (1):
drm/amd/display: fix compilation error

Heng Xiao (1):
f2fs: fix to avoid long latency during umount

Hou Zhiqiang (4):
PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows
PCI: mobiveil: Fix the Class Code field
PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers
PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions

Hridya Valsaraju (1):
binder: prevent transactions to context manager from its own process.

Huang Ying (2):
mm/mincore.c: fix race between swapoff and mincore mm, swap: fix race between swapoff and some swap operations

Hui Wang (1):
ALSA: hda - Add a conexant codec entry to let mute led work

Ira Weiny (1):
mm/swap: fix release_pages() when releasing devmap pages

Jackie Liu (1):
io_uring: fix io_sq_thread_stop running in front of io_sq_thread

James Morse (1):
arm64: assembler: Switch ESB-instruction with a vanilla nop if !ARM64_HAS_RAS

Jason Gunthorpe (1):
mm/hmm: fix use after free with struct hmm in the mmu notifiers

Jean-Philippe Brucker (1):
mm/mmu_notifier: use hlist_add_head_rcu()

Jens Axboe (2):
io_uring: ensure ->list is initialized for poll commands
io_uring: don't use iov_iter_advance() for fixed buffers

Jeremy Sowden (1):
staging: kpc2000: added missing clean-up to probe_core_uio.

Joerg Roedel (1):
iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA

Johannes Berg (1):
um: Silence lockdep complaint about mmap_sem

John Paul Adrian Glaubitz (1):
sunhv: Fix device naming inconsistency between sunhv_console and sunhv_reg

Jordan Crouse (1):
drm/msm/adreno: Ensure that the zap shader region is big enough

Jorge Ramirez-Ortiz (1):
tty: serial: msm_serial: avoid system lockup condition

Josef Bacik (1):
block: init flush rq ref count to 1

Jyri Sarha (1):
drm/bridge: sii902x: pixel clock unit is 10kHz instead of 1kHz

Kai-Heng Feng (1):
ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1

Kefeng Wang (4):
ipmi_si: fix unexpected driver unregister warning
ipmi_ssif: fix unexpected driver unregister warning tty/serial: digicolor: Fix digicolor-usart already registered warning
hpet: Fix division by zero in hpet_time_div()

Konstantin Khlebnikov (6):
proc: use down_read_killable mmap_sem for /proc/pid/smaps_rollup
proc: use down_read_killable mmap_sem for /proc/pid/pagemap
proc: use down_read_killable mmap_sem for /proc/pid/clear_refs
proc: use down_read_killable mmap_sem for /proc/pid/map_files
proc: use down_read_killable mmap_sem for /proc/pid/maps
mm: use down_read_killable for locking mmap_sem in access_remote_vm

Konstantin Taranov (1):
RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM

Krunoslav Kovac (1):
drm/amd/display: CS_TFM_1D only applied post EOTF

Leo Yan (8):
perf stat: Fix use-after-freed pointer detected by the smatch tool perf top: Fix potential NULL pointer dereference detected by the smatch tool perf trace: Fix potential NULL pointer dereference found by the smatch tool perf session: Fix potential NULL pointer dereference found by the smatch tool perf map: Fix potential NULL pointer dereference found by smatch tool perf annotate: Fix dereferencing freed memory found by the smatch tool perf hists browser: Fix potential NULL pointer dereference found by the smatch tool perf intel-bts: Fix potential NULL pointer dereference found by the smatch tool

Linus Torvalds (1):
access: avoid the RCU grace period for the temporary subjective credentials

Liu, Changcheng (1):
RDMA/i40iw: Set queue pair state when being queried

Lucas Stach (3):
Revert "usb: usb251xb: Add US lanes inversion dts-bindings" Revert "usb: usb251xb: Add US port lanes inversion property"
usb: usb251xb: Reallow swap-dx-lanes to apply to the upstream port

Mao Wenan (1):
staging: kpc2000: report error status to spi core

Marek Vasut (1):
PCI: sysfs: Ignore lockdep for remove attribute

Martijn Coenen (1):
binder: Set end of SG buffer area properly.

Masahiro Yamada (3):
fixdep: check return value of printf() and putchar() powerpc/mm: mark more tlb functions as __always_inline powerpc/boot: add {get, put}_unaligned_be32 to xz_config.h

Mathias Nyman (1):
xhci: Fix crash if scatter gather is used with Immediate Data Transfer (IDT).

Mathieu Desnoyers (1):
rseq/selftests: Fix Thumb mode build failure on arm32

Mathieu Malaterre (1):
powerpc: silence a -Wcast-function-type warning in dawr_write_file_bool

Michael Ellerman (1):
powerpc/irq: Don't WARN continuously in arch_local_irq_restore()

Michael Neuling (1):
powerpc/tm: Fix oops on sigreturn on systems without TM

Mikhail Skorzhinskii (2):
nvme-tcp: don't use sendpage for SLAB pages
nvme-tcp: set the STABLE_WRITES flag when data digests are enabled

Minwoo Im (1):
nvme: fix NULL deref for fabrics options

Nathan Chancellor (1):
kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS

Nathan Lynch (2):
powerpc/pseries/mobility: prevent cpu hotplug during DT update powerpc/rtas: retry when cpu offline races with suspend/migration

Naveen N. Rao (2):
powerpc/xmon: Fix disabling tracing while in xmon
recordmcount: Fix spurious mcount entries on powerpc

Neil Armstrong (1):
phy: meson-g12a-usb3-pcie: disable locking for cr_regmap

Nicholas Kazlauskas (4):
drm/amd/display: Fill prescale_params->scale for RGB565 drm/amd/display: Disable cursor when offscreen in negative direction drm/amd/display: Reset planes for color management changes drm/amd/display: Always allocate initial connector state state

Numfor Mbiziwo-Tiapo (1):
perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning

Oak Zeng (2):
drm/amdkfd: Fix a potential memory leak
drm/amdkfd: Fix sdma queue map issue

Ocean Chen (1):
f2fs: avoid out-of-range memory access

Oliver O'Halloran (1):
powerpc/eeh: Handle hugepages in ioremap space

Ondrej Mosnacek (1):
selinux: check sidtab limit before adding a new entry

Parav Pandit (1):
IB/mlx5: Fixed reporting counters on 2nd port for Dual port RoCE

Paul Hsieh (1):
drm/amd/display: Disable ABM before destroy ABM struct

Peter Griffin (1):
drm/lima: handle shared irq case for lima_pp_bcast_irq_handler

Peter Ujfalusi (1):
drm/panel: simple: Fix panel_simple_dsi_probe

Phong Tran (1):
usb: wusbcore: fix unbalanced get/put cluster_id

Qian Cai (1):
powerpc/cacheflush: fix variable set but not used

Qu Wenruo (1):
btrfs: inode: Don't compress if NODATASUM or NODATACOW set

Quentin Deslandes (1):
staging: vt6656: use meaningful error code during buffer allocation

Raul E Rangel (1):
mmc: sdhci: sdhci-pci-o2micro: Check if controller supports 8-bit width

Rautkoski Kimmo EXT (1):
serial: 8250: Fix TX interrupt handling condition

Robert Hancock (1):
mfd: core: Set fwnode for created devices

Roman Li (1):
drm/amd/display: Fill plane attrs only for valid pxl format

Ryan Kennedy (1):
usb: pci-quirks: Correct AMD PLL quirk detection

Sahitya Tummala (1):
f2fs: fix is_idle() check for discard type

Sam Bobroff (1):
drm/bochs: Fix connector leak during driver unload

Sam Ravnborg (1):
sh: prevent warnings when using iounmap

Samson Tam (1):

      drm/amd/display: set link->dongle_max_pix_clk to 0 on a disconnect

Sean Christopherson (2):
KVM: nVMX: Intercept VMWRITEs to GUEST_{CS,SS}_AR_BYTES
KVM: nVMX: Stash L1's CR3 in vmcs01.GUEST_CR3 on nested entry w/o EPT

Sean Paul (3):
drm/msm/a6xx: Check for ERR or NULL before iounmap drm/msm/a6xx: Avoid freeing gmu resources multiple times drm/msm: Depopulate platform on probe failure

Sebastian Reichel (1):
drm/omap: don't check dispc timings for DSI

Serge Semin (2):
tty: max310x: Fix invalid baudrate divisors calculator
tty: serial_core: Set port active bit in uart_port_activate

Sergey Organov (1):
serial: imx: fix locking in set_termios()

Shakeel Butt (1):
memcg, fsnotify: no oom-kill for remote memcg charging

Shawn Anastasio (1):
powerpc/dma: Fix invalid DMA mmap behavior

Shubhrajyoti Datta (1):
serial: uartps: Use the same dynamic major number for all ports

Stefan Roese (1):
serial: mctrl_gpio: Check if GPIO property exisits before requesting it

Suraj Jitindar Singh (4):
KVM: PPC: Book3S HV: Always save guest pmu for guest capable of nesting
KVM: PPC: Book3S HV: Save and restore guest visible PSSCR bits on pseries powerpc/mm: Limit rma_size to 1TB when running without HV mode powerpc/pmu: Set pmcregs_in_use in paca when running as LPAR

Sébastien Szymanski (1):
drm/panel: Add support for Armadeus ST0700 Adapt

Takashi Iwai (2):
ALSA: pcm: Fix refcount_inc() on zero usage
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips

Thierry Reding (1):
gpu: host1x: Increase maximum DMA segment size

Thinh Nguyen (1):
usb: core: hub: Disable hub-initiated U1/U2

Tiecheng Zhou (1):
drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStE

Tomi Valkeinen (2):
drm/bridge: tc358767: read display_props in get_modes() drm/bridge: tfp410: fix use of cancel_delayed_work_sync

Valentine Fatiev (1):
IB/ipoib: Add child to parent list only if device initialized

Vasily Gorbik (1):
kallsyms: exclude kasan local symbols on s390

Wang Hai (1):
memstick: Fix error cleanup path of memstick_init

Wanpeng Li (1):
KVM: X86: Fix fpu state crash in kvm guest

Wen Yang (1):
pinctrl: rockchip: fix leaked of_node references

Wenwen Wang (1):
block/bio-integrity: fix a memory leak bug

Wesley Chalmers (1):
drm/amd/display: Update link rate from DPCD 10

Will Deacon (1):
genksyms: Teach parser about 128-bit built-in types

Yoshihiro Shimoda (3):
phy: renesas: rcar-gen2: Fix memory leak at error paths
phy: renesas: rcar-gen3-usb2: fix imbalance powered flag
usb-storage: Add a limitation for blk_queue_max_hw_sectors()

YueHaibing (3):
PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB platform/x86: Fix PCENGINES_APU2 Kconfig warning
fpga-manager: altera-ps-spi: Fix build error

Yurii Pavlovskyi (1):
platform/x86: asus-wmi: Increase input buffer size of WMI methods

Yuyang Du (1):
locking/lockdep: Fix lock used or unused stats error

Zhengyuan Liu (3):
io_uring: fix the sequence comparison in io_sequence_defer
io_uring: add a memory barrier before atomic_read
io_uring: fix counter inc/dec mismatch in async_list

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

morten petersen (1):
mailbox: handle failed named mailbox channel request

author maintainer
#1 lore raw
Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt new file +9 -0
new file mode 100644
index 000000000000..a30d63db3c8f
@@ -0,0 +1,9 @@
+Armadeus ST0700 Adapt. A Santek ST0700I5Y-RBSLW 7.0" WVGA (800x480) TFT with
+an adapter board.
+
+Required properties:
+- compatible: "armadeus,st0700-adapt"
+- power-supply: see panel-common.txt
+
+Optional properties:
+- backlight: see panel-common.txt
Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml +14 -7
index 4d61fe0a98a4..dc129d9a329e 100644
@@ -23,16 +23,17 @@ properties:
   reg:
     maxItems: 1
 
-  ti,linear-mapping-mode:
-    description: |
-      Enable linear mapping mode. If disabled, then it will use exponential
-      mapping mode in which the ramp up/down appears to have a more uniform
-      transition to the human eye.
-    type: boolean
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 0
 
 required:
   - compatible
   - reg
+  - '#address-cells'
+  - '#size-cells'
 
 patternProperties:
   "^led@[01]$":
@@ -48,7 +49,6 @@ patternProperties:
           in this property. The two current sinks can be controlled
           independently with both banks, or bank A can be configured to control
           both sinks with the led-sources property.
-        maxItems: 1
         minimum: 0
         maximum: 1
 
@@ -73,6 +73,13 @@ patternProperties:
         minimum: 0
         maximum: 255
 
+      ti,linear-mapping-mode:
+        description: |
+          Enable linear mapping mode. If disabled, then it will use exponential
+          mapping mode in which the ramp up/down appears to have a more uniform
+          transition to the human eye.
+        type: boolean
+
     required:
       - reg
 
Documentation/devicetree/bindings/usb/usb251xb.txt +2 -4
index bc7945e9dbfe..17915f64b8ee 100644
@@ -64,10 +64,8 @@ Optional properties :
  - power-on-time-ms : Specifies the time it takes from the time the host
 	initiates the power-on sequence to a port until the port has adequate
 	power. The value is given in ms in a 0 - 510 range (default is 100ms).
- - swap-dx-lanes : Specifies the downstream ports which will swap the
-	differential-pair (D+/D-), default is not-swapped.
- - swap-us-lanes : Selects the upstream port differential-pair (D+/D-)
-	swapping (boolean, default is not-swapped)
+ - swap-dx-lanes : Specifies the ports which will swap the differential-pair
+	(D+/D-), default is not-swapped.
 
 Examples:
 	usb2512b@2c {
Makefile +2 -1
index 68ee97784c4d..78bd926c8439 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 2
-SUBLEVEL = 4
+SUBLEVEL = 5
 EXTRAVERSION =
 NAME = Bobtail Squid
 
@@ -528,6 +528,7 @@ ifneq ($(GCC_TOOLCHAIN),)
 CLANG_FLAGS	+= --gcc-toolchain=$(GCC_TOOLCHAIN)
 endif
 CLANG_FLAGS	+= -no-integrated-as
+CLANG_FLAGS	+= -Werror=unknown-warning-option
 KBUILD_CFLAGS	+= $(CLANG_FLAGS)
 KBUILD_AFLAGS	+= $(CLANG_FLAGS)
 export CLANG_FLAGS
arch/arm64/include/asm/assembler.h +4 -0
index 570d195a184d..e3a15c751b13 100644
@@ -96,7 +96,11 @@
  * RAS Error Synchronization barrier
  */
 	.macro  esb
+#ifdef CONFIG_ARM64_RAS_EXTN
 	hint    #16
+#else
+	nop
+#endif
 	.endm
 
 /*
arch/powerpc/Kconfig +1 -0
index 8c1c636308c8..f7a363cbc1bb 100644
@@ -121,6 +121,7 @@ config PPC
 	select ARCH_32BIT_OFF_T if PPC32
 	select ARCH_HAS_DEBUG_VIRTUAL
 	select ARCH_HAS_DEVMEM_IS_ALLOWED
+	select ARCH_HAS_DMA_MMAP_PGPROT
 	select ARCH_HAS_ELF_RANDOMIZE
 	select ARCH_HAS_FORTIFY_SOURCE
 	select ARCH_HAS_GCOV_PROFILE_ALL
arch/powerpc/boot/xz_config.h +20 -0
index e22e5b3770dd..ebfadd39e192 100644
@@ -20,10 +20,30 @@ static inline uint32_t swab32p(void *p)
 
 #ifdef __LITTLE_ENDIAN__
 #define get_le32(p) (*((uint32_t *) (p)))
+#define cpu_to_be32(x) swab32(x)
+static inline u32 be32_to_cpup(const u32 *p)
+{
+	return swab32p((u32 *)p);
+}
 #else
 #define get_le32(p) swab32p(p)
+#define cpu_to_be32(x) (x)
+static inline u32 be32_to_cpup(const u32 *p)
+{
+	return *p;
+}
 #endif
 
+static inline uint32_t get_unaligned_be32(const void *p)
+{
+	return be32_to_cpup(p);
+}
+
+static inline void put_unaligned_be32(u32 val, void *p)
+{
+	*((u32 *)p) = cpu_to_be32(val);
+}
+
 #define memeq(a, b, size) (memcmp(a, b, size) == 0)
 #define memzero(buf, size) memset(buf, 0, size)
 
arch/powerpc/include/asm/cacheflush.h +5 -2
index 74d60cfe8ce5..fd318f7c3eed 100644
@@ -29,9 +29,12 @@
  * not expect this type of fault. flush_cache_vmap is not exactly the right
  * place to put this, but it seems to work well enough.
  */
-#define flush_cache_vmap(start, end)		do { asm volatile("ptesync" ::: "memory"); } while (0)
+static inline void flush_cache_vmap(unsigned long start, unsigned long end)
+{
+	asm volatile("ptesync" ::: "memory");
+}
 #else
-#define flush_cache_vmap(start, end)		do { } while (0)
+static inline void flush_cache_vmap(unsigned long start, unsigned long end) { }
 #endif
 
 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
arch/powerpc/include/asm/pmc.h +2 -3
index dc9a1ca70edf..c6bbe9778d3c 100644
@@ -27,11 +27,10 @@ static inline void ppc_set_pmu_inuse(int inuse)
 #ifdef CONFIG_PPC_PSERIES
 		get_lppaca()->pmcregs_in_use = inuse;
 #endif
-	} else {
+	}
 #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
-		get_paca()->pmcregs_in_use = inuse;
+	get_paca()->pmcregs_in_use = inuse;
 #endif
-	}
 #endif
 }
 
arch/powerpc/kernel/Makefile +2 -1
index 0ea6c4aa3a20..21dfff2b25a1 100644
@@ -49,7 +49,8 @@ obj-y				:= cputable.o ptrace.o syscalls.o \
 				   signal.o sysfs.o cacheinfo.o time.o \
 				   prom.o traps.o setup-common.o \
 				   udbg.o misc.o io.o misc_$(BITS).o \
-				   of_platform.o prom_parse.o
+				   of_platform.o prom_parse.o \
+				   dma-common.o
 obj-$(CONFIG_PPC64)		+= setup_64.o sys_ppc32.o \
 				   signal_64.o ptrace32.o \
 				   paca.o nvram_64.o firmware.o
arch/powerpc/kernel/dma-common.c new file +17 -0
new file mode 100644
index 000000000000..dc7ef6b17b69
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Contains common dma routines for all powerpc platforms.
+ *
+ * Copyright (C) 2019 Shawn Anastasio.
+ */
+
+#include <linux/mm.h>
+#include <linux/dma-noncoherent.h>
+
+pgprot_t arch_dma_mmap_pgprot(struct device *dev, pgprot_t prot,
+		unsigned long attrs)
+{
+	if (!dev_is_dma_coherent(dev))
+		return pgprot_noncached(prot);
+	return prot;
+}
arch/powerpc/kernel/eeh.c +12 -3
index f192d57db47d..c0e4b73191f3 100644
@@ -354,10 +354,19 @@ static inline unsigned long eeh_token_to_phys(unsigned long token)
 	ptep = find_init_mm_pte(token, &hugepage_shift);
 	if (!ptep)
 		return token;
-	WARN_ON(hugepage_shift);
-	pa = pte_pfn(*ptep) << PAGE_SHIFT;
 
-	return pa | (token & (PAGE_SIZE-1));
+	pa = pte_pfn(*ptep);
+
+	/* On radix we can do hugepage mappings for io, so handle that */
+	if (hugepage_shift) {
+		pa <<= hugepage_shift;
+		pa |= token & ((1ul << hugepage_shift) - 1);
+	} else {
+		pa <<= PAGE_SHIFT;
+		pa |= token & (PAGE_SIZE - 1);
+	}
+
+	return pa;
 }
 
 /*
arch/powerpc/kernel/hw_breakpoint.c +6 -1
index a293a53b4365..50262597c222 100644
@@ -370,6 +370,11 @@ void hw_breakpoint_pmu_read(struct perf_event *bp)
 bool dawr_force_enable;
 EXPORT_SYMBOL_GPL(dawr_force_enable);
 
+static void set_dawr_cb(void *info)
+{
+	set_dawr(info);
+}
+
 static ssize_t dawr_write_file_bool(struct file *file,
 				    const char __user *user_buf,
 				    size_t count, loff_t *ppos)
@@ -389,7 +394,7 @@ static ssize_t dawr_write_file_bool(struct file *file,
 
 	/* If we are clearing, make sure all CPUs have the DAWR cleared */
 	if (!dawr_force_enable)
-		smp_call_function((smp_call_func_t)set_dawr, &null_brk, 0);
+		smp_call_function(set_dawr_cb, &null_brk, 0);
 
 	return rc;
 }
arch/powerpc/kernel/irq.c +3 -3
index bc68c53af67c..5645bc9cbc09 100644
@@ -255,7 +255,7 @@ notrace void arch_local_irq_restore(unsigned long mask)
 	irq_happened = get_irq_happened();
 	if (!irq_happened) {
 #ifdef CONFIG_PPC_IRQ_SOFT_MASK_DEBUG
-		WARN_ON(!(mfmsr() & MSR_EE));
+		WARN_ON_ONCE(!(mfmsr() & MSR_EE));
 #endif
 		return;
 	}
@@ -268,7 +268,7 @@ notrace void arch_local_irq_restore(unsigned long mask)
 	 */
 	if (!(irq_happened & PACA_IRQ_HARD_DIS)) {
 #ifdef CONFIG_PPC_IRQ_SOFT_MASK_DEBUG
-		WARN_ON(!(mfmsr() & MSR_EE));
+		WARN_ON_ONCE(!(mfmsr() & MSR_EE));
 #endif
 		__hard_irq_disable();
 #ifdef CONFIG_PPC_IRQ_SOFT_MASK_DEBUG
@@ -279,7 +279,7 @@ notrace void arch_local_irq_restore(unsigned long mask)
 		 * warn if we are wrong. Only do that when IRQ tracing
 		 * is enabled as mfmsr() can be costly.
 		 */
-		if (WARN_ON(mfmsr() & MSR_EE))
+		if (WARN_ON_ONCE(mfmsr() & MSR_EE))
 			__hard_irq_disable();
 #endif
 	}
arch/powerpc/kernel/pci_of_scan.c +2 -0
index 24522aa37665..c63c53b37e8e 100644
@@ -42,6 +42,8 @@ unsigned int pci_parse_of_flags(u32 addr0, int bridge)
 	if (addr0 & 0x02000000) {
 		flags = IORESOURCE_MEM | PCI_BASE_ADDRESS_SPACE_MEMORY;
 		flags |= (addr0 >> 22) & PCI_BASE_ADDRESS_MEM_TYPE_64;
+		if (flags & PCI_BASE_ADDRESS_MEM_TYPE_64)
+			flags |= IORESOURCE_MEM_64;
 		flags |= (addr0 >> 28) & PCI_BASE_ADDRESS_MEM_TYPE_1M;
 		if (addr0 & 0x40000000)
 			flags |= IORESOURCE_PREFETCH
arch/powerpc/kernel/rtas.c +3 -4
index b824f4c69622..fff2eb22427d 100644
@@ -980,10 +980,9 @@ int rtas_ibm_suspend_me(u64 handle)
 	cpu_hotplug_disable();
 
 	/* Check if we raced with a CPU-Offline Operation */
-	if (unlikely(!cpumask_equal(cpu_present_mask, cpu_online_mask))) {
-		pr_err("%s: Raced against a concurrent CPU-Offline\n",
-		       __func__);
-		atomic_set(&data.error, -EBUSY);
+	if (!cpumask_equal(cpu_present_mask, cpu_online_mask)) {
+		pr_info("%s: Raced against a concurrent CPU-Offline\n", __func__);
+		atomic_set(&data.error, -EAGAIN);
 		goto out_hotplug_enable;
 	}
 
arch/powerpc/kernel/signal_32.c +3 -0
index a2b74e057904..ebb78effd280 100644
@@ -1198,6 +1198,9 @@ SYSCALL_DEFINE0(rt_sigreturn)
 			goto bad;
 
 		if (MSR_TM_ACTIVE(msr_hi<<32)) {
+			/* Trying to start TM on non TM system */
+			if (!cpu_has_feature(CPU_FTR_TM))
+				goto bad;
 			/* We only recheckpoint on return if we're
 			 * transaction.
 			 */
arch/powerpc/kernel/signal_64.c +5 -0
index 4292ea39baa4..bee704f32f96 100644
@@ -771,6 +771,11 @@ SYSCALL_DEFINE0(rt_sigreturn)
 	if (MSR_TM_ACTIVE(msr)) {
 		/* We recheckpoint on return. */
 		struct ucontext __user *uc_transact;
+
+		/* Trying to start TM on non TM system */
+		if (!cpu_has_feature(CPU_FTR_TM))
+			goto badframe;
+
 		if (__get_user(uc_transact, &uc->uc_link))
 			goto badframe;
 		if (restore_tm_sigcontexts(current, &uc->uc_mcontext,
arch/powerpc/kvm/book3s_hv.c +13 -0
index ec1804f822af..cde3f5a4b3e4 100644
@@ -3569,9 +3569,18 @@ int kvmhv_p9_guest_entry(struct kvm_vcpu *vcpu, u64 time_limit,
 	mtspr(SPRN_DEC, vcpu->arch.dec_expires - mftb());
 
 	if (kvmhv_on_pseries()) {
+		/*
+		 * We need to save and restore the guest visible part of the
+		 * psscr (i.e. using SPRN_PSSCR_PR) since the hypervisor
+		 * doesn't do this for us. Note only required if pseries since
+		 * this is done in kvmhv_load_hv_regs_and_go() below otherwise.
+		 */
+		unsigned long host_psscr;
 		/* call our hypervisor to load up HV regs and go */
 		struct hv_guest_state hvregs;
 
+		host_psscr = mfspr(SPRN_PSSCR_PR);
+		mtspr(SPRN_PSSCR_PR, vcpu->arch.psscr);
 		kvmhv_save_hv_regs(vcpu, &hvregs);
 		hvregs.lpcr = lpcr;
 		vcpu->arch.regs.msr = vcpu->arch.shregs.msr;
@@ -3590,6 +3599,8 @@ int kvmhv_p9_guest_entry(struct kvm_vcpu *vcpu, u64 time_limit,
 		vcpu->arch.shregs.msr = vcpu->arch.regs.msr;
 		vcpu->arch.shregs.dar = mfspr(SPRN_DAR);
 		vcpu->arch.shregs.dsisr = mfspr(SPRN_DSISR);
+		vcpu->arch.psscr = mfspr(SPRN_PSSCR_PR);
+		mtspr(SPRN_PSSCR_PR, host_psscr);
 
 		/* H_CEDE has to be handled now, not later */
 		if (trap == BOOK3S_INTERRUPT_SYSCALL && !vcpu->arch.nested &&
@@ -3654,6 +3665,8 @@ int kvmhv_p9_guest_entry(struct kvm_vcpu *vcpu, u64 time_limit,
 		vcpu->arch.vpa.dirty = 1;
 		save_pmu = lp->pmcregs_in_use;
 	}
+	/* Must save pmu if this guest is capable of running nested guests */
+	save_pmu |= nesting_enabled(vcpu->kvm);
 
 	kvmhv_save_guest_pmu(vcpu, save_pmu);
 
arch/powerpc/kvm/book3s_xive.c +1 -3
index 6ca0d7376a9f..e3ba67095895 100644
@@ -1986,10 +1986,8 @@ static int kvmppc_xive_create(struct kvm_device *dev, u32 type)
 
 	xive->single_escalation = xive_native_has_single_escalation();
 
-	if (ret) {
-		kfree(xive);
+	if (ret)
 		return ret;
-	}
 
 	return 0;
 }
arch/powerpc/kvm/book3s_xive_native.c +2 -2
index 5596c8ec221a..a998823f68a3 100644
@@ -1090,9 +1090,9 @@ static int kvmppc_xive_native_create(struct kvm_device *dev, u32 type)
 	xive->ops = &kvmppc_xive_native_ops;
 
 	if (ret)
-		kfree(xive);
+		return ret;
 
-	return ret;
+	return 0;
 }
 
 /*
arch/powerpc/mm/book3s64/hash_native.c +1 -1
index 30d62ffe3310..1322c59cb5dd 100644
@@ -56,7 +56,7 @@ static inline void tlbiel_hash_set_isa206(unsigned int set, unsigned int is)
  * tlbiel instruction for hash, set invalidation
  * i.e., r=1 and is=01 or is=10 or is=11
  */
-static inline void tlbiel_hash_set_isa300(unsigned int set, unsigned int is,
+static __always_inline void tlbiel_hash_set_isa300(unsigned int set, unsigned int is,
 					unsigned int pid,
 					unsigned int ric, unsigned int prs)
 {
arch/powerpc/mm/book3s64/hash_utils.c +9 -0
index 28ced26f2a00..ab659044c7f6 100644
@@ -1901,11 +1901,20 @@ void hash__setup_initial_memory_limit(phys_addr_t first_memblock_base,
 	 *
 	 * For guests on platforms before POWER9, we clamp the it limit to 1G
 	 * to avoid some funky things such as RTAS bugs etc...
+	 *
+	 * On POWER9 we limit to 1TB in case the host erroneously told us that
+	 * the RMA was >1TB. Effective address bits 0:23 are treated as zero
+	 * (meaning the access is aliased to zero i.e. addr = addr % 1TB)
+	 * for virtual real mode addressing and so it doesn't make sense to
+	 * have an area larger than 1TB as it can't be addressed.
 	 */
 	if (!early_cpu_has_feature(CPU_FTR_HVMODE)) {
 		ppc64_rma_size = first_memblock_size;
 		if (!early_cpu_has_feature(CPU_FTR_ARCH_300))
 			ppc64_rma_size = min_t(u64, ppc64_rma_size, 0x40000000);
+		else
+			ppc64_rma_size = min_t(u64, ppc64_rma_size,
+					       1UL << SID_SHIFT_1T);
 
 		/* Finally limit subsequent allocations */
 		memblock_set_current_limit(ppc64_rma_size);
arch/powerpc/mm/book3s64/radix_tlb.c +16 -16
index bb9835681315..d0cd5271a57c 100644
@@ -25,7 +25,7 @@
  * tlbiel instruction for radix, set invalidation
  * i.e., r=1 and is=01 or is=10 or is=11
  */
-static inline void tlbiel_radix_set_isa300(unsigned int set, unsigned int is,
+static __always_inline void tlbiel_radix_set_isa300(unsigned int set, unsigned int is,
 					unsigned int pid,
 					unsigned int ric, unsigned int prs)
 {
@@ -146,8 +146,8 @@ static __always_inline void __tlbie_lpid(unsigned long lpid, unsigned long ric)
 	trace_tlbie(lpid, 0, rb, rs, ric, prs, r);
 }
 
-static inline void __tlbiel_lpid_guest(unsigned long lpid, int set,
-				unsigned long ric)
+static __always_inline void __tlbiel_lpid_guest(unsigned long lpid, int set,
+						unsigned long ric)
 {
 	unsigned long rb,rs,prs,r;
 
@@ -163,8 +163,8 @@ static inline void __tlbiel_lpid_guest(unsigned long lpid, int set,
 }
 
 
-static inline void __tlbiel_va(unsigned long va, unsigned long pid,
-			       unsigned long ap, unsigned long ric)
+static __always_inline void __tlbiel_va(unsigned long va, unsigned long pid,
+					unsigned long ap, unsigned long ric)
 {
 	unsigned long rb,rs,prs,r;
 
@@ -179,8 +179,8 @@ static inline void __tlbiel_va(unsigned long va, unsigned long pid,
 	trace_tlbie(0, 1, rb, rs, ric, prs, r);
 }
 
-static inline void __tlbie_va(unsigned long va, unsigned long pid,
-			      unsigned long ap, unsigned long ric)
+static __always_inline void __tlbie_va(unsigned long va, unsigned long pid,
+				       unsigned long ap, unsigned long ric)
 {
 	unsigned long rb,rs,prs,r;
 
@@ -195,8 +195,8 @@ static inline void __tlbie_va(unsigned long va, unsigned long pid,
 	trace_tlbie(0, 0, rb, rs, ric, prs, r);
 }
 
-static inline void __tlbie_lpid_va(unsigned long va, unsigned long lpid,
-			      unsigned long ap, unsigned long ric)
+static __always_inline void __tlbie_lpid_va(unsigned long va, unsigned long lpid,
+					    unsigned long ap, unsigned long ric)
 {
 	unsigned long rb,rs,prs,r;
 
@@ -235,7 +235,7 @@ static inline void fixup_tlbie_lpid(unsigned long lpid)
 /*
  * We use 128 set in radix mode and 256 set in hpt mode.
  */
-static inline void _tlbiel_pid(unsigned long pid, unsigned long ric)
+static __always_inline void _tlbiel_pid(unsigned long pid, unsigned long ric)
 {
 	int set;
 
@@ -337,7 +337,7 @@ static inline void _tlbie_lpid(unsigned long lpid, unsigned long ric)
 	asm volatile("eieio; tlbsync; ptesync": : :"memory");
 }
 
-static inline void _tlbiel_lpid_guest(unsigned long lpid, unsigned long ric)
+static __always_inline void _tlbiel_lpid_guest(unsigned long lpid, unsigned long ric)
 {
 	int set;
 
@@ -377,8 +377,8 @@ static inline void __tlbiel_va_range(unsigned long start, unsigned long end,
 		__tlbiel_va(addr, pid, ap, RIC_FLUSH_TLB);
 }
 
-static inline void _tlbiel_va(unsigned long va, unsigned long pid,
-			      unsigned long psize, unsigned long ric)
+static __always_inline void _tlbiel_va(unsigned long va, unsigned long pid,
+				       unsigned long psize, unsigned long ric)
 {
 	unsigned long ap = mmu_get_ap(psize);
 
@@ -409,8 +409,8 @@ static inline void __tlbie_va_range(unsigned long start, unsigned long end,
 		__tlbie_va(addr, pid, ap, RIC_FLUSH_TLB);
 }
 
-static inline void _tlbie_va(unsigned long va, unsigned long pid,
-			      unsigned long psize, unsigned long ric)
+static __always_inline void _tlbie_va(unsigned long va, unsigned long pid,
+				      unsigned long psize, unsigned long ric)
 {
 	unsigned long ap = mmu_get_ap(psize);
 
@@ -420,7 +420,7 @@ static inline void _tlbie_va(unsigned long va, unsigned long pid,
 	asm volatile("eieio; tlbsync; ptesync": : :"memory");
 }
 
-static inline void _tlbie_lpid_va(unsigned long va, unsigned long lpid,
+static __always_inline void _tlbie_lpid_va(unsigned long va, unsigned long lpid,
 			      unsigned long psize, unsigned long ric)
 {
 	unsigned long ap = mmu_get_ap(psize);
arch/powerpc/mm/hugetlbpage.c +8 -0
index b5d92dc32844..1de0f43a68e5 100644
@@ -130,6 +130,8 @@ pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz
 	} else {
 		pdshift = PUD_SHIFT;
 		pu = pud_alloc(mm, pg, addr);
+		if (!pu)
+			return NULL;
 		if (pshift == PUD_SHIFT)
 			return (pte_t *)pu;
 		else if (pshift > PMD_SHIFT) {
@@ -138,6 +140,8 @@ pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz
 		} else {
 			pdshift = PMD_SHIFT;
 			pm = pmd_alloc(mm, pu, addr);
+			if (!pm)
+				return NULL;
 			if (pshift == PMD_SHIFT)
 				/* 16MB hugepage */
 				return (pte_t *)pm;
@@ -154,12 +158,16 @@ pte_t *huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz
 	} else {
 		pdshift = PUD_SHIFT;
 		pu = pud_alloc(mm, pg, addr);
+		if (!pu)
+			return NULL;
 		if (pshift >= PUD_SHIFT) {
 			ptl = pud_lockptr(mm, pu);
 			hpdp = (hugepd_t *)pu;
 		} else {
 			pdshift = PMD_SHIFT;
 			pm = pmd_alloc(mm, pu, addr);
+			if (!pm)
+				return NULL;
 			ptl = pmd_lockptr(mm, pm);
 			hpdp = (hugepd_t *)pm;
 		}
arch/powerpc/platforms/4xx/uic.c +1 -0
index 31f12ad37a98..36fb66ce54cf 100644
@@ -154,6 +154,7 @@ static int uic_set_irq_type(struct irq_data *d, unsigned int flow_type)
 
 	mtdcr(uic->dcrbase + UIC_PR, pr);
 	mtdcr(uic->dcrbase + UIC_TR, tr);
+	mtdcr(uic->dcrbase + UIC_SR, ~mask);
 
 	raw_spin_unlock_irqrestore(&uic->lock, flags);
 
arch/powerpc/platforms/pseries/mobility.c +9 -0
index 0c48c8964783..50e7aee3c7f3 100644
@@ -6,6 +6,7 @@
  * Copyright (C) 2010 IBM Corporation
  */
 
+#include <linux/cpu.h>
 #include <linux/kernel.h>
 #include <linux/kobject.h>
 #include <linux/smp.h>
@@ -335,11 +336,19 @@ void post_mobility_fixup(void)
 	if (rc)
 		printk(KERN_ERR "Post-mobility activate-fw failed: %d\n", rc);
 
+	/*
+	 * We don't want CPUs to go online/offline while the device
+	 * tree is being updated.
+	 */
+	cpus_read_lock();
+
 	rc = pseries_devicetree_update(MIGRATION_SCOPE);
 	if (rc)
 		printk(KERN_ERR "Post-mobility device tree update "
 			"failed: %d\n", rc);
 
+	cpus_read_unlock();
+
 	/* Possibly switch to a new RFI flush type */
 	pseries_setup_rfi_flush();
 
arch/powerpc/sysdev/xive/common.c +3 -4
index 082c7e1c20f0..1cdb39575eae 100644
@@ -479,7 +479,7 @@ static int xive_find_target_in_mask(const struct cpumask *mask,
 	 * Now go through the entire mask until we find a valid
 	 * target.
 	 */
-	for (;;) {
+	do {
 		/*
 		 * We re-check online as the fallback case passes us
 		 * an untested affinity mask
@@ -487,12 +487,11 @@ static int xive_find_target_in_mask(const struct cpumask *mask,
 		if (cpu_online(cpu) && xive_try_pick_target(cpu))
 			return cpu;
 		cpu = cpumask_next(cpu, mask);
-		if (cpu == first)
-			break;
 		/* Wrap around */
 		if (cpu >= nr_cpu_ids)
 			cpu = cpumask_first(mask);
-	}
+	} while (cpu != first);
+
 	return -1;
 }
 
arch/powerpc/xmon/xmon.c +4 -2
index d0620d762a5a..4a721fd62406 100644
@@ -465,8 +465,10 @@ static int xmon_core(struct pt_regs *regs, int fromipi)
 	local_irq_save(flags);
 	hard_irq_disable();
 
-	tracing_enabled = tracing_is_on();
-	tracing_off();
+	if (!fromipi) {
+		tracing_enabled = tracing_is_on();
+		tracing_off();
+	}
 
 	bp = in_breakpoint_table(regs->nip, &offset);
 	if (bp != NULL) {
arch/sh/include/asm/io.h +5 -1
index c28e37a344ad..ac0561960c52 100644
@@ -369,7 +369,11 @@ static inline int iounmap_fixed(void __iomem *addr) { return -EINVAL; }
 
 #define ioremap_nocache	ioremap
 #define ioremap_uc	ioremap
-#define iounmap		__iounmap
+
+static inline void iounmap(void __iomem *addr)
+{
+	__iounmap(addr);
+}
 
 /*
  * Convert a physical pointer to a virtual kernel pointer for /dev/mem
arch/um/include/asm/mmu_context.h +1 -1
index 9f4b4bb78120..00cefd33afdd 100644
@@ -52,7 +52,7 @@ static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
 	 * when the new ->mm is used for the first time.
 	 */
 	__switch_mm(&new->context.id);
-	down_write(&new->mmap_sem);
+	down_write_nested(&new->mmap_sem, 1);
 	uml_setup_stubs(new);
 	up_write(&new->mmap_sem);
 }
arch/x86/include/uapi/asm/vmx.h +0 -1
index d213ec5c3766..f0b0c90dd398 100644
@@ -146,7 +146,6 @@
 
 #define VMX_ABORT_SAVE_GUEST_MSR_FAIL        1
 #define VMX_ABORT_LOAD_HOST_PDPTE_FAIL       2
-#define VMX_ABORT_VMCS_CORRUPTED             3
 #define VMX_ABORT_LOAD_HOST_MSR_FAIL         4
 
 #endif /* _UAPIVMX_H */
arch/x86/kernel/cpu/bugs.c +1 -1
index 66ca906aa790..801ecd1c3fd5 100644
@@ -1226,7 +1226,7 @@ static ssize_t l1tf_show_state(char *buf)
 
 static ssize_t mds_show_state(char *buf)
 {
-	if (!hypervisor_is_type(X86_HYPER_NATIVE)) {
+	if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) {
 		return sprintf(buf, "%s; SMT Host state unknown\n",
 			       mds_strings[mds_mitigation]);
 	}
arch/x86/kernel/stacktrace.c +1 -1
index 4f36d3241faf..2d6898c2cb64 100644
@@ -100,7 +100,7 @@ copy_stack_frame(const void __user *fp, struct stack_frame_user *frame)
 {
 	int ret;
 
-	if (!access_ok(fp, sizeof(*frame)))
+	if (__range_not_ok(fp, sizeof(*frame), TASK_SIZE))
 		return 0;
 
 	ret = 1;
arch/x86/kernel/sysfb_efi.c +46 -0

55 lines not on this page · raw message

arch/x86/kvm/vmx/nested.c +54 -33

188 lines not on this page · raw message

arch/x86/kvm/vmx/nested.h +1 -1
index e847ff1019a2..29d205bb4e4f 100644
@@ -21,7 +21,7 @@ void nested_sync_from_vmcs12(struct kvm_vcpu *vcpu);
 int vmx_set_vmx_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data);
 int vmx_get_vmx_msr(struct nested_vmx_msrs *msrs, u32 msr_index, u64 *pdata);
 int get_vmx_mem_address(struct kvm_vcpu *vcpu, unsigned long exit_qualification,
-			u32 vmx_instruction_info, bool wr, gva_t *ret);
+			u32 vmx_instruction_info, bool wr, int len, gva_t *ret);
 
 static inline struct vmcs12 *get_vmcs12(struct kvm_vcpu *vcpu)
 {
arch/x86/kvm/vmx/vmcs_shadow_fields.h +2 -2
index 132432f375c2..97dd5295be31 100644
@@ -40,14 +40,14 @@ SHADOW_FIELD_RO(VM_EXIT_INSTRUCTION_LEN)
 SHADOW_FIELD_RO(IDT_VECTORING_INFO_FIELD)
 SHADOW_FIELD_RO(IDT_VECTORING_ERROR_CODE)
 SHADOW_FIELD_RO(VM_EXIT_INTR_ERROR_CODE)
+SHADOW_FIELD_RO(GUEST_CS_AR_BYTES)
+SHADOW_FIELD_RO(GUEST_SS_AR_BYTES)
 SHADOW_FIELD_RW(CPU_BASED_VM_EXEC_CONTROL)
 SHADOW_FIELD_RW(EXCEPTION_BITMAP)
 SHADOW_FIELD_RW(VM_ENTRY_EXCEPTION_ERROR_CODE)
 SHADOW_FIELD_RW(VM_ENTRY_INTR_INFO_FIELD)
 SHADOW_FIELD_RW(VM_ENTRY_INSTRUCTION_LEN)
 SHADOW_FIELD_RW(TPR_THRESHOLD)
-SHADOW_FIELD_RW(GUEST_CS_AR_BYTES)
-SHADOW_FIELD_RW(GUEST_SS_AR_BYTES)
 SHADOW_FIELD_RW(GUEST_INTERRUPTIBILITY_INFO)
 SHADOW_FIELD_RW(VMX_PREEMPTION_TIMER_VALUE)
 
arch/x86/kvm/vmx/vmx.c +2 -1
index 306ed28569c0..924c2a79e4a9 100644
@@ -5349,7 +5349,8 @@ static int handle_invpcid(struct kvm_vcpu *vcpu)
 	 * is read even if it isn't needed (e.g., for type==all)
 	 */
 	if (get_vmx_mem_address(vcpu, vmcs_readl(EXIT_QUALIFICATION),
-				vmx_instruction_info, false, &gva))
+				vmx_instruction_info, false,
+				sizeof(operand), &gva))
 		return 1;
 
 	if (kvm_read_guest_virt(vcpu, gva, &operand, sizeof(operand), &e)) {
arch/x86/kvm/x86.c +6 -3
index a4eceb0b5dde..a8ad3a4d86b1 100644
@@ -3264,6 +3264,10 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
 
 	kvm_x86_ops->vcpu_load(vcpu, cpu);
 
+	fpregs_assert_state_consistent();
+	if (test_thread_flag(TIF_NEED_FPU_LOAD))
+		switch_fpu_return();
+
 	/* Apply any externally detected TSC adjustments (due to suspend) */
 	if (unlikely(vcpu->arch.tsc_offset_adjustment)) {
 		adjust_tsc_offset_host(vcpu, vcpu->arch.tsc_offset_adjustment);
@@ -7955,9 +7959,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
 		wait_lapic_expire(vcpu);
 	guest_enter_irqoff();
 
-	fpregs_assert_state_consistent();
-	if (test_thread_flag(TIF_NEED_FPU_LOAD))
-		switch_fpu_return();
+	/* The preempt notifier should have taken care of the FPU already.  */
+	WARN_ON_ONCE(test_thread_flag(TIF_NEED_FPU_LOAD));
 
 	if (unlikely(vcpu->arch.switch_db_regs)) {
 		set_debugreg(0, 7);
block/bio-integrity.c +6 -2
index 4db620849515..fb95dbb21dd8 100644
@@ -276,8 +276,12 @@ bool bio_integrity_prep(struct bio *bio)
 		ret = bio_integrity_add_page(bio, virt_to_page(buf),
 					     bytes, offset);
 
-		if (ret == 0)
-			return false;
+		if (ret == 0) {
+			printk(KERN_ERR "could not attach integrity payload\n");
+			kfree(buf);
+			status = BLK_STS_RESOURCE;
+			goto err_end_io;
+		}
 
 		if (ret < bytes)
 			break;
block/blk-core.c +1 -0
index 8340f69670d8..5183fca0818a 100644
@@ -117,6 +117,7 @@ void blk_rq_init(struct request_queue *q, struct request *rq)
 	rq->internal_tag = -1;
 	rq->start_time_ns = ktime_get_ns();
 	rq->part = NULL;
+	refcount_set(&rq->ref, 1);
 }
 EXPORT_SYMBOL(blk_rq_init);
 
drivers/android/binder.c +3 -2
index 38a59a630cd4..dc1c83eafc22 100644
@@ -2988,7 +2988,7 @@ static void binder_transaction(struct binder_proc *proc,
 			else
 				return_error = BR_DEAD_REPLY;
 			mutex_unlock(&context->context_mgr_node_lock);
-			if (target_node && target_proc == proc) {
+			if (target_node && target_proc->pid == proc->pid) {
 				binder_user_error("%d:%d got transaction to context manager from process owning it\n",
 						  proc->pid, thread->pid);
 				return_error = BR_FAILED_REPLY;
@@ -3239,7 +3239,8 @@ static void binder_transaction(struct binder_proc *proc,
 	buffer_offset = off_start_offset;
 	off_end_offset = off_start_offset + tr->offsets_size;
 	sg_buf_offset = ALIGN(off_end_offset, sizeof(void *));
-	sg_buf_end_offset = sg_buf_offset + extra_buffers_size;
+	sg_buf_end_offset = sg_buf_offset + extra_buffers_size -
+		ALIGN(secctx_sz, sizeof(u64));
 	off_min = 0;
 	for (buffer_offset = off_start_offset; buffer_offset < off_end_offset;
 	     buffer_offset += sizeof(binder_size_t)) {
drivers/base/core.c +19 -8
index fd7511e04e62..eaf3aa0cb803 100644
@@ -2211,6 +2211,24 @@ void put_device(struct device *dev)
 }
 EXPORT_SYMBOL_GPL(put_device);
 
+bool kill_device(struct device *dev)
+{
+	/*
+	 * Require the device lock and set the "dead" flag to guarantee that
+	 * the update behavior is consistent with the other bitfields near
+	 * it and that we cannot have an asynchronous probe routine trying
+	 * to run while we are tearing out the bus/class/sysfs from
+	 * underneath the device.
+	 */
+	lockdep_assert_held(&dev->mutex);
+
+	if (dev->p->dead)
+		return false;
+	dev->p->dead = true;
+	return true;
+}
+EXPORT_SYMBOL_GPL(kill_device);
+
 /**
  * device_del - delete device from system.
  * @dev: device.
@@ -2230,15 +2248,8 @@ void device_del(struct device *dev)
 	struct kobject *glue_dir = NULL;
 	struct class_interface *class_intf;
 
-	/*
-	 * Hold the device lock and set the "dead" flag to guarantee that
-	 * the update behavior is consistent with the other bitfields near
-	 * it and that we cannot have an asynchronous probe routine trying
-	 * to run while we are tearing out the bus/class/sysfs from
-	 * underneath the device.
-	 */
 	device_lock(dev);
-	dev->p->dead = true;
+	kill_device(dev);
 	device_unlock(dev);
 
 	/* Notify clients of device removal.  This call must come
drivers/char/hpet.c +1 -2
index 5c39f20378b8..9ac6671bb514 100644
@@ -567,8 +567,7 @@ static inline unsigned long hpet_time_div(struct hpets *hpets,
 	unsigned long long m;
 
 	m = hpets->hp_tick_freq + (dis >> 1);
-	do_div(m, dis);
-	return (unsigned long)m;
+	return div64_ul(m, dis);
 }
 
 static int
drivers/char/ipmi/ipmi_si_platform.c +5 -1
index f2a91c4d8cab..0cd849675d99 100644
@@ -19,6 +19,7 @@
 #include "ipmi_si.h"
 #include "ipmi_dmi.h"
 
+static bool platform_registered;
 static bool si_tryplatform = true;
 #ifdef CONFIG_ACPI
 static bool          si_tryacpi = true;
@@ -469,9 +470,12 @@ void ipmi_si_platform_init(void)
 	int rv = platform_driver_register(&ipmi_platform_driver);
 	if (rv)
 		pr_err("Unable to register driver: %d\n", rv);
+	else
+		platform_registered = true;
 }
 
 void ipmi_si_platform_shutdown(void)
 {
-	platform_driver_unregister(&ipmi_platform_driver);
+	if (platform_registered)
+		platform_driver_unregister(&ipmi_platform_driver);
 }
drivers/char/ipmi/ipmi_ssif.c +4 -1
index cf8156d6bc07..305fa5054274 100644
@@ -303,6 +303,7 @@ struct ssif_info {
 	((unsigned int) atomic_read(&(ssif)->stats[SSIF_STAT_ ## stat]))
 
 static bool initialized;
+static bool platform_registered;
 
 static void return_hosed_msg(struct ssif_info *ssif_info,
 			     struct ipmi_smi_msg *msg);
@@ -2088,6 +2089,8 @@ static int init_ipmi_ssif(void)
 		rv = platform_driver_register(&ipmi_driver);
 		if (rv)
 			pr_err("Unable to register driver: %d\n", rv);
+		else
+			platform_registered = true;
 	}
 
 	ssif_i2c_driver.address_list = ssif_address_list();
@@ -2111,7 +2114,7 @@ static void cleanup_ipmi_ssif(void)
 
 	kfree(ssif_i2c_driver.address_list);
 
-	if (ssif_trydmi)
+	if (ssif_trydmi && platform_registered)
 		platform_driver_unregister(&ipmi_driver);
 
 	free_ssif_clients();
drivers/fpga/Kconfig +1 -0
index 8072c195d831..dd414250e77e 100644
@@ -40,6 +40,7 @@ config ALTERA_PR_IP_CORE_PLAT
 config FPGA_MGR_ALTERA_PS_SPI
 	tristate "Altera FPGA Passive Serial over SPI"
 	depends on SPI
+	select BITREVERSE
 	help
 	  FPGA manager driver support for Altera Arria/Cyclone/Stratix
 	  using the passive serial interface over SPI.
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +4 -0
index a6e5184d436c..4b192e0ce92f 100644
@@ -896,6 +896,9 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info,
 				  AMDGPU_FENCE_OWNER_KFD, false);
 	if (ret)
 		goto wait_pd_fail;
+	ret = reservation_object_reserve_shared(vm->root.base.bo->tbo.resv, 1);
+	if (ret)
+		goto reserve_shared_fail;
 	amdgpu_bo_fence(vm->root.base.bo,
 			&vm->process_info->eviction_fence->base, true);
 	amdgpu_bo_unreserve(vm->root.base.bo);
@@ -909,6 +912,7 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info,
 
 	return 0;
 
+reserve_shared_fail:
 wait_pd_fail:
 validate_pd_fail:
 	amdgpu_bo_unreserve(vm->root.base.bo);
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -0
index 72837b8c7031..c2086eb00555 100644
@@ -1163,6 +1163,9 @@ static int gmc_v9_0_gart_enable(struct amdgpu_device *adev)
 	tmp = RREG32_SOC15(HDP, 0, mmHDP_HOST_PATH_CNTL);
 	WREG32_SOC15(HDP, 0, mmHDP_HOST_PATH_CNTL, tmp);
 
+	WREG32_SOC15(HDP, 0, mmHDP_NONSURFACE_BASE, (adev->gmc.vram_start >> 8));
+	WREG32_SOC15(HDP, 0, mmHDP_NONSURFACE_BASE_HI, (adev->gmc.vram_start >> 40));
+
 	/* After HDP is initialized, flush HDP.*/
 	adev->nbio_funcs->hdp_flush(adev, NULL);
 
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +12 -9
index ae381450601c..afbaf6f5131e 100644
@@ -1268,12 +1268,17 @@ int amdkfd_fence_wait_timeout(unsigned int *fence_addr,
 	return 0;
 }
 
-static int unmap_sdma_queues(struct device_queue_manager *dqm,
-				unsigned int sdma_engine)
+static int unmap_sdma_queues(struct device_queue_manager *dqm)
 {
-	return pm_send_unmap_queue(&dqm->packets, KFD_QUEUE_TYPE_SDMA,
-			KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES, 0, false,
-			sdma_engine);
+	int i, retval = 0;
+
+	for (i = 0; i < dqm->dev->device_info->num_sdma_engines; i++) {
+		retval = pm_send_unmap_queue(&dqm->packets, KFD_QUEUE_TYPE_SDMA,
+			KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES, 0, false, i);
+		if (retval)
+			return retval;
+	}
+	return retval;
 }
 
 /* dqm->lock mutex has to be locked before calling this function */
@@ -1312,10 +1317,8 @@ static int unmap_queues_cpsch(struct device_queue_manager *dqm,
 	pr_debug("Before destroying queues, sdma queue count is : %u\n",
 		dqm->sdma_queue_count);
 
-	if (dqm->sdma_queue_count > 0) {
-		unmap_sdma_queues(dqm, 0);
-		unmap_sdma_queues(dqm, 1);
-	}
+	if (dqm->sdma_queue_count > 0)
+		unmap_sdma_queues(dqm);
 
 	retval = pm_send_unmap_queue(&dqm->packets, KFD_QUEUE_TYPE_COMPUTE,
 			filter, filter_param, false, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +4 -1
index 9dbba609450e..8fe74b821b32 100644
@@ -76,6 +76,7 @@ static int init_mqd(struct mqd_manager *mm, void **mqd,
 	struct v9_mqd *m;
 	struct kfd_dev *kfd = mm->dev;
 
+	*mqd_mem_obj = NULL;
 	/* From V9,  for CWSR, the control stack is located on the next page
 	 * boundary after the mqd, we will use the gtt allocation function
 	 * instead of sub-allocation function.
@@ -93,8 +94,10 @@ static int init_mqd(struct mqd_manager *mm, void **mqd,
 	} else
 		retval = kfd_gtt_sa_allocate(mm->dev, sizeof(struct v9_mqd),
 				mqd_mem_obj);
-	if (retval != 0)
+	if (retval) {
+		kfree(*mqd_mem_obj);
 		return -ENOMEM;
+	}
 
 	m = (struct v9_mqd *) (*mqd_mem_obj)->cpu_ptr;
 	addr = (*mqd_mem_obj)->gpu_addr;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +21 -9
index ab7c5c3004ee..dc3ac66a4450 100644
@@ -2592,7 +2592,7 @@ fill_plane_buffer_attributes(struct amdgpu_device *adev,
 		address->type = PLN_ADDR_TYPE_GRAPHICS;
 		address->grph.addr.low_part = lower_32_bits(afb->address);
 		address->grph.addr.high_part = upper_32_bits(afb->address);
-	} else {
+	} else if (format < SURFACE_PIXEL_FORMAT_INVALID) {
 		uint64_t chroma_addr = afb->address + fb->offsets[1];
 
 		plane_size->video.luma_size.x = 0;
@@ -4627,6 +4627,13 @@ void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm,
 {
 	struct amdgpu_device *adev = dm->ddev->dev_private;
 
+	/*
+	 * Some of the properties below require access to state, like bpc.
+	 * Allocate some default initial connector state with our reset helper.
+	 */
+	if (aconnector->base.funcs->reset)
+		aconnector->base.funcs->reset(&aconnector->base);
+
 	aconnector->connector_id = link_index;
 	aconnector->dc_link = link;
 	aconnector->base.interlace_allowed = false;
@@ -4809,9 +4816,6 @@ static int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm,
 			&aconnector->base,
 			&amdgpu_dm_connector_helper_funcs);
 
-	if (aconnector->base.funcs->reset)
-		aconnector->base.funcs->reset(&aconnector->base);
-
 	amdgpu_dm_connector_init_helper(
 		dm,
 		aconnector,
@@ -4952,12 +4956,12 @@ static int get_cursor_position(struct drm_plane *plane, struct drm_crtc *crtc,
 	int x, y;
 	int xorigin = 0, yorigin = 0;
 
-	if (!crtc || !plane->state->fb) {
-		position->enable = false;
-		position->x = 0;
-		position->y = 0;
+	position->enable = false;
+	position->x = 0;
+	position->y = 0;
+
+	if (!crtc || !plane->state->fb)
 		return 0;
-	}
 
 	if ((plane->state->crtc_w > amdgpu_crtc->max_cursor_width) ||
 	    (plane->state->crtc_h > amdgpu_crtc->max_cursor_height)) {
@@ -4971,6 +4975,10 @@ static int get_cursor_position(struct drm_plane *plane, struct drm_crtc *crtc,
 	x = plane->state->crtc_x;
 	y = plane->state->crtc_y;
 
+	if (x <= -amdgpu_crtc->max_cursor_width ||
+	    y <= -amdgpu_crtc->max_cursor_height)
+		return 0;
+
 	if (crtc->primary->state) {
 		/* avivo cursor are offset into the total surface */
 		x += crtc->primary->state->src_x >> 16;
@@ -6327,6 +6335,10 @@ static bool should_reset_plane(struct drm_atomic_state *state,
 	if (!new_crtc_state)
 		return true;
 
+	/* CRTC Degamma changes currently require us to recreate planes. */
+	if (new_crtc_state->color_mgmt_changed)
+		return true;
+
 	if (drm_atomic_crtc_needs_modeset(new_crtc_state))
 		return true;
 
drivers/gpu/drm/amd/display/dc/core/dc.c +8 -6
index 18c775a950cc..ee6b646180b6 100644
@@ -1138,9 +1138,6 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
 		const struct dc_link *link = context->streams[i]->link;
 		struct dc_stream_status *status;
 
-		if (context->streams[i]->apply_seamless_boot_optimization)
-			context->streams[i]->apply_seamless_boot_optimization = false;
-
 		if (!context->streams[i]->mode_changed)
 			continue;
 
@@ -1792,10 +1789,15 @@ static void commit_planes_for_stream(struct dc *dc,
 	if (dc->optimize_seamless_boot && surface_count > 0) {
 		/* Optimize seamless boot flag keeps clocks and watermarks high until
 		 * first flip. After first flip, optimization is required to lower
-		 * bandwidth.
+		 * bandwidth. Important to note that it is expected UEFI will
+		 * only light up a single display on POST, therefore we only expect
+		 * one stream with seamless boot flag set.
 		 */
-		dc->optimize_seamless_boot = false;
-		dc->optimized_required = true;
+		if (stream->apply_seamless_boot_optimization) {
+			stream->apply_seamless_boot_optimization = false;
+			dc->optimize_seamless_boot = false;
+			dc->optimized_required = true;
+		}
 	}
 
 	if (update_type == UPDATE_TYPE_FULL && !dc->optimize_seamless_boot) {
drivers/gpu/drm/amd/display/dc/core/dc_link.c +6 -0
index b37ecc3ede61..a3ff33ff6da1 100644
@@ -960,6 +960,12 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
 
 		link->type = dc_connection_none;
 		sink_caps.signal = SIGNAL_TYPE_NONE;
+		/* When we unplug a passive DP-HDMI dongle connection, dongle_max_pix_clk
+		 *  is not cleared. If we emulate a DP signal on this connection, it thinks
+		 *  the dongle is still there and limits the number of modes we can emulate.
+		 *  Clear dongle_max_pix_clk on disconnect to fix this
+		 */
+		link->dongle_max_pix_clk = 0;
 	}
 
 	LINK_INFO("link=%d, dc_sink_in=%p is now %s prev_sink=%p dpcd same=%d edid same=%d\n",
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +6 -3
index 1ee544a32ebb..253311864cdd 100644
@@ -1624,8 +1624,7 @@ static bool decide_edp_link_settings(struct dc_link *link, struct dc_link_settin
 	uint32_t link_bw;
 
 	if (link->dpcd_caps.dpcd_rev.raw < DPCD_REV_14 ||
-			link->dpcd_caps.edp_supported_link_rates_count == 0 ||
-			link->dc->config.optimize_edp_link_rate == false) {
+			link->dpcd_caps.edp_supported_link_rates_count == 0) {
 		*link_setting = link->verified_link_cap;
 		return true;
 	}
@@ -2597,7 +2596,8 @@ void detect_edp_sink_caps(struct dc_link *link)
 	memset(supported_link_rates, 0, sizeof(supported_link_rates));
 
 	if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_14 &&
-			link->dc->config.optimize_edp_link_rate) {
+			(link->dc->config.optimize_edp_link_rate ||
+			link->reported_link_cap.link_rate == LINK_RATE_UNKNOWN)) {
 		// Read DPCD 00010h - 0001Fh 16 bytes at one shot
 		core_link_read_dpcd(link, DP_SUPPORTED_LINK_RATES,
 							supported_link_rates, sizeof(supported_link_rates));
@@ -2612,6 +2612,9 @@ void detect_edp_sink_caps(struct dc_link *link)
 				link_rate = linkRateInKHzToLinkRateMultiplier(link_rate_in_khz);
 				link->dpcd_caps.edp_supported_link_rates[link->dpcd_caps.edp_supported_link_rates_count] = link_rate;
 				link->dpcd_caps.edp_supported_link_rates_count++;
+
+				if (link->reported_link_cap.link_rate < link_rate)
+					link->reported_link_cap.link_rate = link_rate;
 			}
 		}
 	}
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c +2 -0
index da96229db53a..2959c3c9390b 100644
@@ -473,6 +473,8 @@ void dce_abm_destroy(struct abm **abm)
 {
 	struct dce_abm *abm_dce = TO_DCE_ABM(*abm);
 
+	abm_dce->base.funcs->set_abm_immediate_disable(*abm);
+
 	kfree(abm_dce);
 	*abm = NULL;
 }
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c +3 -0
index 818536eea00a..c6a607cd0e4b 100644
@@ -388,6 +388,9 @@ static bool dcn10_dmcu_init(struct dmcu *dmcu)
 		/* Set initialized ramping boundary value */
 		REG_WRITE(MASTER_COMM_DATA_REG1, 0xFFFF);
 
+		/* Set backlight ramping stepsize */
+		REG_WRITE(MASTER_COMM_DATA_REG2, abm_gain_stepsize);
+
 		/* Set command to initialize microcontroller */
 		REG_UPDATE(MASTER_COMM_CMD_REG, MASTER_COMM_CMD_REG_BYTE0,
 			MCP_INIT_DMCU);
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h +2 -0
index 60ce56f60ae3..5bd0df55aa5d 100644
@@ -263,4 +263,6 @@ struct dmcu *dcn10_dmcu_create(
 
 void dce_dmcu_destroy(struct dmcu **dmcu);
 
+static const uint32_t abm_gain_stepsize = 0x0060;
+
 #endif /* _DCE_ABM_H_ */
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +3 -0
index 7ac50ab1b762..7d7e93c87c28 100644
@@ -242,6 +242,9 @@ static void build_prescale_params(struct ipp_prescale_params *prescale_params,
 	prescale_params->mode = IPP_PRESCALE_MODE_FIXED_UNSIGNED;
 
 	switch (plane_state->format) {
+	case SURFACE_PIXEL_FORMAT_GRPH_RGB565:
+		prescale_params->scale = 0x2082;
+		break;
 	case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888:
 	case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888:
 		prescale_params->scale = 0x2020;
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +1 -0
index 33d311cea28c..9e4d70a0055e 100644
@@ -23,6 +23,7 @@
  *
  */
 
+#include <linux/delay.h>
 #include "dm_services.h"
 #include "core_types.h"
 #include "resource.h"
drivers/gpu/drm/amd/display/modules/color/color_gamma.c +2 -1
index a1055413bade..31f867bb5afe 100644
@@ -1564,7 +1564,8 @@ bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf,
 
 	output_tf->type = TF_TYPE_DISTRIBUTED_POINTS;
 
-	if (ramp && (mapUserRamp || ramp->type != GAMMA_RGB_256)) {
+	if (ramp && ramp->type != GAMMA_CS_TFM_1D &&
+			(mapUserRamp || ramp->type != GAMMA_RGB_256)) {
 		rgb_user = kvcalloc(ramp->num_entries + _EXTRA_POINTS,
 			    sizeof(*rgb_user),
 			    GFP_KERNEL);
drivers/gpu/drm/bochs/bochs_drv.c +2 -0
index b86cc705138c..d8b945596b09 100644
@@ -7,6 +7,7 @@
 #include <linux/slab.h>
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_probe_helper.h>
+#include <drm/drm_atomic_helper.h>
 
 #include "bochs.h"
 
@@ -171,6 +172,7 @@ static void bochs_pci_remove(struct pci_dev *pdev)
 {
 	struct drm_device *dev = pci_get_drvdata(pdev);
 
+	drm_atomic_helper_shutdown(dev);
 	drm_dev_unregister(dev);
 	bochs_unload(dev);
 	drm_dev_put(dev);
drivers/gpu/drm/bridge/sii902x.c +3 -2
index 1211b5379df1..8e3c5e599eba 100644
@@ -229,10 +229,11 @@ static void sii902x_bridge_mode_set(struct drm_bridge *bridge,
 	struct regmap *regmap = sii902x->regmap;
 	u8 buf[HDMI_INFOFRAME_SIZE(AVI)];
 	struct hdmi_avi_infoframe frame;
+	u16 pixel_clock_10kHz = adj->clock / 10;
 	int ret;
 
-	buf[0] = adj->clock;
-	buf[1] = adj->clock >> 8;
+	buf[0] = pixel_clock_10kHz & 0xff;
+	buf[1] = pixel_clock_10kHz >> 8;
 	buf[2] = adj->vrefresh;
 	buf[3] = 0x00;
 	buf[4] = adj->hdisplay;
drivers/gpu/drm/bridge/tc358767.c +7 -0
index 4655bb1eb88f..f59a51e19dab 100644
@@ -1141,6 +1141,13 @@ static int tc_connector_get_modes(struct drm_connector *connector)
 	struct tc_data *tc = connector_to_tc(connector);
 	struct edid *edid;
 	unsigned int count;
+	int ret;
+
+	ret = tc_get_display_props(tc);
+	if (ret < 0) {
+		dev_err(tc->dev, "failed to read display props: %d\n", ret);
+		return 0;
+	}
 
 	if (tc->panel && tc->panel->funcs && tc->panel->funcs->get_modes) {
 		count = tc->panel->funcs->get_modes(tc->panel);
drivers/gpu/drm/bridge/ti-tfp410.c +2 -1
index a879aac21246..3a8af9978ebd 100644
@@ -372,7 +372,8 @@ static int tfp410_fini(struct device *dev)
 {
 	struct tfp410 *dvi = dev_get_drvdata(dev);
 
-	cancel_delayed_work_sync(&dvi->hpd_work);
+	if (dvi->hpd_irq >= 0)
+		cancel_delayed_work_sync(&dvi->hpd_work);
 
 	drm_bridge_remove(&dvi->bridge);
 
drivers/gpu/drm/drm_debugfs_crc.c +5 -4
index 00e743153e94..fde298d9f510 100644
@@ -389,12 +389,13 @@ int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool has_frame,
 	struct drm_crtc_crc *crc = &crtc->crc;
 	struct drm_crtc_crc_entry *entry;
 	int head, tail;
+	unsigned long flags;
 
-	spin_lock(&crc->lock);
+	spin_lock_irqsave(&crc->lock, flags);
 
 	/* Caller may not have noticed yet that userspace has stopped reading */
 	if (!crc->entries) {
-		spin_unlock(&crc->lock);
+		spin_unlock_irqrestore(&crc->lock, flags);
 		return -EINVAL;
 	}
 
@@ -405,7 +406,7 @@ int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool has_frame,
 		bool was_overflow = crc->overflow;
 
 		crc->overflow = true;
-		spin_unlock(&crc->lock);
+		spin_unlock_irqrestore(&crc->lock, flags);
 
 		if (!was_overflow)
 			DRM_ERROR("Overflow of CRC buffer, userspace reads too slow.\n");
@@ -421,7 +422,7 @@ int drm_crtc_add_crc_entry(struct drm_crtc *crtc, bool has_frame,
 	head = (head + 1) & (DRM_CRC_ENTRIES_NR - 1);
 	crc->head = head;
 
-	spin_unlock(&crc->lock);
+	spin_unlock_irqrestore(&crc->lock, flags);
 
 	wake_up_interruptible(&crc->wq);
 
drivers/gpu/drm/drm_edid_load.c +2 -0
index 1e5593575d23..6192b7b20d84 100644
@@ -278,6 +278,8 @@ struct edid *drm_load_edid_firmware(struct drm_connector *connector)
 	 * the last one found one as a fallback.
 	 */
 	fwstr = kstrdup(edid_firmware, GFP_KERNEL);
+	if (!fwstr)
+		return ERR_PTR(-ENOMEM);
 	edidstr = fwstr;
 
 	while ((edidname = strsep(&edidstr, ","))) {
drivers/gpu/drm/i915/i915_request.c +2 -2
index c88e538b2ef4..81b48e273cbd 100644
@@ -443,7 +443,7 @@ void __i915_request_submit(struct i915_request *request)
 	 */
 	if (request->sched.semaphores &&
 	    i915_sw_fence_signaled(&request->semaphore))
-		request->hw_context->saturated |= request->sched.semaphores;
+		engine->saturated |= request->sched.semaphores;
 
 	/* We may be recursing from the signal callback of another i915 fence */
 	spin_lock_nested(&request->lock, SINGLE_DEPTH_NESTING);
@@ -829,7 +829,7 @@ already_busywaiting(struct i915_request *rq)
 	 *
 	 * See the are-we-too-late? check in __i915_request_submit().
 	 */
-	return rq->sched.semaphores | rq->hw_context->saturated;
+	return rq->sched.semaphores | rq->engine->saturated;
 }
 
 static int
drivers/gpu/drm/i915/intel_context.c +0 -1
index 924cc556223a..8931e0fee873 100644
@@ -230,7 +230,6 @@ intel_context_init(struct intel_context *ce,
 	ce->gem_context = ctx;
 	ce->engine = engine;
 	ce->ops = engine->cops;
-	ce->saturated = 0;
 
 	INIT_LIST_HEAD(&ce->signal_link);
 	INIT_LIST_HEAD(&ce->signals);
drivers/gpu/drm/i915/intel_context_types.h +0 -2
index 339c7437fe82..fd47b9d49e09 100644
@@ -59,8 +59,6 @@ struct intel_context {
 	atomic_t pin_count;
 	struct mutex pin_mutex; /* guards pinning and associated on-gpuing */
 
-	intel_engine_mask_t saturated; /* submitting semaphores too late? */
-
 	/**
 	 * active_tracker: Active tracker for the external rq activity
 	 * on this intel_context object.
drivers/gpu/drm/i915/intel_engine_cs.c +1 -0
index eea9bec04f1b..9d4f12e982c3 100644
@@ -1200,6 +1200,7 @@ void intel_engines_park(struct drm_i915_private *i915)
 
 		i915_gem_batch_pool_fini(&engine->batch_pool);
 		engine->execlists.no_priolist = false;
+		engine->saturated = 0;
 	}
 
 	i915->gt.active_engines = 0;
drivers/gpu/drm/i915/intel_engine_types.h +2 -0
index 1f970c76b6a6..4270ddb45f41 100644
@@ -285,6 +285,8 @@ struct intel_engine_cs {
 	struct intel_context *kernel_context; /* pinned */
 	struct intel_context *preempt_context; /* pinned; optional */
 
+	intel_engine_mask_t saturated; /* submitting semaphores too late? */
+
 	struct drm_i915_gem_object *default_state;
 	void *pinned_default_state;
 
drivers/gpu/drm/lima/lima_pp.c +7 -1
index d29721e177bf..8fef224b93c8 100644
@@ -64,7 +64,13 @@ static irqreturn_t lima_pp_bcast_irq_handler(int irq, void *data)
 	struct lima_ip *pp_bcast = data;
 	struct lima_device *dev = pp_bcast->dev;
 	struct lima_sched_pipe *pipe = dev->pipe + lima_pipe_pp;
-	struct drm_lima_m450_pp_frame *frame = pipe->current_task->frame;
+	struct drm_lima_m450_pp_frame *frame;
+
+	/* for shared irq case */
+	if (!pipe->current_task)
+		return IRQ_NONE;
+
+	frame = pipe->current_task->frame;
 
 	for (i = 0; i < frame->num_pp; i++) {
 		struct lima_ip *ip = pipe->processor[i];
drivers/gpu/drm/msm/adreno/a6xx_gmu.c +13 -7
index 38e2cfa9cec7..6910d0468e3c 100644
@@ -74,7 +74,7 @@ bool a6xx_gmu_sptprac_is_on(struct a6xx_gmu *gmu)
 	u32 val;
 
 	/* This can be called from gpu state code so make sure GMU is valid */
-	if (IS_ERR_OR_NULL(gmu->mmio))
+	if (!gmu->initialized)
 		return false;
 
 	val = gmu_read(gmu, REG_A6XX_GMU_SPTPRAC_PWR_CLK_STATUS);
@@ -90,7 +90,7 @@ bool a6xx_gmu_gx_is_on(struct a6xx_gmu *gmu)
 	u32 val;
 
 	/* This can be called from gpu state code so make sure GMU is valid */
-	if (IS_ERR_OR_NULL(gmu->mmio))
+	if (!gmu->initialized)
 		return false;
 
 	val = gmu_read(gmu, REG_A6XX_GMU_SPTPRAC_PWR_CLK_STATUS);
@@ -504,8 +504,10 @@ static void a6xx_gmu_rpmh_init(struct a6xx_gmu *gmu)
 	wmb();
 
 err:
-	devm_iounmap(gmu->dev, pdcptr);
-	devm_iounmap(gmu->dev, seqptr);
+	if (!IS_ERR_OR_NULL(pdcptr))
+		devm_iounmap(gmu->dev, pdcptr);
+	if (!IS_ERR_OR_NULL(seqptr))
+		devm_iounmap(gmu->dev, seqptr);
 }
 
 /*
@@ -695,7 +697,7 @@ int a6xx_gmu_resume(struct a6xx_gpu *a6xx_gpu)
 	struct a6xx_gmu *gmu = &a6xx_gpu->gmu;
 	int status, ret;
 
-	if (WARN(!gmu->mmio, "The GMU is not set up yet\n"))
+	if (WARN(!gmu->initialized, "The GMU is not set up yet\n"))
 		return 0;
 
 	gmu->hung = false;
@@ -765,7 +767,7 @@ bool a6xx_gmu_isidle(struct a6xx_gmu *gmu)
 {
 	u32 reg;
 
-	if (!gmu->mmio)
+	if (!gmu->initialized)
 		return true;
 
 	reg = gmu_read(gmu, REG_A6XX_GPU_GMU_AO_GPU_CX_BUSY_STATUS);
@@ -1227,7 +1229,7 @@ void a6xx_gmu_remove(struct a6xx_gpu *a6xx_gpu)
 {
 	struct a6xx_gmu *gmu = &a6xx_gpu->gmu;
 
-	if (IS_ERR_OR_NULL(gmu->mmio))
+	if (!gmu->initialized)
 		return;
 
 	a6xx_gmu_stop(a6xx_gpu);
@@ -1245,6 +1247,8 @@ void a6xx_gmu_remove(struct a6xx_gpu *a6xx_gpu)
 	iommu_detach_device(gmu->domain, gmu->dev);
 
 	iommu_domain_free(gmu->domain);
+
+	gmu->initialized = false;
 }
 
 int a6xx_gmu_probe(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
@@ -1309,6 +1313,8 @@ int a6xx_gmu_probe(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
 	/* Set up the HFI queues */
 	a6xx_hfi_init(gmu);
 
+	gmu->initialized = true;
+
 	return 0;
 err:
 	a6xx_gmu_memory_free(gmu, gmu->hfi);
drivers/gpu/drm/msm/adreno/a6xx_gmu.h +1 -0
index bedd8e6a63aa..39a26dd63674 100644
@@ -75,6 +75,7 @@ struct a6xx_gmu {
 
 	struct a6xx_hfi_queue queues[2];
 
+	bool initialized;
 	bool hung;
 };
 
drivers/gpu/drm/msm/adreno/adreno_gpu.c +7 -1
index a9c0ac937b00..9acbbc0f3232 100644
@@ -56,7 +56,6 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname,
 		return ret;
 
 	mem_phys = r.start;
-	mem_size = resource_size(&r);
 
 	/* Request the MDT file for the firmware */
 	fw = adreno_request_fw(to_adreno_gpu(gpu), fwname);
@@ -72,6 +71,13 @@ static int zap_shader_load_mdt(struct msm_gpu *gpu, const char *fwname,
 		goto out;
 	}
 
+	if (mem_size > resource_size(&r)) {
+		DRM_DEV_ERROR(dev,
+			"memory region is too small to load the MDT\n");
+		ret = -E2BIG;
+		goto out;
+	}
+
 	/* Allocate memory for the firmware image */
 	mem_region = memremap(mem_phys, mem_size,  MEMREMAP_WC);
 	if (!mem_region) {
drivers/gpu/drm/msm/msm_drv.c +11 -3
index f38d7367bd3b..4a0fe8a25ad7 100644
@@ -1306,16 +1306,24 @@ static int msm_pdev_probe(struct platform_device *pdev)
 
 	ret = add_gpu_components(&pdev->dev, &match);
 	if (ret)
-		return ret;
+		goto fail;
 
 	/* on all devices that I am aware of, iommu's which can map
 	 * any address the cpu can see are used:
 	 */
 	ret = dma_set_mask_and_coherent(&pdev->dev, ~0);
 	if (ret)
-		return ret;
+		goto fail;
+
+	ret = component_master_add_with_match(&pdev->dev, &msm_drm_ops, match);
+	if (ret)
+		goto fail;
 
-	return component_master_add_with_match(&pdev->dev, &msm_drm_ops, match);
+	return 0;
+
+fail:
+	of_platform_depopulate(&pdev->dev);
+	return ret;
 }
 
 static int msm_pdev_remove(struct platform_device *pdev)
drivers/gpu/drm/omapdrm/omap_crtc.c +14 -4
index 8712af79a49c..4c43dd282acc 100644
@@ -384,10 +384,20 @@ static enum drm_mode_status omap_crtc_mode_valid(struct drm_crtc *crtc,
 	int r;
 
 	drm_display_mode_to_videomode(mode, &vm);
-	r = priv->dispc_ops->mgr_check_timings(priv->dispc, omap_crtc->channel,
-					       &vm);
-	if (r)
-		return r;
+
+	/*
+	 * DSI might not call this, since the supplied mode is not a
+	 * valid DISPC mode. DSI will calculate and configure the
+	 * proper DISPC mode later.
+	 */
+	if (omap_crtc->pipe->output->next == NULL ||
+	    omap_crtc->pipe->output->next->type != OMAP_DISPLAY_TYPE_DSI) {
+		r = priv->dispc_ops->mgr_check_timings(priv->dispc,
+						       omap_crtc->channel,
+						       &vm);
+		if (r)
+			return r;
+	}
 
 	/* Check for bandwidth limit */
 	if (priv->max_bandwidth) {
drivers/gpu/drm/panel/panel-simple.c +37 -1
index 569be4efd8d1..397a3086eac8 100644
@@ -446,6 +446,32 @@ static const struct panel_desc ampire_am800480r3tmqwa1h = {
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
 };
 
+static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
+	.pixelclock = { 26400000, 33300000, 46800000 },
+	.hactive = { 800, 800, 800 },
+	.hfront_porch = { 16, 210, 354 },
+	.hback_porch = { 45, 36, 6 },
+	.hsync_len = { 1, 10, 40 },
+	.vactive = { 480, 480, 480 },
+	.vfront_porch = { 7, 22, 147 },
+	.vback_porch = { 22, 13, 3 },
+	.vsync_len = { 1, 10, 20 },
+	.flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
+		DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
+};
+
+static const struct panel_desc armadeus_st0700_adapt = {
+	.timings = &santek_st0700i5y_rbslw_f_timing,
+	.num_timings = 1,
+	.bpc = 6,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
+};
+
 static const struct drm_display_mode auo_b101aw03_mode = {
 	.clock = 51450,
 	.hdisplay = 1024,
@@ -2570,6 +2596,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "arm,rtsm-display",
 		.data = &arm_rtsm,
+	}, {
+		.compatible = "armadeus,st0700-adapt",
+		.data = &armadeus_st0700_adapt,
 	}, {
 		.compatible = "auo,b101aw03",
 		.data = &auo_b101aw03,
@@ -3098,7 +3127,14 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
 	dsi->format = desc->format;
 	dsi->lanes = desc->lanes;
 
-	return mipi_dsi_attach(dsi);
+	err = mipi_dsi_attach(dsi);
+	if (err) {
+		struct panel_simple *panel = dev_get_drvdata(&dsi->dev);
+
+		drm_panel_remove(&panel->base);
+	}
+
+	return err;
 }
 
 static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
drivers/gpu/drm/rockchip/rockchip_drm_vop.c +2 -1
index 12ed5265a90b..09046135e720 100644
@@ -1011,7 +1011,8 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc,
 	struct vop *vop = to_vop(crtc);
 
 	adjusted_mode->clock =
-		clk_round_rate(vop->dclk, mode->clock * 1000) / 1000;
+		DIV_ROUND_UP(clk_round_rate(vop->dclk, mode->clock * 1000),
+			     1000);
 
 	return true;
 }
drivers/gpu/drm/virtio/virtgpu_drv.h +0 -1
index b69ae10ca238..d724fb3de44e 100644
@@ -102,7 +102,6 @@ struct virtio_gpu_fence {
 	struct dma_fence f;
 	struct virtio_gpu_fence_driver *drv;
 	struct list_head node;
-	uint64_t seq;
 };
 #define to_virtio_fence(x) \
 	container_of(x, struct virtio_gpu_fence, f)
drivers/gpu/drm/virtio/virtgpu_fence.c +10 -7
index 87d1966192f4..72b4f7561432 100644
@@ -40,16 +40,14 @@ bool virtio_fence_signaled(struct dma_fence *f)
 {
 	struct virtio_gpu_fence *fence = to_virtio_fence(f);
 
-	if (atomic64_read(&fence->drv->last_seq) >= fence->seq)
+	if (atomic64_read(&fence->drv->last_seq) >= fence->f.seqno)
 		return true;
 	return false;
 }
 
 static void virtio_fence_value_str(struct dma_fence *f, char *str, int size)
 {
-	struct virtio_gpu_fence *fence = to_virtio_fence(f);
-
-	snprintf(str, size, "%llu", fence->seq);
+	snprintf(str, size, "%llu", f->seqno);
 }
 
 static void virtio_timeline_value_str(struct dma_fence *f, char *str, int size)
@@ -76,6 +74,11 @@ struct virtio_gpu_fence *virtio_gpu_fence_alloc(struct virtio_gpu_device *vgdev)
 		return fence;
 
 	fence->drv = drv;
+
+	/* This only partially initializes the fence because the seqno is
+	 * unknown yet.  The fence must not be used outside of the driver
+	 * until virtio_gpu_fence_emit is called.
+	 */
 	dma_fence_init(&fence->f, &virtio_fence_ops, &drv->lock, drv->context, 0);
 
 	return fence;
@@ -89,13 +92,13 @@ int virtio_gpu_fence_emit(struct virtio_gpu_device *vgdev,
 	unsigned long irq_flags;
 
 	spin_lock_irqsave(&drv->lock, irq_flags);
-	fence->seq = ++drv->sync_seq;
+	fence->f.seqno = ++drv->sync_seq;
 	dma_fence_get(&fence->f);
 	list_add_tail(&fence->node, &drv->fences);
 	spin_unlock_irqrestore(&drv->lock, irq_flags);
 
 	cmd_hdr->flags |= cpu_to_le32(VIRTIO_GPU_FLAG_FENCE);
-	cmd_hdr->fence_id = cpu_to_le64(fence->seq);
+	cmd_hdr->fence_id = cpu_to_le64(fence->f.seqno);
 	return 0;
 }
 
@@ -109,7 +112,7 @@ void virtio_gpu_fence_event_process(struct virtio_gpu_device *vgdev,
 	spin_lock_irqsave(&drv->lock, irq_flags);
 	atomic64_set(&vgdev->fence_drv.last_seq, last_seq);
 	list_for_each_entry_safe(fence, tmp, &drv->fences, node) {
-		if (last_seq < fence->seq)
+		if (last_seq < fence->f.seqno)
 			continue;
 		dma_fence_signal_locked(&fence->f);
 		list_del(&fence->node);
drivers/gpu/drm/virtio/virtgpu_ioctl.c +3 -0
index 949a264985fc..19fbffd0f7a3 100644
@@ -542,6 +542,9 @@ static int virtio_gpu_get_caps_ioctl(struct drm_device *dev,
 	if (!ret)
 		return -EBUSY;
 
+	/* is_valid check must proceed before copy of the cache entry. */
+	smp_rmb();
+
 	ptr = cache_ent->caps_cache;
 
 copy_exit:
drivers/gpu/drm/virtio/virtgpu_vq.c +2 -0
index 5bb0f0a084e9..a7684f9c80db 100644
@@ -583,6 +583,8 @@ static void virtio_gpu_cmd_capset_cb(struct virtio_gpu_device *vgdev,
 		    cache_ent->id == le32_to_cpu(cmd->capset_id)) {
 			memcpy(cache_ent->caps_cache, resp->capset_data,
 			       cache_ent->size);
+			/* Copy must occur before is_valid is signalled. */
+			smp_wmb();
 			atomic_set(&cache_ent->is_valid, 1);
 			break;
 		}
drivers/gpu/drm/vkms/vkms_crtc.c +16 -6
index bb66dbcd5e3f..e447b7588d06 100644
@@ -15,6 +15,10 @@ static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer)
 
 	spin_lock(&output->lock);
 
+	ret_overrun = hrtimer_forward_now(&output->vblank_hrtimer,
+					  output->period_ns);
+	WARN_ON(ret_overrun != 1);
+
 	ret = drm_crtc_handle_vblank(crtc);
 	if (!ret)
 		DRM_ERROR("vkms failure on handling vblank");
@@ -35,10 +39,6 @@ static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer)
 			DRM_WARN("failed to queue vkms_crc_work_handle");
 	}
 
-	ret_overrun = hrtimer_forward_now(&output->vblank_hrtimer,
-					  output->period_ns);
-	WARN_ON(ret_overrun != 1);
-
 	spin_unlock(&output->lock);
 
 	return HRTIMER_RESTART;
@@ -74,11 +74,21 @@ bool vkms_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe,
 {
 	struct vkms_device *vkmsdev = drm_device_to_vkms_device(dev);
 	struct vkms_output *output = &vkmsdev->output;
+	struct drm_vblank_crtc *vblank = &dev->vblank[pipe];
 
 	*vblank_time = output->vblank_hrtimer.node.expires;
 
-	if (!in_vblank_irq)
-		*vblank_time -= output->period_ns;
+	if (WARN_ON(*vblank_time == vblank->time))
+		return true;
+
+	/*
+	 * To prevent races we roll the hrtimer forward before we do any
+	 * interrupt processing - this is how real hw works (the interrupt is
+	 * only generated after all the vblank registers are updated) and what
+	 * the vblank core expects. Therefore we need to always correct the
+	 * timestampe by one frame.
+	 */
+	*vblank_time -= output->period_ns;
 
 	return true;
 }
drivers/gpu/host1x/bus.c +3 -0
index 9797ccb0a073..6387302c1245 100644
@@ -414,6 +414,9 @@ static int host1x_device_add(struct host1x *host1x,
 
 	of_dma_configure(&device->dev, host1x->dev->of_node, true);
 
+	device->dev.dma_parms = &device->dma_parms;
+	dma_set_max_seg_size(&device->dev, SZ_4M);
+
 	err = host1x_device_parse_dt(device, driver);
 	if (err < 0) {
 		kfree(device);
drivers/i2c/busses/i2c-nvidia-gpu.c +10 -4
index 1c8f708f212b..ee2412b7459c 100644
@@ -51,6 +51,7 @@ struct gpu_i2c_dev {
 	void __iomem *regs;
 	struct i2c_adapter adapter;
 	struct i2c_board_info *gpu_ccgx_ucsi;
+	struct i2c_client *ccgx_client;
 };
 
 static void gpu_enable_i2c_bus(struct gpu_i2c_dev *i2cd)
@@ -261,8 +262,6 @@ static const struct property_entry ccgx_props[] = {
 
 static int gpu_populate_client(struct gpu_i2c_dev *i2cd, int irq)
 {
-	struct i2c_client *ccgx_client;
-
 	i2cd->gpu_ccgx_ucsi = devm_kzalloc(i2cd->dev,
 					   sizeof(*i2cd->gpu_ccgx_ucsi),
 					   GFP_KERNEL);
@@ -274,8 +273,8 @@ static int gpu_populate_client(struct gpu_i2c_dev *i2cd, int irq)
 	i2cd->gpu_ccgx_ucsi->addr = 0x8;
 	i2cd->gpu_ccgx_ucsi->irq = irq;
 	i2cd->gpu_ccgx_ucsi->properties = ccgx_props;
-	ccgx_client = i2c_new_device(&i2cd->adapter, i2cd->gpu_ccgx_ucsi);
-	if (!ccgx_client)
+	i2cd->ccgx_client = i2c_new_device(&i2cd->adapter, i2cd->gpu_ccgx_ucsi);
+	if (!i2cd->ccgx_client)
 		return -ENODEV;
 
 	return 0;
@@ -354,6 +353,13 @@ static __maybe_unused int gpu_i2c_resume(struct device *dev)
 	struct gpu_i2c_dev *i2cd = dev_get_drvdata(dev);
 
 	gpu_enable_i2c_bus(i2cd);
+	/*
+	 * Runtime resume ccgx client so that it can see for any
+	 * connector change event. Old ccg firmware has known
+	 * issue of not triggering interrupt when a device is
+	 * connected to runtime resume the controller.
+	 */
+	pm_request_resume(&i2cd->ccgx_client->dev);
 	return 0;
 }
 
drivers/i2c/busses/i2c-stm32f7.c +14 -12
index 48337bef5b87..3d90c0bb049e 100644
@@ -25,7 +25,6 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/of_irq.h>
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/pinctrl/consumer.h>
@@ -1816,15 +1815,14 @@ static struct i2c_algorithm stm32f7_i2c_algo = {
 
 static int stm32f7_i2c_probe(struct platform_device *pdev)
 {
-	struct device_node *np = pdev->dev.of_node;
 	struct stm32f7_i2c_dev *i2c_dev;
 	const struct stm32f7_i2c_setup *setup;
 	struct resource *res;
-	u32 irq_error, irq_event, clk_rate, rise_time, fall_time;
+	u32 clk_rate, rise_time, fall_time;
 	struct i2c_adapter *adap;
 	struct reset_control *rst;
 	dma_addr_t phy_addr;
-	int ret;
+	int irq_error, irq_event, ret;
 
 	i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL);
 	if (!i2c_dev)
@@ -1836,16 +1834,20 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)
 		return PTR_ERR(i2c_dev->base);
 	phy_addr = (dma_addr_t)res->start;
 
-	irq_event = irq_of_parse_and_map(np, 0);
-	if (!irq_event) {
-		dev_err(&pdev->dev, "IRQ event missing or invalid\n");
-		return -EINVAL;
+	irq_event = platform_get_irq(pdev, 0);
+	if (irq_event <= 0) {
+		if (irq_event != -EPROBE_DEFER)
+			dev_err(&pdev->dev, "Failed to get IRQ event: %d\n",
+				irq_event);
+		return irq_event ? : -ENOENT;
 	}
 
-	irq_error = irq_of_parse_and_map(np, 1);
-	if (!irq_error) {
-		dev_err(&pdev->dev, "IRQ error missing or invalid\n");
-		return -EINVAL;
+	irq_error = platform_get_irq(pdev, 1);
+	if (irq_error <= 0) {
+		if (irq_error != -EPROBE_DEFER)
+			dev_err(&pdev->dev, "Failed to get IRQ error: %d\n",
+				irq_error);
+		return irq_error ? : -ENOENT;
 	}
 
 	i2c_dev->clk = devm_clk_get(&pdev->dev, NULL);
drivers/iio/accel/adxl372.c +16 -11
index 3b84cb243a87..055227cb3d43 100644
@@ -782,10 +782,14 @@ static int adxl372_buffer_postenable(struct iio_dev *indio_dev)
 	unsigned int mask;
 	int i, ret;
 
-	ret = adxl372_set_interrupts(st, ADXL372_INT1_MAP_FIFO_FULL_MSK, 0);
+	ret = iio_triggered_buffer_postenable(indio_dev);
 	if (ret < 0)
 		return ret;
 
+	ret = adxl372_set_interrupts(st, ADXL372_INT1_MAP_FIFO_FULL_MSK, 0);
+	if (ret < 0)
+		goto err;
+
 	mask = *indio_dev->active_scan_mask;
 
 	for (i = 0; i < ARRAY_SIZE(adxl372_axis_lookup_table); i++) {
@@ -793,8 +797,10 @@ static int adxl372_buffer_postenable(struct iio_dev *indio_dev)
 			break;
 	}
 
-	if (i == ARRAY_SIZE(adxl372_axis_lookup_table))
-		return -EINVAL;
+	if (i == ARRAY_SIZE(adxl372_axis_lookup_table)) {
+		ret = -EINVAL;
+		goto err;
+	}
 
 	st->fifo_format = adxl372_axis_lookup_table[i].fifo_format;
 	st->fifo_set_size = bitmap_weight(indio_dev->active_scan_mask,
@@ -814,26 +820,25 @@ static int adxl372_buffer_postenable(struct iio_dev *indio_dev)
 	if (ret < 0) {
 		st->fifo_mode = ADXL372_FIFO_BYPASSED;
 		adxl372_set_interrupts(st, 0, 0);
-		return ret;
+		goto err;
 	}
 
-	return iio_triggered_buffer_postenable(indio_dev);
+	return 0;
+
+err:
+	iio_triggered_buffer_predisable(indio_dev);
+	return ret;
 }
 
 static int adxl372_buffer_predisable(struct iio_dev *indio_dev)
 {
 	struct adxl372_state *st = iio_priv(indio_dev);
-	int ret;
-
-	ret = iio_triggered_buffer_predisable(indio_dev);
-	if (ret < 0)
-		return ret;
 
 	adxl372_set_interrupts(st, 0, 0);
 	st->fifo_mode = ADXL372_FIFO_BYPASSED;
 	adxl372_configure_fifo(st);
 
-	return 0;
+	return iio_triggered_buffer_predisable(indio_dev);
 }
 
 static const struct iio_buffer_setup_ops adxl372_buffer_ops = {
drivers/iio/adc/stm32-dfsdm-adc.c +6 -0
index 19adc2b23472..588907cc3b6b 100644
@@ -1456,6 +1456,12 @@ static int stm32_dfsdm_adc_probe(struct platform_device *pdev)
 	 * So IRQ associated to filter instance 0 is dedicated to the Filter 0.
 	 */
 	irq = platform_get_irq(pdev, 0);
+	if (irq < 0) {
+		if (irq != -EPROBE_DEFER)
+			dev_err(dev, "Failed to get IRQ: %d\n", irq);
+		return irq;
+	}
+
 	ret = devm_request_irq(dev, irq, stm32_dfsdm_irq,
 			       0, pdev->name, adc);
 	if (ret < 0) {
drivers/iio/adc/stm32-dfsdm-core.c +6 -2
index 0a4d3746d21c..26e2011c5868 100644
@@ -233,6 +233,8 @@ static int stm32_dfsdm_parse_of(struct platform_device *pdev,
 	}
 	priv->dfsdm.phys_base = res->start;
 	priv->dfsdm.base = devm_ioremap_resource(&pdev->dev, res);
+	if (IS_ERR(priv->dfsdm.base))
+		return PTR_ERR(priv->dfsdm.base);
 
 	/*
 	 * "dfsdm" clock is mandatory for DFSDM peripheral clocking.
@@ -242,8 +244,10 @@ static int stm32_dfsdm_parse_of(struct platform_device *pdev,
 	 */
 	priv->clk = devm_clk_get(&pdev->dev, "dfsdm");
 	if (IS_ERR(priv->clk)) {
-		dev_err(&pdev->dev, "No stm32_dfsdm_clk clock found\n");
-		return -EINVAL;
+		ret = PTR_ERR(priv->clk);
+		if (ret != -EPROBE_DEFER)
+			dev_err(&pdev->dev, "Failed to get clock (%d)\n", ret);
+		return ret;
 	}
 
 	priv->aclk = devm_clk_get(&pdev->dev, "audio");
drivers/infiniband/core/addr.c +1 -1
index 2f7d14159841..9b76a8fcdd24 100644
@@ -337,7 +337,7 @@ static int dst_fetch_ha(const struct dst_entry *dst,
 		neigh_event_send(n, NULL);
 		ret = -ENODATA;
 	} else {
-		memcpy(dev_addr->dst_dev_addr, n->ha, MAX_ADDR_LEN);
+		neigh_ha_snapshot(dev_addr->dst_dev_addr, n, dst->dev);
 	}
 
 	neigh_release(n);
drivers/infiniband/hw/i40iw/i40iw_verbs.c +2 -0
index 5689d742bafb..4c88d6f72574 100644
@@ -772,6 +772,8 @@ static int i40iw_query_qp(struct ib_qp *ibqp,
 	struct i40iw_qp *iwqp = to_iwqp(ibqp);
 	struct i40iw_sc_qp *qp = &iwqp->sc_qp;
 
+	attr->qp_state = iwqp->ibqp_state;
+	attr->cur_qp_state = attr->qp_state;
 	attr->qp_access_flags = 0;
 	attr->cap.max_send_wr = qp->qp_uk.sq_size;
 	attr->cap.max_recv_wr = qp->qp_uk.rq_size;
drivers/infiniband/hw/mlx5/mad.c +36 -24

113 lines not on this page · raw message

drivers/infiniband/sw/rxe/rxe_resp.c +4 -1
index aca9f60f9b21..1cbfbd98eb22 100644
@@ -431,6 +431,7 @@ static enum resp_states check_rkey(struct rxe_qp *qp,
 			qp->resp.va = reth_va(pkt);
 			qp->resp.rkey = reth_rkey(pkt);
 			qp->resp.resid = reth_len(pkt);
+			qp->resp.length = reth_len(pkt);
 		}
 		access = (pkt->mask & RXE_READ_MASK) ? IB_ACCESS_REMOTE_READ
 						     : IB_ACCESS_REMOTE_WRITE;
@@ -856,7 +857,9 @@ static enum resp_states do_complete(struct rxe_qp *qp,
 				pkt->mask & RXE_WRITE_MASK) ?
 					IB_WC_RECV_RDMA_WITH_IMM : IB_WC_RECV;
 		wc->vendor_err = 0;
-		wc->byte_len = wqe->dma.length - wqe->dma.resid;
+		wc->byte_len = (pkt->mask & RXE_IMMDT_MASK &&
+				pkt->mask & RXE_WRITE_MASK) ?
+					qp->resp.length : wqe->dma.length - wqe->dma.resid;
 
 		/* fields after byte_len are different between kernel and user
 		 * space
drivers/infiniband/sw/rxe/rxe_verbs.h +1 -0
index e8be7f44e3be..28bfb3ece104 100644
@@ -213,6 +213,7 @@ struct rxe_resp_info {
 	struct rxe_mem		*mr;
 	u32			resid;
 	u32			rkey;
+	u32			length;
 	u64			atomic_orig;
 
 	/* SRQ only */
drivers/infiniband/ulp/ipoib/ipoib_main.c +20 -14
index 04ea7db08e87..ac0583ff280d 100644
@@ -1893,12 +1893,6 @@ static void ipoib_child_init(struct net_device *ndev)
 	struct ipoib_dev_priv *priv = ipoib_priv(ndev);
 	struct ipoib_dev_priv *ppriv = ipoib_priv(priv->parent);
 
-	dev_hold(priv->parent);
-
-	down_write(&ppriv->vlan_rwsem);
-	list_add_tail(&priv->list, &ppriv->child_intfs);
-	up_write(&ppriv->vlan_rwsem);
-
 	priv->max_ib_mtu = ppriv->max_ib_mtu;
 	set_bit(IPOIB_FLAG_SUBINTERFACE, &priv->flags);
 	memcpy(priv->dev->dev_addr, ppriv->dev->dev_addr, INFINIBAND_ALEN);
@@ -1941,6 +1935,17 @@ static int ipoib_ndo_init(struct net_device *ndev)
 	if (rc) {
 		pr_warn("%s: failed to initialize device: %s port %d (ret = %d)\n",
 			priv->ca->name, priv->dev->name, priv->port, rc);
+		return rc;
+	}
+
+	if (priv->parent) {
+		struct ipoib_dev_priv *ppriv = ipoib_priv(priv->parent);
+
+		dev_hold(priv->parent);
+
+		down_write(&ppriv->vlan_rwsem);
+		list_add_tail(&priv->list, &ppriv->child_intfs);
+		up_write(&ppriv->vlan_rwsem);
 	}
 
 	return 0;
@@ -1958,6 +1963,14 @@ static void ipoib_ndo_uninit(struct net_device *dev)
 	 */
 	WARN_ON(!list_empty(&priv->child_intfs));
 
+	if (priv->parent) {
+		struct ipoib_dev_priv *ppriv = ipoib_priv(priv->parent);
+
+		down_write(&ppriv->vlan_rwsem);
+		list_del(&priv->list);
+		up_write(&ppriv->vlan_rwsem);
+	}
+
 	ipoib_neigh_hash_uninit(dev);
 
 	ipoib_ib_dev_cleanup(dev);
@@ -1969,15 +1982,8 @@ static void ipoib_ndo_uninit(struct net_device *dev)
 		priv->wq = NULL;
 	}
 
-	if (priv->parent) {
-		struct ipoib_dev_priv *ppriv = ipoib_priv(priv->parent);
-
-		down_write(&ppriv->vlan_rwsem);
-		list_del(&priv->list);
-		up_write(&ppriv->vlan_rwsem);
-
+	if (priv->parent)
 		dev_put(priv->parent);
-	}
 }
 
 static int ipoib_set_vf_link_state(struct net_device *dev, int vf, int link_state)
drivers/iommu/intel-iommu.c +2 -1
index 162b3236e72c..2101601adf57 100644
@@ -3752,7 +3752,8 @@ static void intel_unmap(struct device *dev, dma_addr_t dev_addr, size_t size)
 
 	freelist = domain_unmap(domain, start_pfn, last_pfn);
 
-	if (intel_iommu_strict || (pdev && pdev->untrusted)) {
+	if (intel_iommu_strict || (pdev && pdev->untrusted) ||
+			!has_iova_flush_queue(&domain->iovad)) {
 		iommu_flush_iotlb_psi(iommu, domain, start_pfn,
 				      nrpages, !freelist, 0);
 		/* free iova */
drivers/iommu/iova.c +17 -6
index d499b2621239..3e1a8a675572 100644
@@ -54,9 +54,14 @@ init_iova_domain(struct iova_domain *iovad, unsigned long granule,
 }
 EXPORT_SYMBOL_GPL(init_iova_domain);
 
+bool has_iova_flush_queue(struct iova_domain *iovad)
+{
+	return !!iovad->fq;
+}
+
 static void free_iova_flush_queue(struct iova_domain *iovad)
 {
-	if (!iovad->fq)
+	if (!has_iova_flush_queue(iovad))
 		return;
 
 	if (timer_pending(&iovad->fq_timer))
@@ -74,13 +79,14 @@ static void free_iova_flush_queue(struct iova_domain *iovad)
 int init_iova_flush_queue(struct iova_domain *iovad,
 			  iova_flush_cb flush_cb, iova_entry_dtor entry_dtor)
 {
+	struct iova_fq __percpu *queue;
 	int cpu;
 
 	atomic64_set(&iovad->fq_flush_start_cnt,  0);
 	atomic64_set(&iovad->fq_flush_finish_cnt, 0);
 
-	iovad->fq = alloc_percpu(struct iova_fq);
-	if (!iovad->fq)
+	queue = alloc_percpu(struct iova_fq);
+	if (!queue)
 		return -ENOMEM;
 
 	iovad->flush_cb   = flush_cb;
@@ -89,13 +95,17 @@ int init_iova_flush_queue(struct iova_domain *iovad,
 	for_each_possible_cpu(cpu) {
 		struct iova_fq *fq;
 
-		fq = per_cpu_ptr(iovad->fq, cpu);
+		fq = per_cpu_ptr(queue, cpu);
 		fq->head = 0;
 		fq->tail = 0;
 
 		spin_lock_init(&fq->lock);
 	}
 
+	smp_wmb();
+
+	iovad->fq = queue;
+
 	timer_setup(&iovad->fq_timer, fq_flush_timeout, 0);
 	atomic_set(&iovad->fq_timer_on, 0);
 
@@ -127,8 +137,9 @@ __cached_rbnode_delete_update(struct iova_domain *iovad, struct iova *free)
 	struct iova *cached_iova;
 
 	cached_iova = rb_entry(iovad->cached32_node, struct iova, node);
-	if (free->pfn_hi < iovad->dma_32bit_pfn &&
-	    free->pfn_lo >= cached_iova->pfn_lo) {
+	if (free == cached_iova ||
+	    (free->pfn_hi < iovad->dma_32bit_pfn &&
+	     free->pfn_lo >= cached_iova->pfn_lo)) {
 		iovad->cached32_node = rb_next(&free->node);
 		iovad->max32_alloc_size = iovad->dma_32bit_pfn;
 	}
drivers/mailbox/mailbox.c +4 -2
index f4b1950d35f3..0b821a5b2db8 100644
@@ -418,11 +418,13 @@ struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
 
 	of_property_for_each_string(np, "mbox-names", prop, mbox_name) {
 		if (!strncmp(name, mbox_name, strlen(name)))
-			break;
+			return mbox_request_channel(cl, index);
 		index++;
 	}
 
-	return mbox_request_channel(cl, index);
+	dev_err(cl->dev, "%s() could not locate channel named \"%s\"\n",
+		__func__, name);
+	return ERR_PTR(-EINVAL);
 }
 EXPORT_SYMBOL_GPL(mbox_request_channel_byname);
 
drivers/media/platform/coda/Makefile +2 -2
index f13adacd924e..cfe3ef8fad8a 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 ccflags-y += -I$(src)
 
-coda-objs := coda-common.o coda-bit.o coda-gdi.o coda-h264.o coda-jpeg.o
+coda-vpu-objs := coda-common.o coda-bit.o coda-gdi.o coda-h264.o coda-jpeg.o
 
-obj-$(CONFIG_VIDEO_CODA) += coda.o
+obj-$(CONFIG_VIDEO_CODA) += coda-vpu.o
 obj-$(CONFIG_VIDEO_IMX_VDOA) += imx-vdoa.o
drivers/memstick/core/memstick.c +9 -4
index 6cfb293396f2..693ee73eb291 100644
@@ -625,13 +625,18 @@ static int __init memstick_init(void)
 		return -ENOMEM;
 
 	rc = bus_register(&memstick_bus_type);
-	if (!rc)
-		rc = class_register(&memstick_host_class);
+	if (rc)
+		goto error_destroy_workqueue;
 
-	if (!rc)
-		return 0;
+	rc = class_register(&memstick_host_class);
+	if (rc)
+		goto error_bus_unregister;
+
+	return 0;
 
+error_bus_unregister:
 	bus_unregister(&memstick_bus_type);
+error_destroy_workqueue:
 	destroy_workqueue(workqueue);
 
 	return rc;
drivers/mfd/arizona-core.c +1 -1
index 2bdc7b02157a..4a31907a4525 100644
@@ -993,7 +993,7 @@ int arizona_dev_init(struct arizona *arizona)
 	unsigned int reg, val;
 	int (*apply_patch)(struct arizona *) = NULL;
 	const struct mfd_cell *subdevs = NULL;
-	int n_subdevs, ret, i;
+	int n_subdevs = 0, ret, i;
 
 	dev_set_drvdata(arizona->dev, arizona);
 	mutex_init(&arizona->clk_lock);
drivers/mfd/cros_ec_dev.c +10 -3
index a5391f96eafd..607383b67cf1 100644
@@ -285,13 +285,15 @@ static void cros_ec_sensors_register(struct cros_ec_dev *ec)
 
 	resp = (struct ec_response_motion_sense *)msg->data;
 	sensor_num = resp->dump.sensor_count;
-	/* Allocate 1 extra sensors in FIFO are needed */
-	sensor_cells = kcalloc(sensor_num + 1, sizeof(struct mfd_cell),
+	/*
+	 * Allocate 2 extra sensors if lid angle sensor and/or FIFO are needed.
+	 */
+	sensor_cells = kcalloc(sensor_num + 2, sizeof(struct mfd_cell),
 			       GFP_KERNEL);
 	if (sensor_cells == NULL)
 		goto error;
 
-	sensor_platforms = kcalloc(sensor_num + 1,
+	sensor_platforms = kcalloc(sensor_num,
 				   sizeof(struct cros_ec_sensor_platform),
 				   GFP_KERNEL);
 	if (sensor_platforms == NULL)
@@ -351,6 +353,11 @@ static void cros_ec_sensors_register(struct cros_ec_dev *ec)
 		sensor_cells[id].name = "cros-ec-ring";
 		id++;
 	}
+	if (cros_ec_check_features(ec,
+				EC_FEATURE_REFINED_TABLET_MODE_HYSTERESIS)) {
+		sensor_cells[id].name = "cros-ec-lid-angle";
+		id++;
+	}
 
 	ret = mfd_add_devices(ec->dev, 0, sensor_cells, id,
 			      NULL, 0, NULL);
drivers/mfd/hi655x-pmic.c +2 -0
index f1c51ce309fa..7e3959aaa285 100644
@@ -109,6 +109,8 @@ static int hi655x_pmic_probe(struct platform_device *pdev)
 
 	pmic->regmap = devm_regmap_init_mmio_clk(dev, NULL, base,
 						 &hi655x_regmap_config);
+	if (IS_ERR(pmic->regmap))
+		return PTR_ERR(pmic->regmap);
 
 	regmap_read(pmic->regmap, HI655X_BUS_ADDR(HI655X_VER_REG), &pmic->ver);
 	if ((pmic->ver < PMU_VER_START) || (pmic->ver > PMU_VER_END)) {
drivers/mfd/madera-core.c +1 -0
index 2a77988d0462..826b971ccb86 100644
@@ -286,6 +286,7 @@ const struct of_device_id madera_of_match[] = {
 	{ .compatible = "cirrus,wm1840", .data = (void *)WM1840 },
 	{}
 };
+MODULE_DEVICE_TABLE(of, madera_of_match);
 EXPORT_SYMBOL_GPL(madera_of_match);
 
 static int madera_get_reset_gpio(struct madera *madera)
drivers/mfd/mfd-core.c +1 -0
index dbf684c4ebfb..23276a80e3b4 100644
@@ -175,6 +175,7 @@ static int mfd_add_device(struct device *parent, int id,
 		for_each_child_of_node(parent->of_node, np) {
 			if (of_device_is_compatible(np, cell->of_compatible)) {
 				pdev->dev.of_node = np;
+				pdev->dev.fwnode = &np->fwnode;
 				break;
 			}
 		}
drivers/misc/eeprom/Kconfig +3 -0
index f88094719552..f2abe27010ef 100644
@@ -5,6 +5,7 @@ config EEPROM_AT24
 	tristate "I2C EEPROMs / RAMs / ROMs from most vendors"
 	depends on I2C && SYSFS
 	select NVMEM
+	select NVMEM_SYSFS
 	select REGMAP_I2C
 	help
 	  Enable this driver to get read/write support to most I2C EEPROMs
@@ -34,6 +35,7 @@ config EEPROM_AT25
 	tristate "SPI EEPROMs from most vendors"
 	depends on SPI && SYSFS
 	select NVMEM
+	select NVMEM_SYSFS
 	help
 	  Enable this driver to get read/write support to most SPI EEPROMs,
 	  after you configure the board init code to know about each eeprom
@@ -80,6 +82,7 @@ config EEPROM_93XX46
 	depends on SPI && SYSFS
 	select REGMAP
 	select NVMEM
+	select NVMEM_SYSFS
 	help
 	  Driver for the microwire EEPROM chipsets 93xx46x. The driver
 	  supports both read and write commands and also the command to
drivers/misc/mei/hw-me-regs.h +3 -0
index d74b182e19f3..6c0173772162 100644
@@ -81,6 +81,9 @@
 
 #define MEI_DEV_ID_ICP_LP     0x34E0  /* Ice Lake Point LP */
 
+#define MEI_DEV_ID_MCC        0x4B70  /* Mule Creek Canyon (EHL) */
+#define MEI_DEV_ID_MCC_4      0x4B75  /* Mule Creek Canyon 4 (EHL) */
+
 /*
  * MEI HW Section
  */
drivers/misc/mei/pci-me.c +3 -0
index 7a2b3545a7f9..57cb68f5cc64 100644
@@ -98,6 +98,9 @@ static const struct pci_device_id mei_me_pci_tbl[] = {
 
 	{MEI_PCI_DEVICE(MEI_DEV_ID_ICP_LP, MEI_ME_PCH12_CFG)},
 
+	{MEI_PCI_DEVICE(MEI_DEV_ID_MCC, MEI_ME_PCH12_CFG)},
+	{MEI_PCI_DEVICE(MEI_DEV_ID_MCC_4, MEI_ME_PCH8_CFG)},
+
 	/* required last entry */
 	{0, }
 };
drivers/mmc/host/sdhci-pci-o2micro.c +11 -1
index dd21315922c8..9dc4548271b4 100644
@@ -395,11 +395,21 @@ int sdhci_pci_o2_probe_slot(struct sdhci_pci_slot *slot)
 {
 	struct sdhci_pci_chip *chip;
 	struct sdhci_host *host;
-	u32 reg;
+	u32 reg, caps;
 	int ret;
 
 	chip = slot->chip;
 	host = slot->host;
+
+	caps = sdhci_readl(host, SDHCI_CAPABILITIES);
+
+	/*
+	 * mmc_select_bus_width() will test the bus to determine the actual bus
+	 * width.
+	 */
+	if (caps & SDHCI_CAN_DO_8BIT)
+		host->mmc->caps |= MMC_CAP_8_BIT_DATA;
+
 	switch (chip->pdev->device) {
 	case PCI_DEVICE_ID_O2_SDS0:
 	case PCI_DEVICE_ID_O2_SEABIRD0:
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c +13 -6
index a76529a7662d..c2e92786608b 100644
@@ -1054,14 +1054,12 @@ static void cudbg_t4_fwcache(struct cudbg_init *pdbg_init,
 	}
 }
 
-static int cudbg_collect_mem_region(struct cudbg_init *pdbg_init,
-				    struct cudbg_buffer *dbg_buff,
-				    struct cudbg_error *cudbg_err,
-				    u8 mem_type)
+static unsigned long cudbg_mem_region_size(struct cudbg_init *pdbg_init,
+					   struct cudbg_error *cudbg_err,
+					   u8 mem_type)
 {
 	struct adapter *padap = pdbg_init->adap;
 	struct cudbg_meminfo mem_info;
-	unsigned long size;
 	u8 mc_idx;
 	int rc;
 
@@ -1075,7 +1073,16 @@ static int cudbg_collect_mem_region(struct cudbg_init *pdbg_init,
 	if (rc)
 		return rc;
 
-	size = mem_info.avail[mc_idx].limit - mem_info.avail[mc_idx].base;
+	return mem_info.avail[mc_idx].limit - mem_info.avail[mc_idx].base;
+}
+
+static int cudbg_collect_mem_region(struct cudbg_init *pdbg_init,
+				    struct cudbg_buffer *dbg_buff,
+				    struct cudbg_error *cudbg_err,
+				    u8 mem_type)
+{
+	unsigned long size = cudbg_mem_region_size(pdbg_init, cudbg_err, mem_type);
+
 	return cudbg_read_fw_mem(pdbg_init, dbg_buff, mem_type, size,
 				 cudbg_err);
 }
drivers/nvdimm/bus.c +83 -38

194 lines not on this page · raw message

drivers/nvdimm/nd-core.h +2 -1
index 391e88de3a29..6cd470547106 100644
@@ -17,10 +17,11 @@ extern struct workqueue_struct *nvdimm_wq;
 
 struct nvdimm_bus {
 	struct nvdimm_bus_descriptor *nd_desc;
-	wait_queue_head_t probe_wait;
+	wait_queue_head_t wait;
 	struct list_head list;
 	struct device dev;
 	int id, probe_active;
+	atomic_t ioctl_active;
 	struct list_head mapping_list;
 	struct mutex reconfig_mutex;
 	struct badrange badrange;
drivers/nvdimm/region.c +11 -11
index ef46cc3a71ae..488c47ac4c4a 100644
@@ -34,17 +34,6 @@ static int nd_region_probe(struct device *dev)
 	if (rc)
 		return rc;
 
-	rc = nd_region_register_namespaces(nd_region, &err);
-	if (rc < 0)
-		return rc;
-
-	ndrd = dev_get_drvdata(dev);
-	ndrd->ns_active = rc;
-	ndrd->ns_count = rc + err;
-
-	if (rc && err && rc == err)
-		return -ENODEV;
-
 	if (is_nd_pmem(&nd_region->dev)) {
 		struct resource ndr_res;
 
@@ -60,6 +49,17 @@ static int nd_region_probe(struct device *dev)
 		nvdimm_badblocks_populate(nd_region, &nd_region->bb, &ndr_res);
 	}
 
+	rc = nd_region_register_namespaces(nd_region, &err);
+	if (rc < 0)
+		return rc;
+
+	ndrd = dev_get_drvdata(dev);
+	ndrd->ns_active = rc;
+	ndrd->ns_count = rc + err;
+
+	if (rc && err && rc == err)
+		return -ENODEV;
+
 	nd_region->btt_seed = nd_btt_create(nd_region);
 	nd_region->pfn_seed = nd_pfn_create(nd_region);
 	nd_region->dax_seed = nd_dax_create(nd_region);
drivers/nvme/host/core.c +5 -0
index 22c68e3b71d5..4a1d2ab4d161 100644
@@ -11,6 +11,7 @@
 #include <linux/hdreg.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/backing-dev.h>
 #include <linux/list_sort.h>
 #include <linux/slab.h>
 #include <linux/types.h>
@@ -3256,6 +3257,10 @@ static int nvme_alloc_ns(struct nvme_ctrl *ctrl, unsigned nsid)
 		goto out_free_ns;
 	}
 
+	if (ctrl->opts && ctrl->opts->data_digest)
+		ns->queue->backing_dev_info->capabilities
+			|= BDI_CAP_STABLE_WRITES;
+
 	blk_queue_flag_set(QUEUE_FLAG_NONROT, ns->queue);
 	if (ctrl->ops->flags & NVME_F_PCI_P2PDMA)
 		blk_queue_flag_set(QUEUE_FLAG_PCI_P2PDMA, ns->queue);
drivers/nvme/host/pci.c +11 -6
index f5bc1c30cef5..7fbcd72c438f 100644
@@ -1456,11 +1456,15 @@ static int nvme_alloc_sq_cmds(struct nvme_dev *dev, struct nvme_queue *nvmeq,
 
 	if (qid && dev->cmb_use_sqes && (dev->cmbsz & NVME_CMBSZ_SQS)) {
 		nvmeq->sq_cmds = pci_alloc_p2pmem(pdev, SQ_SIZE(depth));
-		nvmeq->sq_dma_addr = pci_p2pmem_virt_to_bus(pdev,
-						nvmeq->sq_cmds);
-		if (nvmeq->sq_dma_addr) {
-			set_bit(NVMEQ_SQ_CMB, &nvmeq->flags);
-			return 0; 
+		if (nvmeq->sq_cmds) {
+			nvmeq->sq_dma_addr = pci_p2pmem_virt_to_bus(pdev,
+							nvmeq->sq_cmds);
+			if (nvmeq->sq_dma_addr) {
+				set_bit(NVMEQ_SQ_CMB, &nvmeq->flags);
+				return 0;
+			}
+
+			pci_free_p2pmem(pdev, nvmeq->sq_cmds, SQ_SIZE(depth));
 		}
 	}
 
@@ -2517,7 +2521,8 @@ static void nvme_reset_work(struct work_struct *work)
 	 * Limit the max command size to prevent iod->sg allocations going
 	 * over a single page.
 	 */
-	dev->ctrl.max_hw_sectors = NVME_MAX_KB_SZ << 1;
+	dev->ctrl.max_hw_sectors = min_t(u32,
+		NVME_MAX_KB_SZ << 1, dma_max_mapping_size(dev->dev) >> 9);
 	dev->ctrl.max_segments = NVME_MAX_SEGS;
 
 	/*
drivers/nvme/host/tcp.c +8 -1
index 08a2501b9357..606b13d35d16 100644
@@ -860,7 +860,14 @@ static int nvme_tcp_try_send_data(struct nvme_tcp_request *req)
 		else
 			flags |= MSG_MORE;
 
-		ret = kernel_sendpage(queue->sock, page, offset, len, flags);
+		/* can't zcopy slab pages */
+		if (unlikely(PageSlab(page))) {
+			ret = sock_no_sendpage(queue->sock, page, offset, len,
+					flags);
+		} else {
+			ret = kernel_sendpage(queue->sock, page, offset, len,
+					flags);
+		}
 		if (ret <= 0)
 			return ret;
 
drivers/pci/controller/dwc/pci-dra7xx.c +1 -0
index 419451efd58c..4234ddb4722f 100644
@@ -26,6 +26,7 @@
 #include <linux/types.h>
 #include <linux/mfd/syscon.h>
 #include <linux/regmap.h>
+#include <linux/gpio/consumer.h>
 
 #include "../../pci.h"
 #include "pcie-designware.h"
drivers/pci/controller/pcie-mobiveil.c +16 -6
index 77052a0712d0..387a20f3c240 100644
@@ -501,6 +501,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie)
 		return err;
 	}
 
+	/* setup bus numbers */
+	value = csr_readl(pcie, PCI_PRIMARY_BUS);
+	value &= 0xff000000;
+	value |= 0x00ff0100;
+	csr_writel(pcie, value, PCI_PRIMARY_BUS);
+
 	/*
 	 * program Bus Master Enable Bit in Command Register in PAB Config
 	 * Space
@@ -540,7 +546,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie)
 			resource_size(pcie->ob_io_res));
 
 	/* memory inbound translation window */
-	program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE);
+	program_ib_windows(pcie, WIN_NUM_0, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE);
 
 	/* Get the I/O and memory ranges from DT */
 	resource_list_for_each_entry_safe(win, tmp, &pcie->resources) {
@@ -552,11 +558,18 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie)
 		if (type) {
 			/* configure outbound translation window */
 			program_ob_windows(pcie, pcie->ob_wins_configured,
-				win->res->start, 0, type,
-				resource_size(win->res));
+					   win->res->start,
+					   win->res->start - win->offset,
+					   type, resource_size(win->res));
 		}
 	}
 
+	/* fixup for PCIe class register */
+	value = csr_readl(pcie, PAB_INTP_AXI_PIO_CLASS);
+	value &= 0xff;
+	value |= (PCI_CLASS_BRIDGE_PCI << 16);
+	csr_writel(pcie, value, PAB_INTP_AXI_PIO_CLASS);
+
 	/* setup MSI hardware registers */
 	mobiveil_pcie_enable_msi(pcie);
 
@@ -797,9 +810,6 @@ static int mobiveil_pcie_probe(struct platform_device *pdev)
 		goto error;
 	}
 
-	/* fixup for PCIe class register */
-	csr_writel(pcie, 0x060402ab, PAB_INTP_AXI_PIO_CLASS);
-
 	/* initialize the IRQ domains */
 	ret = mobiveil_pcie_init_irq_domain(pcie);
 	if (ret) {
drivers/pci/controller/pcie-xilinx-nwl.c +5 -6
index 3b031f00a94a..45c0f344ccd1 100644
@@ -482,15 +482,13 @@ static int nwl_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
 	int i;
 
 	mutex_lock(&msi->lock);
-	bit = bitmap_find_next_zero_area(msi->bitmap, INT_PCI_MSI_NR, 0,
-					 nr_irqs, 0);
-	if (bit >= INT_PCI_MSI_NR) {
+	bit = bitmap_find_free_region(msi->bitmap, INT_PCI_MSI_NR,
+				      get_count_order(nr_irqs));
+	if (bit < 0) {
 		mutex_unlock(&msi->lock);
 		return -ENOSPC;
 	}
 
-	bitmap_set(msi->bitmap, bit, nr_irqs);
-
 	for (i = 0; i < nr_irqs; i++) {
 		irq_domain_set_info(domain, virq + i, bit + i, &nwl_irq_chip,
 				domain->host_data, handle_simple_irq,
@@ -508,7 +506,8 @@ static void nwl_irq_domain_free(struct irq_domain *domain, unsigned int virq,
 	struct nwl_msi *msi = &pcie->msi;
 
 	mutex_lock(&msi->lock);
-	bitmap_clear(msi->bitmap, data->hwirq, nr_irqs);
+	bitmap_release_region(msi->bitmap, data->hwirq,
+			      get_count_order(nr_irqs));
 	mutex_unlock(&msi->lock);
 }
 
drivers/pci/endpoint/functions/pci-epf-test.c +7 -1
index 27806987e93b..7d41e6684b87 100644
@@ -434,10 +434,16 @@ static int pci_epf_test_alloc_space(struct pci_epf *epf)
 	int bar;
 	enum pci_barno test_reg_bar = epf_test->test_reg_bar;
 	const struct pci_epc_features *epc_features;
+	size_t test_reg_size;
 
 	epc_features = epf_test->epc_features;
 
-	base = pci_epf_alloc_space(epf, sizeof(struct pci_epf_test_reg),
+	if (epc_features->bar_fixed_size[test_reg_bar])
+		test_reg_size = bar_size[test_reg_bar];
+	else
+		test_reg_size = sizeof(struct pci_epf_test_reg);
+
+	base = pci_epf_alloc_space(epf, test_reg_size,
 				   test_reg_bar, epc_features->align);
 	if (!base) {
 		dev_err(dev, "Failed to allocated register space\n");
drivers/pci/pci-driver.c +7 -6
index ca3793002e2f..74c3df250d9c 100644
@@ -414,6 +414,9 @@ static int pci_device_probe(struct device *dev)
 	struct pci_dev *pci_dev = to_pci_dev(dev);
 	struct pci_driver *drv = to_pci_driver(dev->driver);
 
+	if (!pci_device_can_probe(pci_dev))
+		return -ENODEV;
+
 	pci_assign_irq(pci_dev);
 
 	error = pcibios_alloc_irq(pci_dev);
@@ -421,12 +424,10 @@ static int pci_device_probe(struct device *dev)
 		return error;
 
 	pci_dev_get(pci_dev);
-	if (pci_device_can_probe(pci_dev)) {
-		error = __pci_device_probe(drv, pci_dev);
-		if (error) {
-			pcibios_free_irq(pci_dev);
-			pci_dev_put(pci_dev);
-		}
+	error = __pci_device_probe(drv, pci_dev);
+	if (error) {
+		pcibios_free_irq(pci_dev);
+		pci_dev_put(pci_dev);
 	}
 
 	return error;
drivers/pci/pci-sysfs.c +1 -1
index 6d27475e39b2..4e83c347de5d 100644
@@ -477,7 +477,7 @@ static ssize_t remove_store(struct device *dev, struct device_attribute *attr,
 		pci_stop_and_remove_bus_device_locked(to_pci_dev(dev));
 	return count;
 }
-static struct device_attribute dev_remove_attr = __ATTR(remove,
+static struct device_attribute dev_remove_attr = __ATTR_IGNORE_LOCKDEP(remove,
 							(S_IWUSR|S_IWGRP),
 							NULL, remove_store);
 
drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c +1 -1
index 6233a7979a93..ac322d643c7a 100644
@@ -188,7 +188,7 @@ static const struct regmap_config phy_g12a_usb3_pcie_cr_regmap_conf = {
 	.reg_read = phy_g12a_usb3_pcie_cr_bus_read,
 	.reg_write = phy_g12a_usb3_pcie_cr_bus_write,
 	.max_register = 0xffff,
-	.fast_io = true,
+	.disable_locking = true,
 };
 
 static int phy_g12a_usb3_init(struct phy *phy)
drivers/phy/renesas/phy-rcar-gen2.c +2 -0
index 8dc5710d9c98..2926e4937301 100644
@@ -391,6 +391,7 @@ static int rcar_gen2_phy_probe(struct platform_device *pdev)
 		error = of_property_read_u32(np, "reg", &channel_num);
 		if (error || channel_num > 2) {
 			dev_err(dev, "Invalid \"reg\" property\n");
+			of_node_put(np);
 			return error;
 		}
 		channel->select_mask = select_mask[channel_num];
@@ -406,6 +407,7 @@ static int rcar_gen2_phy_probe(struct platform_device *pdev)
 						   data->gen2_phy_ops);
 			if (IS_ERR(phy->phy)) {
 				dev_err(dev, "Failed to create PHY\n");
+				of_node_put(np);
 				return PTR_ERR(phy->phy);
 			}
 			phy_set_drvdata(phy->phy, phy);
drivers/phy/renesas/phy-rcar-gen3-usb2.c +15 -4
index 1322185a00a2..8ffba67568ec 100644
@@ -13,6 +13,7 @@
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/module.h>
+#include <linux/mutex.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
 #include <linux/of_device.h>
@@ -106,6 +107,7 @@ struct rcar_gen3_chan {
 	struct rcar_gen3_phy rphys[NUM_OF_PHYS];
 	struct regulator *vbus;
 	struct work_struct work;
+	struct mutex lock;	/* protects rphys[...].powered */
 	enum usb_dr_mode dr_mode;
 	bool extcon_host;
 	bool is_otg_channel;
@@ -437,15 +439,16 @@ static int rcar_gen3_phy_usb2_power_on(struct phy *p)
 	struct rcar_gen3_chan *channel = rphy->ch;
 	void __iomem *usb2_base = channel->base;
 	u32 val;
-	int ret;
+	int ret = 0;
 
+	mutex_lock(&channel->lock);
 	if (!rcar_gen3_are_all_rphys_power_off(channel))
-		return 0;
+		goto out;
 
 	if (channel->vbus) {
 		ret = regulator_enable(channel->vbus);
 		if (ret)
-			return ret;
+			goto out;
 	}
 
 	val = readl(usb2_base + USB2_USBCTR);
@@ -454,7 +457,10 @@ static int rcar_gen3_phy_usb2_power_on(struct phy *p)
 	val &= ~USB2_USBCTR_PLL_RST;
 	writel(val, usb2_base + USB2_USBCTR);
 
+out:
+	/* The powered flag should be set for any other phys anyway */
 	rphy->powered = true;
+	mutex_unlock(&channel->lock);
 
 	return 0;
 }
@@ -465,14 +471,18 @@ static int rcar_gen3_phy_usb2_power_off(struct phy *p)
 	struct rcar_gen3_chan *channel = rphy->ch;
 	int ret = 0;
 
+	mutex_lock(&channel->lock);
 	rphy->powered = false;
 
 	if (!rcar_gen3_are_all_rphys_power_off(channel))
-		return 0;
+		goto out;
 
 	if (channel->vbus)
 		ret = regulator_disable(channel->vbus);
 
+out:
+	mutex_unlock(&channel->lock);
+
 	return ret;
 }
 
@@ -639,6 +649,7 @@ static int rcar_gen3_phy_usb2_probe(struct platform_device *pdev)
 	if (!phy_usb2_ops)
 		return -EINVAL;
 
+	mutex_init(&channel->lock);
 	for (i = 0; i < NUM_OF_PHYS; i++) {
 		channel->rphys[i].phy = devm_phy_create(dev, NULL,
 							phy_usb2_ops);
drivers/pinctrl/pinctrl-rockchip.c +1 -0
index 807a3263d849..62a622159006 100644
@@ -3204,6 +3204,7 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank,
 						    base,
 						    &rockchip_regmap_config);
 		}
+		of_node_put(node);
 	}
 
 	bank->irq = irq_of_parse_and_map(bank->of_node, 0);
drivers/platform/x86/Kconfig +1 -1
index 5d5cc6111081..7c2fd1d72e18 100644
@@ -1317,7 +1317,7 @@ config HUAWEI_WMI
 
 config PCENGINES_APU2
 	tristate "PC Engines APUv2/3 front button and LEDs driver"
-	depends on INPUT && INPUT_KEYBOARD
+	depends on INPUT && INPUT_KEYBOARD && GPIOLIB
 	depends on LEDS_CLASS
 	select GPIO_AMD_FCH
 	select KEYBOARD_GPIO_POLLED
drivers/platform/x86/asus-wmi.c +9 -1
index 9b18a184e0aa..abfa99d18fea 100644
@@ -85,6 +85,7 @@ static bool ashs_present(void)
 struct bios_args {
 	u32 arg0;
 	u32 arg1;
+	u32 arg2; /* At least TUF Gaming series uses 3 dword input buffer. */
 } __packed;
 
 /*
@@ -211,11 +212,13 @@ static void asus_wmi_input_exit(struct asus_wmi *asus)
 	asus->inputdev = NULL;
 }
 
-int asus_wmi_evaluate_method(u32 method_id, u32 arg0, u32 arg1, u32 *retval)
+static int asus_wmi_evaluate_method3(u32 method_id,
+		u32 arg0, u32 arg1, u32 arg2, u32 *retval)
 {
[… more lines in the raw message]

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

drivers/regulator/88pm800-regulator.c new file +286 -0

286 lines not on this page · raw message

drivers/regulator/88pm800.c deleted +0 -286

286 lines not on this page · raw message

drivers/regulator/Makefile +1 -1
index 93f53840e8f1..486edf784c13 100644

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

drivers/staging/kpc2000/TODO +0 -1
index 8c7af29fefae..ed951acc829a 100644

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

drivers/staging/kpc2000/kpc2000/cell_probe.c +3 -0
index e0dba91e7fa8..d6b57f550876 100644

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

drivers/staging/kpc2000/kpc_spi/spi_driver.c +6 -2
index 86df16547a92..2f535022dc03 100644

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

drivers/staging/vt6656/main_usb.c +28 -14

42 lines not on this page · raw message

drivers/tty/serial/8250/8250_port.c +2 -1
index 682300713be4..eb2e2d141c01 100644

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

drivers/tty/serial/cpm_uart/cpm_uart_core.c +11 -6
index b929c7ae3a27..7bab9a3eda92 100644

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

drivers/tty/serial/digicolor-usart.c +5 -1
index f460cca139e2..13ac36e2da4f 100644

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

drivers/tty/serial/imx.c +13 -10
index 8b752e895053..10db3e54ac9e 100644

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

drivers/tty/serial/max310x.c +31 -20

51 lines not on this page · raw message

drivers/tty/serial/msm_serial.c +4 -0
index 23833ad952ba..3657a24913fc 100644

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

drivers/tty/serial/serial_core.c +6 -1
index 83f4dd0bfd74..4223cb496764 100644

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

drivers/tty/serial/serial_mctrl_gpio.c +14 -0
index 39ed56214cd3..2b400189be91 100644

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

drivers/tty/serial/sh-sci.c +24 -9
index abc705716aa0..d18c680aa64b 100644

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

drivers/tty/serial/sunhv.c +1 -1
index 63e34d868de8..f8503f8fc44e 100644

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

drivers/tty/serial/xilinx_uartps.c +3 -2
index 605354fd60b1..9dcc4d855ddd 100644

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

drivers/usb/core/hub.c +16 -12
index 2c8e60c7dbd8..2844366dc173 100644

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

drivers/usb/dwc3/core.c +7 -5
index 4aff1d8dbc4f..6e9e172010fc 100644

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

drivers/usb/gadget/function/f_fs.c +4 -2
index c7ed90084d1a..213ff03c8a9f 100644

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

drivers/usb/host/hwa-hc.c +1 -1
index 09a8ebd95588..6968b9f2b76b 100644

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

drivers/usb/host/pci-quirks.c +19 -12
index 3ce71cbfbb58..ad05c27b3a7b 100644

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

drivers/usb/host/xhci.h +2 -1
index 92e764c54154..fabbce1c542a 100644

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

drivers/usb/misc/usb251xb.c +7 -8
index 4d6ae3795a88..6ca9111d150a 100644

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

drivers/usb/storage/scsiglue.c +11 -0
index 59190d88fa9f..556bb4fa0bee 100644

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

fs/9p/vfs_addr.c +4 -2
index bc57ae9e2963..cce9ace651a2 100644

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

fs/btrfs/inode.c +23 -1
index a2aabdb85226..8c9c7d76c900 100644

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

fs/btrfs/props.c +1 -1
index af109c0ba720..e0469816c678 100644

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

fs/dlm/lowcomms.c +12 -6
index 114ebfe30929..3951d39b9b75 100644

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

fs/f2fs/checkpoint.c +0 -11
index ed70b68b2b38..d0539ddad6e2 100644

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

fs/f2fs/data.c +3 -0
index eda4181d2092..923923603a7d 100644

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

fs/f2fs/f2fs.h +12 -6
index 06b89a9862ab..cbdc2f88a98c 100644

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

fs/f2fs/segment.c +18 -3
index 8dee063c833f..ce15fbcd7cff 100644

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

fs/f2fs/super.c +10 -0
index 6b959bbb336a..4b47ac994daf 100644

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

fs/io_uring.c +57 -3

60 lines not on this page · raw message

fs/notify/fanotify/fanotify.c +4 -1
index b428c295d13f..5778d1347b35 100644

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

fs/notify/inotify/inotify_fsnotify.c +6 -2
index 2fda08b2b885..d510223d302c 100644

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

fs/open.c +19 -0
index b5b80469b93d..a59abe3c669a 100644

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

fs/proc/base.c +22 -6
index 255f6754c70d..03517154fe0f 100644

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

fs/proc/task_mmu.c +18 -5
index 01d4eb0e6bd1..7f84d1477b5b 100644

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

fs/proc/task_nommu.c +5 -1
index 36bf0f2e102e..7907e6419e57 100644

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

include/linux/cred.h +7 -1
index 7eb43a038330..f7a30e0099be 100644

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

include/linux/device.h +1 -0
index 4a295e324ac5..b12c586fae28 100644

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

include/linux/hmm.h +1 -0
index 044a36d7c3f8..89508dc0795f 100644

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

include/linux/host1x.h +2 -0
index cfff30b9a62e..e6eea45e1154 100644

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

include/linux/iova.h +6 -0
index 781b96ac706f..a0637abffee8 100644

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

include/linux/swap.h +10 -3
index 4bfb5c4ac108..6358a6185634 100644

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

include/uapi/linux/videodev2.h +7 -1
index 1050a75fb7ef..dcd776e77442 100644

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

kernel/cred.c +19 -2
index c73a87a4df13..153ae369e024 100644

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

kernel/dma/remap.c +3 -0
index 7a723194ecbe..0207e3764d52 100644

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

kernel/locking/lockdep_proc.c +5 -3
index 9c49ec645d8b..bda006f8a88b 100644

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

mm/gup.c +8 -4
index ddde097cf9e4..d2c14fc4b5d4 100644

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

mm/hmm.c +17 -6
index f702a3895d05..4c405dfbd2b3 100644

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

mm/kmemleak.c +1 -1
index 9dd581d11565..3e147ea83182 100644

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

mm/memory.c +4 -2
index ddf20bd0c317..b0efc69b2634 100644

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

mm/mincore.c +10 -2
index c3f058bd0faf..4fe91d497436 100644

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

mm/mmu_notifier.c +1 -1
index 513b9607409d..b5670620aea0 100644

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

mm/nommu.c +2 -1
index d8c02fbe03b5..b2823519f8cd 100644

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

mm/swap.c +9 -4
index 7ede3eddc12a..607c48229a1d 100644

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

mm/swap_state.c +13 -3
index 85245fdec8d9..61453f1faf72 100644

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

mm/swapfile.c +122 -32

154 lines not on this page · raw message

net/rds/rdma_transport.c +3 -2
index 46bce8389066..9db455d02255 100644

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

scripts/basic/fixdep.c +41 -10

51 lines not on this page · raw message

scripts/genksyms/keywords.c +4 -0
index e93336baaaed..c586d32dd2c3 100644

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

scripts/genksyms/parse.y +2 -0
index 00a6d7e54971..1ebcf52cd0f9 100644

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

scripts/kallsyms.c +3 -0
index e17837f1d3f2..ae6504d07fd6 100644

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

scripts/recordmcount.h +2 -1
index 13c5e6c8829c..47fca2c69a73 100644

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

security/Kconfig.hardening +7 -0
index c6cb2d9b2905..107176069af3 100644

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

security/selinux/ss/sidtab.c +5 -0
index e63a90ff2728..1f0a6eaa2d6a 100644

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

sound/ac97/bus.c +4 -9
index 7b977b753a03..7985dd8198b6 100644

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

sound/core/pcm_native.c +5 -4
index 860543a4c840..12dd9b318db1 100644

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

sound/pci/hda/hda_intel.c +2 -3
index 50f86f458918..d438c450f04d 100644

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

sound/pci/hda/patch_conexant.c +1 -0
index 4f8d0845ee1e..f299f137eaea 100644

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

sound/usb/line6/podhd.c +1 -1
index 77a1d55334bb..53b53a9a4c6f 100644

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

tools/iio/iio_utils.c +2 -2
index a22b6e8fad46..7399eb7f1378 100644

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

tools/pci/pcitest.c +3 -3
index cb7a47dfd8b6..49ddfa6f5a8c 100644

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

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

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

tools/perf/builtin-top.c +6 -2
index 466621cd1017..8a9ff4b11df0 100644

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

tools/perf/builtin-trace.c +3 -3
index 52fadc858ef0..909e68545bb8 100644

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

tools/perf/tests/mmap-thread-lookup.c +1 -1
index ba87e6e8d18c..0a4301a5155c 100644

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

tools/perf/ui/browsers/hists.c +11 -4
index 3421ecbdd3f0..c1dd9b54dc6e 100644

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

tools/perf/util/annotate.c +2 -4
index c8ce13419d9b..b8dfcfe08bb1 100644

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

tools/perf/util/intel-bts.c +2 -3
index e32dbffebb2f..625ad3639a7e 100644

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

tools/perf/util/map.c +5 -2
index ee71efb9db62..9c81ee092784 100644

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

tools/perf/util/session.c +3 -0
index 54cf163347f7..2e61dd6a3574 100644

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

tools/testing/selftests/rseq/rseq-arm.h +33 -28

61 lines not on this page · raw message

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

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

#2 lore raw
In reply to Greg KH

Thanks, a bunch Greg! :)

Quoted 750 lines · Greg KH

I'm announcing the release of the 5.2.5 kernel.

All users of the 5.2 kernel series must upgrade.

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

thanks,

greg k-h

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

Documentation/devicetree/bindings/display/panel/armadeus,st0700-adapt.txt |    9
Documentation/devicetree/bindings/leds/backlight/lm3630a-backlight.yaml   |   21
Documentation/devicetree/bindings/usb/usb251xb.txt                        |    6
Makefile                                                                  |    3
arch/arm64/include/asm/assembler.h                                        |    4
arch/powerpc/Kconfig                                                      |    1
arch/powerpc/boot/xz_config.h                                             |   20
arch/powerpc/include/asm/cacheflush.h                                     |    7
arch/powerpc/include/asm/pmc.h                                            |    5
arch/powerpc/kernel/Makefile                                              |    3
arch/powerpc/kernel/dma-common.c                                          |   17
arch/powerpc/kernel/eeh.c                                                 |   15
arch/powerpc/kernel/hw_breakpoint.c                                       |    7
arch/powerpc/kernel/irq.c                                                 |    6
arch/powerpc/kernel/pci_of_scan.c                                         |    2
arch/powerpc/kernel/rtas.c                                                |    7
arch/powerpc/kernel/signal_32.c                                           |    3
arch/powerpc/kernel/signal_64.c                                           |    5
arch/powerpc/kvm/book3s_hv.c                                              |   13
arch/powerpc/kvm/book3s_xive.c                                            |    4
arch/powerpc/kvm/book3s_xive_native.c                                     |    4
arch/powerpc/mm/book3s64/hash_native.c                                    |    2
arch/powerpc/mm/book3s64/hash_utils.c                                     |    9
arch/powerpc/mm/book3s64/radix_tlb.c                                      |   32 -
arch/powerpc/mm/hugetlbpage.c                                             |    8
arch/powerpc/platforms/4xx/uic.c                                          |    1
arch/powerpc/platforms/pseries/mobility.c                                 |    9
arch/powerpc/sysdev/xive/common.c                                         |    7
arch/powerpc/xmon/xmon.c                                                  |    6
arch/sh/include/asm/io.h                                                  |    6
arch/um/include/asm/mmu_context.h                                         |    2
arch/x86/include/uapi/asm/vmx.h                                           |    1
arch/x86/kernel/cpu/bugs.c                                                |    2
arch/x86/kernel/stacktrace.c                                              |    2
arch/x86/kernel/sysfb_efi.c                                               |   46 +
arch/x86/kvm/vmx/nested.c                                                 |   87 +--
arch/x86/kvm/vmx/nested.h                                                 |    2
arch/x86/kvm/vmx/vmcs_shadow_fields.h                                     |    4
arch/x86/kvm/vmx/vmx.c                                                    |    3
arch/x86/kvm/x86.c                                                        |    9
block/bio-integrity.c                                                     |    8
block/blk-core.c                                                          |    1
drivers/android/binder.c                                                  |    5
drivers/base/core.c                                                       |   27
drivers/char/hpet.c                                                       |    3
drivers/char/ipmi/ipmi_si_platform.c                                      |    6
drivers/char/ipmi/ipmi_ssif.c                                             |    5
drivers/fpga/Kconfig                                                      |    1
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c                          |    4
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c                                     |    3
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c                     |   21
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c                           |    5
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c                         |   30 -
drivers/gpu/drm/amd/display/dc/core/dc.c                                  |   14
drivers/gpu/drm/amd/display/dc/core/dc_link.c                             |    6
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c                          |    9
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c                              |    2
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c                             |    3
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h                             |    2
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c               |    3
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c                 |    1
drivers/gpu/drm/amd/display/modules/color/color_gamma.c                   |    3
drivers/gpu/drm/bochs/bochs_drv.c                                         |    2
drivers/gpu/drm/bridge/sii902x.c                                          |    5
drivers/gpu/drm/bridge/tc358767.c                                         |    7
drivers/gpu/drm/bridge/ti-tfp410.c                                        |    3
drivers/gpu/drm/drm_debugfs_crc.c                                         |    9
drivers/gpu/drm/drm_edid_load.c                                           |    2
drivers/gpu/drm/i915/i915_request.c                                       |    4
drivers/gpu/drm/i915/intel_context.c                                      |    1
drivers/gpu/drm/i915/intel_context_types.h                                |    2
drivers/gpu/drm/i915/intel_engine_cs.c                                    |    1
drivers/gpu/drm/i915/intel_engine_types.h                                 |    2
drivers/gpu/drm/lima/lima_pp.c                                            |    8
drivers/gpu/drm/msm/adreno/a6xx_gmu.c                                     |   20
drivers/gpu/drm/msm/adreno/a6xx_gmu.h                                     |    1
drivers/gpu/drm/msm/adreno/adreno_gpu.c                                   |    8
drivers/gpu/drm/msm/msm_drv.c                                             |   14
drivers/gpu/drm/omapdrm/omap_crtc.c                                       |   18
drivers/gpu/drm/panel/panel-simple.c                                      |   38 +
drivers/gpu/drm/rockchip/rockchip_drm_vop.c                               |    3
drivers/gpu/drm/virtio/virtgpu_drv.h                                      |    1
drivers/gpu/drm/virtio/virtgpu_fence.c                                    |   17
drivers/gpu/drm/virtio/virtgpu_ioctl.c                                    |    3
drivers/gpu/drm/virtio/virtgpu_vq.c                                       |    2
drivers/gpu/drm/vkms/vkms_crtc.c                                          |   22
drivers/gpu/host1x/bus.c                                                  |    3
drivers/i2c/busses/i2c-nvidia-gpu.c                                       |   14
drivers/i2c/busses/i2c-stm32f7.c                                          |   26
drivers/iio/accel/adxl372.c                                               |   27
drivers/iio/adc/stm32-dfsdm-adc.c                                         |    6
drivers/iio/adc/stm32-dfsdm-core.c                                        |    8
drivers/infiniband/core/addr.c                                            |    2
drivers/infiniband/hw/i40iw/i40iw_verbs.c                                 |    2
drivers/infiniband/hw/mlx5/mad.c                                          |   60 +-
drivers/infiniband/sw/rxe/rxe_resp.c                                      |    5
drivers/infiniband/sw/rxe/rxe_verbs.h                                     |    1
drivers/infiniband/ulp/ipoib/ipoib_main.c                                 |   34 -
drivers/iommu/intel-iommu.c                                               |    3
drivers/iommu/iova.c                                                      |   23
drivers/mailbox/mailbox.c                                                 |    6
drivers/media/platform/coda/Makefile                                      |    4
drivers/memstick/core/memstick.c                                          |   13
drivers/mfd/arizona-core.c                                                |    2
drivers/mfd/cros_ec_dev.c                                                 |   13
drivers/mfd/hi655x-pmic.c                                                 |    2
drivers/mfd/madera-core.c                                                 |    1
drivers/mfd/mfd-core.c                                                    |    1
drivers/misc/eeprom/Kconfig                                               |    3
drivers/misc/mei/hw-me-regs.h                                             |    3
drivers/misc/mei/pci-me.c                                                 |    3
drivers/mmc/host/sdhci-pci-o2micro.c                                      |   12
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c                            |   19
drivers/nvdimm/bus.c                                                      |  121 ++--
drivers/nvdimm/nd-core.h                                                  |    3
drivers/nvdimm/region.c                                                   |   22
drivers/nvme/host/core.c                                                  |    5
drivers/nvme/host/pci.c                                                   |   17
drivers/nvme/host/tcp.c                                                   |    9
drivers/pci/controller/dwc/pci-dra7xx.c                                   |    1
drivers/pci/controller/pcie-mobiveil.c                                    |   22
drivers/pci/controller/pcie-xilinx-nwl.c                                  |   11
drivers/pci/endpoint/functions/pci-epf-test.c                             |    8
drivers/pci/pci-driver.c                                                  |   13
drivers/pci/pci-sysfs.c                                                   |    2
drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c                            |    2
drivers/phy/renesas/phy-rcar-gen2.c                                       |    2
drivers/phy/renesas/phy-rcar-gen3-usb2.c                                  |   19
drivers/pinctrl/pinctrl-rockchip.c                                        |    1
drivers/platform/x86/Kconfig                                              |    2
drivers/platform/x86/asus-wmi.c                                           |   10
drivers/regulator/88pm800-regulator.c                                     |  286 ++++++++++
drivers/regulator/88pm800.c                                               |  286 ----------
drivers/regulator/Makefile                                                |    2
drivers/staging/kpc2000/TODO                                              |    1
drivers/staging/kpc2000/kpc2000/cell_probe.c                              |    3
drivers/staging/kpc2000/kpc_spi/spi_driver.c                              |    8
drivers/staging/vt6656/main_usb.c                                         |   42 -
drivers/tty/serial/8250/8250_port.c                                       |    3
drivers/tty/serial/cpm_uart/cpm_uart_core.c                               |   17
drivers/tty/serial/digicolor-usart.c                                      |    6
drivers/tty/serial/imx.c                                                  |   23
drivers/tty/serial/max310x.c                                              |   51 +
drivers/tty/serial/msm_serial.c                                           |    4
drivers/tty/serial/serial_core.c                                          |    7
drivers/tty/serial/serial_mctrl_gpio.c                                    |   14
drivers/tty/serial/sh-sci.c                                               |   33 -
drivers/tty/serial/sunhv.c                                                |    2
drivers/tty/serial/xilinx_uartps.c                                        |    5
drivers/usb/core/hub.c                                                    |   28
drivers/usb/dwc3/core.c                                                   |   12
drivers/usb/gadget/function/f_fs.c                                        |    6
drivers/usb/host/hwa-hc.c                                                 |    2
drivers/usb/host/pci-quirks.c                                             |   31 -
drivers/usb/host/xhci.h                                                   |    3
drivers/usb/misc/usb251xb.c                                               |   15
drivers/usb/storage/scsiglue.c                                            |   11
fs/9p/vfs_addr.c                                                          |    6
fs/btrfs/inode.c                                                          |   24
fs/btrfs/props.c                                                          |    2
fs/dlm/lowcomms.c                                                         |   18
fs/f2fs/checkpoint.c                                                      |   11
fs/f2fs/data.c                                                            |    3
fs/f2fs/f2fs.h                                                            |   18
fs/f2fs/segment.c                                                         |   21
fs/f2fs/super.c                                                           |   10
fs/io_uring.c                                                             |   60 +-
fs/notify/fanotify/fanotify.c                                             |    5
fs/notify/inotify/inotify_fsnotify.c                                      |    8
fs/open.c                                                                 |   19
fs/proc/base.c                                                            |   28
fs/proc/task_mmu.c                                                        |   23
fs/proc/task_nommu.c                                                      |    6
include/linux/cred.h                                                      |    8
include/linux/device.h                                                    |    1
include/linux/hmm.h                                                       |    1
include/linux/host1x.h                                                    |    2
include/linux/iova.h                                                      |    6
include/linux/swap.h                                                      |   13
include/uapi/linux/videodev2.h                                            |    8
kernel/cred.c                                                             |   21
kernel/dma/remap.c                                                        |    3
kernel/locking/lockdep_proc.c                                             |    8
mm/gup.c                                                                  |   12
mm/hmm.c                                                                  |   23
mm/kmemleak.c                                                             |    2
mm/memory.c                                                               |    6
mm/mincore.c                                                              |   12
mm/mmu_notifier.c                                                         |    2
mm/nommu.c                                                                |    3
mm/swap.c                                                                 |   13
mm/swap_state.c                                                           |   16
mm/swapfile.c                                                             |  154 ++++-
net/rds/rdma_transport.c                                                  |    5
scripts/basic/fixdep.c                                                    |   51 +
scripts/genksyms/keywords.c                                               |    4
scripts/genksyms/parse.y                                                  |    2
scripts/kallsyms.c                                                        |    3
scripts/recordmcount.h                                                    |    3
security/Kconfig.hardening                                                |    7
security/selinux/ss/sidtab.c                                              |    5
sound/ac97/bus.c                                                          |   13
sound/core/pcm_native.c                                                   |    9
sound/pci/hda/hda_intel.c                                                 |    5
sound/pci/hda/patch_conexant.c                                            |    1
sound/usb/line6/podhd.c                                                   |    2
tools/iio/iio_utils.c                                                     |    4
tools/pci/pcitest.c                                                       |    6
tools/perf/builtin-stat.c                                                 |    2
tools/perf/builtin-top.c                                                  |    8
tools/perf/builtin-trace.c                                                |    6
tools/perf/tests/mmap-thread-lookup.c                                     |    2
tools/perf/ui/browsers/hists.c                                            |   15
tools/perf/util/annotate.c                                                |    6
tools/perf/util/intel-bts.c                                               |    5
tools/perf/util/map.c                                                     |    7
tools/perf/util/session.c                                                 |    3
tools/testing/selftests/rseq/rseq-arm.h                                   |   61 +-
218 files changed, 2070 insertions(+), 963 deletions(-)

Ajay Gupta (1):
i2c: nvidia-gpu: resume ccgx i2c client

Alan Mikhak (3):
tools: PCI: Fix broken pcitest compilation
PCI: endpoint: Allocate enough space for fixed size BAR
nvme-pci: check for NULL return from pci_alloc_p2pmem()

Alex Williamson (1):
PCI: Return error if cannot probe VF

Alexander Usyskin (1):
mei: me: add mule creek canyon (EHL) device ids

Alexandru Ardelean (1):
iio: adxl372: fix iio_triggered_buffer_{pre,post}enable positions

Alexey Kardashevskiy (1):
powerpc/pci/of: Fix OF flags parsing for 64bit BARs

Anders Roxell (2):
regulator: 88pm800: fix warning same module names
media: drivers: media: coda: fix warning same module names

Andrzej Pietrasiewicz (1):
usb: gadget: Zero ffs_io_data

Andy Lutomirski (1):
mm/gup.c: remove some BUG_ONs from get_gate_page()

Aneesh Kumar K.V (1):
powerpc/mm: Handle page table allocation failures

Anthony Koo (1):
drm/amd/display: fix multi display seamless boot case

Arnd Bergmann (5):
btrfs: shut up bogus -Wmaybe-uninitialized warning
mfd: arizona: Fix undefined behavior
cxgb4: reduce kernel stack usage in cudbg_collect_mem_region() locking/lockdep: Hide unused 'class' variable
structleak: disable STRUCTLEAK_BYREF in combination with KASAN_STACK

Arseny Solokha (1):
eeprom: make older eeprom drivers select NVMEM_SYSFS

Axel Lin (1):
mfd: hi655x-pmic: Fix missing return value check for devm_regmap_init_mmio_clk

Bastien Nocera (1):
iio: iio-utils: Fix possible incorrect mask calculation

Bharat Kumar Gogada (1):
PCI: xilinx-nwl: Fix Multi MSI data programming

Brian Masney (1):
dt-bindings: backlight: lm3630a: correct schema validation

Chao Yu (2):
f2fs: fix to check layout on last valid checkpoint park
f2fs: fix to avoid deadloop if data_flush is on

Chia-I Wu (1):
drm/virtio: set seqno for dma-fence

Chris Wilson (2):
iommu/iova: Remove stale cached32_node drm/i915: Make the semaphore saturation mask global

Christian Lamparter (1):
powerpc/4xx/uic: clear pending interrupt after irq type/pol change

Christoph Hellwig (2):
nvme-pci: limit max_hw_sectors based on the DMA max mapping size 9p: pass the correct prototype to read_cache_page

Christophe Leroy (1):
tty: serial: cpm_uart - fix init when SMC is relocated

Cédric Le Goater (1):
KVM: PPC: Book3S HV: XIVE: fix rollback when kvmppc_xive_create fails

Dag Moxnes (1):
RDMA/core: Fix race when resolving IP address

Dan Williams (4):
drivers/base: Introduce kill_device()
libnvdimm/bus: Prevent duplicate device_unregister() calls libnvdimm/region: Register badblocks before namespaces libnvdimm/bus: Stop holding nvdimm_bus_list_mutex over __nd_ioctl()

Daniel Gomez (1):
mfd: madera: Add missing of table registration

Daniel Rosenberg (2):
f2fs: Fix accounting for unusable blocks
f2fs: Lower threshold for disable_cp_again

Daniel Vetter (3):
drm/crc-debugfs: User irqsafe spinlock in drm_crtc_add_crc_entry drm/crc-debugfs: Also sprinkle irqrestore over early exits drm/vkms: Forward timer right after drm_crtc_handle_vblank

David Riley (1):
drm/virtio: Add memory barriers for capset cache.

David Windsor (1):
dlm: check if workqueues are NULL before flushing/destroying

Ding Xiang (1):
ALSA: ac97: Fix double free of ac97_codec_device

Dmitry Safonov (1):
iommu/vt-d: Don't queue_iova() if there is no flush queue

Dmitry Vyukov (1):
mm/kmemleak.c: fix check for softirq context

Douglas Anderson (1):
drm/rockchip: Properly adjust to a true clock in adjusted_mode

Eiichi Tsukata (1):
x86/stacktrace: Prevent access_ok() warnings in arch_stack_walk_user()

Enric Balletbo i Serra (1):
usb: dwc3: Fix core validation in probe, move after clocks are enabled

Eryk Brol (1):
drm/amd/display: Increase Backlight Gain Step Size

Eugene Korenevsky (2):
kvm: vmx: fix limit checking in get_vmx_mem_address()
kvm: vmx: segment limit check: use access length

Fabien Dessenne (2):
iio: adc: stm32-dfsdm: manage the get_irq error case
iio: adc: stm32-dfsdm: missing error case during probe

Fabrice Gasnier (1):
i2c: stm32f7: fix the get_irq error cases

Felix Kuehling (1):
drm/amdgpu: Reserve shared fence for eviction fence

Florian Fainelli (1):
dma-remap: Avoid de-referencing NULL atomic_pool

Gautham R. Shenoy (1):
powerpc/xive: Fix loop exit-condition in xive_find_target_in_mask()

Geert Uytterhoeven (2):
serial: sh-sci: Terminate TX DMA during buffer flushing
serial: sh-sci: Fix TX DMA buffer flushing and workqueue races

Gen Zhang (1):
drm/edid: Fix a missing-check bug in drm_load_edid_firmware()

Gerd Rausch (1):
rds: Accept peer connection reject messages due to incompatible version

Greg Kroah-Hartman (1):

     Linux 5.2.5

Guenter Roeck (1):
mm/gup.c: mark undo_dev_pagemap as __maybe_unused

Gwendal Grignou (1):
mfd: cros_ec: Register cros_ec_lid_angle driver when presented

Hans Verkuil (1):
media: videodev2.h: change V4L2_PIX_FMT_BGRA444 define: fourcc was already in use

Hans de Goede (1):
x86/sysfb_efi: Add quirks for some devices with swapped width and height

Hariprasad Kelam (1):
drm/amd/display: fix compilation error

Heng Xiao (1):
f2fs: fix to avoid long latency during umount

Hou Zhiqiang (4):
PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows
PCI: mobiveil: Fix the Class Code field
PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers
PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions

Hridya Valsaraju (1):
binder: prevent transactions to context manager from its own process.

Huang Ying (2):
mm/mincore.c: fix race between swapoff and mincore mm, swap: fix race between swapoff and some swap operations

Hui Wang (1):
ALSA: hda - Add a conexant codec entry to let mute led work

Ira Weiny (1):
mm/swap: fix release_pages() when releasing devmap pages

Jackie Liu (1):
io_uring: fix io_sq_thread_stop running in front of io_sq_thread

James Morse (1):
arm64: assembler: Switch ESB-instruction with a vanilla nop if !ARM64_HAS_RAS

Jason Gunthorpe (1):
mm/hmm: fix use after free with struct hmm in the mmu notifiers

Jean-Philippe Brucker (1):
mm/mmu_notifier: use hlist_add_head_rcu()

Jens Axboe (2):
io_uring: ensure ->list is initialized for poll commands
io_uring: don't use iov_iter_advance() for fixed buffers

Jeremy Sowden (1):
staging: kpc2000: added missing clean-up to probe_core_uio.

Joerg Roedel (1):
iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA

Johannes Berg (1):
um: Silence lockdep complaint about mmap_sem

John Paul Adrian Glaubitz (1):
sunhv: Fix device naming inconsistency between sunhv_console and sunhv_reg

Jordan Crouse (1):
drm/msm/adreno: Ensure that the zap shader region is big enough

Jorge Ramirez-Ortiz (1):
tty: serial: msm_serial: avoid system lockup condition

Josef Bacik (1):
block: init flush rq ref count to 1

Jyri Sarha (1):
drm/bridge: sii902x: pixel clock unit is 10kHz instead of 1kHz

Kai-Heng Feng (1):
ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1

Kefeng Wang (4):
ipmi_si: fix unexpected driver unregister warning
ipmi_ssif: fix unexpected driver unregister warning tty/serial: digicolor: Fix digicolor-usart already registered warning
hpet: Fix division by zero in hpet_time_div()

Konstantin Khlebnikov (6):
proc: use down_read_killable mmap_sem for /proc/pid/smaps_rollup
proc: use down_read_killable mmap_sem for /proc/pid/pagemap
proc: use down_read_killable mmap_sem for /proc/pid/clear_refs
proc: use down_read_killable mmap_sem for /proc/pid/map_files
proc: use down_read_killable mmap_sem for /proc/pid/maps
mm: use down_read_killable for locking mmap_sem in access_remote_vm

Konstantin Taranov (1):
RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM

Krunoslav Kovac (1):
drm/amd/display: CS_TFM_1D only applied post EOTF

Leo Yan (8):
perf stat: Fix use-after-freed pointer detected by the smatch tool perf top: Fix potential NULL pointer dereference detected by the smatch tool perf trace: Fix potential NULL pointer dereference found by the smatch tool perf session: Fix potential NULL pointer dereference found by the smatch tool perf map: Fix potential NULL pointer dereference found by smatch tool perf annotate: Fix dereferencing freed memory found by the smatch tool perf hists browser: Fix potential NULL pointer dereference found by the smatch tool perf intel-bts: Fix potential NULL pointer dereference found by the smatch tool

Linus Torvalds (1):
access: avoid the RCU grace period for the temporary subjective credentials

Liu, Changcheng (1):
RDMA/i40iw: Set queue pair state when being queried

Lucas Stach (3):
Revert "usb: usb251xb: Add US lanes inversion dts-bindings" Revert "usb: usb251xb: Add US port lanes inversion property"
usb: usb251xb: Reallow swap-dx-lanes to apply to the upstream port

Mao Wenan (1):
staging: kpc2000: report error status to spi core

Marek Vasut (1):
PCI: sysfs: Ignore lockdep for remove attribute

Martijn Coenen (1):
binder: Set end of SG buffer area properly.

Masahiro Yamada (3):
fixdep: check return value of printf() and putchar() powerpc/mm: mark more tlb functions as __always_inline powerpc/boot: add {get, put}_unaligned_be32 to xz_config.h

Mathias Nyman (1):
xhci: Fix crash if scatter gather is used with Immediate Data Transfer (IDT).

Mathieu Desnoyers (1):
rseq/selftests: Fix Thumb mode build failure on arm32

Mathieu Malaterre (1):
powerpc: silence a -Wcast-function-type warning in dawr_write_file_bool

Michael Ellerman (1):
powerpc/irq: Don't WARN continuously in arch_local_irq_restore()

Michael Neuling (1):
powerpc/tm: Fix oops on sigreturn on systems without TM

Mikhail Skorzhinskii (2):
nvme-tcp: don't use sendpage for SLAB pages
nvme-tcp: set the STABLE_WRITES flag when data digests are enabled

Minwoo Im (1):
nvme: fix NULL deref for fabrics options

Nathan Chancellor (1):
kbuild: Add -Werror=unknown-warning-option to CLANG_FLAGS

Nathan Lynch (2):
powerpc/pseries/mobility: prevent cpu hotplug during DT update powerpc/rtas: retry when cpu offline races with suspend/migration

Naveen N. Rao (2):
powerpc/xmon: Fix disabling tracing while in xmon
recordmcount: Fix spurious mcount entries on powerpc

Neil Armstrong (1):
phy: meson-g12a-usb3-pcie: disable locking for cr_regmap

Nicholas Kazlauskas (4):
drm/amd/display: Fill prescale_params->scale for RGB565 drm/amd/display: Disable cursor when offscreen in negative direction drm/amd/display: Reset planes for color management changes drm/amd/display: Always allocate initial connector state state

Numfor Mbiziwo-Tiapo (1):
perf test mmap-thread-lookup: Initialize variable to suppress memory sanitizer warning

Oak Zeng (2):
drm/amdkfd: Fix a potential memory leak
drm/amdkfd: Fix sdma queue map issue

Ocean Chen (1):
f2fs: avoid out-of-range memory access

Oliver O'Halloran (1):
powerpc/eeh: Handle hugepages in ioremap space

Ondrej Mosnacek (1):
selinux: check sidtab limit before adding a new entry

Parav Pandit (1):
IB/mlx5: Fixed reporting counters on 2nd port for Dual port RoCE

Paul Hsieh (1):
drm/amd/display: Disable ABM before destroy ABM struct

Peter Griffin (1):
drm/lima: handle shared irq case for lima_pp_bcast_irq_handler

Peter Ujfalusi (1):
drm/panel: simple: Fix panel_simple_dsi_probe

Phong Tran (1):
usb: wusbcore: fix unbalanced get/put cluster_id

Qian Cai (1):
powerpc/cacheflush: fix variable set but not used

Qu Wenruo (1):
btrfs: inode: Don't compress if NODATASUM or NODATACOW set

Quentin Deslandes (1):
staging: vt6656: use meaningful error code during buffer allocation

Raul E Rangel (1):
mmc: sdhci: sdhci-pci-o2micro: Check if controller supports 8-bit width

Rautkoski Kimmo EXT (1):
serial: 8250: Fix TX interrupt handling condition

Robert Hancock (1):
mfd: core: Set fwnode for created devices

Roman Li (1):
drm/amd/display: Fill plane attrs only for valid pxl format

Ryan Kennedy (1):
usb: pci-quirks: Correct AMD PLL quirk detection

Sahitya Tummala (1):
f2fs: fix is_idle() check for discard type

Sam Bobroff (1):
drm/bochs: Fix connector leak during driver unload

Sam Ravnborg (1):
sh: prevent warnings when using iounmap

Samson Tam (1):

     drm/amd/display: set link->dongle_max_pix_clk to 0 on a disconnect

Sean Christopherson (2):
KVM: nVMX: Intercept VMWRITEs to GUEST_{CS,SS}_AR_BYTES
KVM: nVMX: Stash L1's CR3 in vmcs01.GUEST_CR3 on nested entry w/o EPT

Sean Paul (3):
drm/msm/a6xx: Check for ERR or NULL before iounmap drm/msm/a6xx: Avoid freeing gmu resources multiple times drm/msm: Depopulate platform on probe failure

Sebastian Reichel (1):
drm/omap: don't check dispc timings for DSI

Serge Semin (2):
tty: max310x: Fix invalid baudrate divisors calculator
tty: serial_core: Set port active bit in uart_port_activate

Sergey Organov (1):
serial: imx: fix locking in set_termios()

Shakeel Butt (1):
memcg, fsnotify: no oom-kill for remote memcg charging

Shawn Anastasio (1):
powerpc/dma: Fix invalid DMA mmap behavior

Shubhrajyoti Datta (1):
serial: uartps: Use the same dynamic major number for all ports

Stefan Roese (1):
serial: mctrl_gpio: Check if GPIO property exisits before requesting it

Suraj Jitindar Singh (4):
KVM: PPC: Book3S HV: Always save guest pmu for guest capable of nesting
KVM: PPC: Book3S HV: Save and restore guest visible PSSCR bits on pseries powerpc/mm: Limit rma_size to 1TB when running without HV mode powerpc/pmu: Set pmcregs_in_use in paca when running as LPAR

Sébastien Szymanski (1):
drm/panel: Add support for Armadeus ST0700 Adapt

Takashi Iwai (2):
ALSA: pcm: Fix refcount_inc() on zero usage
ALSA: hda - Fix intermittent CORB/RIRB stall on Intel chips

Thierry Reding (1):
gpu: host1x: Increase maximum DMA segment size

Thinh Nguyen (1):
usb: core: hub: Disable hub-initiated U1/U2

Tiecheng Zhou (1):
drm/amdgpu/sriov: Need to initialize the HDP_NONSURFACE_BAStE

Tomi Valkeinen (2):
drm/bridge: tc358767: read display_props in get_modes() drm/bridge: tfp410: fix use of cancel_delayed_work_sync

Valentine Fatiev (1):
IB/ipoib: Add child to parent list only if device initialized

Vasily Gorbik (1):
kallsyms: exclude kasan local symbols on s390

Wang Hai (1):
memstick: Fix error cleanup path of memstick_init

Wanpeng Li (1):
KVM: X86: Fix fpu state crash in kvm guest

Wen Yang (1):
pinctrl: rockchip: fix leaked of_node references

Wenwen Wang (1):
block/bio-integrity: fix a memory leak bug

Wesley Chalmers (1):
drm/amd/display: Update link rate from DPCD 10

Will Deacon (1):
genksyms: Teach parser about 128-bit built-in types

Yoshihiro Shimoda (3):
phy: renesas: rcar-gen2: Fix memory leak at error paths
phy: renesas: rcar-gen3-usb2: fix imbalance powered flag
usb-storage: Add a limitation for blk_queue_max_hw_sectors()

YueHaibing (3):
PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB platform/x86: Fix PCENGINES_APU2 Kconfig warning
fpga-manager: altera-ps-spi: Fix build error

Yurii Pavlovskyi (1):
platform/x86: asus-wmi: Increase input buffer size of WMI methods

Yuyang Du (1):
locking/lockdep: Fix lock used or unused stats error

Zhengyuan Liu (3):
io_uring: fix the sequence comparison in io_sequence_defer
io_uring: add a memory barrier before atomic_read
io_uring: fix counter inc/dec mismatch in async_list

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

morten petersen (1):
mailbox: handle failed named mailbox channel request