Linux 4.17.19
Greg KH
maintainerI'm announcing the release of the 4.17.19 kernel.
Note, this is the LAST 4.17.y kernel to be released, it is now end-of-life. Pleas move to 4.18.y at this time.
All users of the 4.17 kernel series must upgrade.
The updated 4.17.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.17.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
------------
Makefile | 8 - arch/arc/Makefile | 15 - arch/arc/include/asm/mach_desc.h | 2 arch/arc/kernel/irq.c | 2 arch/arc/kernel/process.c | 47 ++++-- arch/arc/plat-hsdk/platform.c | 62 ++++++++ arch/arm/boot/dts/am3517.dtsi | 5 arch/arm/boot/dts/am437x-sk-evm.dts | 2 arch/arm/boot/dts/armada-385-synology-ds116.dts | 2 arch/arm/boot/dts/bcm-cygnus.dtsi | 24 +-- arch/arm/boot/dts/bcm-hr2.dtsi | 24 +-- arch/arm/boot/dts/bcm-nsp.dtsi | 32 ++-- arch/arm/boot/dts/bcm5301x.dtsi | 2 arch/arm/boot/dts/da850.dtsi | 6 arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 2 arch/arm/boot/dts/omap4-droid4-xt894.dts | 9 - arch/arm/configs/imx_v4_v5_defconfig | 2 arch/arm/configs/imx_v6_v7_defconfig | 2 arch/arm/crypto/speck-neon-core.S | 6 arch/arm/mach-davinci/board-da850-evm.c | 2 arch/arm/mach-omap2/omap-smp.c | 41 +++++ arch/arm/mach-pxa/irq.c | 4 arch/arm/mm/init.c | 9 + arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 15 + arch/arm64/boot/dts/amlogic/meson-gxl-mali.dtsi | 2 arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi | 8 - arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts | 4 arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts | 4 arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi | 4 arch/arm64/boot/dts/qcom/msm8916.dtsi | 4 arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts | 2 arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts | 2 arch/arm64/include/asm/alternative.h | 7 arch/arm64/kernel/alternative.c | 51 +++++- arch/arm64/kernel/module.c | 5 arch/arm64/kernel/smp.c | 2 arch/arm64/mm/dma-mapping.c | 9 - arch/ia64/kernel/perfmon.c | 6 arch/ia64/mm/init.c | 12 - arch/m68k/include/asm/mcf_pgalloc.h | 4 arch/nds32/kernel/setup.c | 3 arch/openrisc/kernel/entry.S | 8 - arch/openrisc/kernel/head.S | 9 - arch/openrisc/kernel/traps.c | 2 arch/parisc/include/asm/spinlock.h | 8 - arch/parisc/kernel/syscall.S | 24 +-- arch/powerpc/kernel/smp.c | 6 arch/riscv/kernel/irq.c | 4 arch/riscv/kernel/module.c | 4 arch/riscv/kernel/ptrace.c | 2 arch/s390/net/bpf_jit_comp.c | 1 arch/x86/include/asm/processor.h | 1 arch/x86/include/asm/set_memory.h | 1 arch/x86/kernel/cpu/microcode/intel.c | 5 arch/x86/kernel/kvmclock.c | 1 arch/x86/kernel/smpboot.c | 5 arch/x86/kvm/vmx.c | 9 - arch/x86/mm/init.c | 37 ++++ arch/x86/mm/init_64.c | 8 - arch/x86/mm/pageattr.c | 13 + block/blk-mq-debugfs.c | 2 block/blk-mq.c | 12 + block/sed-opal.c | 4 drivers/acpi/ec.c | 20 ++ drivers/acpi/nfit/core.c | 4 drivers/ata/libahci.c | 7 drivers/block/drbd/drbd_req.c | 4 drivers/block/nbd.c | 40 ++++- drivers/char/ipmi/kcs_bmc.c | 31 +--- drivers/clk/Makefile | 2 drivers/clk/davinci/da8xx-cfgchip.c | 2 drivers/clk/sunxi-ng/Makefile | 39 +---- drivers/clocksource/timer-stm32.c | 4 drivers/dax/device.c | 12 + drivers/dma/k3dma.c | 2 drivers/dma/omap-dma.c | 6 drivers/dma/pl330.c | 2 drivers/edac/edac_mc.c | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | 3 drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c | 19 ++ drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 1 drivers/gpu/drm/arm/malidp_drv.c | 3 drivers/gpu/drm/arm/malidp_hw.c | 3 drivers/gpu/drm/arm/malidp_planes.c | 9 - drivers/gpu/drm/armada/armada_crtc.c | 12 + drivers/gpu/drm/armada/armada_hw.h | 1 drivers/gpu/drm/armada/armada_overlay.c | 30 ++- drivers/gpu/drm/bridge/sil-sii8620.c | 121 ++++++++-------- drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 6 drivers/gpu/drm/exynos/exynos_drm_gsc.c | 29 ++- drivers/gpu/drm/exynos/regs-gsc.h | 1 drivers/gpu/drm/i915/gvt/kvmgt.c | 9 + drivers/gpu/drm/nouveau/nouveau_gem.c | 4 drivers/gpu/drm/sun4i/Makefile | 5 drivers/gpu/drm/tegra/drm.c | 2 drivers/gpu/host1x/dev.c | 3 drivers/gpu/host1x/job.c | 3 drivers/hid/hid-google-hammer.c | 2 drivers/hid/hid-ids.h | 1 drivers/hid/wacom_wac.c | 10 + drivers/hwmon/dell-smm-hwmon.c | 7 drivers/hwmon/nct6775.c | 2 drivers/i2c/busses/i2c-imx.c | 8 - drivers/i2c/i2c-core-acpi.c | 11 + drivers/iio/pressure/bmp280-core.c | 5 drivers/infiniband/hw/mlx4/mr.c | 7 drivers/infiniband/hw/mlx5/srq.c | 18 +- drivers/infiniband/hw/qedr/verbs.c | 3 drivers/infiniband/sw/rxe/rxe_req.c | 5 drivers/input/rmi4/rmi_2d_sensor.c | 34 ++-- drivers/irqchip/irq-gic-v2m.c | 2 drivers/irqchip/irq-gic-v3-its.c | 10 + drivers/md/raid10.c | 7 drivers/mtd/devices/mtd_dataflash.c | 4 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h | 1 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 6 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 6 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 15 + drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c | 30 +++ drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 drivers/net/ethernet/cadence/macb_main.c | 11 - drivers/net/ethernet/cavium/Kconfig | 12 - drivers/net/ethernet/cavium/octeon/octeon_mgmt.c | 14 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 35 +--- drivers/net/ethernet/cisco/enic/enic_clsf.c | 3 drivers/net/ethernet/cisco/enic/enic_main.c | 3 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 15 + drivers/net/ethernet/freescale/fman/fman_port.c | 8 + drivers/net/ethernet/ibm/ibmvnic.c | 43 +++-- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 12 + drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 2 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 12 - drivers/net/ethernet/mellanox/mlx5/core/vport.c | 2 drivers/net/ethernet/netronome/nfp/bpf/main.c | 6 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c | 2 drivers/net/ethernet/qlogic/qed/qed_dcbx.c | 11 - drivers/net/ethernet/qlogic/qed/qed_debug.c | 2 drivers/net/ethernet/qlogic/qed/qed_ll2.c | 11 + drivers/net/ethernet/qlogic/qed/qed_main.c | 12 + drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c | 2 drivers/net/ethernet/qualcomm/qca_spi.c | 21 +- drivers/net/ethernet/realtek/r8169.c | 1 drivers/net/ethernet/renesas/ravb_main.c | 56 ++----- drivers/net/ethernet/renesas/sh_eth.c | 59 ++----- drivers/net/ethernet/sfc/ef10.c | 30 ++- drivers/net/ethernet/sfc/efx.c | 17 +- drivers/net/ethernet/stmicro/stmmac/Kconfig | 2 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 18 +- drivers/net/ethernet/ti/davinci_emac.c | 4 drivers/net/hamradio/bpqether.c | 8 - drivers/net/hyperv/rndis_filter.c | 1 drivers/net/ieee802154/adf7242.c | 34 ++++ drivers/net/ieee802154/at86rf230.c | 15 - drivers/net/ieee802154/fakelb.c | 2 drivers/net/ieee802154/mcr20a.c | 3 drivers/net/ipvlan/ipvlan_main.c | 36 +++- drivers/net/phy/marvell.c | 54 ++++--- drivers/net/phy/sfp-bus.c | 35 +++- drivers/net/usb/rtl8150.c | 2 drivers/net/usb/smsc75xx.c | 62 ++++++++ drivers/net/wireless/ath/ath10k/mac.c | 16 +- drivers/net/wireless/ath/ath10k/wmi.h | 1 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c | 7 drivers/nfc/pn533/usb.c | 4 drivers/nvme/host/core.c | 52 +++--- drivers/nvme/host/pci.c | 2 drivers/nvme/host/rdma.c | 28 ++- drivers/nvme/target/core.c | 8 + drivers/nvmem/core.c | 4 drivers/of/base.c | 6 drivers/of/of_private.h | 2 drivers/of/overlay.c | 11 + drivers/pci/dwc/pcie-designware-host.c | 3 drivers/pci/host/pci-aardvark.c | 2 drivers/pci/host/pci-ftpci100.c | 4 drivers/pci/host/pci-v3-semi.c | 2 drivers/pci/host/pci-versatile.c | 2 drivers/pci/host/pci-xgene.c | 2 drivers/pci/host/pcie-mediatek.c | 2 drivers/pci/host/pcie-xilinx-nwl.c | 2 drivers/pci/host/pcie-xilinx.c | 1 drivers/pci/hotplug/pci_hotplug_core.c | 9 + drivers/pci/hotplug/pciehp.h | 1 drivers/pci/hotplug/pciehp_core.c | 7 drivers/pci/hotplug/pciehp_hpc.c | 18 -- drivers/pci/of.c | 2 drivers/pci/pci-acpi.c | 6 drivers/pci/pci.c | 66 ++++++++ drivers/pci/probe.c | 4 drivers/perf/xgene_pmu.c | 2 drivers/pinctrl/bcm/pinctrl-nsp-mux.c | 6 drivers/pinctrl/pinctrl-ingenic.c | 2 drivers/platform/x86/dell-laptop.c | 2 drivers/rtc/interface.c | 8 - drivers/s390/cio/vfio_ccw_drv.c | 5 drivers/s390/net/qeth_core.h | 2 drivers/s390/net/qeth_core_main.c | 23 +-- drivers/s390/net/qeth_l2_main.c | 5 drivers/s390/net/qeth_l3_main.c | 3 drivers/scsi/hpsa.c | 25 ++- drivers/scsi/hpsa.h | 1 drivers/scsi/qedf/qedf_main.c | 12 + drivers/scsi/qedi/qedi_main.c | 11 + drivers/scsi/xen-scsifront.c | 33 +++- drivers/soc/imx/gpc.c | 21 ++ drivers/soc/imx/gpcv2.c | 13 + drivers/tty/pty.c | 2 drivers/usb/chipidea/host.c | 5 drivers/usb/dwc2/core.h | 3 drivers/usb/dwc2/gadget.c | 15 + drivers/usb/dwc2/hcd.c | 93 +++++++++++- drivers/usb/dwc2/hcd.h | 8 + drivers/usb/dwc2/hcd_intr.c | 11 + drivers/usb/dwc2/hcd_queue.c | 3 drivers/usb/dwc3/dwc3-of-simple.c | 3 drivers/usb/dwc3/dwc3-pci.c | 2 drivers/usb/gadget/composite.c | 3 drivers/usb/gadget/function/f_fs.c | 26 ++- drivers/usb/host/xhci-dbgcap.c | 12 + drivers/usb/host/xhci-tegra.c | 2 drivers/usb/host/xhci.c | 7 drivers/usb/typec/tcpm.c | 3 drivers/xen/manage.c | 18 +- drivers/xen/xen-scsiback.c | 16 +- fs/btrfs/scrub.c | 17 +- fs/ceph/inode.c | 1 fs/cifs/smb2pdu.c | 5 fs/exec.c | 6 fs/ext4/mballoc.c | 4 fs/nfs/nfs4proc.c | 17 +- fs/reiserfs/xattr.c | 4 include/linux/fsl/guts.h | 1 include/linux/kthread.h | 1 include/linux/marvell_phy.h | 2 include/linux/mm.h | 4 include/linux/pci.h | 2 include/linux/sched.h | 2 include/net/ipv6.h | 9 - include/net/net_namespace.h | 1 include/net/netns/ipv6.h | 1 include/net/tc_act/tc_csum.h | 1 include/net/tc_act/tc_tunnel_key.h | 1 include/net/tcp.h | 2 include/uapi/linux/nbd.h | 3 kernel/bpf/hashtab.c | 16 +- kernel/fork.c | 35 +++- kernel/kthread.c | 30 +++ kernel/locking/lockdep.c | 12 - kernel/sched/core.c | 67 ++++---- kernel/sched/deadline.c | 11 + kernel/sched/fair.c | 30 +-- kernel/sched/sched.h | 6 kernel/trace/trace.c | 5 mm/kasan/kasan.c | 5 mm/mmap.c | 35 +--- mm/nommu.c | 10 - mm/page_alloc.c | 16 +- net/9p/client.c | 3 net/batman-adv/bat_iv_ogm.c | 4 net/batman-adv/bat_v.c | 4 net/batman-adv/debugfs.c | 40 +++++ net/batman-adv/debugfs.h | 11 + net/batman-adv/hard-interface.c | 37 ++++ net/batman-adv/translation-table.c | 7 net/core/dev.c | 4 net/core/filter.c | 3 net/ieee802154/6lowpan/core.c | 6 net/ipv4/inet_fragment.c | 2 net/ipv4/netfilter/ip_tables.c | 1 net/ipv4/tcp.c | 4 net/ipv4/tcp_dctcp.c | 25 --- net/ipv4/tcp_output.c | 4 net/ipv6/calipso.c | 9 - net/ipv6/exthdrs.c | 111 +++----------- net/ipv6/ipv6_sockglue.c | 27 ++- net/ipv6/mcast.c | 9 - net/ipv6/netfilter/ip6_tables.c | 1 net/ipv6/netfilter/nf_conntrack_reasm.c | 6 net/mac80211/tx.c | 2 net/netfilter/nf_conntrack_core.c | 2 net/netfilter/nf_conntrack_helper.c | 5 net/netfilter/nf_conntrack_proto_dccp.c | 8 - net/netfilter/nf_log.c | 4 net/netfilter/nft_compat.c | 13 + net/packet/af_packet.c | 12 + net/qrtr/qrtr.c | 13 + net/rds/connection.c | 11 + net/rds/loop.c | 56 +++++++ net/rds/loop.h | 2 net/sched/act_csum.c | 6 net/sched/act_tunnel_key.c | 6 net/sctp/chunk.c | 4 net/smc/af_smc.c | 3 net/smc/smc_clc.c | 3 net/tipc/discover.c | 18 +- net/tipc/net.c | 17 +- net/tipc/node.c | 7 net/tls/tls_sw.c | 5 net/wireless/nl80211.c | 35 +--- net/xfrm/xfrm_user.c | 8 - samples/bpf/parse_varlen.c | 6 samples/bpf/test_overhead_user.c | 19 +- samples/bpf/trace_event_user.c | 27 +++ samples/bpf/xdp2skb_meta.sh | 6 scripts/kconfig/zconf.y | 4 security/smack/smack_lsm.c | 1 sound/core/seq/seq_clientmgr.c | 3 tools/build/Build.include | 2 tools/build/Makefile | 2 tools/objtool/elf.c | 41 +++-- tools/perf/Makefile.config | 3 tools/perf/arch/powerpc/util/skip-callchain-idx.c | 2 tools/perf/arch/x86/util/perf_regs.c | 2 tools/perf/bench/numa.c | 5 tools/perf/builtin-annotate.c | 11 + tools/perf/builtin-report.c | 3 tools/perf/builtin-script.c | 25 +++ tools/perf/jvmti/jvmti_agent.c | 3 tools/perf/pmu-events/Build | 2 tools/perf/tests/builtin-test.c | 2 tools/perf/tests/parse-events.c | 8 - tools/perf/tests/topology.c | 1 tools/perf/util/c++/clang.cpp | 11 + tools/perf/util/header.c | 12 + tools/perf/util/llvm-utils.c | 6 tools/perf/util/parse-events.y | 5 tools/perf/util/scripting-engines/trace-event-python.c | 8 - tools/testing/nvdimm/test/nfit.c | 3 tools/testing/selftests/bpf/test_kmod.sh | 9 + tools/testing/selftests/bpf/test_offload.py | 12 + tools/testing/selftests/net/config | 2 tools/testing/selftests/pstore/pstore_post_reboot_tests | 5 tools/testing/selftests/static_keys/test_static_keys.sh | 13 + tools/testing/selftests/sync/config | 4 tools/testing/selftests/sysctl/sysctl.sh | 20 +- tools/testing/selftests/user/test_user_copy.sh | 7 tools/testing/selftests/vm/compaction_test.c | 4 tools/testing/selftests/vm/mlock2-tests.c | 12 - tools/testing/selftests/vm/run_vmtests | 5 tools/testing/selftests/vm/userfaultfd.c | 4 tools/testing/selftests/x86/sigreturn.c | 59 ++++--- tools/testing/selftests/zram/zram.sh | 5 tools/testing/selftests/zram/zram_lib.sh | 5 virt/kvm/arm/vgic/vgic-v3.c | 5 347 files changed, 2651 insertions(+), 1284 deletions(-)
Adam Ford (2):
ARM: davinci: board-da850-evm: fix WP pin polarity for MMC/SD
ARM: dts: am3517.dtsi: Disable reference to OMAP3 OTG controller
Ajay Gupta (1):
usb: xhci: increase CRS timeout value
Alex Deucher (1):
drm/amdgpu: fix swapped emit_ib_size in vce3
Alexander Duyck (1):
ixgbe: Be more careful when modifying MAC filters
Alexander Sverdlin (2):
octeon_mgmt: Fix MIX registers configuration on MTU setup
net: cavium: Add fine-granular dependencies on PCI
Alexandre Belloni (1):
rtc: fix alarm read and set offset
Alexey Brodkin (2):
ARC: Explicitly add -mmedium-calls to CFLAGS
ARC: Enable machine_desc->init_per_cpu for !CONFIG_SMP
Alison Wang (1):
drm: mali-dp: Enable Global SE interrupts mask for DP500
Anders Roxell (1):
selftests: net: add config fragments
Andreas Schwab (1):
RISC-V: fix R_RISCV_ADD32/R_RISCV_SUB32 relocations
Andrey Ryabinin (1):
netfilter: nf_conntrack: Fix possible possible crash on module loading.
Andrzej Hajda (1):
drm/bridge/sii8620: fix loops in EDID fetch logic
Andy Lutomirski (2):
selftests/x86/sigreturn/64: Fix spurious failures on AMD CPUs selftests/x86/sigreturn: Do minor cleanups
Anson Huang (2):
soc: imx: gpcv2: correct PGC offset
soc: imx: gpc: restrict register range for regmap access
Ard Biesheuvel (1):
KVM: arm/arm64: Drop resource size check for GICV window
Arnd Bergmann (2):
ieee802154: mcr20a: add missing includes
drm/sun4i: link in front-end code if needed
Artur Petrosyan (1):
usb: dwc2: Fix host exit from hibernation flow.
Arun Kumar Neelakantam (2):
net: qrtr: Broadcast messages only from control port
net: qrtr: Reset the node and port ID of broadcast messages
Ayan Kumar Halder (3):
drm/arm/malidp: Ensure that the crtcs are shutdown before removing any encoder/connector drm/arm/malidp: Preserve LAYER_FORMAT contents when setting format drm/mali-dp: Rectify the width and height passed to rotmem_required()
Bart Van Assche (1):
drbd: Fix drbd_request_prepare() discard handling
Bartosz Golaszewski (1):
net: davinci_emac: match the mdio device against its compatible if possible
Bert Kenward (2):
sfc: avoid hang from nested use of the filter_sem
sfc: hold filter_sem consistently during reset
BingJing Chang (1):
md/raid10: fix that replacement cannot complete recovery after reassemble
Bob Copeland (1):
nl80211: relax ht operation checks for mesh
Casey Leedom (1):
cxgb4: assume flash part size to be 4MB, if it can't be determined
Casey Schaufler (1):
Smack: Mark inode instant in smack_task_to_inode
Chengguang Xu (1):
nfp: cast sizeof() to int when comparing with error code
Christian König (1):
PCI: Restore resized BAR state on resume
Christophe Jaillet (1):
IB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()'
Chunfeng Yun (1):
usb: gadget: composite: fix delayed_status race condition when set_interface
Damien Thébault (1):
platform/x86: dell-laptop: Fix backlight detection
Dan Carpenter (10):
blk-mq-debugfs: Off by one in blk_mq_rq_state_name()
block: sed-opal: Fix a couple off by one bugs
typec: tcpm: Fix a msecs vs jiffies bug
clk: davinci: cfgchip: testing the wrong variable
dmaengine: k3dma: Off by one in k3_of_dma_simple_xlate()
qed: off by one in qed_parse_mcp_trace_buf()
ixgbe: Off by one in ixgbe_ipsec_tx()
qlogic: check kstrtoul() for errors
pinctrl: nsp: off by ones in nsp_pinmux_enable() drm/nouveau/gem: off by one bugs in nouveau_gem_pushbuf_reloc_apply()
Daniel Borkmann (1):
bpf, s390: fix potential memleak when later bpf_jit_prog fails
Daniel Mack (2):
ARM: dts: am437x: make edt-ft5x06 a wakeup source
ARM: pxa: irq: fix handling of ICMR registers in suspend/resume
Dave Hansen (4):
mm: Allow non-direct-map arguments to free_reserved_area() x86/mm/init: Pass unconverted symbol addresses to free_init_pages() x86/mm/init: Add helper for freeing kernel image pages x86/mm/init: Remove freed kernel image areas from alias mapping
Dave Jiang (2):
acpi/nfit: fix cmd_rc for acpi_nfit_ctl to always return a value
nfit: fix unchecked dereference in acpi_nfit_ctl
David Francis (1):
amd/dc/dce100: On dce100, set clocks to 0 on suspend
David Lechner (1):
net: usb: rtl8150: demote allmulti message to dev_dbg()
Davide Caratti (2):
net/sched: act_csum: fix NULL dereference when 'goto chain' is used net/sched: act_tunnel_key: fix NULL dereference when 'goto chain' is used
Denis Kenzior (1):
mac80211: disable BHs/preemption in ieee80211_tx_control_port()
Dinh Nguyen (1):
net: stmmac: socfpga: add additional ocp reset line for Stratix10
Dirk Gouders (1):
kconfig: fix line numbers for if-entries in menu tree
Dmitry Osipenko (2):
gpu: host1x: Skip IOMMU initialization if firewall is enabled
gpu: host1x: Check whether size of unpin isn't 0
Don Brace (1):
scsi: hpsa: correct enclosure sas address
Dong Jia Shi (1):
vfio: ccw: fix error return in vfio_ccw_sch_event
Dongjiu Geng (1):
usb: xhci: remove the code build warning
Doron Roberts-Kedes (2):
nbd: Add the nbd NBD_DISCONNECT_ON_CLOSE config flag.
tls: fix skb_to_sgvec returning unhandled error.
Douglas Anderson (1):
nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us
Eli Cohen (1):
net/mlx5: E-Switch, Disallow vlan/spoofcheck setup if not being esw manager
Eric Biggers (1):
crypto: arm/speck - fix building in Thumb2 mode
Eric Dumazet (2):
netfilter: ipv6: nf_defrag: reduce struct net memory waste
xfrm_user: prevent leaking 2 bytes of kernel memory
Esben Haabendal (1):
i2c: imx: Fix race condition in dma read
Evan Quan (1):
drm/amd/powerplay: correct vega12 thermal support as true
Fabio Estevam (2):
ARM: imx_v6_v7_defconfig: Select ULPI support
ARM: imx_v4_v5_defconfig: Select ULPI support
Fathi Boudra (1):
selftests: sync: add config fragment for testing sync framework
Florian Fainelli (4):
ARM: dts: NSP: Fix i2c controller interrupt type
ARM: dts: NSP: Fix PCIe controllers interrupt types
ARM: dts: HR2: Fix interrupt types for i2c and PCIe
ARM: dts: BCM5301x: Fix i2c controller interrupt type
Florian Westphal (3):
netfilter: x_tables: set module owner for icmp(6) matches
netfilter: nft_compat: explicitly reject ERROR and standard target
netfilter: conntrack: dccp: treat SYNC/SYNCACK as invalid if no prior state
Frank Rowand (1):
of: overlay: update phandle cache on overlay apply and remove
Frederic Weisbecker (1):
sched/nohz: Skip remote tick on idle task entirely
Ganesh Goudar (1):
cxgb4: when disabling dcb set txq dcb priority to 0
Gao Feng (1):
netfilter: nf_ct_helper: Fix possible panic after nf_conntrack_helper_unregister
Geert Uytterhoeven (1):
mtd: dataflash: Use ULL suffix for 64-bit constants
Govindarajulu Varadarajan (1):
enic: initialize enic->rfs_h.lock in enic_probe
Greentime Hu (1):
nds32: Fix the dts pointer is not passed correctly issue.
Greg Kroah-Hartman (1):
Linux 4.17.19
Greg Ungerer (1):
m68k: fix "bad page state" oops on ColdFire boot
Grigor Tovmasyan (1):
usb: gadget: dwc2: fix memory leak in gadget_init()
Guenter Roeck (1):
hwmon: (nct6775) Fix loop limit
Gustavo A. R. Silva (2):
drm/i915/kvmgt: Fix potential Spectre v1
drm/amdgpu/pm: Fix potential Spectre v1
Gustavo Pimentel (1):
ARC: [plat-hsdk]: Configure APB GPIO controller on ARC HSDK platform
Haiyue Wang (1):
ipmi: kcs_bmc: fix IRQ exception if the channel is not open
Hangbin Liu (2):
ipv6: mcast: fix unsolicited report interval after receiving querys
ipvlan: call dev_change_flags when ipvlan mode is reset
Hans de Goede (2):
NFC: pn533: Fix wrong GFP flag usage
i2c: core: ACPI: Properly set status byte to 0 for multi-byte writes
Harini Katakam (1):
net: macb: Free RX ring for all queues
Heikki Krogerus (1):
usb: dwc3: pci: add support for Intel IceLake
Heiner Kallweit (1):
r8169: fix mac address change
Helge Eichelberg (1):
hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
Hoan Tran (1):
drivers/perf: xgene_pmu: Fix IOB SLOW PMU parser error
Israel Rukshin (1):
nvme-rdma: Fix command completion race at error recovery
Jakub Kicinski (2):
selftests/bpf: test offloads even with BPF programs present
nfp: bpf: don't stop offload if replace failed
Jann Horn (2):
netfilter: nf_log: fix uninit read in nf_log_proc_dostring
reiserfs: fix broken xattr handling (heap corruption, bad retval)
Janne Huttunen (1):
perf script python: Fix dict reference counting
Janusz Krzysztofik (1):
dmaengine: ti: omap-dma: Fix OMAP1510 incorrect residue_granularity
Jason Gerecke (1):
HID: wacom: Correct touch maximum XY of 2nd-gen Intuos
Jeff Moyer (1):
dev-dax: check_vma: ratelimit dev_info-s
Jeffrin Jose T (1):
selftests: bpf: notification about privilege required to run test_kmod.sh testing script
Jens Axboe (1):
blk-mq: don't queue more if we get a busy return
Jeremy Cline (2):
perf tools: Use python-config --includes rather than --cflags
ext4: fix spectre gadget in ext4_mb_regular_allocator()
Jerome Brunet (1):
ARM64: dts: meson-axg: fix ethernet stability issue
Jianchao Wang (1):
nvme-pci: move nvme_kill_queues to nvme_remove_dead_ctrl
Jim Mattson (1):
kvm: nVMX: Restore exit qual for VM-entry failure due to MSR loading
Jim Wilson (1):
RISC-V: Fix PTRACE_SETREGSET bug.
Jiri Olsa (4):
perf tools: Fix error index for pmu event parser
perf tests: Add event parsing error handling to parse events test perf bench: Fix numa report output code
perf tools: Fix compilation errors on gcc8
Johan Hovold (1):
usb: dwc3: of-simple: fix use-after-free on remove
Johannes Berg (1):
nl80211: check nla_parse_nested() return values
John Allen (1):
ibmvnic: Fix error recovery on login failure
John David Anglin (2):
parisc: Remove unnecessary barriers from spinlock.h
parisc: Remove ordered stores from syscall.S
John Fastabend (1):
bpf: fix sk_skb programs without skb->dev assigned
John Garry (1):
libahci: Fix possible Spectre-v1 pmp indexing in ahci_led_store()
Jon Maloy (4):
tipc: fix wrong return value from function tipc_node_try_addr()
tipc: correct discovery message handling during address trial period
tipc: fix correct setting of message type in second discoverer
tipc: make function tipc_net_finalize() thread safe
Josh Poimboeuf (1):
objtool: Support GCC 8 '-fnoreorder-functions'
Julia Lawall (1):
clocksource/drivers/stm32: Fix error return code
Julian Wiedmann (1):
s390/qeth: consistently re-enable device features
Juri Lelli (1):
sched/deadline: Fix switched_from_dl() warning
Kai-Heng Feng (1):
usb: xhci: dbc: Don't decrement runtime PM counter if DBC is not started
Kalderon, Michal (1):
RDMA/qedr: Fix NULL pointer dereference when running over iWARP without RDMA-CM
Kamal Heib (1):
RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path
Karsten Graul (1):
net/smc: reset recv timeout after clc handshake
Katsuhiro Suzuki (1):
arm64: dts: uniphier: fix widget name of headphone for LD11/LD20 boards
Keerthy (1):
ARM: dts: da850: Fix interrups property for gpio
Kim Phillips (2):
perf llvm-utils: Remove bashism from kernel include fetch script perf test shell: Prevent temporary editor files from being considered test scripts
Laura Abbott (2):
tools: build: Fixup host c flags
tools: build: Use HOSTLDFLAGS with fixdep
Li RongQing (1):
net: propagate dev_get_valid_name return code
Linus Lüssing (2):
batman-adv: Avoid storing non-TT-sync flags on singular entries too
batman-adv: Fix multicast TT issues with bogus ROAM flags
Linus Torvalds (3):
mm: use helper functions for allocating and freeing vm_area structs
mm: make vm_area_dup() actually copy the old vma data
mm: make vm_area_alloc() initialize core fields
Lubomir Rintel (1):
ieee802154: 6lowpan: set IFLA_LINK
Lucas Stach (1):
Input: synaptics-rmi4 - fix axis-swap behavior
Lukas Wunner (3):
PCI: hotplug: Don't leak pci_slot on registration failure
PCI: pciehp: Fix use-after-free on unplug
PCI: pciehp: Fix unprotected list iteration in IRQ handler
Maciej Purski (4):
drm/bridge/sii8620: fix display modes validation drm/bridge/sii8620: fix potential buffer overflow drm/bridge/sii8620: fix display of packed pixel modes in MHL2 drm/bridge/sii8620: Fix display of packed pixel modes
Madalin Bucur (2):
fsl/fman: fix parser reporting bad checksum on short frames
dpaa_eth: DPAA SGT needs to be 256B
Manish Rangankar (1):
scsi: qedi: Send driver state to MFW
Marc Zyngier (2):
irqchip/gic-v2m: Fix SPI release on error path irqchip/gic-v3-its: Fix reprogramming of redistributors on CPU hotplug
Marcelo Ricardo Leitner (1):
sctp: fix erroneous inc of snmp SctpFragUsrMsgs
Marek Szyprowski (5):
arm64: dma-mapping: clear buffers allocated with FORCE_CONTIGUOUS flag
dmaengine: pl330: report BURST residue granularity drm/exynos: gsc: Fix support for NV16/61, YUV420/YVU420 and YUV422 modes drm/exynos: decon5433: Fix per-plane global alpha for XRGB modes drm/exynos: decon5433: Fix WINCONx reset value
Martin Blumenstingl (1):
ARM64: dts: meson-gxl: fix Mali GPU compatible string
Masahiro Yamada (2):
clk: sunxi-ng: replace lib-y with obj-y
kbuild: suppress warnings from 'getconf LFS_*'
Mathieu Malaterre (1):
tracing: Use __printf markup to silence compiler
Matthijs van Duin (1):
pty: fix O_CLOEXEC for TIOCGPTPEER
Mauricio Vasquez B (1):
bpf: hash map: decrement counter on error
Max Gurtuvoy (1):
nvmet: reset keep alive timer in controller enable
Michael Chan (3):
bnxt_en: Fix inconsistent BNXT_FLAG_AGG_RINGS logic.
bnxt_en: Always set output parameters in bnxt_get_max_rings().
bnxt_en: Do not modify max IRQ count after RDMA driver requests/frees IRQs.
Michael Hennerich (2):
net: ieee802154: adf7242: Fix erroneous RX enable
net: ieee802154: adf7242: Fix OCL calibration runsMichael Trimarchi (1):
brcmfmac: stop watchdog before detach and free everything
Mika Westerberg (1):
ACPI / EC: Use ec_no_wakeup on Thinkpad X1 Carbon 6th
Mikko Perttunen (1):
drm/tegra: Fix comparison operator for buffer size
Minas Harutyunyan (2):
usb: dwc2: gadget: Fix issue in dwc2_gadget_start_isoc()
dwc2: gadget: Fix ISOC IN DDMA PID bitfield value calculation
Myron Stowe (1):
PCI: Skip MPS logic for Virtual Functions (VFs)
Nicholas Mc Guire (3):
PCI: xilinx: Add missing of_node_put()
PCI: xilinx-nwl: Add missing of_node_put()
PCI: faraday: Add missing of_node_put()
Nicholas Piggin (1):
powerpc: smp_send_stop do not offline stopped CPUs
Nicolas Boichat (1):
HID: google: Add support for whiskers
Nishanth Menon (1):
ARM: DRA7/OMAP5: Enable ACTLR[0] (Enable invalidates of BTB) for secondary cores
Palmer Dabbelt (1):
RISC-V: Don't include irq-riscv-intc.h
Paolo Abeni (1):
ipfrag: really prevent allocation on netns exit
Paul Cercueil (1):
pinctrl: ingenic: Fix inverted direction for < JZ4770
Paul Moore (1):
ipv6: make ipv6_renew_options() interrupt/kernel safe
Pavel Machek (1):
ARM: dts: omap4-droid4: fix dts w.r.t. pwm
Peng Hao (1):
kvmclock: fix TSC calibration for nested guests
Peter Chen (1):
usb: chipidea: host: fix disconnection detect issue
Peter Zijlstra (2):
kthread, sched/core: Fix kthread_parkme() (again...)
ARC: Improve cmpxchg syscall implementation
Qu Wenruo (1):
btrfs: scrub: Don't use inode page cache in scrub_handle_errored_block()
Rafael J. Wysocki (1):
PCI / ACPI / PM: Resume all bridges on suspend-to-RAM
Randy Dunlap (2):
net/ethernet/freescale/fman: fix cross-build error
tcp: identify cryptic messages as TCP seq # bugs
Ravi Bangoria (2):
perf script: Fix crash because of missing evsel->priv
perf tools: Fix crash caused by accessing feat_ops[HEADER_LAST_FEATURE]
Ray Jui (5):
ARM: dts: Cygnus: Fix I2C controller interrupt type
ARM: dts: Cygnus: Fix PCIe controller interrupt type
arm64: dts: ns2: Fix I2C controller interrupt type
arm64: dts: ns2: Fix PCIe controller interrupt type
arm64: dts: Stingray: Fix I2C controller interrupt type
Rob Herring (1):
arm64: dts: msm8916: fix Coresight ETF graph connections
Robin H. Johnson (1):
ACPI / EC: Use ec_no_wakeup on more Thinkpad X1 Carbon 6th systems
Roland Dreier (1):
nvme: fix handling of metadata_len for NVME_IOCTL_IO_CMD
Russell King (4):
drm/armada: fix colorkey mode property drm/armada: fix irq handling
sfp: ensure we clean up properly on bus registration failure
sfp: fix module initialisation with netdev already up
Ryan Hsu (1):
ath10k: update the phymode along with bandwidth change request
Sagi Grimberg (1):
nvme-rdma: fix possible double free condition when failing to create a controller
Sandipan Das (1):
perf report powerpc: Fix crash if callchain is empty
Saurav Kashyap (1):
scsi: qedf: Send the driver state to MFW
Scott Bauer (1):
nvme: ensure forward progress during Admin passthru
Scott Branden (2):
arm64: dts: specify 1.8V EMMC capabilities for bcm958742k
arm64: dts: specify 1.8V EMMC capabilities for bcm958742t
Sergei Shtylyov (8):
PCI: OF: Fix I/O space page leak
PCI: xgene: Fix I/O space page leak
PCI: versatile: Fix I/O space page leak
PCI: designware: Fix I/O space page leak
PCI: aardvark: Fix I/O space page leak
PCI: faraday: Fix I/O space page leak
PCI: mediatek: Fix I/O space page leak
PCI: v3-semi: Fix I/O space page leak
Shuah Khan (Samsung OSG) (6):
selftests: pstore: return Kselftest Skip code for skipped tests
selftests: static_keys: return Kselftest Skip code for skipped tests
selftests: sysctl: return Kselftest Skip code for skipped tests
selftests: user: return Kselftest Skip code for skipped tests
selftests: zram: return Kselftest Skip code for skipped tests
selftests: vm: return Kselftest Skip code for skipped tests
Sowmini Varadhan (1):
rds: clean up loopback rds_connections on netns deletion
Stafford Horne (1):
openrisc: entry: Fix delay slot exception detection
Stefan Agner (1):
net: hamradio: use eth_broadcast_addr
Stefan Schmidt (3):
ieee802154: at86rf230: switch from BUG_ON() to WARN_ON() on problem
ieee802154: at86rf230: use __func__ macro for debug messages
ieee802154: fakelb: switch from BUG_ON() to WARN_ON() on problemStefan Wahren (3):
net: qca_spi: Avoid packet drop during initial sync
net: qca_spi: Make sure the QCA7000 reset is triggered
net: qca_spi: Fix log level if probe fails
Stephen Hemminger (1):
hv/netvsc: fix handling of fallback to single queue mode
Steve French (1):
smb3: increase initial number of credits requested to allow write
Steven Rostedt (VMware) (2):
locking/lockdep: Do not record IRQ state within lockdep code
ARM: 8780/1: ftrace: Only set kernel memory back to read-only after boot
Sudarsana Reddy Kalluru (4):
qed: Fix possible memory leak in Rx error path handling.
qed: Add sanity check for SIMD fastpath handler.
qed: Do not advertise DCBX_LLD_MANAGED capability.
bnx2x: Fix receiving tx-timeout in error or recovery state.
Sven Eckelmann (4):
batman-adv: Fix bat_ogm_iv best gw refcnt after netlink dump
batman-adv: Fix bat_v best gw refcnt after netlink dump
batman-adv: Fix debugfs path for renamed hardif
batman-adv: Fix debugfs path for renamed softif
Taeung Song (4):
samples/bpf: add missing <linux/if_vlan.h> samples/bpf: Check the result of system() samples/bpf: Check the error of write() and read() samples/bpf: Fix tc and ip paths in xdp2skb_meta.sh
Takashi Iwai (2):
ALSA: seq: Fix UBSAN warning at SNDRV_SEQ_IOCTL_QUERY_NEXT_CLIENT ioctl
EDAC: Add missing MEM_LRDDR4 entry in edac_mem_types[]
Thomas Falcon (1):
ibmvnic: Revise RX/TX queue error messages
Thomas Richter (2):
perf record: Support s390 random socket_id assignment perf test session topology: Fix test on s390
Tomasz Duszynski (1):
iio: pressure: bmp280: fix relative humidity unit
Trond Myklebust (1):
pNFS: Always free the session slot on error in nfs4_layoutget_handle_exception
Ursula Braun (1):
net/smc: no shutdown in state SMC_LISTEN
Uwe Kleine-König (1):
ARM: dts: imx6: RDU2: fix irq type for mv88e6xxx switch
Venkat Duvvuru (1):
bnxt_en: Fix the vlan_tci exact match check.
Vijay Immanuel (1):
IB/rxe: Fix missing completion for mem_reg work requests
Vikas Gupta (1):
bnxt_en: Fix for system hang if request_irq fails
Vincent Guittot (1):
sched/util_est: Fix util_est_dequeue() for throttled cfs_rq
Vincent Pelletier (1):
usb: gadget: ffs: Fix BUG when userland exits with submitted AIO transfers
Viresh Kumar (1):
arm: dts: armada: Fix "#cooling-cells" property's name
Vishal Verma (1):
tools/testing/nvdimm: advertise a write cache for nfit_test
Vladimir Zapolskiy (4):
sh_eth: fix invalid context bug while calling auto-negotiation by ethtool
sh_eth: fix invalid context bug while changing link options by ethtool
ravb: fix invalid context bug while calling auto-negotiation by ethtool
ravb: fix invalid context bug while changing link options by ethtool
Wang Dongsheng (1):
net: phy: marvell: change default m88e1510 LED configuration
Wei Yongjun (1):
pinctrl: nsp: Fix potential NULL dereference
Will Deacon (1):
arm64: Avoid flush_icache_range() in alternatives patching code
Willem de Bruijn (2):
packet: reset network header if packet shorter than ll reserved space
packet: refine ring v3 block size test to hold one frame
William Wu (2):
usb: dwc2: alloc dma aligned buffer for isoc split in
usb: dwc2: fix isoc split in transfer with no data
Xunlei Pang (1):
sched/fair: Fix bandwidth timer clock drift condition
Yan, Zheng (1):
ceph: fix dentry leak in splice_dentry()
Yonghong Song (1):
perf tools: Fix a clang 7.0 compilation error
Yuchung Cheng (1):
tcp: remove DELAYED ACK events in DCTCP
Yuiko Oshino (1):
smsc75xx: Add workaround for gigabit link up hardware errata.
Zhen Lei (1):
kasan: fix shadow_size calculation error in kasan_module_alloc
Zhenzhong Duan (2):
x86/microcode/intel: Fix memleak in save_microcode_patch() x86/mm/32: Initialize the CR4 shadow before __flush_tlb_all()
Zhizhou Zhang (1):
arm64: make secondary_start_kernel() notrace
Zhouyang Jia (3):
xen: add error handling for xenbus_printf
scsi: xen-scsifront: add error handling for xenbus_printf xen/scsiback: add error handling for xenbus_printf
Zhu Yanjun (1):
IB/rxe: avoid double kfree skb
piaojun (1):
net/9p/client.c: put refcount of trans_mod in error case in parse_opts()
Greg KH
maintainerMakefile +4 -4
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 17 -SUBLEVEL = 18 +SUBLEVEL = 19 EXTRAVERSION = NAME = Merciless Moray
@@ -356,9 +356,9 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ else if [ -x /bin/bash ]; then echo /bin/bash; \ else echo sh; fi ; fi) -HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS) -HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS) -HOST_LFS_LIBS := $(shell getconf LFS_LIBS) +HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS 2>/dev/null) +HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS 2>/dev/null) +HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null) HOSTCC = gcc HOSTCXX = g++
arch/arc/Makefile +1 -14
@@ -16,7 +16,7 @@ endif KBUILD_DEFCONFIG := nsim_700_defconfig -cflags-y += -fno-common -pipe -fno-builtin -D__linux__ +cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ cflags-$(CONFIG_ISA_ARCOMPACT) += -mA7 cflags-$(CONFIG_ISA_ARCV2) += -mcpu=archs
@@ -140,16 +140,3 @@ dtbs: scripts archclean: $(Q)$(MAKE) $(clean)=$(boot) - -# Hacks to enable final link due to absence of link-time branch relexation -# and gcc choosing optimal(shorter) branches at -O3 -# -# vineetg Feb 2010: -mlong-calls switched off for overall kernel build -# However lib/decompress_inflate.o (.init.text) calls -# zlib_inflate_workspacesize (.text) causing relocation errors. -# Thus forcing all exten calls in this file to be long calls -export CFLAGS_decompress_inflate.o = -mmedium-calls -export CFLAGS_initramfs.o = -mmedium-calls -ifdef CONFIG_SMP -export CFLAGS_core.o = -mmedium-calls -endif
arch/arc/include/asm/mach_desc.h +0 -2
@@ -34,9 +34,7 @@ struct machine_desc {const char *name;const char **dt_compat;void (*init_early)(void ); -#ifdef CONFIG_SMP void (*init_per_cpu)(unsigned int ); -#endif void (*init_machine)(void );void (*init_late)(void );
arch/arc/kernel/irq.c +1 -1
@@ -31,10 +31,10 @@ void __init init_IRQ(void)/* a SMP H/w block could do IPI IRQ request here */ if (plat_smp_ops.init_per_cpu) plat_smp_ops.init_per_cpu (smp_processor_id ()); +#endif if (machine_desc->init_per_cpu) machine_desc->init_per_cpu (smp_processor_id ()); -#endif }/*
arch/arc/kernel/process.c +36 -11
66 lines not on this page · raw message
arch/arc/plat-hsdk/platform.c +62 -0
74 lines not on this page · raw message
arch/arm/boot/dts/am3517.dtsi +5 -0
@@ -91,6 +91,11 @@ }; }; +/* Table Table 5-79 of the TRM shows 480ab000 is reserved */ +&usb_otg_hs { + status = "disabled"; +}; + &iva { status = "disabled"; };
arch/arm/boot/dts/am437x-sk-evm.dts +2 -0
@@ -537,6 +537,8 @@ touchscreen-size-x = <480>; touchscreen-size-y = <272>; + + wakeup-source; }; tlv320aic3106: tlv320aic3106@1b {
arch/arm/boot/dts/armada-385-synology-ds116.dts +1 -1
@@ -139,7 +139,7 @@ 3700 5 3900 6 4000 7>; - cooling-cells = <2>; + #cooling-cells = <2>; }; gpio-leds {
arch/arm/boot/dts/bcm-cygnus.dtsi +12 -12
@@ -216,7 +216,7 @@ reg = <0x18008000 0x100>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; status = "disabled"; };
@@ -245,7 +245,7 @@ reg = <0x1800b000 0x100>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 86 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; status = "disabled"; };
@@ -256,7 +256,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <0>;
@@ -278,10 +278,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 96 IRQ_TYPE_NONE>, - <GIC_SPI 97 IRQ_TYPE_NONE>, - <GIC_SPI 98 IRQ_TYPE_NONE>, - <GIC_SPI 99 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>; }; };
@@ -291,7 +291,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <1>;
@@ -313,10 +313,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 102 IRQ_TYPE_NONE>, - <GIC_SPI 103 IRQ_TYPE_NONE>, - <GIC_SPI 104 IRQ_TYPE_NONE>, - <GIC_SPI 105 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>; }; };
arch/arm/boot/dts/bcm-hr2.dtsi +12 -12
@@ -264,7 +264,7 @@ reg = <0x38000 0x50>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 95 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; };
@@ -279,7 +279,7 @@ reg = <0x3b000 0x50>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 96 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; }; };
@@ -300,7 +300,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 186 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <0>;
@@ -322,10 +322,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 182 IRQ_TYPE_NONE>, - <GIC_SPI 183 IRQ_TYPE_NONE>, - <GIC_SPI 184 IRQ_TYPE_NONE>, - <GIC_SPI 185 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>; brcm,pcie-msi-inten; }; };
@@ -336,7 +336,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 192 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <1>;
@@ -358,10 +358,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 188 IRQ_TYPE_NONE>, - <GIC_SPI 189 IRQ_TYPE_NONE>, - <GIC_SPI 190 IRQ_TYPE_NONE>, - <GIC_SPI 191 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>; brcm,pcie-msi-inten; }; };
arch/arm/boot/dts/bcm-nsp.dtsi +16 -16
@@ -391,7 +391,7 @@ reg = <0x38000 0x50>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 89 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; dma-coherent; status = "disabled";
@@ -496,7 +496,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <0>;
@@ -519,10 +519,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 127 IRQ_TYPE_NONE>, - <GIC_SPI 128 IRQ_TYPE_NONE>, - <GIC_SPI 129 IRQ_TYPE_NONE>, - <GIC_SPI 130 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>; brcm,pcie-msi-inten; }; };
@@ -533,7 +533,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <1>;
@@ -556,10 +556,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 133 IRQ_TYPE_NONE>, - <GIC_SPI 134 IRQ_TYPE_NONE>, - <GIC_SPI 135 IRQ_TYPE_NONE>, - <GIC_SPI 136 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; brcm,pcie-msi-inten; }; };
@@ -570,7 +570,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <2>;
@@ -593,10 +593,10 @@ compatible = "brcm,iproc-msi"; msi-controller; interrupt-parent = <&gic>; - interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>, - <GIC_SPI 140 IRQ_TYPE_NONE>, - <GIC_SPI 141 IRQ_TYPE_NONE>, - <GIC_SPI 142 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>; brcm,pcie-msi-inten; }; };
arch/arm/boot/dts/bcm5301x.dtsi +1 -1
@@ -365,7 +365,7 @@ i2c0: i2c@18009000 { compatible = "brcm,iproc-i2c"; reg = <0x18009000 0x50>; - interrupts = <GIC_SPI 121 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <0>; clock-frequency = <100000>;
arch/arm/boot/dts/da850.dtsi +1 -5
@@ -539,11 +539,7 @@ gpio-controller; #gpio-cells = <2>; reg = <0x226000 0x1000>; - interrupts = <42 IRQ_TYPE_EDGE_BOTH - 43 IRQ_TYPE_EDGE_BOTH 44 IRQ_TYPE_EDGE_BOTH - 45 IRQ_TYPE_EDGE_BOTH 46 IRQ_TYPE_EDGE_BOTH - 47 IRQ_TYPE_EDGE_BOTH 48 IRQ_TYPE_EDGE_BOTH - 49 IRQ_TYPE_EDGE_BOTH 50 IRQ_TYPE_EDGE_BOTH>; + interrupts = <42 43 44 45 46 47 48 49 50>; ti,ngpio = <144>; ti,davinci-gpio-unbanked = <0>; status = "disabled";
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi +1 -1
@@ -672,7 +672,7 @@ dsa,member = <0 0>; eeprom-length = <512>; interrupt-parent = <&gpio6>; - interrupts = <3 IRQ_TYPE_EDGE_FALLING>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <2>;
arch/arm/boot/dts/omap4-droid4-xt894.dts +3 -6
@@ -159,13 +159,7 @@ dais = <&mcbsp2_port>, <&mcbsp3_port>; }; -}; - -&dss { - status = "okay"; -}; -&gpio6 { pwm8: dmtimer-pwm-8 { pinctrl-names = "default"; pinctrl-0 = <&vibrator_direction_pin>;
@@ -192,7 +186,10 @@ pwm-names = "enable", "direction"; direction-duty-cycle-ns = <10000000>; }; +}; +&dss { + status = "okay"; }; &dsi1 {
arch/arm/configs/imx_v4_v5_defconfig +2 -0
@@ -141,9 +141,11 @@ CONFIG_USB_STORAGE=y CONFIG_USB_CHIPIDEA=y CONFIG_USB_CHIPIDEA_UDC=y CONFIG_USB_CHIPIDEA_HOST=y +CONFIG_USB_CHIPIDEA_ULPI=y CONFIG_NOP_USB_XCEIV=y CONFIG_USB_GADGET=y CONFIG_USB_ETH=m +CONFIG_USB_ULPI_BUS=y CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y
arch/arm/configs/imx_v6_v7_defconfig +2 -0
@@ -294,6 +294,7 @@ CONFIG_USB_STORAGE=y CONFIG_USB_CHIPIDEA=y CONFIG_USB_CHIPIDEA_UDC=y CONFIG_USB_CHIPIDEA_HOST=y +CONFIG_USB_CHIPIDEA_ULPI=y CONFIG_USB_SERIAL=m CONFIG_USB_SERIAL_GENERIC=y CONFIG_USB_SERIAL_FTDI_SIO=m
@@ -330,6 +331,7 @@ CONFIG_USB_GADGETFS=m CONFIG_USB_FUNCTIONFS=m CONFIG_USB_MASS_STORAGE=m CONFIG_USB_G_SERIAL=m +CONFIG_USB_ULPI_BUS=y CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y
arch/arm/crypto/speck-neon-core.S +4 -2
@@ -272,9 +272,11 @@ * Allocate stack space to store 128 bytes worth of tweaks. For * performance, this space is aligned to a 16-byte boundary so that we * can use the load/store instructions that declare 16-byte alignment. + * For Thumb2 compatibility, don't do the 'bic' directly on 'sp'. */ - sub sp, #128 - bic sp, #0xf + sub r12, sp, #128 + bic r12, #0xf + mov sp, r12 .if \n == 64 // Load first tweak
arch/arm/mach-davinci/board-da850-evm.c +1 -1
@@ -773,7 +773,7 @@ static struct gpiod_lookup_table mmc_gpios_table = { GPIO_LOOKUP("davinci_gpio.0", DA850_MMCSD_CD_PIN, "cd", GPIO_ACTIVE_LOW),GPIO_LOOKUP ("davinci_gpio.0" ,DA850_MMCSD_WP_PIN ,"wp" , - GPIO_ACTIVE_LOW), + GPIO_ACTIVE_HIGH), }, };
arch/arm/mach-omap2/omap-smp.c +41 -0
53 lines not on this page · raw message
arch/arm/mach-pxa/irq.c +2 -2
@@ -185,7 +185,7 @@ static int pxa_irq_suspend(void) {int i; -for (i =0 ; i < pxa_internal_irq_nr /32 ; i++) { +for (i =0 ; i <DIV_ROUND_UP (pxa_internal_irq_nr,32 ); i++) {void __iomem *base =irq_base (i); saved_icmr[i] =__raw_readl (base +ICMR );
@@ -204,7 +204,7 @@ static void pxa_irq_resume(void) {int i; -for (i =0 ; i < pxa_internal_irq_nr /32 ; i++) { +for (i =0 ; i <DIV_ROUND_UP (pxa_internal_irq_nr,32 ); i++) {void __iomem *base =irq_base (i);__raw_writel (saved_icmr[i], base +ICMR );
arch/arm/mm/init.c +9 -0
@@ -736,20 +736,29 @@ static int __mark_rodata_ro(void *unused)return 0 ; } +static int kernel_set_to_readonly__read_mostly ; +void mark_rodata_ro (void ) { + kernel_set_to_readonly =1 ;stop_machine (__mark_rodata_ro,NULL ,NULL );debug_checkwx (); }void set_kernel_text_rw (void ) { +if (!kernel_set_to_readonly) +return ; +set_section_perms (ro_perms,ARRAY_SIZE (ro_perms), false, current->active_mm); }void set_kernel_text_ro (void ) { +if (!kernel_set_to_readonly) +return ; +set_section_perms (ro_perms,ARRAY_SIZE (ro_perms), true, current->active_mm); }
arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +14 -1
@@ -19,9 +19,22 @@ ðmac { status = "okay"; - phy-mode = "rgmii"; pinctrl-0 = <ð_rgmii_y_pins>; pinctrl-names = "default"; + phy-handle = <ð_phy0>; + phy-mode = "rgmii"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + eth_phy0: ethernet-phy@0 { + /* Realtek RTL8211F (0x001cc916) */ + reg = <0>; + eee-broken-1000t; + }; + }; }; &uart_A {
arch/arm64/boot/dts/amlogic/meson-gxl-mali.dtsi +1 -1
@@ -6,7 +6,7 @@ &apb { mali: gpu@c0000 { - compatible = "amlogic,meson-gxbb-mali", "arm,mali-450"; + compatible = "amlogic,meson-gxl-mali", "arm,mali-450"; reg = <0x0 0xc0000 0x0 0x40000>; interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi +4 -4
@@ -118,7 +118,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 281 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 281 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <0>;
@@ -149,7 +149,7 @@ #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0>; - interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 305 IRQ_TYPE_NONE>; + interrupt-map = <0 0 0 0 &gic 0 GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; linux,pci-domain = <4>;
@@ -566,7 +566,7 @@ reg = <0x66080000 0x100>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 394 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; status = "disabled"; };
@@ -594,7 +594,7 @@ reg = <0x660b0000 0x100>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 395 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 395 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; status = "disabled"; };
arch/arm64/boot/dts/broadcom/stingray/bcm958742k.dts +4 -0
@@ -43,6 +43,10 @@ enet-phy-lane-swap; }; +&sdio0 { + mmc-ddr-1_8v; +}; + &uart2 { status = "okay"; };
arch/arm64/boot/dts/broadcom/stingray/bcm958742t.dts +4 -0
@@ -42,3 +42,7 @@ &gphy0 { enet-phy-lane-swap; }; + +&sdio0 { + mmc-ddr-1_8v; +};
arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi +2 -2
@@ -409,7 +409,7 @@ reg = <0x000b0000 0x100>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 177 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; status = "disabled"; };
@@ -453,7 +453,7 @@ reg = <0x000e0000 0x100>; #address-cells = <1>; #size-cells = <0>; - interrupts = <GIC_SPI 178 IRQ_TYPE_NONE>; + interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <100000>; status = "disabled"; };
arch/arm64/boot/dts/qcom/msm8916.dtsi +2 -2
@@ -1191,14 +1191,14 @@ port@0 { reg = <0>; - etf_out: endpoint { + etf_in: endpoint { slave-mode; remote-endpoint = <&funnel0_out>; }; }; port@1 { reg = <0>; - etf_in: endpoint { + etf_out: endpoint { remote-endpoint = <&replicator_in>; }; };
arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts +1 -1
@@ -54,7 +54,7 @@ sound { compatible = "audio-graph-card"; label = "UniPhier LD11"; - widgets = "Headphone", "Headphone Jack"; + widgets = "Headphone", "Headphones"; dais = <&i2s_port2 &i2s_port3 &i2s_port4
arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts +1 -1
@@ -54,7 +54,7 @@ sound { compatible = "audio-graph-card"; label = "UniPhier LD20"; - widgets = "Headphone", "Headphone Jack"; + widgets = "Headphone", "Headphones"; dais = <&i2s_port2 &i2s_port3 &i2s_port4
arch/arm64/include/asm/alternative.h +6 -1
@@ -28,7 +28,12 @@ typedef void (*alternative_cb_t)(struct alt_instr *alt, __le32 *origptr, __le32 *updptr, int nr_inst);void __init apply_alternatives_all (void ); -void apply_alternatives (void *start,size_t length); + +#ifdef CONFIG_MODULES +void apply_alternatives_module (void *start,size_t length); +#else +static inline void apply_alternatives_module (void *start,size_t length) { } +#endif #define ALTINSTR_ENTRY (feature,cb) \ " .word 661b - .\n"/* label */ \
arch/arm64/kernel/alternative.c +44 -7
85 lines not on this page · raw message
arch/arm64/kernel/module.c +2 -3
@@ -448,9 +448,8 @@ int module_finalize(const Elf_Ehdr *hdr,const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) { -if (strcmp (".altinstructions" , secstrs + s->sh_name) ==0 ) { -apply_alternatives ((void *)s->sh_addr, s->sh_size); - } +if (strcmp (".altinstructions" , secstrs + s->sh_name) ==0 ) +apply_alternatives_module ((void *)s->sh_addr, s->sh_size);#ifdef CONFIG_ARM64_MODULE_PLTS if (IS_ENABLED (CONFIG_DYNAMIC_FTRACE ) && !strcmp (".text.ftrace_trampoline" , secstrs + s->sh_name))
arch/arm64/kernel/smp.c +1 -1
@@ -179,7 +179,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)* This is the secondary CPU boot entry. We're using this CPUs * idle thread stack, but a set of temporary page tables. */ -asmlinkage void secondary_start_kernel(void) +asmlinkage notrace void secondary_start_kernel(void) {u64 mpidr =read_cpuid_mpidr () &MPIDR_HWID_BITMASK ;struct mm_struct *mm = &init_mm;
arch/arm64/mm/dma-mapping.c +5 -4
@@ -588,13 +588,14 @@ static void *__iommu_alloc_attrs(struct device *dev, size_t size, size >> PAGE_SHIFT);return NULL ; } -if (!coherent) -__dma_flush_area (page_to_virt (page), iosize); - addr =dma_common_contiguous_remap (page, size,VM_USERMAP , prot,__builtin_return_address (0 )); -if (!addr) { +if (addr) { +memset (addr,0 , size); +if (!coherent) +__dma_flush_area (page_to_virt (page), iosize); + }else {iommu_dma_unmap_page (dev, *handle, iosize,0 , attrs);dma_release_from_contiguous (dev, page, size >>PAGE_SHIFT );
arch/ia64/kernel/perfmon.c +2 -4
@@ -2278,17 +2278,15 @@ pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_tDPRINT (("smpl_buf @%p\n" , smpl_buf));/* allocate vma */ - vma =kmem_cache_zalloc (vm_area_cachep,GFP_KERNEL ); + vma =vm_area_alloc (mm);if (!vma) {DPRINT (("Cannot allocate vma\n" )); goto error_kmem; } -INIT_LIST_HEAD (&vma->anon_vma_chain);/* * partially initialize the vma for the sampling buffer */ - vma->vm_mm = mm; vma->vm_file =get_file (filp); vma->vm_flags =VM_READ |VM_MAYREAD |VM_DONTEXPAND |VM_DONTDUMP ; vma->vm_page_prot =PAGE_READONLY ;/* XXX may need to change */
@@ -2346,7 +2344,7 @@ pfm_smpl_buffer_alloc(struct task_struct *task, struct file *filp, pfm_context_treturn 0 ; error: -kmem_cache_free (vm_area_cachep, vma); +vm_area_free (vma); error_kmem:pfm_rvfree (smpl_buf, size);
arch/ia64/mm/init.c +4 -8
@@ -114,10 +114,8 @@ ia64_init_addr_space (void)* the problem. When the process attempts to write to the register backing store * for the first time, it will get a SEGFAULT in this case. */ - vma =kmem_cache_zalloc (vm_area_cachep,GFP_KERNEL ); + vma =vm_area_alloc (current->mm);if (vma) { -INIT_LIST_HEAD (&vma->anon_vma_chain); - vma->vm_mm = current->mm; vma->vm_start = current->thread.rbs_bot &PAGE_MASK ; vma->vm_end = vma->vm_start +PAGE_SIZE ; vma->vm_flags =VM_DATA_DEFAULT_FLAGS |VM_GROWSUP |VM_ACCOUNT ;
@@ -125,7 +123,7 @@ ia64_init_addr_space (void)down_write (¤t->mm->mmap_sem);if (insert_vm_struct (current->mm, vma)) {up_write (¤t->mm->mmap_sem); -kmem_cache_free (vm_area_cachep, vma); +vm_area_free (vma);return ; }up_write (¤t->mm->mmap_sem);
@@ -133,10 +131,8 @@ ia64_init_addr_space (void)/* map NaT-page at address zero to speed up speculative dereferencing of NULL: */ if (!(current->personality &MMAP_PAGE_ZERO )) { - vma =kmem_cache_zalloc (vm_area_cachep,GFP_KERNEL ); + vma =vm_area_alloc (current->mm);if (vma) { -INIT_LIST_HEAD (&vma->anon_vma_chain); - vma->vm_mm = current->mm; vma->vm_end =PAGE_SIZE ; vma->vm_page_prot =__pgprot (pgprot_val (PAGE_READONLY ) | _PAGE_MA_NAT); vma->vm_flags = VM_READ | VM_MAYREAD | VM_IO |
@@ -144,7 +140,7 @@ ia64_init_addr_space (void)down_write (¤t->mm->mmap_sem);if (insert_vm_struct (current->mm, vma)) {up_write (¤t->mm->mmap_sem); -kmem_cache_free (vm_area_cachep, vma); +vm_area_free (vma);return ; }up_write (¤t->mm->mmap_sem);
arch/m68k/include/asm/mcf_pgalloc.h +3 -1
@@ -44,6 +44,7 @@ extern inline pmd_t *pmd_alloc_kernel(pgd_t *pgd, unsigned long address)static inline void __pte_free_tlb (struct mmu_gather *tlb,pgtable_t page,unsigned long address) { +pgtable_page_dtor (page);__free_page (page); }
@@ -74,8 +75,9 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm,return page; } -extern inline void pte_free (struct mm_struct *mm,struct page *page) +static inline void pte_free (struct mm_struct *mm,struct page *page) { +pgtable_page_dtor (page);__free_page (page); }
arch/nds32/kernel/setup.c +2 -1
@@ -278,7 +278,8 @@ static void __init setup_memory(void)void __init setup_arch (char **cmdline_p) { -early_init_devtree ( __dtb_start); +early_init_devtree (__atags_pointer ? \ +phys_to_virt (__atags_pointer) : __dtb_start);setup_cpuinfo ();
arch/openrisc/kernel/entry.S +1 -7
@@ -277,12 +277,6 @@ EXCEPTION_ENTRY(_data_page_fault_handler) l.addi r3,r1,0 // pt_regs /* r4 set be EXCEPTION_HANDLE */ // effective address of fault - /* - * __PHX__: TODO - * - * all this can be written much simpler. look at - * DTLB miss handler in the CONFIG_GUARD_PROTECTED_CORE part - */ #ifdef CONFIG_OPENRISC_NO_SPR_SR_DSX l.lwz r6,PT_PC(r3) // address of an offending insn l.lwz r6,0(r6) // instruction that caused pf
@@ -314,7 +308,7 @@ EXCEPTION_ENTRY(_data_page_fault_handler) #else - l.lwz r6,PT_SR(r3) // SR + l.mfspr r6,r0,SPR_SR // SR l.andi r6,r6,SPR_SR_DSX // check for delay slot exception l.sfne r6,r0 // exception happened in delay slot l.bnf 7f
arch/openrisc/kernel/head.S +6 -3
@@ -210,8 +210,7 @@ * r4 - EEAR exception EA * r10 - current pointing to current_thread_info struct * r12 - syscall 0, since we didn't come from syscall - * r13 - temp it actually contains new SR, not needed anymore - * r31 - handler address of the handler we'll jump to + * r30 - handler address of the handler we'll jump to * * handler has to save remaining registers to the exception * ksp frame *before* tainting them!
@@ -244,6 +243,7 @@ /* r1 is KSP, r30 is __pa(KSP) */ ;\ tophys (r30,r1) ;\ l.sw PT_GPR12(r30),r12 ;\ + /* r4 use for tmp before EA */ ;\ l.mfspr r12,r0,SPR_EPCR_BASE ;\ l.sw PT_PC(r30),r12 ;\ l.mfspr r12,r0,SPR_ESR_BASE ;\
@@ -263,7 +263,10 @@ /* r12 == 1 if we come from syscall */ ;\ CLEAR_GPR(r12) ;\ /* ----- turn on MMU ----- */ ;\ - l.ori r30,r0,(EXCEPTION_SR) ;\ + /* Carry DSX into exception SR */ ;\ + l.mfspr r30,r0,SPR_SR ;\ + l.andi r30,r30,SPR_SR_DSX ;\ + l.ori r30,r30,(EXCEPTION_SR) ;\ l.mtspr r0,r30,SPR_ESR_BASE ;\ /* r30: EA address of handler */ ;\ LOAD_SYMBOL_2_GPR(r30,handler) ;\
arch/openrisc/kernel/traps.c +1 -1
@@ -317,7 +317,7 @@ static inline int in_delay_slot(struct pt_regs *regs) return 0; }#else -return regs->sr &SPR_SR_DSX ; +return mfspr (SPR_SR ) &SPR_SR_DSX ;#endif }
arch/parisc/include/asm/spinlock.h +2 -6
@@ -20,7 +20,6 @@ static inline void arch_spin_lock_flags(arch_spinlock_t *x, {volatile unsigned int *a; -mb (); a =__ldcw_align (x);while (__ldcw (a) ==0 )while (*a ==0 )
@@ -30,17 +29,16 @@ static inline void arch_spin_lock_flags(arch_spinlock_t *x,local_irq_disable (); }else cpu_relax (); -mb (); }#define arch_spin_lock_flags arch_spin_lock_flagsstatic inline void arch_spin_unlock (arch_spinlock_t *x) {volatile unsigned int *a; -mb (); + a =__ldcw_align (x); - *a =1 ;mb (); + *a =1 ; }static inline int arch_spin_trylock (arch_spinlock_t *x)
@@ -48,10 +46,8 @@ static inline int arch_spin_trylock(arch_spinlock_t *x)volatile unsigned int *a;int ret; -mb (); a =__ldcw_align (x); ret =__ldcw (a) !=0 ; -mb ();return ret; }
arch/parisc/kernel/syscall.S +12 -12
@@ -629,12 +629,12 @@ cas_action: stw %r1, 4(%sr2,%r20) #endif /* The load and store could fail */ -1: ldw,ma 0(%r26), %r28 +1: ldw 0(%r26), %r28 sub,<> %r28, %r25, %r0 -2: stw,ma %r24, 0(%r26) +2: stw %r24, 0(%r26) /* Free lock */ sync - stw,ma %r20, 0(%sr2,%r20) + stw %r20, 0(%sr2,%r20) #if ENABLE_LWS_DEBUG /* Clear thread register indicator */ stw %r0, 4(%sr2,%r20)
@@ -798,30 +798,30 @@ cas2_action: ldo 1(%r0),%r28 /* 8bit CAS */ -13: ldb,ma 0(%r26), %r29 +13: ldb 0(%r26), %r29 sub,= %r29, %r25, %r0 b,n cas2_end -14: stb,ma %r24, 0(%r26) +14: stb %r24, 0(%r26) b cas2_end copy %r0, %r28 nop nop /* 16bit CAS */ -15: ldh,ma 0(%r26), %r29 +15: ldh 0(%r26), %r29 sub,= %r29, %r25, %r0 b,n cas2_end -16: sth,ma %r24, 0(%r26) +16: sth %r24, 0(%r26) b cas2_end copy %r0, %r28 nop nop /* 32bit CAS */ -17: ldw,ma 0(%r26), %r29 +17: ldw 0(%r26), %r29 sub,= %r29, %r25, %r0 b,n cas2_end -18: stw,ma %r24, 0(%r26) +18: stw %r24, 0(%r26) b cas2_end copy %r0, %r28 nop
@@ -829,10 +829,10 @@ cas2_action: /* 64bit CAS */ #ifdef CONFIG_64BIT -19: ldd,ma 0(%r26), %r29 +19: ldd 0(%r26), %r29 sub,*= %r29, %r25, %r0 b,n cas2_end -20: std,ma %r24, 0(%r26) +20: std %r24, 0(%r26) copy %r0, %r28 #else /* Compare first word */
@@ -851,7 +851,7 @@ cas2_action: cas2_end: /* Free lock */ sync - stw,ma %r20, 0(%sr2,%r20) + stw %r20, 0(%sr2,%r20) /* Enable interrupts */ ssm PSW_SM_I, %r0 /* Return to userspace, set no error */
arch/powerpc/kernel/smp.c +0 -6
@@ -579,9 +579,6 @@ static void nmi_stop_this_cpu(struct pt_regs *regs) nmi_ipi_busy_count--;nmi_ipi_unlock (); -/* Remove this CPU */ -set_cpu_online (smp_processor_id (), false); -spin_begin ();while (1 )spin_cpu_relax ();
@@ -596,9 +593,6 @@ void smp_send_stop(void)static void stop_this_cpu (void *dummy) { -/* Remove this CPU */ -set_cpu_online (smp_processor_id (), false); -hard_irq_disable ();spin_begin ();while (1 )
arch/riscv/kernel/irq.c +0 -4
@@ -16,10 +16,6 @@#include <linux/irqchip.h> #include <linux/irqdomain.h> -#ifdef CONFIG_RISCV_INTC -#include <linux/irqchip/irq-riscv-intc.h> -#endif -void __init init_IRQ (void ) {irqchip_init ();
arch/riscv/kernel/module.c +2 -2
@@ -252,14 +252,14 @@ static int apply_r_riscv_align_rela(struct module *me, u32 *location,static int apply_r_riscv_add32_rela (struct module *me,u32 *location,Elf_Addr v) { - *(u32 *)location += (*(u32 *)v); + *(u32 *)location += (u32 )v;return 0 ; }static int apply_r_riscv_sub32_rela (struct module *me,u32 *location,Elf_Addr v) { - *(u32 *)location -= (*(u32 *)v); + *(u32 *)location -= (u32 )v;return 0 ; }
arch/riscv/kernel/ptrace.c +1 -1
@@ -50,7 +50,7 @@ static int riscv_gpr_set(struct task_struct *target,struct pt_regs *regs; regs =task_pt_regs (target); - ret =user_regset_copyin (&pos, &count, &kbuf, &ubuf, ®s,0 ,-1 ); + ret =user_regset_copyin (&pos, &count, &kbuf, &ubuf, regs,0 ,-1 );return ret; }
arch/s390/net/bpf_jit_comp.c +1 -0
@@ -1391,6 +1391,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) goto free_addrs; }if (bpf_jit_prog (&jit, fp)) { +bpf_jit_binary_free (header); fp = orig_fp; goto free_addrs; }
arch/x86/include/asm/processor.h +1 -0
@@ -980,6 +980,7 @@ static inline uint32_t hypervisor_cpuid_base(const char *sig, uint32_t leaves)extern unsigned long arch_align_stack (unsigned long sp);extern void free_init_pages (char *what,unsigned long begin,unsigned long end); +extern void free_kernel_image_pages (void *begin,void *end);void default_idle (void );#ifdef CONFIG_XEN
arch/x86/include/asm/set_memory.h +1 -0
@@ -46,6 +46,7 @@ int set_memory_np(unsigned long addr, int numpages);int set_memory_4k (unsigned long addr,int numpages);int set_memory_encrypted (unsigned long addr,int numpages);int set_memory_decrypted (unsigned long addr,int numpages); +int set_memory_np_noalias (unsigned long addr,int numpages);int set_memory_array_uc (unsigned long *addr,int addrinarray);int set_memory_array_wc (unsigned long *addr,int addrinarray);
arch/x86/kernel/cpu/microcode/intel.c +4 -1
@@ -190,8 +190,11 @@ static void save_microcode_patch(void *data, unsigned int size) p =memdup_patch (data, size);if (!p)pr_err ("Error allocating buffer %p\n" , data); -else +else {list_replace (&iter->plist, &p->plist); +kfree (iter->data); +kfree (iter); + } } }
arch/x86/kernel/kvmclock.c +1 -0
@@ -138,6 +138,7 @@ static unsigned long kvm_get_tsc_khz(void) src = &hv_clock[cpu].pvti; tsc_khz =pvclock_tsc_khz (src);put_cpu (); +setup_force_cpu_cap (X86_FEATURE_TSC_KNOWN_FREQ );return tsc_khz; }
arch/x86/kernel/smpboot.c +5 -0
@@ -222,6 +222,11 @@ static void notrace start_secondary(void *unused)#ifdef CONFIG_X86_32 /* switch away from the initial page table */ load_cr3 (swapper_pg_dir); +/* +* Initialize the CR4 shadow before doing anything that could +* try to read it. +*/ +cr4_init_shadow ();__flush_tlb_all ();#endif load_current_idt ();
arch/x86/kvm/vmx.c +4 -5
@@ -11791,7 +11791,6 @@ static int enter_vmx_non_root_mode(struct kvm_vcpu *vcpu, bool from_vmentry) {struct vcpu_vmx *vmx =to_vmx (vcpu);struct vmcs12 *vmcs12 =get_vmcs12 (vcpu); -u32 msr_entry_idx;u32 exit_qual;int r;
@@ -11813,10 +11812,10 @@ static int enter_vmx_non_root_mode(struct kvm_vcpu *vcpu, bool from_vmentry)nested_get_vmcs12_pages (vcpu, vmcs12); r =EXIT_REASON_MSR_LOAD_FAIL ; - msr_entry_idx =nested_vmx_load_msr (vcpu, - vmcs12->vm_entry_msr_load_addr, - vmcs12->vm_entry_msr_load_count); -if (msr_entry_idx) + exit_qual =nested_vmx_load_msr (vcpu, + vmcs12->vm_entry_msr_load_addr, + vmcs12->vm_entry_msr_load_count); +if (exit_qual) goto fail;/*
arch/x86/mm/init.c +34 -3
@@ -775,13 +775,44 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) } } +/* +* begin/end can be in the direct map or the "high kernel mapping" +* used for the kernel image only. free_init_pages() will do the +* right thing for either kind of address. +*/ +void free_kernel_image_pages (void *begin,void *end) +{ +unsigned long begin_ul = (unsigned long )begin; +unsigned long end_ul = (unsigned long )end; +unsigned long len_pages = (end_ul - begin_ul) >>PAGE_SHIFT ; + + +free_init_pages ("unused kernel image" , begin_ul, end_ul); + +/* +* PTI maps some of the kernel into userspace. For performance, +* this includes some kernel areas that do not contain secrets. +* Those areas might be adjacent to the parts of the kernel image +* being freed, which may contain secrets. Remove the "high kernel +* image mapping" for these freed areas, ensuring they are not even +* potentially vulnerable to Meltdown regardless of the specific +* optimizations PTI is currently using. +* +* The "noalias" prevents unmapping the direct map alias which is +* needed to access the freed pages. +* +* This is only valid for 64bit kernels. 32bit has only one mapping +* which can't be treated in this way for obvious reasons. +*/ +if (IS_ENABLED (CONFIG_X86_64 ) &&cpu_feature_enabled (X86_FEATURE_PTI )) +set_memory_np_noalias (begin_ul, len_pages); +} +void __ref free_initmem (void ) {e820__reallocate_tables (); -free_init_pages ("unused kernel" , - (unsigned long )(&__init_begin), - (unsigned long )(&__init_end)); +free_kernel_image_pages (&__init_begin, &__init_end); }#ifdef CONFIG_BLK_DEV_INITRD
arch/x86/mm/init_64.c +2 -6
@@ -1283,12 +1283,8 @@ void mark_rodata_ro(void)set_memory_ro (start, (end-start) >>PAGE_SHIFT );#endif -free_init_pages ("unused kernel" , - (unsigned long )__va (__pa_symbol (text_end)), - (unsigned long )__va (__pa_symbol (rodata_start))); -free_init_pages ("unused kernel" , - (unsigned long )__va (__pa_symbol (rodata_end)), - (unsigned long )__va (__pa_symbol (_sdata))); +free_kernel_image_pages ((void *)text_end, (void *)rodata_start); +free_kernel_image_pages ((void *)rodata_end, (void *)_sdata);debug_checkwx ();
arch/x86/mm/pageattr.c +13 -0
@@ -53,6 +53,7 @@ static DEFINE_SPINLOCK(cpa_lock);#define CPA_FLUSHTLB 1#define CPA_ARRAY 2#define CPA_PAGES_ARRAY 4 +#define CPA_NO_CHECK_ALIAS 8/* Do not search for aliases */ #ifdef CONFIG_PROC_FS static unsigned long direct_pages_count[PG_LEVEL_NUM ];
@@ -1486,6 +1487,9 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,/* No alias checking for _NX bit modifications */ checkalias = (pgprot_val (mask_set) |pgprot_val (mask_clr)) != _PAGE_NX; +/* Has caller explicitly disabled alias checking? */ +if (in_flag &CPA_NO_CHECK_ALIAS ) + checkalias =0 ; ret =__change_page_attr_set_clr (&cpa, checkalias);
@@ -1772,6 +1776,15 @@ int set_memory_np(unsigned long addr, int numpages)return change_page_attr_clear (&addr, numpages,__pgprot (_PAGE_PRESENT),0 ); } +int set_memory_np_noalias (unsigned long addr,int numpages) +{ +int cpa_flags =CPA_NO_CHECK_ALIAS ; + +return change_page_attr_set_clr (&addr, numpages,__pgprot (0 ), +__pgprot (_PAGE_PRESENT),0 , + cpa_flags,NULL ); +} +int set_memory_4k (unsigned long addr,int numpages) { return change_page_attr_set_clr(&addr, numpages, __pgprot(0),
block/blk-mq-debugfs.c +1 -1
@@ -357,7 +357,7 @@ static const char *const blk_mq_rq_state_name_array[] = {static const char *blk_mq_rq_state_name (enum mq_rq_state rq_state) { -if (WARN_ON_ONCE ((unsigned int )rq_state > +if (WARN_ON_ONCE ((unsigned int )rq_state >=ARRAY_SIZE (blk_mq_rq_state_name_array)))return "(?)" ;return blk_mq_rq_state_name_array[rq_state];
block/blk-mq.c +12 -0
@@ -1174,6 +1174,9 @@ static bool blk_mq_mark_tag_wait(struct blk_mq_hw_ctx **hctx,#define BLK_MQ_RESOURCE_DELAY 3/* ms units */ +/* +* Returns true if we did some work AND can potentially do more. +*/ bool blk_mq_dispatch_rq_list (struct request_queue *q,struct list_head *list,bool got_budget) {
@@ -1304,8 +1307,17 @@ bool blk_mq_dispatch_rq_list(struct request_queue *q, struct list_head *list,blk_mq_run_hw_queue (hctx, true); else if (needs_restart && (ret == BLK_STS_RESOURCE)) blk_mq_delay_run_hw_queue(hctx, BLK_MQ_RESOURCE_DELAY); + +return false; } +/* +* If the host/device is unable to accept more work, inform the +* caller of that. +*/ +if (ret ==BLK_STS_RESOURCE || ret ==BLK_STS_DEV_RESOURCE ) +return false; +return (queued + errors) !=0 ; }
block/sed-opal.c +2 -2
@@ -877,7 +877,7 @@ static size_t response_get_string(const struct parsed_resp *resp, int n,return 0 ; } -if (n > resp->num) { +if (n >= resp->num) {pr_debug ("Response has %d tokens. Can't access %d\n" , resp->num, n);return 0 ;
@@ -916,7 +916,7 @@ static u64 response_get_u64(const struct parsed_resp *resp, int n)return 0 ; } -if (n > resp->num) { +if (n >= resp->num) {pr_debug ("Response has %d tokens. Can't access %d\n" , resp->num, n);return 0 ;
drivers/acpi/ec.c +20 -0
@@ -2031,6 +2031,17 @@ static inline void acpi_ec_query_exit(void) } } +static const struct dmi_system_id acpi_ec_no_wakeup[] = { + { + .ident ="Thinkpad X1 Carbon 6th" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"LENOVO" ), +DMI_MATCH (DMI_PRODUCT_FAMILY ,"Thinkpad X1 Carbon 6th" ), + }, + }, + { }, +}; +int __init acpi_ec_init (void ) {int result;
@@ -2041,6 +2052,15 @@ int __init acpi_ec_init(void)if (result)return result; +/* +* Disable EC wakeup on following systems to prevent periodic +* wakeup from EC GPE. +*/ +if (dmi_check_system (acpi_ec_no_wakeup)) { + ec_no_wakeup = true; +pr_debug ("Disabling EC wakeup on suspend-to-idle\n" ); + } +/* Drivers must be started after acpi_ec_query_init() */ dsdt_fail =acpi_bus_register_driver (&acpi_ec_driver);/*
drivers/acpi/nfit/core.c +4 -0
@@ -408,6 +408,8 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,const guid_t *guid;int rc, i; +if (cmd_rc) + *cmd_rc = -EINVAL ; func = cmd;if (cmd ==ND_CMD_CALL ) { call_pkg = buf;
@@ -518,6 +520,8 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,* If we return an error (like elsewhere) then caller wouldn't * be able to rely upon data returned to make calculation. */ +if (cmd_rc) + *cmd_rc =0 ;return 0 ; }
drivers/ata/libahci.c +5 -2
@@ -35,6 +35,7 @@#include <linux/kernel.h> #include <linux/gfp.h> #include <linux/module.h> +#include <linux/nospec.h> #include <linux/blkdev.h> #include <linux/delay.h> #include <linux/interrupt.h>
@@ -1146,10 +1147,12 @@ static ssize_t ahci_led_store(struct ata_port *ap, const char *buf,/* get the slot number from the message */ pmp = (state &EM_MSG_LED_PMP_SLOT ) >>8 ; -if (pmp <EM_MAX_SLOTS ) +if (pmp <EM_MAX_SLOTS ) { + pmp =array_index_nospec (pmp,EM_MAX_SLOTS ); emp = &pp->em_priv[pmp]; -else + }else {return -EINVAL ; + }/* mask off the activity bits if we are in sw_activity * mode, user should turn off sw_activity before setting
drivers/block/drbd/drbd_req.c +2 -2
@@ -1244,8 +1244,8 @@ drbd_request_prepare(struct drbd_device *device, struct bio *bio, unsigned long_drbd_start_io_acct (device, req);/* process discards always from our submitter thread */ -if ((bio_op (bio) &REQ_OP_WRITE_ZEROES ) || - (bio_op (bio) &REQ_OP_DISCARD )) +if (bio_op (bio) ==REQ_OP_WRITE_ZEROES || +bio_op (bio) ==REQ_OP_DISCARD ) goto queue_for_submitter_thread; if (rw == WRITE && req->private_bio && req->i.size
drivers/block/nbd.c +33 -7
@@ -76,6 +76,7 @@ struct link_dead_args {#define NBD_HAS_CONFIG_REF 4#define NBD_BOUND 5#define NBD_DESTROY_ON_DISCONNECT 6 +#define NBD_DISCONNECT_ON_CLOSE 7struct nbd_config {u32 flags;
@@ -138,6 +139,7 @@ static void nbd_config_put(struct nbd_device *nbd);static void nbd_connect_reply (struct genl_info *info,int index);static int nbd_genl_status (struct sk_buff *skb,struct genl_info *info);static void nbd_dead_link_work (struct work_struct *work); +static void nbd_disconnect_and_put (struct nbd_device *nbd);static inline struct device *nbd_to_dev (struct nbd_device *nbd) {
@@ -1291,6 +1293,12 @@ static int nbd_open(struct block_device *bdev, fmode_t mode)static void nbd_release (struct gendisk *disk,fmode_t mode) {struct nbd_device *nbd = disk->private_data; +struct block_device *bdev =bdget_disk (disk,0 ); + +if (test_bit (NBD_DISCONNECT_ON_CLOSE , &nbd->config->runtime_flags) && + bdev->bd_openers ==0 ) +nbd_disconnect_and_put (nbd); +nbd_config_put (nbd);nbd_put (nbd); }
@@ -1690,6 +1698,10 @@ static int nbd_genl_connect(struct sk_buff *skb, struct genl_info *info) &config->runtime_flags); put_dev = true; } +if (flags &NBD_CFLAG_DISCONNECT_ON_CLOSE ) { +set_bit (NBD_DISCONNECT_ON_CLOSE , + &config->runtime_flags); + } }if (info->attrs[NBD_ATTR_SOCKETS ]) {
@@ -1734,6 +1746,16 @@ static int nbd_genl_connect(struct sk_buff *skb, struct genl_info *info)return ret; } +static void nbd_disconnect_and_put (struct nbd_device *nbd) +{ +mutex_lock (&nbd->config_lock); +nbd_disconnect (nbd); +mutex_unlock (&nbd->config_lock); +if (test_and_clear_bit (NBD_HAS_CONFIG_REF , + &nbd->config->runtime_flags)) +nbd_config_put (nbd); +} +static int nbd_genl_disconnect (struct sk_buff *skb,struct genl_info *info) {struct nbd_device *nbd;
@@ -1766,12 +1788,7 @@ static int nbd_genl_disconnect(struct sk_buff *skb, struct genl_info *info)nbd_put (nbd);return 0 ; } -mutex_lock (&nbd->config_lock); -nbd_disconnect (nbd); -mutex_unlock (&nbd->config_lock); -if (test_and_clear_bit (NBD_HAS_CONFIG_REF , - &nbd->config->runtime_flags)) -nbd_config_put (nbd); +nbd_disconnect_and_put (nbd);nbd_config_put (nbd);nbd_put (nbd);return 0 ;
@@ -1782,7 +1799,7 @@ static int nbd_genl_reconfigure(struct sk_buff *skb, struct genl_info *info)struct nbd_device *nbd =NULL ;struct nbd_config *config;int index; -int ret = -EINVAL ; +int ret =0 ;bool put_dev = false;if (!netlink_capable (skb,CAP_SYS_ADMIN ))
@@ -1822,6 +1839,7 @@ static int nbd_genl_reconfigure(struct sk_buff *skb, struct genl_info *info) !nbd->task_recv) {dev_err (nbd_to_dev (nbd),"not configured, cannot reconfigure\n" ); + ret = -EINVAL ; goto out; }
@@ -1846,6 +1864,14 @@ static int nbd_genl_reconfigure(struct sk_buff *skb, struct genl_info *info) &config->runtime_flags))refcount_inc (&nbd->refs); } + +if (flags &NBD_CFLAG_DISCONNECT_ON_CLOSE ) { +set_bit (NBD_DISCONNECT_ON_CLOSE , + &config->runtime_flags); + }else { +clear_bit (NBD_DISCONNECT_ON_CLOSE , + &config->runtime_flags); + } }if (info->attrs[NBD_ATTR_SOCKETS ]) {
drivers/char/ipmi/kcs_bmc.c +10 -21
@@ -210,34 +210,23 @@ static void kcs_bmc_handle_cmd(struct kcs_bmc *kcs_bmc)int kcs_bmc_handle_event (struct kcs_bmc *kcs_bmc) {unsigned long flags; -int ret =0 ; +int ret = -ENODATA ;u8 status;spin_lock_irqsave (&kcs_bmc->lock, flags); -if (!kcs_bmc->running) { -kcs_force_abort (kcs_bmc); - ret = -ENODEV ; - goto out_unlock; - } - - status =read_status (kcs_bmc) & (KCS_STATUS_IBF |KCS_STATUS_CMD_DAT ); - -switch (status) { -case KCS_STATUS_IBF |KCS_STATUS_CMD_DAT : -kcs_bmc_handle_cmd (kcs_bmc); -break ; - -case KCS_STATUS_IBF : -kcs_bmc_handle_data (kcs_bmc); -break ; + status =read_status (kcs_bmc); +if (status &KCS_STATUS_IBF ) { +if (!kcs_bmc->running) +kcs_force_abort (kcs_bmc); +else if (status &KCS_STATUS_CMD_DAT ) +kcs_bmc_handle_cmd (kcs_bmc); +else +kcs_bmc_handle_data (kcs_bmc); -default : - ret = -ENODATA ; -break ; + ret =0 ; } -out_unlock:spin_unlock_irqrestore (&kcs_bmc->lock, flags);return ret;
drivers/clk/Makefile +1 -1
@@ -94,7 +94,7 @@ obj-$(CONFIG_ARCH_SPRD) += sprd/ obj-$(CONFIG_ARCH_STI) += st/ obj-$(CONFIG_ARCH_STRATIX10) += socfpga/ obj-$(CONFIG_ARCH_SUNXI) += sunxi/ -obj-$(CONFIG_ARCH_SUNXI) += sunxi-ng/ +obj-$(CONFIG_SUNXI_CCU) += sunxi-ng/ obj-$(CONFIG_ARCH_TEGRA) += tegra/ obj-y += ti/ obj-$(CONFIG_CLK_UNIPHIER) += uniphier/
drivers/clk/davinci/da8xx-cfgchip.c +1 -1
@@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap) usb1 =da8xx_cfgchip_register_usb1_clk48 (dev, regmap);if (IS_ERR (usb1)) { -if (PTR_ERR (usb0) == -EPROBE_DEFER ) +if (PTR_ERR (usb1) == -EPROBE_DEFER )return -EPROBE_DEFER ; dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",
drivers/clk/sunxi-ng/Makefile +15 -24
@@ -1,24 +1,24 @@ # SPDX-License-Identifier: GPL-2.0 # Common objects -lib-$(CONFIG_SUNXI_CCU) += ccu_common.o -lib-$(CONFIG_SUNXI_CCU) += ccu_mmc_timing.o -lib-$(CONFIG_SUNXI_CCU) += ccu_reset.o +obj-y += ccu_common.o +obj-y += ccu_mmc_timing.o +obj-y += ccu_reset.o # Base clock types -lib-$(CONFIG_SUNXI_CCU) += ccu_div.o -lib-$(CONFIG_SUNXI_CCU) += ccu_frac.o -lib-$(CONFIG_SUNXI_CCU) += ccu_gate.o -lib-$(CONFIG_SUNXI_CCU) += ccu_mux.o -lib-$(CONFIG_SUNXI_CCU) += ccu_mult.o -lib-$(CONFIG_SUNXI_CCU) += ccu_phase.o -lib-$(CONFIG_SUNXI_CCU) += ccu_sdm.o +obj-y += ccu_div.o +obj-y += ccu_frac.o +obj-y += ccu_gate.o +obj-y += ccu_mux.o +obj-y += ccu_mult.o +obj-y += ccu_phase.o +obj-y += ccu_sdm.o # Multi-factor clocks -lib-$(CONFIG_SUNXI_CCU) += ccu_nk.o -lib-$(CONFIG_SUNXI_CCU) += ccu_nkm.o -lib-$(CONFIG_SUNXI_CCU) += ccu_nkmp.o -lib-$(CONFIG_SUNXI_CCU) += ccu_nm.o -lib-$(CONFIG_SUNXI_CCU) += ccu_mp.o +obj-y += ccu_nk.o +obj-y += ccu_nkm.o +obj-y += ccu_nkmp.o +obj-y += ccu_nm.o +obj-y += ccu_mp.o # SoC support obj-$(CONFIG_SUN50I_A64_CCU) += ccu-sun50i-a64.o
@@ -37,12 +37,3 @@ obj-$(CONFIG_SUN8I_R40_CCU) += ccu-sun8i-r40.o obj-$(CONFIG_SUN9I_A80_CCU) += ccu-sun9i-a80.o obj-$(CONFIG_SUN9I_A80_CCU) += ccu-sun9i-a80-de.o obj-$(CONFIG_SUN9I_A80_CCU) += ccu-sun9i-a80-usb.o - -# The lib-y file goals is supposed to work only in arch/*/lib or lib/. In our -# case, we want to use that goal, but even though lib.a will be properly -# generated, it will not be linked in, eventually resulting in a linker error -# for missing symbols. -# -# We can work around that by explicitly adding lib.a to the obj-y goal. This is -# an undocumented behaviour, but works well for now. -obj-$(CONFIG_SUNXI_CCU) += lib.a
drivers/clocksource/timer-stm32.c +3 -1
@@ -304,8 +304,10 @@ static int __init stm32_timer_init(struct device_node *node) to->private_data =kzalloc (sizeof (struct stm32_timer_private ),GFP_KERNEL ); -if (!to->private_data) +if (!to->private_data) { + ret = -ENOMEM ; goto deinit; + } rstc =of_reset_control_get (node,NULL );if (!IS_ERR (rstc)) {
drivers/dax/device.c +8 -4
@@ -189,14 +189,16 @@ static int check_vma(struct dev_dax *dev_dax, struct vm_area_struct *vma,/* prevent private mappings from being established */ if ((vma->vm_flags &VM_MAYSHARE ) !=VM_MAYSHARE ) { -dev_info (dev,"%s: %s: fail, attempted private mapping\n" , +dev_info_ratelimited (dev, +"%s: %s: fail, attempted private mapping\n" , current->comm, func);return -EINVAL ; } mask = dax_region->align -1 ;if (vma->vm_start & mask || vma->vm_end & mask) { -dev_info (dev,"%s: %s: fail, unaligned vma (%#lx - %#lx, %#lx)\n" , +dev_info_ratelimited (dev, +"%s: %s: fail, unaligned vma (%#lx - %#lx, %#lx)\n" , current->comm, func, vma->vm_start, vma->vm_end, mask);return -EINVAL ;
@@ -204,13 +206,15 @@ static int check_vma(struct dev_dax *dev_dax, struct vm_area_struct *vma,if ((dax_region->pfn_flags & (PFN_DEV |PFN_MAP )) ==PFN_DEV && (vma->vm_flags &VM_DONTCOPY ) ==0 ) { -dev_info (dev,"%s: %s: fail, dax range requires MADV_DONTFORK\n" , +dev_info_ratelimited (dev, +"%s: %s: fail, dax range requires MADV_DONTFORK\n" , current->comm, func);return -EINVAL ; }if (!vma_is_dax (vma)) { -dev_info (dev,"%s: %s: fail, vma is not DAX capable\n" , +dev_info_ratelimited (dev, +"%s: %s: fail, vma is not DAX capable\n" , current->comm, func);return -EINVAL ; }
drivers/dma/k3dma.c +1 -1
@@ -794,7 +794,7 @@ static struct dma_chan *k3_of_dma_simple_xlate(struct of_phandle_args *dma_spec,struct k3_dma_dev *d = ofdma->of_dma_data;unsigned int request = dma_spec->args[0 ]; -if (request > d->dma_requests) +if (request >= d->dma_requests)return NULL ;return dma_get_slave_channel (&(d->chans[request].vc.chan));
drivers/dma/omap-dma.c +5 -1
@@ -1485,7 +1485,11 @@ static int omap_dma_probe(struct platform_device *pdev) od->ddev.src_addr_widths =OMAP_DMA_BUSWIDTHS ; od->ddev.dst_addr_widths =OMAP_DMA_BUSWIDTHS ; od->ddev.directions =BIT (DMA_DEV_TO_MEM ) |BIT (DMA_MEM_TO_DEV ); - od->ddev.residue_granularity =DMA_RESIDUE_GRANULARITY_BURST ; +if (__dma_omap15xx (od->plat->dma_attr)) + od->ddev.residue_granularity = +DMA_RESIDUE_GRANULARITY_DESCRIPTOR ; +else + od->ddev.residue_granularity =DMA_RESIDUE_GRANULARITY_BURST ; od->ddev.max_burst =SZ_16M -1 ;/* CCEN: 24bit unsigned */ od->ddev.dev = &pdev->dev;INIT_LIST_HEAD (&od->ddev.channels);
drivers/dma/pl330.c +1 -1
@@ -2924,7 +2924,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) pd->src_addr_widths =PL330_DMA_BUSWIDTHS ; pd->dst_addr_widths =PL330_DMA_BUSWIDTHS ; pd->directions =BIT (DMA_DEV_TO_MEM ) |BIT (DMA_MEM_TO_DEV ); - pd->residue_granularity =DMA_RESIDUE_GRANULARITY_SEGMENT ; + pd->residue_granularity =DMA_RESIDUE_GRANULARITY_BURST ; pd->max_burst = ((pl330->quirks &PL330_QUIRK_BROKEN_NO_FLUSHP ) ?1 :PL330_MAX_BURST );
drivers/edac/edac_mc.c +1 -0
@@ -215,6 +215,7 @@ const char * const edac_mem_types[] = { [MEM_LRDDR3] = "Load-Reduced-DDR3-RAM", [MEM_DDR4] = "Unbuffered-DDR4", [MEM_RDDR4] = "Registered-DDR4", + [MEM_LRDDR4] = "Load-Reduced-DDR4-RAM", [MEM_NVDIMM ] ="Non-volatile-RAM" , };EXPORT_SYMBOL_GPL (edac_mem_types);
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c +2 -1
@@ -31,7 +31,7 @@#include <linux/power_supply.h> #include <linux/hwmon.h> #include <linux/hwmon-sysfs.h> - +#include <linux/nospec.h> static int amdgpu_debugfs_pm_init (struct amdgpu_device *adev);
@@ -309,6 +309,7 @@ static ssize_t amdgpu_set_pp_force_state(struct device *dev, count = -EINVAL ; goto fail; } + idx =array_index_nospec (idx,ARRAY_SIZE (data.states));amdgpu_dpm_get_pp_num_states (adev, &data); state = data.states[idx];
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +2 -2
@@ -899,7 +899,7 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_phys_funcs = { .emit_frame_size =4 +/* vce_v3_0_emit_pipeline_sync */ 6, /* amdgpu_vce_ring_emit_fence x1 no user fence */ - .emit_ib_size = 5, /* vce_v3_0_ring_emit_ib */ + .emit_ib_size = 4, /* amdgpu_vce_ring_emit_ib */ .emit_ib = amdgpu_vce_ring_emit_ib, .emit_fence = amdgpu_vce_ring_emit_fence, .test_ring = amdgpu_vce_ring_test_ring,
@@ -923,7 +923,7 @@ static const struct amdgpu_ring_funcs vce_v3_0_ring_vm_funcs = {6 +/* vce_v3_0_emit_vm_flush */ 4 +/* vce_v3_0_emit_pipeline_sync */ 6 + 6, /* amdgpu_vce_ring_emit_fence x2 vm fence */ - .emit_ib_size = 4, /* amdgpu_vce_ring_emit_ib */ + .emit_ib_size = 5, /* vce_v3_0_ring_emit_ib */ .emit_ib = vce_v3_0_ring_emit_ib, .emit_vm_flush = vce_v3_0_emit_vm_flush, .emit_pipeline_sync = vce_v3_0_emit_pipeline_sync,
drivers/gpu/drm/amd/display/dc/dce100/dce100_resource.c +16 -3
@@ -678,9 +678,22 @@ bool dce100_validate_bandwidth(struct dc *dc, struct dc_state *context) { -/* TODO implement when needed but for now hardcode max value*/ - context->bw.dce.dispclk_khz = 681000; - context->bw.dce.yclk_khz =250000 *MEMORY_TYPE_MULTIPLIER ; + int i; +bool at_least_one_pipe = false; + +for (i =0 ; i < dc->res_pool->pipe_count; i++) { +if (context->res_ctx.pipe_ctx[i].stream) + at_least_one_pipe = true; + } + +if (at_least_one_pipe) { +/* TODO implement when needed but for now hardcode max value*/ + context->bw.dce.dispclk_khz =681000 ; + context->bw.dce.yclk_khz =250000 *MEMORY_TYPE_MULTIPLIER ; + }else { + context->bw.dce.dispclk_khz =0 ; + context->bw.dce.yclk_khz =0 ; + }return true; }
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +1 -0
@@ -82,6 +82,7 @@ static void vega12_set_default_registry_data(struct pp_hwmgr *hwmgr) data->registry_data.disallowed_features =0x0 ; data->registry_data.od_state_in_dc_support =0 ; + data->registry_data.thermal_support =1 ; data->registry_data.skip_baco_hardware =0 ; data->registry_data.log_avfs_param =0 ;
drivers/gpu/drm/arm/malidp_drv.c +2 -1
@@ -278,7 +278,6 @@ static int malidp_init(struct drm_device *drm)static void malidp_fini (struct drm_device *drm) { -drm_atomic_helper_shutdown (drm);drm_mode_config_cleanup (drm); }
@@ -646,6 +645,7 @@ static int malidp_bind(struct device *dev)malidp_de_irq_fini (drm); drm->irq_enabled = false; irq_init_fail: +drm_atomic_helper_shutdown (drm);component_unbind_all (dev, drm); bind_fail:of_node_put (malidp->crtc.port);
@@ -681,6 +681,7 @@ static void malidp_unbind(struct device *dev)malidp_se_irq_fini (drm);malidp_de_irq_fini (drm); drm->irq_enabled = false; +drm_atomic_helper_shutdown (drm);component_unbind_all (dev, drm);of_node_put (malidp->crtc.port); malidp->crtc.port =NULL ;
drivers/gpu/drm/arm/malidp_hw.c +2 -1
@@ -634,7 +634,8 @@ const struct malidp_hw malidp_device[MALIDP_MAX_DEVICES] = { .vsync_irq = MALIDP500_DE_IRQ_VSYNC, }, .se_irq_map = { - .irq_mask = MALIDP500_SE_IRQ_CONF_MODE, + .irq_mask =MALIDP500_SE_IRQ_CONF_MODE | + MALIDP500_SE_IRQ_GLOBAL, .vsync_irq = 0, }, .dc_irq_map = {
drivers/gpu/drm/arm/malidp_planes.c +6 -3
@@ -23,6 +23,7 @@/* Layer specific register offsets */ #define MALIDP_LAYER_FORMAT 0x000 +#define LAYER_FORMAT_MASK 0x3f#define MALIDP_LAYER_CONTROL 0x004#define LAYER_ENABLE (1 << 0)#define LAYER_FLOWCFG_MASK 7
@@ -235,8 +236,8 @@ static int malidp_de_plane_check(struct drm_plane *plane,if (state->rotation &MALIDP_ROTATED_MASK ) {int val; - val = mp->hwdev->hw->rotmem_required (mp->hwdev, state->crtc_h, - state->crtc_w, + val = mp->hwdev->hw->rotmem_required (mp->hwdev, state->crtc_w, + state->crtc_h, fb->format->format);if (val <0 )return val;
@@ -337,7 +338,9 @@ static void malidp_de_plane_update(struct drm_plane *plane, dest_w = plane->state->crtc_w; dest_h = plane->state->crtc_h; -malidp_hw_write (mp->hwdev, ms->format, mp->layer->base); + val =malidp_hw_read (mp->hwdev, mp->layer->base); + val = (val & ~LAYER_FORMAT_MASK ) | ms->format; +malidp_hw_write (mp->hwdev, val, mp->layer->base);for (i =0 ; i < ms->n_planes; i++) {/* calculate the offset for the layer's plane registers */
drivers/gpu/drm/armada/armada_crtc.c +10 -2
@@ -519,8 +519,9 @@ static irqreturn_t armada_drm_irq(int irq, void *arg)u32 v, stat =readl_relaxed (dcrtc->base +LCD_SPU_IRQ_ISR );/* -* This is rediculous - rather than writing bits to clear, we -* have to set the actual status register value. This is racy. +* Reading the ISR appears to clear bits provided CLEAN_SPU_IRQ_ISR +* is set. Writing has some other effect to acknowledge the IRQ - +* without this, we only get a single IRQ. */ writel_relaxed (0 , dcrtc->base +LCD_SPU_IRQ_ISR );
@@ -1116,16 +1117,22 @@ armada_drm_crtc_set_property(struct drm_crtc *crtc,static int armada_drm_crtc_enable_vblank (struct drm_crtc *crtc) {struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc); +unsigned long flags; +spin_lock_irqsave (&dcrtc->irq_lock, flags);armada_drm_crtc_enable_irq (dcrtc,VSYNC_IRQ_ENA ); +spin_unlock_irqrestore (&dcrtc->irq_lock, flags);return 0 ; }static void armada_drm_crtc_disable_vblank (struct drm_crtc *crtc) {struct armada_crtc *dcrtc =drm_to_armada_crtc (crtc); +unsigned long flags; +spin_lock_irqsave (&dcrtc->irq_lock, flags);armada_drm_crtc_disable_irq (dcrtc,VSYNC_IRQ_ENA ); +spin_unlock_irqrestore (&dcrtc->irq_lock, flags); }static const struct drm_crtc_funcs armada_crtc_funcs = {
@@ -1415,6 +1422,7 @@ static int armada_drm_crtc_create(struct drm_device *drm, struct device *dev, CFG_PDWN64x66, dcrtc->base + LCD_SPU_SRAM_PARA1);writel_relaxed (0x2032ff81 , dcrtc->base +LCD_SPU_DMA_CTRL1 );writel_relaxed (dcrtc->irq_ena, dcrtc->base +LCD_SPU_IRQ_ENA ); +readl_relaxed (dcrtc->base +LCD_SPU_IRQ_ISR );writel_relaxed (0 , dcrtc->base +LCD_SPU_IRQ_ISR ); ret = devm_request_irq(dev, irq, armada_drm_irq, 0, "armada_drm_crtc",
drivers/gpu/drm/armada/armada_hw.h +1 -0
@@ -160,6 +160,7 @@ enum {CFG_ALPHAM_GRA =0x1 <<16 ,CFG_ALPHAM_CFG =0x2 <<16 ,CFG_ALPHA_MASK =0xff <<8 , +#define CFG_ALPHA(x) ((x) << 8) CFG_PIXCMD_MASK = 0xff, };
drivers/gpu/drm/armada/armada_overlay.c +22 -8
@@ -28,6 +28,7 @@ struct armada_ovl_plane_properties {uint16_t contrast;uint16_t saturation;uint32_t colorkey_mode; +uint32_t colorkey_enable; };struct armada_ovl_plane {
@@ -54,11 +55,13 @@ armada_ovl_update_attr(struct armada_ovl_plane_properties *prop,writel_relaxed (0x00002000 , dcrtc->base +LCD_SPU_CBSH_HUE );spin_lock_irq (&dcrtc->irq_lock); -armada_updatel (prop->colorkey_mode |CFG_ALPHAM_GRA , -CFG_CKMODE_MASK |CFG_ALPHAM_MASK |CFG_ALPHA_MASK , - dcrtc->base +LCD_SPU_DMA_CTRL1 ); - -armada_updatel (ADV_GRACOLORKEY ,0 , dcrtc->base +LCD_SPU_ADV_REG ); +armada_updatel (prop->colorkey_mode, +CFG_CKMODE_MASK |CFG_ALPHAM_MASK |CFG_ALPHA_MASK , + dcrtc->base +LCD_SPU_DMA_CTRL1 ); +if (dcrtc->variant->has_spu_adv_reg) +armada_updatel (prop->colorkey_enable, +ADV_GRACOLORKEY |ADV_VIDCOLORKEY , + dcrtc->base +LCD_SPU_ADV_REG );spin_unlock_irq (&dcrtc->irq_lock); }
@@ -321,8 +324,17 @@ static int armada_ovl_plane_set_property(struct drm_plane *plane, dplane->prop.colorkey_vb |=K2B (val); update_attr = true; }else if (property == priv->colorkey_mode_prop) { - dplane->prop.colorkey_mode &= ~CFG_CKMODE_MASK ; - dplane->prop.colorkey_mode |=CFG_CKMODE (val); +if (val ==CKMODE_DISABLE ) { + dplane->prop.colorkey_mode = +CFG_CKMODE (CKMODE_DISABLE ) | +CFG_ALPHAM_CFG |CFG_ALPHA (255 ); + dplane->prop.colorkey_enable =0 ; + }else { + dplane->prop.colorkey_mode = +CFG_CKMODE (val) | +CFG_ALPHAM_GRA |CFG_ALPHA (0 ); + dplane->prop.colorkey_enable =ADV_GRACOLORKEY ; + } update_attr = true; }else if (property == priv->brightness_prop) { dplane->prop.brightness = val -256 ;
@@ -453,7 +465,9 @@ int armada_overlay_plane_create(struct drm_device *dev, unsigned long crtcs) dplane->prop.colorkey_yr =0xfefefe00 ; dplane->prop.colorkey_ug =0x01010100 ; dplane->prop.colorkey_vb =0x01010100 ; - dplane->prop.colorkey_mode =CFG_CKMODE (CKMODE_RGB ); + dplane->prop.colorkey_mode =CFG_CKMODE (CKMODE_RGB ) | +CFG_ALPHAM_GRA |CFG_ALPHA (0 ); + dplane->prop.colorkey_enable =ADV_GRACOLORKEY ; dplane->prop.brightness =0 ; dplane->prop.contrast =0x4000 ; dplane->prop.saturation =0x4000 ;
drivers/gpu/drm/bridge/sil-sii8620.c +66 -55
193 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +3 -3
@@ -260,7 +260,7 @@ static void decon_win_set_pixfmt(struct decon_context *ctx, unsigned int win,unsigned long val; val =readl (ctx->addr +DECON_WINCONx (win)); - val &= ~WINCONx_BPPMODE_MASK; + val &= WINCONx_ENWIN_F;switch (fb->format->format) {case DRM_FORMAT_XRGB1555 :
@@ -351,8 +351,8 @@ static void decon_update_plane(struct exynos_drm_crtc *crtc,writel (val, ctx->addr +DECON_VIDOSDxB (win)); } - val =VIDOSD_Wx_ALPHA_R_F (0x0 ) |VIDOSD_Wx_ALPHA_G_F (0x0 ) | -VIDOSD_Wx_ALPHA_B_F (0x0 ); + val =VIDOSD_Wx_ALPHA_R_F (0xff ) |VIDOSD_Wx_ALPHA_G_F (0xff ) | +VIDOSD_Wx_ALPHA_B_F (0xff );writel (val, ctx->addr +DECON_VIDOSDxC (win)); val = VIDOSD_Wx_ALPHA_R_F(0x0) | VIDOSD_Wx_ALPHA_G_F(0x0) |
drivers/gpu/drm/exynos/exynos_drm_gsc.c +20 -9
@@ -532,21 +532,25 @@ static int gsc_src_set_fmt(struct device *dev, u32 fmt) GSC_IN_CHROMA_ORDER_CRCB);break ;case DRM_FORMAT_NV21 : + cfg |= (GSC_IN_CHROMA_ORDER_CRCB |GSC_IN_YUV420_2P ); +break ;case DRM_FORMAT_NV61 : - cfg |= (GSC_IN_CHROMA_ORDER_CRCB | -GSC_IN_YUV420_2P ); + cfg |= (GSC_IN_CHROMA_ORDER_CRCB |GSC_IN_YUV422_2P );break ;case DRM_FORMAT_YUV422 : cfg |=GSC_IN_YUV422_3P ;break ;case DRM_FORMAT_YUV420 : + cfg |= (GSC_IN_CHROMA_ORDER_CBCR |GSC_IN_YUV420_3P ); +break ;case DRM_FORMAT_YVU420 : - cfg |=GSC_IN_YUV420_3P ; + cfg |= (GSC_IN_CHROMA_ORDER_CRCB |GSC_IN_YUV420_3P );break ;case DRM_FORMAT_NV12 : + cfg |= (GSC_IN_CHROMA_ORDER_CBCR |GSC_IN_YUV420_2P ); +break ;case DRM_FORMAT_NV16 : - cfg |= (GSC_IN_CHROMA_ORDER_CBCR | -GSC_IN_YUV420_2P ); + cfg |= (GSC_IN_CHROMA_ORDER_CBCR |GSC_IN_YUV422_2P );break ;default :dev_err (ippdrv->dev,"invalid target yuv order 0x%x.\n" , fmt);
@@ -806,18 +810,25 @@ static int gsc_dst_set_fmt(struct device *dev, u32 fmt) GSC_OUT_CHROMA_ORDER_CRCB);break ;case DRM_FORMAT_NV21 : -case DRM_FORMAT_NV61 : cfg |= (GSC_OUT_CHROMA_ORDER_CRCB |GSC_OUT_YUV420_2P );break ; +case DRM_FORMAT_NV61 : + cfg |= (GSC_OUT_CHROMA_ORDER_CRCB |GSC_OUT_YUV422_2P ); +break ;case DRM_FORMAT_YUV422 : + cfg |=GSC_OUT_YUV422_3P ; +break ;case DRM_FORMAT_YUV420 : + cfg |= (GSC_OUT_CHROMA_ORDER_CBCR |GSC_OUT_YUV420_3P ); +break ;case DRM_FORMAT_YVU420 : - cfg |=GSC_OUT_YUV420_3P ; + cfg |= (GSC_OUT_CHROMA_ORDER_CRCB |GSC_OUT_YUV420_3P );break ;case DRM_FORMAT_NV12 : + cfg |= (GSC_OUT_CHROMA_ORDER_CBCR |GSC_OUT_YUV420_2P ); +break ;case DRM_FORMAT_NV16 : - cfg |= (GSC_OUT_CHROMA_ORDER_CBCR | -GSC_OUT_YUV420_2P ); + cfg |= (GSC_OUT_CHROMA_ORDER_CBCR |GSC_OUT_YUV422_2P );break ;default :dev_err (ippdrv->dev,"invalid target yuv order 0x%x.\n" , fmt);
drivers/gpu/drm/exynos/regs-gsc.h +1 -0
@@ -138,6 +138,7 @@#define GSC_OUT_YUV420_3P (3 << 4)#define GSC_OUT_YUV422_1P (4 << 4)#define GSC_OUT_YUV422_2P (5 << 4) +#define GSC_OUT_YUV422_3P (6 << 4)#define GSC_OUT_YUV444 (7 << 4)#define GSC_OUT_TILE_TYPE_MASK (1 << 2)#define GSC_OUT_TILE_C_16x8 (0 << 2)
drivers/gpu/drm/i915/gvt/kvmgt.c +8 -1
@@ -43,6 +43,8 @@#include <linux/mdev.h> #include <linux/debugfs.h> +#include <linux/nospec.h> +#include "i915_drv.h" #include "gvt.h"
@@ -1064,7 +1066,8 @@ static long intel_vgpu_ioctl(struct mdev_device *mdev, unsigned int cmd, }else if (cmd ==VFIO_DEVICE_GET_REGION_INFO ) {struct vfio_region_info info;struct vfio_info_cap caps = { .buf =NULL , .size =0 }; -int i, ret; +unsigned int i; +int ret;struct vfio_region_info_cap_sparse_mmap *sparse =NULL ;size_t size;int nr_areas =1 ;
@@ -1149,6 +1152,10 @@ static long intel_vgpu_ioctl(struct mdev_device *mdev, unsigned int cmd,if (info.index >=VFIO_PCI_NUM_REGIONS + vgpu->vdev.num_regions)return -EINVAL ; + info.index = +array_index_nospec (info.index, +VFIO_PCI_NUM_REGIONS + + vgpu->vdev.num_regions); i = info.index -VFIO_PCI_NUM_REGIONS ;
drivers/gpu/drm/nouveau/nouveau_gem.c +2 -2
@@ -617,7 +617,7 @@ nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli,struct nouveau_bo *nvbo;uint32_t data; -if (unlikely (r->bo_index > req->nr_buffers)) { +if (unlikely (r->bo_index >= req->nr_buffers)) {NV_PRINTK (err, cli,"reloc bo index invalid\n" ); ret = -EINVAL ;break ;
@@ -627,7 +627,7 @@ nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli,if (b->presumed.valid)continue ; -if (unlikely (r->reloc_bo_index > req->nr_buffers)) { +if (unlikely (r->reloc_bo_index >= req->nr_buffers)) {NV_PRINTK (err, cli,"reloc container bo index invalid\n" ); ret = -EINVAL ;break ;
drivers/gpu/drm/sun4i/Makefile +4 -1
@@ -29,7 +29,10 @@ obj-$(CONFIG_DRM_SUN4I) += sun4i-tcon.o obj-$(CONFIG_DRM_SUN4I) += sun4i_tv.o obj-$(CONFIG_DRM_SUN4I) += sun6i_drc.o -obj-$(CONFIG_DRM_SUN4I_BACKEND) += sun4i-backend.o sun4i-frontend.o +obj-$(CONFIG_DRM_SUN4I_BACKEND) += sun4i-backend.o +ifdef CONFIG_DRM_SUN4I_BACKEND +obj-$(CONFIG_DRM_SUN4I) += sun4i-frontend.o +endif obj-$(CONFIG_DRM_SUN4I_HDMI) += sun4i-drm-hdmi.o obj-$(CONFIG_DRM_SUN8I_DW_HDMI) += sun8i-drm-hdmi.o obj-$(CONFIG_DRM_SUN8I_MIXER) += sun8i-mixer.o
drivers/gpu/drm/tegra/drm.c +1 -1
@@ -436,7 +436,7 @@ int tegra_drm_submit(struct tegra_drm_context *context,* unaligned offset is malformed and cause commands stream * corruption on the buffer address relocation. */ -if (offset &3 || offset >= obj->gem.size) { +if (offset &3 || offset > obj->gem.size) { err = -EINVAL ; goto fail; }
drivers/gpu/host1x/dev.c +3 -0
@@ -218,6 +218,9 @@ static int host1x_probe(struct platform_device *pdev)return err; } +if (IS_ENABLED (CONFIG_TEGRA_HOST1X_FIREWALL )) + goto skip_iommu; + host->group =iommu_group_get (&pdev->dev);if (host->group) {struct iommu_domain_geometry *geometry;
drivers/gpu/host1x/job.c +2 -1
@@ -686,7 +686,8 @@ void host1x_job_unpin(struct host1x_job *job)for (i =0 ; i < job->num_unpins; i++) {struct host1x_job_unpin_data *unpin = &job->unpins[i]; -if (!IS_ENABLED (CONFIG_TEGRA_HOST1X_FIREWALL ) && host->domain) { +if (!IS_ENABLED (CONFIG_TEGRA_HOST1X_FIREWALL ) && + unpin->size && host->domain) {iommu_unmap (host->domain, job->addr_phys[i], unpin->size); free_iova(&host->iova,
drivers/hid/hid-google-hammer.c +2 -0
@@ -124,6 +124,8 @@ static const struct hid_device_id hammer_devices[] = { USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_STAFF) }, { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_WAND) }, + { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, + USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_WHISKERS) }, { } };MODULE_DEVICE_TABLE (hid, hammer_devices);
drivers/hid/hid-ids.h +1 -0
@@ -452,6 +452,7 @@#define USB_DEVICE_ID_GOOGLE_TOUCH_ROSE 0x5028#define USB_DEVICE_ID_GOOGLE_STAFF 0x502b#define USB_DEVICE_ID_GOOGLE_WAND 0x502d +#define USB_DEVICE_ID_GOOGLE_WHISKERS 0x5030#define USB_VENDOR_ID_GOTOP 0x08f2#define USB_DEVICE_ID_SUPER_Q2 0x007f
drivers/hid/wacom_wac.c +8 -2
@@ -3361,8 +3361,14 @@ void wacom_setup_device_quirks(struct wacom *wacom)if (features->type >=INTUOSHT && features->type <=BAMBOO_PT ) features->device_type |=WACOM_DEVICETYPE_PAD ; - features->x_max =4096 ; - features->y_max =4096 ; +if (features->type ==INTUOSHT2 ) { + features->x_max = features->x_max /10 ; + features->y_max = features->y_max /10 ; + } +else { + features->x_max =4096 ; + features->y_max =4096 ; + } }else if (features->pktlen ==WACOM_PKGLEN_BBTOUCH ) { features->device_type |=WACOM_DEVICETYPE_PAD ;
drivers/hwmon/dell-smm-hwmon.c +7 -0
@@ -1074,6 +1074,13 @@ static struct dmi_system_id i8k_blacklist_fan_support_dmi_table[] __initdata = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"), }, }, + { + .ident = "Dell XPS13 9333", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "XPS13 9333"), + }, + }, { } };
drivers/hwmon/nct6775.c +1 -1
@@ -4175,7 +4175,7 @@ static int nct6775_probe(struct platform_device *pdev)* The temperature is already monitored if the respective bit in <mask> * is set. */ -for (i =0 ; i <32 ; i++) { +for (i =0 ; i <31 ; i++) {if (!(data->temp_mask &BIT (i +1 )))continue ;if (!reg_temp_alternate[i])
drivers/i2c/busses/i2c-imx.c +4 -4
@@ -677,9 +677,6 @@ static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,struct imx_i2c_dma *dma = i2c_imx->dma;struct device *dev = &i2c_imx->adapter.dev; - temp =imx_i2c_read_reg (i2c_imx,IMX_I2C_I2CR ); - temp |=I2CR_DMAEN ; -imx_i2c_write_reg (temp, i2c_imx,IMX_I2C_I2CR ); dma->chan_using = dma->chan_rx; dma->dma_transfer_dir =DMA_DEV_TO_MEM ;
@@ -792,6 +789,7 @@ static int i2c_imx_read(struct imx_i2c_struct *i2c_imx, struct i2c_msg *msgs, boint i, result;unsigned int temp;int block_data = msgs->flags &I2C_M_RECV_LEN ; +int use_dma = i2c_imx->dma && msgs->len >=DMA_THRESHOLD && !block_data; dev_dbg(&i2c_imx->adapter.dev, "<%s> write slave address: addr=0x%x\n",
@@ -818,12 +816,14 @@ static int i2c_imx_read(struct imx_i2c_struct *i2c_imx, struct i2c_msg *msgs, bo*/ if ((msgs->len -1 ) || block_data) temp &= ~I2CR_TXAK ; +if (use_dma) + temp |=I2CR_DMAEN ;imx_i2c_write_reg (temp, i2c_imx,IMX_I2C_I2CR );imx_i2c_read_reg (i2c_imx,IMX_I2C_I2DR );/* dummy read */ dev_dbg (&i2c_imx->adapter.dev,"<%s> read data\n" , __func__); -if (i2c_imx->dma && msgs->len >=DMA_THRESHOLD && !block_data) +if (use_dma)return i2c_imx_dma_read (i2c_imx, msgs, is_lastmsg);/* read data */
drivers/i2c/i2c-core-acpi.c +8 -3
@@ -482,11 +482,16 @@ static int acpi_gsb_i2c_write_bytes(struct i2c_client *client, msgs[0 ].buf = buffer; ret =i2c_transfer (client->adapter, msgs,ARRAY_SIZE (msgs)); -if (ret <0 ) -dev_err (&client->adapter->dev,"i2c write failed\n" );kfree (buffer); -return ret; + +if (ret <0 ) { +dev_err (&client->adapter->dev,"i2c write failed: %d\n" , ret); +return ret; + } + +/* 1 transfer must have completed successfully */ +return (ret ==1 ) ?0 : -EIO ; } static acpi_status
drivers/iio/pressure/bmp280-core.c +2 -3
@@ -415,10 +415,9 @@ static int bmp280_read_humid(struct bmp280_data *data, int *val, int *val2) } comp_humidity =bmp280_compensate_humidity (data, adc_humidity); - *val = comp_humidity; - *val2 =1024 ; + *val = comp_humidity *1000 /1024 ; -return IIO_VAL_FRACTIONAL ; +return IIO_VAL_INT ; } static int bmp280_read_raw(struct iio_dev *indio_dev,
drivers/infiniband/hw/mlx4/mr.c +5 -2
@@ -486,8 +486,11 @@ int mlx4_ib_rereg_user_mr(struct ib_mr *mr, int flags, }if (flags &IB_MR_REREG_ACCESS ) { -if (ib_access_writable (mr_access_flags) && !mmr->umem->writable) -return -EPERM ; +if (ib_access_writable (mr_access_flags) && + !mmr->umem->writable) { + err = -EPERM ; + goto release_mpt_entry; + } err =mlx4_mr_hw_change_access (dev->dev, *pmpt_entry,convert_access (mr_access_flags));
drivers/infiniband/hw/mlx5/srq.c +12 -6
@@ -266,18 +266,24 @@ struct ib_srq *mlx5_ib_create_srq(struct ib_pd *pd, desc_size =sizeof (struct mlx5_wqe_srq_next_seg ) + srq->msrq.max_gs *sizeof (struct mlx5_wqe_data_seg ); -if (desc_size ==0 || srq->msrq.max_gs > desc_size) -return ERR_PTR (-EINVAL ); +if (desc_size ==0 || srq->msrq.max_gs > desc_size) { + err = -EINVAL ; + goto err_srq; + } desc_size =roundup_pow_of_two (desc_size); desc_size =max_t (size_t,32 , desc_size); -if (desc_size <sizeof (struct mlx5_wqe_srq_next_seg )) -return ERR_PTR (-EINVAL ); +if (desc_size <sizeof (struct mlx5_wqe_srq_next_seg )) { + err = -EINVAL ; + goto err_srq; + } srq->msrq.max_avail_gather = (desc_size -sizeof (struct mlx5_wqe_srq_next_seg )) /sizeof (struct mlx5_wqe_data_seg ); srq->msrq.wqe_shift =ilog2 (desc_size); buf_size = srq->msrq.max * desc_size; -if (buf_size < desc_size) -return ERR_PTR (-EINVAL ); +if (buf_size < desc_size) { + err = -EINVAL ; + goto err_srq; + } in.type = init_attr->srq_type;if (pd->uobject)
drivers/infiniband/hw/qedr/verbs.c +3 -0
@@ -1957,6 +1957,9 @@ int qedr_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, }if (attr_mask & (IB_QP_AV |IB_QP_PATH_MTU )) { +if (rdma_protocol_iwarp (&dev->ibdev,1 )) +return -EINVAL ; +if (attr_mask &IB_QP_PATH_MTU ) {if (attr->path_mtu <IB_MTU_256 || attr->path_mtu >IB_MTU_4096 ) {
drivers/infiniband/sw/rxe/rxe_req.c +4 -1
@@ -645,6 +645,9 @@ int rxe_requester(void *arg) }else { goto exit; } +if ((wqe->wr.send_flags &IB_SEND_SIGNALED ) || + qp->sq_sig_type ==IB_SIGNAL_ALL_WR ) +rxe_run_task (&qp->comp.task,1 ); qp->req.wqe_index =next_index (qp->sq.queue, qp->req.wqe_index); goto next_wqe;
@@ -709,6 +712,7 @@ int rxe_requester(void *arg)if (fill_packet (qp, wqe, &pkt, skb, payload)) {pr_debug ("qp#%d Error during fill packet\n" ,qp_num (qp)); +kfree_skb (skb); goto err; }
@@ -740,7 +744,6 @@ int rxe_requester(void *arg) goto next_wqe; err: -kfree_skb (skb); wqe->status =IB_WC_LOC_PROT_ERR ; wqe->state = wqe_state_error;__rxe_do_task (&qp->comp.task);
drivers/input/rmi4/rmi_2d_sensor.c +16 -18
@@ -32,15 +32,15 @@ void rmi_2d_sensor_abs_process(struct rmi_2d_sensor *sensor,if (obj->type ==RMI_2D_OBJECT_NONE )return ; -if (axis_align->swap_axes) -swap (obj->x, obj->y); -if (axis_align->flip_x) obj->x = sensor->max_x - obj->x;if (axis_align->flip_y) obj->y = sensor->max_y - obj->y; +if (axis_align->swap_axes) +swap (obj->x, obj->y); +/* * Here checking if X offset or y offset are specified is * redundant. We just add the offsets or clip the values.
@@ -120,15 +120,15 @@ void rmi_2d_sensor_rel_report(struct rmi_2d_sensor *sensor, int x, int y) x =min (RMI_2D_REL_POS_MAX ,max (RMI_2D_REL_POS_MIN , (int )x)); y =min (RMI_2D_REL_POS_MAX ,max (RMI_2D_REL_POS_MIN , (int )y)); -if (axis_align->swap_axes) -swap (x, y); -if (axis_align->flip_x) x =min (RMI_2D_REL_POS_MAX , -x);if (axis_align->flip_y) y =min (RMI_2D_REL_POS_MAX , -y); +if (axis_align->swap_axes) +swap (x, y); +if (x || y) {input_report_rel (sensor->input,REL_X , x);input_report_rel (sensor->input,REL_Y , y);
@@ -141,17 +141,10 @@ static void rmi_2d_sensor_set_input_params(struct rmi_2d_sensor *sensor)struct input_dev *input = sensor->input;int res_x;int res_y; +int max_x, max_y;int input_flags =0 ;if (sensor->report_abs) { -if (sensor->axis_align.swap_axes) { -swap (sensor->max_x, sensor->max_y); -swap (sensor->axis_align.clip_x_low, - sensor->axis_align.clip_y_low); -swap (sensor->axis_align.clip_x_high, - sensor->axis_align.clip_y_high); - } - sensor->min_x = sensor->axis_align.clip_x_low;if (sensor->axis_align.clip_x_high) sensor->max_x = min(sensor->max_x,
@@ -163,14 +156,19 @@ static void rmi_2d_sensor_set_input_params(struct rmi_2d_sensor *sensor) sensor->axis_align.clip_y_high);set_bit (EV_ABS , input->evbit); -input_set_abs_params (input,ABS_MT_POSITION_X ,0 , sensor->max_x, -0 ,0 ); -input_set_abs_params (input,ABS_MT_POSITION_Y ,0 , sensor->max_y, -0 ,0 ); + + max_x = sensor->max_x; + max_y = sensor->max_y; +if (sensor->axis_align.swap_axes) +swap (max_x, max_y); +input_set_abs_params (input,ABS_MT_POSITION_X ,0 , max_x,0 ,0 ); +input_set_abs_params (input,ABS_MT_POSITION_Y ,0 , max_y,0 ,0 );if (sensor->x_mm && sensor->y_mm) { res_x = (sensor->max_x - sensor->min_x) / sensor->x_mm; res_y = (sensor->max_y - sensor->min_y) / sensor->y_mm; +if (sensor->axis_align.swap_axes) +swap (res_x, res_y);input_abs_set_res (input,ABS_X , res_x);input_abs_set_res (input,ABS_Y , res_y);
drivers/irqchip/irq-gic-v2m.c +1 -1
@@ -199,7 +199,7 @@ static int gicv2m_irq_domain_alloc(struct irq_domain *domain, unsigned int virq, fail:irq_domain_free_irqs_parent (domain, virq, nr_irqs); -gicv2m_unalloc_msi (v2m, hwirq,get_count_order (nr_irqs)); +gicv2m_unalloc_msi (v2m, hwirq, nr_irqs);return err; }
drivers/irqchip/irq-gic-v3-its.c +10 -0
@@ -3405,6 +3405,16 @@ static int redist_disable_lpis(void)u64 timeout =USEC_PER_SEC ;u64 val; +/* +* If coming via a CPU hotplug event, we don't need to disable +* LPIs before trying to re-enable them. They are already +* configured and all is well in the world. Detect this case +* by checking the allocation of the pending table for the +* current CPU. +*/ +if (gic_data_rdist ()->pend_page) +return 0 ; +if (!gic_rdists_supports_plpis ()) {pr_info ("CPU%d: LPIs not supported\n" ,smp_processor_id ());return -ENXIO ;
drivers/md/raid10.c +7 -0
@@ -3892,6 +3892,13 @@ static int raid10_run(struct mddev *mddev) disk->rdev->saved_raid_disk < 0) conf->fullsync =1 ; } + +if (disk->replacement && + !test_bit (In_sync, &disk->replacement->flags) && + disk->replacement->saved_raid_disk <0 ) { + conf->fullsync =1 ; + } + disk->recovery_disabled = mddev->recovery_disabled -1 ; }
drivers/mtd/devices/mtd_dataflash.c +2 -2
@@ -733,8 +733,8 @@ static struct flash_info dataflash_data[] = { { "AT45DB642x", 0x1f2800, 8192, 1056, 11, SUP_POW2PS}, { "at45db642d", 0x1f2800, 8192, 1024, 10, SUP_POW2PS | IS_POW2PS}, - { "AT45DB641E", 0x1f28000100, 32768, 264, 9, SUP_EXTID | SUP_POW2PS}, - { "at45db641e", 0x1f28000100, 32768, 256, 8, SUP_EXTID | SUP_POW2PS | IS_POW2PS}, + { "AT45DB641E", 0x1f28000100ULL, 32768, 264, 9, SUP_EXTID | SUP_POW2PS}, + { "at45db641e", 0x1f28000100ULL, 32768, 256, 8, SUP_EXTID | SUP_POW2PS | IS_POW2PS}, }; static struct flash_info *jedec_lookup(struct spi_device *spi,
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h +1 -0
@@ -1533,6 +1533,7 @@ struct bnx2x {struct link_vars link_vars;u32 link_cnt;struct bnx2x_link_report_data last_reported_link; +bool force_link_down;struct mdio_if_info mdio;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +6 -0
@@ -1261,6 +1261,11 @@ void __bnx2x_link_report(struct bnx2x *bp) {struct bnx2x_link_report_data cur_data; +if (bp->force_link_down) { + bp->link_vars.link_up =0 ; +return ; + } +/* reread mf_cfg */ if (IS_PF (bp) && !CHIP_IS_E1 (bp))bnx2x_read_mf_cfg (bp);
@@ -2817,6 +2822,7 @@ int bnx2x_nic_load(struct bnx2x *bp, int load_mode) bp->pending_max =0 ; } + bp->force_link_down = false;if (bp->port.pmf) { rc =bnx2x_initial_phy_init (bp, load_mode);if (rc)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +6 -0
@@ -10279,6 +10279,12 @@ static void bnx2x_sp_rtnl_task(struct work_struct *work) bp->sp_rtnl_state =0 ;smp_mb (); +/* Immediately indicate link as down */ + bp->link_vars.link_up =0 ; + bp->force_link_down = true; +netif_carrier_off (bp->dev); +BNX2X_ERR ("Indicating link is down due to Tx-timeout\n" ); +bnx2x_nic_unload (bp,UNLOAD_NORMAL , true);/* When ret value shows failure of allocation failure, * the nic is rebooted again. If open still fails, a error
drivers/net/ethernet/broadcom/bnxt/bnxt.c +10 -5
@@ -5915,7 +5915,7 @@ unsigned int bnxt_get_max_func_irqs(struct bnxt *bp) return min_t(unsigned int, hw_resc->max_irqs, hw_resc->max_cp_rings); } -void bnxt_set_max_func_irqs (struct bnxt *bp,unsigned int max_irqs) +static void bnxt_set_max_func_irqs (struct bnxt *bp,unsigned int max_irqs) { bp->hw_resc.max_irqs = max_irqs; }
@@ -6875,7 +6875,7 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) rc =bnxt_request_irq (bp);if (rc) {netdev_err (bp->dev,"bnxt_request_irq err: %x\n" , rc); - goto open_err; + goto open_err_irq; } }
@@ -6913,6 +6913,8 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init) open_err:bnxt_disable_napi (bp); + +open_err_irq:bnxt_del_napi (bp); open_err_free_mem:
@@ -8467,11 +8469,11 @@ int bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx, bool shared)int rx, tx, cp;_bnxt_get_max_rings (bp, &rx, &tx, &cp); + *max_rx = rx; + *max_tx = tx;if (!rx || !tx || !cp)return -ENOMEM ; - *max_rx = rx; - *max_tx = tx;return bnxt_trim_rings (bp, max_rx, max_tx, cp, shared); }
@@ -8485,8 +8487,11 @@ static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx,/* Not enough rings, try disabling agg rings. */ bp->flags &= ~BNXT_FLAG_AGG_RINGS ; rc =bnxt_get_max_rings (bp, max_rx, max_tx, shared); -if (rc) +if (rc) { +/* set BNXT_FLAG_AGG_RINGS back for consistency */ + bp->flags |=BNXT_FLAG_AGG_RINGS ;return rc; + } bp->flags |=BNXT_FLAG_NO_AGG_RINGS ; bp->dev->hw_features &= ~(NETIF_F_LRO |NETIF_F_GRO_HW ); bp->dev->features &= ~(NETIF_F_LRO |NETIF_F_GRO_HW );
drivers/net/ethernet/broadcom/bnxt/bnxt.h +0 -1
@@ -1455,7 +1455,6 @@ void bnxt_set_max_func_stat_ctxs(struct bnxt *bp, unsigned int max);unsigned int bnxt_get_max_func_cp_rings (struct bnxt *bp);void bnxt_set_max_func_cp_rings (struct bnxt *bp,unsigned int max);unsigned int bnxt_get_max_func_irqs (struct bnxt *bp); -void bnxt_set_max_func_irqs (struct bnxt *bp,unsigned int max);int bnxt_get_avail_msix (struct bnxt *bp,int num);int bnxt_reserve_rings (struct bnxt *bp);void bnxt_tx_disable (struct bnxt *bp);
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c +27 -3
@@ -27,6 +27,15 @@#define BNXT_FID_INVALID 0xffff#define VLAN_TCI (vid, prio) ((vid) | ((prio) << VLAN_PRIO_SHIFT)) +#define is_vlan_pcp_wildcarded (vlan_tci_mask) \ + ((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == 0x0000) +#define is_vlan_pcp_exactmatch (vlan_tci_mask) \ + ((ntohs(vlan_tci_mask) & VLAN_PRIO_MASK) == VLAN_PRIO_MASK) +#define is_vlan_pcp_zero (vlan_tci) \ + ((ntohs(vlan_tci) & VLAN_PRIO_MASK) == 0x0000) +#define is_vid_exactmatch (vlan_tci_mask) \ + ((ntohs(vlan_tci_mask) & VLAN_VID_MASK) == VLAN_VID_MASK) +/* Return the dst fid of the func for flow forwarding * For PFs: src_fid is the fid of the PF * For VF-reps: src_fid the fid of the VF
@@ -389,6 +398,21 @@ static bool is_exactmatch(void *mask, int len)return true; } +static bool is_vlan_tci_allowed (__be16 vlan_tci_mask, +__be16 vlan_tci) +{ +/* VLAN priority must be either exactly zero or fully wildcarded and +* VLAN id must be exact match. +*/ +if (is_vid_exactmatch (vlan_tci_mask) && + ((is_vlan_pcp_exactmatch (vlan_tci_mask) && +is_vlan_pcp_zero (vlan_tci)) || +is_vlan_pcp_wildcarded (vlan_tci_mask))) +return true; + +return false; +} +static bool bits_set (void *key,int len) {const u8 *p = key;
@@ -803,9 +827,9 @@ static bool bnxt_tc_can_offload(struct bnxt *bp, struct bnxt_tc_flow *flow)/* Currently VLAN fields cannot be partial wildcard */ if (bits_set (&flow->l2_key.inner_vlan_tci,sizeof (flow->l2_key.inner_vlan_tci)) && - !is_exactmatch (&flow->l2_mask.inner_vlan_tci, -sizeof (flow->l2_mask.inner_vlan_tci))) { -netdev_info (bp->dev,"Wildcard match unsupported for VLAN TCI\n" ); + !is_vlan_tci_allowed (flow->l2_mask.inner_vlan_tci, + flow->l2_key.inner_vlan_tci)) { +netdev_info (bp->dev,"Unsupported VLAN TCI\n" );return false; } if (bits_set(&flow->l2_key.inner_vlan_tpid,
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +0 -2
@@ -169,7 +169,6 @@ static int bnxt_req_msix_vecs(struct bnxt_en_dev *edev, int ulp_id, edev->ulp_tbl[ulp_id].msix_requested = avail_msix; }bnxt_fill_msix_vecs (bp, ent); -bnxt_set_max_func_irqs (bp,bnxt_get_max_func_irqs (bp) - avail_msix);bnxt_set_max_func_cp_rings (bp, max_cp_rings - avail_msix); edev->flags |=BNXT_EN_FLAG_MSIX_REQUESTED ;return avail_msix;
@@ -192,7 +191,6 @@ static int bnxt_free_msix_vecs(struct bnxt_en_dev *edev, int ulp_id) msix_requested = edev->ulp_tbl[ulp_id].msix_requested;bnxt_set_max_func_cp_rings (bp, max_cp_rings + msix_requested); edev->ulp_tbl[ulp_id].msix_requested =0 ; -bnxt_set_max_func_irqs (bp,bnxt_get_max_func_irqs (bp) + msix_requested); edev->flags &= ~BNXT_EN_FLAG_MSIX_REQUESTED ;if (netif_running (dev)) {bnxt_close_nic (bp, true, false);
drivers/net/ethernet/cadence/macb_main.c +5 -6
@@ -1818,13 +1818,7 @@ static void macb_free_consistent(struct macb *bp)struct macb_queue *queue;unsigned int q; - queue = &bp->queues[0 ]; bp->macbgem_ops.mog_free_rx_buffers (bp); -if (queue->rx_ring) { -dma_free_coherent (&bp->pdev->dev,RX_RING_BYTES (bp), - queue->rx_ring, queue->rx_ring_dma); - queue->rx_ring =NULL ; - }for (q =0 , queue = bp->queues; q < bp->num_queues; ++q, ++queue) {kfree (queue->tx_skb);
@@ -1834,6 +1828,11 @@ static void macb_free_consistent(struct macb *bp) queue->tx_ring, queue->tx_ring_dma); queue->tx_ring =NULL ; } +if (queue->rx_ring) { +dma_free_coherent (&bp->pdev->dev,RX_RING_BYTES (bp), + queue->rx_ring, queue->rx_ring_dma); + queue->rx_ring =NULL ; + } } }
drivers/net/ethernet/cavium/Kconfig +6 -6
@@ -15,7 +15,7 @@ if NET_VENDOR_CAVIUM config THUNDER_NIC_PF tristate "Thunder Physical function driver" - depends on 64BIT + depends on 64BIT && PCI select THUNDER_NIC_BGX ---help--- This driver supports Thunder's NIC physical function.
@@ -28,13 +28,13 @@ config THUNDER_NIC_PF config THUNDER_NIC_VF tristate "Thunder Virtual function driver" imply CAVIUM_PTP - depends on 64BIT + depends on 64BIT && PCI ---help--- This driver supports Thunder's NIC virtual function config THUNDER_NIC_BGX tristate "Thunder MAC interface driver (BGX)" - depends on 64BIT + depends on 64BIT && PCI select PHYLIB select MDIO_THUNDER select THUNDER_NIC_RGX
@@ -44,7 +44,7 @@ config THUNDER_NIC_BGX config THUNDER_NIC_RGX tristate "Thunder MAC interface driver (RGX)" - depends on 64BIT + depends on 64BIT && PCI select PHYLIB select MDIO_THUNDER ---help---
@@ -53,7 +53,7 @@ config THUNDER_NIC_RGX config CAVIUM_PTP tristate "Cavium PTP coprocessor as PTP clock" - depends on 64BIT + depends on 64BIT && PCI imply PTP_1588_CLOCK default y ---help---
@@ -65,7 +65,7 @@ config CAVIUM_PTP config LIQUIDIO tristate "Cavium LiquidIO support" - depends on 64BIT + depends on 64BIT && PCI depends on MAY_USE_DEVLINK imply PTP_1588_CLOCK select FW_LOADER
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c +11 -3
@@ -643,13 +643,21 @@ static int octeon_mgmt_set_mac_address(struct net_device *netdev, void *addr)static int octeon_mgmt_change_mtu (struct net_device *netdev,int new_mtu) {struct octeon_mgmt *p =netdev_priv (netdev); -int size_without_fcs = new_mtu +OCTEON_MGMT_RX_HEADROOM ; +int max_packet = new_mtu +ETH_HLEN +ETH_FCS_LEN ; netdev->mtu = new_mtu; -cvmx_write_csr (p->agl +AGL_GMX_RX_FRM_MAX , size_without_fcs); +/* HW lifts the limit if the frame is VLAN tagged +* (+4 bytes per each tag, up to two tags) +*/ +cvmx_write_csr (p->agl +AGL_GMX_RX_FRM_MAX , max_packet); +/* Set the hardware to truncate packets larger than the MTU. The jabber +* register must be set to a multiple of 8 bytes, so round up. JABBER is +* an unconditional limit, so we need to account for two possible VLAN +* tags. +*/ cvmx_write_csr (p->agl +AGL_GMX_RX_JABBER , - (size_without_fcs +7 ) &0xfff8 ); + (max_packet +7 +VLAN_HLEN *2 ) &0xfff8 );return 0 ; }
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +1 -1
@@ -263,7 +263,7 @@ static void dcb_tx_queue_prio_enable(struct net_device *dev, int enable)"Can't %s DCB Priority on port %d, TX Queue %d: err=%d\n" , enable ? "set" : "unset", pi->port_id, i, -err); else - txq->dcb_prio = value; + txq->dcb_prio = enable ? value : 0; } }
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +13 -22
@@ -8526,7 +8526,7 @@ static int t4_get_flash_params(struct adapter *adap) };unsigned int part, manufacturer; -unsigned int density, size; +unsigned int density, size =0 ;u32 flashid =0 ;int ret;
@@ -8596,11 +8596,6 @@ static int t4_get_flash_params(struct adapter *adap)case 0x22 :/* 256MB */ size =1 <<28 ;break ; - -default : -dev_err (adap->pdev_dev,"Micron Flash Part has bad size, ID = %#x, Density code = %#x\n" , - flashid, density); -return -EINVAL ; }break ; }
@@ -8616,10 +8611,6 @@ static int t4_get_flash_params(struct adapter *adap)case 0x17 :/* 64MB */ size =1 <<26 ;break ; -default : -dev_err (adap->pdev_dev,"ISSI Flash Part has bad size, ID = %#x, Density code = %#x\n" , - flashid, density); -return -EINVAL ; }break ; }
@@ -8635,10 +8626,6 @@ static int t4_get_flash_params(struct adapter *adap)case 0x18 :/* 16MB */ size =1 <<24 ;break ; -default : -dev_err (adap->pdev_dev,"Macronix Flash Part has bad size, ID = %#x, Density code = %#x\n" , - flashid, density); -return -EINVAL ; }break ; }
@@ -8654,17 +8641,21 @@ static int t4_get_flash_params(struct adapter *adap)case 0x18 :/* 16MB */ size =1 <<24 ;break ; -default : -dev_err (adap->pdev_dev,"Winbond Flash Part has bad size, ID = %#x, Density code = %#x\n" , - flashid, density); -return -EINVAL ; }break ; } -default : -dev_err (adap->pdev_dev,"Unsupported Flash Part, ID = %#x\n" , - flashid); -return -EINVAL ; + } + +/* If we didn't recognize the FLASH part, that's no real issue: the +* Hardware/Software contract says that Hardware will _*ALWAYS*_ +* use a FLASH part which is at least 4MB in size and has 64KB +* sectors. The unrecognized FLASH part is likely to be much larger +* than 4MB, but that's all we really need. +*/ +if (size ==0 ) { +dev_warn (adap->pdev_dev,"Unknown Flash Part, ID = %#x, assuming 4MB\n" , + flashid); + size =1 <<22 ; }/* Store decoded Flash size and fall through into vetting code. */
drivers/net/ethernet/cisco/enic/enic_clsf.c +1 -2
@@ -79,7 +79,6 @@ void enic_rfs_flw_tbl_init(struct enic *enic) enic->rfs_h.max = enic->config.num_arfs; enic->rfs_h.free = enic->rfs_h.max; enic->rfs_h.toclean =0 ; -enic_rfs_timer_start (enic); }void enic_rfs_flw_tbl_free (struct enic *enic)
@@ -88,7 +87,6 @@ void enic_rfs_flw_tbl_free(struct enic *enic)enic_rfs_timer_stop (enic);spin_lock_bh (&enic->rfs_h.lock); - enic->rfs_h.free =0 ;for (i =0 ; i < (1 <<ENIC_RFS_FLW_BITSHIFT ); i++) {struct hlist_head *hhead;struct hlist_node *tmp;
@@ -99,6 +97,7 @@ void enic_rfs_flw_tbl_free(struct enic *enic)enic_delfltr (enic, n->fltr_id);hlist_del (&n->node);kfree (n);
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cisco/enic/enic_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +8 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/fman/fman_port.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ibm/ibmvnic.c +29 -14
43 lines not on this page · raw message
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +11 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +5 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/vport.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/bpf/main.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_dcbx.c +4 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_debug.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_ll2.c +9 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_main.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/qca_spi.c +12 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/renesas/ravb_main.c +16 -40
56 lines not on this page · raw message
drivers/net/ethernet/renesas/sh_eth.c +16 -43
59 lines not on this page · raw message
drivers/net/ethernet/stmicro/stmmac/Kconfig +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c +14 -4
Lines of this file are not shown. View the raw message.
drivers/net/phy/marvell.c +36 -18
54 lines not on this page · raw message
drivers/net/usb/smsc75xx.c +62 -0
62 lines not on this page · raw message
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/nvme/host/core.c +27 -25
52 lines not on this page · raw message
drivers/pci/pci.c +66 -0
66 lines not on this page · raw message
drivers/usb/dwc2/hcd.c +87 -6
93 lines not on this page · raw message
kernel/sched/core.c +32 -35
67 lines not on this page · raw message
net/ipv6/exthdrs.c +30 -81
111 lines not on this page · raw message
net/ipv6/netfilter/nf_conntrack_reasm.c +3 -3
Lines of this file are not shown. View the raw message.
net/netfilter/nf_conntrack_proto_dccp.c +4 -4
Lines of this file are not shown. View the raw message.
net/rds/loop.c +56 -0
56 lines not on this page · raw message
tools/objtool/elf.c +28 -13
41 lines not on this page · raw message
tools/perf/arch/powerpc/util/skip-callchain-idx.c +1 -1
Lines of this file are not shown. View the raw message.
tools/perf/util/scripting-engines/trace-event-python.c +2 -6
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_kmod.sh +9 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_offload.py +10 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/pstore/pstore_post_reboot_tests +4 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/static_keys/test_static_keys.sh +13 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/sync/config new file +4 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/sysctl/sysctl.sh +13 -7
Lines of this file are not shown. View the raw message.
tools/testing/selftests/user/test_user_copy.sh +7 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/vm/compaction_test.c +3 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/vm/mlock2-tests.c +7 -5
Lines of this file are not shown. View the raw message.
tools/testing/selftests/vm/userfaultfd.c +3 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/x86/sigreturn.c +36 -23
59 lines not on this page · raw message
tools/testing/selftests/zram/zram_lib.sh +4 -1
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.