Skip to contentSkip to conversation

Linux 5.0.7

DISCUSSION Greg KH 1 participant 2 messages Apr 15, 2019 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 5.0.7 kernel.

(sorry I forgot to send these out last week, my fault, the kernels were released, but the email did not get sent...)

All users of the 5.0 kernel series must upgrade.

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

thanks,

greg k-h

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

 Documentation/arm/kernel_mode_neon.txt                      |    4 
 Makefile                                                    |   69 +++++++----
 arch/arm/boot/dts/lpc32xx.dtsi                              |   18 +--
 arch/arm/boot/dts/meson8b.dtsi                              |    6 -
 arch/arm/include/asm/barrier.h                              |    2 
 arch/arm/include/asm/processor.h                            |    6 -
 arch/arm/include/asm/v7m.h                                  |    2 
 arch/arm/kernel/entry-header.S                              |    3 
 arch/arm/kernel/entry-v7m.S                                 |    4 
 arch/arm/kernel/machine_kexec.c                             |    5 
 arch/arm/kernel/smp.c                                       |    4 
 arch/arm/kernel/unwind.c                                    |   14 +-
 arch/arm/lib/Makefile                                       |    2 
 arch/arm/lib/xor-neon.c                                     |    2 
 arch/arm/mach-omap2/prm_common.c                            |    4 
 arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c          |    5 
 arch/arm/mm/copypage-v4mc.c                                 |    3 
 arch/arm/mm/copypage-v4wb.c                                 |    3 
 arch/arm/mm/copypage-v4wt.c                                 |    3 
 arch/arm/mm/proc-v7m.S                                      |    3 
 arch/h8300/Makefile                                         |    2 
 arch/powerpc/include/asm/topology.h                         |    2 
 arch/powerpc/kernel/entry_64.S                              |    7 +
 arch/powerpc/kernel/ptrace.c                                |    8 +
 arch/powerpc/mm/hugetlbpage-radix.c                         |    5 
 arch/powerpc/mm/numa.c                                      |    9 -
 arch/powerpc/platforms/44x/Kconfig                          |    1 
 arch/powerpc/platforms/powernv/pci-ioda-tce.c               |    1 
 arch/powerpc/platforms/powernv/pci-ioda.c                   |    7 +
 arch/powerpc/platforms/pseries/hotplug-cpu.c                |   19 +++
 arch/powerpc/xmon/ppc-dis.c                                 |    2 
 arch/s390/kernel/perf_cpum_sf.c                             |    6 -
 arch/x86/boot/Makefile                                      |    2 
 arch/x86/events/intel/bts.c                                 |    4 
 arch/x86/events/intel/pt.c                                  |    5 
 arch/x86/hyperv/hv_init.c                                   |    7 +
 arch/x86/include/asm/uaccess.h                              |   24 ++--
 arch/x86/kernel/kexec-bzimage64.c                           |    4 
 arch/x86/kernel/vmlinux.lds.S                               |    2 
 arch/x86/lib/usercopy_32.c                                  |    8 -
 arch/x86/platform/efi/quirks.c                              |    4 
 arch/x86/realmode/rm/Makefile                               |    2 
 block/bfq-iosched.c                                         |   22 ++-
 block/bfq-iosched.h                                         |    3 
 block/bfq-wf2q.c                                            |    6 -
 drivers/acpi/acpi_video.c                                   |   20 ++-
 drivers/block/loop.c                                        |   21 ++-
 drivers/cdrom/cdrom.c                                       |    7 -
 drivers/char/hpet.c                                         |    2 
 drivers/char/hw_random/virtio-rng.c                         |    2 
 drivers/clk/clk-fractional-divider.c                        |    2 
 drivers/clk/meson/meson-aoclk.c                             |   15 +-
 drivers/clk/rockchip/clk-rk3328.c                           |   12 +-
 drivers/clk/ti/clkctrl.c                                    |    2 
 drivers/cpufreq/acpi-cpufreq.c                              |    4 
 drivers/crypto/amcc/crypto4xx_trng.c                        |    4 
 drivers/crypto/cavium/zip/zip_main.c                        |    6 -
 drivers/dma/imx-dma.c                                       |    2 
 drivers/dma/qcom/hidma.c                                    |   19 +--
 drivers/dma/tegra20-apb-dma.c                               |    5 
 drivers/firmware/efi/cper.c                                 |   13 +-
 drivers/firmware/efi/libstub/arm-stub.c                     |    5 
 drivers/firmware/efi/libstub/efi-stub-helper.c              |   10 +
 drivers/firmware/efi/libstub/efistub.h                      |    1 
 drivers/firmware/efi/libstub/fdt.c                          |    3 
 drivers/firmware/efi/memattr.c                              |    2 
 drivers/firmware/efi/runtime-wrappers.c                     |   48 ++++----
 drivers/gpio/gpio-omap.c                                    |   14 +-
 drivers/gpio/gpiolib-of.c                                   |    3 
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c           |   60 ++++++++--
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c       |   42 +++----
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c |    1 
 drivers/gpu/drm/amd/display/dc/core/dc.c                    |    3 
 drivers/gpu/drm/amd/display/dc/core/dc_link.c               |    1 
 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c   |    7 -
 drivers/gpu/drm/drm_dp_mst_topology.c                       |    1 
 drivers/gpu/drm/drm_fb_helper.c                             |    2 
 drivers/gpu/drm/drm_mode_object.c                           |    1 
 drivers/gpu/drm/drm_plane.c                                 |    3 
 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c                    |   36 +++---
 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c                   |    4 
 drivers/gpu/drm/rcar-du/rcar_du_kms.c                       |    2 
 drivers/gpu/drm/scheduler/sched_entity.c                    |   39 ++++--
 drivers/gpu/drm/vkms/vkms_crtc.c                            |   21 +--
 drivers/hid/intel-ish-hid/ipc/ipc.c                         |    9 +
 drivers/hid/intel-ish-hid/ishtp/bus.c                       |    4 
 drivers/hwtracing/coresight/coresight-etm-perf.c            |    6 -
 drivers/hwtracing/coresight/coresight-etm4x.c               |    3 
 drivers/i2c/busses/i2c-designware-core.h                    |    2 
 drivers/i2c/busses/i2c-designware-master.c                  |    6 +
 drivers/i2c/busses/i2c-designware-pcidrv.c                  |    7 +
 drivers/i2c/busses/i2c-designware-platdrv.c                 |    3 
 drivers/i2c/i2c-core-base.c                                 |    9 -
 drivers/i2c/i2c-core-of.c                                   |   14 ++
 drivers/iio/adc/qcom-pm8xxx-xoadc.c                         |   10 -
 drivers/infiniband/hw/cxgb4/cm.c                            |    5 
 drivers/infiniband/hw/mlx4/cm.c                             |    2 
 drivers/input/misc/soc_button_array.c                       |    2 
 drivers/iommu/intel-iommu.c                                 |    3 
 drivers/iommu/io-pgtable-arm-v7s.c                          |    3 
 drivers/leds/leds-lp55xx-common.c                           |    4 
 drivers/md/bcache/sysfs.c                                   |   25 +++-
 drivers/md/bcache/sysfs.h                                   |   13 +-
 drivers/md/dm-thin.c                                        |   13 ++
 drivers/media/i2c/mt9m111.c                                 |    2 
 drivers/media/i2c/ov7740.c                                  |    7 -
 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c             |   40 +++---
 drivers/media/platform/mx2_emmaprp.c                        |    6 -
 drivers/media/platform/rcar-vin/rcar-core.c                 |    8 +
 drivers/media/platform/rockchip/rga/rga.c                   |    6 -
 drivers/media/platform/s5p-g2d/g2d.c                        |    6 -
 drivers/media/platform/s5p-jpeg/jpeg-core.c                 |   57 +++++----
 drivers/media/platform/sh_veu.c                             |    4 
 drivers/mmc/host/omap.c                                     |    2 
 drivers/net/dsa/mv88e6xxx/chip.c                            |    8 +
 drivers/net/dsa/mv88e6xxx/port.c                            |    2 
 drivers/net/ethernet/cisco/enic/enic_main.c                 |    6 -
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c      |   36 +++---
 drivers/net/ethernet/intel/e1000e/netdev.c                  |   21 +--
 drivers/net/ethernet/intel/ice/ice_switch.c                 |   15 ++
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c             |   17 +-
 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c        |    3 
 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c           |   17 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c              |    4 
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c           |    6 -
 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c            |    2 
 drivers/net/phy/phy-c45.c                                   |   10 +
 drivers/net/phy/phy_device.c                                |   13 +-
 drivers/net/veth.c                                          |    3 
 drivers/net/wireless/ath/ath10k/ce.c                        |   26 ++--
 drivers/net/wireless/ath/ath10k/ce.h                        |    2 
 drivers/net/wireless/ath/ath10k/debugfs_sta.c               |    7 -
 drivers/net/wireless/ath/ath10k/htt_rx.c                    |   12 +-
 drivers/net/wireless/ath/ath10k/wmi.h                       |    2 
 drivers/net/wireless/ath/wil6210/cfg80211.c                 |   14 +-
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c   |    2 
 drivers/net/wireless/intel/iwlwifi/mvm/fw.c                 |   20 ++-
 drivers/net/wireless/intel/iwlwifi/pcie/rx.c                |   11 +
 drivers/net/wireless/marvell/mwifiex/cfg80211.c             |   10 +
 drivers/net/wireless/mediatek/mt76/eeprom.c                 |   24 ++--
 drivers/net/wireless/mediatek/mt76/usb.c                    |   11 -
 drivers/net/wireless/mediatek/mt7601u/eeprom.h              |    2 
 drivers/net/wireless/ti/wlcore/main.c                       |    7 -
 drivers/nvme/host/fc.c                                      |    5 
 drivers/nvme/target/core.c                                  |   20 +--
 drivers/pci/controller/pcie-mediatek.c                      |    5 
 drivers/pci/hotplug/pciehp_hpc.c                            |    2 
 drivers/pci/pcie/pme.c                                      |   22 ++-
 drivers/perf/arm_spe_pmu.c                                  |    6 -
 drivers/pinctrl/meson/pinctrl-meson.c                       |   22 ++-
 drivers/pinctrl/meson/pinctrl-meson8b.c                     |    6 -
 drivers/pinctrl/sh-pfc/pfc-r8a77990.c                       |   32 +++--
 drivers/pinctrl/sh-pfc/pfc-r8a77995.c                       |   11 +
 drivers/platform/mellanox/mlxreg-hotplug.c                  |    5 
 drivers/platform/x86/ideapad-laptop.c                       |    2 
 drivers/platform/x86/intel-hid.c                            |    7 -
 drivers/platform/x86/intel_pmc_core.c                       |    3 
 drivers/platform/x86/intel_pmc_core.h                       |    2 
 drivers/regulator/act8865-regulator.c                       |    5 
 drivers/regulator/core.c                                    |    2 
 drivers/regulator/mcp16502.c                                |    1 
 drivers/s390/net/ism_drv.c                                  |   12 +-
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c                           |    2 
 drivers/scsi/fcoe/fcoe.c                                    |    2 
 drivers/scsi/fcoe/fcoe_ctlr.c                               |    7 -
 drivers/scsi/fcoe/fcoe_transport.c                          |    2 
 drivers/scsi/hisi_sas/hisi_sas_main.c                       |   13 ++
 drivers/scsi/megaraid/megaraid_sas_base.c                   |    1 
 drivers/scsi/qedf/qedf_main.c                               |    2 
 drivers/scsi/scsi_scan.c                                    |    6 -
 drivers/soc/qcom/qcom_gsbi.c                                |    7 -
 drivers/soc/tegra/fuse/fuse-tegra.c                         |   12 +-
 drivers/staging/iio/addac/adt7316.c                         |   18 +--
 drivers/staging/media/rockchip/vpu/rk3288_vpu_hw_jpeg_enc.c |    6 -
 drivers/staging/media/rockchip/vpu/rk3399_vpu_hw_jpeg_enc.c |    6 -
 drivers/staging/mt7621-spi/spi-mt7621.c                     |    7 +
 drivers/tty/serial/8250/8250_pxa.c                          |    4 
 drivers/tty/tty_buffer.c                                    |    2 
 drivers/usb/chipidea/core.c                                 |    9 +
 drivers/usb/dwc3/gadget.c                                   |    2 
 drivers/usb/gadget/function/f_fs.c                          |    1 
 drivers/video/backlight/pwm_bl.c                            |    2 
 drivers/video/fbdev/core/fbmem.c                            |    3 
 drivers/xen/gntdev-dmabuf.c                                 |   12 +-
 drivers/xen/gntdev-dmabuf.h                                 |    2 
 drivers/xen/gntdev.c                                        |    2 
 fs/btrfs/extent-tree.c                                      |   71 +++++++-----
 fs/btrfs/qgroup.c                                           |   28 ++--
 fs/buffer.c                                                 |    7 +
 fs/cifs/cifs_dfs_ref.c                                      |    4 
 fs/cifs/connect.c                                           |    5 
 fs/cifs/file.c                                              |   14 ++
 fs/cifs/smb1ops.c                                           |    2 
 fs/cifs/smb2pdu.c                                           |   10 +
 fs/ext4/extents.c                                           |   17 +-
 fs/ext4/indirect.c                                          |   47 +++----
 fs/f2fs/extent_cache.c                                      |    2 
 fs/f2fs/f2fs.h                                              |    1 
 fs/f2fs/inline.c                                            |    8 +
 fs/f2fs/super.c                                             |   17 +-
 fs/f2fs/sysfs.c                                             |   12 +-
 fs/f2fs/trace.c                                             |   20 ++-
 fs/f2fs/xattr.c                                             |   13 +-
 fs/file.c                                                   |    1 
 fs/jbd2/commit.c                                            |    6 -
 fs/jbd2/journal.c                                           |   52 ++++----
 fs/ocfs2/cluster/nodemanager.c                              |   14 +-
 fs/read_write.c                                             |    6 +
 include/linux/atalk.h                                       |   18 ++-
 include/linux/cgroup-defs.h                                 |    2 
 include/linux/cgroup.h                                      |    2 
 include/linux/clk-provider.h                                |    3 
 include/linux/efi.h                                         |   26 ++--
 include/linux/f2fs_fs.h                                     |   13 +-
 include/linux/filter.h                                      |    4 
 include/linux/i2c.h                                         |    1 
 include/linux/irqdesc.h                                     |    1 
 include/linux/kasan-checks.h                                |    2 
 include/linux/perf_event.h                                  |    2 
 include/linux/relay.h                                       |    2 
 include/linux/ring_buffer.h                                 |    2 
 include/linux/sched.h                                       |    4 
 include/linux/sched/topology.h                              |    8 -
 include/net/netfilter/br_netfilter.h                        |    1 
 include/scsi/libfcoe.h                                      |    4 
 kernel/audit.h                                              |    4 
 kernel/audit_tree.c                                         |   19 +--
 kernel/auditsc.c                                            |   12 +-
 kernel/cgroup/cgroup.c                                      |   15 +-
 kernel/cgroup/pids.c                                        |    4 
 kernel/cgroup/rstat.c                                       |   10 +
 kernel/cpu.c                                                |    9 +
 kernel/events/ring_buffer.c                                 |    2 
 kernel/exit.c                                               |    1 
 kernel/irq/chip.c                                           |   12 +-
 kernel/irq/internals.h                                      |    8 +
 kernel/irq/irqdesc.c                                        |    7 +
 kernel/rcu/update.c                                         |    2 
 kernel/resource.c                                           |    4 
 kernel/sched/core.c                                         |    9 -
 kernel/sched/debug.c                                        |    4 
 kernel/sched/sched.h                                        |    6 -
 kernel/sched/topology.c                                     |    2 
 kernel/sysctl.c                                             |    3 
 kernel/trace/ring_buffer.c                                  |    5 
 kernel/trace/trace.c                                        |    6 -
 kernel/trace/trace_kdb.c                                    |    6 -
 lib/bsearch.c                                               |    2 
 lib/raid6/Makefile                                          |    2 
 mm/cma.c                                                    |    4 
 mm/kasan/common.c                                           |    2 
 mm/memcontrol.c                                             |   19 ++-
 mm/mempolicy.c                                              |    2 
 mm/oom_kill.c                                               |    3 
 mm/page_alloc.c                                             |    2 
 mm/page_ext.c                                               |    1 
 mm/page_poison.c                                            |    4 
 mm/slab.c                                                   |   17 +-
 mm/sparse.c                                                 |    2 
 mm/swapfile.c                                               |   51 ++++----
 mm/vmalloc.c                                                |    6 -
 net/bridge/br_netfilter_hooks.c                             |    5 
 net/netfilter/nf_conntrack_core.c                           |   14 +-
 net/netfilter/nf_conntrack_proto_tcp.c                      |   50 ++++++--
 net/netfilter/nf_tables_core.c                              |   14 +-
 net/netfilter/xt_physdev.c                                  |    9 +
 net/xdp/xsk.c                                               |    5 
 security/apparmor/policy_unpack.c                           |    1 
 security/selinux/hooks.c                                    |    9 +
 sound/core/pcm_native.c                                     |    8 +
 sound/firewire/dice/dice.c                                  |   12 +-
 sound/soc/fsl/fsl-asoc-card.c                               |    1 
 sound/soc/fsl/imx-sgtl5000.c                                |    1 
 sound/soc/generic/simple-card-utils.c                       |   14 +-
 sound/soc/qcom/common.c                                     |   10 +
 tools/build/Makefile.feature                                |    2 
 tools/build/feature/test-all.c                              |   10 -
 tools/build/feature/test-reallocarray.c                     |    2 
 tools/lib/bpf/Makefile                                      |    3 
 tools/lib/lockdep/run_tests.sh                              |    6 -
 tools/lib/traceevent/event-parse.c                          |    2 
 tools/perf/Makefile.config                                  |    5 
 tools/perf/Makefile.perf                                    |    2 
 tools/perf/builtin-c2c.c                                    |    8 +
 tools/perf/builtin-script.c                                 |   10 +
 tools/perf/builtin-trace.c                                  |    6 -
 tools/perf/tests/evsel-tp-sched.c                           |    6 -
 tools/perf/trace/beauty/msg_flags.c                         |    2 
 tools/perf/trace/beauty/waitid_options.c                    |    2 
 tools/perf/util/annotate.c                                  |    4 
 tools/perf/util/s390-cpumsf.c                               |    5 
 tools/perf/util/scripting-engines/trace-event-python.c      |   15 +-
 tools/perf/util/sort.c                                      |   10 +
 tools/perf/util/srcline.c                                   |    2 
 tools/testing/selftests/bpf/Makefile                        |    3 
 tools/testing/selftests/bpf/test_map_in_map.c               |    4 
 tools/testing/selftests/bpf/test_maps.c                     |   27 ++--
 tools/testing/selftests/bpf/test_verifier.c                 |    9 +
 tools/testing/selftests/ir/ir_loopback.c                    |    4 
 tools/testing/selftests/seccomp/seccomp_bpf.c               |    6 +
 300 files changed, 1765 insertions(+), 925 deletions(-)

Aaro Koskinen (1):
mmc: omap: fix the maximum timeout setting

Akinobu Mita (2):
media: ov7740: fix runtime pm initialization
media: mt9m111: set initial frame size other than 0x0

Alagu Sankar (1):
ath10k: don't report unset rssi values to mac80211

Alexei Avshalom Lazar (1):
wil6210: check null pointer in _wil_cfg80211_merge_extra_ies

Alexey Kardashevskiy (1):
powerpc/powernv/ioda: Fix locked_vm counting for memory used by IOMMU tables

Alexey Khoroshilov (1):
soc: qcom: gsbi: Fix error handling in gsbi_probe()

Anders Roxell (2):
efi: Fix build error due to enum collision between efi.h and ima.h
dmaengine: imx-dma: fix warning comparison of distinct pointer types

Andi Kleen (1):
perf script: Handle missing fields with -F +..

Andrea Parri (1):
sched/core: Use READ_ONCE()/WRITE_ONCE() in move_queued_task()/task_rq_lock()

Andrea Righi (1):
kprobes: Prohibit probing on bsearch()

Andrew Lunn (1):
net: dsa: mv88e6xxx: Add lockdep classes to fix false positive splat

Aneesh Kumar K.V (1):
powerpc/hugetlb: Handle mmap_min_addr correctly in get_unmapped_area callback

Ard Biesheuvel (2):
efi/memattr: Don't bail on zero VA if it equals the region's PA efi/arm/arm64: Allow SetVirtualAddressMap() to be omitted

Arnaldo Carvalho de Melo (7):
perf beauty msg_flags: Add missing %s lost when adding prefix suppression logic tools build: Add -lrt to FEATURE_CHECK_LDFLAGS-libaio
tools build: Add test-reallocarray.c to test-all.c to fix the build perf beauty waitid options: Fix up prefix showing logic
perf trace: Check if the 'fd' is negative when mapping it to pathname perf coresight: Do not test for libopencsd by default
perf trace: Fixup etcsnoop example

Arnd Bergmann (3):
enic: fix build warning without CONFIG_CPUMASK_OFFSTACK
kasan: fix kasan_check_read/write definitions
appletalk: Fix compile regression

Aurelien Aptel (1):
CIFS: fix POSIX lock leak and invalid ptr deref

Aurelien Jarno (1):

      vfs: fix preadv64v2 and pwritev64v2 compat syscalls with offset == -1

Axel Lin (2):
regulator: mcp16502: Include linux/gpio/consumer.h to fix build error
regulator: act8865: Fix act8600_sudcdc_voltage_ranges setting

Bart Van Assche (1):
lockdep/lib/tests: Fix run_tests.sh

Bas Nieuwenhuizen (1):
drm/sched: Fix entities with 0 rqs.

Ben Dooks (1):
dmaengine: tegra: avoid overflow of byte tracking

Benjamin Block (1):
scsi: core: replace GFP_ATOMIC with GFP_KERNEL in scsi_scan.c

Björn Töpel (1):
xsk: fix to reject invalid flags in xsk_bind

Breno Leitao (2):
bpf: test_maps: fix possible out of bound access warning powerpc/ptrace: Mitigate potential Spectre v1

Brian Norris (1):
mwifiex: don't advertise IBSS features without FW support

Buland Singh (1):
hpet: Fix missing '=' character in the __setup() code of hpet_mmap_enable

Carlos Maiolino (1):
fs: fix guard_bio_eod to check for real EOD errors

