Linux 4.16.17
Greg KH
maintainerI'm announcing the release of the 4.16.17 kernel.
All users of the 4.16 kernel series must upgrade.
The updated 4.16.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.16.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/display/panel/panel-common.txt | 2 Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt | 1 Documentation/devicetree/bindings/net/renesas,ravb.txt | 1 Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 6 Documentation/devicetree/bindings/serial/amlogic,meson-uart.txt | 2 Documentation/devicetree/bindings/serial/mvebu-uart.txt | 2 Documentation/devicetree/bindings/serial/renesas,sci-serial.txt | 2 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 Makefile | 2 arch/arm/boot/compressed/Makefile | 8 arch/arm/boot/compressed/head.S | 20 arch/arm/boot/dts/bcm-cygnus.dtsi | 2 arch/arm/boot/dts/da850.dtsi | 2 arch/arm/boot/dts/dm8148-evm.dts | 2 arch/arm/boot/dts/dm8148-t410.dts | 2 arch/arm/boot/dts/dm8168-evm.dts | 2 arch/arm/boot/dts/dra62x-j5eco-evm.dts | 2 arch/arm/boot/dts/imx51-zii-rdu1.dts | 6 arch/arm/boot/dts/logicpd-som-lv.dtsi | 11 arch/arm/boot/dts/omap4.dtsi | 8 arch/arm/include/uapi/asm/siginfo.h | 13 arch/arm/kernel/machine_kexec.c | 34 - arch/arm/mach-davinci/board-da830-evm.c | 9 arch/arm/mach-davinci/board-da850-evm.c | 9 arch/arm/mach-davinci/board-dm355-evm.c | 15 arch/arm/mach-davinci/board-dm644x-evm.c | 10 arch/arm/mach-davinci/board-dm646x-evm.c | 5 arch/arm/mach-davinci/board-omapl138-hawk.c | 10 arch/arm/mach-davinci/dm646x.c | 3 arch/arm/mach-keystone/pm_domain.c | 1 arch/arm/mach-omap1/ams-delta-fiq.c | 28 arch/arm/mach-omap2/powerdomain.c | 4 arch/arm/vfp/vfpmodule.c | 2 arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 4 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 12 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts | 4 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi | 4 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 61 + arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 4 arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 17 arch/arm64/boot/dts/broadcom/stingray/stingray-sata.dtsi | 80 +- arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi | 2 arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 2 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 2 arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 2 arch/arm64/include/asm/cputype.h | 6 arch/arm64/kernel/ptrace.c | 20 arch/arm64/kernel/traps.c | 3 arch/arm64/mm/kasan_init.c | 4 arch/hexagon/include/asm/io.h | 6 arch/hexagon/lib/checksum.c | 1 arch/mips/boot/dts/img/boston.dts | 6 arch/mips/include/asm/io.h | 4 arch/parisc/kernel/drivers.c | 7 arch/parisc/kernel/smp.c | 3 arch/parisc/kernel/time.c | 2 arch/powerpc/include/asm/topology.h | 13 arch/powerpc/kernel/setup_64.c | 11 arch/powerpc/kvm/booke.c | 7 arch/powerpc/platforms/cell/spufs/sched.c | 2 arch/powerpc/platforms/powernv/memtrace.c | 17 arch/riscv/Kconfig | 4 arch/riscv/kernel/vdso/Makefile | 2 arch/sh/Kconfig | 1 arch/sh/kernel/cpu/sh2/probe.c | 4 arch/sh/kernel/setup.c | 1 arch/sh/mm/init.c | 68 -- arch/sh/mm/numa.c | 19 arch/x86/events/intel/core.c | 9 arch/x86/include/asm/insn.h | 18 arch/x86/include/asm/kvm_host.h | 1 arch/x86/kernel/cpu/intel.c | 3 arch/x86/kernel/kexec-bzimage64.c | 5 arch/x86/kernel/kprobes/core.c | 4 arch/x86/kernel/uprobes.c | 4 arch/x86/kvm/hyperv.c | 2 arch/x86/kvm/svm.c | 31 arch/x86/kvm/vmx.c | 95 +- arch/x86/kvm/x86.c | 33 - arch/x86/net/bpf_jit_comp.c | 18 arch/x86/xen/enlighten_hvm.c | 13 block/blk-cgroup.c | 22 block/blk-mq.c | 19 block/blk-mq.h | 4 block/genhd.c | 12 block/partition-generic.c | 10 drivers/acpi/acpi_watchdog.c | 59 + drivers/acpi/scan.c | 2 drivers/acpi/sleep.c | 13 drivers/ata/ahci.c | 6 drivers/ata/ahci.h | 7 drivers/ata/ahci_mvebu.c | 56 + drivers/ata/ahci_qoriq.c | 2 drivers/ata/ahci_xgene.c | 4 drivers/ata/libahci.c | 20 drivers/ata/libata-eh.c | 4 drivers/ata/sata_highbank.c | 2 drivers/char/agp/uninorth-agp.c | 4 drivers/clk/clk-mux.c | 10 drivers/clk/clk.c | 7 drivers/clk/imx/clk-imx6ul.c | 2 drivers/clocksource/timer-imx-tpm.c | 8 drivers/cpufreq/Kconfig.arm | 10 drivers/cpufreq/brcmstb-avs-cpufreq.c | 323 ---------- drivers/firmware/efi/libstub/arm64-stub.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 6 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 13 drivers/gpu/drm/drm_dumb_buffers.c | 7 drivers/gpu/drm/exynos/exynos_mixer.c | 22 drivers/gpu/drm/exynos/regs-mixer.h | 1 drivers/gpu/drm/msm/dsi/dsi_host.c | 2 drivers/gpu/drm/msm/msm_fbdev.c | 11 drivers/gpu/drm/msm/msm_gem.c | 20 drivers/gpu/drm/omapdrm/dss/hdmi4.c | 2 drivers/gpu/drm/omapdrm/dss/hdmi4_core.c | 7 drivers/gpu/drm/omapdrm/dss/hdmi5.c | 2 drivers/gpu/drm/omapdrm/omap_connector.c | 10 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 6 drivers/gpu/drm/omapdrm/tcm-sita.c | 2 drivers/gpu/drm/vc4/vc4_dpi.c | 25 drivers/hid/Kconfig | 7 drivers/hid/hid-ids.h | 9 drivers/hid/hid-lenovo.c | 36 + drivers/hid/i2c-hid/i2c-hid.c | 2 drivers/hid/intel-ish-hid/ishtp/bus.c | 2 drivers/hid/wacom_sys.c | 4 drivers/i2c/busses/i2c-pmcmsp.c | 4 drivers/i2c/busses/i2c-sprd.c | 22 drivers/i2c/busses/i2c-viperboard.c | 2 drivers/infiniband/Kconfig | 5 drivers/infiniband/core/cma.c | 60 + drivers/infiniband/core/iwpm_util.c | 5 drivers/infiniband/core/mad.c | 4 drivers/infiniband/core/uverbs_ioctl.c | 9 drivers/infiniband/hw/hfi1/affinity.c | 11 drivers/infiniband/hw/hfi1/init.c | 41 - drivers/infiniband/hw/hfi1/platform.c | 1 drivers/infiniband/hw/hfi1/qsfp.c | 2 drivers/infiniband/hw/hns/hns_roce_hem.c | 8 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 11 drivers/infiniband/hw/mlx4/mr.c | 2 drivers/infiniband/hw/mlx5/main.c | 4 drivers/infiniband/sw/rxe/rxe_opcode.c | 2 drivers/infiniband/sw/rxe/rxe_req.c | 1 drivers/infiniband/sw/rxe/rxe_resp.c | 6 drivers/infiniband/ulp/srp/Kconfig | 2 drivers/infiniband/ulp/srpt/Kconfig | 2 drivers/input/rmi4/rmi_spi.c | 7 drivers/input/touchscreen/atmel_mxt_ts.c | 186 +++-- drivers/iommu/dmar.c | 2 drivers/iommu/intel_irq_remapping.c | 2 drivers/mtd/onenand/omap2.c | 105 +-- drivers/net/can/dev.c | 2 drivers/net/ethernet/aquantia/atlantic/aq_nic.c | 3 drivers/net/ethernet/aquantia/atlantic/aq_nic.h | 1 drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 21 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 drivers/net/ethernet/hisilicon/hns/hnae.h | 2 drivers/net/ethernet/ibm/ibmvnic.c | 3 drivers/net/ethernet/intel/igb/igb_main.c | 17 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 2 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c | 3 drivers/net/ethernet/marvell/mvpp2.c | 15 drivers/net/ethernet/netronome/nfp/flower/cmsg.c | 38 + drivers/net/ethernet/netronome/nfp/flower/cmsg.h | 2 drivers/net/ethernet/netronome/nfp/flower/main.c | 8 drivers/net/ethernet/netronome/nfp/flower/main.h | 8 drivers/net/ethernet/netronome/nfp/nfp_app_nic.c | 2 drivers/net/ethernet/netronome/nfp/nfp_main.h | 4 drivers/net/ethernet/netronome/nfp/nfp_net_main.c | 31 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c | 3 drivers/net/ethernet/qlogic/qed/qed_l2.c | 6 drivers/net/ethernet/qlogic/qede/qede_rdma.c | 2 drivers/net/phy/broadcom.c | 10 drivers/net/phy/marvell.c | 9 drivers/net/phy/microchip.c | 178 +++++ drivers/nvme/host/Kconfig | 2 drivers/nvme/host/core.c | 32 drivers/nvme/host/fabrics.c | 6 drivers/nvme/host/multipath.c | 24 drivers/nvme/host/nvme.h | 12 drivers/nvme/target/Kconfig | 2 drivers/pci/dwc/pcie-kirin.c | 2 drivers/pinctrl/intel/pinctrl-cherryview.c | 16 drivers/pinctrl/meson/pinctrl-meson-axg.c | 2 drivers/platform/x86/Kconfig | 2 drivers/remoteproc/qcom_q6v5_pil.c | 2 drivers/reset/reset-uniphier.c | 6 drivers/rpmsg/rpmsg_char.c | 2 drivers/s390/net/qeth_core_main.c | 51 - drivers/s390/net/qeth_core_mpc.h | 12 drivers/s390/net/qeth_l2_main.c | 4 drivers/s390/net/smsgiucv.c | 2 drivers/scsi/isci/port_config.c | 3 drivers/scsi/megaraid/megaraid_sas_fusion.c | 6 drivers/scsi/scsi_transport_iscsi.c | 29 drivers/scsi/storvsc_drv.c | 7 drivers/scsi/vmw_pvscsi.c | 2 drivers/soc/bcm/raspberrypi-power.c | 2 drivers/spi/spi-bcm2835aux.c | 5 drivers/spi/spi-cadence.c | 8 drivers/spi/spi-sh-msiof.c | 1 drivers/target/target_core_pscsi.c | 2 drivers/tee/tee_core.c | 11 drivers/thermal/int340x_thermal/int3403_thermal.c | 3 drivers/usb/musb/musb_host.c | 5 drivers/usb/musb/musb_host.h | 7 drivers/usb/musb/musb_virthub.c | 25 drivers/usb/typec/tps6598x.c | 47 + drivers/usb/typec/ucsi/Makefile | 2 drivers/xen/xenbus/xenbus_dev_frontend.c | 3 fs/afs/addr_list.c | 25 fs/afs/callback.c | 56 + fs/afs/cmservice.c | 6 fs/afs/internal.h | 7 fs/afs/rotate.c | 20 fs/afs/rxrpc.c | 7 fs/afs/server.c | 22 fs/afs/server_list.c | 7 fs/cifs/Kconfig | 2 fs/cifs/smb2ops.c | 6 fs/cifs/smb2pdu.c | 68 +- fs/cifs/transport.c | 5 fs/ecryptfs/crypto.c | 41 - fs/ecryptfs/file.c | 21 fs/isofs/inode.c | 3 fs/namespace.c | 2 fs/notify/fsnotify.c | 25 fs/ocfs2/refcounttree.c | 14 fs/proc/base.c | 6 fs/proc/kcore.c | 23 fs/proc/loadavg.c | 2 fs/proc/task_mmu.c | 6 include/linux/brcmphy.h | 1 include/linux/clk-provider.h | 3 include/linux/ethtool.h | 2 include/linux/genhd.h | 4 include/linux/kthread.h | 1 include/linux/kvm_host.h | 8 include/linux/microchipphy.h | 8 include/linux/mtd/map.h | 2 include/linux/mtd/rawnand.h | 16 include/linux/percpu-rwsem.h | 6 include/linux/rwsem.h | 6 include/linux/sched.h | 50 + include/linux/sched/signal.h | 2 include/linux/stringhash.h | 4 include/soc/bcm2835/raspberrypi-firmware.h | 4 init/main.c | 7 kernel/bpf/syscall.c | 19 kernel/kthread.c | 50 - kernel/locking/rwsem-xadd.c | 19 kernel/locking/rwsem.c | 2 kernel/locking/rwsem.h | 30 kernel/module.c | 5 kernel/sched/core.c | 49 - kernel/sched/deadline.c | 4 kernel/sched/rt.c | 2 kernel/sched/sched.h | 5 kernel/signal.c | 17 kernel/stop_machine.c | 19 lib/find_bit_benchmark.c | 7 mm/memcontrol.c | 2 net/ipv6/ip6_vti.c | 4 net/ipv6/netfilter/Kconfig | 55 - net/mac80211/agg-tx.c | 4 net/mac80211/mlme.c | 25 net/mac80211/tx.c | 3 net/netfilter/nf_tables_api.c | 2 net/rds/ib_cm.c | 3 net/rxrpc/af_rxrpc.c | 2 net/rxrpc/ar-internal.h | 1 net/rxrpc/input.c | 2 net/rxrpc/local_object.c | 57 + net/rxrpc/output.c | 11 net/rxrpc/sendmsg.c | 10 net/sched/act_skbedit.c | 3 net/smc/af_smc.c | 6 net/sunrpc/xprtrdma/fmr_ops.c | 5 net/sunrpc/xprtrdma/frwr_ops.c | 9 net/sunrpc/xprtrdma/verbs.c | 5 net/sunrpc/xprtrdma/xprt_rdma.h | 2 net/tipc/monitor.c | 2 net/tipc/node.c | 28 scripts/Makefile.gcc-plugins | 2 sound/soc/codecs/msm8916-wcd-analog.c | 9 sound/soc/codecs/rt5514.c | 3 sound/soc/intel/Kconfig | 22 sound/soc/soc-topology.c | 6 tools/bpf/bpf_dbg.c | 7 tools/objtool/arch/x86/include/asm/insn.h | 18 tools/perf/util/cs-etm.c | 24 tools/perf/util/pmu.c | 20 tools/perf/util/symbol.c | 8 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-multi-actions-accept.tc | 44 + tools/testing/selftests/x86/Makefile | 2 tools/testing/selftests/x86/mov_ss_trap.c | 285 ++++++++ tools/testing/selftests/x86/mpx-mini-test.c | 7 tools/testing/selftests/x86/pkey-helpers.h | 20 tools/testing/selftests/x86/protection_keys.c | 254 +++++-- virt/kvm/arm/vgic/vgic-mmio-v2.c | 5 virt/kvm/arm/vgic/vgic.c | 8 302 files changed, 2996 insertions(+), 1621 deletions(-)
Adam Ford (2):
ARM: dts: logicpd-som-lv: Fix WL127x Startup Issues
ARM: dts: logicpd-som-lv: Fix Audio Mute
Alexey Dobriyan (2):
proc: revalidate kernel thread inodes to root:root
proc: fix /proc/loadavg regression
Amir Goldstein (2):
fsnotify: fix ignore mask logic in send_to_group() <linux/stringhash.h>: fix end_name_hash() for 64bit long
Andre Przywara (1):
KVM: arm/arm64: vgic: Kick new VCPU on interrupt migration
Andres Rodriguez (1):
drm/amdkfd: fix clock counter retrieval for node without GPU
Andrey Grodzovsky (1):
drm/amdgpu: Switch to interruptable wait to recover from ring hang.
Andrzej Hajda (1):
drm/exynos/mixer: fix synchronization check in interlaced mode
Andy Lutomirski (1):
x86/selftests: Add mov_to_ss test
Anson Huang (1):
clocksource/drivers/imx-tpm: Correct some registers operation flow
Arnaldo Carvalho de Melo (1):
perf report: Fix switching to another perf.data file
Arnd Bergmann (2):
hexagon: add memset_io() helper
hexagon: export csum_partial_copy_nocheck
Arvind Yadav (2):
HID: wacom: Release device resource data obtained by devres_alloc()
HID: intel-ish-hid: use put_device() instead of kfree()
Ashish Samant (1):
ocfs2: take inode cluster lock before moving reflinked inode from orphan dir
Aurelien Jarno (1):
RISC-V: build vdso-dummy.o with -no-pie
Balbir Singh (1):
powerpc/powernv/memtrace: Let the arch hotunplug code flush cache
Baolin Wang (3):
parisc: time: Convert read_persistent_clock() to read_persistent_clock64()
i2c: sprd: Prevent i2c accesses after suspend is called
i2c: sprd: Fix the i2c count issue
Ben Hutchings (2):
drm/msm: Fix possible null dereference on failure of get_pages()
mtd: Fix comparison in map_word_andequal()
Bhadram Varka (2):
arm64: tegra: Make BCM89610 PHY interrupt as active low
net: phy: broadcom: add support for BCM89610 PHY
Changbin Du (1):
iommu/vt-d: fix shift-out-of-bounds in bug checking
Chen Yu (1):
ACPI / PM: Blacklist Low Power S0 Idle _DSM for ThinkPad X1 Tablet(2016)
Chengguang Xu (2):
isofs: fix potential memory leak in mount option parsing
nvme: fix potential memory leak in option parsing
Chris Leech (1):
scsi: iscsi: respond to netlink with unicast when appropriate
Christoph Hellwig (1):
riscv: select DMA_DIRECT_OPS instead of redefining it
Christophe JAILLET (1):
Input: synaptics-rmi4 - fix an unchecked out of memory error path
Chuck Lever (1):
xprtrdma: Fix list corruption / DMAR errors during MR recovery
Clément Péron (1):
ARM: dts: cygnus: fix irq type for arm global timer
Colin Ian King (4):
scsi: isci: Fix infinite loop in while loop
RDMA/iwpm: fix memory leak on map_info
net: aquantia: fix unsigned numvecs comparison with less than zero
ixgbe: fix memory leak on ipsec allocation
Dag Moxnes (1):
rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp
Dan Carpenter (2):
drm/omap: silence unititialized variable warning drm/dumb-buffers: Integer overflow in drm_mode_create_ioctl()
Daniel Borkmann (3):
bpf, x64: fix memleak when not converging after image bpf, x64: fix memleak when not converging on calls
bpf: use array_index_nospec in find_prog_type
Daniel Glöckner (1):
usb: musb: fix remote wakeup racing with suspend
Darren Hart (1):
platform/x86: DELL_WMI use depends on instead of select for DELL_SMBIOS
Dave Hansen (11):
x86/pkeys/selftests: Give better unexpected fault error messages x86/pkeys/selftests: Stop using assert() x86/pkeys/selftests: Remove dead debugging code, fix dprint_in_signal x86/pkeys/selftests: Avoid printf-in-signal deadlocks x86/pkeys/selftests: Allow faults on unknown keys x86/pkeys/selftests: Factor out "instruction page" x86/pkeys/selftests: Add PROT_EXEC test x86/pkeys/selftests: Fix pkey exhaustion test off-by-one x86/pkeys/selftests: Fix pointer math x86/pkeys/selftests: Save off 'prot' for allocations x86/pkeys/selftests: Add a test for pkey 0
Dave Young (1):
kexec_file: do not add extra alignment to efi memmap
David Gilhooley (1):
arm64: Add MIDR encoding for NVIDIA CPUs
David Howells (11):
afs: Fix server record deletion
vfs: Undo an overly zealous MS_RDONLY -> SB_RDONLY conversion
rxrpc: Fix missing start of call timeout
rxrpc: Fix error reception on AF_INET6 sockets
rxrpc: Fix the min security level for kernel calls
afs: Fix address list parsing
afs: Fix refcounting in callback registration
afs: Fix server rotation's handling of fileserver probe failure
afs: Fix VNOVOL handling in address rotation
afs: Fix the handling of CB.InitCallBackState3 to find the server by UUID
afs: Fix the non-encryption of calls
Emil Tantilov (1):
ixgbe: return error on unsupported SFP module when resetting
Emil Velikov (1):
drm/msm: don't deref error pointer in the msm_fbdev_create error path
Eric Anholt (1):
drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge.
Etienne Carriere (1):
tee: check shm references are consistent in offset/size
Evan Wang (2):
libahci: Allow drivers to override stop_engine
ata: ahci: mvebu: override ahci_stop_engine for mvebu AHCI
Florian Fainelli (2):
soc: bcm: raspberrypi-power: Fix use of __packed
net: ethtool: Add missing kernel doc for FEC parameters
Ganesh Goudar (1):
cxgb4: copy mbox log size to PF0-3 adap instances
Geert Uytterhoeven (5):
soc: bcm2835: Make !RASPBERRYPI_FIRMWARE dummies return failure
dt-bindings: meson-uart: DT fix s/clocks-names/clock-names/
dt-bindings: mvebu-uart: DT fix s/interrupts-names/interrupt-names/
dt-bindings: panel: lvds: Fix path to display timing bindings
mtd: rawnand: Fix return type of __DIVIDE() when called with 32-bit
Gianluca Borello (1):
bpf, x64: fix JIT emission for dead code
Graeme Smecher (1):
ARM: dts: correct missing "compatible" entry for ti81xx SoCs
Greg Kroah-Hartman (1):
Linux 4.16.17
Greg Thelen (6):
nvme: depend on INFINIBAND_ADDR_TRANS
nvmet-rdma: depend on INFINIBAND_ADDR_TRANS
ib_srpt: depend on INFINIBAND_ADDR_TRANS
cifs: smbd: depend on INFINIBAND_ADDR_TRANS
ib_srp: depend on INFINIBAND_ADDR_TRANS
IB: make INFINIBAND_ADDR_TRANS configurable
Hans de Goede (2):
thermal: int3403_thermal: Fix NULL pointer deref on module load / probe
HID: i2c-hid: Add RESEND_REPORT_DESCR quirk for Toshiba Click Mini L9W-B
Heikki Krogerus (1):
usb: typec: tps6598x: handle block reads separately with plain-I2C adapters
Helge Deller (2):
parisc: drivers.c: Fix section mismatches
parisc: Move setup_profiling_timer() out of init section
Huang Ying (1):
mm, pagemap: fix swap offset value for PMD migration entry
Håkon Bugge (1):
IB/core: Make ib_mad_client_id atomic
Igor Russkikh (2):
net: aquantia: driver should correctly declare vlan_features bits
net: aquantia: Limit number of vectors to actually allocated irqs
Ilan Peer (1):
mac80211: Adjust SAE authentication timeout
Ingo Molnar (3):
objtool, kprobes/x86: Sync the latest <asm/insn.h> header with tools/objtool/arch/x86/include/asm/insn.h x86/pkeys/selftests: Adjust the self-test to fresh distros that export the pkeys ABI x86/mpx/selftests: Adjust the self-test to fresh distros that export the MPX ABI
Jack Morgenstein (1):
IB/mlx4: Fix integer overflow when calculating optimal MTT size
Jacopo Mondi (3):
dt-bindings: net: ravb: Add support for r8a77965 SoC
dt-bindings: serial: sh-sci: Add support for r8a77965 (H)SCIF
dt-bindings: dmaengine: rcar-dmac: document R8A77965 support
Jagannathan Raman (1):
iommu/vt-d: Fix usage of force parameter in intel_ir_reconfigure_irte()
Jakob Unterwurzacher (1):
can: dev: increase bus-off message severity
Jakub Kicinski (2):
nfp: ignore signals when communicating with management FW
nfp: don't depend on eth_tbl being available
Janusz Krzysztofik (1):
ARM: OMAP1: ams-delta: fix deferred_fiq handler
Jeffrey Hugo (1):
init: fix false positives in W+X checking
Jerome Brunet (1):
clk: honor CLK_MUX_ROUND_CLOSEST in generic clk mux
Jianchao Wang (2):
IB/rxe: add RXE_START_MASK for rxe_opcode IB_OPCODE_RC_SEND_ONLY_INV
nvme: fix use-after-free in nvme_free_ns_head
Jiang Biao (2):
blkcg: don't hold blkcg lock when deactivating policy
blkcg: init root blkcg_gq under lock
Jim Gill (1):
scsi: vmw-pvscsi: return DID_BUS_BUSY for adapter-initated aborts
Jingju Hou (1):
net: phy: marvell: clear wol event before setting it
John Fastabend (1):
bpf: fix uninitialized variable in bpf tools
Jon Maloy (1):
tipc: fix bug in function tipc_nl_node_dump_monitor
Julian Wiedmann (1):
s390/qeth: fix request-side race during cmd IO timeout
Junaid Shahid (1):
kvm: apic: Flush TLB after APIC mode/address change if VPIDs are in use
Kan Liang (2):
perf pmu: Fix core PMU alias list for X86 platform perf/x86/intel: Don't enable freeze-on-smi for PerfMon V1
KarimAllah Ahmed (1):
X86/KVM: Properly update 'tsc_offset' to represent the running guest
Keith Busch (3):
nvme: Set integrity flag for user passthrough commands nvme/multipath: Disable runtime writable enabling parameter nvme/multipath: Fix multipath disabled naming collisions
Krish Sadhukhan (1):
x86: Add check for APIC access address for vmentry of L2 guests
Ladislav Michl (1):
mtd: onenand: omap2: Disable DMA for HIGHMEM buffers
Laura Abbott (1):
proc/kcore: don't bounds check against address 0
Laurentiu Tudor (1):
powerpc/kvm/booke: Fix altivec related build break
Leo Yan (1):
perf cs-etm: Support unknown_thread in cs_etm_auxtrace
Leon Romanovsky (1):
RDMA/mlx5: Properly check return value of mlx5_get_uars_page
Liam Girdwood (1):
ASoC: topology: Check widget kcontrols before deref.
Loic Poulain (1):
PCI: kirin: Fix reset gpio name
Long Li (2):
scsi: storvsc: Set up correct queue depth values for IDE devices
cifs: Allocate validate negotiation request through kmalloc
Lukasz Majewski (1):
doc: Add vendor prefix for Kieback & Peter GmbH
Madhavan Srinivasan (1):
powerpc/64s: Default l1d_size to 64K in RFI fallback flush
Marc Dionne (1):
afs: Fix afs_find_server search loop
Marian Rotariu (1):
x86: Delay skip of emulated hypercall instruction
Mark Rutland (7):
arm64: kasan: avoid pfn_to_nid() before page array is initialized
arm64: ptrace: remove addr_limit manipulation
arm64: only advance singlestep for user instruction traps
arm64: fix possible spectre-v1 in ptrace_hbp_get_event()
KVM: arm/arm64: vgic: fix possible spectre-v1 in vgic_mmio_read_apr()
bpf: fix possible spectre-v1 in find_and_alloc_map() efi/libstub/arm64: Handle randomized TEXT_OFFSET
Markus Mayer (1):
cpufreq: brcmstb-avs-cpufreq: remove development debug support
Martin Blumenstingl (7):
ARM64: dts: meson-gxl: add USB host support
ARM64: dts: meson-gxm: add GXM specific USB host configuration
ARM64: dts: meson-gxl-s905x-p212: enable the USB controller
ARM64: dts: meson-gx-p23x-q20x: enable the USB controller
ARM64: dts: meson-gxl-s905x-libretech-cc: enable the USB controller
ARM64: dts: meson-gxl-nexbox-a95x: enable the USB controller
ARM64: dts: meson-gxm-khadas-vim2: enable the USB controller
Martin Schwidefsky (1):
s390/smsgiucv: disable SMSG on module unload
Masahiro Yamada (3):
arm64: dts: uniphier: fix input delay value for legacy mode of eMMC
reset: uniphier: fix USB clock line for LD20
gcc-plugins: fix build condition of SANCOV plugin
Masami Hiramatsu (3):
selftests: ftrace: Add a testcase for multiple actions on trigger kprobes/x86: Prohibit probing on exception masking instructions uprobes/x86: Prohibit probing on MOV SS instruction
Matan Barak (1):
IB/uverbs: Fix validating mandatory attributes
Matheus Castello (1):
dt-bindings: pinctrl: sunxi: Fix reference to driver
Mathieu Malaterre (4):
driver core: add __printf verification to __ata_ehi_pushv_desc
agp: uninorth: make two functions static
sched/debug: Move the print_rt_rq() and print_dl_rq() declarations to kernel/sched/sched.h sched/deadline: Make the grub_reclaim() function static
Matt Redfearn (1):
MIPS: dts: Boston: Fix PCI bus dtc warnings:
Maxime Chevallier (1):
net: mvpp2: Fix clk error path in mvpp2_probe
Michael Ellerman (1):
powerpc/pseries: Fix CONFIG_NUMA=n build
Michael J. Ruhl (1):
IB/hfi1 Use correct type for num_user_context
Michal Kalderon (2):
qed: Fix l2 initializations over iWARP personality
qede: Fix gfp flags sent to rdma event node allocation
Mika Westerberg (3):
ACPI / scan: Initialize watchdog before PNP
ACPI / watchdog: Prefer iTCO_wdt on Lenovo Z50-70
pinctrl: cherryview: Associate IRQ descriptors to irqdomain
Minchan Kim (1):
mm: memcg: add __GFP_NOWARN in __memcg_schedule_kmem_cache_create()
Ming Lei (1):
scsi: target: fix crash with iscsi target and dvd
Nathan Fontenot (1):
ibmvnic: Do not notify peers on parameter change resets
Nick Dyer (1):
Input: atmel_mxt_ts - fix the firmware update
Nikita Yushchenko (1):
ARM: dts: imx51-zii-rdu1: fix touchscreen bindings
Omar Sandoval (1):
blk-mq: fix sysfs inflight counter
Pablo Neira Ayuso (1):
netfilter: nf_tables: NAT chain and extensions require NF_TABLES
Paolo Bonzini (1):
kvm: x86: move MSR_IA32_TSC handling to x86.c
Parav Pandit (2):
RDMA/cma: Fix use after destroy access to net namespace for IPoIB RDMA/cma: Do not query GID during QP state transition to RTR
Paulo Alcantara (1):
cifs: smb2ops: Fix listxattr() when there are no EAs
Peter Rosin (3):
i2c: pmcmsp: return message count on master_xfer success
i2c: pmcmsp: fix error return from master_xfer
i2c: viperboard: return message count on master_xfer success
Peter Zijlstra (4):
stop_machine, sched: Fix migrate_swap() vs. active_balance() deadlock kthread, sched/wait: Fix kthread_parkme() wait-loop kthread, sched/wait: Fix kthread_parkme() completion issue sched/core: Introduce set_special_state()
Pierre-Louis Bossart (1):
ASoC: Intel: atom: fix ACPI/PCI Kconfig
Pieter Jansen van Vuuren (1):
nfp: flower: split and limit cmsg skb lists
Raghuram Chary J (1):
lan78xx: PHY DSP registers initialization to address EEE link drop issues with long cables
Ramon Fried (1):
rpmsg: added MODULE_ALIAS for rpmsg_char
Rich Felker (1):
sh: fix build failure for J2 cpu with SMP disabled
Rob Herring (2):
spi: bcm2835aux: ensure interrupts are enabled for shared handler
sh: switch to NO_BOOTMEM
Roman Mashak (1):
net sched actions: fix invalid pointer dereferencing if skbedit flags missing
Russell King (4):
ARM: keystone: fix platform_domain_notifier array overrun
ARM: kexec: fix kdump register saving on panic()
ARM: replace unnecessary perl with sed and the shell $(( )) operator
ARM: fix kill( ,SIGFPE) breakage
Sara Sharon (1):
mac80211: use timeout from the AddBA response instead of the request
Sebastian Sanchez (2):
IB/{hfi1, rdmavt}: Fix memory leak in hfi1_alloc_devdata() upon failure IB/hfi1: Fix memory leak in exception path in get_irq_affinity()
Sekhar Nori (9):
ARM: dts: da850: fix W=1 warnings with pinmux node
ARM: davinci: board-da830-evm: fix GPIO lookup for MMC/SD
ARM: davinci: board-da850-evm: fix GPIO lookup for MMC/SD
ARM: davinci: board-omapl138-hawk: fix GPIO numbers for MMC/SD lookup
ARM: davinci: board-dm355-evm: fix broken networking
ARM: davinci: fix GPIO lookup for I2C
ARM: davinci: dm646x: fix timer interrupt generation
ARM: davinci: board-dm646x-evm: pass correct I2C adapter id for VPIF
ARM: davinci: board-dm646x-evm: set VPIF capture card name
Simon Gaiser (1):
xen: xenbus_dev_frontend: Really return response string
Sinan Kaya (2):
MIPS: io: Prevent compiler reordering writeX()
MIPS: io: Add barrier after register read in readX()
Srinath Mannam (1):
arm64: dts: correct SATA addresses for Stingray
Srinivas Kandagatla (1):
ASoC: msm8916-wcd-analog: use threaded context for mbhc events
Stefan Agner (2):
drm/msm/dsi: use correct enum in dsi_get_cmd_fmt
clk: imx6ull: use OSC clock during AXI rate change
Stefan Raspl (1):
smc: fix sendpage() call
Stefano Brivio (1):
vti6: Change minimum MTU to IPV4_MIN_MTU, vti6 can carry IPv4 too
Steve French (1):
CIFS: set *resp_buf_type to NO_BUFFER on error
Taehee Yoo (1):
netfilter: nf_tables: fix out-of-bounds in nft_chain_commit_update
Tero Kristo (1):
ARM: OMAP2+: powerdomain: use raw_smp_processor_id() for trace
Tobias Jakobi (1):
drm/exynos: mixer: avoid Oops in vp_video_buffer()
Tobias Jordan (1):
remoteproc: qcom: Fix potential device node leaks
Tobias Regnery (1):
usb: typec: ucsi: fix tracepoint related build error
Tomi Valkeinen (4):
drm/omap: fix uninitialized ret variable drm/omap: fix possible NULL ref issue in tiler_reserve_2d drm/omap: check return value from soc_device_match drm/omap: handle alloc failures in omap_connector
Tony Lindgren (1):
ARM: dts: Fix cm2 and prm sizes for omap4
Tung Nguyen (1):
tipc: fix infinite loop when dumping link monitor summary
Tyler Hicks (1):
eCryptfs: don't pass up plaintext names when using filename encryption
Vinicius Costa Gomes (1):
igb: Fix the transmission mode of queue 0 for Qav mode
Vinson Lee (1):
scsi: megaraid_sas: Do not log an error if FW successfully initializes.
Vladimir Zapolskiy (1):
spi: sh-msiof: Fix bit field overflow writes to TSCR/RSCR
Waiman Long (2):
locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN
Wanpeng Li (2):
KVM: Extend MAX_IRQ_ROUTES to 4096 for all archs
KVM: X86: Lower the default timer frequency limit to 200us
Yan Wang (1):
ASoC: topology: Fix bugs of freeing soc topology
Ying Xue (1):
tipc: eliminate KMSAN uninit-value in strcmp complaint
Yixun Lan (1):
pinctrl: meson-axg: fix the range of aobus bank
Yury Norov (1):
lib/find_bit_benchmark.c: avoid soft lockup in test_find_first_bit()
Zhu Yanjun (1):
IB/rxe: avoid double kfree_skb
dann frazier (1):
net: hns: Avoid action name truncation
hu huajun (1):
KVM: X86: fix incorrect reference of trace_kvm_pi_irte_update
[email protected] (1):
x86/cpu/intel: Add missing TLB cpuid values
[email protected] (1):
ASoC: rt5514: Add the missing register in the readable table
oulijun (4):
RDMA/hns: Bugfix for init hem table
RDMA/hns: Intercept illegal RDMA operation when use inline data RDMA/hns: Fix the qp context state diagram
RDMA/hns: Submit bad wr
pgzh (1):
HID: lenovo: Add support for IBM/Lenovo Scrollpoint mice
sxauwsk (1):
spi: cadence: Add usleep_range() for cdns_spi_fill_tx_fifo()
van der Linden, Frank (1):
x86/xen: Reset VCPU0 info pointer after shared_info remap
Łukasz Stelmach (2):
ARM: 8753/1: decompressor: add a missing parameter to the addruart macro
ARM: 8758/1: decompressor: restore r1 and r2 just before jumping to the kernel
Greg KH
maintainerDocumentation/devicetree/bindings/display/panel/panel-common.txt +1 -1
@@ -38,7 +38,7 @@ Display Timings require specific display timings. The panel-timing subnode expresses those timings as specified in the timing subnode section of the display timing bindings defined in - Documentation/devicetree/bindings/display/display-timing.txt. + Documentation/devicetree/bindings/display/panel/display-timing.txt. Connectivity
Documentation/devicetree/bindings/dma/renesas,rcar-dmac.txt +1 -0
@@ -25,6 +25,7 @@ Required Properties: - "renesas,dmac-r8a7794" (R-Car E2) - "renesas,dmac-r8a7795" (R-Car H3) - "renesas,dmac-r8a7796" (R-Car M3-W) + - "renesas,dmac-r8a77965" (R-Car M3-N) - "renesas,dmac-r8a77970" (R-Car V3M) - reg: base address and length of the registers block for the DMAC
Documentation/devicetree/bindings/net/renesas,ravb.txt +1 -0
@@ -17,6 +17,7 @@ Required properties: - "renesas,etheravb-r8a7795" for the R8A7795 SoC. - "renesas,etheravb-r8a7796" for the R8A7796 SoC. + - "renesas,etheravb-r8a77965" for the R8A77965 SoC. - "renesas,etheravb-r8a77970" for the R8A77970 SoC. - "renesas,etheravb-r8a77980" for the R8A77980 SoC. - "renesas,etheravb-r8a77995" for the R8A77995 SoC.
Documentation/devicetree/bindings/pinctrl/allwinner,sunxi-pinctrl.txt +3 -3
@@ -55,9 +55,9 @@ pins it needs, and how they should be configured, with regard to muxer configuration, drive strength and pullups. If one of these options is not set, its actual value will be unspecified. -This driver supports the generic pin multiplexing and configuration -bindings. For details on each properties, you can refer to -./pinctrl-bindings.txt. +Allwinner A1X Pin Controller supports the generic pin multiplexing and +configuration bindings. For details on each properties, you can refer to + ./pinctrl-bindings.txt. Required sub-node properties: - pins
Documentation/devicetree/bindings/serial/amlogic,meson-uart.txt +1 -1
@@ -21,7 +21,7 @@ Required properties: - interrupts : identifier to the device interrupt - clocks : a list of phandle + clock-specifier pairs, one for each entry in clock names. -- clocks-names : +- clock-names : * "xtal" for external xtal clock identifier * "pclk" for the bus core clock, either the clk81 clock or the gate clock * "baud" for the source of the baudrate generator, can be either the xtal
Documentation/devicetree/bindings/serial/mvebu-uart.txt +1 -1
@@ -24,7 +24,7 @@ Required properties: - Must contain two elements for the extended variant of the IP (marvell,armada-3700-uart-ext): "uart-tx" and "uart-rx", respectively the UART TX interrupt and the UART RX interrupt. A - corresponding interrupts-names property must be defined. + corresponding interrupt-names property must be defined. - For backward compatibility reasons, a single element interrupts property is also supported for the standard variant of the IP, containing only the UART sum interrupt. This form is deprecated
Documentation/devicetree/bindings/serial/renesas,sci-serial.txt +2 -0
@@ -41,6 +41,8 @@ Required properties: - "renesas,hscif-r8a7795" for R8A7795 (R-Car H3) HSCIF compatible UART. - "renesas,scif-r8a7796" for R8A7796 (R-Car M3-W) SCIF compatible UART. - "renesas,hscif-r8a7796" for R8A7796 (R-Car M3-W) HSCIF compatible UART. + - "renesas,scif-r8a77965" for R8A77965 (R-Car M3-N) SCIF compatible UART. + - "renesas,hscif-r8a77965" for R8A77965 (R-Car M3-N) HSCIF compatible UART. - "renesas,scif-r8a77970" for R8A77970 (R-Car V3M) SCIF compatible UART. - "renesas,hscif-r8a77970" for R8A77970 (R-Car V3M) HSCIF compatible UART. - "renesas,scif-r8a77995" for R8A77995 (R-Car D3) SCIF compatible UART.
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
@@ -181,6 +181,7 @@ karo Ka-Ro electronics GmbH keithkoep Keith & Koep GmbH keymile Keymile GmbH khadas Khadas +kiebackpeter Kieback & Peter GmbH kinetic Kinetic Technologies kingnovel Kingnovel Technology Co., Ltd. kosagi Sutajio Ko-Usagi PTE Ltd.
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 16 -SUBLEVEL = 16 +SUBLEVEL = 17 EXTRAVERSION = NAME = Fearless Coyote
arch/arm/boot/compressed/Makefile +3 -5
@@ -117,11 +117,9 @@ ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj) asflags-y := -DZIMAGE # Supply kernel BSS size to the decompressor via a linker symbol. -KBSS_SZ = $(shell $(CROSS_COMPILE)nm $(obj)/../../../../vmlinux | \ - perl -e 'while (<>) { \ - $$bss_start=hex($$1) if /^([[:xdigit:]]+) B __bss_start$$/; \ - $$bss_end=hex($$1) if /^([[:xdigit:]]+) B __bss_stop$$/; \ - }; printf "%d\n", $$bss_end - $$bss_start;') +KBSS_SZ = $(shell echo $$(($$($(CROSS_COMPILE)nm $(obj)/../../../../vmlinux | \ + sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \ + -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) ) LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ) # Supply ZRELADDR to the decompressor via a linker symbol. ifneq ($(CONFIG_AUTO_ZRELADDR),y)
arch/arm/boot/compressed/head.S +10 -10
@@ -29,19 +29,19 @@ #if defined(CONFIG_DEBUG_ICEDCC) #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7) - .macro loadsp, rb, tmp + .macro loadsp, rb, tmp1, tmp2 .endm .macro writeb, ch, rb mcr p14, 0, \ch, c0, c5, 0 .endm #elif defined(CONFIG_CPU_XSCALE) - .macro loadsp, rb, tmp + .macro loadsp, rb, tmp1, tmp2 .endm .macro writeb, ch, rb mcr p14, 0, \ch, c8, c0, 0 .endm #else - .macro loadsp, rb, tmp + .macro loadsp, rb, tmp1, tmp2 .endm .macro writeb, ch, rb mcr p14, 0, \ch, c1, c0, 0
@@ -57,7 +57,7 @@ .endm #if defined(CONFIG_ARCH_SA1100) - .macro loadsp, rb, tmp + .macro loadsp, rb, tmp1, tmp2 mov \rb, #0x80000000 @ physical base address #ifdef CONFIG_DEBUG_LL_SER3 add \rb, \rb, #0x00050000 @ Ser3
@@ -66,8 +66,8 @@ #endif .endm #else - .macro loadsp, rb, tmp - addruart \rb, \tmp + .macro loadsp, rb, tmp1, tmp2 + addruart \rb, \tmp1, \tmp2 .endm #endif #endif
@@ -561,8 +561,6 @@ not_relocated: mov r0, #0 bl decompress_kernel bl cache_clean_flush bl cache_off - mov r1, r7 @ restore architecture number - mov r2, r8 @ restore atags pointer #ifdef CONFIG_ARM_VIRT_EXT mrs r0, spsr @ Get saved CPU boot mode
@@ -1297,7 +1295,7 @@ phex: adr r3, phexbuf b 1b @ puts corrupts {r0, r1, r2, r3} -puts: loadsp r3, r1 +puts: loadsp r3, r2, r1 1: ldrb r2, [r0], #1 teq r2, #0 moveq pc, lr
@@ -1314,8 +1312,8 @@ puts: loadsp r3, r1 @ putc corrupts {r0, r1, r2, r3} putc: mov r2, r0 + loadsp r3, r1, r0 mov r0, #0 - loadsp r3, r1 b 2b @ memdump corrupts {r0, r1, r2, r3, r10, r11, r12, lr}
@@ -1365,6 +1363,8 @@ __hyp_reentry_vectors: __enter_kernel: mov r0, #0 @ must be 0 + mov r1, r7 @ restore architecture number + mov r2, r8 @ restore atags pointer ARM( mov pc, r4 ) @ call kernel M_CLASS( add r4, r4, #1 ) @ enter in Thumb mode for M class THUMB( bx r4 ) @ entry point is always ARM for A/R classes
arch/arm/boot/dts/bcm-cygnus.dtsi +1 -1
@@ -69,7 +69,7 @@ timer@20200 { compatible = "arm,cortex-a9-global-timer"; reg = <0x20200 0x100>; - interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>; clocks = <&periph_clk>; };
arch/arm/boot/dts/da850.dtsi +0 -2
@@ -46,8 +46,6 @@ pmx_core: pinmux@14120 { compatible = "pinctrl-single"; reg = <0x14120 0x50>; - #address-cells = <1>; - #size-cells = <0>; #pinctrl-cells = <2>; pinctrl-single,bit-per-mux; pinctrl-single,register-width = <32>;
arch/arm/boot/dts/dm8148-evm.dts +1 -1
@@ -10,7 +10,7 @@ / { model = "DM8148 EVM"; - compatible = "ti,dm8148-evm", "ti,dm8148"; + compatible = "ti,dm8148-evm", "ti,dm8148", "ti,dm814"; memory@80000000 { device_type = "memory";
arch/arm/boot/dts/dm8148-t410.dts +1 -1
@@ -9,7 +9,7 @@ / { model = "HP t410 Smart Zero Client"; - compatible = "hp,t410", "ti,dm8148"; + compatible = "hp,t410", "ti,dm8148", "ti,dm814"; memory@80000000 { device_type = "memory";
arch/arm/boot/dts/dm8168-evm.dts +1 -1
@@ -10,7 +10,7 @@ / { model = "DM8168 EVM"; - compatible = "ti,dm8168-evm", "ti,dm8168"; + compatible = "ti,dm8168-evm", "ti,dm8168", "ti,dm816"; memory@80000000 { device_type = "memory";
arch/arm/boot/dts/dra62x-j5eco-evm.dts +1 -1
@@ -10,7 +10,7 @@ / { model = "DRA62x J5 Eco EVM"; - compatible = "ti,dra62x-j5eco-evm", "ti,dra62x", "ti,dm8148"; + compatible = "ti,dra62x-j5eco-evm", "ti,dra62x", "ti,dm8148", "ti,dm814"; memory@80000000 { device_type = "memory";
arch/arm/boot/dts/imx51-zii-rdu1.dts +3 -3
@@ -518,7 +518,7 @@ }; touchscreen@20 { - compatible = "syna,rmi4_i2c"; + compatible = "syna,rmi4-i2c"; reg = <0x20>; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ts>;
@@ -536,8 +536,8 @@ rmi4-f11@11 { reg = <0x11>; - touch-inverted-y; - touch-swapped-x-y; + touchscreen-inverted-y; + touchscreen-swapped-x-y; syna,sensor-type = <1>; }; };
arch/arm/boot/dts/logicpd-som-lv.dtsi +9 -2
@@ -26,7 +26,7 @@ gpio = <&gpio1 3 0>; /* gpio_3 */ startup-delay-us = <70000>; enable-active-high; - vin-supply = <&vmmc2>; + vin-supply = <&vaux3>; }; /* HS USB Host PHY on PORT 1 */
@@ -82,6 +82,7 @@ twl_audio: audio { compatible = "ti,twl4030-audio"; codec { + ti,hs_extmute_gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>; }; }; };
@@ -195,6 +196,7 @@ pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */ OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */ + OMAP3_CORE1_IOPAD(0x20ba, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs6.gpio_57 */ >; }; };
@@ -209,7 +211,7 @@ }; wl127x_gpio: pinmux_wl127x_gpio_pin { pinctrl-single,pins = < - OMAP3_WKUP_IOPAD(0x2a0c, PIN_INPUT | MUX_MODE4) /* sys_boot0.gpio_2 */ + OMAP3_WKUP_IOPAD(0x2a0a, PIN_INPUT | MUX_MODE4) /* sys_boot0.gpio_2 */ OMAP3_WKUP_IOPAD(0x2a0c, PIN_OUTPUT | MUX_MODE4) /* sys_boot1.gpio_3 */ >; };
@@ -244,6 +246,11 @@ #include "twl4030.dtsi" #include "twl4030_omap3.dtsi" +&vaux3 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; +}; + &twl { twl_power: power { compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
arch/arm/boot/dts/omap4.dtsi +4 -4
@@ -163,10 +163,10 @@ cm2: cm2@8000 { compatible = "ti,omap4-cm2", "simple-bus"; - reg = <0x8000 0x3000>; + reg = <0x8000 0x2000>; #address-cells = <1>; #size-cells = <1>; - ranges = <0 0x8000 0x3000>; + ranges = <0 0x8000 0x2000>; cm2_clocks: clocks { #address-cells = <1>;
@@ -250,11 +250,11 @@ prm: prm@6000 { compatible = "ti,omap4-prm"; - reg = <0x6000 0x3000>; + reg = <0x6000 0x2000>; interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <1>; - ranges = <0 0x6000 0x3000>; + ranges = <0 0x6000 0x2000>; prm_clocks: clocks { #address-cells = <1>;
arch/arm/include/uapi/asm/siginfo.h deleted +0 -13
@@ -1,13 +0,0 @@ -#ifndef __ASM_SIGINFO_H -#define __ASM_SIGINFO_H - -#include <asm-generic/siginfo.h> - -/* -* SIGFPE si_codes -*/ -#ifdef __KERNEL__ -#define FPE_FIXME 0/* Broken dup of SI_USER */ -#endif /* __KERNEL__ */ - -#endif
arch/arm/kernel/machine_kexec.c +22 -12
@@ -95,6 +95,27 @@ void machine_crash_nonpanic_core(void *unused)cpu_relax (); } +void crash_smp_send_stop (void ) +{ +static int cpus_stopped; +unsigned long msecs; + +if (cpus_stopped) +return ; + +atomic_set (&waiting_for_crash_ipi,num_online_cpus () -1 ); +smp_call_function (machine_crash_nonpanic_core,NULL , false); + msecs =1000 ;/* Wait at most a second for the other cpus to stop */ +while ((atomic_read (&waiting_for_crash_ipi) >0 ) && msecs) { +mdelay (1 ); + msecs--; + } +if (atomic_read (&waiting_for_crash_ipi) >0 ) +pr_warn ("Non-crashing CPUs did not react to IPI\n" ); + + cpus_stopped =1 ; +} +static void machine_kexec_mask_interrupts (void ) {unsigned int i;
@@ -120,19 +141,8 @@ static void machine_kexec_mask_interrupts(void)void machine_crash_shutdown (struct pt_regs *regs) { -unsigned long msecs; -local_irq_disable (); - -atomic_set (&waiting_for_crash_ipi,num_online_cpus () -1 ); -smp_call_function (machine_crash_nonpanic_core,NULL , false); - msecs =1000 ;/* Wait at most a second for the other cpus to stop */ -while ((atomic_read (&waiting_for_crash_ipi) >0 ) && msecs) { -mdelay (1 ); - msecs--; - } -if (atomic_read (&waiting_for_crash_ipi) >0 ) -pr_warn ("Non-crashing CPUs did not react to IPI\n" ); +crash_smp_send_stop ();crash_save_cpu (regs,smp_processor_id ());machine_kexec_mask_interrupts ();
arch/arm/mach-davinci/board-da830-evm.c +7 -2
@@ -205,12 +205,17 @@ static const short da830_evm_mmc_sd_pins[] = { -1 }; +#define DA830_MMCSD_WP_PIN GPIO_TO_PIN(2, 1) +#define DA830_MMCSD_CD_PIN GPIO_TO_PIN(2, 2) +static struct gpiod_lookup_table mmc_gpios_table = { .dev_id ="da830-mmc.0" , .table = {/* gpio chip 1 contains gpio range 32-63 */ -GPIO_LOOKUP ("davinci_gpio.1" ,2 ,"cd" ,GPIO_ACTIVE_LOW ), -GPIO_LOOKUP ("davinci_gpio.1" ,1 ,"wp" ,GPIO_ACTIVE_LOW ), +GPIO_LOOKUP ("davinci_gpio.0" ,DA830_MMCSD_CD_PIN ,"cd" , +GPIO_ACTIVE_LOW ), +GPIO_LOOKUP ("davinci_gpio.0" ,DA830_MMCSD_WP_PIN ,"wp" , +GPIO_ACTIVE_LOW ), }, };
arch/arm/mach-davinci/board-da850-evm.c +7 -2
@@ -763,12 +763,17 @@ static const short da850_evm_mcasp_pins[] __initconst = { -1 }; +#define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0) +#define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1) +static struct gpiod_lookup_table mmc_gpios_table = { .dev_id ="da830-mmc.0" , .table = {/* gpio chip 2 contains gpio range 64-95 */ -GPIO_LOOKUP ("davinci_gpio.2" ,0 ,"cd" ,GPIO_ACTIVE_LOW ), -GPIO_LOOKUP ("davinci_gpio.2" ,1 ,"wp" ,GPIO_ACTIVE_LOW ), +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 ), }, };
arch/arm/mach-davinci/board-dm355-evm.c +12 -3
@@ -19,6 +19,7 @@#include <linux/gpio.h> #include <linux/gpio/machine.h> #include <linux/clk.h> +#include <linux/dm9000.h> #include <linux/videodev2.h> #include <media/i2c/tvp514x.h> #include <linux/spi/spi.h>
@@ -109,12 +110,15 @@ static struct platform_device davinci_nand_device = { }, }; +#define DM355_I2C_SDA_PIN GPIO_TO_PIN(0, 15) +#define DM355_I2C_SCL_PIN GPIO_TO_PIN(0, 14) +static struct gpiod_lookup_table i2c_recovery_gpiod_table = { - .dev_id ="i2c_davinci" , + .dev_id ="i2c_davinci.1" , .table = { -GPIO_LOOKUP ("davinci_gpio" ,15 ,"sda" , +GPIO_LOOKUP ("davinci_gpio.0" ,DM355_I2C_SDA_PIN ,"sda" ,GPIO_ACTIVE_HIGH |GPIO_OPEN_DRAIN ), -GPIO_LOOKUP ("davinci_gpio" ,14 ,"scl" , +GPIO_LOOKUP ("davinci_gpio.0" ,DM355_I2C_SCL_PIN ,"scl" ,GPIO_ACTIVE_HIGH |GPIO_OPEN_DRAIN ), }, };
@@ -179,11 +183,16 @@ static struct resource dm355evm_dm9000_rsrc[] = { }, }; +static struct dm9000_plat_data dm335evm_dm9000_platdata; +static struct platform_device dm355evm_dm9000 = { .name ="dm9000" , .id =-1 , .resource = dm355evm_dm9000_rsrc, .num_resources =ARRAY_SIZE (dm355evm_dm9000_rsrc), + .dev = { + .platform_data = &dm335evm_dm9000_platdata, + }, };static struct tvp514x_platform_data tvp5146_pdata = {
arch/arm/mach-davinci/board-dm644x-evm.c +7 -3
@@ -17,6 +17,7 @@#include <linux/i2c.h> #include <linux/platform_data/pcf857x.h> #include <linux/platform_data/at24.h> +#include <linux/platform_data/gpio-davinci.h> #include <linux/mtd/mtd.h> #include <linux/mtd/rawnand.h> #include <linux/mtd/partitions.h>
@@ -596,12 +597,15 @@ static struct i2c_board_info __initdata i2c_info[] = { }, }; +#define DM644X_I2C_SDA_PIN GPIO_TO_PIN(2, 12) +#define DM644X_I2C_SCL_PIN GPIO_TO_PIN(2, 11) +static struct gpiod_lookup_table i2c_recovery_gpiod_table = { - .dev_id ="i2c_davinci" , + .dev_id ="i2c_davinci.1" , .table = { -GPIO_LOOKUP ("davinci_gpio" ,44 ,"sda" , +GPIO_LOOKUP ("davinci_gpio.0" ,DM644X_I2C_SDA_PIN ,"sda" ,GPIO_ACTIVE_HIGH |GPIO_OPEN_DRAIN ), -GPIO_LOOKUP ("davinci_gpio" ,43 ,"scl" , +GPIO_LOOKUP ("davinci_gpio.0" ,DM644X_I2C_SCL_PIN ,"scl" ,GPIO_ACTIVE_HIGH |GPIO_OPEN_DRAIN ), }, };
arch/arm/mach-davinci/board-dm646x-evm.c +4 -1
@@ -534,11 +534,12 @@ static struct vpif_display_config dm646x_vpif_display_config = { .set_clock = set_vpif_clock, .subdevinfo = dm646x_vpif_subdev, .subdev_count = ARRAY_SIZE(dm646x_vpif_subdev), + .i2c_adapter_id = 1, .chan_config[0] = { .outputs = dm6467_ch0_outputs, .output_count = ARRAY_SIZE(dm6467_ch0_outputs), }, - .card_name = "DM646x EVM", + .card_name = "DM646x EVM Video Display", };/**
@@ -676,6 +677,7 @@ static struct vpif_capture_config dm646x_vpif_capture_cfg = { .setup_input_channel_mode = setup_vpif_input_channel_mode, .subdev_info = vpif_capture_sdev_info, .subdev_count = ARRAY_SIZE(vpif_capture_sdev_info), + .i2c_adapter_id = 1, .chan_config[0] = { .inputs = dm6467_ch0_inputs, .input_count = ARRAY_SIZE(dm6467_ch0_inputs),
@@ -696,6 +698,7 @@ static struct vpif_capture_config dm646x_vpif_capture_cfg = { .fid_pol = 0, }, }, + .card_name = "DM646x EVM Video Capture", };static void __init evm_init_video (void )
arch/arm/mach-davinci/board-omapl138-hawk.c +7 -3
@@ -123,12 +123,16 @@ static const short hawk_mmcsd0_pins[] = { -1 }; +#define DA850_HAWK_MMCSD_CD_PIN GPIO_TO_PIN(3, 12) +#define DA850_HAWK_MMCSD_WP_PIN GPIO_TO_PIN(3, 13) +static struct gpiod_lookup_table mmc_gpios_table = { .dev_id ="da830-mmc.0" , .table = { -/* CD: gpio3_12: gpio60: chip 1 contains gpio range 32-63*/ -GPIO_LOOKUP ("davinci_gpio.0" ,28 ,"cd" ,GPIO_ACTIVE_LOW ), -GPIO_LOOKUP ("davinci_gpio.0" ,29 ,"wp" ,GPIO_ACTIVE_LOW ), +GPIO_LOOKUP ("davinci_gpio.0" ,DA850_HAWK_MMCSD_CD_PIN ,"cd" , +GPIO_ACTIVE_LOW ), +GPIO_LOOKUP ("davinci_gpio.0" ,DA850_HAWK_MMCSD_WP_PIN ,"wp" , +GPIO_ACTIVE_LOW ), }, };
arch/arm/mach-davinci/dm646x.c +2 -1
@@ -495,7 +495,8 @@ static u8 dm646x_default_priorities[DAVINCI_N_AINTC_IRQ] = { [IRQ_DM646X_MCASP0TXINT] = 7, [IRQ_DM646X_MCASP0RXINT] = 7, [IRQ_DM646X_RESERVED_3] = 7, - [IRQ_DM646X_MCASP1TXINT] = 7, /* clockevent */ + [IRQ_DM646X_MCASP1TXINT] = 7, + [IRQ_TINT0_TINT12] = 7, /* clockevent */ [IRQ_TINT0_TINT34] = 7, /* clocksource */ [IRQ_TINT1_TINT12] = 7, /* DSP timer */ [IRQ_TINT1_TINT34] = 7, /* system tick */
arch/arm/mach-keystone/pm_domain.c +1 -0
@@ -29,6 +29,7 @@ static struct dev_pm_domain keystone_pm_domain = {static struct pm_clk_notifier_block platform_domain_notifier = { .pm_domain = &keystone_pm_domain, + .con_ids = {NULL }, };static const struct of_device_id of_keystone_table[] = {
arch/arm/mach-omap1/ams-delta-fiq.c +15 -13
@@ -58,22 +58,24 @@ static irqreturn_t deferred_fiq(int irq, void *dev_id) irq_num =gpio_to_irq (gpio); fiq_count = fiq_buffer[FIQ_CNT_INT_00 + gpio]; -while (irq_counter[gpio] < fiq_count) { -if (gpio !=AMS_DELTA_GPIO_PIN_KEYBRD_CLK ) { -struct irq_data *d =irq_get_irq_data (irq_num); - -/* -* It looks like handle_edge_irq() that -* OMAP GPIO edge interrupts default to, -* expects interrupt already unmasked. -*/ -if (irq_chip && irq_chip->irq_unmask) +if (irq_counter[gpio] < fiq_count && + gpio !=AMS_DELTA_GPIO_PIN_KEYBRD_CLK ) { +struct irq_data *d =irq_get_irq_data (irq_num); + +/* +* handle_simple_irq() that OMAP GPIO edge +* interrupts default to since commit 80ac93c27441 +* requires interrupt already acked and unmasked. +*/ +if (irq_chip) { +if (irq_chip->irq_ack) + irq_chip->irq_ack (d); +if (irq_chip->irq_unmask) irq_chip->irq_unmask (d); } -generic_handle_irq (irq_num); - - irq_counter[gpio]++; } +for (; irq_counter[gpio] < fiq_count; irq_counter[gpio]++) +generic_handle_irq (irq_num); }return IRQ_HANDLED ; }
arch/arm/mach-omap2/powerdomain.c +2 -2
@@ -188,7 +188,7 @@ static int _pwrdm_state_switch(struct powerdomain *pwrdm, int flag) ((prev & OMAP_POWERSTATE_MASK) << 0));trace_power_domain_target_rcuidle (pwrdm->name, trace_state, -smp_processor_id ()); +raw_smp_processor_id ()); }break ;default :
@@ -518,7 +518,7 @@ int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst)if (arch_pwrdm && arch_pwrdm->pwrdm_set_next_pwrst) {/* Trace the pwrdm desired target state */ trace_power_domain_target_rcuidle (pwrdm->name, pwrst, -smp_processor_id ()); +raw_smp_processor_id ());/* Program the pwrdm desired target state */ ret = arch_pwrdm->pwrdm_set_next_pwrst (pwrdm, pwrst); }
arch/arm/vfp/vfpmodule.c +1 -1
@@ -257,7 +257,7 @@ static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_if (exceptions ==VFP_EXCEPTION_ERROR ) {vfp_panic ("unhandled bounce" , inst); -vfp_raise_sigfpe (FPE_FIXME , regs); +vfp_raise_sigfpe (FPE_FLTINV , regs);return ; }
arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi +4 -0
@@ -248,3 +248,7 @@ pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; + +&usb0 { + status = "okay"; +};
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +12 -0
@@ -271,3 +271,15 @@ pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; + +&usb0 { + status = "okay"; +}; + +&usb2_phy0 { + /* + * even though the schematics don't show it: + * HDMI_5V is also used as supply for the USB VBUS. + */ + phy-supply = <&hdmi_5v>; +};
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-nexbox-a95x.dts +4 -0
@@ -251,3 +251,7 @@ pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; + +&usb0 { + status = "okay"; +};
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi +4 -0
@@ -185,3 +185,7 @@ pinctrl-0 = <&uart_ao_a_pins>; pinctrl-names = "default"; }; + +&usb0 { + status = "okay"; +};
arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +61 -0
67 lines not on this page · raw message
arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +4 -0
@@ -413,3 +413,7 @@ status = "okay"; vref-supply = <&vddio_ao18>; }; + +&usb0 { + status = "okay"; +};
arch/arm64/boot/dts/amlogic/meson-gxm.dtsi +17 -0
@@ -117,6 +117,19 @@ }; }; +&apb { + usb2_phy2: phy@78040 { + compatible = "amlogic,meson-gxl-usb2-phy"; + #phy-cells = <0>; + reg = <0x0 0x78040 0x0 0x20>; + clocks = <&clkc CLKID_USB>; + clock-names = "phy"; + resets = <&reset RESET_USB_OTG>; + reset-names = "phy"; + status = "okay"; + }; +}; + &clkc_AO { compatible = "amlogic,meson-gxm-aoclkc", "amlogic,meson-gx-aoclkc"; };
@@ -137,3 +150,7 @@ &hdmi_tx { compatible = "amlogic,meson-gxm-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; }; + +&dwc3 { + phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>; +};
arch/arm64/boot/dts/broadcom/stingray/stingray-sata.dtsi +40 -40
200 lines not on this page · raw message
arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi +1 -1
@@ -46,7 +46,7 @@ compatible = "ethernet-phy-ieee802.3-c22"; reg = <0x0>; interrupt-parent = <&gpio>; - interrupts = <TEGRA_MAIN_GPIO(M, 5) IRQ_TYPE_LEVEL_HIGH>; + interrupts = <TEGRA_MAIN_GPIO(M, 5) IRQ_TYPE_LEVEL_LOW>; }; }; };
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +1 -1
@@ -330,7 +330,7 @@ mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-pwrseq = <&emmc_pwrseq>; - cdns,phy-input-delay-legacy = <4>; + cdns,phy-input-delay-legacy = <9>; cdns,phy-input-delay-mmc-highspeed = <2>; cdns,phy-input-delay-mmc-ddr = <3>; cdns,phy-dll-delay-sdclk = <21>;
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +1 -1
@@ -435,7 +435,7 @@ mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-pwrseq = <&emmc_pwrseq>; - cdns,phy-input-delay-legacy = <4>; + cdns,phy-input-delay-legacy = <9>; cdns,phy-input-delay-mmc-highspeed = <2>; cdns,phy-input-delay-mmc-ddr = <3>; cdns,phy-dll-delay-sdclk = <21>;
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +1 -1
@@ -336,7 +336,7 @@ mmc-ddr-1_8v; mmc-hs200-1_8v; mmc-pwrseq = <&emmc_pwrseq>; - cdns,phy-input-delay-legacy = <4>; + cdns,phy-input-delay-legacy = <9>; cdns,phy-input-delay-mmc-highspeed = <2>; cdns,phy-input-delay-mmc-ddr = <3>; cdns,phy-dll-delay-sdclk = <21>;
arch/arm64/include/asm/cputype.h +6 -0
@@ -75,6 +75,7 @@#define ARM_CPU_IMP_CAVIUM 0x43#define ARM_CPU_IMP_BRCM 0x42#define ARM_CPU_IMP_QCOM 0x51 +#define ARM_CPU_IMP_NVIDIA 0x4E#define ARM_CPU_PART_AEM_V8 0xD0F#define ARM_CPU_PART_FOUNDATION 0xD00
@@ -98,6 +99,9 @@#define QCOM_CPU_PART_FALKOR 0xC00#define QCOM_CPU_PART_KRYO 0x200 +#define NVIDIA_CPU_PART_DENVER 0x003 +#define NVIDIA_CPU_PART_CARMEL 0x004 +#define MIDR_CORTEX_A53 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A53)#define MIDR_CORTEX_A57 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A57)#define MIDR_CORTEX_A72 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A72)
@@ -112,6 +116,8 @@#define MIDR_QCOM_FALKOR_V1 MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_FALKOR_V1)#define MIDR_QCOM_FALKOR MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_FALKOR)#define MIDR_QCOM_KRYO MIDR_CPU_MODEL(ARM_CPU_IMP_QCOM, QCOM_CPU_PART_KRYO) +#define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER) +#define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL)#ifndef __ASSEMBLY__
arch/arm64/kernel/ptrace.c +10 -10
@@ -25,6 +25,7 @@#include <linux/sched/signal.h> #include <linux/sched/task_stack.h> #include <linux/mm.h> +#include <linux/nospec.h> #include <linux/smp.h> #include <linux/ptrace.h> #include <linux/user.h>
@@ -249,15 +250,20 @@ static struct perf_event *ptrace_hbp_get_event(unsigned int note_type,switch (note_type) {case NT_ARM_HW_BREAK : -if (idx <ARM_MAX_BRP ) - bp = tsk->thread.debug.hbp_break[idx]; +if (idx >=ARM_MAX_BRP ) + goto out; + idx =array_index_nospec (idx,ARM_MAX_BRP ); + bp = tsk->thread.debug.hbp_break[idx];break ;case NT_ARM_HW_WATCH : -if (idx <ARM_MAX_WRP ) - bp = tsk->thread.debug.hbp_watch[idx]; +if (idx >=ARM_MAX_WRP ) + goto out; + idx =array_index_nospec (idx,ARM_MAX_WRP ); + bp = tsk->thread.debug.hbp_watch[idx];break ; } +out:return bp; }
@@ -1458,9 +1464,7 @@ static int compat_ptrace_gethbpregs(struct task_struct *tsk, compat_long_t num, {int ret;u32 kdata; -mm_segment_t old_fs =get_fs (); -set_fs (KERNEL_DS );/* Watchpoint */ if (num <0 ) { ret =compat_ptrace_hbp_get (NT_ARM_HW_WATCH , tsk, num, &kdata);
@@ -1471,7 +1475,6 @@ static int compat_ptrace_gethbpregs(struct task_struct *tsk, compat_long_t num, }else { ret =compat_ptrace_hbp_get (NT_ARM_HW_BREAK , tsk, num, &kdata); } -set_fs (old_fs);if (!ret) ret =put_user (kdata, data);
@@ -1484,7 +1487,6 @@ static int compat_ptrace_sethbpregs(struct task_struct *tsk, compat_long_t num, {int ret;u32 kdata =0 ; -mm_segment_t old_fs =get_fs ();if (num ==0 )return 0 ;
@@ -1493,12 +1495,10 @@ static int compat_ptrace_sethbpregs(struct task_struct *tsk, compat_long_t num,if (ret)return ret; -set_fs (KERNEL_DS );if (num <0 ) ret =compat_ptrace_hbp_set (NT_ARM_HW_WATCH , tsk, num, &kdata);else ret =compat_ptrace_hbp_set (NT_ARM_HW_BREAK , tsk, num, &kdata); -set_fs (old_fs);return ret; }
arch/arm64/kernel/traps.c +2 -1
@@ -243,7 +243,8 @@ void arm64_skip_faulting_instruction(struct pt_regs *regs, unsigned long size)* If we were single stepping, we want to get the step exception after * we return from the trap. */ -user_fastforward_single_step (current); +if (user_mode (regs)) +user_fastforward_single_step (current); }static LIST_HEAD (undef_hook);
arch/arm64/mm/kasan_init.c +2 -2
@@ -204,7 +204,7 @@ void __init kasan_init(void)clear_pgds (KASAN_SHADOW_START ,KASAN_SHADOW_END );kasan_map_populate (kimg_shadow_start, kimg_shadow_end, -pfn_to_nid (virt_to_pfn (lm_alias (_text)))); +early_pfn_to_nid (virt_to_pfn (lm_alias (_text))));kasan_populate_zero_shadow ((void *)KASAN_SHADOW_START , (void *)mod_shadow_start);
@@ -224,7 +224,7 @@ void __init kasan_init(void)kasan_map_populate ((unsigned long )kasan_mem_to_shadow (start), (unsigned long )kasan_mem_to_shadow (end), -pfn_to_nid (virt_to_pfn (start))); +early_pfn_to_nid (virt_to_pfn (start))); }/*
arch/hexagon/include/asm/io.h +6 -0
@@ -216,6 +216,12 @@ static inline void memcpy_toio(volatile void __iomem *dst, const void *src,memcpy ((void *) dst, src, count); } +static inline void memset_io (volatile void __iomem *addr,int value, +size_t size) +{ +memset ((void __force *)addr, value, size); +} +#define PCI_IO_ADDR (volatile void __iomem *)/*
arch/hexagon/lib/checksum.c +1 -0
@@ -199,3 +199,4 @@ csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)memcpy (dst, src, len);return csum_partial (dst, len, sum); } +EXPORT_SYMBOL (csum_partial_copy_nocheck);
arch/mips/boot/dts/img/boston.dts +6 -0
@@ -51,6 +51,8 @@ ranges = <0x02000000 0 0x40000000 0x40000000 0 0x40000000>; + bus-range = <0x00 0xff>; + interrupt-map-mask = <0 0 0 7>; interrupt-map = <0 0 0 1 &pci0_intc 1>, <0 0 0 2 &pci0_intc 2>,
@@ -79,6 +81,8 @@ ranges = <0x02000000 0 0x20000000 0x20000000 0 0x20000000>; + bus-range = <0x00 0xff>; + interrupt-map-mask = <0 0 0 7>; interrupt-map = <0 0 0 1 &pci1_intc 1>, <0 0 0 2 &pci1_intc 2>,
@@ -107,6 +111,8 @@ ranges = <0x02000000 0 0x16000000 0x16000000 0 0x100000>; + bus-range = <0x00 0xff>; + interrupt-map-mask = <0 0 0 7>; interrupt-map = <0 0 0 1 &pci2_intc 1>, <0 0 0 2 &pci2_intc 2>,
arch/mips/include/asm/io.h +3 -1
@@ -307,7 +307,7 @@ static inline void iounmap(const volatile void __iomem *addr)#if defined(CONFIG_CPU_CAVIUM_OCTEON ) || defined(CONFIG_LOONGSON3_ENHANCEMENT )#define war_io_reorder_wmb () wmb()#else -#define war_io_reorder_wmb () do { } while (0) +#define war_io_reorder_wmb () barrier()#endif #define __BUILD_MEMORY_SINGLE (pfx, bwlq, type, irq) \
@@ -377,6 +377,8 @@ static inline type pfx##read##bwlq(const volatile void __iomem *mem) \BUG (); \ } \ \ +/* prevent prefetching of coherent DMA data prematurely */ \ +rmb (); \ return pfx##ioswab##bwlq(__mem, __val); \ }
arch/parisc/kernel/drivers.c +4 -3
@@ -448,7 +448,8 @@ static int match_by_id(struct device * dev, void * data)* Checks all the children of @parent for a matching @id. If none * found, it allocates a new device and returns it. */ -static struct parisc_device *alloc_tree_node (struct device *parent,char id) +static struct parisc_device *__init alloc_tree_node ( +struct device *parent,char id) {struct match_id_data d = { .id = id,
@@ -825,8 +826,8 @@ void walk_lower_bus(struct parisc_device *dev)* devices which are not physically connected (such as extra serial & * keyboard ports). This problem is not yet solved. */ -static void walk_native_bus (unsigned long io_io_low,unsigned long io_io_high, -struct device *parent) +static void __init walk_native_bus (unsigned long io_io_low, +unsigned long io_io_high,struct device *parent) {int i, devices_found =0 ;unsigned long hpa = io_io_low;
arch/parisc/kernel/smp.c +1 -2
@@ -423,8 +423,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *tidle) }#ifdef CONFIG_PROC_FS -int __init -setup_profiling_timer (unsigned int multiplier) +int setup_profiling_timer (unsigned int multiplier) {return -EINVAL ; }
arch/parisc/kernel/time.c +1 -1
@@ -205,7 +205,7 @@ static int __init rtc_init(void)device_initcall (rtc_init);#endif -void read_persistent_clock (struct timespec *ts) +void read_persistent_clock64 (struct timespec64 *ts) {static struct pdc_tod tod_data;if (pdc_tod_read (&tod_data) ==0 ) {
arch/powerpc/include/asm/topology.h +5 -8
@@ -91,6 +91,7 @@ extern int start_topology_update(void);extern int stop_topology_update (void );extern int prrn_is_enabled (void );extern int find_and_online_cpu_nid (int cpu); +extern int timed_topology_update (int nsecs);#else static inline int start_topology_update (void ) {
@@ -108,16 +109,12 @@ static inline int find_and_online_cpu_nid(int cpu) {return 0 ; } +static inline int timed_topology_update (int nsecs) +{ +return 0 ; +}#endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */ -#if defined(CONFIG_HOTPLUG_CPU ) || defined(CONFIG_NEED_MULTIPLE_NODES ) -#if defined(CONFIG_PPC_SPLPAR ) -extern int timed_topology_update (int nsecs); -#else -#define timed_topology_update (nsecs) -#endif /* CONFIG_PPC_SPLPAR */ -#endif /* CONFIG_HOTPLUG_CPU || CONFIG_NEED_MULTIPLE_NODES */ -#include <asm-generic/topology.h> #ifdef CONFIG_SMP
arch/powerpc/kernel/setup_64.c +11 -0
@@ -864,6 +864,17 @@ static void init_fallback_flush(void)int cpu; l1d_size = ppc64_caches.l1d.size; + +/* +* If there is no d-cache-size property in the device tree, l1d_size +* could be zero. That leads to the loop in the asm wrapping around to +* 2^64-1, and then walking off the end of the fallback area and +* eventually causing a page fault which is fatal. Just default to +* something vaguely sane. +*/ +if (!l1d_size) + l1d_size = (64 *1024 ); + limit =min (ppc64_bolted_size (), ppc64_rma_size);/*
arch/powerpc/kvm/booke.c +7 -0
@@ -305,6 +305,13 @@ void kvmppc_core_queue_fpunavail(struct kvm_vcpu *vcpu)kvmppc_booke_queue_irqprio (vcpu,BOOKE_IRQPRIO_FP_UNAVAIL ); } +#ifdef CONFIG_ALTIVEC +void kvmppc_core_queue_vec_unavail (struct kvm_vcpu *vcpu) +{ +kvmppc_booke_queue_irqprio (vcpu,BOOKE_IRQPRIO_ALTIVEC_UNAVAIL ); +} +#endif +void kvmppc_core_queue_dec (struct kvm_vcpu *vcpu) {kvmppc_booke_queue_irqprio (vcpu,BOOKE_IRQPRIO_DECREMENTER );
arch/powerpc/platforms/cell/spufs/sched.c +1 -1
@@ -1093,7 +1093,7 @@ static int show_spu_loadavg(struct seq_file *s, void *private)LOAD_INT (c),LOAD_FRAC (c),count_active_contexts (),atomic_read (&nr_spu_contexts), - idr_get_cursor(&task_active_pid_ns(current)->idr)); + idr_get_cursor(&task_active_pid_ns(current)->idr) - 1);return 0 ; }
arch/powerpc/platforms/powernv/memtrace.c +0 -17
@@ -82,19 +82,6 @@ static const struct file_operations memtrace_fops = { .open = simple_open, }; -static void flush_memory_region (u64 base,u64 size) -{ -unsigned long line_size = ppc64_caches.l1d.size; -u64 end = base + size; -u64 addr; - - base =round_down (base, line_size); - end =round_up (end, line_size); - -for (addr = base; addr < end; addr += line_size) - asmvolatile ("dcbf 0,%0" :"=r" (addr) ::"memory" ); -} -static int check_memblock_online (struct memory_block *mem,void *arg) {if (mem->state !=MEM_ONLINE )
@@ -132,10 +119,6 @@ static bool memtrace_offline_pages(u32 nid, u64 start_pfn, u64 nr_pages)walk_memory_range (start_pfn, end_pfn, (void *)MEM_OFFLINE , change_memblock_state); -/* RCU grace period? */ -flush_memory_region ((u64 )__va (start_pfn <<PAGE_SHIFT ), - nr_pages <<PAGE_SHIFT ); -lock_device_hotplug ();remove_memory (nid, start_pfn <<PAGE_SHIFT , nr_pages <<PAGE_SHIFT );unlock_device_hotplug ();
arch/riscv/Kconfig +1 -3
@@ -11,6 +11,7 @@ config RISCV select ARCH_WANT_FRAME_POINTERS select CLONE_BACKWARDS select COMMON_CLK + select DMA_DIRECT_OPS select GENERIC_CLOCKEVENTS select GENERIC_CPU_DEVICES select GENERIC_IRQ_SHOW
@@ -88,9 +89,6 @@ config PGTABLE_LEVELS config HAVE_KPROBES def_bool n -config DMA_DIRECT_OPS - def_bool y - menu "Platform type" choice
arch/riscv/kernel/vdso/Makefile +1 -1
@@ -52,7 +52,7 @@ $(obj)/%.so: $(obj)/%.so.dbg FORCE # Add -lgcc so rv32 gets static muldi3 and lshrdi3 definitions. # Make sure only to export the intended __vdso_xxx symbol offsets. quiet_cmd_vdsold = VDSOLD $@ - cmd_vdsold = $(CC) $(KCFLAGS) -nostdlib $(SYSCFLAGS_$(@F)) \ + cmd_vdsold = $(CC) $(KCFLAGS) $(call cc-option, -no-pie) -nostdlib $(SYSCFLAGS_$(@F)) \ -Wl,-T,$(filter-out FORCE,$^) -o [email protected] -lgcc && \ $(CROSS_COMPILE)objcopy \ $(patsubst %, -G __vdso_%, $(vdso-syms)) [email protected] $@
arch/sh/Kconfig +1 -0
@@ -9,6 +9,7 @@ config SUPERH select HAVE_IDE if HAS_IOPORT_MAP select HAVE_MEMBLOCK select HAVE_MEMBLOCK_NODE_MAP + select NO_BOOTMEM select ARCH_DISCARD_MEMBLOCK select HAVE_OPROFILE select HAVE_GENERIC_DMA_COHERENT
arch/sh/kernel/cpu/sh2/probe.c +4 -0
@@ -43,7 +43,11 @@ void __ref cpu_probe(void)#endif #if defined(CONFIG_CPU_J2 ) +#if defined(CONFIG_SMP )unsigned cpu =hard_smp_processor_id (); +#else +unsigned cpu =0 ; +#endif if (cpu ==0 )of_scan_flat_dt (scan_cache,NULL );if (j2_ccr_base)__raw_writel (0x80000303 , j2_ccr_base +4 *cpu);if (cpu !=0 )return ;
arch/sh/kernel/setup.c +0 -1
@@ -11,7 +11,6 @@#include <linux/ioport.h> #include <linux/init.h> #include <linux/initrd.h> -#include <linux/bootmem.h> #include <linux/console.h> #include <linux/root_dev.h> #include <linux/utsname.h>
arch/sh/mm/init.c +6 -62
102 lines not on this page · raw message
arch/sh/mm/numa.c +0 -19
@@ -8,7 +8,6 @@* for more details. */ #include <linux/module.h> -#include <linux/bootmem.h> #include <linux/memblock.h> #include <linux/mm.h> #include <linux/numa.h>
@@ -26,9 +25,7 @@ EXPORT_SYMBOL_GPL(node_data);*/ void __init setup_bootmem_node (int nid,unsigned long start,unsigned long end) { -unsigned long bootmap_pages;unsigned long start_pfn, end_pfn; -unsigned long bootmem_paddr;/* Don't allow bogus node assignment */ BUG_ON (nid >=MAX_NUMNODES || nid <=0 );
@@ -48,25 +45,9 @@ void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end) SMP_CACHE_BYTES, end));memset (NODE_DATA (nid),0 ,sizeof (struct pglist_data )); -NODE_DATA (nid)->bdata = &bootmem_node_data[nid];NODE_DATA (nid)->node_start_pfn = start_pfn;NODE_DATA (nid)->node_spanned_pages = end_pfn - start_pfn; -/* Node-local bootmap */ - bootmap_pages =bootmem_bootmap_pages (end_pfn - start_pfn); - bootmem_paddr =memblock_alloc_base (bootmap_pages <<PAGE_SHIFT , -PAGE_SIZE , end); -init_bootmem_node (NODE_DATA (nid), bootmem_paddr >>PAGE_SHIFT , - start_pfn, end_pfn); - -free_bootmem_with_active_regions (nid, end_pfn); - -/* Reserve the pgdat and bootmap space with the bootmem allocator */ -reserve_bootmem_node (NODE_DATA (nid), start_pfn <<PAGE_SHIFT , -sizeof (struct pglist_data ),BOOTMEM_DEFAULT ); -reserve_bootmem_node (NODE_DATA (nid), bootmem_paddr, - bootmap_pages <<PAGE_SHIFT ,BOOTMEM_DEFAULT ); -/* It's up */ node_set_online (nid);
arch/x86/events/intel/core.c +6 -3
@@ -3331,7 +3331,8 @@ static void intel_pmu_cpu_starting(int cpu) cpuc->lbr_sel =NULL ; -flip_smm_bit (&x86_pmu.attr_freeze_on_smi); +if (x86_pmu.version >1 ) +flip_smm_bit (&x86_pmu.attr_freeze_on_smi);if (!cpuc->shared_regs)return ;
@@ -3494,6 +3495,8 @@ static __initconst const struct x86_pmu core_pmu = { .cpu_dying = intel_pmu_cpu_dying, }; +static struct attribute *intel_pmu_attrs[]; +static __initconst const struct x86_pmu intel_pmu = { .name ="Intel" , .handle_irq = intel_pmu_handle_irq,
@@ -3524,6 +3527,8 @@ static __initconst const struct x86_pmu intel_pmu = { .format_attrs = intel_arch3_formats_attr, .events_sysfs_show = intel_event_sysfs_show, + .attrs = intel_pmu_attrs, + .cpu_prepare = intel_pmu_cpu_prepare, .cpu_starting = intel_pmu_cpu_starting, .cpu_dying = intel_pmu_cpu_dying,
@@ -3902,8 +3907,6 @@ __init int intel_pmu_init(void) x86_pmu.max_pebs_events =min_t (unsigned,MAX_PEBS_EVENTS , x86_pmu.num_counters); - - x86_pmu.attrs = intel_pmu_attrs;/* * Quirk: v2 perfmon does not report fixed-purpose events, so * assume at least 3 events, when not running in a hypervisor:
arch/x86/include/asm/insn.h +18 -0
@@ -208,4 +208,22 @@ static inline int insn_offset_immediate(struct insn *insn) return insn_offset_displacement(insn) + insn->displacement.nbytes; } +#define POP_SS_OPCODE 0x1f +#define MOV_SREG_OPCODE 0x8e + +/* +* Intel SDM Vol.3A 6.8.3 states; +* "Any single-step trap that would be delivered following the MOV to SS +* instruction or POP to SS instruction (because EFLAGS.TF is 1) is +* suppressed." +* This function returns true if @insn is MOV SS or POP SS. On these +* instructions, single stepping is suppressed. +*/ +static inline int insn_masking_exception (struct insn *insn) +{ +return insn->opcode.bytes[0 ] ==POP_SS_OPCODE || + (insn->opcode.bytes[0 ] ==MOV_SREG_OPCODE && +X86_MODRM_REG (insn->modrm.bytes[0 ]) ==2 ); +} +#endif /* _ASM_X86_INSN_H */
arch/x86/include/asm/kvm_host.h +1 -0
@@ -1019,6 +1019,7 @@ struct kvm_x86_ops {bool (*has_wbinvd_exit)(void ); +u64 (*read_l1_tsc_offset)(struct kvm_vcpu *vcpu);void (*write_tsc_offset)(struct kvm_vcpu *vcpu,u64 offset);void (*get_exit_info)(struct kvm_vcpu *vcpu,u64 *info1,u64 *info2);
arch/x86/kernel/cpu/intel.c +3 -0
@@ -751,6 +751,9 @@ static const struct _tlb_table intel_tlb_table[] = { { 0x5d, TLB_DATA_4K_4M, 256, " TLB_DATA 4 KByte and 4 MByte pages" }, { 0x61, TLB_INST_4K, 48, " TLB_INST 4 KByte pages, full associative" }, { 0x63, TLB_DATA_1G, 4, " TLB_DATA 1 GByte pages, 4-way set associative" }, + { 0x6b, TLB_DATA_4K, 256, " TLB_DATA 4 KByte pages, 8-way associative" }, + { 0x6c, TLB_DATA_2M_4M, 128, " TLB_DATA 2 MByte or 4 MByte pages, 8-way associative" }, + { 0x6d, TLB_DATA_1G, 16, " TLB_DATA 1 GByte pages, fully associative" }, { 0x76, TLB_INST_2M_4M, 8, " TLB_INST 2-MByte or 4-MByte pages, fully associative" }, { 0xb0, TLB_INST_4K, 128, " TLB_INST 4 KByte pages, 4-way set associative" }, { 0xb1, TLB_INST_2M_4M, 4, " TLB_INST 2M pages, 4-way, 8 entries or 4M pages, 4-way entries" },
arch/x86/kernel/kexec-bzimage64.c +2 -3
@@ -398,11 +398,10 @@ static void *bzImage64_load(struct kimage *image, char *kernel,* little bit simple */ efi_map_sz =efi_get_runtime_map_size (); - efi_map_sz =ALIGN (efi_map_sz,16 ); params_cmdline_sz =sizeof (struct boot_params ) + cmdline_len +MAX_ELFCOREHDR_STR_LEN ; params_cmdline_sz =ALIGN (params_cmdline_sz,16 ); - kbuf.bufsz = params_cmdline_sz + efi_map_sz + + kbuf.bufsz = params_cmdline_sz +ALIGN (efi_map_sz,16 ) +sizeof (struct setup_data ) +sizeof (struct efi_setup_data );
@@ -410,7 +409,7 @@ static void *bzImage64_load(struct kimage *image, char *kernel,if (!params)return ERR_PTR (-ENOMEM ); efi_map_offset = params_cmdline_sz; - efi_setup_data_offset = efi_map_offset + efi_map_sz; + efi_setup_data_offset = efi_map_offset +ALIGN (efi_map_sz,16 );/* Copy setup header onto bootparams. Documentation/x86/boot.txt */ setup_header_size =0x0202 + kernel[0x0201 ] - setup_hdr_offset;
arch/x86/kernel/kprobes/core.c +4 -0
@@ -370,6 +370,10 @@ int __copy_instruction(u8 *dest, u8 *src, u8 *real, struct insn *insn)if (insn->opcode.bytes[0 ] ==BREAKPOINT_INSTRUCTION )return 0 ; +/* We should not singlestep on the exception masking instructions */ +if (insn_masking_exception (insn)) +return 0 ; +#ifdef CONFIG_X86_64 /* Only x86_64 has RIP relative instructions */ if (insn_rip_relative (insn)) {
arch/x86/kernel/uprobes.c +4 -0
@@ -299,6 +299,10 @@ static int uprobe_init_insn(struct arch_uprobe *auprobe, struct insn *insn, boolif (is_prefix_bad (insn))return -ENOTSUPP ; +/* We should not singlestep on the exception masking instructions */ +if (insn_masking_exception (insn)) +return -ENOTSUPP ; +if (x86_64) good_insns = good_insns_64;else
arch/x86/kvm/hyperv.c +1 -1
@@ -1223,7 +1223,7 @@ static int kvm_hv_hypercall_complete_userspace(struct kvm_vcpu *vcpu)struct kvm_run *run = vcpu->run;kvm_hv_hypercall_set_result (vcpu, run->hyperv.u.hcall.result); -return 1 ; +return kvm_skip_emulated_instruction (vcpu); }int kvm_hv_hypercall (struct kvm_vcpu *vcpu)
arch/x86/kvm/svm.c +18 -13
@@ -1313,12 +1313,23 @@ static void init_sys_seg(struct vmcb_seg *seg, uint32_t type) seg->base =0 ; } +static u64 svm_read_l1_tsc_offset (struct kvm_vcpu *vcpu) +{ +struct vcpu_svm *svm =to_svm (vcpu); + +if (is_guest_mode (vcpu)) +return svm->nested.hsave->control.tsc_offset; + +return vcpu->arch.tsc_offset; +} +static void svm_write_tsc_offset (struct kvm_vcpu *vcpu,u64 offset) {struct vcpu_svm *svm =to_svm (vcpu);u64 g_tsc_offset =0 ;if (is_guest_mode (vcpu)) { +/* Write L1's TSC offset. */ g_tsc_offset = svm->vmcb->control.tsc_offset - svm->nested.hsave->control.tsc_offset; svm->nested.hsave->control.tsc_offset = offset;
@@ -3188,6 +3199,7 @@ static int nested_svm_vmexit(struct vcpu_svm *svm)/* Restore the original control entries */ copy_vmcb_control_area (vmcb, hsave); + svm->vcpu.arch.tsc_offset = svm->vmcb->control.tsc_offset;kvm_clear_exception_queue (&svm->vcpu);kvm_clear_interrupt_queue (&svm->vcpu);
@@ -3348,10 +3360,12 @@ static void enter_svm_guest_mode(struct vcpu_svm *svm, u64 vmcb_gpa,/* We don't want to see VMMCALLs from a nested guest */ clr_intercept (svm,INTERCEPT_VMMCALL ); + svm->vcpu.arch.tsc_offset += nested_vmcb->control.tsc_offset; + svm->vmcb->control.tsc_offset = svm->vcpu.arch.tsc_offset; + svm->vmcb->control.virt_ext = nested_vmcb->control.virt_ext; svm->vmcb->control.int_vector = nested_vmcb->control.int_vector; svm->vmcb->control.int_state = nested_vmcb->control.int_state; - svm->vmcb->control.tsc_offset += nested_vmcb->control.tsc_offset; svm->vmcb->control.event_inj = nested_vmcb->control.event_inj; svm->vmcb->control.event_inj_err = nested_vmcb->control.event_inj_err;
@@ -3901,12 +3915,6 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr_info)struct vcpu_svm *svm =to_svm (vcpu);switch (msr_info->index) { -case MSR_IA32_TSC : { - msr_info->data = svm->vmcb->control.tsc_offset + -kvm_scale_tsc (vcpu,rdtsc ()); - -break ; - }case MSR_STAR : msr_info->data = svm->vmcb->save.star;break ;
@@ -4066,9 +4074,6 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) svm->vmcb->save.g_pat = data;mark_dirty (svm->vmcb,VMCB_NPT );break ; -case MSR_IA32_TSC : -kvm_write_tsc (vcpu, msr); -break ;case MSR_IA32_SPEC_CTRL :if (!msr->host_initiated && !guest_cpuid_has (vcpu,X86_FEATURE_AMD_IBRS ))
@@ -5142,9 +5147,8 @@ static int svm_update_pi_irte(struct kvm *kvm, unsigned int host_irq, }if (!ret && svm) { -trace_kvm_pi_irte_update (svm->vcpu.vcpu_id, - host_irq, e->gsi, - vcpu_info.vector, +trace_kvm_pi_irte_update (host_irq, svm->vcpu.vcpu_id, + e->gsi, vcpu_info.vector, vcpu_info.pi_desc_addr, set); }
@@ -6967,6 +6971,7 @@ static struct kvm_x86_ops svm_x86_ops __ro_after_init = { .has_wbinvd_exit = svm_has_wbinvd_exit, + .read_l1_tsc_offset = svm_read_l1_tsc_offset, .write_tsc_offset = svm_write_tsc_offset, .set_tdp_cr3 = set_tdp_cr3,
arch/x86/kvm/vmx.c +49 -46
205 lines not on this page · raw message
arch/x86/kvm/x86.c +22 -11
@@ -112,7 +112,7 @@ module_param(ignore_msrs, bool, S_IRUGO | S_IWUSR);static bool __read_mostly report_ignored_msrs = true;module_param (report_ignored_msrs, bool,S_IRUGO |S_IWUSR ); -unsigned int min_timer_period_us =500 ; +unsigned int min_timer_period_us =200 ;module_param (min_timer_period_us, uint,S_IRUGO |S_IWUSR );static bool __read_mostly kvmclock_periodic_sync = true;
@@ -1459,7 +1459,7 @@ static void kvm_track_tsc_matching(struct kvm_vcpu *vcpu)static void update_ia32_tsc_adjust_msr (struct kvm_vcpu *vcpu,s64 offset) { -u64 curr_offset = vcpu->arch.tsc_offset; +u64 curr_offset = kvm_x86_ops->read_l1_tsc_offset (vcpu); vcpu->arch.ia32_tsc_adjust_msr += offset - curr_offset; }
@@ -1501,7 +1501,9 @@ static u64 kvm_compute_tsc_offset(struct kvm_vcpu *vcpu, u64 target_tsc)u64 kvm_read_l1_tsc (struct kvm_vcpu *vcpu,u64 host_tsc) { -return vcpu->arch.tsc_offset +kvm_scale_tsc (vcpu, host_tsc); +u64 tsc_offset = kvm_x86_ops->read_l1_tsc_offset (vcpu); + +return tsc_offset +kvm_scale_tsc (vcpu, host_tsc); }EXPORT_SYMBOL_GPL (kvm_read_l1_tsc);
@@ -2331,6 +2333,9 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)return 1 ; vcpu->arch.smbase = data;break ; +case MSR_IA32_TSC : +kvm_write_tsc (vcpu, msr_info); +break ;case MSR_SMI_COUNT :if (!msr_info->host_initiated)return 1 ;
@@ -2570,6 +2575,9 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)case MSR_IA32_UCODE_REV : msr_info->data = vcpu->arch.microcode_version;break ; +case MSR_IA32_TSC : + msr_info->data =kvm_scale_tsc (vcpu,rdtsc ()) + vcpu->arch.tsc_offset; +break ;case MSR_MTRRcap: case 0x200 ... 0x2ff:return kvm_mtrr_get_msr (vcpu, msr_info->index, &msr_info->data);
@@ -6545,12 +6553,13 @@ void kvm_vcpu_deactivate_apicv(struct kvm_vcpu *vcpu)int kvm_emulate_hypercall (struct kvm_vcpu *vcpu) {unsigned long nr, a0, a1, a2, a3, ret; -int op_64_bit, r; - - r =kvm_skip_emulated_instruction (vcpu); +int op_64_bit; -if (kvm_hv_hypercall_enabled (vcpu->kvm)) -return kvm_hv_hypercall (vcpu); +if (kvm_hv_hypercall_enabled (vcpu->kvm)) { +if (!kvm_hv_hypercall (vcpu)) +return 0 ; + goto out; + } nr =kvm_register_read (vcpu,VCPU_REGS_RAX ); a0 =kvm_register_read (vcpu,VCPU_REGS_RBX );
@@ -6571,7 +6580,7 @@ int kvm_emulate_hypercall(struct kvm_vcpu *vcpu)if (kvm_x86_ops->get_cpl (vcpu) !=0 ) { ret = -KVM_EPERM ; - goto out; + goto out_error; }switch (nr) {
@@ -6591,12 +6600,14 @@ int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) ret = -KVM_ENOSYS ;break ; } -out: +out_error:if (!op_64_bit) ret = (u32 )ret;kvm_register_write (vcpu,VCPU_REGS_RAX , ret); + +out: ++vcpu->stat.hypercalls; -return r; +return kvm_skip_emulated_instruction (vcpu); }EXPORT_SYMBOL_GPL (kvm_emulate_hypercall);
arch/x86/net/bpf_jit_comp.c +14 -4
@@ -992,7 +992,17 @@ xadd: if (is_imm8(insn->off))break ;case BPF_JMP |BPF_JA : - jmp_offset = addrs[i + insn->off] - addrs[i]; +if (insn->off ==-1 ) +/* -1 jmp instructions will always jump +* backwards two bytes. Explicitly handling +* this case avoids wasting too many passes +* when there are long sequences of replaced +* dead code. +*/ + jmp_offset =-2 ; +else + jmp_offset = addrs[i + insn->off] - addrs[i]; +if (!jmp_offset)/* optimize out nop jumps */ break ;
@@ -1191,6 +1201,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)for (pass =0 ; pass <20 || image; pass++) { proglen =do_jit (prog, addrs, image, oldproglen, &ctx);if (proglen <=0 ) { +out_image: image =NULL ;if (header)bpf_jit_binary_free (header);
@@ -1201,8 +1212,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)if (proglen != oldproglen) {pr_err ("bpf_jit: proglen=%d != oldproglen=%d\n" , proglen, oldproglen); - prog = orig_prog; - goto out_addrs; + goto out_image; }break ; }
@@ -1239,7 +1249,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) prog = orig_prog; } -if (!prog->is_func || extra_pass) { +if (!image || !prog->is_func || extra_pass) { out_addrs:kfree (addrs);kfree (jit_data);
arch/x86/xen/enlighten_hvm.c +13 -0
@@ -65,6 +65,19 @@ static void __init xen_hvm_init_mem_mapping(void) {early_memunmap (HYPERVISOR_shared_info,PAGE_SIZE ); HYPERVISOR_shared_info =__va (PFN_PHYS (shared_info_pfn)); + +/* +* The virtual address of the shared_info page has changed, so +* the vcpu_info pointer for VCPU 0 is now stale. +* +* The prepare_boot_cpu callback will re-initialize it via +* xen_vcpu_setup, but we can't rely on that to be called for +* old Xen versions (xen_have_vector_callback == 0). +* +* It is, in any case, bad to have a stale vcpu_info pointer +* so reset it now. +*/ +xen_vcpu_info_reset (0 ); }static void __init init_hvm_pv_info (void )
block/blk-cgroup.c +11 -11
@@ -1142,18 +1142,16 @@ int blkcg_init_queue(struct request_queue *q)rcu_read_lock ();spin_lock_irq (q->queue_lock); blkg =blkg_create (&blkcg_root, q, new_blkg); +if (IS_ERR (blkg)) + goto err_unlock; + q->root_blkg = blkg; + q->root_rl.blkg = blkg;spin_unlock_irq (q->queue_lock);rcu_read_unlock ();if (preloaded)radix_tree_preload_end (); -if (IS_ERR (blkg)) -return PTR_ERR (blkg); - - q->root_blkg = blkg; - q->root_rl.blkg = blkg; - ret =blk_throtl_init (q);if (ret) {spin_lock_irq (q->queue_lock);
@@ -1161,6 +1159,13 @@ int blkcg_init_queue(struct request_queue *q)spin_unlock_irq (q->queue_lock); }return ret; + +err_unlock: +spin_unlock_irq (q->queue_lock); +rcu_read_unlock (); +if (preloaded) +radix_tree_preload_end (); +return PTR_ERR (blkg); }/**
@@ -1367,17 +1372,12 @@ void blkcg_deactivate_policy(struct request_queue *q,__clear_bit (pol->plid, q->blkcg_pols);list_for_each_entry (blkg, &q->blkg_list, q_node) { -/* grab blkcg lock too while removing @pd from @blkg */ -spin_lock (&blkg->blkcg->lock); -if (blkg->pd[pol->plid]) {if (pol->pd_offline_fn) pol->pd_offline_fn (blkg->pd[pol->plid]); pol->pd_free_fn (blkg->pd[pol->plid]); blkg->pd[pol->plid] =NULL ; } - -spin_unlock (&blkg->blkcg->lock); }spin_unlock_irq (q->queue_lock);
block/blk-mq.c +19 -0
@@ -118,6 +118,25 @@ void blk_mq_in_flight(struct request_queue *q, struct hd_struct *part,blk_mq_queue_tag_busy_iter (q, blk_mq_check_inflight, &mi); } +static void blk_mq_check_inflight_rw (struct blk_mq_hw_ctx *hctx, +struct request *rq,void *priv, +bool reserved) +{ +struct mq_inflight *mi = priv; + +if (rq->part == mi->part) + mi->inflight[rq_data_dir (rq)]++; +} + +void blk_mq_in_flight_rw (struct request_queue *q,struct hd_struct *part, +unsigned int inflight[2 ]) +{ +struct mq_inflight mi = { .part = part, .inflight = inflight, }; + + inflight[0 ] = inflight[1 ] =0 ; +blk_mq_queue_tag_busy_iter (q, blk_mq_check_inflight_rw, &mi); +} +void blk_freeze_queue_start (struct request_queue *q) {int freeze_depth;
block/blk-mq.h +3 -1
@@ -185,7 +185,9 @@ static inline bool blk_mq_hw_queue_mapped(struct blk_mq_hw_ctx *hctx) }void blk_mq_in_flight (struct request_queue *q,struct hd_struct *part, -unsigned int inflight[2 ]); +unsigned int inflight[2 ]); +void blk_mq_in_flight_rw (struct request_queue *q,struct hd_struct *part, +unsigned int inflight[2 ]);static inline void blk_mq_put_dispatch_budget (struct blk_mq_hw_ctx *hctx) {
block/genhd.c +12 -0
@@ -82,6 +82,18 @@ void part_in_flight(struct request_queue *q, struct hd_struct *part, } } +void part_in_flight_rw (struct request_queue *q,struct hd_struct *part, +unsigned int inflight[2 ]) +{ +if (q->mq_ops) { +blk_mq_in_flight_rw (q, part, inflight); +return ; + } + + inflight[0 ] =atomic_read (&part->in_flight[0 ]); + inflight[1 ] =atomic_read (&part->in_flight[1 ]); +} +struct hd_struct *__disk_get_part (struct gendisk *disk,int partno) {struct disk_part_tbl *ptbl =rcu_dereference (disk->part_tbl);
block/partition-generic.c +6 -4
@@ -145,13 +145,15 @@ ssize_t part_stat_show(struct device *dev, jiffies_to_msecs(part_stat_read(p, time_in_queue))); } -ssize_t part_inflight_show (struct device *dev, -struct device_attribute *attr,char *buf) +ssize_t part_inflight_show (struct device *dev,struct device_attribute *attr, +char *buf) {struct hd_struct *p =dev_to_part (dev); +struct request_queue *q =part_to_disk (p)->queue; +unsigned int inflight[2 ]; -return sprintf (buf,"%8u %8u\n" ,atomic_read (&p->in_flight[0 ]), -atomic_read (&p->in_flight[1 ])); +part_in_flight_rw (q, p, inflight); +return sprintf (buf,"%8u %8u\n" , inflight[0 ], inflight[1 ]); }#ifdef CONFIG_FAIL_MAKE_REQUEST
drivers/acpi/acpi_watchdog.c +49 -10
84 lines not on this page · raw message
drivers/acpi/scan.c +1 -1
@@ -2150,10 +2150,10 @@ int __init acpi_scan_init(void)acpi_cmos_rtc_init ();acpi_container_init ();acpi_memory_hotplug_init (); +acpi_watchdog_init ();acpi_pnp_init ();acpi_int340x_thermal_init ();acpi_amba_init (); -acpi_watchdog_init ();acpi_init_lpit ();acpi_scan_add_handler (&generic_device_handler);
drivers/acpi/sleep.c +13 -0
@@ -364,6 +364,19 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "XPS 13 9360"), }, }, +/* +* ThinkPad X1 Tablet(2016) cannot do suspend-to-idle using +* the Low Power S0 Idle firmware interface (see +* https://bugzilla.kernel.org/show_bug.cgi?id=199057). +*/ + { + .callback = init_no_lps0, + .ident = "ThinkPad X1 Tablet(2016)", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "20GGA00L00"), + }, + }, {}, };
drivers/ata/ahci.c +3 -3
@@ -699,7 +699,7 @@ static int ahci_vt8251_hardreset(struct ata_link *link, unsigned int *class,DPRINTK ("ENTER\n" ); -ahci_stop_engine (ap); + hpriv->stop_engine (ap); rc =sata_link_hardreset (link,sata_ehc_deb_timing (&link->eh_context), deadline, &online,NULL );
@@ -725,7 +725,7 @@ static int ahci_p5wdh_hardreset(struct ata_link *link, unsigned int *class,bool online;int rc; -ahci_stop_engine (ap); + hpriv->stop_engine (ap);/* clear D2H reception area to properly wait for D2H FIS */ ata_tf_init (link->device, &tf);
@@ -789,7 +789,7 @@ static int ahci_avn_hardreset(struct ata_link *link, unsigned int *class,DPRINTK ("ENTER\n" ); -ahci_stop_engine (ap); + hpriv->stop_engine (ap);for (i =0 ; i <2 ; i++) {u16 val;
drivers/ata/ahci.h +7 -0
@@ -365,6 +365,13 @@ struct ahci_host_priv {* be overridden anytime before the host is activated. */ void (*start_engine)(struct ata_port *ap); +/* +* Optional ahci_stop_engine override, if not set this gets set to the +* default ahci_stop_engine during ahci_save_initial_config, this can +* be overridden anytime before the host is activated. +*/ +int (*stop_engine)(struct ata_port *ap); +irqreturn_t (*irq_handler)(int irq,void *dev_instance);/* only required for per-port MSI(-X) support */
drivers/ata/ahci_mvebu.c +56 -0
68 lines not on this page · raw message
drivers/ata/ahci_qoriq.c +1 -1
@@ -96,7 +96,7 @@ static int ahci_qoriq_hardreset(struct ata_link *link, unsigned int *class,DPRINTK ("ENTER\n" ); -ahci_stop_engine (ap); + hpriv->stop_engine (ap);/* * There is a errata on ls1021a Rev1.0 and Rev2.0 which is:
drivers/ata/ahci_xgene.c +2 -2
@@ -165,7 +165,7 @@ static int xgene_ahci_restart_engine(struct ata_port *ap) PORT_CMD_ISSUE, 0x0, 1, 100))return -EBUSY ; -ahci_stop_engine (ap); + hpriv->stop_engine (ap);ahci_start_fis_rx (ap);/*
@@ -421,7 +421,7 @@ static int xgene_ahci_hardreset(struct ata_link *link, unsigned int *class, portrxfis_saved =readl (port_mmio +PORT_FIS_ADDR ); portrxfishi_saved =readl (port_mmio +PORT_FIS_ADDR_HI ); -ahci_stop_engine (ap); + hpriv->stop_engine (ap); rc =xgene_ahci_do_hardreset (link, deadline, &online);
drivers/ata/libahci.c +12 -8
@@ -560,6 +560,9 @@ void ahci_save_initial_config(struct device *dev, struct ahci_host_priv *hpriv)if (!hpriv->start_engine) hpriv->start_engine = ahci_start_engine; +if (!hpriv->stop_engine) + hpriv->stop_engine = ahci_stop_engine; +if (!hpriv->irq_handler) hpriv->irq_handler = ahci_single_level_irq_intr; }
@@ -897,9 +900,10 @@ static void ahci_start_port(struct ata_port *ap)static int ahci_deinit_port (struct ata_port *ap,const char **emsg) {int rc; +struct ahci_host_priv *hpriv = ap->host->private_data;/* disable DMA */ - rc =ahci_stop_engine (ap); + rc = hpriv->stop_engine (ap);if (rc) { *emsg ="failed to stop engine" ;return rc;
@@ -1310,7 +1314,7 @@ int ahci_kick_engine(struct ata_port *ap)int busy, rc;/* stop engine */ - rc =ahci_stop_engine (ap); + rc = hpriv->stop_engine (ap);if (rc) goto out_restart;
@@ -1549,7 +1553,7 @@ int ahci_do_hardreset(struct ata_link *link, unsigned int *class,DPRINTK ("ENTER\n" ); -ahci_stop_engine (ap); + hpriv->stop_engine (ap);/* clear D2H reception area to properly wait for D2H FIS */ ata_tf_init (link->device, &tf);
@@ -2075,14 +2079,14 @@ void ahci_error_handler(struct ata_port *ap)if (!(ap->pflags &ATA_PFLAG_FROZEN )) {/* restart engine */ -ahci_stop_engine (ap); + hpriv->stop_engine (ap); hpriv->start_engine (ap); }sata_pmp_error_handler (ap);if (!ata_dev_enabled (ap->link.device)) -ahci_stop_engine (ap); + hpriv->stop_engine (ap); }EXPORT_SYMBOL_GPL (ahci_error_handler);
@@ -2129,7 +2133,7 @@ static void ahci_set_aggressive_devslp(struct ata_port *ap, bool sleep)return ;/* set DITO, MDAT, DETO and enable DevSlp, need to stop engine first */ - rc =ahci_stop_engine (ap); + rc = hpriv->stop_engine (ap);if (rc)return ;
@@ -2189,7 +2193,7 @@ static void ahci_enable_fbs(struct ata_port *ap)return ; } - rc =ahci_stop_engine (ap); + rc = hpriv->stop_engine (ap);if (rc)return ;
@@ -2222,7 +2226,7 @@ static void ahci_disable_fbs(struct ata_port *ap)return ; } - rc =ahci_stop_engine (ap); + rc = hpriv->stop_engine (ap);if (rc)return ;
drivers/ata/libata-eh.c +2 -2
@@ -175,8 +175,8 @@ static void ata_eh_handle_port_resume(struct ata_port *ap) { }#endif /* CONFIG_PM */ -static void __ata_ehi_pushv_desc (struct ata_eh_info *ehi,const char *fmt, -va_list args) +static __printf(2, 0) void __ata_ehi_pushv_desc(struct ata_eh_info *ehi, + const char *fmt, va_list args) { ehi->desc_len += vscnprintf(ehi->desc + ehi->desc_len, ATA_EH_DESC_LEN - ehi->desc_len,
drivers/ata/sata_highbank.c +1 -1
@@ -410,7 +410,7 @@ static int ahci_highbank_hardreset(struct ata_link *link, unsigned int *class,int rc;int retry =100 ; -ahci_stop_engine (ap); + hpriv->stop_engine (ap);/* clear D2H reception area to properly wait for D2H FIS */ ata_tf_init (link->device, &tf);
drivers/char/agp/uninorth-agp.c +2 -2
@@ -195,7 +195,7 @@ static int uninorth_insert_memory(struct agp_memory *mem, off_t pg_start, int tyreturn 0 ; } -int uninorth_remove_memory (struct agp_memory *mem,off_t pg_start,int type) +static int uninorth_remove_memory (struct agp_memory *mem,off_t pg_start,int type) {size_t i;u32 *gp;
@@ -470,7 +470,7 @@ static int uninorth_free_gatt_table(struct agp_bridge_data *bridge)return 0 ; } -void null_cache_flush (void ) +static void null_cache_flush (void ) {mb (); }
drivers/clk/clk-mux.c +9 -1
@@ -101,10 +101,18 @@ static int clk_mux_set_parent(struct clk_hw *hw, u8 index)return 0 ; } +static int clk_mux_determine_rate (struct clk_hw *hw, +struct clk_rate_request *req) +{ +struct clk_mux *mux =to_clk_mux (hw); + +return clk_mux_determine_rate_flags (hw, req, mux->flags); +} +const struct clk_ops clk_mux_ops = { .get_parent = clk_mux_get_parent, .set_parent = clk_mux_set_parent, - .determine_rate = __clk_mux_determine_rate, + .determine_rate = clk_mux_determine_rate, };EXPORT_SYMBOL_GPL (clk_mux_ops);
drivers/clk/clk.c +4 -3
@@ -426,9 +426,9 @@ static bool mux_is_better_rate(unsigned long rate, unsigned long now,return now <= rate && now > best; } -static int -clk_mux_determine_rate_flags (struct clk_hw *hw,struct clk_rate_request *req, -unsigned long flags) +int clk_mux_determine_rate_flags (struct clk_hw *hw, +struct clk_rate_request *req, +unsigned long flags) {struct clk_core *core = hw->core, *parent, *best_parent =NULL ;int i, num_parents, ret;
@@ -488,6 +488,7 @@ clk_mux_determine_rate_flags(struct clk_hw *hw, struct clk_rate_request *req,return 0 ; } +EXPORT_SYMBOL_GPL (clk_mux_determine_rate_flags);struct clk *__clk_lookup (const char *name) {
drivers/clk/imx/clk-imx6ul.c +1 -1
@@ -461,7 +461,7 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)clk_set_rate (clks[IMX6UL_CLK_AHB ],99000000 );/* Change periph_pre clock to pll2_bus to adjust AXI rate to 264MHz */ -clk_set_parent (clks[IMX6UL_CLK_PERIPH_CLK2_SEL ], clks[IMX6UL_CLK_PLL3_USB_OTG ]); +clk_set_parent (clks[IMX6UL_CLK_PERIPH_CLK2_SEL ], clks[IMX6UL_CLK_OSC ]);clk_set_parent (clks[IMX6UL_CLK_PERIPH ], clks[IMX6UL_CLK_PERIPH_CLK2 ]);clk_set_parent (clks[IMX6UL_CLK_PERIPH_PRE ], clks[IMX6UL_CLK_PLL2_BUS ]);clk_set_parent (clks[IMX6UL_CLK_PERIPH ], clks[IMX6UL_CLK_PERIPH_PRE ]);
drivers/clocksource/timer-imx-tpm.c +7 -1
@@ -20,6 +20,7 @@#define TPM_SC 0x10#define TPM_SC_CMOD_INC_PER_CNT (0x1 << 3)#define TPM_SC_CMOD_DIV_DEFAULT 0x3 +#define TPM_SC_TOF_MASK (0x1 << 7)#define TPM_CNT 0x14#define TPM_MOD 0x18#define TPM_STATUS 0x1c
@@ -29,6 +30,7 @@#define TPM_C0SC_MODE_SHIFT 2#define TPM_C0SC_MODE_MASK 0x3c#define TPM_C0SC_MODE_SW_COMPARE 0x4 +#define TPM_C0SC_CHF_MASK (0x1 << 7)#define TPM_C0V 0x24static void __iomem *timer_base;
@@ -205,9 +207,13 @@ static int __init tpm_timer_init(struct device_node *np)* 4) Channel0 disabled * 5) DMA transfers disabled */ +/* make sure counter is disabled */ writel (0 , timer_base +TPM_SC ); +/* TOF is W1C */ +writel (TPM_SC_TOF_MASK , timer_base +TPM_SC );writel (0 , timer_base +TPM_CNT ); -writel (0 , timer_base +TPM_C0SC ); +/* CHF is W1C */ +writel (TPM_C0SC_CHF_MASK , timer_base +TPM_C0SC );/* increase per cnt, div 8 by default */ writel(TPM_SC_CMOD_INC_PER_CNT | TPM_SC_CMOD_DIV_DEFAULT,
drivers/cpufreq/Kconfig.arm +0 -10
@@ -70,16 +70,6 @@ config ARM_BRCMSTB_AVS_CPUFREQ Say Y, if you have a Broadcom SoC with AVS support for DFS or DVFS. -config ARM_BRCMSTB_AVS_CPUFREQ_DEBUG - bool "Broadcom STB AVS CPUfreq driver sysfs debug capability" - depends on ARM_BRCMSTB_AVS_CPUFREQ - help - Enabling this option turns on debug support via sysfs under - /sys/kernel/debug/brcmstb-avs-cpufreq. It is possible to read all and - write some AVS mailbox registers through sysfs entries. - - If in doubt, say N. - config ARM_EXYNOS5440_CPUFREQ tristate "SAMSUNG EXYNOS5440" depends on SOC_EXYNOS5440
drivers/cpufreq/brcmstb-avs-cpufreq.c +1 -322
359 lines not on this page · raw message
drivers/firmware/efi/libstub/arm64-stub.c +10 -0
@@ -97,6 +97,16 @@ efi_status_t handle_kernel_image(efi_system_table_t *sys_table_arg,u32 offset = !IS_ENABLED (CONFIG_DEBUG_ALIGN_RODATA ) ? (phys_seed >>32 ) & mask :TEXT_OFFSET ; +/* +* With CONFIG_RANDOMIZE_TEXT_OFFSET=y, TEXT_OFFSET may not +* be a multiple of EFI_KIMG_ALIGN, and we must ensure that +* we preserve the misalignment of 'offset' relative to +* EFI_KIMG_ALIGN so that statically allocated objects whose +* alignment exceeds PAGE_SIZE appear correctly aligned in +* memory. +*/ + offset |=TEXT_OFFSET %EFI_KIMG_ALIGN ; +/* * If KASLR is enabled, and we have some randomness available, * locate the kernel at a randomized offset in physical memory.
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +4 -2
@@ -419,9 +419,11 @@ int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, unsigned ring_id)if (other) {signed long r; - r =dma_fence_wait_timeout (other, false,MAX_SCHEDULE_TIMEOUT ); + r =dma_fence_wait (other, true);if (r <0 ) { -DRM_ERROR ("Error (%ld) waiting for fence!\n" , r); +if (r != -ERESTARTSYS ) +DRM_ERROR ("Error (%ld) waiting for fence!\n" , r); +return r; } }
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +7 -6
@@ -748,12 +748,13 @@ static int kfd_ioctl_get_clock_counters(struct file *filep,struct timespec64 time; dev =kfd_device_by_id (args->gpu_id); -if (dev ==NULL ) -return -EINVAL ; - -/* Reading GPU clock counter from KGD */ - args->gpu_clock_counter = - dev->kfd2kgd->get_gpu_clock_counter (dev->kgd); +if (dev) +/* Reading GPU clock counter from KGD */ + args->gpu_clock_counter = + dev->kfd2kgd->get_gpu_clock_counter (dev->kgd); +else +/* Node without GPU resource */ + args->gpu_clock_counter =0 ;/* No access to rdtsc. Using raw monotonic time */ getrawmonotonic64 (&time);
drivers/gpu/drm/drm_dumb_buffers.c +4 -3
@@ -65,12 +65,13 @@ int drm_mode_create_dumb_ioctl(struct drm_device *dev,return -EINVAL ;/* overflow checks for 32bit size calculations */ -/* NOTE: DIV_ROUND_UP() can overflow */ +if (args->bpp >U32_MAX -8 ) +return -EINVAL ; cpp =DIV_ROUND_UP (args->bpp,8 ); -if (!cpp || cpp >0xffffffffU / args->width) +if (cpp >U32_MAX / args->width)return -EINVAL ; stride = cpp * args->width; -if (args->height >0xffffffffU / stride) +if (args->height >U32_MAX / stride)return -EINVAL ;/* test for wrap-around */
drivers/gpu/drm/exynos/exynos_mixer.c +17 -5
@@ -485,7 +485,7 @@ static void vp_video_buffer(struct mixer_context *ctx, chroma_addr[1 ] = chroma_addr[0 ] +0x40 ; }else { luma_addr[1 ] = luma_addr[0 ] + fb->pitches[0 ]; - chroma_addr[1 ] = chroma_addr[0 ] + fb->pitches[0 ]; + chroma_addr[1 ] = chroma_addr[0 ] + fb->pitches[1 ]; } }else { luma_addr[1 ] =0 ;
@@ -494,6 +494,7 @@ static void vp_video_buffer(struct mixer_context *ctx,spin_lock_irqsave (&ctx->reg_slock, flags); +vp_reg_write (ctx,VP_SHADOW_UPDATE ,1 );/* interlace or progressive scan mode */ val = (test_bit (MXR_BIT_INTERLACE , &ctx->flags) ? ~0 :0 );vp_reg_writemask (ctx,VP_MODE , val,VP_MODE_LINE_SKIP );
@@ -507,21 +508,23 @@ static void vp_video_buffer(struct mixer_context *ctx,vp_reg_write (ctx,VP_IMG_SIZE_Y ,VP_IMG_HSIZE (fb->pitches[0 ]) |VP_IMG_VSIZE (fb->height));
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/omapdrm/dss/hdmi4_core.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/omapdrm/omap_connector.c +10 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/core/cma.c +43 -17
60 lines not on this page · raw message
drivers/infiniband/hw/hfi1/init.c +29 -12
41 lines not on this page · raw message
drivers/infiniband/hw/hns/hns_roce_hem.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +9 -2
Lines of this file are not shown. View the raw message.
drivers/input/touchscreen/atmel_mxt_ts.c +110 -76
186 lines not on this page · raw message
drivers/mtd/onenand/omap2.c +38 -67
105 lines not on this page · raw message
drivers/net/ethernet/aquantia/atlantic/aq_nic.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/aquantia/atlantic/aq_nic.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +10 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns/hnae.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +16 -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/intel/ixgbe/ixgbe_x550.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/flower/cmsg.c +34 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/flower/cmsg.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/flower/main.c +5 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/flower/main.h +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfp_app_nic.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfp_main.h +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfp_net_main.c +18 -13
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_l2.c +2 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_rdma.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/phy/microchip.c +177 -1
178 lines not on this page · raw message
drivers/pinctrl/intel/pinctrl-cherryview.c +12 -4
Lines of this file are not shown. View the raw message.
drivers/pinctrl/meson/pinctrl-meson-axg.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/s390/net/qeth_core_main.c +26 -25
51 lines not on this page · raw message
drivers/scsi/megaraid/megaraid_sas_fusion.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/thermal/int340x_thermal/int3403_thermal.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/usb/typec/tps6598x.c +39 -8
47 lines not on this page · raw message
drivers/xen/xenbus/xenbus_dev_frontend.c +2 -1
Lines of this file are not shown. View the raw message.
fs/afs/callback.c +40 -16
56 lines not on this page · raw message
fs/cifs/smb2pdu.c +38 -30
68 lines not on this page · raw message
fs/ecryptfs/crypto.c +28 -13
41 lines not on this page · raw message
include/linux/sched.h +45 -5
50 lines not on this page · raw message
include/soc/bcm2835/raspberrypi-firmware.h +2 -2
Lines of this file are not shown. View the raw message.
kernel/kthread.c +23 -27
50 lines not on this page · raw message
kernel/sched/core.c +22 -27
49 lines not on this page · raw message
net/ipv6/netfilter/Kconfig +28 -27
55 lines not on this page · raw message
net/rxrpc/local_object.c +42 -15
57 lines not on this page · raw message
tools/objtool/arch/x86/include/asm/insn.h +18 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-multi-actions-accept.tc new file +44 -0
44 lines not on this page · raw message
tools/testing/selftests/x86/mov_ss_trap.c new file +285 -0
285 lines not on this page · raw message
tools/testing/selftests/x86/mpx-mini-test.c +5 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/x86/pkey-helpers.h +8 -12
Lines of this file are not shown. View the raw message.
tools/testing/selftests/x86/protection_keys.c +180 -74
254 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.