Chao Yu (4):
f2fs: fix to adapt small inline xattr space in __find_inline_xattr()
f2fs: fix to avoid deadlock in f2fs_read_inline_dir()
f2fs: fix to check inline_xattr_size boundary correctly
f2fs: fix to initialize variable to avoid UBSAN/smatch warning

Chen-Yu Tsai (1):
backlight: pwm_bl: Use gpiod_get_value_cansleep() to get initial state

Chieh-Min Wang (1):

      netfilter: conntrack: fix cloned unconfirmed skb->_nfct race in __nf_conntrack_confirm

Chris Wilson (1):
drm: Reorder set_property_atomic to avoid returning with an active ww_ctx

Christian Brauner (1):
sysctl: handle overflow for file-max

Coly Li (5):
bcache: fix input overflow to cache set sysfs file io_error_halflife
bcache: fix input overflow to sequential_cutoff
bcache: fix potential div-zero error of writeback_rate_i_term_inverse
bcache: improve sysfs_strtoul_clamp()
bcache: fix potential div-zero error of writeback_rate_p_term_inverse

Daniel Jordan (1):
mm, swap: bounds check swap_info array accesses to avoid NULL derefs

Daniel Vetter (1):
drm/nouveau: Stop using drm_crtc_force_disable

Dave Hansen (1):
mm/resource: Return real error codes from walk failures

David Tolnay (1):
hwrng: virtio - Avoid repeated init of completion

Dongli Zhang (1):
loop: set GENHD_FL_NO_PART_SCAN after blkdev_reread_part()

Douglas Anderson (1):
tracing: kdb: Fix ftdump to not sleep

Eric Biggers (1):
crypto: cavium/zip - fix collision with generic cra_driver_name

Eric Whitney (1):
ext4: fix bigalloc cluster freeing when hole punching under load

Erwan Velu (1):
cpufreq: acpi-cpufreq: Report if CPU doesn't support boost technologies

Ezequiel Garcia (7):
media: sh_veu: Correct return type for mem2mem buffer helpers
media: s5p-jpeg: Correct return type for mem2mem buffer helpers
media: rockchip/rga: Correct return type for mem2mem buffer helpers
media: s5p-g2d: Correct return type for mem2mem buffer helpers
media: mx2_emmaprp: Correct return type for mem2mem buffer helpers
media: mtk-jpeg: Correct return type for mem2mem buffer helpers
media: rockchip/vpu: Correct return type for mem2mem buffer helpers

Florian Fainelli (3):
veth: Fix -Wformat-truncation
e1000e: Fix -Wformat-truncation warnings
mlxsw: spectrum: Avoid -Wformat-truncation warnings

Florian Westphal (2):
netfilter: conntrack: tcp: only close if RST matches exact sequence
netfilter: physdev: relax br_netfilter dependency

George Rimar (1):
x86/build: Specify elf_i386 linker emulation explicitly for i386 objects

Greg Kroah-Hartman (1):

      Linux 5.0.7

Guenter Roeck (1):
cdrom: Fix race condition in cdrom_sysctl_register

Hans de Goede (5):
i2c: designware: Do not allow i2c_dw_xfer() calls while suspended ACPI / video: Refactor and fix dmi_is_desktop()
brcmfmac: Use firmware_request_nowarn for the clm_blob
Input: soc_button_array - fix mapping of the 5th GPIO in a PNP0C40 device ACPI / video: Extend chassis-type detection with a "Lunch Box" check

He Kuang (1):
perf report: Don't shadow inlined symbol with different addr range

Heiner Kallweit (1):
net: phy: consider latched link-down status in polling mode

Hidetoshi Seto (1):
sched/debug: Initialize sd_sysctl_cpus if !CONFIG_CPUMASK_OFFSTACK

Hong Liu (1):
HID: intel-ish-hid: avoid binding wrong ishtp_cl_device

Honghui Zhang (1):
PCI: mediatek: Fix memory mapped IO range size computation

Håkon Bugge (1):
IB/mlx4: Increase the timeout for CM cache

Jacob Keller (1):
ice: fix ice_remove_rule_internal vsi_list handling

James Smart (1):
nvme-fc: fix numa_node when dev is null

Jason Cai (Xiang Feng) (1):
dm thin: add sanity checks to thin-pool and external snapshot creation

Jason Yan (1):
scsi: megaraid_sas: return error when create DMA pool failed

Jeremy Fertic (1):
staging: iio: adt7316: fix dac_bits assignment

Jerome Brunet (1):
clk: meson: clean-up clock registration

Jia Guo (1):
ocfs2: fix a panic problem caused by o2cb_ctl

Jim Broadus (1):
i2c: Allow recovery of the initial IRQ by an I2C client device.

Jiri Olsa (1):
perf c2c: Fix c2c report for empty numa node

Johannes Berg (1):
iwlwifi: mvm: fix RFH config command with >=10 CPUs

John Garry (1):
scsi: hisi_sas: Set PHY linkrate when disconnected

John Johansen (1):
apparmor: fix double free when unpack of secmark rules fails

John Stultz (1):
usb: f_fs: Avoid crash due to out-of-scope stack ptr access

Josef Bacik (2):
btrfs: save drop_progress if we drop refs at all
btrfs: don't enospc all tickets on flush failure

Julia Lawall (2):
crypto: crypto4xx - add missing of_node_put after of_device_is_available
drm: rcar-du: add missing of_node_put

Jérôme de Bretagne (1):
platform/x86: intel-hid: Missing power button release on some Dell models

Kai-Heng Feng (1):
e1000e: Exclude device from suspend direct complete optimization

Kairui Song (2):
x86/hyperv: Fix kernel panic when kexec on HyperV x86/kexec: Fill in acpi_rsdp_addr from the first kernel

Katsuhiro Suzuki (2):
clk: fractional-divider: check parent rate only if flag is set
clk: rockchip: fix frac settings of GPLL clock for rk3328

Konstantin Khlebnikov (1):
e1000e: fix cyclic resets at link up with active tx

Kuninori Morimoto (1):
ASoC: simple-card-utils: check "reg" property on asoc_simple_card_get_dai_id()

Li RongQing (1):

      netfilter: nf_tables: check the result of dereferencing base_chain->stats

Linus Torvalds (1):
iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver

Lorenzo Bianconi (1):
mt76: usb: do not run mt76u_queues_deinit twice

Louis Taylor (1):
cifs: use correct format characters

Lu Baolu (1):
iommu/vt-d: Disable ATS support on untrusted devices

Lubomir Rintel (1):
serial: 8250_pxa: honor the port number from devicetree

Luc Van Oostenryck (2):
include/linux/relay.h: fix percpu annotation in struct rchan sched/topology: Fix percpu data types in struct sd_data & struct s_data

Manfred Schlaegl (2):
fbdev: fbmem: fix memory access if logo is bigger than the screen
tty: increase the default flip buffer limit to 2*640K

Marek Behún (1):
net: dsa: mv88e6xxx: Default CMODE to 1000BaseX only on 6390X

Marek Vasut (2):
gpio: of: Apply regulator-gpio quirk only to enable-gpios
ARM: shmobile: Fix R-Car Gen2 regulator quirk

Martin Blumenstingl (2):
ARM: dts: meson8b: fix the Ethernet data line signals in eth_rgmii_pins
pinctrl: meson: meson8b: add the eth_rxd2 and eth_rxd3 pins

Masahiro Yamada (5):
h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux-
kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing
kbuild: make -r/-R effective in top Makefile for old Make versions
kbuild: add workaround for Debian make-kpkg
kbuild: skip sub-make for in-tree build with GNU Make 4.x

Masami Hiramatsu (1):
kprobes: Prohibit probing on RCU debug routine

Mathias Fröhlich (1):
drm/amd/display: Fix reference counting for struct dc_sink.

Mathieu Malaterre (1):

      ARM: dts: lpc32xx: Remove leading 0x and 0s from bindings notation

Mathieu Poirier (1):
perf/aux: Make perf_event accessible to setup_aux()

Michael Ellerman (1):
powerpc/44x: Force PCI on for CURRITUCK

Michal Kazior (1):
leds: lp55xx: fix null deref on firmware load failure

Mika Westerberg (1):

      PCI: pciehp: Assign ctrl->slot_ctrl before writing it to hardware

Mike Rapoport (1):
docs/core-api/mm: fix user memory accessors formatting

Namjae Jeon (1):
cifs: Accept validate negotiate if server return NT_STATUS_NOT_SUPPORTED

Nathan Chancellor (4):
net: stmmac: Avoid sometimes uninitialized Clang warnings powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc
ARM: 8833/1: Ensure that NEON code always compiles with Clang
net: stmmac: Avoid one more sometimes uninitialized Clang warning

Nathan Fontenot (1):
powerpc/pseries: Perform full re-add of CPU for topology update post-migration

Nicholas Kazlauskas (4):
drm/amd/display: Clear stream->mode_changed after commit drm/amd/display: Don't re-program planes for DPMS changes drm/amd/display: Disconnect mpcc when changing tg drm/amd/display: Enable vblank interrupt during CRC capture

Nicolai Stange (1):
powerpc/64s: Clear on-stack exception marker upon exception return

Nicolas Boichat (1):
iommu/io-pgtable-arm-v7s: Only kmemleak_ignore L2 tables

Niklas Cassel (1):
regulator: core: Take lock before applying system load

Oleg Nesterov (1):

      cgroup/pids: turn cgroup_subsys->free() into cgroup_subsys->release() to fix the accounting

Oleksandr Andrushchenko (1):
xen/gntdev: Do not destroy context while dma-bufs are in use

Ondrej Mosnacek (1):
selinux: do not override context on context mounts

Paolo Valente (2):
block, bfq: fix in-service-queue check for queue merging block, bfq: fix queue removal from weights tree

Paul Kocialkowski (2):
usb: chipidea: Grab the (legacy) USB PHY by phandle first
drm: Auto-set allow_fb_modifiers when given modifiers at plane init

Pawe? Chmiel (1):
media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration

Peng Fan (1):
mm/cma.c: cma_declare_contiguous: correct err handling

Peter Wu (1):
drm/fb-helper: fix leaks in error path of drm_fb_helper_fbdev_setup

Qian Cai (4):
mm/sparse: fix a bad comparison mm/page_ext.c: fix an imbalance with kmemleak mm/slab.c: kmemleak no scan alien caches
page_poison: play nicely with KASAN

Qu Wenruo (1):
btrfs: qgroup: Make qgroup async transaction commit more aggressive

Rafael J. Wysocki (1):
PCI/PME: Fix hotplug/sysfs remove deadlock in pcie_pme_remove()

Rafael Ávila de Espíndola (1):
x86/build: Mark per-CPU symbols as absolute explicitly for LLD

Rajneesh Bhardwaj (1):
platform/x86: intel_pmc_core: Fix PCH IP sts reading

Raju Rangoju (1):
iw_cxgb4: fix srqidx leak during connection abort

Rakesh Pillai (1):
ath10k: fix shadow register implementation for WCN3990

Ranjani Sridharan (1):
ALSA: PCM: check if ops are defined before suspending PCM

Richard Guy Briggs (1):
audit: hand taken context to audit_kill_trees for syscall logging

Roger Quadros (1):
usb: dwc3: gadget: Fix OTG events when gadget driver isn't loaded

Ross Lagerwall (1):
efi: cper: Fix possible out-of-bounds access

Russell King (3):
gpio: gpio-omap: fix level interrupt idling
net: marvell: mvpp2: fix stuck in-band SGMII negotiation
ARM: avoid Cortex-A9 livelock on tight dmb loops

Sahitya Tummala (1):
f2fs: do not use mutex lock in atomic context

Sai Prakash Ranjan (1):
coresight: etm4x: Add support to enable ETMv4.2

Sara Sharon (1):
iwlwifi: pcie: fix emergency path

Sebastian Andrzej Siewior (1):
ARM: 8840/1: use a raw_spinlock_t in unwind

Sebastian Ott (1):
s390/ism: ignore some errors during deregistration

Sedat Dilek (1):
scsi: fcoe: make use of fip_mode enum complete

Shayenne Moura (2):
drm/vkms: Bugfix racing hrtimer vblank handle drm/vkms: Bugfix extra vblank frame

Sheng Yong (1):
f2fs: UBSAN: set boolean value iostat_enable correctly

Shiju Jose (1):
net: hns3: fix setting of the hns reset_type for rdma hw errors

Shuah Khan (1):
selftests: ir: fix warning: "%s" directive output may be truncated ’ directive output may be truncated

Shunyong Yang (2):
dmaengine: qcom_hidma: assign channel cookie correctly
dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*

Shuriyc Chu (1):
fs/file.c: initialize init_files.resize_wait

Song Hongyan (1):
HID: intel-ish: ipc: handle PIMR before ish_wakeup also clear PISR busy_clear bit

Stanislav Fomichev (3):
libbpf: force fixdep compilation at the start of the build selftests/bpf: skip verifier tests for unsupported program types selftests/bpf: suppress readelf stderr when probing for BTF support

Stanislaw Gruszka (1):
mt7601u: bump supported EEPROM version

Stefan Agner (1):
ARM: 8845/1: use unified assembler in c files

Stefan Roese (1):
staging: spi: mt7621: Add return code check on device_reset()

Stephen Boyd (1):
drm/msm/dpu: Convert to a chained irq chip

Steve Longerbeam (1):
media: rcar-vin: Allow independent VIN link enablement

Surabhi Vishnoi (1):
ath10k: Fix the wrong updation of BW in tx_stats debugfs entry

Takashi Iwai (1):
ASoC: qcom: Fix of-node refcount unbalance in qcom_snd_parse_of()

Takashi Sakamoto (1):
ALSA: dice: add support for Solid State Logic Duende Classic/Mini

Takeshi Kihara (2):
pinctrl: sh-pfc: r8a77990: Fix MOD_SEL bit numbering
pinctrl: sh-pfc: r8a77995: Fix MOD_SEL bit numbering

Tariq Toukan (1):
net/mlx5e: Fix access to non-existing receive queue

Tejun Heo (1):
cgroup, rstat: Don't flush subtree root unless necessary

Tetsuo Handa (2):
mm,oom: don't kill global init via memory.oom.group
memcg: killed threads should not invoke memcg OOM killer

Theodore Ts'o (1):
jbd2: fix race when writing superblock

Thierry Reding (2):
i2c: of: Try to find an I2C adapter matching the parent
gpio: of: Restrict enable-gpio quirk to regulator-gpio

Thomas Gleixner (1):
genirq: Avoid summation loops for /proc/stat

Thomas Richter (2):
perf test: Fix failure of 'evsel-tp-sched' test on s390 perf report: Add s390 diagnosic sampling descriptor size

Timo Alho (1):
soc/tegra: fuse: Fix illegal free of IO base address

Tonghao Zhang (2):
net/mlx5: Avoid panic when setting vport rate net/mlx5: Avoid panic when setting vport mac, getting vport config

Tony Jones (3):
tools lib traceevent: Fix buffer overflow in arg_eval perf script python: Use PyBytes for attr in trace-event-python perf script python: Add trace_context extension module to sys.modules

Tony Lindgren (1):
clk: ti: clkctrl: Fix clkdm_name regression for TI_CLK_CLKCTRL_COMPAT

Tycho Andersen (1):
selftests: skip seccomp get_metadata test if not real root

Uladzislau Rezki (Sony) (1):
mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!

Vadim Pasternak (1):
platform/mellanox: mlxreg-hotplug: Fix KASAN warning

Valdis Kletnieks (1):
bpf: fix missing prototype warnings

Valentin Schneider (1):
cpu/hotplug: Mute hotplug lockdep during init

Ville Syrjälä (1):
drm/dp/mst: Configure no_stop_bit correctly for remote i2c xfers

Vladimir Murzin (1):
ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of

Vlastimil Babka (1):
mm, mempolicy: fix uninit memory access

Wei Li (1):
perf annotate: Fix getting source line failure

Wen Yang (2):
mt76: fix a leaked reference by adding a missing of_node_put
SoC: imx-sgtl5000: add missing put_device()

Xiang Chen (1):
scsi: hisi_sas: Fix a timeout race of driver internal and SMP IO

Xingyu Chen (1):
pinctrl: meson: fix G12A ao pull registers base address

Yang Fan (1):
platform/x86: ideapad-laptop: Fix no_hw_rfkill_list for Lenovo RESCUER R720-15IKBN

Yao Liu (1):
cifs: Fix NULL pointer dereference of devname

Yonghong Song (1):
tools/bpf: selftests: add map lookup to test_map_in_map bpf prog

Yufen Yu (1):
nvme-loop: init nvmet_ctrl fatal_err_work when allocate

Zumeng Chen (1):
wlcore: Fix memory leak in case wl12xx_fetch_firmware failure

luojiajun (1):
jbd2: fix invalid descriptor block checksum

wen yang (1):
ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe

zhangyi (F) (1):
ext4: cleanup bh release code in ext4_ind_remove_space()

zhengliang (1):
f2fs: fix to data block override node segment by mistake

author maintainer
#1 lore raw
Documentation/arm/kernel_mode_neon.txt +2 -2
index 525452726d31..b9e060c5b61e 100644
@@ -6,7 +6,7 @@ TL;DR summary
 * Use only NEON instructions, or VFP instructions that don't rely on support
   code
 * Isolate your NEON code in a separate compilation unit, and compile it with
-  '-mfpu=neon -mfloat-abi=softfp'
+  '-march=armv7-a -mfpu=neon -mfloat-abi=softfp'
 * Put kernel_neon_begin() and kernel_neon_end() calls around the calls into your
   NEON code
 * Don't sleep in your NEON code, and be aware that it will be executed with
@@ -87,7 +87,7 @@ instructions appearing in unexpected places if no special care is taken.
 Therefore, the recommended and only supported way of using NEON/VFP in the
 kernel is by adhering to the following rules:
 * isolate the NEON code in a separate compilation unit and compile it with
-  '-mfpu=neon -mfloat-abi=softfp';
+  '-march=armv7-a -mfpu=neon -mfloat-abi=softfp';
 * issue the calls to kernel_neon_begin(), kernel_neon_end() as well as the calls
   into the unit containing the NEON code from a compilation unit which is *not*
   built with the GCC flag '-mfpu=neon' set.
Makefile +45 -24

125 lines not on this page · raw message

arch/arm/boot/dts/lpc32xx.dtsi +9 -9
index b7303a4e4236..ed0d6fb20122 100644
@@ -230,7 +230,7 @@
 				status = "disabled";
 			};
 
-			i2s1: i2s@2009C000 {
+			i2s1: i2s@2009c000 {
 				compatible = "nxp,lpc3220-i2s";
 				reg = <0x2009C000 0x1000>;
 			};
@@ -273,7 +273,7 @@
 				status = "disabled";
 			};
 
-			i2c1: i2c@400A0000 {
+			i2c1: i2c@400a0000 {
 				compatible = "nxp,pnx-i2c";
 				reg = <0x400A0000 0x100>;
 				interrupt-parent = <&sic1>;
@@ -284,7 +284,7 @@
 				clocks = <&clk LPC32XX_CLK_I2C1>;
 			};
 
-			i2c2: i2c@400A8000 {
+			i2c2: i2c@400a8000 {
 				compatible = "nxp,pnx-i2c";
 				reg = <0x400A8000 0x100>;
 				interrupt-parent = <&sic1>;
@@ -295,7 +295,7 @@
 				clocks = <&clk LPC32XX_CLK_I2C2>;
 			};
 
-			mpwm: mpwm@400E8000 {
+			mpwm: mpwm@400e8000 {
 				compatible = "nxp,lpc3220-motor-pwm";
 				reg = <0x400E8000 0x78>;
 				status = "disabled";
@@ -394,7 +394,7 @@
 				#gpio-cells = <3>; /* bank, pin, flags */
 			};
 
-			timer4: timer@4002C000 {
+			timer4: timer@4002c000 {
 				compatible = "nxp,lpc3220-timer";
 				reg = <0x4002C000 0x1000>;
 				interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
@@ -412,7 +412,7 @@
 				status = "disabled";
 			};
 
-			watchdog: watchdog@4003C000 {
+			watchdog: watchdog@4003c000 {
 				compatible = "nxp,pnx4008-wdt";
 				reg = <0x4003C000 0x1000>;
 				clocks = <&clk LPC32XX_CLK_WDOG>;
@@ -451,7 +451,7 @@
 				status = "disabled";
 			};
 
-			timer1: timer@4004C000 {
+			timer1: timer@4004c000 {
 				compatible = "nxp,lpc3220-timer";
 				reg = <0x4004C000 0x1000>;
 				interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
@@ -475,7 +475,7 @@
 				status = "disabled";
 			};
 
-			pwm1: pwm@4005C000 {
+			pwm1: pwm@4005c000 {
 				compatible = "nxp,lpc3220-pwm";
 				reg = <0x4005C000 0x4>;
 				clocks = <&clk LPC32XX_CLK_PWM1>;
@@ -484,7 +484,7 @@
 				status = "disabled";
 			};
 
-			pwm2: pwm@4005C004 {
+			pwm2: pwm@4005c004 {
 				compatible = "nxp,lpc3220-pwm";
 				reg = <0x4005C004 0x4>;
 				clocks = <&clk LPC32XX_CLK_PWM2>;
arch/arm/boot/dts/meson8b.dtsi +3 -3
index 22d775460767..dc125769fe85 100644
@@ -270,9 +270,7 @@
 				groups = "eth_tx_clk",
 					 "eth_tx_en",
 					 "eth_txd1_0",
-					 "eth_txd1_1",
 					 "eth_txd0_0",
-					 "eth_txd0_1",
 					 "eth_rx_clk",
 					 "eth_rx_dv",
 					 "eth_rxd1",
@@ -281,7 +279,9 @@
 					 "eth_mdc",
 					 "eth_ref_clk",
 					 "eth_txd2",
-					 "eth_txd3";
+					 "eth_txd3",
+					 "eth_rxd3",
+					 "eth_rxd2";
 				function = "ethernet";
 				bias-disable;
 			};
arch/arm/include/asm/barrier.h +2 -0
index 69772e742a0a..83ae97c049d9 100644
@@ -11,6 +11,8 @@
 #define sev()	__asm__ __volatile__ ("sev" : : : "memory")
 #define wfe()	__asm__ __volatile__ ("wfe" : : : "memory")
 #define wfi()	__asm__ __volatile__ ("wfi" : : : "memory")
+#else
+#define wfe()	do { } while (0)
 #endif
 
 #if __LINUX_ARM_ARCH__ >= 7
arch/arm/include/asm/processor.h +5 -1
index 120f4c9bbfde..57fe73ea0f72 100644
@@ -89,7 +89,11 @@ extern void release_thread(struct task_struct *);
 unsigned long get_wchan(struct task_struct *p);
 
 #if __LINUX_ARM_ARCH__ == 6 || defined(CONFIG_ARM_ERRATA_754327)
-#define cpu_relax()			smp_mb()
+#define cpu_relax()						\
+	do {							\
+		smp_mb();					\
+		__asm__ __volatile__("nop; nop; nop; nop; nop; nop; nop; nop; nop; nop;");	\
+	} while (0)
 #else
 #define cpu_relax()			barrier()
 #endif
arch/arm/include/asm/v7m.h +1 -1
index 187ccf6496ad..2cb00d15831b 100644
@@ -49,7 +49,7 @@
  * (0 -> msp; 1 -> psp). Bits [1:0] are fixed to 0b01.
  */
 #define EXC_RET_STACK_MASK			0x00000004
-#define EXC_RET_THREADMODE_PROCESSSTACK		0xfffffffd
+#define EXC_RET_THREADMODE_PROCESSSTACK		(3 << 2)
 
 /* Cache related definitions */
 
arch/arm/kernel/entry-header.S +2 -1
index 773424843d6e..62db1c9746cb 100644
@@ -127,7 +127,8 @@
          */
 	.macro	v7m_exception_slow_exit ret_r0
 	cpsid	i
-	ldr	lr, =EXC_RET_THREADMODE_PROCESSSTACK
+	ldr	lr, =exc_ret
+	ldr	lr, [lr]
 
 	@ read original r12, sp, lr, pc and xPSR
 	add	r12, sp, #S_IP
arch/arm/kernel/entry-v7m.S +4 -0
index abcf47848525..19d2dcd6530d 100644
@@ -146,3 +146,7 @@ ENTRY(vector_table)
 	.rept	CONFIG_CPU_V7M_NUM_IRQ
 	.long	__irq_entry		@ External Interrupts
 	.endr
+	.align	2
+	.globl	exc_ret
+exc_ret:
+	.space	4
arch/arm/kernel/machine_kexec.c +4 -1
index dd2eb5f76b9f..76300f3813e8 100644
@@ -91,8 +91,11 @@ void machine_crash_nonpanic_core(void *unused)
 
 	set_cpu_online(smp_processor_id(), false);
 	atomic_dec(&waiting_for_crash_ipi);
-	while (1)
+
+	while (1) {
 		cpu_relax();
+		wfe();
+	}
 }
 
 void crash_smp_send_stop(void)
arch/arm/kernel/smp.c +3 -1
index 1d6f5ea522f4..a3ce7c5365fa 100644
@@ -604,8 +604,10 @@ static void ipi_cpu_stop(unsigned int cpu)
 	local_fiq_disable();
 	local_irq_disable();
 
-	while (1)
+	while (1) {
 		cpu_relax();
+		wfe();
+	}
 }
 
 static DEFINE_PER_CPU(struct completion *, cpu_completion);
arch/arm/kernel/unwind.c +7 -7
index 0bee233fef9a..314cfb232a63 100644
@@ -93,7 +93,7 @@ extern const struct unwind_idx __start_unwind_idx[];
 static const struct unwind_idx *__origin_unwind_idx;
 extern const struct unwind_idx __stop_unwind_idx[];
 
-static DEFINE_SPINLOCK(unwind_lock);
+static DEFINE_RAW_SPINLOCK(unwind_lock);
 static LIST_HEAD(unwind_tables);
 
 /* Convert a prel31 symbol to an absolute address */
@@ -201,7 +201,7 @@ static const struct unwind_idx *unwind_find_idx(unsigned long addr)
 		/* module unwind tables */
 		struct unwind_table *table;
 
-		spin_lock_irqsave(&unwind_lock, flags);
+		raw_spin_lock_irqsave(&unwind_lock, flags);
 		list_for_each_entry(table, &unwind_tables, list) {
 			if (addr >= table->begin_addr &&
 			    addr < table->end_addr) {
@@ -213,7 +213,7 @@ static const struct unwind_idx *unwind_find_idx(unsigned long addr)
 				break;
 			}
 		}
-		spin_unlock_irqrestore(&unwind_lock, flags);
+		raw_spin_unlock_irqrestore(&unwind_lock, flags);
 	}
 
 	pr_debug("%s: idx = %p\n", __func__, idx);
@@ -529,9 +529,9 @@ struct unwind_table *unwind_table_add(unsigned long start, unsigned long size,
 	tab->begin_addr = text_addr;
 	tab->end_addr = text_addr + text_size;
 
-	spin_lock_irqsave(&unwind_lock, flags);
+	raw_spin_lock_irqsave(&unwind_lock, flags);
 	list_add_tail(&tab->list, &unwind_tables);
-	spin_unlock_irqrestore(&unwind_lock, flags);
+	raw_spin_unlock_irqrestore(&unwind_lock, flags);
 
 	return tab;
 }
@@ -543,9 +543,9 @@ void unwind_table_del(struct unwind_table *tab)
 	if (!tab)
 		return;
 
-	spin_lock_irqsave(&unwind_lock, flags);
+	raw_spin_lock_irqsave(&unwind_lock, flags);
 	list_del(&tab->list);
-	spin_unlock_irqrestore(&unwind_lock, flags);
+	raw_spin_unlock_irqrestore(&unwind_lock, flags);
 
 	kfree(tab);
 }
arch/arm/lib/Makefile +1 -1
index ad25fd1872c7..0bff0176db2c 100644
@@ -39,7 +39,7 @@ $(obj)/csumpartialcopy.o:	$(obj)/csumpartialcopygeneric.S
 $(obj)/csumpartialcopyuser.o:	$(obj)/csumpartialcopygeneric.S
 
 ifeq ($(CONFIG_KERNEL_MODE_NEON),y)
-  NEON_FLAGS			:= -mfloat-abi=softfp -mfpu=neon
+  NEON_FLAGS			:= -march=armv7-a -mfloat-abi=softfp -mfpu=neon
   CFLAGS_xor-neon.o		+= $(NEON_FLAGS)
   obj-$(CONFIG_XOR_BLOCKS)	+= xor-neon.o
 endif
arch/arm/lib/xor-neon.c +1 -1
index 2c40aeab3eaa..c691b901092f 100644
@@ -14,7 +14,7 @@
 MODULE_LICENSE("GPL");
 
 #ifndef __ARM_NEON__
-#error You should compile this file with '-mfloat-abi=softfp -mfpu=neon'
+#error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon'
 #endif
 
 /*
arch/arm/mach-omap2/prm_common.c +3 -1
index 058a37e6d11c..fd6e0671f957 100644
@@ -523,8 +523,10 @@ void omap_prm_reset_system(void)
 
 	prm_ll_data->reset_system();
 
-	while (1)
+	while (1) {
 		cpu_relax();
+		wfe();
+	}
 }
 
 /**
arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c +5 -0
index 8e50daa99151..dc526ef2e9b3 100644
@@ -40,6 +40,7 @@
 struct regulator_quirk {
 	struct list_head		list;
 	const struct of_device_id	*id;
+	struct device_node		*np;
 	struct of_phandle_args		irq_args;
 	struct i2c_msg			i2c_msg;
 	bool				shared;	/* IRQ line is shared */
@@ -101,6 +102,9 @@ static int regulator_quirk_notify(struct notifier_block *nb,
 		if (!pos->shared)
 			continue;
 
+		if (pos->np->parent != client->dev.parent->of_node)
+			continue;
+
 		dev_info(&client->dev, "clearing %s@0x%02x interrupts\n",
 			 pos->id->compatible, pos->i2c_msg.addr);
 
@@ -165,6 +169,7 @@ static int __init rcar_gen2_regulator_quirk(void)
 		memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg));
 
 		quirk->id = id;
+		quirk->np = np;
 		quirk->i2c_msg.addr = addr;
 
 		ret = of_irq_parse_one(np, 0, argsa);
arch/arm/mm/copypage-v4mc.c +2 -1
index b03202cddddb..f74cdce6d4da 100644
@@ -45,6 +45,7 @@ static void mc_copy_user_page(void *from, void *to)
 	int tmp;
 
 	asm volatile ("\
+	.syntax unified\n\
 	ldmia	%0!, {r2, r3, ip, lr}		@ 4\n\
 1:	mcr	p15, 0, %1, c7, c6, 1		@ 1   invalidate D line\n\
 	stmia	%1!, {r2, r3, ip, lr}		@ 4\n\
@@ -56,7 +57,7 @@ static void mc_copy_user_page(void *from, void *to)
 	ldmia	%0!, {r2, r3, ip, lr}		@ 4\n\
 	subs	%2, %2, #1			@ 1\n\
 	stmia	%1!, {r2, r3, ip, lr}		@ 4\n\
-	ldmneia	%0!, {r2, r3, ip, lr}		@ 4\n\
+	ldmiane	%0!, {r2, r3, ip, lr}		@ 4\n\
 	bne	1b				@ "
 	: "+&r" (from), "+&r" (to), "=&r" (tmp)
 	: "2" (PAGE_SIZE / 64)
arch/arm/mm/copypage-v4wb.c +2 -1
index cd3e165afeed..6d336740aae4 100644
@@ -27,6 +27,7 @@ static void v4wb_copy_user_page(void *kto, const void *kfrom)
 	int tmp;
 
 	asm volatile ("\
+	.syntax unified\n\
 	ldmia	%1!, {r3, r4, ip, lr}		@ 4\n\
 1:	mcr	p15, 0, %0, c7, c6, 1		@ 1   invalidate D line\n\
 	stmia	%0!, {r3, r4, ip, lr}		@ 4\n\
@@ -38,7 +39,7 @@ static void v4wb_copy_user_page(void *kto, const void *kfrom)
 	ldmia	%1!, {r3, r4, ip, lr}		@ 4\n\
 	subs	%2, %2, #1			@ 1\n\
 	stmia	%0!, {r3, r4, ip, lr}		@ 4\n\
-	ldmneia	%1!, {r3, r4, ip, lr}		@ 4\n\
+	ldmiane	%1!, {r3, r4, ip, lr}		@ 4\n\
 	bne	1b				@ 1\n\
 	mcr	p15, 0, %1, c7, c10, 4		@ 1   drain WB"
 	: "+&r" (kto), "+&r" (kfrom), "=&r" (tmp)
arch/arm/mm/copypage-v4wt.c +2 -1
index 8614572e1296..3851bb396442 100644
@@ -25,6 +25,7 @@ static void v4wt_copy_user_page(void *kto, const void *kfrom)
 	int tmp;
 
 	asm volatile ("\
+	.syntax unified\n\
 	ldmia	%1!, {r3, r4, ip, lr}		@ 4\n\
 1:	stmia	%0!, {r3, r4, ip, lr}		@ 4\n\
 	ldmia	%1!, {r3, r4, ip, lr}		@ 4+1\n\
@@ -34,7 +35,7 @@ static void v4wt_copy_user_page(void *kto, const void *kfrom)
 	ldmia	%1!, {r3, r4, ip, lr}		@ 4\n\
 	subs	%2, %2, #1			@ 1\n\
 	stmia	%0!, {r3, r4, ip, lr}		@ 4\n\
-	ldmneia	%1!, {r3, r4, ip, lr}		@ 4\n\
+	ldmiane	%1!, {r3, r4, ip, lr}		@ 4\n\
 	bne	1b				@ 1\n\
 	mcr	p15, 0, %2, c7, c7, 0		@ flush ID cache"
 	: "+&r" (kto), "+&r" (kfrom), "=&r" (tmp)
arch/arm/mm/proc-v7m.S +3 -0
index 47a5acc64433..92e84181933a 100644
@@ -139,6 +139,9 @@ __v7m_setup_cont:
 	cpsie	i
 	svc	#0
 1:	cpsid	i
+	ldr	r0, =exc_ret
+	orr	lr, lr, #EXC_RET_THREADMODE_PROCESSSTACK
+	str	lr, [r0]
 	ldmia	sp, {r0-r3, r12}
 	str	r5, [r12, #11 * 4]	@ restore the original SVC vector entry
 	mov	lr, r6			@ restore LR
arch/h8300/Makefile +1 -1
index f801f3708a89..ba0f26cfad61 100644
@@ -27,7 +27,7 @@ KBUILD_LDFLAGS += $(ldflags-y)
 CHECKFLAGS += -msize-long
 
 ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := h8300-unknown-linux-
+CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
 endif
 
 core-y	+= arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
arch/powerpc/include/asm/topology.h +2 -0
index a4a718dbfec6..f85e2b01c3df 100644
@@ -132,6 +132,8 @@ static inline void shared_proc_topology_init(void) {}
 #define topology_sibling_cpumask(cpu)	(per_cpu(cpu_sibling_map, cpu))
 #define topology_core_cpumask(cpu)	(per_cpu(cpu_core_map, cpu))
 #define topology_core_id(cpu)		(cpu_to_core_id(cpu))
+
+int dlpar_cpu_readd(int cpu);
 #endif
 #endif
 
arch/powerpc/kernel/entry_64.S +7 -0
index 435927f549c4..a2c168b395d2 100644
@@ -1002,6 +1002,13 @@ END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR)
 	ld	r2,_NIP(r1)
 	mtspr	SPRN_SRR0,r2
 
+	/*
+	 * Leaving a stale exception_marker on the stack can confuse
+	 * the reliable stack unwinder later on. Clear it.
+	 */
+	li	r2,0
+	std	r2,STACK_FRAME_OVERHEAD-16(r1)
+
 	ld	r0,GPR0(r1)
 	ld	r2,GPR2(r1)
 	ld	r3,GPR3(r1)
arch/powerpc/kernel/ptrace.c +7 -1
index 53151698bfe0..d9ac7d94656e 100644
@@ -33,6 +33,7 @@
 #include <linux/hw_breakpoint.h>
 #include <linux/perf_event.h>
 #include <linux/context_tracking.h>
+#include <linux/nospec.h>
 
 #include <linux/uaccess.h>
 #include <linux/pkeys.h>
@@ -274,6 +275,8 @@ static int set_user_trap(struct task_struct *task, unsigned long trap)
  */
 int ptrace_get_reg(struct task_struct *task, int regno, unsigned long *data)
 {
+	unsigned int regs_max;
+
 	if ((task->thread.regs == NULL) || !data)
 		return -EIO;
 
@@ -297,7 +300,9 @@ int ptrace_get_reg(struct task_struct *task, int regno, unsigned long *data)
 	}
 #endif
 
-	if (regno < (sizeof(struct user_pt_regs) / sizeof(unsigned long))) {
+	regs_max = sizeof(struct user_pt_regs) / sizeof(unsigned long);
+	if (regno < regs_max) {
+		regno = array_index_nospec(regno, regs_max);
 		*data = ((unsigned long *)task->thread.regs)[regno];
 		return 0;
 	}
@@ -321,6 +326,7 @@ int ptrace_put_reg(struct task_struct *task, int regno, unsigned long data)
 		return set_user_dscr(task, data);
 
 	if (regno <= PT_MAX_PUT_REG) {
+		regno = array_index_nospec(regno, PT_MAX_PUT_REG + 1);
 		((unsigned long *)task->thread.regs)[regno] = data;
 		return 0;
 	}
arch/powerpc/mm/hugetlbpage-radix.c +3 -2
index 2486bee0f93e..97c7a39ebc00 100644
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <linux/mm.h>
 #include <linux/hugetlb.h>
+#include <linux/security.h>
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
 #include <asm/cacheflush.h>
@@ -73,7 +74,7 @@ radix__hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 	if (addr) {
 		addr = ALIGN(addr, huge_page_size(h));
 		vma = find_vma(mm, addr);
-		if (high_limit - len >= addr &&
+		if (high_limit - len >= addr && addr >= mmap_min_addr &&
 		    (!vma || addr + len <= vm_start_gap(vma)))
 			return addr;
 	}
@@ -83,7 +84,7 @@ radix__hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
 	 */
 	info.flags = VM_UNMAPPED_AREA_TOPDOWN;
 	info.length = len;
-	info.low_limit = PAGE_SIZE;
+	info.low_limit = max(PAGE_SIZE, mmap_min_addr);
 	info.high_limit = mm->mmap_base + (high_limit - DEFAULT_MAP_WINDOW);
 	info.align_mask = PAGE_MASK & ~huge_page_mask(h);
 	info.align_offset = 0;
arch/powerpc/mm/numa.c +1 -8
index 87f0dd004295..b5d1c45c1475 100644
@@ -1460,13 +1460,6 @@ static void reset_topology_timer(void)
 
 #ifdef CONFIG_SMP
 
-static void stage_topology_update(int core_id)
-{
-	cpumask_or(&cpu_associativity_changes_mask,
-		&cpu_associativity_changes_mask, cpu_sibling_mask(core_id));
-	reset_topology_timer();
-}
-
 static int dt_update_callback(struct notifier_block *nb,
 				unsigned long action, void *data)
 {
@@ -1479,7 +1472,7 @@ static int dt_update_callback(struct notifier_block *nb,
 		    !of_prop_cmp(update->prop->name, "ibm,associativity")) {
 			u32 core_id;
 			of_property_read_u32(update->dn, "reg", &core_id);
-			stage_topology_update(core_id);
+			rc = dlpar_cpu_readd(core_id);
 			rc = NOTIFY_OK;
 		}
 		break;
arch/powerpc/platforms/44x/Kconfig +1 -0
index 4a9a72d01c3c..35be81fd2dc2 100644
@@ -180,6 +180,7 @@ config CURRITUCK
 	depends on PPC_47x
 	select SWIOTLB
 	select 476FPE
+	select FORCE_PCI
 	select PPC4xx_PCI_EXPRESS
 	help
 	  This option enables support for the IBM Currituck (476fpe) evaluation board
arch/powerpc/platforms/powernv/pci-ioda-tce.c +0 -1
index 697449afb3f7..e28f03e1eb5e 100644
@@ -313,7 +313,6 @@ long pnv_pci_ioda2_table_alloc_pages(int nid, __u64 bus_offset,
 			page_shift);
 	tbl->it_level_size = 1ULL << (level_shift - 3);
 	tbl->it_indirect_levels = levels - 1;
-	tbl->it_allocated_size = total_allocated;
 	tbl->it_userspace = uas;
 	tbl->it_nid = nid;
 
arch/powerpc/platforms/powernv/pci-ioda.c +6 -1
index 145373f0e5dc..2d62c58f9a4c 100644
@@ -2594,8 +2594,13 @@ static long pnv_pci_ioda2_create_table_userspace(
 		int num, __u32 page_shift, __u64 window_size, __u32 levels,
 		struct iommu_table **ptbl)
 {
-	return pnv_pci_ioda2_create_table(table_group,
+	long ret = pnv_pci_ioda2_create_table(table_group,
 			num, page_shift, window_size, levels, true, ptbl);
+
+	if (!ret)
+		(*ptbl)->it_allocated_size = pnv_pci_ioda2_get_table_size(
+				page_shift, window_size, levels);
+	return ret;
 }
 
 static void pnv_ioda2_take_ownership(struct iommu_table_group *table_group)
arch/powerpc/platforms/pseries/hotplug-cpu.c +19 -0
index 2f8e62163602..97feb6e79f1a 100644
@@ -802,6 +802,25 @@ static int dlpar_cpu_add_by_count(u32 cpus_to_add)
 	return rc;
 }
 
+int dlpar_cpu_readd(int cpu)
+{
+	struct device_node *dn;
+	struct device *dev;
+	u32 drc_index;
+	int rc;
+
+	dev = get_cpu_device(cpu);
+	dn = dev->of_node;
+
+	rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index);
+
+	rc = dlpar_cpu_remove_by_index(drc_index);
+	if (!rc)
+		rc = dlpar_cpu_add(drc_index);
+
+	return rc;
+}
+
 int dlpar_cpu(struct pseries_hp_errorlog *hp_elog)
 {
 	u32 count, drc_index;
arch/powerpc/xmon/ppc-dis.c +1 -1
index 9deea5ee13f6..27f1e6415036 100644
@@ -158,7 +158,7 @@ int print_insn_powerpc (unsigned long insn, unsigned long memaddr)
     dialect |= (PPC_OPCODE_POWER5 | PPC_OPCODE_POWER6 | PPC_OPCODE_POWER7
 		| PPC_OPCODE_POWER8 | PPC_OPCODE_POWER9 | PPC_OPCODE_HTM
 		| PPC_OPCODE_ALTIVEC | PPC_OPCODE_ALTIVEC2
-		| PPC_OPCODE_VSX | PPC_OPCODE_VSX3),
+		| PPC_OPCODE_VSX | PPC_OPCODE_VSX3);
 
   /* Get the major opcode of the insn.  */
   opcode = NULL;
arch/s390/kernel/perf_cpum_sf.c +3 -3
index bfabeb1889cc..1266194afb02 100644
@@ -1600,7 +1600,7 @@ static void aux_sdb_init(unsigned long sdb)
 
 /*
  * aux_buffer_setup() - Setup AUX buffer for diagnostic mode sampling
- * @cpu:	On which to allocate, -1 means current
+ * @event:	Event the buffer is setup for, event->cpu == -1 means current
  * @pages:	Array of pointers to buffer pages passed from perf core
  * @nr_pages:	Total pages
  * @snapshot:	Flag for snapshot mode
@@ -1612,8 +1612,8 @@ static void aux_sdb_init(unsigned long sdb)
  *
  * Return the private AUX buffer structure if success or NULL if fails.
  */
-static void *aux_buffer_setup(int cpu, void **pages, int nr_pages,
-			      bool snapshot)
+static void *aux_buffer_setup(struct perf_event *event, void **pages,
+			      int nr_pages, bool snapshot)
 {
 	struct sf_buffer *sfb;
 	struct aux_buffer *aux;
arch/x86/boot/Makefile +1 -1
index 9b5adae9cc40..e2839b5c246c 100644
@@ -100,7 +100,7 @@ $(obj)/zoffset.h: $(obj)/compressed/vmlinux FORCE
 AFLAGS_header.o += -I$(objtree)/$(obj)
 $(obj)/header.o: $(obj)/zoffset.h
 
-LDFLAGS_setup.elf	:= -T
+LDFLAGS_setup.elf	:= -m elf_i386 -T
 $(obj)/setup.elf: $(src)/setup.ld $(SETUP_OBJS) FORCE
 	$(call if_changed,ld)
 
arch/x86/events/intel/bts.c +3 -1
index a01ef1b0f883..7cdd7b13bbda 100644
@@ -77,10 +77,12 @@ static size_t buf_size(struct page *page)
 }
 
 static void *
-bts_buffer_setup_aux(int cpu, void **pages, int nr_pages, bool overwrite)
+bts_buffer_setup_aux(struct perf_event *event, void **pages,
+		     int nr_pages, bool overwrite)
 {
 	struct bts_buffer *buf;
 	struct page *page;
+	int cpu = event->cpu;
 	int node = (cpu == -1) ? cpu : cpu_to_node(cpu);
 	unsigned long offset;
 	size_t size = nr_pages << PAGE_SHIFT;
arch/x86/events/intel/pt.c +3 -2
index 9494ca68fd9d..c0e86ff21f81 100644
@@ -1114,10 +1114,11 @@ static int pt_buffer_init_topa(struct pt_buffer *buf, unsigned long nr_pages,
  * Return:	Our private PT buffer structure.
  */
 static void *
-pt_buffer_setup_aux(int cpu, void **pages, int nr_pages, bool snapshot)
+pt_buffer_setup_aux(struct perf_event *event, void **pages,
+		    int nr_pages, bool snapshot)
 {
 	struct pt_buffer *buf;
-	int node, ret;
+	int node, ret, cpu = event->cpu;
 
 	if (!nr_pages)
 		return NULL;
arch/x86/hyperv/hv_init.c +7 -0
index 7abb09e2eeb8..d3f42b6bbdac 100644
@@ -406,6 +406,13 @@ void hyperv_cleanup(void)
 	/* Reset our OS id */
 	wrmsrl(HV_X64_MSR_GUEST_OS_ID, 0);
 
+	/*
+	 * Reset hypercall page reference before reset the page,
+	 * let hypercall operations fail safely rather than
+	 * panic the kernel for using invalid hypercall page
+	 */
+	hv_hypercall_pg = NULL;
+
 	/* Reset the hypercall page */
 	hypercall_msr.as_uint64 = 0;
 	wrmsrl(HV_X64_MSR_HYPERCALL, hypercall_msr.as_uint64);
arch/x86/include/asm/uaccess.h +12 -12
index c1334aaaa78d..f3aed639dccd 100644
@@ -76,7 +76,7 @@ static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, un
 #endif
 
 /**
- * access_ok: - Checks if a user space pointer is valid
+ * access_ok - Checks if a user space pointer is valid
  * @addr: User space pointer to start of block to check
  * @size: Size of block to check
  *
@@ -85,12 +85,12 @@ static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, un
  *
  * Checks if a pointer to a block of memory in user space is valid.
  *
- * Returns true (nonzero) if the memory block may be valid, false (zero)
- * if it is definitely invalid.
- *
  * Note that, depending on architecture, this function probably just
  * checks that the pointer is in the user space range - after calling
  * this function, memory access functions may still return -EFAULT.
+ *
+ * Return: true (nonzero) if the memory block may be valid, false (zero)
+ * if it is definitely invalid.
  */
 #define access_ok(addr, size)					\
 ({									\
@@ -135,7 +135,7 @@ extern int __get_user_bad(void);
 __typeof__(__builtin_choose_expr(sizeof(x) > sizeof(0UL), 0ULL, 0UL))
 
 /**
- * get_user: - Get a simple variable from user space.
+ * get_user - Get a simple variable from user space.
  * @x:   Variable to store result.
  * @ptr: Source address, in user space.
  *
@@ -149,7 +149,7 @@ __typeof__(__builtin_choose_expr(sizeof(x) > sizeof(0UL), 0ULL, 0UL))
  * @ptr must have pointer-to-simple-variable type, and the result of
  * dereferencing @ptr must be assignable to @x without a cast.
  *
- * Returns zero on success, or -EFAULT on error.
+ * Return: zero on success, or -EFAULT on error.
  * On error, the variable @x is set to zero.
  */
 /*
@@ -227,7 +227,7 @@ extern void __put_user_4(void);
 extern void __put_user_8(void);
 
 /**
- * put_user: - Write a simple value into user space.
+ * put_user - Write a simple value into user space.
  * @x:   Value to copy to user space.
  * @ptr: Destination address, in user space.
  *
@@ -241,7 +241,7 @@ extern void __put_user_8(void);
  * @ptr must have pointer-to-simple-variable type, and @x must be assignable
  * to the result of dereferencing @ptr.
  *
- * Returns zero on success, or -EFAULT on error.
+ * Return: zero on success, or -EFAULT on error.
  */
 #define put_user(x, ptr)					\
 ({								\
@@ -503,7 +503,7 @@ struct __large_struct { unsigned long buf[100]; };
 } while (0)
 
 /**
- * __get_user: - Get a simple variable from user space, with less checking.
+ * __get_user - Get a simple variable from user space, with less checking.
  * @x:   Variable to store result.
  * @ptr: Source address, in user space.
  *
@@ -520,7 +520,7 @@ struct __large_struct { unsigned long buf[100]; };
  * Caller must check the pointer with access_ok() before calling this
  * function.
  *
- * Returns zero on success, or -EFAULT on error.
+ * Return: zero on success, or -EFAULT on error.
  * On error, the variable @x is set to zero.
  */
 
@@ -528,7 +528,7 @@ struct __large_struct { unsigned long buf[100]; };
 	__get_user_nocheck((x), (ptr), sizeof(*(ptr)))
 
 /**
- * __put_user: - Write a simple value into user space, with less checking.
+ * __put_user - Write a simple value into user space, with less checking.
  * @x:   Value to copy to user space.
  * @ptr: Destination address, in user space.
  *
@@ -545,7 +545,7 @@ struct __large_struct { unsigned long buf[100]; };
  * Caller must check the pointer with access_ok() before calling this
  * function.
  *
- * Returns zero on success, or -EFAULT on error.
+ * Return: zero on success, or -EFAULT on error.
  */
 
 #define __put_user(x, ptr)						\
arch/x86/kernel/kexec-bzimage64.c +3 -1
index 53917a3ebf94..1f3b77367948 100644
@@ -218,6 +218,9 @@ setup_boot_parameters(struct kimage *image, struct boot_params *params,
 	params->screen_info.ext_mem_k = 0;
 	params->alt_mem_k = 0;
 
+	/* Always fill in RSDP: it is either 0 or a valid value */
+	params->acpi_rsdp_addr = boot_params.acpi_rsdp_addr;
+
 	/* Default APM info */
 	memset(&params->apm_bios_info, 0, sizeof(params->apm_bios_info));
 
@@ -256,7 +259,6 @@ setup_boot_parameters(struct kimage *image, struct boot_params *params,
 	setup_efi_state(params, params_load_addr, efi_map_offset, efi_map_sz,
 			efi_setup_data_offset);
 #endif
-
 	/* Setup EDD info */
 	memcpy(params->eddbuf, boot_params.eddbuf,
 				EDDMAXNR * sizeof(struct edd_info));
arch/x86/kernel/vmlinux.lds.S +1 -1
index 0d618ee634ac..ee3b5c7d662e 100644
@@ -401,7 +401,7 @@ SECTIONS
  * Per-cpu symbols which need to be offset from __per_cpu_load
  * for the boot processor.
  */
-#define INIT_PER_CPU(x) init_per_cpu__##x = x + __per_cpu_load
+#define INIT_PER_CPU(x) init_per_cpu__##x = ABSOLUTE(x) + __per_cpu_load
 INIT_PER_CPU(gdt_page);
 INIT_PER_CPU(irq_stack_union);
 
arch/x86/lib/usercopy_32.c +4 -4
index bfd94e7812fc..7d290777246d 100644
@@ -54,13 +54,13 @@ do {									\
 } while (0)
 
 /**
- * clear_user: - Zero a block of memory in user space.
+ * clear_user - Zero a block of memory in user space.
  * @to:   Destination address, in user space.
  * @n:    Number of bytes to zero.
  *
  * Zero a block of memory in user space.
  *
- * Returns number of bytes that could not be cleared.
+ * Return: number of bytes that could not be cleared.
  * On success, this will be zero.
  */
 unsigned long
@@ -74,14 +74,14 @@ clear_user(void __user *to, unsigned long n)
 EXPORT_SYMBOL(clear_user);
 
 /**
- * __clear_user: - Zero a block of memory in user space, with less checking.
+ * __clear_user - Zero a block of memory in user space, with less checking.
  * @to:   Destination address, in user space.
  * @n:    Number of bytes to zero.
  *
  * Zero a block of memory in user space.  Caller must check
  * the specified block with access_ok() before calling this function.
  *
- * Returns number of bytes that could not be cleared.
+ * Return: number of bytes that could not be cleared.
  * On success, this will be zero.
  */
 unsigned long
arch/x86/platform/efi/quirks.c +2 -2
index 17456a1d3f04..6c571ae86947 100644
@@ -717,7 +717,7 @@ void efi_recover_from_page_fault(unsigned long phys_addr)
 	 * "efi_mm" cannot be used to check if the page fault had occurred
 	 * in the firmware context because efi=old_map doesn't use efi_pgd.
 	 */
-	if (efi_rts_work.efi_rts_id == NONE)
+	if (efi_rts_work.efi_rts_id == EFI_NONE)
 		return;
 
 	/*
@@ -742,7 +742,7 @@ void efi_recover_from_page_fault(unsigned long phys_addr)
 	 * because this case occurs *very* rarely and hence could be improved
 	 * on a need by basis.
 	 */
-	if (efi_rts_work.efi_rts_id == RESET_SYSTEM) {
+	if (efi_rts_work.efi_rts_id == EFI_RESET_SYSTEM) {
 		pr_info("efi_reset_system() buggy! Reboot through BIOS\n");
 		machine_real_restart(MRR_BIOS);
 		return;
arch/x86/realmode/rm/Makefile +1 -1
index 4463fa72db94..96cb20de08af 100644
@@ -47,7 +47,7 @@ $(obj)/pasyms.h: $(REALMODE_OBJS) FORCE
 targets += realmode.lds
 $(obj)/realmode.lds: $(obj)/pasyms.h
 
-LDFLAGS_realmode.elf := --emit-relocs -T
+LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T
 CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$(obj)
 
 targets += realmode.elf
block/bfq-iosched.c +17 -5
index cd307767a134..e5ed28629271 100644
@@ -747,6 +747,7 @@ void bfq_weights_tree_add(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 
 inc_counter:
 	bfqq->weight_counter->num_active++;
+	bfqq->ref++;
 }
 
 /*
@@ -771,6 +772,7 @@ void __bfq_weights_tree_remove(struct bfq_data *bfqd,
 
 reset_entity_pointer:
 	bfqq->weight_counter = NULL;
+	bfq_put_queue(bfqq);
 }
 
 /*
@@ -782,9 +784,6 @@ void bfq_weights_tree_remove(struct bfq_data *bfqd,
 {
 	struct bfq_entity *entity = bfqq->entity.parent;
 
-	__bfq_weights_tree_remove(bfqd, bfqq,
-				  &bfqd->queue_weights_tree);
-
 	for_each_entity(entity) {
 		struct bfq_sched_data *sd = entity->my_sched_data;
 
@@ -818,6 +817,15 @@ void bfq_weights_tree_remove(struct bfq_data *bfqd,
 			bfqd->num_groups_with_pending_reqs--;
 		}
 	}
+
+	/*
+	 * Next function is invoked last, because it causes bfqq to be
+	 * freed if the following holds: bfqq is not in service and
+	 * has no dispatched request. DO NOT use bfqq after the next
+	 * function invocation.
+	 */
+	__bfq_weights_tree_remove(bfqd, bfqq,
+				  &bfqd->queue_weights_tree);
 }
 
 /*
@@ -1011,7 +1019,8 @@ bfq_bfqq_resume_state(struct bfq_queue *bfqq, struct bfq_data *bfqd,
 
 static int bfqq_process_refs(struct bfq_queue *bfqq)
 {
-	return bfqq->ref - bfqq->allocated - bfqq->entity.on_st;
+	return bfqq->ref - bfqq->allocated - bfqq->entity.on_st -
+		(bfqq->weight_counter != NULL);
 }
 
 /* Empty burst list and add just bfqq (see comments on bfq_handle_burst) */
@@ -2224,7 +2233,8 @@ bfq_setup_cooperator(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 
 	if (in_service_bfqq && in_service_bfqq != bfqq &&
 	    likely(in_service_bfqq != &bfqd->oom_bfqq) &&
-	    bfq_rq_close_to_sector(io_struct, request, bfqd->last_position) &&
+	    bfq_rq_close_to_sector(io_struct, request,
+				   bfqd->in_serv_last_pos) &&
 	    bfqq->entity.parent == in_service_bfqq->entity.parent &&
 	    bfq_may_be_close_cooperator(bfqq, in_service_bfqq)) {
 		new_bfqq = bfq_setup_merge(bfqq, in_service_bfqq);
@@ -2764,6 +2774,8 @@ static void bfq_update_peak_rate(struct bfq_data *bfqd, struct request *rq)
 	bfq_update_rate_reset(bfqd, rq);
 update_last_values:
 	bfqd->last_position = blk_rq_pos(rq) + blk_rq_sectors(rq);
+	if (RQ_BFQQ(rq) == bfqd->in_service_queue)
+		bfqd->in_serv_last_pos = bfqd->last_position;
 	bfqd->last_dispatch = now_ns;
 }
 
block/bfq-iosched.h +3 -0
index 0b02bf302de0..746bd570b85a 100644
@@ -537,6 +537,9 @@ struct bfq_data {
 	/* on-disk position of the last served request */
 	sector_t last_position;
 
+	/* position of the last served request for the in-service queue */
+	sector_t in_serv_last_pos;
+
 	/* time of last request completion (ns) */
 	u64 last_completion;
 
block/bfq-wf2q.c +3 -3
index 72adbbe975d5..4aab1a8191f0 100644
@@ -1667,15 +1667,15 @@ void bfq_del_bfqq_busy(struct bfq_data *bfqd, struct bfq_queue *bfqq,
 
 	bfqd->busy_queues--;
 
-	if (!bfqq->dispatched)
-		bfq_weights_tree_remove(bfqd, bfqq);
-
 	if (bfqq->wr_coeff > 1)
 		bfqd->wr_busy_queues--;
 
 	bfqg_stats_update_dequeue(bfqq_group(bfqq));
 
 	bfq_deactivate_bfqq(bfqd, bfqq, true, expiration);
+
+	if (!bfqq->dispatched)
+		bfq_weights_tree_remove(bfqd, bfqq);
 }
 
 /*
drivers/acpi/acpi_video.c +14 -6
index f0b52266b3ac..d73afb562ad9 100644
@@ -2124,21 +2124,29 @@ static int __init intel_opregion_present(void)
 	return opregion;
 }
 
+/* Check if the chassis-type indicates there is no builtin LCD panel */
 static bool dmi_is_desktop(void)
 {
 	const char *chassis_type;
+	unsigned long type;
 
 	chassis_type = dmi_get_system_info(DMI_CHASSIS_TYPE);
 	if (!chassis_type)
 		return false;
 
-	if (!strcmp(chassis_type, "3") || /*  3: Desktop */
-	    !strcmp(chassis_type, "4") || /*  4: Low Profile Desktop */
-	    !strcmp(chassis_type, "5") || /*  5: Pizza Box */
-	    !strcmp(chassis_type, "6") || /*  6: Mini Tower */
-	    !strcmp(chassis_type, "7") || /*  7: Tower */
-	    !strcmp(chassis_type, "11"))  /* 11: Main Server Chassis */
+	if (kstrtoul(chassis_type, 10, &type) != 0)
+		return false;
+
+	switch (type) {
+	case 0x03: /* Desktop */
+	case 0x04: /* Low Profile Desktop */
+	case 0x05: /* Pizza Box */
+	case 0x06: /* Mini Tower */
+	case 0x07: /* Tower */
+	case 0x10: /* Lunch Box */
+	case 0x11: /* Main Server Chassis */
 		return true;
+	}
 
 	return false;
 }
drivers/block/loop.c +17 -4
index 2faefdd6f420..9a8d83bc1e75 100644
@@ -1089,16 +1089,12 @@ static int __loop_clr_fd(struct loop_device *lo, bool release)
 		kobject_uevent(&disk_to_dev(bdev->bd_disk)->kobj, KOBJ_CHANGE);
 	}
 	mapping_set_gfp_mask(filp->f_mapping, gfp);
-	lo->lo_state = Lo_unbound;
 	/* This is safe: open() is still holding a reference. */
 	module_put(THIS_MODULE);
 	blk_mq_unfreeze_queue(lo->lo_queue);
 
 	partscan = lo->lo_flags & LO_FLAGS_PARTSCAN && bdev;
 	lo_number = lo->lo_number;
-	lo->lo_flags = 0;
-	if (!part_shift)
-		lo->lo_disk->flags |= GENHD_FL_NO_PART_SCAN;
 	loop_unprepare_queue(lo);
 out_unlock:
 	mutex_unlock(&loop_ctl_mutex);
@@ -1120,6 +1116,23 @@ static int __loop_clr_fd(struct loop_device *lo, bool release)
 		/* Device is gone, no point in returning error */
 		err = 0;
 	}
+
+	/*
+	 * lo->lo_state is set to Lo_unbound here after above partscan has
+	 * finished.
+	 *
+	 * There cannot be anybody else entering __loop_clr_fd() as
+	 * lo->lo_backing_file is already cleared and Lo_rundown state
+	 * protects us from all the other places trying to change the 'lo'
+	 * device.
+	 */
+	mutex_lock(&loop_ctl_mutex);
+	lo->lo_flags = 0;
+	if (!part_shift)
+		lo->lo_disk->flags |= GENHD_FL_NO_PART_SCAN;
+	lo->lo_state = Lo_unbound;
+	mutex_unlock(&loop_ctl_mutex);
+
 	/*
 	 * Need not hold loop_ctl_mutex to fput backing file.
 	 * Calling fput holding loop_ctl_mutex triggers a circular
drivers/cdrom/cdrom.c +3 -4
index 614ecdbb4ab7..933268b8d6a5 100644
@@ -265,6 +265,7 @@
 /* #define ERRLOGMASK (CD_WARNING|CD_OPEN|CD_COUNT_TRACKS|CD_CLOSE) */
 /* #define ERRLOGMASK (CD_WARNING|CD_REG_UNREG|CD_DO_IOCTL|CD_OPEN|CD_CLOSE|CD_COUNT_TRACKS) */
 
+#include <linux/atomic.h>
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/major.h>
@@ -3692,9 +3693,9 @@ static struct ctl_table_header *cdrom_sysctl_header;
 
 static void cdrom_sysctl_register(void)
 {
-	static int initialized;
+	static atomic_t initialized = ATOMIC_INIT(0);
 
-	if (initialized == 1)
+	if (!atomic_add_unless(&initialized, 1, 1))
 		return;
 
 	cdrom_sysctl_header = register_sysctl_table(cdrom_root_table);
@@ -3705,8 +3706,6 @@ static void cdrom_sysctl_register(void)
 	cdrom_sysctl_settings.debug = debug;
 	cdrom_sysctl_settings.lock = lockdoor;
 	cdrom_sysctl_settings.check = check_media_type;
-
-	initialized = 1;
 }
 
 static void cdrom_sysctl_unregister(void)
drivers/char/hpet.c +1 -1
index 4a22b4b41aef..9bffcd37cc7b 100644
@@ -377,7 +377,7 @@ static __init int hpet_mmap_enable(char *str)
 	pr_info("HPET mmap %s\n", hpet_mmap_enabled ? "enabled" : "disabled");
 	return 1;
 }
-__setup("hpet_mmap", hpet_mmap_enable);
+__setup("hpet_mmap=", hpet_mmap_enable);
 
 static int hpet_mmap(struct file *file, struct vm_area_struct *vma)
 {
drivers/char/hw_random/virtio-rng.c +1 -1
index b89df66ea1ae..7abd604e938c 100644
@@ -73,7 +73,7 @@ static int virtio_read(struct hwrng *rng, void *buf, size_t size, bool wait)
 
 	if (!vi->busy) {
 		vi->busy = true;
-		init_completion(&vi->have_data);
+		reinit_completion(&vi->have_data);
 		register_buffer(vi, buf, size);
 	}
 
drivers/clk/clk-fractional-divider.c +1 -1
index 545dceec0bbf..fdfe2e423d15 100644
@@ -79,7 +79,7 @@ static long clk_fd_round_rate(struct clk_hw *hw, unsigned long rate,
 	unsigned long m, n;
 	u64 ret;
 
-	if (!rate || rate >= *parent_rate)
+	if (!rate || (!clk_hw_can_set_rate_parent(hw) && rate >= *parent_rate))
 		return *parent_rate;
 
 	if (fd->approximation)
drivers/clk/meson/meson-aoclk.c +10 -5
index f965845917e3..258c8d259ea1 100644
@@ -65,15 +65,20 @@ int meson_aoclkc_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	/*
-	 * Populate regmap and register all clks
-	 */
-	for (clkid = 0; clkid < data->num_clks; clkid++) {
+	/* Populate regmap */
+	for (clkid = 0; clkid < data->num_clks; clkid++)
 		data->clks[clkid]->map = regmap;
 
+	/* Register all clks */
+	for (clkid = 0; clkid < data->hw_data->num; clkid++) {
+		if (!data->hw_data->hws[clkid])
+			continue;
+
 		ret = devm_clk_hw_register(dev, data->hw_data->hws[clkid]);
-		if (ret)
+		if (ret) {
+			dev_err(dev, "Clock registration failed\n");
 			return ret;
+		}
 	}
 
 	return devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get,
drivers/clk/rockchip/clk-rk3328.c +6 -6
index faa94adb2a37..65ab5c2f48b0 100644
@@ -78,17 +78,17 @@ static struct rockchip_pll_rate_table rk3328_pll_rates[] = {
 
 static struct rockchip_pll_rate_table rk3328_pll_frac_rates[] = {
 	/* _mhz, _refdiv, _fbdiv, _postdiv1, _postdiv2, _dsmpd, _frac */
-	RK3036_PLL_RATE(1016064000, 3, 127, 1, 1, 0, 134217),
+	RK3036_PLL_RATE(1016064000, 3, 127, 1, 1, 0, 134218),
 	/* vco = 1016064000 */
-	RK3036_PLL_RATE(983040000, 24, 983, 1, 1, 0, 671088),
+	RK3036_PLL_RATE(983040000, 24, 983, 1, 1, 0, 671089),
 	/* vco = 983040000 */
-	RK3036_PLL_RATE(491520000, 24, 983, 2, 1, 0, 671088),
+	RK3036_PLL_RATE(491520000, 24, 983, 2, 1, 0, 671089),
 	/* vco = 983040000 */
-	RK3036_PLL_RATE(61440000, 6, 215, 7, 2, 0, 671088),
+	RK3036_PLL_RATE(61440000, 6, 215, 7, 2, 0, 671089),
 	/* vco = 860156000 */
-	RK3036_PLL_RATE(56448000, 12, 451, 4, 4, 0, 9797894),
+	RK3036_PLL_RATE(56448000, 12, 451, 4, 4, 0, 9797895),
 	/* vco = 903168000 */
-	RK3036_PLL_RATE(40960000, 12, 409, 4, 5, 0, 10066329),
+	RK3036_PLL_RATE(40960000, 12, 409, 4, 5, 0, 10066330),
 	/* vco = 819200000 */
 	{ /* sentinel */ },
 };
drivers/clk/ti/clkctrl.c +1 -1
index 40630eb950fc..85d7f301149b 100644
@@ -530,7 +530,7 @@ static void __init _ti_omap4_clkctrl_setup(struct device_node *node)
 		 * Create default clkdm name, replace _cm from end of parent
 		 * node name with _clkdm
 		 */
-		provider->clkdm_name[strlen(provider->clkdm_name) - 5] = 0;
+		provider->clkdm_name[strlen(provider->clkdm_name) - 2] = 0;
 	} else {
 		provider->clkdm_name = kasprintf(GFP_KERNEL, "%pOFn", node);
 		if (!provider->clkdm_name) {
drivers/cpufreq/acpi-cpufreq.c +3 -1
index d62fd374d5c7..c72258a44ba4 100644
@@ -916,8 +916,10 @@ static void __init acpi_cpufreq_boost_init(void)
 {
 	int ret;
 
-	if (!(boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA)))
+	if (!(boot_cpu_has(X86_FEATURE_CPB) || boot_cpu_has(X86_FEATURE_IDA))) {
+		pr_debug("Boost capabilities not present in the processor\n");
 		return;
+	}
 
 	acpi_cpufreq_driver.set_boost = set_boost;
 	acpi_cpufreq_driver.boost_enabled = boost_state(0);
drivers/crypto/amcc/crypto4xx_trng.c +3 -1
index 5e63742b0d22..53ab1f140a26 100644
@@ -80,8 +80,10 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev)
 
 	/* Find the TRNG device node and map it */
 	trng = of_find_matching_node(NULL, ppc4xx_trng_match);
-	if (!trng || !of_device_is_available(trng))
+	if (!trng || !of_device_is_available(trng)) {
+		of_node_put(trng);
 		return;
+	}
 
 	dev->trng_base = of_iomap(trng, 0);
 	of_node_put(trng);
drivers/crypto/cavium/zip/zip_main.c +4 -2
index be055b9547f6..6183f9128a8a 100644
@@ -351,6 +351,7 @@ static struct pci_driver zip_driver = {
 
 static struct crypto_alg zip_comp_deflate = {
 	.cra_name		= "deflate",
+	.cra_driver_name	= "deflate-cavium",
 	.cra_flags		= CRYPTO_ALG_TYPE_COMPRESS,
 	.cra_ctxsize		= sizeof(struct zip_kernel_ctx),
 	.cra_priority           = 300,
@@ -365,6 +366,7 @@ static struct crypto_alg zip_comp_deflate = {
 
 static struct crypto_alg zip_comp_lzs = {
 	.cra_name		= "lzs",
+	.cra_driver_name	= "lzs-cavium",
 	.cra_flags		= CRYPTO_ALG_TYPE_COMPRESS,
 	.cra_ctxsize		= sizeof(struct zip_kernel_ctx),
 	.cra_priority           = 300,
@@ -384,7 +386,7 @@ static struct scomp_alg zip_scomp_deflate = {
 	.decompress		= zip_scomp_decompress,
 	.base			= {
 		.cra_name		= "deflate",
-		.cra_driver_name	= "deflate-scomp",
+		.cra_driver_name	= "deflate-scomp-cavium",
 		.cra_module		= THIS_MODULE,
 		.cra_priority           = 300,
 	}
@@ -397,7 +399,7 @@ static struct scomp_alg zip_scomp_lzs = {
 	.decompress		= zip_scomp_decompress,
 	.base			= {
 		.cra_name		= "lzs",
-		.cra_driver_name	= "lzs-scomp",
+		.cra_driver_name	= "lzs-scomp-cavium",
 		.cra_module		= THIS_MODULE,
 		.cra_priority           = 300,
 	}
drivers/dma/imx-dma.c +1 -1
index 4a09af3cd546..7b9a7fb28bb9 100644
@@ -285,7 +285,7 @@ static inline int imxdma_sg_next(struct imxdma_desc *d)
 	struct scatterlist *sg = d->sg;
 	unsigned long now;
 
-	now = min(d->len, sg_dma_len(sg));
+	now = min_t(size_t, d->len, sg_dma_len(sg));
 	if (d->len != IMX_DMA_LENGTH_LOOP)
 		d->len -= now;
 
drivers/dma/qcom/hidma.c +11 -8
index 43d4b00b8138..411f91fde734 100644
@@ -138,24 +138,25 @@ static void hidma_process_completed(struct hidma_chan *mchan)
 		desc = &mdesc->desc;
 		last_cookie = desc->cookie;
 
+		llstat = hidma_ll_status(mdma->lldev, mdesc->tre_ch);
+
 		spin_lock_irqsave(&mchan->lock, irqflags);
+		if (llstat == DMA_COMPLETE) {
+			mchan->last_success = last_cookie;
+			result.result = DMA_TRANS_NOERROR;
+		} else {
+			result.result = DMA_TRANS_ABORTED;
+		}
+
 		dma_cookie_complete(desc);
 		spin_unlock_irqrestore(&mchan->lock, irqflags);
 
-		llstat = hidma_ll_status(mdma->lldev, mdesc->tre_ch);
 		dmaengine_desc_get_callback(desc, &cb);
 
 		dma_run_dependencies(desc);
 
 		spin_lock_irqsave(&mchan->lock, irqflags);
 		list_move(&mdesc->node, &mchan->free);
-
-		if (llstat == DMA_COMPLETE) {
-			mchan->last_success = last_cookie;
-			result.result = DMA_TRANS_NOERROR;
-		} else
-			result.result = DMA_TRANS_ABORTED;
-
 		spin_unlock_irqrestore(&mchan->lock, irqflags);
 
 		dmaengine_desc_callback_invoke(&cb, &result);
@@ -415,6 +416,7 @@ hidma_prep_dma_memcpy(struct dma_chan *dmach, dma_addr_t dest, dma_addr_t src,
 	if (!mdesc)
 		return NULL;
 
+	mdesc->desc.flags = flags;
 	hidma_ll_set_transfer_params(mdma->lldev, mdesc->tre_ch,
 				     src, dest, len, flags,
 				     HIDMA_TRE_MEMCPY);
@@ -447,6 +449,7 @@ hidma_prep_dma_memset(struct dma_chan *dmach, dma_addr_t dest, int value,
 	if (!mdesc)
 		return NULL;
 
+	mdesc->desc.flags = flags;
 	hidma_ll_set_transfer_params(mdma->lldev, mdesc->tre_ch,
 				     value, dest, len, flags,
 				     HIDMA_TRE_MEMSET);
drivers/dma/tegra20-apb-dma.c +4 -1
index 9a558e30c461..8219ab88a507 100644
@@ -636,7 +636,10 @@ static void handle_cont_sngl_cycle_dma_done(struct tegra_dma_channel *tdc,
 
 	sgreq = list_first_entry(&tdc->pending_sg_req, typeof(*sgreq), node);
 	dma_desc = sgreq->dma_desc;
-	dma_desc->bytes_transferred += sgreq->req_len;
+	/* if we dma for long enough the transfer count will wrap */
+	dma_desc->bytes_transferred =
+		(dma_desc->bytes_transferred + sgreq->req_len) %
+		dma_desc->bytes_requested;
 
 	/* Callback need to be call */
 	if (!dma_desc->cb_count)
drivers/firmware/efi/cper.c +9 -4
index a7902fccdcfa..6090d25dce85 100644
@@ -546,19 +546,24 @@ EXPORT_SYMBOL_GPL(cper_estatus_check_header);
 int cper_estatus_check(const struct acpi_hest_generic_status *estatus)
 {
 	struct acpi_hest_generic_data *gdata;
-	unsigned int data_len, gedata_len;
+	unsigned int data_len, record_size;
 	int rc;
 
 	rc = cper_estatus_check_header(estatus);
 	if (rc)
 		return rc;
+
 	data_len = estatus->data_length;
 
 	apei_estatus_for_each_section(estatus, gdata) {
-		gedata_len = acpi_hest_get_error_length(gdata);
-		if (gedata_len > data_len - acpi_hest_get_size(gdata))
+		if (sizeof(struct acpi_hest_generic_data) > data_len)
+			return -EINVAL;
+
+		record_size = acpi_hest_get_record_size(gdata);
+		if (record_size > data_len)
 			return -EINVAL;
-		data_len -= acpi_hest_get_record_size(gdata);
+
+		data_len -= record_size;
 	}
 	if (data_len)
 		return -EINVAL;
drivers/firmware/efi/libstub/arm-stub.c +5 -0
index c037c6c5d0b7..04e6ecd72cd9 100644
@@ -367,6 +367,11 @@ void efi_get_virtmap(efi_memory_desc_t *memory_map, unsigned long map_size,
 		paddr = in->phys_addr;
 		size = in->num_pages * EFI_PAGE_SIZE;
 
+		if (novamap()) {
+			in->virt_addr = in->phys_addr;
+			continue;
+		}
+
 		/*
 		 * Make the mapping compatible with 64k pages: this allows
 		 * a 4k page size kernel to kexec a 64k page size kernel and
drivers/firmware/efi/libstub/efi-stub-helper.c +10 -0
index e94975f4655b..442f51c2a53d 100644
@@ -34,6 +34,7 @@ static unsigned long __chunk_size = EFI_READ_CHUNK_SIZE;
 
 static int __section(.data) __nokaslr;
 static int __section(.data) __quiet;
+static int __section(.data) __novamap;
 
 int __pure nokaslr(void)
 {
@@ -43,6 +44,10 @@ int __pure is_quiet(void)
 {
 	return __quiet;
 }
+int __pure novamap(void)
+{
+	return __novamap;
+}
 
 #define EFI_MMAP_NR_SLACK_SLOTS	8
 
@@ -482,6 +487,11 @@ efi_status_t efi_parse_options(char const *cmdline)
 			__chunk_size = -1UL;
 		}
 
+		if (!strncmp(str, "novamap", 7)) {
+			str += strlen("novamap");
+			__novamap = 1;
+		}
+
 		/* Group words together, delimited by "," */
 		while (*str && *str != ' ' && *str != ',')
 			str++;
drivers/firmware/efi/libstub/efistub.h +1 -0
index 32799cf039ef..337b52c4702c 100644
@@ -27,6 +27,7 @@
 
 extern int __pure nokaslr(void);
 extern int __pure is_quiet(void);
+extern int __pure novamap(void);
 
 #define pr_efi(sys_table, msg)		do {				\
 	if (!is_quiet()) efi_printk(sys_table, "EFI stub: "msg);	\
drivers/firmware/efi/libstub/fdt.c +3 -0
index 0dc7b4987cc2..f8f89f995e9d 100644
@@ -327,6 +327,9 @@ efi_status_t allocate_new_fdt_and_exit_boot(efi_system_table_t *sys_table,
 	if (status == EFI_SUCCESS) {
 		efi_set_virtual_address_map_t *svam;
 
+		if (novamap())
+			return EFI_SUCCESS;
+
 		/* Install the new virtual address map */
 		svam = sys_table->runtime->set_virtual_address_map;
 		status = svam(runtime_entry_count * desc_size, desc_size,
drivers/firmware/efi/memattr.c +1 -1
index 8986757eafaf..aac972b056d9 100644
@@ -94,7 +94,7 @@ static bool entry_is_valid(const efi_memory_desc_t *in, efi_memory_desc_t *out)
 
 		if (!(md->attribute & EFI_MEMORY_RUNTIME))
 			continue;
-		if (md->virt_addr == 0) {
+		if (md->virt_addr == 0 && md->phys_addr != 0) {
 			/* no virtual mapping has been installed by the stub */
 			break;
 		}
drivers/firmware/efi/runtime-wrappers.c +24 -24

165 lines not on this page · raw message

drivers/gpio/gpio-omap.c +8 -6
index f4e9921fa966..7f33024b6d83 100644
@@ -883,14 +883,16 @@ static void omap_gpio_unmask_irq(struct irq_data *d)
 	if (trigger)
 		omap_set_gpio_triggering(bank, offset, trigger);
 
-	/* For level-triggered GPIOs, the clearing must be done after
-	 * the HW source is cleared, thus after the handler has run */
-	if (bank->level_mask & BIT(offset)) {
-		omap_set_gpio_irqenable(bank, offset, 0);
+	omap_set_gpio_irqenable(bank, offset, 1);
+
+	/*
+	 * For level-triggered GPIOs, clearing must be done after the source
+	 * is cleared, thus after the handler has run. OMAP4 needs this done
+	 * after enabing the interrupt to clear the wakeup status.
+	 */
+	if (bank->level_mask & BIT(offset))
 		omap_clear_gpio_irqstatus(bank, offset);
-	}
 
-	omap_set_gpio_irqenable(bank, offset, 1);
 	raw_spin_unlock_irqrestore(&bank->lock, flags);
 }
 
drivers/gpio/gpiolib-of.c +2 -1
index a6e1891217e2..a1dd2f1c0d02 100644
@@ -86,7 +86,8 @@ static void of_gpio_flags_quirks(struct device_node *np,
 	if (IS_ENABLED(CONFIG_REGULATOR) &&
 	    (of_device_is_compatible(np, "regulator-fixed") ||
 	     of_device_is_compatible(np, "reg-fixed-voltage") ||
-	     of_device_is_compatible(np, "regulator-gpio"))) {
+	     (of_device_is_compatible(np, "regulator-gpio") &&
+	      strcmp(propname, "enable-gpio") == 0))) {
 		/*
 		 * The regulator GPIO handles are specified such that the
 		 * presence or absence of "enable-active-high" solely controls
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +50 -10

167 lines not on this page · raw message

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c +21 -21

55 lines not on this page · raw message

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -0
index 1b0d209d8367..3b95a637b508 100644
@@ -239,6 +239,7 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)
 			&init_params);
 
 		dc_sink->priv = aconnector;
+		/* dc_link_add_remote_sink returns a new reference */
 		aconnector->dc_sink = dc_sink;
 
 		if (aconnector->dc_sink)
drivers/gpu/drm/amd/display/dc/core/dc.c +3 -0
index 5fd52094d459..1f92e7e8e3d3 100644
@@ -1078,6 +1078,9 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
 	/* pplib is notified if disp_num changed */
 	dc->hwss.optimize_bandwidth(dc, context);
 
+	for (i = 0; i < context->stream_count; i++)
+		context->streams[i]->mode_changed = false;
+
 	dc_release_state(dc->current_state);
 
 	dc->current_state = context;
drivers/gpu/drm/amd/display/dc/core/dc_link.c +1 -0
index b0265dbebd4c..583eb367850f 100644
@@ -792,6 +792,7 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason)
 		sink->dongle_max_pix_clk = sink_caps.max_hdmi_pixel_clock;
 		sink->converter_disable_audio = converter_disable_audio;
 
+		/* dc_sink_create returns a new reference */
 		link->local_sink = sink;
 
 		edid_status = dm_helpers_read_local_edid(
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +4 -3
index 41883c981789..a684b38332ac 100644
@@ -2334,9 +2334,10 @@ static void dcn10_apply_ctx_for_surface(
 			}
 		}
 
-		if (!pipe_ctx->plane_state &&
-			old_pipe_ctx->plane_state &&
-			old_pipe_ctx->stream_res.tg == tg) {
+		if ((!pipe_ctx->plane_state ||
+		     pipe_ctx->stream_res.tg != old_pipe_ctx->stream_res.tg) &&
+		    old_pipe_ctx->plane_state &&
+		    old_pipe_ctx->stream_res.tg == tg) {
 
 			dc->hwss.plane_atomic_disconnect(dc, old_pipe_ctx);
 			removed_pipe[i] = true;
drivers/gpu/drm/drm_dp_mst_topology.c +1 -0
index 529414556962..1a244c53252c 100644
@@ -3286,6 +3286,7 @@ static int drm_dp_mst_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msgs
 		msg.u.i2c_read.transactions[i].i2c_dev_id = msgs[i].addr;
 		msg.u.i2c_read.transactions[i].num_bytes = msgs[i].len;
 		msg.u.i2c_read.transactions[i].bytes = msgs[i].buf;
+		msg.u.i2c_read.transactions[i].no_stop_bit = !(msgs[i].flags & I2C_M_STOP);
 	}
 	msg.u.i2c_read.read_i2c_device_id = msgs[num - 1].addr;
 	msg.u.i2c_read.num_bytes_read = msgs[num - 1].len;
drivers/gpu/drm/drm_fb_helper.c +1 -1
index 70fc8e356b18..edd8cb497f3b 100644
@@ -2891,7 +2891,7 @@ int drm_fb_helper_fbdev_setup(struct drm_device *dev,
 	return 0;
 
 err_drm_fb_helper_fini:
-	drm_fb_helper_fini(fb_helper);
+	drm_fb_helper_fbdev_teardown(dev);
 
 	return ret;
 }
drivers/gpu/drm/drm_mode_object.c +1 -0
index 004191d01772..15b919f90c5a 100644
@@ -465,6 +465,7 @@ static int set_property_atomic(struct drm_mode_object *obj,
 
 	drm_modeset_acquire_init(&ctx, 0);
 	state->acquire_ctx = &ctx;
+
 retry:
 	if (prop == state->dev->mode_config.dpms_property) {
 		if (obj->type != DRM_MODE_OBJECT_CONNECTOR) {
drivers/gpu/drm/drm_plane.c +3 -0
index 5f650d8fc66b..4cfb56893b7f 100644
@@ -220,6 +220,9 @@ int drm_universal_plane_init(struct drm_device *dev, struct drm_plane *plane,
 			format_modifier_count++;
 	}
 
+	if (format_modifier_count)
+		config->allow_fb_modifiers = true;
+
 	plane->modifier_count = format_modifier_count;
 	plane->modifiers = kmalloc_array(format_modifier_count,
 					 sizeof(format_modifiers[0]),
drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c +21 -15
index cb307a2abf06..7316b4ab1b85 100644
@@ -23,11 +23,14 @@ struct dpu_mdss {
 	struct dpu_irq_controller irq_controller;
 };
 
-static irqreturn_t dpu_mdss_irq(int irq, void *arg)
+static void dpu_mdss_irq(struct irq_desc *desc)
 {
-	struct dpu_mdss *dpu_mdss = arg;
+	struct dpu_mdss *dpu_mdss = irq_desc_get_handler_data(desc);
+	struct irq_chip *chip = irq_desc_get_chip(desc);
 	u32 interrupts;
 
+	chained_irq_enter(chip, desc);
+
 	interrupts = readl_relaxed(dpu_mdss->mmio + HW_INTR_STATUS);
 
 	while (interrupts) {
@@ -39,20 +42,20 @@ static irqreturn_t dpu_mdss_irq(int irq, void *arg)
 					   hwirq);
 		if (mapping == 0) {
 			DRM_ERROR("couldn't find irq mapping for %lu\n", hwirq);
-			return IRQ_NONE;
+			break;
 		}
 
 		rc = generic_handle_irq(mapping);
 		if (rc < 0) {
 			DRM_ERROR("handle irq fail: irq=%lu mapping=%u rc=%d\n",
 				  hwirq, mapping, rc);
-			return IRQ_NONE;
+			break;
 		}
 
 		interrupts &= ~(1 << hwirq);
 	}
 
-	return IRQ_HANDLED;
+	chained_irq_exit(chip, desc);
 }
 
 static void dpu_mdss_irq_mask(struct irq_data *irqd)
@@ -83,16 +86,16 @@ static struct irq_chip dpu_mdss_irq_chip = {
 	.irq_unmask = dpu_mdss_irq_unmask,
 };
 
+static struct lock_class_key dpu_mdss_lock_key, dpu_mdss_request_key;
+
 static int dpu_mdss_irqdomain_map(struct irq_domain *domain,
 		unsigned int irq, irq_hw_number_t hwirq)
 {
 	struct dpu_mdss *dpu_mdss = domain->host_data;
-	int ret;
 
+	irq_set_lockdep_class(irq, &dpu_mdss_lock_key, &dpu_mdss_request_key);
 	irq_set_chip_and_handler(irq, &dpu_mdss_irq_chip, handle_level_irq);
-	ret = irq_set_chip_data(irq, dpu_mdss);
-
-	return ret;
+	return irq_set_chip_data(irq, dpu_mdss);
 }
 
 static const struct irq_domain_ops dpu_mdss_irqdomain_ops = {
@@ -159,11 +162,13 @@ static void dpu_mdss_destroy(struct drm_device *dev)
 	struct msm_drm_private *priv = dev->dev_private;
 	struct dpu_mdss *dpu_mdss = to_dpu_mdss(priv->mdss);
 	struct dss_module_power *mp = &dpu_mdss->mp;
+	int irq;
 
 	pm_runtime_suspend(dev->dev);
 	pm_runtime_disable(dev->dev);
 	_dpu_mdss_irq_domain_fini(dpu_mdss);
-	free_irq(platform_get_irq(pdev, 0), dpu_mdss);
+	irq = platform_get_irq(pdev, 0);
+	irq_set_chained_handler_and_data(irq, NULL, NULL);
 	msm_dss_put_clk(mp->clk_config, mp->num_clk);
 	devm_kfree(&pdev->dev, mp->clk_config);
 
@@ -187,6 +192,7 @@ int dpu_mdss_init(struct drm_device *dev)
 	struct dpu_mdss *dpu_mdss;
 	struct dss_module_power *mp;
 	int ret = 0;
+	int irq;
 
 	dpu_mdss = devm_kzalloc(dev->dev, sizeof(*dpu_mdss), GFP_KERNEL);
 	if (!dpu_mdss)
@@ -219,12 +225,12 @@ int dpu_mdss_init(struct drm_device *dev)
 	if (ret)
 		goto irq_domain_error;
 
-	ret = request_irq(platform_get_irq(pdev, 0),
-			dpu_mdss_irq, 0, "dpu_mdss_isr", dpu_mdss);
-	if (ret) {
-		DPU_ERROR("failed to init irq: %d\n", ret);
+	irq = platform_get_irq(pdev, 0);
+	if (irq < 0)
 		goto irq_error;
-	}
+
+	irq_set_chained_handler_and_data(irq, dpu_mdss_irq,
+					 dpu_mdss);
 
 	pm_runtime_enable(dev->dev);
 
drivers/gpu/drm/nouveau/dispnv04/tvnv17.c +3 -1
index 6a4ca139cf5d..8fd8124d72ba 100644
@@ -750,7 +750,9 @@ static int nv17_tv_set_property(struct drm_encoder *encoder,
 		/* Disable the crtc to ensure a full modeset is
 		 * performed whenever it's turned on again. */
 		if (crtc)
-			drm_crtc_force_disable(crtc);
+			drm_crtc_helper_set_mode(crtc, &crtc->mode,
+						 crtc->x, crtc->y,
+						 crtc->primary->fb);
 	}
 
 	return 0;
drivers/gpu/drm/rcar-du/rcar_du_kms.c +2 -0
index 9c7007d45408..f9a90ff24e6d 100644
@@ -331,6 +331,7 @@ static int rcar_du_encoders_init_one(struct rcar_du_device *rcdu,
 		dev_dbg(rcdu->dev,
 			"connected entity %pOF is disabled, skipping\n",
 			entity);
+		of_node_put(entity);
 		return -ENODEV;
 	}
 
@@ -366,6 +367,7 @@ static int rcar_du_encoders_init_one(struct rcar_du_device *rcdu,
 		dev_warn(rcdu->dev,
 			 "no encoder found for endpoint %pOF, skipping\n",
 			 ep->local_node);
+		of_node_put(entity);
 		return -ENODEV;
 	}
 
drivers/gpu/drm/scheduler/sched_entity.c +26 -13
index e2942c9a11a7..35ddbec1375a 100644
@@ -52,12 +52,12 @@ int drm_sched_entity_init(struct drm_sched_entity *entity,
 {
 	int i;
 
-	if (!(entity && rq_list && num_rq_list > 0 && rq_list[0]))
+	if (!(entity && rq_list && (num_rq_list == 0 || rq_list[0])))
 		return -EINVAL;
 
 	memset(entity, 0, sizeof(struct drm_sched_entity));
 	INIT_LIST_HEAD(&entity->list);
-	entity->rq = rq_list[0];
+	entity->rq = NULL;
 	entity->guilty = guilty;
 	entity->num_rq_list = num_rq_list;
 	entity->rq_list = kcalloc(num_rq_list, sizeof(struct drm_sched_rq *),
@@ -67,6 +67,10 @@ int drm_sched_entity_init(struct drm_sched_entity *entity,
 
 	for (i = 0; i < num_rq_list; ++i)
 		entity->rq_list[i] = rq_list[i];
+
+	if (num_rq_list)
+		entity->rq = rq_list[0];
+
 	entity->last_scheduled = NULL;
 
 	spin_lock_init(&entity->rq_lock);
@@ -165,6 +169,9 @@ long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout)
 	struct task_struct *last_user;
 	long ret = timeout;
 
+	if (!entity->rq)
+		return 0;
+
 	sched = entity->rq->sched;
 	/**
 	 * The client will not queue more IBs during this fini, consume existing
@@ -264,20 +271,24 @@ static void drm_sched_entity_kill_jobs(struct drm_sched_entity *entity)
  */
 void drm_sched_entity_fini(struct drm_sched_entity *entity)
 {
-	struct drm_gpu_scheduler *sched;
+	struct drm_gpu_scheduler *sched = NULL;
 
-	sched = entity->rq->sched;
-	drm_sched_rq_remove_entity(entity->rq, entity);
+	if (entity->rq) {
+		sched = entity->rq->sched;
+		drm_sched_rq_remove_entity(entity->rq, entity);
+	}
 
 	/* Consumption of existing IBs wasn't completed. Forcefully
 	 * remove them here.
 	 */
 	if (spsc_queue_peek(&entity->job_queue)) {
-		/* Park the kernel for a moment to make sure it isn't processing
-		 * our enity.
-		 */
-		kthread_park(sched->thread);
-		kthread_unpark(sched->thread);
+		if (sched) {
+			/* Park the kernel for a moment to make sure it isn't processing
+			 * our enity.
+			 */
+			kthread_park(sched->thread);
+			kthread_unpark(sched->thread);
+		}
 		if (entity->dependency) {
 			dma_fence_remove_callback(entity->dependency,
 						  &entity->cb);
@@ -362,9 +373,11 @@ void drm_sched_entity_set_priority(struct drm_sched_entity *entity,
 	for (i = 0; i < entity->num_rq_list; ++i)
 		drm_sched_entity_set_rq_priority(&entity->rq_list[i], priority);
 
-	drm_sched_rq_remove_entity(entity->rq, entity);
-	drm_sched_entity_set_rq_priority(&entity->rq, priority);
-	drm_sched_rq_add_entity(entity->rq, entity);
+	if (entity->rq) {
+		drm_sched_rq_remove_entity(entity->rq, entity);
+		drm_sched_entity_set_rq_priority(&entity->rq, priority);
+		drm_sched_rq_add_entity(entity->rq, entity);
+	}
 
 	spin_unlock(&entity->rq_lock);
 }
drivers/gpu/drm/vkms/vkms_crtc.c +9 -12
index e747a7d16739..1054f535178a 100644
@@ -4,13 +4,17 @@
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_crtc_helper.h>
 
-static void _vblank_handle(struct vkms_output *output)
+static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer)
 {
+	struct vkms_output *output = container_of(timer, struct vkms_output,
+						  vblank_hrtimer);
 	struct drm_crtc *crtc = &output->crtc;
 	struct vkms_crtc_state *state = to_vkms_crtc_state(crtc->state);
+	int ret_overrun;
 	bool ret;
 
 	spin_lock(&output->lock);
+
 	ret = drm_crtc_handle_vblank(crtc);
 	if (!ret)
 		DRM_ERROR("vkms failure on handling vblank");
@@ -31,19 +35,9 @@ static void _vblank_handle(struct vkms_output *output)
 			DRM_WARN("failed to queue vkms_crc_work_handle");
 	}
 
-	spin_unlock(&output->lock);
-}
-
-static enum hrtimer_restart vkms_vblank_simulate(struct hrtimer *timer)
-{
-	struct vkms_output *output = container_of(timer, struct vkms_output,
-						  vblank_hrtimer);
-	int ret_overrun;
-
-	_vblank_handle(output);
-
 	ret_overrun = hrtimer_forward_now(&output->vblank_hrtimer,
 					  output->period_ns);
+	spin_unlock(&output->lock);
 
 	return HRTIMER_RESTART;
 }
@@ -81,6 +75,9 @@ bool vkms_get_vblank_timestamp(struct drm_device *dev, unsigned int pipe,
 
 	*vblank_time = output->vblank_hrtimer.node.expires;
 
+	if (!in_vblank_irq)
+		*vblank_time -= output->period_ns;
+
 	return true;
 }
 
drivers/hid/intel-ish-hid/ipc/ipc.c +6 -3
index 742191bb24c6..45e33c7ba9a6 100644
@@ -91,7 +91,10 @@ static bool check_generated_interrupt(struct ishtp_device *dev)
 			IPC_INT_FROM_ISH_TO_HOST_CHV_AB(pisr_val);
 	} else {
 		pisr_val = ish_reg_read(dev, IPC_REG_PISR_BXT);
-		interrupt_generated = IPC_INT_FROM_ISH_TO_HOST_BXT(pisr_val);
+		interrupt_generated = !!pisr_val;
+		/* only busy-clear bit is RW, others are RO */
+		if (pisr_val)
+			ish_reg_write(dev, IPC_REG_PISR_BXT, pisr_val);
 	}
 
 	return interrupt_generated;
@@ -839,11 +842,11 @@ int ish_hw_start(struct ishtp_device *dev)
 {
 	ish_set_host_rdy(dev);
 
+	set_host_ready(dev);
+
 	/* After that we can enable ISH DMA operation and wakeup ISHFW */
 	ish_wakeup(dev);
 
-	set_host_ready(dev);
-
 	/* wait for FW-initiated reset flow */
 	if (!dev->recvd_hw_ready)
 		wait_event_interruptible_timeout(dev->wait_hw_ready,
drivers/hid/intel-ish-hid/ishtp/bus.c +3 -1
index 728dc6d4561a..a271d6d169b1 100644
@@ -675,7 +675,8 @@ int ishtp_cl_device_bind(struct ishtp_cl *cl)
 	spin_lock_irqsave(&cl->dev->device_list_lock, flags);
 	list_for_each_entry(cl_device, &cl->dev->device_list,
 			device_link) {
-		if (cl_device->fw_client->client_id == cl->fw_client_id) {
+		if (cl_device->fw_client &&
+		    cl_device->fw_client->client_id == cl->fw_client_id) {
 			cl->device = cl_device;
 			rv = 0;
 			break;
@@ -735,6 +736,7 @@ void ishtp_bus_remove_all_clients(struct ishtp_device *ishtp_dev,
 	spin_lock_irqsave(&ishtp_dev->device_list_lock, flags);
 	list_for_each_entry_safe(cl_device, n, &ishtp_dev->device_list,
 				 device_link) {
+		cl_device->fw_client = NULL;
 		if (warm_reset && cl_device->reference_count)
 			continue;
 
drivers/hwtracing/coresight/coresight-etm-perf.c +3 -3
index abe8249b893b..f21eb28b6782 100644
@@ -177,15 +177,15 @@ static void etm_free_aux(void *data)
 	schedule_work(&event_data->work);
 }
 
-static void *etm_setup_aux(int event_cpu, void **pages,
+static void *etm_setup_aux(struct perf_event *event, void **pages,
 			   int nr_pages, bool overwrite)
 {
-	int cpu;
+	int cpu = event->cpu;
 	cpumask_t *mask;
 	struct coresight_device *sink;
 	struct etm_event_data *event_data = NULL;
 
-	event_data = alloc_event_data(event_cpu);
+	event_data = alloc_event_data(cpu);
 	if (!event_data)
 		return NULL;
 	INIT_WORK(&event_data->work, free_event_data);
drivers/hwtracing/coresight/coresight-etm4x.c +2 -1
index 53e2fb6e86f6..fe76b176974a 100644
@@ -55,7 +55,8 @@ static void etm4_os_unlock(struct etmv4_drvdata *drvdata)
 
 static bool etm4_arch_supported(u8 arch)
 {
-	switch (arch) {
+	/* Mask out the minor version number */
+	switch (arch & 0xf0) {
 	case ETM_ARCH_V4:
 		break;
 	default:
drivers/i2c/busses/i2c-designware-core.h +2 -0
index b4a0b2b99a78..6b4ef1d38fb2 100644
@@ -215,6 +215,7 @@
  * @disable_int: function to disable all interrupts
  * @init: function to initialize the I2C hardware
  * @mode: operation mode - DW_IC_MASTER or DW_IC_SLAVE
+ * @suspended: set to true if the controller is suspended
  *
  * HCNT and LCNT parameters can be used if the platform knows more accurate
  * values than the one computed based only on the input clock frequency.
@@ -270,6 +271,7 @@ struct dw_i2c_dev {
 	int			(*set_sda_hold_time)(struct dw_i2c_dev *dev);
 	int			mode;
 	struct i2c_bus_recovery_info rinfo;
+	bool			suspended;
 };
 
 #define ACCESS_SWAP		0x00000001
drivers/i2c/busses/i2c-designware-master.c +6 -0
index 8d1bc44d2530..bb8e3f149979 100644
@@ -426,6 +426,12 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
 
 	pm_runtime_get_sync(dev->dev);
 
+	if (dev->suspended) {
+		dev_err(dev->dev, "Error %s call while suspended\n", __func__);
+		ret = -ESHUTDOWN;
+		goto done_nolock;
+	}
+
 	reinit_completion(&dev->cmd_complete);
 	dev->msgs = msgs;
 	dev->msgs_num = num;
drivers/i2c/busses/i2c-designware-pcidrv.c +6 -1
index d50f80487214..76810deb2de6 100644
@@ -176,6 +176,7 @@ static int i2c_dw_pci_suspend(struct device *dev)
 	struct pci_dev *pdev = to_pci_dev(dev);
 	struct dw_i2c_dev *i_dev = pci_get_drvdata(pdev);
 
+	i_dev->suspended = true;
 	i_dev->disable(i_dev);
 
 	return 0;
@@ -185,8 +186,12 @@ static int i2c_dw_pci_resume(struct device *dev)
 {
 	struct pci_dev *pdev = to_pci_dev(dev);
 	struct dw_i2c_dev *i_dev = pci_get_drvdata(pdev);
+	int ret;
 
-	return i_dev->init(i_dev);
+	ret = i_dev->init(i_dev);
+	i_dev->suspended = false;
+
+	return ret;
 }
 #endif
 
drivers/i2c/busses/i2c-designware-platdrv.c +3 -0
index 9eaac3be1f63..ead5e7de3e4d 100644
@@ -454,6 +454,8 @@ static int dw_i2c_plat_suspend(struct device *dev)
 {
 	struct dw_i2c_dev *i_dev = dev_get_drvdata(dev);
 
+	i_dev->suspended = true;
+
 	if (i_dev->shared_with_punit)
 		return 0;
 
@@ -471,6 +473,7 @@ static int dw_i2c_plat_resume(struct device *dev)
 		i2c_dw_prepare_clk(i_dev, true);
 
 	i_dev->init(i_dev);
+	i_dev->suspended = false;
 
 	return 0;
 }
drivers/i2c/i2c-core-base.c +5 -4
index 28460f6a60cc..af87a16ac3a5 100644
@@ -430,7 +430,7 @@ static int i2c_device_remove(struct device *dev)
 	dev_pm_clear_wake_irq(&client->dev);
 	device_init_wakeup(&client->dev, false);
 
-	client->irq = 0;
+	client->irq = client->init_irq;
 
 	return status;
 }
@@ -741,10 +741,11 @@ i2c_new_device(struct i2c_adapter *adap, struct i2c_board_info const *info)
 	client->flags = info->flags;
 	client->addr = info->addr;
 
-	client->irq = info->irq;
-	if (!client->irq)
-		client->irq = i2c_dev_irq_from_resources(info->resources,
+	client->init_irq = info->irq;
+	if (!client->init_irq)
+		client->init_irq = i2c_dev_irq_from_resources(info->resources,
 							 info->num_resources);
+	client->irq = client->init_irq;
 
 	strlcpy(client->name, info->type, sizeof(client->name));
 
drivers/i2c/i2c-core-of.c +13 -1
index 6cb7ad608bcd..0f01cdba9d2c 100644
@@ -121,6 +121,17 @@ static int of_dev_node_match(struct device *dev, void *data)
 	return dev->of_node == data;
 }
 
+static int of_dev_or_parent_node_match(struct device *dev, void *data)
+{
+	if (dev->of_node == data)
+		return 1;
+
+	if (dev->parent)
+		return dev->parent->of_node == data;
+
+	return 0;
+}
+
 /* must call put_device() when done with returned i2c_client device */
 struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
 {
@@ -145,7 +156,8 @@ struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node *node)
 	struct device *dev;
 	struct i2c_adapter *adapter;
 
-	dev = bus_find_device(&i2c_bus_type, NULL, node, of_dev_node_match);
+	dev = bus_find_device(&i2c_bus_type, NULL, node,
+			      of_dev_or_parent_node_match);
 	if (!dev)
 		return NULL;
 
drivers/iio/adc/qcom-pm8xxx-xoadc.c +3 -7
index c30c002f1fef..4735f8a1ca9d 100644
@@ -423,18 +423,14 @@ static irqreturn_t pm8xxx_eoc_irq(int irq, void *d)
 static struct pm8xxx_chan_info *
 pm8xxx_get_channel(struct pm8xxx_xoadc *adc, u8 chan)
 {
-	struct pm8xxx_chan_info *ch;
 	int i;
 
 	for (i = 0; i < adc->nchans; i++) {
-		ch = &adc->chans[i];
+		struct pm8xxx_chan_info *ch = &adc->chans[i];
 		if (ch->hwchan->amux_channel == chan)
-			break;
+			return ch;
 	}
-	if (i == adc->nchans)
-		return NULL;
-
-	return ch;
+	return NULL;
 }
 
 static int pm8xxx_read_channel_rsv(struct pm8xxx_xoadc *adc,
drivers/infiniband/hw/cxgb4/cm.c +3 -2
index 8221813219e5..25a81fbb0d4d 100644
@@ -1903,8 +1903,10 @@ static int abort_rpl(struct c4iw_dev *dev, struct sk_buff *skb)
 	}
 	mutex_unlock(&ep->com.mutex);
 
-	if (release)
+	if (release) {
+		close_complete_upcall(ep, -ECONNRESET);
 		release_ep_resources(ep);
+	}
 	c4iw_put_ep(&ep->com);
 	return 0;
 }
@@ -3606,7 +3608,6 @@ int c4iw_ep_disconnect(struct c4iw_ep *ep, int abrupt, gfp_t gfp)
 	if (close) {
 		if (abrupt) {
 			set_bit(EP_DISC_ABORT, &ep->com.history);
-			close_complete_upcall(ep, -ECONNRESET);
 			ret = send_abort(ep);
 		} else {
 			set_bit(EP_DISC_CLOSE, &ep->com.history);
drivers/infiniband/hw/mlx4/cm.c +1 -1
index fedaf8260105..8c79a480f2b7 100644
@@ -39,7 +39,7 @@
 
 #include "mlx4_ib.h"
 
-#define CM_CLEANUP_CACHE_TIMEOUT  (5 * HZ)
+#define CM_CLEANUP_CACHE_TIMEOUT  (30 * HZ)
 
 struct id_map_entry {
 	struct rb_node node;
drivers/input/misc/soc_button_array.c +1 -1
index 23520df7650f..55cd6e0b409c 100644
@@ -373,7 +373,7 @@ static struct soc_button_info soc_button_PNP0C40[] = {
 	{ "home", 1, EV_KEY, KEY_LEFTMETA, false, true },
 	{ "volume_up", 2, EV_KEY, KEY_VOLUMEUP, true, false },
 	{ "volume_down", 3, EV_KEY, KEY_VOLUMEDOWN, true, false },
-	{ "rotation_lock", 4, EV_SW, SW_ROTATE_LOCK, false, false },
+	{ "rotation_lock", 4, EV_KEY, KEY_ROTATE_LOCK_TOGGLE, false, false },
 	{ }
 };
 
drivers/iommu/intel-iommu.c +2 -1
index 78188bf7e90d..dbd6824dfffa 100644
@@ -2485,7 +2485,8 @@ static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
 	if (dev && dev_is_pci(dev)) {
 		struct pci_dev *pdev = to_pci_dev(info->dev);
 
-		if (!pci_ats_disabled() &&
+		if (!pdev->untrusted &&
+		    !pci_ats_disabled() &&
 		    ecap_dev_iotlb_support(iommu->ecap) &&
 		    pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ATS) &&
 		    dmar_find_matched_atsr_unit(pdev))
drivers/iommu/io-pgtable-arm-v7s.c +2 -1
index 1b9e40a203e0..18a8330e1882 100644
@@ -228,7 +228,8 @@ static void *__arm_v7s_alloc_table(int lvl, gfp_t gfp,
 		if (dma != phys)
 			goto out_unmap;
 	}
-	kmemleak_ignore(table);
+	if (lvl == 2)
+		kmemleak_ignore(table);
 	return table;
 
 out_unmap:
drivers/leds/leds-lp55xx-common.c +2 -2
index 3d79a6380761..723f2f17497a 100644
@@ -201,7 +201,7 @@ static void lp55xx_firmware_loaded(const struct firmware *fw, void *context)
 
 	if (!fw) {
 		dev_err(dev, "firmware request failed\n");
-		goto out;
+		return;
 	}
 
 	/* handling firmware data is chip dependent */
@@ -214,9 +214,9 @@ static void lp55xx_firmware_loaded(const struct firmware *fw, void *context)
 
 	mutex_unlock(&chip->lock);
 
-out:
 	/* firmware should be released for other channel use */
 	release_firmware(chip->fw);
+	chip->fw = NULL;
 }
 
 static int lp55xx_request_firmware(struct lp55xx_chip *chip)
drivers/md/bcache/sysfs.c +20 -5
index 557a8a3270a1..e5daf91310f6 100644
@@ -287,8 +287,12 @@ STORE(__cached_dev)
 	sysfs_strtoul_clamp(writeback_rate_update_seconds,
 			    dc->writeback_rate_update_seconds,
 			    1, WRITEBACK_RATE_UPDATE_SECS_MAX);
-	d_strtoul(writeback_rate_i_term_inverse);
-	d_strtoul_nonzero(writeback_rate_p_term_inverse);
+	sysfs_strtoul_clamp(writeback_rate_i_term_inverse,
+			    dc->writeback_rate_i_term_inverse,
+			    1, UINT_MAX);
+	sysfs_strtoul_clamp(writeback_rate_p_term_inverse,
+			    dc->writeback_rate_p_term_inverse,
+			    1, UINT_MAX);
 	d_strtoul_nonzero(writeback_rate_minimum);
 
 	sysfs_strtoul_clamp(io_error_limit, dc->error_limit, 0, INT_MAX);
@@ -299,7 +303,9 @@ STORE(__cached_dev)
 		dc->io_disable = v ? 1 : 0;
 	}
 
-	d_strtoi_h(sequential_cutoff);
+	sysfs_strtoul_clamp(sequential_cutoff,
+			    dc->sequential_cutoff,
+			    0, UINT_MAX);
 	d_strtoi_h(readahead);
 
 	if (attr == &sysfs_clear_stats)
@@ -778,8 +784,17 @@ STORE(__bch_cache_set)
 		c->error_limit = strtoul_or_return(buf);
 
 	/* See count_io_errors() for why 88 */
-	if (attr == &sysfs_io_error_halflife)
-		c->error_decay = strtoul_or_return(buf) / 88;
+	if (attr == &sysfs_io_error_halflife) {
+		unsigned long v = 0;
+		ssize_t ret;
+
+		ret = strtoul_safe_clamp(buf, v, 0, UINT_MAX);
+		if (!ret) {
+			c->error_decay = v / 88;
+			return size;
+		}
+		return ret;
+	}
 
 	if (attr == &sysfs_io_disable) {
 		v = strtoul_or_return(buf);
drivers/md/bcache/sysfs.h +10 -3
index 3fe82425859c..0ad2715a884e 100644
@@ -81,9 +81,16 @@ do {									\
 
 #define sysfs_strtoul_clamp(file, var, min, max)			\
 do {									\
-	if (attr == &sysfs_ ## file)					\
-		return strtoul_safe_clamp(buf, var, min, max)		\
-			?: (ssize_t) size;				\
+	if (attr == &sysfs_ ## file) {					\
+		unsigned long v = 0;					\
+		ssize_t ret;						\
+		ret = strtoul_safe_clamp(buf, v, min, max);		\
+		if (!ret) {						\
+			var = v;					\
+			return size;					\
+		}							\
+		return ret;						\
+	}								\
 } while (0)
 
 #define strtoul_or_return(cp)						\
drivers/md/dm-thin.c +13 -0
index e83b63608262..254c26eb963a 100644
@@ -3283,6 +3283,13 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
 	as.argc = argc;
 	as.argv = argv;
 
+	/* make sure metadata and data are different devices */
+	if (!strcmp(argv[0], argv[1])) {
+		ti->error = "Error setting metadata or data device";
+		r = -EINVAL;
+		goto out_unlock;
+	}
+
 	/*
 	 * Set default pool features.
 	 */
@@ -4167,6 +4174,12 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
 	tc->sort_bio_list = RB_ROOT;
 
 	if (argc == 3) {
+		if (!strcmp(argv[0], argv[2])) {
+			ti->error = "Error setting origin device";
+			r = -EINVAL;
+			goto bad_origin_dev;
+		}
+
 		r = dm_get_device(ti, argv[2], FMODE_READ, &origin_dev);
 		if (r) {
 			ti->error = "Error opening origin device";
drivers/media/i2c/mt9m111.c +2 -0
index d639b9bcf64a..7a759b4b88cf 100644
@@ -1273,6 +1273,8 @@ static int mt9m111_probe(struct i2c_client *client,
 	mt9m111->rect.top	= MT9M111_MIN_DARK_ROWS;
 	mt9m111->rect.width	= MT9M111_MAX_WIDTH;
 	mt9m111->rect.height	= MT9M111_MAX_HEIGHT;
+	mt9m111->width		= mt9m111->rect.width;
+	mt9m111->height		= mt9m111->rect.height;
 	mt9m111->fmt		= &mt9m111_colour_fmts[0];
 	mt9m111->lastpage	= -1;
 	mutex_init(&mt9m111->power_lock);
drivers/media/i2c/ov7740.c +5 -2
index 177688afd9a6..8835b831cdc0 100644
@@ -1101,6 +1101,9 @@ static int ov7740_probe(struct i2c_client *client,
 	if (ret)
 		return ret;
 
+	pm_runtime_set_active(&client->dev);
+	pm_runtime_enable(&client->dev);
+
 	ret = ov7740_detect(ov7740);
 	if (ret)
 		goto error_detect;
@@ -1123,8 +1126,6 @@ static int ov7740_probe(struct i2c_client *client,
 	if (ret)
 		goto error_async_register;
 
-	pm_runtime_set_active(&client->dev);
-	pm_runtime_enable(&client->dev);
 	pm_runtime_idle(&client->dev);
 
 	return 0;
@@ -1134,6 +1135,8 @@ static int ov7740_probe(struct i2c_client *client,
 error_init_controls:
 	ov7740_free_controls(ov7740);
 error_detect:
+	pm_runtime_disable(&client->dev);
+	pm_runtime_set_suspended(&client->dev);
 	ov7740_set_power(ov7740, 0);
 	media_entity_cleanup(&ov7740->subdev.entity);
 
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c +20 -20
index 2a5d5002c27e..f761e4d8bf2a 100644
@@ -702,7 +702,7 @@ static void mtk_jpeg_buf_queue(struct vb2_buffer *vb)
 	v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, to_vb2_v4l2_buffer(vb));
 }
 
-static void *mtk_jpeg_buf_remove(struct mtk_jpeg_ctx *ctx,
+static struct vb2_v4l2_buffer *mtk_jpeg_buf_remove(struct mtk_jpeg_ctx *ctx,
 				 enum v4l2_buf_type type)
 {
 	if (V4L2_TYPE_IS_OUTPUT(type))
@@ -714,7 +714,7 @@ static void *mtk_jpeg_buf_remove(struct mtk_jpeg_ctx *ctx,
 static int mtk_jpeg_start_streaming(struct vb2_queue *q, unsigned int count)
 {
 	struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(q);
-	struct vb2_buffer *vb;
+	struct vb2_v4l2_buffer *vb;
 	int ret = 0;
 
 	ret = pm_runtime_get_sync(ctx->jpeg->dev);
@@ -724,14 +724,14 @@ static int mtk_jpeg_start_streaming(struct vb2_queue *q, unsigned int count)
 	return 0;
 err:
 	while ((vb = mtk_jpeg_buf_remove(ctx, q->type)))
-		v4l2_m2m_buf_done(to_vb2_v4l2_buffer(vb), VB2_BUF_STATE_QUEUED);
+		v4l2_m2m_buf_done(vb, VB2_BUF_STATE_QUEUED);
 	return ret;
 }
 
 static void mtk_jpeg_stop_streaming(struct vb2_queue *q)
 {
 	struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(q);
-	struct vb2_buffer *vb;
+	struct vb2_v4l2_buffer *vb;
 
 	/*
 	 * STREAMOFF is an acknowledgment for source change event.
@@ -743,7 +743,7 @@ static void mtk_jpeg_stop_streaming(struct vb2_queue *q)
 		struct mtk_jpeg_src_buf *src_buf;
 
 		vb = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
-		src_buf = mtk_jpeg_vb2_to_srcbuf(vb);
+		src_buf = mtk_jpeg_vb2_to_srcbuf(&vb->vb2_buf);
 		mtk_jpeg_set_queue_data(ctx, &src_buf->dec_param);
 		ctx->state = MTK_JPEG_RUNNING;
 	} else if (V4L2_TYPE_IS_OUTPUT(q->type)) {
@@ -751,7 +751,7 @@ static void mtk_jpeg_stop_streaming(struct vb2_queue *q)
 	}
 
 	while ((vb = mtk_jpeg_buf_remove(ctx, q->type)))
-		v4l2_m2m_buf_done(to_vb2_v4l2_buffer(vb), VB2_BUF_STATE_ERROR);
+		v4l2_m2m_buf_done(vb, VB2_BUF_STATE_ERROR);
 
 	pm_runtime_put_sync(ctx->jpeg->dev);
 }
@@ -807,7 +807,7 @@ static void mtk_jpeg_device_run(void *priv)
 {
 	struct mtk_jpeg_ctx *ctx = priv;
 	struct mtk_jpeg_dev *jpeg = ctx->jpeg;
-	struct vb2_buffer *src_buf, *dst_buf;
+	struct vb2_v4l2_buffer *src_buf, *dst_buf;
 	enum vb2_buffer_state buf_state = VB2_BUF_STATE_ERROR;
 	unsigned long flags;
 	struct mtk_jpeg_src_buf *jpeg_src_buf;
@@ -817,11 +817,11 @@ static void mtk_jpeg_device_run(void *priv)
 
 	src_buf = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
 	dst_buf = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
-	jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(src_buf);
+	jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(&src_buf->vb2_buf);
 
 	if (jpeg_src_buf->flags & MTK_JPEG_BUF_FLAGS_LAST_FRAME) {
-		for (i = 0; i < dst_buf->num_planes; i++)
-			vb2_set_plane_payload(dst_buf, i, 0);
+		for (i = 0; i < dst_buf->vb2_buf.num_planes; i++)
+			vb2_set_plane_payload(&dst_buf->vb2_buf, i, 0);
 		buf_state = VB2_BUF_STATE_DONE;
 		goto dec_end;
 	}
@@ -833,8 +833,8 @@ static void mtk_jpeg_device_run(void *priv)
 		return;
 	}
 
-	mtk_jpeg_set_dec_src(ctx, src_buf, &bs);
-	if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param, dst_buf, &fb))
+	mtk_jpeg_set_dec_src(ctx, &src_buf->vb2_buf, &bs);
+	if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param, &dst_buf->vb2_buf, &fb))
 		goto dec_end;
 
 	spin_lock_irqsave(&jpeg->hw_lock, flags);
@@ -849,8 +849,8 @@ static void mtk_jpeg_device_run(void *priv)
 dec_end:
 	v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
 	v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
-	v4l2_m2m_buf_done(to_vb2_v4l2_buffer(src_buf), buf_state);
-	v4l2_m2m_buf_done(to_vb2_v4l2_buffer(dst_buf), buf_state);
+	v4l2_m2m_buf_done(src_buf, buf_state);
+	v4l2_m2m_buf_done(dst_buf, buf_state);
 	v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx);
 }
 
@@ -921,7 +921,7 @@ static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
 {
 	struct mtk_jpeg_dev *jpeg = priv;
 	struct mtk_jpeg_ctx *ctx;
-	struct vb2_buffer *src_buf, *dst_buf;
+	struct vb2_v4l2_buffer *src_buf, *dst_buf;
 	struct mtk_jpeg_src_buf *jpeg_src_buf;
 	enum vb2_buffer_state buf_state = VB2_BUF_STATE_ERROR;
 	u32	dec_irq_ret;
@@ -938,7 +938,7 @@ static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
 
 	src_buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx);
 	dst_buf = v4l2_m2m_dst_buf_remove(ctx->fh.m2m_ctx);
-	jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(src_buf);
+	jpeg_src_buf = mtk_jpeg_vb2_to_srcbuf(&src_buf->vb2_buf);
 
 	if (dec_irq_ret >= MTK_JPEG_DEC_RESULT_UNDERFLOW)
 		mtk_jpeg_dec_reset(jpeg->dec_reg_base);
@@ -948,15 +948,15 @@ static irqreturn_t mtk_jpeg_dec_irq(int irq, void *priv)
 		goto dec_end;
 	}
 
-	for (i = 0; i < dst_buf->num_planes; i++)
-		vb2_set_plane_payload(dst_buf, i,
+	for (i = 0; i < dst_buf->vb2_buf.num_planes; i++)
+		vb2_set_plane_payload(&dst_buf->vb2_buf, i,
 				      jpeg_src_buf->dec_param.comp_size[i]);
 
 	buf_state = VB2_BUF_STATE_DONE;
 
 dec_end:
-	v4l2_m2m_buf_done(to_vb2_v4l2_buffer(src_buf), buf_state);
-	v4l2_m2m_buf_done(to_vb2_v4l2_buffer(dst_buf), buf_state);
+	v4l2_m2m_buf_done(src_buf, buf_state);
+	v4l2_m2m_buf_done(dst_buf, buf_state);
 	v4l2_m2m_job_finish(jpeg->m2m_dev, ctx->fh.m2m_ctx);
 	return IRQ_HANDLED;
 }
drivers/media/platform/mx2_emmaprp.c +3 -3
index 27b078cf98e3..f60f499c596b 100644
@@ -274,7 +274,7 @@ static void emmaprp_device_run(void *priv)
 {
 	struct emmaprp_ctx *ctx = priv;
 	struct emmaprp_q_data *s_q_data, *d_q_data;
-	struct vb2_buffer *src_buf, *dst_buf;
+	struct vb2_v4l2_buffer *src_buf, *dst_buf;
 	struct emmaprp_dev *pcdev = ctx->dev;
 	unsigned int s_width, s_height;
 	unsigned int d_width, d_height;
@@ -294,8 +294,8 @@ static void emmaprp_device_run(void *priv)
 	d_height = d_q_data->height;
 	d_size = d_width * d_height;
 
-	p_in = vb2_dma_contig_plane_dma_addr(src_buf, 0);
-	p_out = vb2_dma_contig_plane_dma_addr(dst_buf, 0);
+	p_in = vb2_dma_contig_plane_dma_addr(&src_buf->vb2_buf, 0);
+	p_out = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0);
 	if (!p_in || !p_out) {
 		v4l2_err(&pcdev->v4l2_dev,
 			 "Acquiring kernel pointers to buffers failed\n");
drivers/media/platform/rcar-vin/rcar-core.c +6 -2
index f0719ce24b97..aef8d8dab6ab 100644
@@ -131,9 +131,13 @@ static int rvin_group_link_notify(struct media_link *link, u32 flags,
 	    !is_media_entity_v4l2_video_device(link->sink->entity))
 		return 0;
 
-	/* If any entity is in use don't allow link changes. */
+	/*
+	 * Don't allow link changes if any entity in the graph is
+	 * streaming, modifying the CHSEL register fields can disrupt
+	 * running streams.
+	 */
 	media_device_for_each_entity(entity, &group->mdev)
-		if (entity->use_count)
+		if (entity->stream_count)
 			return -EBUSY;
 
 	mutex_lock(&group->lock);
drivers/media/platform/rockchip/rga/rga.c +3 -3
index 5c653287185f..b096227a9722 100644
@@ -43,7 +43,7 @@ static void device_run(void *prv)
 {
 	struct rga_ctx *ctx = prv;
 	struct rockchip_rga *rga = ctx->rga;
-	struct vb2_buffer *src, *dst;
+	struct vb2_v4l2_buffer *src, *dst;
 	unsigned long flags;
 
 	spin_lock_irqsave(&rga->ctrl_lock, flags);
@@ -53,8 +53,8 @@ static void device_run(void *prv)
 	src = v4l2_m2m_next_src_buf(ctx->fh.m2m_ctx);
 	dst = v4l2_m2m_next_dst_buf(ctx->fh.m2m_ctx);
 
-	rga_buf_map(src);
-	rga_buf_map(dst);
+	rga_buf_map(&src->vb2_buf);
+	rga_buf_map(&dst->vb2_buf);
 
 	rga_hw_start(rga);
 
drivers/media/platform/s5p-g2d/g2d.c +3 -3
index 57ab1d1085d1..971c47165010 100644
@@ -513,7 +513,7 @@ static void device_run(void *prv)
 {
 	struct g2d_ctx *ctx = prv;
 	struct g2d_dev *dev = ctx->dev;
-	struct vb2_buffer *src, *dst;
+	struct vb2_v4l2_buffer *src, *dst;
 	unsigned long flags;
 	u32 cmd = 0;
 
@@ -528,10 +528,10 @@ static void device_run(void *prv)
 	spin_lock_irqsave(&dev->ctrl_lock, flags);
 
 	g2d_set_src_size(dev, &ctx->in);
-	g2d_set_src_addr(dev, vb2_dma_contig_plane_dma_addr(src, 0));
+	g2d_set_src_addr(dev, vb2_dma_contig_plane_dma_addr(&src->vb2_buf, 0));
 
 	g2d_set_dst_size(dev, &ctx->out);
-	g2d_set_dst_addr(dev, vb2_dma_contig_plane_dma_addr(dst, 0));
+	g2d_set_dst_addr(dev, vb2_dma_contig_plane_dma_addr(&dst->vb2_buf, 0));
 
 	g2d_set_rop4(dev, ctx->rop);
 	g2d_set_flip(dev, ctx->flip);
drivers/media/platform/s5p-jpeg/jpeg-core.c +30 -27

191 lines not on this page · raw message

drivers/media/platform/sh_veu.c +2 -2
index 09ae64a0004c..d277cc674349 100644
@@ -273,13 +273,13 @@ static void sh_veu_process(struct sh_veu_dev *veu,
 static void sh_veu_device_run(void *priv)
 {
 	struct sh_veu_dev *veu = priv;
-	struct vb2_buffer *src_buf, *dst_buf;
+	struct vb2_v4l2_buffer *src_buf, *dst_buf;
 
 	src_buf = v4l2_m2m_next_src_buf(veu->m2m_ctx);
 	dst_buf = v4l2_m2m_next_dst_buf(veu->m2m_ctx);
 
 	if (src_buf && dst_buf)
-		sh_veu_process(veu, src_buf, dst_buf);
+		sh_veu_process(veu, &src_buf->vb2_buf, &dst_buf->vb2_buf);
 }
 
 		/* ========== video ioctls ========== */
drivers/mmc/host/omap.c +1 -1
index c60a7625b1fa..b2873a2432b6 100644
@@ -920,7 +920,7 @@ static inline void set_cmd_timeout(struct mmc_omap_host *host, struct mmc_reques
 	reg &= ~(1 << 5);
 	OMAP_MMC_WRITE(host, SDIO, reg);
 	/* Set maximum timeout */
-	OMAP_MMC_WRITE(host, CTO, 0xff);
+	OMAP_MMC_WRITE(host, CTO, 0xfd);
 }
 
 static inline void set_data_timeout(struct mmc_omap_host *host, struct mmc_request *req)
drivers/net/dsa/mv88e6xxx/chip.c +8 -0
index 4a0ec8e87c7a..6cba05a80892 100644
@@ -442,12 +442,20 @@ static int mv88e6xxx_g1_irq_setup_common(struct mv88e6xxx_chip *chip)
 
 static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip)
 {
+	static struct lock_class_key lock_key;
+	static struct lock_class_key request_key;
 	int err;
 
 	err = mv88e6xxx_g1_irq_setup_common(chip);
 	if (err)
 		return err;
 
+	/* These lock classes tells lockdep that global 1 irqs are in
+	 * a different category than their parent GPIO, so it won't
+	 * report false recursion.
+	 */
+	irq_set_lockdep_class(chip->irq, &lock_key, &request_key);
+
 	err = request_threaded_irq(chip->irq, NULL,
 				   mv88e6xxx_g1_irq_thread_fn,
 				   IRQF_ONESHOT | IRQF_SHARED,
drivers/net/dsa/mv88e6xxx/port.c +2 -0
index 41eee62fed25..c44b2822e4dd 100644
@@ -480,6 +480,8 @@ int mv88e6390_port_set_cmode(struct mv88e6xxx_chip *chip, int port,
 			     phy_interface_t mode)
 {
 	switch (mode) {
+	case PHY_INTERFACE_MODE_NA:
+		return 0;
 	case PHY_INTERFACE_MODE_XGMII:
 	case PHY_INTERFACE_MODE_XAUI:
 	case PHY_INTERFACE_MODE_RXAUI:
drivers/net/ethernet/cisco/enic/enic_main.c +3 -3
index 9a7f70db20c7..733d9172425b 100644
@@ -119,7 +119,7 @@ static void enic_init_affinity_hint(struct enic *enic)
 
 	for (i = 0; i < enic->intr_count; i++) {
 		if (enic_is_err_intr(enic, i) || enic_is_notify_intr(enic, i) ||
-		    (enic->msix[i].affinity_mask &&
+		    (cpumask_available(enic->msix[i].affinity_mask) &&
 		     !cpumask_empty(enic->msix[i].affinity_mask)))
 			continue;
 		if (zalloc_cpumask_var(&enic->msix[i].affinity_mask,
@@ -148,7 +148,7 @@ static void enic_set_affinity_hint(struct enic *enic)
 	for (i = 0; i < enic->intr_count; i++) {
 		if (enic_is_err_intr(enic, i)		||
 		    enic_is_notify_intr(enic, i)	||
-		    !enic->msix[i].affinity_mask	||
+		    !cpumask_available(enic->msix[i].affinity_mask) ||
 		    cpumask_empty(enic->msix[i].affinity_mask))
 			continue;
 		err = irq_set_affinity_hint(enic->msix_entry[i].vector,
@@ -161,7 +161,7 @@ static void enic_set_affinity_hint(struct enic *enic)
 	for (i = 0; i < enic->wq_count; i++) {
 		int wq_intr = enic_msix_wq_intr(enic, i);
 
-		if (enic->msix[wq_intr].affinity_mask &&
+		if (cpumask_available(enic->msix[wq_intr].affinity_mask) &&
 		    !cpumask_empty(enic->msix[wq_intr].affinity_mask))
 			netif_set_xps_queue(enic->netdev,
 					    enic->msix[wq_intr].affinity_mask,
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c +20 -16
index efb6c1a25171..3ea72e4d9dc4 100644
@@ -1094,10 +1094,10 @@ static int hclge_log_rocee_ovf_error(struct hclge_dev *hdev)
 	return 0;
 }
 
-static int hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
+static enum hnae3_reset_type
+hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
 {
-	enum hnae3_reset_type reset_type = HNAE3_FUNC_RESET;
-	struct hnae3_ae_dev *ae_dev = hdev->ae_dev;
+	enum hnae3_reset_type reset_type = HNAE3_NONE_RESET;
 	struct device *dev = &hdev->pdev->dev;
 	struct hclge_desc desc[2];
 	unsigned int status;
@@ -1110,17 +1110,20 @@ static int hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
 	if (ret) {
 		dev_err(dev, "failed(%d) to query ROCEE RAS INT SRC\n", ret);
 		/* reset everything for now */
-		HCLGE_SET_DEFAULT_RESET_REQUEST(HNAE3_GLOBAL_RESET);
-		return ret;
+		return HNAE3_GLOBAL_RESET;
 	}
 
 	status = le32_to_cpu(desc[0].data[0]);
 
-	if (status & HCLGE_ROCEE_RERR_INT_MASK)
+	if (status & HCLGE_ROCEE_RERR_INT_MASK) {
 		dev_warn(dev, "ROCEE RAS AXI rresp error\n");
+		reset_type = HNAE3_FUNC_RESET;
+	}
 
-	if (status & HCLGE_ROCEE_BERR_INT_MASK)
+	if (status & HCLGE_ROCEE_BERR_INT_MASK) {
 		dev_warn(dev, "ROCEE RAS AXI bresp error\n");
+		reset_type = HNAE3_FUNC_RESET;
+	}
 
 	if (status & HCLGE_ROCEE_ECC_INT_MASK) {
 		dev_warn(dev, "ROCEE RAS 2bit ECC error\n");
@@ -1132,9 +1135,9 @@ static int hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
 		if (ret) {
 			dev_err(dev, "failed(%d) to process ovf error\n", ret);
 			/* reset everything for now */
-			HCLGE_SET_DEFAULT_RESET_REQUEST(HNAE3_GLOBAL_RESET);
-			return ret;
+			return HNAE3_GLOBAL_RESET;
 		}
+		reset_type = HNAE3_FUNC_RESET;
 	}
 
 	/* clear error status */
@@ -1143,12 +1146,10 @@ static int hclge_log_and_clear_rocee_ras_error(struct hclge_dev *hdev)
 	if (ret) {
 		dev_err(dev, "failed(%d) to clear ROCEE RAS error\n", ret);
 		/* reset everything for now */
-		reset_type = HNAE3_GLOBAL_RESET;
+		return HNAE3_GLOBAL_RESET;
 	}
 
-	HCLGE_SET_DEFAULT_RESET_REQUEST(reset_type);
-
-	return ret;
+	return reset_type;
 }
 
 static int hclge_config_rocee_ras_interrupt(struct hclge_dev *hdev, bool en)
@@ -1178,15 +1179,18 @@ static int hclge_config_rocee_ras_interrupt(struct hclge_dev *hdev, bool en)
 	return ret;
 }
 
-static int hclge_handle_rocee_ras_error(struct hnae3_ae_dev *ae_dev)
+static void hclge_handle_rocee_ras_error(struct hnae3_ae_dev *ae_dev)
 {
+	enum hnae3_reset_type reset_type = HNAE3_NONE_RESET;
 	struct hclge_dev *hdev = ae_dev->priv;
 
 	if (test_bit(HCLGE_STATE_RST_HANDLING, &hdev->state) ||
 	    hdev->pdev->revision < 0x21)
-		return HNAE3_NONE_RESET;
+		return;
 
-	return hclge_log_and_clear_rocee_ras_error(hdev);
+	reset_type = hclge_log_and_clear_rocee_ras_error(hdev);
+	if (reset_type != HNAE3_NONE_RESET)
+		HCLGE_SET_DEFAULT_RESET_REQUEST(reset_type);
 }
 
 static const struct hclge_hw_blk hw_blk[] = {
drivers/net/ethernet/intel/e1000e/netdev.c +10 -11
index 189f231075c2..7acc61e4f645 100644
@@ -2106,7 +2106,7 @@ static int e1000_request_msix(struct e1000_adapter *adapter)
 	if (strlen(netdev->name) < (IFNAMSIZ - 5))
 		snprintf(adapter->rx_ring->name,
 			 sizeof(adapter->rx_ring->name) - 1,
-			 "%s-rx-0", netdev->name);
+			 "%.14s-rx-0", netdev->name);
 	else
 		memcpy(adapter->rx_ring->name, netdev->name, IFNAMSIZ);
 	err = request_irq(adapter->msix_entries[vector].vector,
@@ -2122,7 +2122,7 @@ static int e1000_request_msix(struct e1000_adapter *adapter)
 	if (strlen(netdev->name) < (IFNAMSIZ - 5))
 		snprintf(adapter->tx_ring->name,
[… more lines in the raw message]

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

drivers/net/ethernet/intel/ice/ice_switch.c +13 -2
index 2e5693107fa4..8d602247eb44 100644

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

drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +11 -6
index 16066c2d5b3a..931beac3359d 100644

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

drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +3 -0
index 47233b9a4f81..e6099f51d25f 100644

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

drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +11 -6
index 5b492b67f4e1..13c48883ed61 100644

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

drivers/net/ethernet/mellanox/mlxsw/spectrum.c +2 -2
index b65e274b02e9..cbdee5164be7 100644

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

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +3 -3
index 685d20472358..019ab99e65bb 100644

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

drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c +1 -1
index 2293e21f789f..cc60b3fb0892 100644

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

drivers/net/phy/phy-c45.c +8 -2
index 03af927fa5ad..e39bf0428dd9 100644

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

drivers/net/phy/phy_device.c +9 -4
index 739434fe04fa..adf79614c2db 100644

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

drivers/net/veth.c +2 -1
index f412ea1cef18..b203d1867959 100644

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

drivers/net/wireless/ath/ath10k/ce.c +13 -13
index 2a5668b4f6bc..1a1ea4bbf8a0 100644

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

drivers/net/wireless/ath/ath10k/ce.h +1 -1
index ead9987c3259..463e2fc8b501 100644

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

drivers/net/wireless/ath/ath10k/debugfs_sta.c +4 -3
index 4778a455d81a..068f1a7e07d3 100644

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

drivers/net/wireless/ath/ath10k/htt_rx.c +9 -3
index f42bac204ef8..ecf34ce7acf0 100644

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

drivers/net/wireless/ath/ath10k/wmi.h +1 -1
index 2034ccc7cc72..1d5d0209ebeb 100644

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

drivers/net/wireless/ath/wil6210/cfg80211.c +11 -3
index 9b2f9f543952..5a44f9d0ff02 100644

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

drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c +1 -1
index 1f1e95a15a17..0ce1d8174e6d 100644

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

drivers/net/wireless/intel/iwlwifi/mvm/fw.c +14 -6
index 0d6c313b6669..19ec55cef802 100644

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

drivers/net/wireless/intel/iwlwifi/pcie/rx.c +8 -3
index 9e850c25877b..c596c7b13504 100644

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

drivers/net/wireless/marvell/mwifiex/cfg80211.c +7 -3
index 1467af22e394..883752f640b4 100644

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

drivers/net/wireless/mediatek/mt76/eeprom.c +16 -8
index 530e5593765c..a1529920d877 100644

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

drivers/net/wireless/mediatek/mt76/usb.c +2 -9
index 09923cedd039..61cde0f9f58f 100644

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

drivers/net/wireless/mediatek/mt7601u/eeprom.h +1 -1
index 662d12703b69..57b503ae63f1 100644

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

drivers/net/wireless/ti/wlcore/main.c +5 -2
index 26b187336875..2e12de813a5b 100644

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

drivers/nvme/host/fc.c +4 -1
index 89accc76d71c..c37d5bbd72ab 100644

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

drivers/nvme/target/core.c +10 -10
index 88d260f31835..02c63c463222 100644

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

drivers/pci/controller/pcie-mediatek.c +2 -3
index 55e471c18e8d..c42fe5c4319f 100644

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

drivers/pci/hotplug/pciehp_hpc.c +1 -1
index c0fb64ace05a..8bfcb8cd0900 100644

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

drivers/pci/pcie/pme.c +15 -7
index 1a8b85051b1b..efa5b552914b 100644

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

drivers/perf/arm_spe_pmu.c +3 -3
index 8e46a9dad2fa..7cb766dafe85 100644

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

drivers/pinctrl/meson/pinctrl-meson.c +12 -10
index ea87d739f534..a4ae1ac5369e 100644

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

drivers/pinctrl/meson/pinctrl-meson8b.c +5 -1
index 0f140a802137..7f76000cc12e 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a77990.c +18 -14
index e40908dc37e0..1ce286f7b286 100644

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

drivers/pinctrl/sh-pfc/pfc-r8a77995.c +7 -4
index 84d78db381e3..9e377e3b9cb3 100644

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

drivers/platform/mellanox/mlxreg-hotplug.c +3 -2
index b6d44550d98c..eca16d00e310 100644

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

drivers/platform/x86/ideapad-laptop.c +1 -1
index 1589dffab9fa..8b53a9ceb897 100644

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

drivers/platform/x86/intel-hid.c +5 -2
index e28bcf61b126..bc0d55a59015 100644

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

drivers/platform/x86/intel_pmc_core.c +2 -1
index 22dbf115782e..c37e74ee609d 100644

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

drivers/platform/x86/intel_pmc_core.h +1 -1
index 89554cba5758..1a0104d2cbf0 100644

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

drivers/regulator/act8865-regulator.c +3 -2
index 21e20483bd91..e0239cf3f56d 100644

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

drivers/regulator/core.c +2 -0
index b9d7b45c7295..e2caf11598c7 100644

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

drivers/regulator/mcp16502.c +1 -0
index 3479ae009b0b..0fc4963bd5b0 100644

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

drivers/s390/net/ism_drv.c +9 -3
index ed8e58f09054..3e132592c1fe 100644

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

drivers/scsi/bnx2fc/bnx2fc_fcoe.c +1 -1
index 2e4e7159ebf9..a75e74ad1698 100644

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

drivers/scsi/fcoe/fcoe.c +1 -1
index cd19be3f3405..8ba8862d3292 100644

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

drivers/scsi/fcoe/fcoe_ctlr.c +5 -2
index 54da3166da8d..7dc4ffa24430 100644

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

drivers/scsi/fcoe/fcoe_transport.c +1 -1
index f4909cd206d3..f15d5e1d56b1 100644

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

drivers/scsi/hisi_sas/hisi_sas_main.c +12 -1
index bc17fa0d8375..62d158574281 100644

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

drivers/scsi/megaraid/megaraid_sas_base.c +1 -0
index fcbff83c0097..c9811d1aa007 100644

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

drivers/scsi/qedf/qedf_main.c +1 -1
index 9bbc19fc190b..9f9431a4cc0e 100644

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

drivers/scsi/scsi_scan.c +3 -3
index dd0d516f65e2..53380e07b40e 100644

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

drivers/soc/qcom/qcom_gsbi.c +5 -2
index 09c669e70d63..038abc377fdb 100644

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

drivers/soc/tegra/fuse/fuse-tegra.c +9 -3
index a33ee8ef8b6b..51625703399e 100644

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

drivers/staging/iio/addac/adt7316.c +9 -9
index dc93e85808e0..7839d869d25d 100644

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

drivers/staging/media/rockchip/vpu/rk3288_vpu_hw_jpeg_enc.c +3 -3
index 5282236d1bb1..06daea66fb49 100644

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

drivers/staging/media/rockchip/vpu/rk3399_vpu_hw_jpeg_enc.c +3 -3
index dbc86d95fe3b..3d438797692e 100644

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

drivers/staging/mt7621-spi/spi-mt7621.c +6 -1
index 513b6e79b985..e1f50efd0922 100644

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

drivers/tty/serial/8250/8250_pxa.c +4 -0
index b9bcbe20a2be..c47188860e32 100644

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

drivers/tty/tty_buffer.c +1 -1
index 77070c2d1240..ec145a59f199 100644

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

drivers/usb/chipidea/core.c +8 -1
index 7bfcbb23c2a4..016e4004fe9d 100644

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

drivers/usb/dwc3/gadget.c +2 -0
index 6c9b76bcc2e1..8d1dbe36db92 100644

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

drivers/usb/gadget/function/f_fs.c +1 -0
index 1e5430438703..0f8d16de7a37 100644

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

drivers/video/backlight/pwm_bl.c +1 -1
index feb90764a811..53b8ceea9bde 100644

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

drivers/video/fbdev/core/fbmem.c +3 -0
index cb43a2258c51..4721491e6c8c 100644

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

drivers/xen/gntdev-dmabuf.c +11 -1
index cba6b586bfbd..d97fcfc5e558 100644

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

drivers/xen/gntdev-dmabuf.h +1 -1
index 7220a53d0fc5..3d9b9cf9d5a1 100644

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

drivers/xen/gntdev.c +1 -1
index 5efc5eee9544..7cf9c51318aa 100644

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

fs/btrfs/extent-tree.c +45 -26

71 lines not on this page · raw message

fs/btrfs/qgroup.c +14 -14
index 543dd5e66f31..e28fb43e943b 100644

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

fs/buffer.c +7 -0
index 48318fb74938..cab7a026876b 100644

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

fs/cifs/cifs_dfs_ref.c +2 -2
index d9b99abe1243..5d83c924cc47 100644

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

fs/cifs/connect.c +5 -0
index e61cd2938c9e..9d4e60123db4 100644

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

fs/cifs/file.c +13 -1
index 95461db80011..8d107587208f 100644

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

fs/cifs/smb1ops.c +1 -1
index 32a6c020478f..20a88776f04d 100644

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

fs/cifs/smb2pdu.c +8 -2
index 104905732fbe..53642a237bf9 100644

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

fs/ext4/extents.c +10 -7
index 240b6dea5441..252bbbb5a2f4 100644

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

fs/ext4/indirect.c +22 -25

47 lines not on this page · raw message

fs/f2fs/extent_cache.c +1 -1
index 1cb0fcc67d2d..caf77fe8ac07 100644

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

fs/f2fs/f2fs.h +0 -1
index 12fabd6735dd..279bc00489cc 100644

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

fs/f2fs/inline.c +7 -1
index d636cbcf68f2..aacbb864ec1e 100644

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

fs/f2fs/super.c +11 -6
index c46a1d4318d4..5892fa3c885f 100644

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

fs/f2fs/sysfs.c +9 -3
index 0575edbe3ed6..f1ab9000b294 100644

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

fs/f2fs/trace.c +13 -7
index ce2a5eb210b6..d0ab533a9ce8 100644

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

fs/f2fs/xattr.c +10 -3
index 18d5ffbc5e8c..73b92985198b 100644

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

fs/file.c +1 -0
index 3209ee271c41..a10487aa0a84 100644

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

fs/jbd2/commit.c +4 -2
index 2eb55c3361a8..efd0ce9489ae 100644

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

fs/jbd2/journal.c +27 -25

52 lines not on this page · raw message

fs/ocfs2/cluster/nodemanager.c +8 -6
index 0e4166cc23a0..4ac775e32240 100644

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

fs/read_write.c +6 -0
index ff3c5e6f87cf..27b69b85d49f 100644

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

include/linux/atalk.h +14 -4
index 23f805562f4e..840cf92307ba 100644

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

include/linux/cgroup-defs.h +1 -1
index 8fcbae1b8db0..120d1d40704b 100644

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

include/linux/cgroup.h +2 -0
index 9968332cceed..81f58b4a5418 100644

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

include/linux/clk-provider.h +3 -0
index e443fa9fa859..b7cf80a71293 100644

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

include/linux/efi.h +13 -13
index 28604a8d0aa9..a86485ac7c87 100644

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

include/linux/f2fs_fs.h +7 -6
index d7711048ef93..c524ad7d31da 100644

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

include/linux/filter.h +3 -1
index e532fcc6e4b5..3358646a8e7a 100644

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

include/linux/i2c.h +1 -0
index 65b4eaed1d96..7e748648c7d3 100644

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

include/linux/irqdesc.h +1 -0
index dd1e40ddac7d..875c41b23f20 100644

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

include/linux/kasan-checks.h +1 -1
index d314150658a4..a61dc075e2ce 100644

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

include/linux/perf_event.h +1 -1
index e1a051724f7e..7cbbd891bfcd 100644

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

include/linux/relay.h +1 -1
index e1bdf01a86e2..c759f96e39c1 100644

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

include/linux/ring_buffer.h +1 -1
index 5b9ae62272bb..503778920448 100644

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

include/linux/sched.h +2 -2
index f9b43c989577..9b35aff09f70 100644

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

include/linux/sched/topology.h +4 -4
index c31d3a47a47c..57c7ed3fe465 100644

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

include/net/netfilter/br_netfilter.h +0 -1
index 4cd56808ac4e..89808ce293c4 100644

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

include/scsi/libfcoe.h +2 -2
index cb8a273732cf..bb8092fa1e36 100644

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

kernel/audit.h +2 -2
index 91421679a168..6ffb70575082 100644

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

kernel/audit_tree.c +11 -8
index d4af4d97f847..abfb112f26aa 100644

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

kernel/auditsc.c +6 -6
index 6593a5207fb0..b585ceb2f7a2 100644

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

kernel/cgroup/cgroup.c +9 -6
index 503bba3c4bae..f84bf28f36ba 100644

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

kernel/cgroup/pids.c +2 -2
index 9829c67ebc0a..c9960baaa14f 100644

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

kernel/cgroup/rstat.c +6 -4
index d503d1a9007c..bb95a35e8c2d 100644

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

kernel/cpu.c +9 -0
index 47f695d80dd1..6754f3ecfd94 100644

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

kernel/events/ring_buffer.c +1 -1
index 5ab4fe3b1dcc..878c62ec0190 100644

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

kernel/exit.c +1 -0
index 2639a30a8aa5..2166c2d92ddc 100644

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

kernel/irq/chip.c +10 -2
index 34e969069488..e960c4f46ee0 100644

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

kernel/irq/internals.h +7 -1
index ca6afa267070..e74e7eea76cf 100644

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

kernel/irq/irqdesc.c +6 -1
index ef8ad36cadcf..84fa255d0329 100644

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

kernel/rcu/update.c +2 -0
index 1971869c4072..f4ca36d92138 100644

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

kernel/resource.c +2 -2
index 915c02e8e5dd..ca7ed5158cff 100644

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

kernel/sched/core.c +5 -4
index d8d76a65cfdd..01a2489de94e 100644

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

kernel/sched/debug.c +4 -0
index de3de997e245..8039d62ae36e 100644

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

kernel/sched/sched.h +3 -3
index d04530bf251f..425a5589e5f6 100644

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

kernel/sched/topology.c +1 -1
index 3f35ba1d8fde..efca2489d881 100644

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

kernel/sysctl.c +3 -0
index d80bee8ff12e..28ec71d914c7 100644

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

kernel/trace/ring_buffer.c +3 -2
index 06e864a334bb..b49affb4666b 100644

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

kernel/trace/trace.c +4 -2
index 5f40db27aaf2..89158aa93fa6 100644

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

kernel/trace/trace_kdb.c +4 -2
index d953c163a079..810d78a8d14c 100644

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

lib/bsearch.c +2 -0
index 18b445b010c3..82512fe7b33c 100644

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

lib/raid6/Makefile +1 -1
index 4e90d443d1b0..e723eacf7868 100644

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

mm/cma.c +3 -1
index c7b39dd3b4f6..f4f3a8a57d86 100644

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

mm/kasan/common.c +2 -0
index 09b534fbba17..80bbe62b16cd 100644

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

mm/memcontrol.c +14 -5
index af7f18b32389..79a7d2a06bba 100644

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

mm/mempolicy.c +1 -1
index 6bc9786aad6e..c2275c1e6d2a 100644

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

mm/oom_kill.c +2 -1
index 26ea8636758f..da0e44914085 100644

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

mm/page_alloc.c +1 -1
index 11dc3c0e8728..20dd3283bb1b 100644

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

mm/page_ext.c +1 -0
index 8c78b8d45117..f116431c3dee 100644

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

mm/page_poison.c +4 -0
index f0c15e9017c0..21d4f97cb49b 100644

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

mm/slab.c +9 -8
index b3e74b56a468..2f2aa8eaf7d9 100644

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

mm/sparse.c +1 -1
index 4763519d4399..b3771f35a0ed 100644

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

mm/swapfile.c +29 -22

51 lines not on this page · raw message

mm/vmalloc.c +5 -1
index 2cd24186ba84..583630bf247d 100644

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

net/bridge/br_netfilter_hooks.c +0 -5
index c93c35bb73dd..40d058378b52 100644

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

net/netfilter/nf_conntrack_core.c +11 -3
index db4d46332e86..9dd4c2048a2b 100644

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

net/netfilter/nf_conntrack_proto_tcp.c +40 -10

50 lines not on this page · raw message

net/netfilter/nf_tables_core.c +8 -6
index a50500232b0a..7e8dae82ca52 100644

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

net/netfilter/xt_physdev.c +7 -2
index 4034d70bff39..b2e39cb6a590 100644

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

net/xdp/xsk.c +4 -1
index 85e4fe4f18cc..f3031c8907d9 100644

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

security/apparmor/policy_unpack.c +1 -0
index 379682e2a8d5..f6c2bcb2ab14 100644

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

security/selinux/hooks.c +8 -1
index cf20dd36a30f..07b11b5aaf1f 100644

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

sound/core/pcm_native.c +8 -0
index b67f6fe08a1b..e08c6c6ca029 100644

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

sound/firewire/dice/dice.c +11 -1
index ed50b222d36e..eee184b05d93 100644

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

sound/soc/fsl/fsl-asoc-card.c +1 -0
index 81f2fe2c6d23..60f87a0d99f4 100644

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

sound/soc/fsl/imx-sgtl5000.c +1 -0
index c29200cf755a..9b9a7ec52905 100644

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

sound/soc/generic/simple-card-utils.c +11 -3
index b807a47515eb..336895f7fd1e 100644

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

sound/soc/qcom/common.c +8 -2
index 4715527054e5..5661025e8cec 100644

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

tools/build/Makefile.feature +1 -1
index 5467c6bf9ceb..bb9dca65eb5f 100644

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

tools/build/feature/test-all.c +5 -5
index 20cdaa4fc112..e903b86b742f 100644

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

tools/build/feature/test-reallocarray.c +2 -0
index 8170de35150d..8f6743e31da7 100644

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

tools/lib/bpf/Makefile +2 -1
index 34d9c3619c96..78fd86b85087 100644

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

tools/lib/lockdep/run_tests.sh +3 -3
index c8fbd0306960..11f425662b43 100755

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

tools/lib/traceevent/event-parse.c +1 -1
index abd4fa5d3088..87494c7c619d 100644

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

tools/perf/Makefile.config +4 -1
index b441c88cafa1..cf4a8329c4c0 100644

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

tools/perf/Makefile.perf +1 -1
index 0ee6795d82cc..77f8f069f1e7 100644

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

tools/perf/builtin-c2c.c +6 -2
index d340d2e42776..13758a0b367b 100644

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

tools/perf/builtin-script.c +7 -3
index ac221f137ed2..cff4d10daf49 100644

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

tools/perf/builtin-trace.c +5 -1
index b36061cd1ab8..91cdbf504535 100644

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

tools/perf/tests/evsel-tp-sched.c +3 -3
index 5cbba70bcdd0..ea7acf403727 100644

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

tools/perf/trace/beauty/msg_flags.c +1 -1
index d66c66315987..ea68db08b8e7 100644

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

tools/perf/trace/beauty/waitid_options.c +1 -1
index 6897fab40dcc..d4d10b33ba0e 100644

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

tools/perf/util/annotate.c +2 -2
index 70de8f6b3aee..9142fd294e76 100644

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

tools/perf/util/s390-cpumsf.c +5 -0
index 68b2570304ec..08073a4d59a4 100644

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

tools/perf/util/scripting-engines/trace-event-python.c +10 -5
index 87ef16a1b17e..7059d1be2d09 100644

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

tools/perf/util/sort.c +8 -2
index 6c1a83768eb0..d0334c33da54 100644

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

tools/perf/util/srcline.c +1 -1
index dc86597d0cc4..ccf42c4e83f0 100644

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

tools/testing/selftests/bpf/Makefile +2 -1
index 41ab7a3668b3..936f726f7cd9 100644

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

tools/testing/selftests/bpf/test_map_in_map.c +4 -0
index ce923e67e08e..2985f262846e 100644

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

tools/testing/selftests/bpf/test_maps.c +14 -13
index e2b9eee37187..6e05a22b346c 100644

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

tools/testing/selftests/bpf/test_verifier.c +8 -1
index 2fd90d456892..9a967983abed 100644

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

tools/testing/selftests/ir/ir_loopback.c +3 -1
index 858c19caf224..8cdf1b89ac9c 100644

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

tools/testing/selftests/seccomp/seccomp_bpf.c +6 -0
index 7e632b465ab4..6d7a81306f8a 100644

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

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

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