Linux 4.14.168
Greg KH
maintainerI'm announcing the release of the 4.14.168 kernel.
All users of the 4.14 kernel series must upgrade.
The updated 4.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 6 arch/arm/boot/dts/lpc3250-phy3250.dts | 4 arch/arm/boot/dts/lpc32xx.dtsi | 10 arch/arm/boot/dts/ls1021a-twr.dts | 9 arch/arm/boot/dts/ls1021a.dtsi | 11 arch/arm/boot/dts/stm32h743i-eval.dts | 1 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 4 arch/arm/common/mcpm_entry.c | 2 arch/arm/include/asm/suspend.h | 1 arch/arm/kernel/hyp-stub.S | 4 arch/arm/kernel/sleep.S | 12 arch/arm/mach-omap2/omap_hwmod.c | 2 arch/arm/mach-rpc/irq.c | 3 arch/arm/plat-pxa/ssp.c | 6 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 3 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 1 arch/arm64/boot/dts/arm/juno-clocks.dtsi | 4 arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 2 arch/m68k/amiga/cia.c | 9 arch/m68k/atari/ataints.c | 4 arch/m68k/atari/time.c | 15 - arch/m68k/bvme6000/config.c | 20 - arch/m68k/hp300/time.c | 10 arch/m68k/mac/via.c | 119 ++++---- arch/m68k/mvme147/config.c | 18 - arch/m68k/mvme16x/config.c | 21 - arch/m68k/q40/q40ints.c | 19 - arch/m68k/sun3/sun3ints.c | 3 arch/m68k/sun3x/time.c | 16 - arch/mips/bcm63xx/Makefile | 6 arch/mips/bcm63xx/boards/board_bcm963xx.c | 20 - arch/mips/bcm63xx/dev-dsp.c | 56 --- arch/mips/include/asm/io.h | 14 arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_dsp.h | 14 arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h | 5 arch/mips/kernel/setup.c | 2 arch/nios2/kernel/nios2_ksyms.c | 12 arch/powerpc/Makefile | 2 arch/powerpc/include/asm/archrandom.h | 2 arch/powerpc/kernel/cacheinfo.c | 21 + arch/powerpc/kernel/cacheinfo.h | 4 arch/powerpc/kernel/dt_cpu_ftrs.c | 17 - arch/powerpc/kvm/book3s_64_vio.c | 1 arch/powerpc/mm/dump_hashpagetable.c | 2 arch/powerpc/platforms/pseries/mobility.c | 10 arch/x86/Kconfig.debug | 2 arch/x86/kernel/kgdb.c | 2 arch/x86/mm/tlb.c | 3 block/blk-merge.c | 8 crypto/pcrypt.c | 2 crypto/tgr192.c | 6 drivers/ata/libahci.c | 1 drivers/base/core.c | 20 - drivers/base/power/wakeup.c | 2 drivers/bcma/driver_pci.c | 4 drivers/block/drbd/drbd_main.c | 2 drivers/clk/clk-highbank.c | 1 drivers/clk/clk-qoriq.c | 1 drivers/clk/imx/clk-imx6q.c | 1 drivers/clk/imx/clk-imx6sx.c | 1 drivers/clk/imx/clk-imx7d.c | 1 drivers/clk/imx/clk-vf610.c | 1 drivers/clk/mvebu/armada-370.c | 4 drivers/clk/mvebu/armada-xp.c | 4 drivers/clk/mvebu/dove.c | 8 drivers/clk/mvebu/kirkwood.c | 2 drivers/clk/mvebu/mv98dx3236.c | 4 drivers/clk/qcom/gcc-msm8996.c | 36 -- drivers/clk/samsung/clk-exynos4.c | 1 drivers/clk/socfpga/clk-pll-a10.c | 1 drivers/clk/socfpga/clk-pll.c | 1 drivers/clk/sunxi-ng/ccu-sun8i-a23.c | 2 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 19 + drivers/clk/sunxi-ng/ccu-sun8i-v3s.h | 6 drivers/clocksource/exynos_mct.c | 14 drivers/clocksource/timer-sun5i.c | 10 drivers/cpufreq/brcmstb-avs-cpufreq.c | 12 drivers/crypto/amcc/crypto4xx_trng.h | 4 drivers/crypto/bcm/cipher.c | 6 drivers/crypto/caam/caamrng.c | 5 drivers/crypto/caam/error.c | 2 drivers/crypto/ccp/ccp-crypto-aes.c | 8 drivers/crypto/ccp/ccp-ops.c | 67 ++-- drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 21 - drivers/dma/dma-axi-dmac.c | 2 drivers/dma/dw/platform.c | 14 drivers/dma/edma.c | 6 drivers/dma/hsu/hsu.c | 4 drivers/dma/imx-sdma.c | 8 drivers/dma/mv_xor.c | 2 drivers/dma/tegra210-adma.c | 72 ++++ drivers/edac/edac_mc.c | 12 drivers/gpu/drm/drm_dp_mst_topology.c | 15 - drivers/gpu/drm/etnaviv/etnaviv_dump.c | 2 drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 2 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c | 1 drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 24 - drivers/gpu/drm/msm/dsi/dsi_host.c | 6 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c | 4 drivers/gpu/drm/radeon/cik.c | 4 drivers/gpu/drm/radeon/r600.c | 4 drivers/gpu/drm/radeon/si.c | 4 drivers/gpu/drm/shmobile/shmob_drm_drv.c | 4 drivers/gpu/drm/sti/sti_hda.c | 1 drivers/gpu/drm/sti/sti_hdmi.c | 1 drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c | 2 drivers/gpu/drm/virtio/virtgpu_vq.c | 5 drivers/hwmon/lm75.c | 2 drivers/hwmon/pmbus/tps53679.c | 9 drivers/hwmon/shtc1.c | 2 drivers/hwmon/w83627hf.c | 42 ++ drivers/iio/dac/ad5380.c | 2 drivers/infiniband/core/cma.c | 2 drivers/infiniband/hw/cxgb4/cm.c | 24 - drivers/infiniband/hw/hfi1/chip.c | 26 + drivers/infiniband/hw/hns/hns_roce_qp.c | 1 drivers/infiniband/hw/mlx5/qp.c | 21 + drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 2 drivers/infiniband/hw/qedr/verbs.c | 27 - drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 2 drivers/infiniband/sw/rxe/rxe_cq.c | 4 drivers/infiniband/sw/rxe/rxe_pool.c | 26 - drivers/infiniband/sw/rxe/rxe_qp.c | 5 drivers/infiniband/ulp/iser/iscsi_iser.h | 2 drivers/infiniband/ulp/iser/iser_memory.c | 10 drivers/input/keyboard/nomadik-ske-keypad.c | 2 drivers/iommu/amd_iommu.c | 2 drivers/iommu/amd_iommu_init.c | 3 drivers/iommu/intel-iommu.c | 39 +- drivers/iommu/iommu.c | 6 drivers/iommu/mtk_iommu.c | 26 + drivers/lightnvm/pblk-rb.c | 2 drivers/media/i2c/ov2659.c | 2 drivers/media/pci/cx18/cx18-fileops.c | 2 drivers/media/pci/cx23885/cx23885-dvb.c | 5 drivers/media/pci/ivtv/ivtv-fileops.c | 2 drivers/media/pci/tw5864/tw5864-video.c | 4 drivers/media/platform/atmel/atmel-isi.c | 2 drivers/media/platform/davinci/isif.c | 9 drivers/media/platform/davinci/vpbe.c | 2 drivers/media/platform/omap/omap_vout.c | 15 - drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 drivers/media/platform/vivid/vivid-osd.c | 2 drivers/media/radio/wl128x/fmdrv_common.c | 5 drivers/mfd/intel-lpss-pci.c | 28 + drivers/mfd/intel-lpss.c | 1 drivers/misc/mic/card/mic_x100.c | 28 - drivers/misc/sgi-xp/xpc_partition.c | 2 drivers/mmc/core/host.c | 2 drivers/mmc/core/quirks.h | 7 drivers/mmc/host/sdhci-brcmstb.c | 4 drivers/net/dsa/qca8k.c | 12 drivers/net/dsa/qca8k.h | 1 drivers/net/ethernet/amazon/ena/ena_com.c | 3 drivers/net/ethernet/amazon/ena/ena_ethtool.c | 4 drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 drivers/net/ethernet/aquantia/atlantic/aq_vec.c | 15 - drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c | 4 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c | 4 drivers/net/ethernet/broadcom/bcmsysport.c | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 18 - drivers/net/ethernet/hisilicon/hix5hd2_gmac.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 2 drivers/net/ethernet/ibm/ehea/ehea_main.c | 2 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 16 - drivers/net/ethernet/mellanox/mlx5/core/qp.c | 5 drivers/net/ethernet/mellanox/mlxsw/reg.h | 22 + drivers/net/ethernet/natsemi/sonic.c | 6 drivers/net/ethernet/pasemi/pasemi_mac.c | 2 drivers/net/ethernet/qlogic/qed/qed_iwarp.c | 16 - drivers/net/ethernet/qlogic/qed/qed_l2.c | 34 +- drivers/net/ethernet/qualcomm/qca_spi.c | 9 drivers/net/ethernet/qualcomm/qca_spi.h | 1 drivers/net/ethernet/renesas/sh_eth.c | 6 drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c | 2 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 drivers/net/hyperv/netvsc_drv.c | 13 drivers/net/phy/fixed_phy.c | 6 drivers/net/phy/phy_device.c | 11 drivers/net/vxlan.c | 7 drivers/net/wireless/ath/ath10k/sdio.c | 29 +- drivers/net/wireless/ath/ath9k/dynack.c | 8 drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 12 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 19 - drivers/net/wireless/marvell/libertas_tf/cmd.c | 2 drivers/net/wireless/mediatek/mt7601u/phy.c | 2 drivers/ntb/hw/idt/ntb_hw_idt.c | 8 drivers/nvme/host/pci.c | 2 drivers/nvmem/imx-ocotp.c | 3 drivers/of/of_mdio.c | 2 drivers/pci/endpoint/functions/pci-epf-test.c | 4 drivers/pci/host/pcie-iproc.c | 8 drivers/pci/switch/switchtec.c | 4 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c | 96 +++++- drivers/pinctrl/sh-pfc/pfc-emev2.c | 20 + drivers/pinctrl/sh-pfc/pfc-r8a7740.c | 3 drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 8 drivers/pinctrl/sh-pfc/pfc-r8a7792.c | 1 drivers/pinctrl/sh-pfc/pfc-r8a7794.c | 2 drivers/pinctrl/sh-pfc/pfc-r8a77995.c | 8 drivers/pinctrl/sh-pfc/pfc-sh7269.c | 2 drivers/pinctrl/sh-pfc/pfc-sh73a0.c | 4 drivers/pinctrl/sh-pfc/pfc-sh7734.c | 4 drivers/platform/mips/cpu_hwmon.c | 2 drivers/platform/x86/alienware-wmi.c | 19 - drivers/platform/x86/wmi.c | 3 drivers/power/supply/power_supply_core.c | 10 drivers/pwm/pwm-lpss.c | 6 drivers/pwm/pwm-meson.c | 9 drivers/rapidio/rio_cm.c | 4 drivers/regulator/lp87565-regulator.c | 2 drivers/regulator/pv88060-regulator.c | 2 drivers/regulator/pv88080-regulator.c | 2 drivers/regulator/pv88090-regulator.c | 2 drivers/regulator/tps65086-regulator.c | 4 drivers/regulator/wm831x-dcdc.c | 4 drivers/rtc/rtc-88pm80x.c | 21 - drivers/rtc/rtc-88pm860x.c | 21 - drivers/rtc/rtc-ds1307.c | 7 drivers/rtc/rtc-ds1672.c | 3 drivers/rtc/rtc-mc146818-lib.c | 2 drivers/rtc/rtc-pcf2127.c | 32 -- drivers/rtc/rtc-pcf8563.c | 13 drivers/rtc/rtc-pm8xxx.c | 6 drivers/scsi/fnic/fnic_isr.c | 4 drivers/scsi/libfc/fc_exch.c | 2 drivers/scsi/megaraid/megaraid_sas_base.c | 4 drivers/scsi/qla2xxx/qla_os.c | 34 +- drivers/scsi/qla2xxx/qla_target.c | 14 drivers/soc/fsl/qe/gpio.c | 4 drivers/spi/spi-bcm2835aux.c | 13 drivers/spi/spi-cadence.c | 11 drivers/spi/spi-fsl-spi.c | 2 drivers/spi/spi-tegra114.c | 145 +++++++--- drivers/spi/spi-topcliff-pch.c | 6 drivers/staging/comedi/drivers/ni_mio_common.c | 24 + drivers/staging/greybus/light.c | 12 drivers/staging/most/aim-cdev/cdev.c | 5 drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c | 5 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 9 drivers/target/target_core_device.c | 4 drivers/thermal/cpu_cooling.c | 2 drivers/thermal/mtk_thermal.c | 6 drivers/tty/ipwireless/hardware.c | 2 drivers/tty/serial/fsl_lpuart.c | 28 - drivers/tty/serial/stm32-usart.c | 123 ++++---- drivers/tty/serial/stm32-usart.h | 10 drivers/uio/uio.c | 10 drivers/usb/class/cdc-wdm.c | 2 drivers/usb/dwc2/gadget.c | 1 drivers/usb/host/xhci-hub.c | 2 drivers/usb/phy/Kconfig | 2 drivers/usb/phy/phy-twl6030-usb.c | 2 drivers/vfio/mdev/mdev_core.c | 11 drivers/vfio/pci/vfio_pci.c | 19 - drivers/video/backlight/lm3630a_bl.c | 4 drivers/video/fbdev/chipsfb.c | 3 drivers/xen/cpu_hotplug.c | 2 drivers/xen/pvcalls-back.c | 2 fs/affs/super.c | 6 fs/afs/super.c | 1 fs/afs/xattr.c | 4 fs/btrfs/file.c | 3 fs/btrfs/inode-map.c | 28 + fs/cifs/connect.c | 3 fs/exportfs/expfs.c | 1 fs/ext4/inline.c | 2 fs/jfs/jfs_txnmgr.c | 3 fs/nfs/delegation.c | 20 - fs/nfs/delegation.h | 1 fs/nfs/flexfilelayout/flexfilelayout.h | 32 +- fs/nfs/pnfs.c | 33 +- fs/nfs/pnfs.h | 1 fs/nfs/super.c | 2 fs/nfs/write.c | 2 fs/xfs/xfs_quotaops.c | 3 include/linux/device.h | 3 include/linux/irqchip/arm-gic-v3.h | 12 include/linux/mlx5/mlx5_ifc.h | 2 include/linux/mmc/sdio_ids.h | 2 include/linux/platform_data/dma-imx-sdma.h | 3 include/linux/signal.h | 15 - include/media/davinci/vpbe.h | 2 include/net/request_sock.h | 4 include/net/tcp.h | 2 kernel/debug/kdb/kdb_main.c | 2 kernel/events/core.c | 3 kernel/irq/irqdomain.c | 1 kernel/signal.c | 5 lib/devres.c | 3 lib/kfifo.c | 3 net/6lowpan/nhc.c | 2 net/bridge/netfilter/ebtables.c | 4 net/core/neighbour.c | 4 net/core/sock.c | 4 net/ieee802154/6lowpan/reassembly.c | 2 net/ipv4/inet_connection_sock.c | 2 net/ipv4/tcp.c | 4 net/ipv6/reassembly.c | 2 net/iucv/af_iucv.c | 27 + net/l2tp/l2tp_core.c | 3 net/llc/af_llc.c | 34 +- net/llc/llc_conn.c | 35 -- net/llc/llc_if.c | 12 net/mac80211/rc80211_minstrel_ht.c | 2 net/mac80211/rx.c | 11 net/mpls/mpls_iptunnel.c | 2 net/netfilter/nft_set_hash.c | 23 + net/packet/af_packet.c | 25 + net/rds/ib_stats.c | 2 net/rds/stats.c | 2 net/rxrpc/output.c | 3 net/sched/act_mirred.c | 6 net/sched/sch_netem.c | 18 - net/tipc/link.c | 29 +- net/tipc/node.c | 7 net/tipc/socket.c | 2 net/tipc/sysctl.c | 8 security/apparmor/include/context.h | 2 security/apparmor/lsm.c | 4 security/keys/key.c | 1 sound/aoa/codecs/onyx.c | 4 sound/pci/hda/hda_controller.h | 9 sound/soc/codecs/cs4349.c | 1 sound/soc/codecs/es8328.c | 2 sound/soc/codecs/wm8737.c | 2 sound/soc/davinci/davinci-mcasp.c | 13 sound/soc/fsl/imx-sgtl5000.c | 3 sound/soc/qcom/apq8016_sbc.c | 21 + sound/soc/soc-pcm.c | 4 sound/soc/sunxi/sun4i-i2s.c | 4 sound/usb/mixer.c | 4 sound/usb/quirks-table.h | 9 tools/testing/selftests/ipc/msgque.c | 11 340 files changed, 1946 insertions(+), 1258 deletions(-)
Akinobu Mita (1):
media: ov2659: fix unbalanced mutex_lock/unlock
Alex Estrin (1):
IB/hfi1: Add mtu check for operational data VLs
Alexandre Kroupski (1):
media: atmel: atmel-isi: fix timeout value for stop streaming
Alexandru Ardelean (1):
dmaengine: axi-dmac: Don't check the number of frames for alignment
Alexey Kardashevskiy (1):
KVM: PPC: Release all hardware TCE tables attached to a group
Anders Roxell (1):
ALSA: hda: fix unused variable warning
Andre Przywara (1):
arm64: dts: juno: Fix UART frequency
Andrey Smirnov (1):
tty: serial: fsl_lpuart: Use appropriate lpuart32_* I/O funcs
Andy Shevchenko (4):
dmaengine: hsu: Revert "set HSU_CH_MTSR to memory width"
mfd: intel-lpss: Release IDA resources
dmaengine: dw: platform: Switch to acpi_dma_controller_register()
ahci: Do not export local variable ahci_em_messages
Antonio Borneo (1):
net: stmmac: fix length of PTP clock's name string
Ard Biesheuvel (2):
powerpc/archrandom: fix arch_get_random_seed_int()
nvme: retain split access workaround for capability reads
Arnd Bergmann (7):
jfs: fix bogus variable self-initialization
media: davinci-isif: avoid uninitialized variable use
usb: gadget: fsl: fix link error against usb-gadget module
devres: allow const resource arguments
qed: reduce maximum stack frame size
mic: avoid statically declaring a 'struct device'.
crypto: ccp - Reduce maximum stack usage
Axel Lin (6):
regulator: pv88060: Fix array out-of-bounds access
regulator: pv88080: Fix array out-of-bounds access
regulator: pv88090: Fix array out-of-bounds access
regulator: wm831x-dcdc: Fix list of wm831x_dcdc_ilim from mA to uA
regulator: lp87565: Fix missing register for LP87565_BUCK_0
regulator: tps65086: Fix tps65086_ldoa1_ranges for selector 0xB
Bart Van Assche (4):
scsi: qla2xxx: Unregister chrdev if module initialization fails
scsi: target/core: Fix a race condition in the LUN lookup code
scsi: qla2xxx: Fix a format specifier
scsi: qla2xxx: Avoid that qlt_send_resp_ctio() corrupts memory
Ben Hutchings (1):
powerpc: vdso: Make vdso32 installation conditional in vdso_install
Bichao Zheng (1):
pwm: meson: Don't disable PWM when setting duty repeatedly
Brian Masney (1):
backlight: lm3630a: Return 0 on success in update_status functions
Bruno Thomsen (1):
rtc: pcf2127: bugfix: read rtc disables watchdog
Bryan O'Donoghue (1):
nvmem: imx-ocotp: Ensure WAIT bits are preserved when setting timing
Charles Keepax (1):
spi: cadence: Correct initialisation of runtime PM
Chen-Yu Tsai (4):
clk: sunxi-ng: sun8i-a23: Enable PLL-MIPI LDOs when ungating it clocksource/drivers/sun5i: Fail gracefully when clock rate is unavailable
rtc: pcf8563: Fix interrupt trigger method
rtc: pcf8563: Clear event flags and disable interrupts before requesting irq
Christophe Leroy (1):
spi: spi-fsl-spi: call spi_finalize_current_message() at the end
Chuhong Yuan (1):
dmaengine: ti: edma: fix missed failure handling
Colin Ian King (14):
pcrypt: use format specifier in kobject_add
staging: most: cdev: add missing check for cdev_add failure
rtc: ds1672: fix unintended sign extension
rtc: 88pm860x: fix unintended sign extension
rtc: 88pm80x: fix unintended sign extension
rtc: pm8xxx: fix unintended sign extension drm/nouveau/bios/ramcfg: fix missing parentheses when calculating RON drm/nouveau/pmu: don't print reply values if exec is false platform/x86: alienware-wmi: fix kfree on potentially uninitialized pointer
media: vivid: fix incorrect assignment operation when setting video mode
scsi: libfc: fix null pointer dereference on a null lport
ext4: set error return correctly when ext4_htree_store_dirent fails
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA
iio: dac: ad5380: fix incorrect assignment to val
Corentin Labbe (2):
crypto: sun4i-ss - fix big endian issues
crypto: crypto4xx - Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments
Dan Carpenter (23):
drm/virtio: fix bounds check in virtio_gpu_cmd_get_capset()
Input: nomadik-ske-keypad - fix a loop timeout test drm/etnaviv: NULL vs IS_ERR() buf in etnaviv_core_dump() drm/etnaviv: potential NULL dereference drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen() xen, cpu_hotplug: Prevent an out of bounds access
media: ivtv: update *pos correctly in ivtv_read_pos()
media: cx18: update *pos correctly in cx18_read_pos()
media: wl128x: Fix an error code in fm_download_firmware() soc/fsl/qe: Fix an error code in qe_pin_request() 6lowpan: Off by one handling ->nexthdr
media: omap_vout: potential buffer overflow in vidioc_dqbuf()
media: davinci/vpbe: array underflow in vpbe_enum_outputs() platform/x86: alienware-wmi: printing the wrong error code
kdb: do a sanity check on the cpu in kdb_per_cpu()
staging: greybus: light: fix a couple double frees
net: aquantia: Fix aq_vec_isr_legacy() return value
net: hisilicon: Fix signedness bug in hix5hd2_dev_probe()
net: broadcom/bcmsysport: Fix signedness in bcm_sysport_probe()
net: stmmac: dwmac-meson8b: Fix signedness bug in probe
net: axienet: fix a signedness bug in probe
of: mdio: Fix a signedness bug in of_phy_get_and_connect()
net: ethernet: stmmac: Fix signedness bug in ipq806x_gmac_of_parse()
Dan Robertson (1):
hwmon: (shtc1) fix shtc1 and shtw1 id mask
David Howells (3):
keys: Timestamp new keys
afs: Fix the afs.cell and afs.volume xattr handlers
rxrpc: Fix uninitialized error code in rxrpc_send_data_packet()
Dexuan Cui (1):
irqdomain: Add the missing assignment of domain->fwnode for named fwnode
Eric Auger (2):
vfio_pci: Enable memory accesses before calling pci_map_rom iommu/vt-d: Duplicate iommu_resv_region objects per device list
Eric Biggers (3):
crypto: tgr192 - fix unaligned memory access
llc: fix another potential sk_buff leak in llc_ui_sendmsg()
llc: fix sk_buff refcounting in llc_conn_state_process()
Eric Dumazet (6):
inet: frags: call inet_frags_fini() after unregister_pernet_subsys()
net: avoid possible false sharing in sk_leave_memory_pressure()
net: add {READ|WRITE}_ONCE() annotations on ->rskq_accept_head
tcp: annotate lockless access to tcp_memory_pressure
net: neigh: use long type to store jiffies delta
packet: fix data-race in fanout_flow_is_huge()
Eric W. Biederman (3):
fs/nfs: Fix nfs_parse_devname to not modify it's argument signal/cifs: Fix cifs_put_tcp_session to call send_sig instead of force_sig
signal: Allow cifs and drbd to receive their terminating signals
Eric Wong (1):
rtc: cmos: ignore bogus century byte
Erwan Le Ray (4):
serial: stm32: fix rx error handling
serial: stm32: fix transmit_chars when tx is stopped
serial: stm32: Add support of TC bit status check
serial: stm32: fix wakeup source initialization
Fabrice Gasnier (2):
ARM: dts: stm32: add missing vdda-supply to adc on stm32h743i-eval
serial: stm32: fix clearing interrupt error flags
Felix Fietkau (1):
mac80211: minstrel_ht: fix per-group max throughput rate initialization
Filipe Manana (3):
Btrfs: fix hang when loading existing inode cache off disk
Btrfs: fix inode cache waiters hanging on failure to start caching thread
Btrfs: fix inode cache waiters hanging on path allocation failure
Filippo Sironi (1):
iommu/amd: Wait for completion of IOTLB flush in attach_device
Finn Thain (2):
m68k: mac: Fix VIA timer counter accesses
m68k: Call timer_interrupt() with interrupts disabled
Firo Yang (1):
ixgbe: sync the first fragment unconditionally
Florian Fainelli (2):
cpufreq: brcmstb-avs-cpufreq: Fix initial command check
cpufreq: brcmstb-avs-cpufreq: Fix types for voltage/frequency
Florian Westphal (1):
netfilter: ebtables: CONFIG_COMPAT: reject trailing data after last rule
Gal Pressman (3):
IB/usnic: Fix out of bounds index check in query pkey RDMA/ocrdma: Fix out of bounds index check in query pkey RDMA/qedr: Fix out of bounds index check in query pkey
Geert Uytterhoeven (14):
pinctrl: sh-pfc: r8a7740: Add missing REF125CK pin to gether_gmii group
pinctrl: sh-pfc: r8a7740: Add missing LCD0 marks to lcd0_data24_1 group
pinctrl: sh-pfc: r8a7791: Remove bogus ctrl marks from qspi_data4_b group
pinctrl: sh-pfc: r8a7791: Remove bogus marks from vin1_b_data18 group
pinctrl: sh-pfc: sh73a0: Add missing TO pin to tpu4_to3 group
pinctrl: sh-pfc: r8a7794: Remove bogus IPSR9 field
pinctrl: sh-pfc: sh7734: Add missing IPSR11 field
pinctrl: sh-pfc: r8a77995: Remove bogus SEL_PWM[0-3]_3 configurations
pinctrl: sh-pfc: sh7269: Add missing PCIOR0 field
pinctrl: sh-pfc: sh7734: Remove bogus IPSR10 value
pinctrl: sh-pfc: emev2: Add missing pinmux functions
pinctrl: sh-pfc: r8a7791: Fix scifb2_data_c pin group
pinctrl: sh-pfc: r8a7792: Fix vin1_data18_b pin group
pinctrl: sh-pfc: sh73a0: Fix fsic_spdif pin groups
George Wilkie (1):
mpls: fix warning with multi-label encap
Gerd Rausch (2):
net/rds: Add a few missing rds_stat_names entries net/rds: Fix 'ib_evt_handler_call' element in 'rds_ib_stat_names'
Govindarajulu Varadarajan (1):
scsi: fnic: fix msix interrupt allocation
Greg Kroah-Hartman (1):
Linux 4.14.168
Guenter Roeck (3):
nios2: ksyms: Add missing symbol exports
hwmon: (w83627hf) Use request_muxed_region for Super-IO accesses
hwmon: (lm75) Fix write operations for negative temperatures
Gustavo A. R. Silva (1):
NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
H. Nikolaus Schaller (2):
mmc: sdio: fix wl1251 vendor id
mmc: core: fix wl1251 sdio quirks
Hans de Goede (1):
pwm: lpss: Release runtime-pm reference from the driver's remove callback
Hongbo Yao (1):
irqchip/gic-v3-its: fix some definitions of inner cacheability attributes
Hook, Gary (2):
crypto: ccp - fix AES CFB error exposed by new test vectors
crypto: ccp - Fix 3DES complaint from ccp-crypto module
Håkon Bugge (1):
RDMA/cma: Fix false error message
Icenowy Zheng (1):
clk: sunxi-ng: v3s: add the missing PLL_DDR1
Igor Konopko (1):
lightnvm: pblk: fix lock order in pblk_rb_tear_down_check
Igor Russkikh (1):
net: aquantia: fixed instack structure overflow
Israel Rukshin (1):
IB/iser: Pass the correct number of entries for dma mapped SGL
Iuliana Prodan (2):
crypto: caam - fix caam_dump_sg that iterates through scatterlist
crypto: caam - free resources in case caam_rng registration failed
Jack Morgenstein (1):
IB/mlx5: Add missing XRC options to QP optional params mask
Jakub Kicinski (3):
net: netem: fix backlog accounting for corrupted GSO frames
net: netem: fix error path for corrupted GSO frames
net: netem: correct the parent's backlog when corrupted packet was dropped
Jan Kara (1):
xfs: Sanity check flags of Q_XQUOTARM call
Jann Horn (1):
apparmor: don't try to replace stale label in ptrace access check
Jarkko Nikula (1):
mfd: intel-lpss: Add default I2C device properties for Gemini Lake
Jeffrey Hugo (2):
drm/msm/mdp5: Fix mdp5_cfg_init error return drm/msm/dsi: Implement reset correctly
Jernej Skrabec (1):
ARM: dts: sun8i-h3: Fix wifi in Beelink X2 DT
Jerome Brunet (2):
ASoC: fix valid stream condition
arm64: dts: meson: libretech-cc: set eMMC as removable
Jie Liu (1):
tipc: set sysctl_tipc_rmem and named_timeout right range
Jitendra Bhivare (1):
PCI: iproc: Remove PAXC slot check to allow VF support
Johannes Berg (3):
iwlwifi: mvm: fix A-MPDU reference assignment
ALSA: aoa: onyx: always initialize register read value
mac80211: accept deauth frames in IBSS mode
John Garry (1):
drm/hisilicon: hibmc: Don't overwrite fb helper surface depth
Jon Hunter (1):
dmaengine: tegra210-adma: Fix crash during probe
Jon Maloy (2):
tipc: tipc clang warning
tipc: reduce risk of wakeup queue starvation
Jonas Gorski (1):
MIPS: BCM63XX: drop unused and broken DSP platform device
Jose Abreu (1):
net: stmmac: gmac4+: Not all Unicast addresses may be available
Julian Wiedmann (1):
net/af_iucv: always register net_device notifier
Kangjie Lu (1):
net: sh_eth: fix a missing check of of_get_phy_mode
Kees Cook (1):
selftests/ipc: Fix msgque compiler warnings
Kelvin Cao (1):
switchtec: Remove immediate status check after submitting MRPC command
Kevin Mitchell (1):
iommu/amd: Make iommu_disable safer
Li Jin (1):
pinctrl: iproc-gpio: Fix incorrect pinconf configurations
Linus Torvalds (1):
Partially revert "kfifo: fix kfifo_alloc() and kfifo_init()"
Liu Jian (2):
driver: uio: fix possible memory leak in __uio_register_device
driver: uio: fix possible use-after-free in __uio_register_device
Loic Poulain (1):
arm64: dts: apq8016-sbc: Increase load on l11 for SDCARD
Lorenzo Bianconi (2):
mt7601u: fix bbp version check in mt7601u_wait_bbp_ready
ath9k: dynack: fix possible deadlock in ath_dynack_node_{de}init
Lu Baolu (2):
iommu/vt-d: Make kernel parameter igfx_off work with vIOMMU
iommu: Use right function to get group for device
Lyude Paul (1):
drm/dp_mst: Skip validating ports during destruction, just ref
Mao Wenan (2):
net: sonic: return NETDEV_TX_OK if failed to map buffer
net: sonic: replace dev_kfree_skb in sonic_send_packet
Marc Dionne (1):
afs: Fix large file support
Marek Szyprowski (2):
clocksource/drivers/exynos_mct: Fix error path in timer resources initialization
ARM: 8847/1: pm: fix HYP/SVC mode mismatch when MCPM is used
Mark Zhang (1):
net/mlx5: Fix mlx5_ifc_query_lag_out_bits
Martin Blumenstingl (1):
pwm: meson: Consider 128 a valid pre-divider
Martin Sperl (1):
spi: bcm2835aux: fix driver to not allow 65535 (=-1) cs-gpios
Masahiro Yamada (1):
kbuild: mark prepare0 as PHONY to fix external module build
Masami Hiramatsu (1):
x86, perf: Fix the dependency of the x86 insn decoder selftest
Matthias Kaehlcke (1):
thermal: cpu_cooling: Actually trace CPU load in thermal_power_cpu_get_power
Mattias Jacobsson (1):
platform/x86: wmi: fix potential null pointer dereference
Max Gurtovoy (1):
IB/iser: Fix dma_nents type definition
Maxime Ripard (3):
drm/sun4i: hdmi: Fix double flag assignation
arm64: dts: allwinner: a64: Add missing PIO clocks
ASoC: sun4i-i2s: RX and TX counter registers are swapped
Michael Chan (1):
bnxt_en: Fix ethtool selftest crash under error conditions.
Michael Ellerman (1):
powerpc/64s: Fix logic when handling unknown CPU features
Michael Kao (1):
thermal: mediatek: fix register index error
Michal Kalderon (1):
qed: iWARP - Use READ_ONCE and smp_store_release to access ep->state
Minas Harutyunyan (1):
dwc2: gadget: Fix completed transfer size calculation in DDMA
Ming Lei (1):
block: don't use bio->bi_vcnt to figure out segment number
Moni Shoua (1):
net/mlx5: Take lock with IRQs disabled to avoid deadlock
Mordechay Goodstein (1):
iwlwifi: mvm: avoid possible access out of array.
Moritz Fischer (1):
net: phy: fixed_phy: Fix fixed_phy not checking GPIO
Nathan Chancellor (2):
staging: rtlwifi: Use proper enum for return in halmac_parse_psd_data_88xx
misc: sgi-xp: Properly initialize buf in xpc_get_rsvd_page_pa
Nathan Huckleberry (1):
clk: qcom: Fix -Wunused-const-variable
Nathan Lynch (2):
powerpc/cacheinfo: add cacheinfo_teardown, cacheinfo_rebuild powerpc/pseries/mobility: rebuild cacheinfo hierarchy post-migration
Navid Emamdoost (1):
affs: fix a memory leak in affs_remount
Nicholas Mc Guire (2):
staging: r8822be: check kzalloc return or bail
media: cx23885: check allocation return
Nick Desaulniers (1):
mips: avoid explicit UB in assignment of mips_io_port_base
Nicolas Boichat (1):
ath10k: adjust skb length in ath10k_sdio_mbox_rx_packet
Nicolas Huaman (1):
ALSA: usb-audio: update quirk for B&W PX to remove microphone
Omar Sandoval (1):
btrfs: use correct count in btrfs_file_write_iter()
Pablo Neira Ayuso (1):
netfilter: nft_set_hash: fix lookups with fixed size hash on big endian
Pan Bian (1):
mmc: core: fix possible use after free of host
Parav Pandit (2):
vfio/mdev: Avoid release parent reference during error path vfio/mdev: Fix aborting mdev child device removal if one fails
Pawe? Chmiel (1):
media: s5p-jpeg: Correct step and max values for V4L2_CID_JPEG_RESTART_INTERVAL
Peter Rosin (1):
drm/sti: do not remove the drm_bridge that was never added
Peter Ujfalusi (1):
ASoC: ti: davinci-mcasp: Fix slot mask settings when using multiple AXRs
Petr Machata (2):
mlxsw: reg: QEEC: Add minimum shaper fields
vxlan: changelink: Fix handling of default remotes
Qian Cai (1):
x86/mm: Remove unused variable 'cpu'
Rafael J. Wysocki (2):
driver core: Do not resume suppliers under device_links_write_lock()
PM: sleep: Fix possible overflow in pm_system_cancel_wakeup()
Raju Rangoju (1):
RDMA/iw_cxgb4: Fix the unchecked ep dereference
Rashmica Gupta (1):
powerpc/mm: Check secondary hash page table
Ravi Bangoria (1):
perf/ioctl: Add check for the sample_period value
Rob Clark (1):
drm/msm/a3xx: remove TPL1 regs from snapshot
Robert Richter (1):
EDAC/mc: Fix edac_mc_find() in case no device is found
Robin Gong (1):
dmaengine: imx-sdma: fix size check for sdma script_number
Robin Murphy (1):
dmaengine: mv_xor: Use correct device for DMA API
Ruslan Bilovol (1):
usb: host: xhci-hub: fix extra endianness conversion
Russell King (1):
ARM: riscpc: fix lack of keyboard interrupts after irq conversion
Sagiv Ozeri (1):
RDMA/qedr: Fix incorrect device rate.
Sam Bobroff (1):
drm/radeon: fix bad DMA from INTERRUPT_CNTL2
Sameeh Jubran (4):
net: ena: fix swapped parameters when calling ena_com_indirect_table_fill_entry
net: ena: fix: Free napi resources when ena_up() fails
net: ena: fix incorrect test of supported hash function
net: ena: fix ena_com_fill_hash_function() implementation
Sameer Pujar (1):
dmaengine: tegra210-adma: restore channel status
Sara Sharon (1):
iwlwifi: mvm: fix RSS config command
Sowjanya Komatineni (5):
spi: tegra114: clear packed bit for unpacked mode
spi: tegra114: fix for unpacked mode transfers
spi: tegra114: terminate dma and reset on transfer timeout
spi: tegra114: flush fifos
spi: tegra114: configure dma burst size to fifo trig level
Spencer E. Olson (1):
staging: comedi: ni_mio_common: protect register write overflow
Stefan Agner (1):
ASoC: imx-sgtl5000: put of nodes if finding codec fails
Stefan Wahren (3):
staging: bcm2835-camera: Abort probe if there is no camera
mmc: sdhci-brcmstb: handle mmc_of_parse() errors during probe
net: qca_spi: Move reset_count to struct qcaspi
Stephen Boyd (1):
power: supply: Init device wakeup after device_add()
Stephen Hemminger (2):
netvsc: unshare skb in VF rx handler
hv_netvsc: flag software created hash value
Steve French (1):
cifs: fix rmmod regression in cifs.ko caused by force_sig changes
Steve Sistare (1):
scsi: megaraid_sas: reduce module load time
Steve Wise (2):
iw_cxgb4: use tos when importing the endpoint
iw_cxgb4: use tos when finding ipv6 routes
Sven Van Asbroeck (1):
usb: phy: twl6030-usb: fix possible use-after-free on remove
Takashi Iwai (2):
ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of()
ALSA: usb-audio: Handle the error from snd_usb_mixer_apply_create_quirk()
Thomas Gleixner (1):
x86/kgbd: Use NMI_VECTOR not APIC_DM_NMI
Tiezhu Yang (1):
MIPS: Loongson: Fix return value of loongson_hwmon_init
Tony Lindgren (1):
ARM: OMAP2+: Fix potentially uninitialized return value for _setup_reset()
Trond Myklebust (4):
NFS: Fix a soft lockup in the delegation recovery code NFS/pnfs: Bulk destroy of layouts needs to be safe w.r.t. umount NFSv4/flexfiles: Fix invalid deref in FF_LAYOUT_DEVID_NODE()
NFS: Don't interrupt file writeout due to fatal errors
Tung Nguyen (1):
tipc: fix wrong timeout input for tipc_wait_for_cond()
Uwe Kleine-König (1):
rtc: ds1307: rx8130: Fix alarm handling
Vadim Pasternak (1):
hwmon: (pmbus/tps53679) Fix driver info initialization in probe routine
Vasundhara Volam (1):
bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails
Vinod Koul (1):
net: dsa: qca8k: Enable delay for RGMII_ID mode
Vladimir Murzin (1):
ARM: 8848/1: virt: Align GIC version check with arm64 counterpart
Vladimir Oltean (1):
ARM: dts: ls1021: Fix SGMII PCS link remaining down after PHY disconnect
Vladimir Zapolskiy (5):
ARM: dts: lpc32xx: add required clocks property to keypad device node
ARM: dts: lpc32xx: reparent keypad controller to SIC1
ARM: dts: lpc32xx: fix ARM PrimeCell LCD controller variant
ARM: dts: lpc32xx: fix ARM PrimeCell LCD controller clocks property
ARM: dts: lpc32xx: phy3250: fix SD card regulator voltage
Wen Yang (2):
PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio()
net: pasemi: fix an use-after-free in pasemi_mac_phy_init()
Willem de Bruijn (1):
packet: in recvmsg msg_name return at least sizeof sockaddr_ll
Xi Wang (1):
RDMA/hns: Fixs hw access invalid dma memory error
Yangtao Li (13):
clk: highbank: fix refcount leak in hb_clk_init()
clk: qoriq: fix refcount leak in clockgen_init()
clk: socfpga: fix refcount leak
clk: samsung: exynos4: fix refcount leak in exynos4_get_xom()
clk: imx6q: fix refcount leak in imx6q_clocks_init()
clk: imx6sx: fix refcount leak in imx6sx_clocks_init()
clk: imx7d: fix refcount leak in imx7d_clocks_init()
clk: vf610: fix refcount leak in vf610_clocks_init()
clk: armada-370: fix refcount leak in a370_clk_init()
clk: kirkwood: fix refcount leak in kirkwood_clk_init()
clk: armada-xp: fix refcount leak in axp_clk_init()
clk: mv98dx3236: fix refcount leak in mv98dx3236_clk_init()
clk: dove: fix refcount leak in dove_clk_init()
Yong Wu (1):
iommu/mediatek: Fix iova_to_phys PA start for 4GB mode
Yoshihiro Shimoda (1):
net: phy: Fix not to call phy_resume() if PHY is not attached
YueHaibing (16):
exportfs: fix 'passing zero to ERR_PTR()' warning
drm/shmob: Fix return value check in shmob_drm_probe
crypto: brcm - Fix some set-but-not-used warning spi/topcliff_pch: Fix potential NULL dereference on allocation error
tty: ipwireless: Fix potential NULL pointer dereference
fbdev: chipsfb: remove set but not used variable 'size'
cdc-wdm: pass return value of recover_from_urb_loss
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame
ehea: Fix a copy-paste err in ehea_init_port_res
ARM: pxa: ssp: Fix "WARNING: invalid free of devm_ allocated data"
l2tp: Fix possible NULL pointer dereference
libertas_tf: Use correct channel range in lbtf_geo_init
ASoC: es8328: Fix copy-paste error in es8328_right_line_controls
ASoC: cs4349: Use PM ops 'cs4349_runtime_pm'
ASoC: wm8737: Fix copy-paste error in wm8737_snd_controls
act_mirred: Fix mirred_init_module error handling
Yunsheng Lin (1):
net: hns3: fix for vport->bw_limit overflow problem
Yuval Shaia (1):
IB/rxe: Fix incorrect cache cleanup in error flow
Zhu Yanjun (1):
IB/rxe: replace kvfree with vfree
Greg KH
maintainerMakefile +3 -3
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 167 +SUBLEVEL = 168 EXTRAVERSION = NAME = Petit Gorille
@@ -971,6 +971,7 @@ ifdef CONFIG_STACK_VALIDATION endif endif +PHONY += prepare0 ifeq ($(KBUILD_EXTMOD),) core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/
@@ -1065,8 +1066,7 @@ include/config/kernel.release: include/config/auto.conf FORCE # archprepare is used in arch Makefiles and when processed asm symlink, # version.h and scripts_basic is processed / created. -# Listed in dependency order -PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3 +PHONY += prepare archprepare prepare1 prepare2 prepare3 # prepare3 is used to check if we are building in a separate output directory, # and if so do:
arch/arm/boot/dts/lpc3250-phy3250.dts +2 -2
@@ -49,8 +49,8 @@ sd_reg: regulator@2 { compatible = "regulator-fixed"; regulator-name = "sd_reg"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; gpio = <&gpio 5 5 0>; enable-active-high; };
arch/arm/boot/dts/lpc32xx.dtsi +6 -4
@@ -139,11 +139,11 @@ }; clcd: clcd@31040000 { - compatible = "arm,pl110", "arm,primecell"; + compatible = "arm,pl111", "arm,primecell"; reg = <0x31040000 0x1000>; interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&clk LPC32XX_CLK_LCD>; - clock-names = "apb_pclk"; + clocks = <&clk LPC32XX_CLK_LCD>, <&clk LPC32XX_CLK_LCD>; + clock-names = "clcdclk", "apb_pclk"; status = "disabled"; };
@@ -462,7 +462,9 @@ key: key@40050000 { compatible = "nxp,lpc3220-key"; reg = <0x40050000 0x1000>; - interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk LPC32XX_CLK_KEY>; + interrupt-parent = <&sic1>; + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; };
arch/arm/boot/dts/ls1021a-twr.dts +8 -1
@@ -143,7 +143,7 @@ }; &enet0 { - tbi-handle = <&tbi1>; + tbi-handle = <&tbi0>; phy-handle = <&sgmii_phy2>; phy-connection-type = "sgmii"; status = "okay";
@@ -222,6 +222,13 @@ sgmii_phy2: ethernet-phy@2 { reg = <0x2>; }; + tbi0: tbi-phy@1f { + reg = <0x1f>; + device_type = "tbi-phy"; + }; +}; + +&mdio1 { tbi1: tbi-phy@1f { reg = <0x1f>; device_type = "tbi-phy";
arch/arm/boot/dts/ls1021a.dtsi +10 -1
@@ -562,13 +562,22 @@ }; mdio0: mdio@2d24000 { - compatible = "gianfar"; + compatible = "fsl,etsec2-mdio"; device_type = "mdio"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x2d24000 0x0 0x4000>; }; + mdio1: mdio@2d64000 { + compatible = "fsl,etsec2-mdio"; + device_type = "mdio"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x2d64000 0x0 0x4000>, + <0x0 0x2d50030 0x0 0x4>; + }; + ptp_clock@2d10e00 { compatible = "fsl,etsec-ptp"; reg = <0x0 0x2d10e00 0x0 0xb0>;
arch/arm/boot/dts/stm32h743i-eval.dts +1 -0
@@ -71,6 +71,7 @@ }; &adc_12 { + vdda-supply = <&vdda>; vref-supply = <&vdda>; status = "okay"; adc1: adc@0 {
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts +4 -0
@@ -79,6 +79,8 @@ wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */ + clocks = <&rtc 1>; + clock-names = "ext_clock"; }; sound_spdif {
@@ -128,6 +130,8 @@ pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins_a>; vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc3v3>; + mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; status = "okay";
arch/arm/common/mcpm_entry.c +1 -1
@@ -379,7 +379,7 @@ static int __init nocache_trampoline(unsigned long _arg)unsigned int cluster =MPIDR_AFFINITY_LEVEL (mpidr,1 );phys_reset_t phys_reset; -mcpm_set_entry_vector (cpu, cluster, cpu_resume); +mcpm_set_entry_vector (cpu, cluster, cpu_resume_no_hyp);setup_mm_for_reboot ();__mcpm_cpu_going_down (cpu, cluster);
arch/arm/include/asm/suspend.h +1 -0
@@ -10,6 +10,7 @@ struct sleep_save_sp { };extern void cpu_resume (void ); +extern void cpu_resume_no_hyp (void );extern void cpu_resume_arm (void );extern int cpu_suspend (unsigned long ,int (*)(unsigned long ));
arch/arm/kernel/hyp-stub.S +2 -2
@@ -180,8 +180,8 @@ ARM_BE8(orr r7, r7, #(1 << 25)) @ HSCTLR.EE @ Check whether GICv3 system registers are available mrc p15, 0, r7, c0, c1, 1 @ ID_PFR1 ubfx r7, r7, #28, #4 - cmp r7, #1 - bne 2f + teq r7, #0 + beq 2f @ Enable system register accesses mrc p15, 4, r7, c12, c9, 5 @ ICC_HSRE
arch/arm/kernel/sleep.S +12 -0
@@ -120,6 +120,14 @@ ENDPROC(cpu_resume_after_mmu) .text .align +#ifdef CONFIG_MCPM + .arm +THUMB( .thumb ) +ENTRY(cpu_resume_no_hyp) +ARM_BE8(setend be) @ ensure we are in BE mode + b no_hyp +#endif + #ifdef CONFIG_MMU .arm ENTRY(cpu_resume_arm)
@@ -135,6 +143,7 @@ ARM_BE8(setend be) @ ensure we are in BE mode bl __hyp_stub_install_secondary #endif safe_svcmode_maskall r1 +no_hyp: mov r1, #0 ALT_SMP(mrc p15, 0, r0, c0, c0, 5) ALT_UP_B(1f)
@@ -163,6 +172,9 @@ ENDPROC(cpu_resume) #ifdef CONFIG_MMU ENDPROC(cpu_resume_arm) +#endif +#ifdef CONFIG_MCPM +ENDPROC(cpu_resume_no_hyp) #endif .align 2
arch/arm/mach-omap2/omap_hwmod.c +1 -1
@@ -2530,7 +2530,7 @@ static void _setup_iclk_autoidle(struct omap_hwmod *oh)*/ static int _setup_reset (struct omap_hwmod *oh) { -int r; +int r =0 ;if (oh->_state != _HWMOD_STATE_INITIALIZED)return -EINVAL ;
arch/arm/mach-rpc/irq.c +2 -1
@@ -118,7 +118,7 @@ extern unsigned char rpc_default_fiq_start, rpc_default_fiq_end;void __init rpc_init_irq (void ) { -unsigned int irq, clr, set =0 ; +unsigned int irq, clr, set;iomd_writeb (0 ,IOMD_IRQMASKA );iomd_writeb (0 ,IOMD_IRQMASKB );
@@ -130,6 +130,7 @@ void __init rpc_init_irq(void)for (irq =0 ; irq <NR_IRQS ; irq++) { clr =IRQ_NOREQUEST ; + set =0 ;if (irq <=6 || (irq >=9 && irq <=15 )) clr |=IRQ_NOPROBE ;
arch/arm/plat-pxa/ssp.c +0 -6
@@ -230,18 +230,12 @@ static int pxa_ssp_probe(struct platform_device *pdev)static int pxa_ssp_remove (struct platform_device *pdev) { -struct resource *res;struct ssp_device *ssp; ssp =platform_get_drvdata (pdev);if (ssp ==NULL )return -ENODEV ; - res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); -release_mem_region (res->start,resource_size (res)); - -clk_put (ssp->clk); -mutex_lock (&ssp_lock);list_del (&ssp->node);mutex_unlock (&ssp_lock);
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +2 -1
@@ -274,7 +274,8 @@ interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&ccu 58>; + clocks = <&ccu 58>, <&osc24M>, <&rtc 0>; + clock-names = "apb", "hosc", "losc"; gpio-controller; #gpio-cells = <3>; interrupt-controller;
arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts +0 -1
@@ -226,7 +226,6 @@ cap-mmc-highspeed; mmc-ddr-3_3v; max-frequency = <50000000>; - non-removable; disable-wp; mmc-pwrseq = <&emmc_pwrseq>;
arch/arm64/boot/dts/arm/juno-clocks.dtsi +2 -2
@@ -8,10 +8,10 @@ */ / { /* SoC fixed clocks */ - soc_uartclk: refclk7273800hz { + soc_uartclk: refclk7372800hz { compatible = "fixed-clock"; #clock-cells = <0>; - clock-frequency = <7273800>; + clock-frequency = <7372800>; clock-output-names = "juno:uartclk"; };
arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +2 -0
@@ -458,6 +458,8 @@ l11 { regulator-min-microvolt = <1750000>; regulator-max-microvolt = <3337000>; + regulator-allow-set-load; + regulator-system-load = <200000>; }; l12 {
arch/m68k/amiga/cia.c +9 -0
@@ -88,10 +88,19 @@ static irqreturn_t cia_handler(int irq, void *dev_id)struct ciabase *base = dev_id;int mach_irq;unsigned char ints; +unsigned long flags; +/* Interrupts get disabled while the timer irq flag is cleared and +* the timer interrupt serviced. +*/ mach_irq = base->cia_irq; +local_irq_save (flags); ints =cia_set_irq (base,CIA_ICR_ALL ); amiga_custom.intreq = base->int_mask; +if (ints &1 ) +generic_handle_irq (mach_irq); +local_irq_restore (flags); + mach_irq++, ints >>=1 ;for (; ints; mach_irq++, ints >>=1 ) {if (ints &1 )generic_handle_irq (mach_irq);
arch/m68k/atari/ataints.c +2 -2
@@ -142,7 +142,7 @@ struct mfptimerbase { .name = "MFP Timer D" }; -static irqreturn_t mfptimer_handler (int irq,void *dev_id) +static irqreturn_t mfp_timer_d_handler (int irq,void *dev_id) {struct mfptimerbase *base = dev_id;int mach_irq;
@@ -344,7 +344,7 @@ void __init atari_init_IRQ(void) st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd &0xf0 ) |0x6 ;/* request timer D dispatch handler */ -if (request_irq (IRQ_MFP_TIMD , mfptimer_handler,IRQF_SHARED , +if (request_irq (IRQ_MFP_TIMD , mfp_timer_d_handler,IRQF_SHARED , stmfp_base.name, &stmfp_base))pr_err ("Couldn't register %s interrupt\n" , stmfp_base.name);
arch/m68k/atari/time.c +14 -1
@@ -24,6 +24,18 @@DEFINE_SPINLOCK (rtc_lock);EXPORT_SYMBOL_GPL (rtc_lock); +static irqreturn_t mfp_timer_c_handler (int irq,void *dev_id) +{ +irq_handler_t timer_routine = dev_id; +unsigned long flags; + +local_irq_save (flags); +timer_routine (0 ,NULL ); +local_irq_restore (flags); + +return IRQ_HANDLED ; +} +void __init atari_sched_init (irq_handler_t timer_routine) {
@@ -32,7 +44,8 @@ atari_sched_init(irq_handler_t timer_routine)/* start timer C, div = 1:100 */ st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd &15 ) |0x60 ;/* install interrupt service routine for MFP Timer C */ -if (request_irq (IRQ_MFP_TIMC , timer_routine,0 ,"timer" , timer_routine)) +if (request_irq (IRQ_MFP_TIMC , mfp_timer_c_handler,0 ,"timer" , + timer_routine))pr_err ("Couldn't register timer interrupt\n" ); }
arch/m68k/bvme6000/config.c +10 -10
@@ -45,11 +45,6 @@ extern int bvme6000_set_clock_mmss (unsigned long);extern void bvme6000_reset (void );void bvme6000_set_vectors (void ); -/* Save tick handler routine pointer, will point to xtime_update() in -* kernel/timer/timekeeping.c, called via bvme6000_process_int() */ - -static irq_handler_t tick_handler; -int __init bvme6000_parse_bootinfo (const struct bi_record *bi) {
@@ -159,12 +154,18 @@ irqreturn_t bvme6000_abort_int (int irq, void *dev_id)static irqreturn_t bvme6000_timer_int (int irq,void *dev_id) { +irq_handler_t timer_routine = dev_id; +unsigned long flags;volatile RtcPtr_t rtc = (RtcPtr_t )BVME_RTC_BASE ; -unsigned char msr = rtc->msr &0xc0 ; +unsigned char msr; +local_irq_save (flags); + msr = rtc->msr &0xc0 ; rtc->msr = msr |0x20 ;/* Ack the interrupt */ +timer_routine (0 ,NULL ); +local_irq_restore (flags); -return tick_handler (irq, dev_id); +return IRQ_HANDLED ; }/*
@@ -183,9 +184,8 @@ void bvme6000_sched_init (irq_handler_t timer_routine) rtc->msr =0 ;/* Ensure timer registers accessible */ - tick_handler = timer_routine; -if (request_irq (BVME_IRQ_RTC , bvme6000_timer_int,0 , -"timer" , bvme6000_timer_int)) +if (request_irq (BVME_IRQ_RTC , bvme6000_timer_int,0 ,"timer" , + timer_routine))panic ("Couldn't register timer int" ); rtc->t1cr_omr =0x04 ;/* Mode 2, ext clk */
arch/m68k/hp300/time.c +8 -2
@@ -38,13 +38,19 @@static irqreturn_t hp300_tick (int irq,void *dev_id) { +irq_handler_t timer_routine = dev_id; +unsigned long flags;unsigned long tmp; -irq_handler_t vector = dev_id; + +local_irq_save (flags);in_8 (CLOCKBASE +CLKSR ); asmvolatile ("movpw %1@(5),%0" :"=d" (tmp) :"a" (CLOCKBASE )); +timer_routine (0 ,NULL ); +local_irq_restore (flags); +/* Turn off the network and SCSI leds */ blinken_leds (0 ,0xe0 ); -return vector (irq,NULL ); +return IRQ_HANDLED ; }u32 hp300_gettimeoffset (void )
arch/m68k/mac/via.c +70 -49
152 lines not on this page · raw message
arch/m68k/mvme147/config.c +10 -8
@@ -46,11 +46,6 @@ extern void mvme147_reset (void);static int bcd2int (unsigned char b); -/* Save tick handler routine pointer, will point to xtime_update() in -* kernel/time/timekeeping.c, called via mvme147_process_int() */ - -irq_handler_t tick_handler; -int __init mvme147_parse_bootinfo (const struct bi_record *bi) {
@@ -106,16 +101,23 @@ void __init config_mvme147(void)static irqreturn_t mvme147_timer_int (int irq,void *dev_id) { +irq_handler_t timer_routine = dev_id; +unsigned long flags; + +local_irq_save (flags); m147_pcc->t1_int_cntrl =PCC_TIMER_INT_CLR ; m147_pcc->t1_int_cntrl =PCC_INT_ENAB |PCC_LEVEL_TIMER1 ; -return tick_handler (irq, dev_id); +timer_routine (0 ,NULL ); +local_irq_restore (flags); + +return IRQ_HANDLED ; }void mvme147_sched_init (irq_handler_t timer_routine) { - tick_handler = timer_routine; -if (request_irq (PCC_IRQ_TIMER1 , mvme147_timer_int,0 ,"timer 1" ,NULL )) +if (request_irq (PCC_IRQ_TIMER1 , mvme147_timer_int,0 ,"timer 1" , + timer_routine))pr_err ("Couldn't register timer interrupt\n" );/* Init the clock with a value */
arch/m68k/mvme16x/config.c +11 -10
@@ -51,11 +51,6 @@ extern void mvme16x_reset (void);int bcd2int (unsigned char b); -/* Save tick handler routine pointer, will point to xtime_update() in -* kernel/time/timekeeping.c, called via mvme16x_process_int() */ - -static irq_handler_t tick_handler; -unsigned short mvme16x_config;EXPORT_SYMBOL (mvme16x_config);
@@ -354,8 +349,15 @@ static irqreturn_t mvme16x_abort_int (int irq, void *dev_id)static irqreturn_t mvme16x_timer_int (int irq,void *dev_id) { - *(volatile unsigned char *)0xfff4201b |=8 ; -return tick_handler (irq, dev_id); +irq_handler_t timer_routine = dev_id; +unsigned long flags; + +local_irq_save (flags); + *(volatile unsigned char *)0xfff4201b |=8 ; +timer_routine (0 ,NULL ); +local_irq_restore (flags); + +return IRQ_HANDLED ; }void mvme16x_sched_init (irq_handler_t timer_routine)
@@ -363,14 +365,13 @@ void mvme16x_sched_init (irq_handler_t timer_routine)uint16_t brdno =be16_to_cpu (mvme_bdid.brdno);int irq; - tick_handler = timer_routine;/* Using PCCchip2 or MC2 chip tick timer 1 */ *(volatile unsigned long *)0xfff42008 =0 ; *(volatile unsigned long *)0xfff42004 =10000 ;/* 10ms */ *(volatile unsigned char *)0xfff42017 |=3 ; *(volatile unsigned char *)0xfff4201b =0x16 ; -if (request_irq (MVME16x_IRQ_TIMER, mvme16x_timer_int,0 , -"timer" , mvme16x_timer_int)) +if (request_irq (MVME16x_IRQ_TIMER, mvme16x_timer_int,0 ,"timer" , + timer_routine))panic ("Couldn't register timer int" );if (brdno ==0x0162 || brdno ==0x172 )
arch/m68k/q40/q40ints.c +11 -8
@@ -127,10 +127,10 @@ void q40_mksound(unsigned int hz, unsigned int ticks) sound_ticks = ticks <<1 ; } -static irq_handler_t q40_timer_routine; - -static irqreturn_t q40_timer_int (int irq,void * dev) +static irqreturn_t q40_timer_int (int irq,void *dev_id) { +irq_handler_t timer_routine = dev_id; + ql_ticks = ql_ticks ?0 :1 ;if (sound_ticks) {unsigned char sval=(sound_ticks &1 ) ?128 -SVOL :128 +SVOL ;
@@ -139,8 +139,13 @@ static irqreturn_t q40_timer_int (int irq, void * dev) *DAC_RIGHT =sval; } -if (!ql_ticks) -q40_timer_routine (irq, dev); +if (!ql_ticks) { +unsigned long flags; + +local_irq_save (flags); +timer_routine (0 ,NULL ); +local_irq_restore (flags); + }return IRQ_HANDLED ; }
@@ -148,11 +153,9 @@ void q40_sched_init (irq_handler_t timer_routine) {int timer_irq; - q40_timer_routine = timer_routine; timer_irq =Q40_IRQ_FRAME ; -if (request_irq (timer_irq, q40_timer_int,0 , -"timer" , q40_timer_int)) +if (request_irq (timer_irq, q40_timer_int,0 ,"timer" , timer_routine))panic ("Couldn't register timer int" );master_outb (-1 ,FRAME_CLEAR_REG );
arch/m68k/sun3/sun3ints.c +3 -0
@@ -61,8 +61,10 @@ static irqreturn_t sun3_int7(int irq, void *dev_id)static irqreturn_t sun3_int5 (int irq,void *dev_id) { +unsigned long flags;unsigned int cnt; +local_irq_save (flags);#ifdef CONFIG_SUN3 intersil_clear ();#endif
@@ -76,6 +78,7 @@ static irqreturn_t sun3_int5(int irq, void *dev_id) cnt =kstat_irqs_cpu (irq,0 );if (!(cnt %20 ))sun3_leds (led_pattern[cnt %160 /20 ]); +local_irq_restore (flags);return IRQ_HANDLED ; }
arch/m68k/sun3x/time.c +10 -6
@@ -78,15 +78,19 @@ u32 sun3x_gettimeoffset(void) }#if 0 -static void sun3x_timer_tick (int irq,void *dev_id,struct pt_regs *regs) +static irqreturn_t sun3x_timer_tick (int irq,void *dev_id) { -void (*vector)(int ,void *,struct pt_regs *) = dev_id; +irq_handler_t timer_routine = dev_id; +unsigned long flags; -/* Clear the pending interrupt - pulse the enable line low */ -disable_irq (5 ); -enable_irq (5 ); +local_irq_save (flags); +/* Clear the pending interrupt - pulse the enable line low */ +disable_irq (5 ); +enable_irq (5 ); +timer_routine (0 ,NULL ); +local_irq_restore (flags); -vector (irq,NULL , regs); +return IRQ_HANDLED ; }#endif
arch/mips/bcm63xx/Makefile +3 -3
@@ -1,8 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 obj-y += clk.o cpu.o cs.o gpio.o irq.o nvram.o prom.o reset.o \ - setup.o timer.o dev-dsp.o dev-enet.o dev-flash.o \ - dev-pcmcia.o dev-rng.o dev-spi.o dev-hsspi.o dev-uart.o \ - dev-wdt.o dev-usb-usbd.o + setup.o timer.o dev-enet.o dev-flash.o dev-pcmcia.o \ + dev-rng.o dev-spi.o dev-hsspi.o dev-uart.o dev-wdt.o \ + dev-usb-usbd.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o obj-y += boards/
arch/mips/bcm63xx/boards/board_bcm963xx.c +0 -20
@@ -23,7 +23,6 @@#include <bcm63xx_nvram.h> #include <bcm63xx_dev_pci.h> #include <bcm63xx_dev_enet.h> -#include <bcm63xx_dev_dsp.h> #include <bcm63xx_dev_flash.h> #include <bcm63xx_dev_hsspi.h> #include <bcm63xx_dev_pcmcia.h>
@@ -289,14 +288,6 @@ static struct board_info __initdata board_96348gw_10 = { .has_pccard = 1, .has_ehci0 = 1, - .has_dsp = 1, - .dsp = { - .gpio_rst = 6, - .gpio_int = 34, - .cs = 2, - .ext_irq = 2, - }, - .leds = { { .name = "adsl-fail",
@@ -401,14 +392,6 @@ static struct board_info __initdata board_96348gw = { .has_ohci0 = 1, - .has_dsp = 1, - .dsp = { - .gpio_rst = 6, - .gpio_int = 34, - .ext_irq = 2, - .cs = 2, - }, - .leds = { { .name = "adsl-fail",
@@ -898,9 +881,6 @@ int __init board_register_devices(void)if (board.has_usbd)bcm63xx_usbd_register (&board.usbd); -if (board.has_dsp) -bcm63xx_dsp_register (&board.dsp); -/* Generate MAC address for WLAN and register our SPROM, * do this after registering enet devices */
arch/mips/bcm63xx/dev-dsp.c deleted +0 -56
56 lines not on this page · raw message
arch/mips/include/asm/io.h +2 -12
@@ -60,21 +60,11 @@* instruction, so the lower 16 bits must be zero. Should be true on * on any sane architecture; generic code does not use this assumption. */ -extern const unsigned long mips_io_port_base; +extern unsigned long mips_io_port_base; -/* -* Gcc will generate code to load the value of mips_io_port_base after each -* function call which may be fairly wasteful in some cases. So we don't -* play quite by the book. We tell gcc mips_io_port_base is a long variable -* which solves the code generation issue. Now we need to violate the -* aliasing rules a little to make initialization possible and finally we -* will need the barrier() to fight side effects of the aliasing chat. -* This trickery will eventually collapse under gcc's optimizer. Oh well. -*/ static inline void set_io_port_base (unsigned long base) { - * (unsigned long *) &mips_io_port_base = base; -barrier (); + mips_io_port_base = base; }/*
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_dsp.h deleted +0 -14
@@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -#ifndef __BCM63XX_DSP_H -#define __BCM63XX_DSP_H - -struct bcm63xx_dsp_platform_data { -unsigned gpio_rst; -unsigned gpio_int; -unsigned cs; -unsigned ext_irq; -}; - -int __init bcm63xx_dsp_register (const struct bcm63xx_dsp_platform_data *pd); - -#endif /* __BCM63XX_DSP_H */
arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h +0 -5
@@ -7,7 +7,6 @@#include <linux/leds.h> #include <bcm63xx_dev_enet.h> #include <bcm63xx_dev_usb_usbd.h> -#include <bcm63xx_dev_dsp.h> /* * flash mapping
@@ -31,7 +30,6 @@ struct board_info { unsigned int has_ohci0:1; unsigned int has_ehci0:1; unsigned int has_usbd:1; - unsigned int has_dsp:1; unsigned int has_uart0:1; unsigned int has_uart1:1;
@@ -43,9 +41,6 @@ struct board_info {/* USB config */ struct bcm63xx_usbd_platform_data usbd; -/* DSP config */ -struct bcm63xx_dsp_platform_data dsp; -/* GPIO LEDs */ struct gpio_led leds[5 ];
arch/mips/kernel/setup.c +1 -1
@@ -75,7 +75,7 @@ static char __initdata builtin_cmdline[COMMAND_LINE_SIZE] = CONFIG_CMDLINE;* mips_io_port_base is the begin of the address space to which x86 style * I/O ports are mapped. */ -const unsigned long mips_io_port_base =-1 ; +unsigned long mips_io_port_base =-1 ;EXPORT_SYMBOL (mips_io_port_base);static struct resource code_resource = { .name ="Kernel code" , };
arch/nios2/kernel/nios2_ksyms.c +12 -0
@@ -9,12 +9,20 @@#include <linux/export.h> #include <linux/string.h> +#include <asm/cacheflush.h> +#include <asm/pgtable.h> +/* string functions */ EXPORT_SYMBOL (memcpy);EXPORT_SYMBOL (memset);EXPORT_SYMBOL (memmove); +/* memory management */ + +EXPORT_SYMBOL (empty_zero_page); +EXPORT_SYMBOL (flush_icache_range); +/* * libgcc functions - functions that are used internally by the * compiler... (prototypes are not correct though, but that
@@ -31,3 +39,7 @@ DECLARE_EXPORT(__udivsi3);DECLARE_EXPORT (__umoddi3);DECLARE_EXPORT (__umodsi3);DECLARE_EXPORT (__muldi3); +DECLARE_EXPORT (__ucmpdi2); +DECLARE_EXPORT (__lshrdi3); +DECLARE_EXPORT (__ashldi3); +DECLARE_EXPORT (__ashrdi3);
arch/powerpc/Makefile +2 -0
@@ -385,7 +385,9 @@ vdso_install: ifeq ($(CONFIG_PPC64),y) $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@ endif +ifdef CONFIG_VDSO32 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@ +endif archclean: $(Q)$(MAKE) $(clean)=$(boot)
arch/powerpc/include/asm/archrandom.h +1 -1
@@ -28,7 +28,7 @@ static inline int arch_get_random_seed_int(unsigned int *v)unsigned long val;int rc; - rc =arch_get_random_long (&val); + rc =arch_get_random_seed_long (&val);if (rc) *v = val;
arch/powerpc/kernel/cacheinfo.c +21 -0
@@ -865,4 +865,25 @@ void cacheinfo_cpu_offline(unsigned int cpu_id)if (cache) cache_cpu_clear(cache, cpu_id); } + +void cacheinfo_teardown (void ) +{ +unsigned int cpu; + +lockdep_assert_cpus_held (); + +for_each_online_cpu (cpu) +cacheinfo_cpu_offline (cpu); +} + +void cacheinfo_rebuild (void ) +{ +unsigned int cpu; + +lockdep_assert_cpus_held (); + +for_each_online_cpu (cpu) +cacheinfo_cpu_online (cpu); +} +#endif /* (CONFIG_PPC_PSERIES && CONFIG_SUSPEND) || CONFIG_HOTPLUG_CPU */
arch/powerpc/kernel/cacheinfo.h +4 -0
@@ -6,4 +6,8 @@extern void cacheinfo_cpu_online (unsigned int cpu_id);extern void cacheinfo_cpu_offline (unsigned int cpu_id); +/* Allow migration/suspend to tear down and rebuild the hierarchy. */ +extern void cacheinfo_teardown (void ); +extern void cacheinfo_rebuild (void ); +#endif /* _PPC_CACHEINFO_H */
arch/powerpc/kernel/dt_cpu_ftrs.c +7 -10
@@ -705,8 +705,10 @@ static bool __init cpufeatures_process_feature(struct dt_cpu_feature *f) m = &dt_cpu_feature_match_table[i];if (!strcmp (f->name, m->name)) { known = true; -if (m->enable (f)) +if (m->enable (f)) { + cur_cpu_spec->cpu_features |= m->cpu_ftr_bit_mask;break ; + }pr_info ("not enabling: %s (disabled or unsupported by kernel)\n" , f->name);
@@ -714,17 +716,12 @@ static bool __init cpufeatures_process_feature(struct dt_cpu_feature *f) } } -if (!known && enable_unknown) { -if (!feat_try_enable_unknown (f)) { -pr_info ("not enabling: %s (unknown and unsupported by kernel)\n" , - f->name); -return false; - } +if (!known && (!enable_unknown || !feat_try_enable_unknown (f))) { +pr_info ("not enabling: %s (unknown and unsupported by kernel)\n" , + f->name); +return false; } -if (m->cpu_ftr_bit_mask) - cur_cpu_spec->cpu_features |= m->cpu_ftr_bit_mask; -if (known)pr_debug ("enabling: %s\n" , f->name);else
arch/powerpc/kvm/book3s_64_vio.c +0 -1
@@ -134,7 +134,6 @@ extern void kvm_spapr_tce_release_iommu_group(struct kvm *kvm,continue ;kref_put (&stit->kref, kvm_spapr_tce_liobn_put); -return ; } } }
arch/powerpc/mm/dump_hashpagetable.c +1 -1
@@ -343,7 +343,7 @@ static unsigned long hpte_find(struct pg_state *st, unsigned long ea, int psize)/* Look in secondary table */ if (slot ==-1 ) - slot =base_hpte_find (ea, psize, true, &v, &r); + slot =base_hpte_find (ea, psize, false, &v, &r);/* No entry found */ if (slot ==-1 )
arch/powerpc/platforms/pseries/mobility.c +10 -0
@@ -23,6 +23,7 @@#include <asm/machdep.h> #include <asm/rtas.h> #include "pseries.h" +#include "../../kernel/cacheinfo.h" static struct kobject *mobility_kobj;
@@ -359,11 +360,20 @@ void post_mobility_fixup(void)*/ cpus_read_lock (); +/* +* It's common for the destination firmware to replace cache +* nodes. Release all of the cacheinfo hierarchy's references +* before updating the device tree. +*/ +cacheinfo_teardown (); + rc =pseries_devicetree_update (MIGRATION_SCOPE );if (rc)printk (KERN_ERR "Post-mobility device tree update " "failed: %d\n" , rc); +cacheinfo_rebuild (); +cpus_read_unlock ();/* Possibly switch to a new RFI flush type */
arch/x86/Kconfig.debug +1 -1
@@ -189,7 +189,7 @@ config HAVE_MMIOTRACE_SUPPORT config X86_DECODER_SELFTEST bool "x86 instruction decoder selftest" - depends on DEBUG_KERNEL && KPROBES + depends on DEBUG_KERNEL && INSTRUCTION_DECODER depends on !COMPILE_TEST ---help--- Perform x86 instruction decoder selftests at build time.
arch/x86/kernel/kgdb.c +1 -1
@@ -438,7 +438,7 @@ static void kgdb_disable_hw_debug(struct pt_regs *regs)*/ void kgdb_roundup_cpus (unsigned long flags) { - apic->send_IPI_allbutself (APIC_DM_NMI ); + apic->send_IPI_allbutself (NMI_VECTOR ); }#endif
arch/x86/mm/tlb.c +0 -3
@@ -651,9 +651,6 @@ void native_flush_tlb_others(const struct cpumask *cpumask,* that UV should be updated so that smp_call_function_many(), * etc, are optimal on UV. */ -unsigned int cpu; - - cpu =smp_processor_id (); cpumask =uv_flush_tlb_others (cpumask, info);if (cpumask) smp_call_function_many(cpumask, flush_tlb_func_remote,
block/blk-merge.c +1 -7
@@ -299,13 +299,7 @@ void blk_recalc_rq_segments(struct request *rq)void blk_recount_segments (struct request_queue *q,struct bio *bio) { -unsigned short seg_cnt; - -/* estimate segment number by bi_vcnt for non-cloned bio */ -if (bio_flagged (bio,BIO_CLONED )) - seg_cnt =bio_segments (bio); -else - seg_cnt = bio->bi_vcnt; +unsigned short seg_cnt =bio_segments (bio);if (test_bit (QUEUE_FLAG_NO_SG_MERGE , &q->queue_flags) && (seg_cnt <queue_max_segments (q)))
crypto/pcrypt.c +1 -1
@@ -394,7 +394,7 @@ static int pcrypt_sysfs_add(struct padata_instance *pinst, const char *name)int ret; pinst->kobj.kset = pcrypt_kset; - ret =kobject_add (&pinst->kobj,NULL , name); + ret =kobject_add (&pinst->kobj,NULL ,"%s" , name);if (!ret)kobject_uevent (&pinst->kobj,KOBJ_ADD );
crypto/tgr192.c +3 -3
@@ -25,8 +25,9 @@#include <linux/init.h> #include <linux/module.h> #include <linux/mm.h> -#include <asm/byteorder.h> #include <linux/types.h> +#include <asm/byteorder.h> +#include <asm/unaligned.h> #define TGR192_DIGEST_SIZE 24#define TGR160_DIGEST_SIZE 20
@@ -468,10 +469,9 @@ static void tgr192_transform(struct tgr192_ctx *tctx, const u8 * data)u64 a, b, c, aa, bb, cc;u64 x[8 ];int i; -const __le64 *ptr = (const __le64 *)data;for (i =0 ; i <8 ; i++) - x[i] =le64_to_cpu (ptr[i]); + x[i] =get_unaligned_le64 (data + i *sizeof (__le64));/* save */ a = aa = tctx->a;
drivers/ata/libahci.c +0 -1
@@ -191,7 +191,6 @@ struct ata_port_operations ahci_pmp_retry_srst_ops = {EXPORT_SYMBOL_GPL (ahci_pmp_retry_srst_ops);static bool ahci_em_messages__read_mostly = true; -EXPORT_SYMBOL_GPL (ahci_em_messages);module_param (ahci_em_messages, bool,0444 );/* add other LED protocol types when they become supported */ MODULE_PARM_DESC(ahci_em_messages,
drivers/base/core.c +14 -6
@@ -180,11 +180,20 @@ struct device_link *device_link_add(struct device *consumer, struct device *supplier, u32 flags) {struct device_link *link; +bool rpm_put_supplier = false;if (!consumer || !supplier || ((flags &DL_FLAG_STATELESS ) && (flags &DL_FLAG_AUTOREMOVE )))return NULL ; +if (flags &DL_FLAG_PM_RUNTIME && flags &DL_FLAG_RPM_ACTIVE ) { +if (pm_runtime_get_sync (supplier) <0 ) { +pm_runtime_put_noidle (supplier); +return NULL ; + } + rpm_put_supplier = true; + } +device_links_write_lock ();device_pm_lock ();
@@ -209,13 +218,8 @@ struct device_link *device_link_add(struct device *consumer,if (flags &DL_FLAG_PM_RUNTIME ) {if (flags &DL_FLAG_RPM_ACTIVE ) { -if (pm_runtime_get_sync (supplier) <0 ) { -pm_runtime_put_noidle (supplier); -kfree (link); - link =NULL ; - goto out; - } link->rpm_active = true; + rpm_put_supplier = false; }pm_runtime_new_link (consumer);/*
@@ -286,6 +290,10 @@ struct device_link *device_link_add(struct device *consumer, out:device_pm_unlock ();device_links_write_unlock (); + +if (rpm_put_supplier) +pm_runtime_put (supplier); +return link; }EXPORT_SYMBOL_GPL (device_link_add);
drivers/base/power/wakeup.c +1 -1
@@ -877,7 +877,7 @@ EXPORT_SYMBOL_GPL(pm_system_wakeup);void pm_system_cancel_wakeup (void ) { -atomic_dec (&pm_abort_suspend); +atomic_dec_if_positive (&pm_abort_suspend); }void pm_wakeup_clear (bool reset)
drivers/bcma/driver_pci.c +2 -2
@@ -78,7 +78,7 @@ static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u16 device, u8 address) v |= (address <<BCMA_CORE_PCI_MDIODATA_REGADDR_SHF_OLD ); } - v =BCMA_CORE_PCI_MDIODATA_START ; + v |=BCMA_CORE_PCI_MDIODATA_START ; v |=BCMA_CORE_PCI_MDIODATA_READ ; v |=BCMA_CORE_PCI_MDIODATA_TA ;
@@ -121,7 +121,7 @@ static void bcma_pcie_mdio_write(struct bcma_drv_pci *pc, u16 device, v |= (address <<BCMA_CORE_PCI_MDIODATA_REGADDR_SHF_OLD ); } - v =BCMA_CORE_PCI_MDIODATA_START ; + v |=BCMA_CORE_PCI_MDIODATA_START ; v |=BCMA_CORE_PCI_MDIODATA_WRITE ; v |=BCMA_CORE_PCI_MDIODATA_TA ; v |= data;
drivers/block/drbd/drbd_main.c +2 -0
@@ -334,6 +334,8 @@ static int drbd_thread_setup(void *arg) thi->name[0 ], resource->name); +allow_kernel_signal (DRBD_SIGKILL ); +allow_kernel_signal (SIGXCPU ); restart: retval = thi->function (thi);
drivers/clk/clk-highbank.c +1 -0
@@ -293,6 +293,7 @@ static __init struct clk *hb_clk_init(struct device_node *node, const struct clk/* Map system registers */ srnp =of_find_compatible_node (NULL ,NULL ,"calxeda,hb-sregs" ); hb_clk->reg =of_iomap (srnp,0 ); +of_node_put (srnp);BUG_ON (!hb_clk->reg); hb_clk->reg += reg;
drivers/clk/clk-qoriq.c +1 -0
@@ -1382,6 +1382,7 @@ static void __init clockgen_init(struct device_node *np)pr_err ("%s: Couldn't map %pOF regs\n" , __func__, guts); } +of_node_put (guts); } }
drivers/clk/imx/clk-imx6q.c +1 -0
@@ -431,6 +431,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) np =of_find_compatible_node (NULL ,NULL ,"fsl,imx6q-anatop" ); anatop_base = base =of_iomap (np,0 );WARN_ON (!base); +of_node_put (np);/* Audio/video PLL post dividers do not work on i.MX6q revision 1.0 */ if (clk_on_imx6q () &&imx_get_soc_revision () ==IMX_CHIP_REVISION_1_0 ) {
drivers/clk/imx/clk-imx6sx.c +1 -0
@@ -164,6 +164,7 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) np =of_find_compatible_node (NULL ,NULL ,"fsl,imx6sx-anatop" ); base =of_iomap (np,0 );WARN_ON (!base); +of_node_put (np); clks[IMX6SX_PLL1_BYPASS_SRC ] =imx_clk_mux ("pll1_bypass_src" , base +0x00 ,14 ,1 , pll_bypass_src_sels,ARRAY_SIZE (pll_bypass_src_sels)); clks[IMX6SX_PLL2_BYPASS_SRC ] =imx_clk_mux ("pll2_bypass_src" , base +0x30 ,14 ,1 , pll_bypass_src_sels,ARRAY_SIZE (pll_bypass_src_sels));
drivers/clk/imx/clk-imx7d.c +1 -0
@@ -416,6 +416,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) np =of_find_compatible_node (NULL ,NULL ,"fsl,imx7d-anatop" ); base =of_iomap (np,0 );WARN_ON (!base); +of_node_put (np); clks[IMX7D_PLL_ARM_MAIN_SRC ] =imx_clk_mux ("pll_arm_main_src" , base +0x60 ,14 ,2 , pll_bypass_src_sel,ARRAY_SIZE (pll_bypass_src_sel)); clks[IMX7D_PLL_DRAM_MAIN_SRC ] =imx_clk_mux ("pll_dram_main_src" , base +0x70 ,14 ,2 , pll_bypass_src_sel,ARRAY_SIZE (pll_bypass_src_sel));
drivers/clk/imx/clk-vf610.c +1 -0
@@ -203,6 +203,7 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) np =of_find_compatible_node (NULL ,NULL ,"fsl,vf610-anatop" ); anatop_base =of_iomap (np,0 );BUG_ON (!anatop_base); +of_node_put (np); np = ccm_node; ccm_base =of_iomap (np,0 );
drivers/clk/mvebu/armada-370.c +3 -1
@@ -177,8 +177,10 @@ static void __init a370_clk_init(struct device_node *np)mvebu_coreclk_setup (np, &a370_coreclks); -if (cgnp) +if (cgnp) {mvebu_clk_gating_setup (cgnp, a370_gating_desc); +of_node_put (cgnp); + } }CLK_OF_DECLARE (a370_clk,"marvell,armada-370-core-clock" , a370_clk_init);
drivers/clk/mvebu/armada-xp.c +3 -1
@@ -228,7 +228,9 @@ static void __init axp_clk_init(struct device_node *np)mvebu_coreclk_setup (np, &axp_coreclks); -if (cgnp) +if (cgnp) {mvebu_clk_gating_setup (cgnp, axp_gating_desc); +of_node_put (cgnp); + } }CLK_OF_DECLARE (axp_clk,"marvell,armada-xp-core-clock" , axp_clk_init);
drivers/clk/mvebu/dove.c +6 -2
@@ -190,10 +190,14 @@ static void __init dove_clk_init(struct device_node *np)mvebu_coreclk_setup (np, &dove_coreclks); -if (ddnp) +if (ddnp) {dove_divider_clk_init (ddnp); +of_node_put (ddnp); + } -if (cgnp) +if (cgnp) {mvebu_clk_gating_setup (cgnp, dove_gating_desc); +of_node_put (cgnp); + } }CLK_OF_DECLARE (dove_clk,"marvell,dove-core-clock" , dove_clk_init);
drivers/clk/mvebu/kirkwood.c +2 -0
@@ -333,6 +333,8 @@ static void __init kirkwood_clk_init(struct device_node *np)if (cgnp) {mvebu_clk_gating_setup (cgnp, kirkwood_gating_desc);kirkwood_clk_muxing_setup (cgnp, kirkwood_mux_desc); + +of_node_put (cgnp); } } CLK_OF_DECLARE(kirkwood_clk, "marvell,kirkwood-core-clock",
drivers/clk/mvebu/mv98dx3236.c +3 -1
@@ -174,7 +174,9 @@ static void __init mv98dx3236_clk_init(struct device_node *np)mvebu_coreclk_setup (np, &mv98dx3236_core_clocks); -if (cgnp) +if (cgnp) {mvebu_clk_gating_setup (cgnp, mv98dx3236_gating_desc); +of_node_put (cgnp); + } }CLK_OF_DECLARE (mv98dx3236_clk,"marvell,mv98dx3236-core-clock" , mv98dx3236_clk_init);
drivers/clk/qcom/gcc-msm8996.c +0 -36
@@ -140,22 +140,6 @@ static const char * const gcc_xo_gpll0_gpll4_gpll0_early_div[] = {"gpll0_early_div" }; -static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div_map[] = { - {P_XO ,0 }, - {P_GPLL0 ,1 }, - {P_GPLL2 ,2 }, - {P_GPLL3 ,3 }, - {P_GPLL0_EARLY_DIV ,6 } -}; - -static const char *const gcc_xo_gpll0_gpll2_gpll3_gpll0_early_div[] = { -"xo" , -"gpll0" , -"gpll2" , -"gpll3" , -"gpll0_early_div" -}; -static const struct parent_map gcc_xo_gpll0_gpll1_early_div_gpll1_gpll4_gpll0_early_div_map[] = { {P_XO ,0 }, {P_GPLL0 ,1 },
@@ -194,26 +178,6 @@ static const char * const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll2_early_gpll0_early"gpll0_early_div" }; -static const struct parent_map gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div_map[] = { - {P_XO ,0 }, - {P_GPLL0 ,1 }, - {P_GPLL2 ,2 }, - {P_GPLL3 ,3 }, - {P_GPLL1 ,4 }, - {P_GPLL4 ,5 }, - {P_GPLL0_EARLY_DIV ,6 } -}; - -static const char *const gcc_xo_gpll0_gpll2_gpll3_gpll1_gpll4_gpll0_early_div[] = { -"xo" , -"gpll0" , -"gpll2" , -"gpll3" , -"gpll1" , -"gpll4" , -"gpll0_early_div" -}; -static struct clk_fixed_factor xo = { .mult =1 , .div =1 ,
drivers/clk/samsung/clk-exynos4.c +1 -0
@@ -1240,6 +1240,7 @@ static unsigned long __init exynos4_get_xom(void) xom =readl (chipid_base +8 );iounmap (chipid_base); +of_node_put (np); }return xom;
drivers/clk/socfpga/clk-pll-a10.c +1 -0
@@ -95,6 +95,7 @@ static struct clk * __init __socfpga_pll_init(struct device_node *node, clkmgr_np =of_find_compatible_node (NULL ,NULL ,"altr,clk-mgr" ); clk_mgr_a10_base_addr =of_iomap (clkmgr_np,0 ); +of_node_put (clkmgr_np);BUG_ON (!clk_mgr_a10_base_addr); pll_clk->hw.reg = clk_mgr_a10_base_addr + reg;
drivers/clk/socfpga/clk-pll.c +1 -0
@@ -100,6 +100,7 @@ static __init struct clk *__socfpga_pll_init(struct device_node *node, clkmgr_np =of_find_compatible_node (NULL ,NULL ,"altr,clk-mgr" ); clk_mgr_base_addr =of_iomap (clkmgr_np,0 ); +of_node_put (clkmgr_np);BUG_ON (!clk_mgr_base_addr); pll_clk->hw.reg = clk_mgr_base_addr + reg;
drivers/clk/sunxi-ng/ccu-sun8i-a23.c +1 -1
@@ -132,7 +132,7 @@ static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_mipi_clk, "pll-mipi",8 ,4 ,/* N */ 4 ,2 ,/* K */ 0 ,4 ,/* M */ -BIT (31 ),/* gate */ +BIT (31 ) |BIT (23 ) |BIT (22 ),/* gate */ BIT (28 ),/* lock */ CLK_SET_RATE_UNGATE);
drivers/clk/sunxi-ng/ccu-sun8i-v3s.c +15 -4
@@ -84,7 +84,7 @@ static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_ve_clk, "pll-ve",BIT (28 ),/* lock */ 0); -static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr_clk, "pll-ddr", +static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_ddr0_clk, "pll-ddr0","osc24M" ,0x020 ,8 ,5 ,/* N */ 4, 2, /* K */
@@ -123,6 +123,14 @@ static SUNXI_CCU_NK_WITH_GATE_LOCK_POSTDIV(pll_periph1_clk, "pll-periph1",2 ,/* post-div */ 0); +static SUNXI_CCU_NM_WITH_GATE_LOCK(pll_ddr1_clk, "pll-ddr1", +"osc24M" ,0x04c , +8 ,7 ,/* N */ +0 ,2 ,/* M */ +BIT (31 ),/* gate */ +BIT (28 ),/* lock */ + 0); +static const char *const cpu_parents[] = {"osc32k" ,"osc24M" ,"pll-cpu" ,"pll-cpu" }; static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents,
@@ -310,7 +318,8 @@ static SUNXI_CCU_GATE(usb_phy0_clk, "usb-phy0", "osc24M", static SUNXI_CCU_GATE(usb_ohci0_clk, "usb-ohci0", "osc24M", 0x0cc, BIT(16), 0); -static const char *const dram_parents[] = {"pll-ddr" ,"pll-periph0-2x" }; +static const char *const dram_parents[] = {"pll-ddr0" ,"pll-ddr1" , +"pll-periph0-2x" }; static SUNXI_CCU_M_WITH_MUX(dram_clk, "dram", dram_parents, 0x0f4, 0, 4, 20, 2, CLK_IS_CRITICAL);
@@ -369,10 +378,11 @@ static struct ccu_common *sun8i_v3s_ccu_clks[] = { &pll_audio_base_clk.common, &pll_video_clk.common, &pll_ve_clk.common, - &pll_ddr_clk.common, + &pll_ddr0_clk.common, &pll_periph0_clk.common, &pll_isp_clk.common, &pll_periph1_clk.common, + &pll_ddr1_clk.common, &cpu_clk.common, &axi_clk.common, &ahb1_clk.common,
@@ -457,11 +467,12 @@ static struct clk_hw_onecell_data sun8i_v3s_hw_clks = { [CLK_PLL_AUDIO_8X] = &pll_audio_8x_clk.hw, [CLK_PLL_VIDEO] = &pll_video_clk.common.hw, [CLK_PLL_VE] = &pll_ve_clk.common.hw, - [CLK_PLL_DDR] = &pll_ddr_clk.common.hw, + [CLK_PLL_DDR0] = &pll_ddr0_clk.common.hw, [CLK_PLL_PERIPH0] = &pll_periph0_clk.common.hw, [CLK_PLL_PERIPH0_2X] = &pll_periph0_2x_clk.hw, [CLK_PLL_ISP] = &pll_isp_clk.common.hw, [CLK_PLL_PERIPH1] = &pll_periph1_clk.common.hw, + [CLK_PLL_DDR1] = &pll_ddr1_clk.common.hw, [CLK_CPU] = &cpu_clk.common.hw, [CLK_AXI] = &axi_clk.common.hw, [CLK_AHB1] = &ahb1_clk.common.hw,
drivers/clk/sunxi-ng/ccu-sun8i-v3s.h +4 -2
@@ -29,7 +29,7 @@#define CLK_PLL_AUDIO_8X 5#define CLK_PLL_VIDEO 6#define CLK_PLL_VE 7 -#define CLK_PLL_DDR 8 +#define CLK_PLL_DDR0 8#define CLK_PLL_PERIPH0 9#define CLK_PLL_PERIPH0_2X 10#define CLK_PLL_ISP 11
@@ -58,6 +58,8 @@/* And the GPU module clock is exported */ -#define CLK_NUMBER (CLK_MIPI_CSI + 1) +#define CLK_PLL_DDR1 74 + +#define CLK_NUMBER (CLK_PLL_DDR1 + 1)#endif /* _CCU_SUN8I_H3_H_ */
drivers/clocksource/exynos_mct.c +13 -1
@@ -563,7 +563,19 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem *return 0 ; out_irq: -free_percpu_irq (mct_irqs[MCT_L0_IRQ ], &percpu_mct_tick); +if (mct_int_type ==MCT_INT_PPI ) { +free_percpu_irq (mct_irqs[MCT_L0_IRQ ], &percpu_mct_tick); + }else { +for_each_possible_cpu (cpu) { +struct mct_clock_event_device *pcpu_mevt = +per_cpu_ptr (&percpu_mct_tick, cpu); + +if (pcpu_mevt->evt.irq !=-1 ) { +free_irq (pcpu_mevt->evt.irq, pcpu_mevt); + pcpu_mevt->evt.irq =-1 ; + } + } + }return err; }
drivers/clocksource/timer-sun5i.c +10 -0
@@ -202,6 +202,11 @@ static int __init sun5i_setup_clocksource(struct device_node *node, } rate =clk_get_rate (clk); +if (!rate) { +pr_err ("Couldn't get parent clock rate\n" ); + ret = -EINVAL ; + goto err_disable_clk; + } cs->timer.base = base; cs->timer.clk = clk;
@@ -275,6 +280,11 @@ static int __init sun5i_setup_clockevent(struct device_node *node, void __iomem } rate =clk_get_rate (clk); +if (!rate) { +pr_err ("Couldn't get parent clock rate\n" ); + ret = -EINVAL ; + goto err_disable_clk; + } ce->timer.base = base; ce->timer.ticks_per_jiffy =DIV_ROUND_UP (rate,HZ );
drivers/cpufreq/brcmstb-avs-cpufreq.c +6 -6
@@ -468,12 +468,12 @@ static int brcm_avs_set_pstate(struct private_data *priv, unsigned int pstate)return __issue_avs_command (priv,AVS_CMD_SET_PSTATE , true, args); } -static unsigned long brcm_avs_get_voltage (void __iomem *base) +static u32 brcm_avs_get_voltage (void __iomem *base) {return readl (base +AVS_MBOX_VOLTAGE1 ); } -static unsigned long brcm_avs_get_frequency (void __iomem *base) +static u32 brcm_avs_get_frequency (void __iomem *base) {return readl (base +AVS_MBOX_FREQUENCY ) *1000 ;/* in kHz */ }
@@ -762,8 +762,8 @@ static bool brcm_avs_is_firmware_loaded(struct private_data *priv) rc =brcm_avs_get_pmap (priv,NULL ); magic =readl (priv->base +AVS_MBOX_MAGIC ); -return (magic ==AVS_FIRMWARE_MAGIC ) && (rc != -ENOTSUPP ) && - (rc != -EINVAL ); +return (magic ==AVS_FIRMWARE_MAGIC ) && ((rc != -ENOTSUPP ) || + (rc != -EINVAL )); }static unsigned int brcm_avs_cpufreq_get (unsigned int cpu)
@@ -973,14 +973,14 @@ static ssize_t show_brcm_avs_voltage(struct cpufreq_policy *policy, char *buf) {struct private_data *priv = policy->driver_data; -return sprintf (buf,"0x%08lx\n" ,brcm_avs_get_voltage (priv->base)); +return sprintf (buf,"0x%08x\n" ,brcm_avs_get_voltage (priv->base)); }static ssize_t show_brcm_avs_frequency (struct cpufreq_policy *policy,char *buf) {struct private_data *priv = policy->driver_data; -return sprintf (buf,"0x%08lx\n" ,brcm_avs_get_frequency (priv->base)); +return sprintf (buf,"0x%08x\n" ,brcm_avs_get_frequency (priv->base)); }cpufreq_freq_attr_ro (brcm_avs_pstate);
drivers/crypto/amcc/crypto4xx_trng.h +2 -2
@@ -26,9 +26,9 @@ void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);void ppc4xx_trng_remove (struct crypto4xx_core_device *core_dev);#else static inline void ppc4xx_trng_probe ( -struct crypto4xx_device *dev__maybe_unused ) { } +struct crypto4xx_core_device *dev__maybe_unused ) { }static inline void ppc4xx_trng_remove ( -struct crypto4xx_device *dev__maybe_unused ) { } +struct crypto4xx_core_device *dev__maybe_unused ) { }#endif #endif
drivers/crypto/bcm/cipher.c +1 -5
@@ -718,7 +718,7 @@ static int handle_ahash_req(struct iproc_reqctx_s *rctx)*/ unsigned int new_data_len; -unsigned int chunk_start =0 ; +unsigned int __maybe_unused chunk_start =0 ;u32 db_size;/* Length of data field, incl gcm and hash padding */ int pad_len =0 ;/* total pad len, including gcm, hash, stat padding */ u32 data_pad_len =0 ;/* length of GCM/CCM padding */
@@ -1676,8 +1676,6 @@ static void spu_rx_callback(struct mbox_client *cl, void *msg)struct spu_hw *spu = &iproc_priv.spu;struct brcm_message *mssg = msg;struct iproc_reqctx_s *rctx; -struct iproc_ctx_s *ctx; -struct crypto_async_request *areq;int err =0 ; rctx = mssg->ctx;
@@ -1687,8 +1685,6 @@ static void spu_rx_callback(struct mbox_client *cl, void *msg) err = -EFAULT ; goto cb_finish; } - areq = rctx->parent; - ctx = rctx->ctx;/* process the SPU status */ err = spu->spu_status_process (rctx->msg_buf.rx_stat);
drivers/crypto/caam/caamrng.c +4 -1
@@ -353,7 +353,10 @@ static int __init caam_rng_init(void) goto free_rng_ctx;dev_info (dev,"registering rng-caam\n" ); -return hwrng_register (&caam_rng); + + err =hwrng_register (&caam_rng); +if (!err) +return err; free_rng_ctx:kfree (rng_ctx);
drivers/crypto/caam/error.c +1 -1
@@ -22,7 +22,7 @@ void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,size_t len;void *buf; -for (it = sg; it && tlen >0 ; it =sg_next (sg)) { +for (it = sg; it && tlen >0 ; it =sg_next (it)) {/* * make sure the scatterlist's page * has a valid virtual memory mapping
drivers/crypto/ccp/ccp-crypto-aes.c +4 -4
@@ -1,7 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AMD Cryptographic Coprocessor (CCP) AES crypto API support * -* Copyright (C) 2013,2016 Advanced Micro Devices, Inc. +* Copyright (C) 2013-2019 Advanced Micro Devices, Inc. * * Author: Tom Lendacky <[email protected]> *
@@ -79,8 +80,7 @@ static int ccp_aes_crypt(struct ablkcipher_request *req, bool encrypt)return -EINVAL ;if (((ctx->u.aes.mode ==CCP_AES_MODE_ECB ) || - (ctx->u.aes.mode ==CCP_AES_MODE_CBC ) || - (ctx->u.aes.mode ==CCP_AES_MODE_CFB )) && + (ctx->u.aes.mode ==CCP_AES_MODE_CBC )) && (req->nbytes & (AES_BLOCK_SIZE -1 )))return -EINVAL ;
@@ -291,7 +291,7 @@ static struct ccp_aes_def aes_algs[] = { .version = CCP_VERSION(3, 0), .name = "cfb(aes)", .driver_name = "cfb-aes-ccp", - .blocksize = AES_BLOCK_SIZE, + .blocksize = 1, .ivsize = AES_BLOCK_SIZE, .alg_defaults = &ccp_aes_defaults, },
drivers/crypto/ccp/ccp-ops.c +35 -32
164 lines not on this page · raw message
drivers/crypto/sunxi-ss/sun4i-ss-hash.c +11 -10
@@ -179,7 +179,7 @@ static int sun4i_hash(struct ahash_request *areq)*/ unsigned int i =0 , end, fill, min_fill, nwait, nbw =0 , j =0 , todo;unsigned int in_i =0 ; -u32 spaces, rx_cnt =SS_RX_DEFAULT , bf[32 ] = {0 }, wb =0 , v, ivmode =0 ; +u32 spaces, rx_cnt =SS_RX_DEFAULT , bf[32 ] = {0 }, v, ivmode =0 ;struct sun4i_req_ctx *op =ahash_request_ctx (areq);struct crypto_ahash *tfm =crypto_ahash_reqtfm (areq);struct sun4i_tfm_ctx *tfmctx =crypto_ahash_ctx (tfm);
@@ -188,6 +188,7 @@ static int sun4i_hash(struct ahash_request *areq)struct sg_mapping_iter mi;int in_r, err =0 ;size_t copied =0 ; +__le32 wb =0 ; dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x", __func__, crypto_tfm_alg_name(areq->base.tfm),
@@ -399,7 +400,7 @@ static int sun4i_hash(struct ahash_request *areq) nbw = op->len -4 * nwait;if (nbw) { - wb = *(u32 *)(op->buf + nwait *4 ); + wb =cpu_to_le32 (*(u32 *)(op->buf + nwait *4 )); wb &=GENMASK ((nbw *8 ) -1 ,0 ); op->byte_count += nbw;
@@ -408,7 +409,7 @@ static int sun4i_hash(struct ahash_request *areq)/* write the remaining bytes of the nbw buffer */ wb |= ((1 <<7 ) << (nbw *8 )); - bf[j++] = wb; + bf[j++] =le32_to_cpu (wb);/* * number of space to pad to obtain 64o minus 8(size) minus 4 (final 1)
@@ -427,13 +428,13 @@ static int sun4i_hash(struct ahash_request *areq)/* write the length of data */ if (op->mode ==SS_OP_SHA1 ) { -__be64 bits =cpu_to_be64 (op->byte_count <<3 ); - bf[j++] =lower_32_bits (bits); - bf[j++] =upper_32_bits (bits); +__be64 *bits = (__be64 *)&bf[j]; + *bits =cpu_to_be64 (op->byte_count <<3 ); + j +=2 ; }else { -__le64 bits = op->byte_count <<3 ; - bf[j++] =lower_32_bits (bits); - bf[j++] =upper_32_bits (bits); +__le64 *bits = (__le64 *)&bf[j]; + *bits =cpu_to_le64 (op->byte_count <<3 ); + j +=2 ; }writesl (ss->base +SS_RXFIFO , bf, j);
@@ -475,7 +476,7 @@ static int sun4i_hash(struct ahash_request *areq) } }else {for (i =0 ; i <4 ; i++) { - v =readl (ss->base +SS_MD0 + i *4 ); + v =cpu_to_le32 (readl (ss->base +SS_MD0 + i *4 ));memcpy (areq->result + i *4 , &v,4 ); } }
drivers/dma/dma-axi-dmac.c +1 -1
@@ -451,7 +451,7 @@ static struct dma_async_tx_descriptor *axi_dmac_prep_interleaved(if (chan->hw_2d) {if (!axi_dmac_check_len (chan, xt->sgl[0 ].size) || - !axi_dmac_check_len (chan, xt->numf)) + xt->numf ==0 )return NULL ;if (xt->sgl[0 ].size + dst_icg > chan->max_length || xt->sgl[0 ].size + src_icg > chan->max_length)
drivers/dma/dw/platform.c +12 -2
@@ -87,13 +87,20 @@ static void dw_dma_acpi_controller_register(struct dw_dma *dw)dma_cap_set (DMA_SLAVE , info->dma_cap); info->filter_fn = dw_dma_acpi_filter; - ret =devm_acpi_dma_controller_register (dev, acpi_dma_simple_xlate, - info); + ret =acpi_dma_controller_register (dev, acpi_dma_simple_xlate, info);if (ret) dev_err(dev, "could not register acpi_dma_controller\n"); } + +static void dw_dma_acpi_controller_free (struct dw_dma *dw) +{ +struct device *dev = dw->dma.dev; + +acpi_dma_controller_free (dev); +}#else /* !CONFIG_ACPI */ static inline void dw_dma_acpi_controller_register (struct dw_dma *dw) {} +static inline void dw_dma_acpi_controller_free (struct dw_dma *dw) {}#endif /* !CONFIG_ACPI */ #ifdef CONFIG_OF
@@ -249,6 +256,9 @@ static int dw_remove(struct platform_device *pdev) {struct dw_dma_chip *chip =platform_get_drvdata (pdev); +if (ACPI_HANDLE (&pdev->dev)) +dw_dma_acpi_controller_free (chip->dw); +if (pdev->dev.of_node)of_dma_controller_free (pdev->dev.of_node);
drivers/dma/edma.c +4 -2
@@ -2340,8 +2340,10 @@ static int edma_probe(struct platform_device *pdev) ecc->tc_list =devm_kcalloc (dev, ecc->num_tc,sizeof (*ecc->tc_list),GFP_KERNEL ); -if (!ecc->tc_list) -return -ENOMEM ; +if (!ecc->tc_list) { + ret = -ENOMEM ; + goto err_reg1; + }for (i =0 ;; i++) { ret = of_parse_phandle_with_fixed_args(node, "ti,tptcs",
drivers/dma/hsu/hsu.c +2 -2
@@ -64,10 +64,10 @@ static void hsu_dma_chan_start(struct hsu_dma_chan *hsuc)if (hsuc->direction ==DMA_MEM_TO_DEV ) { bsr = config->dst_maxburst; - mtsr = config->src_addr_width; + mtsr = config->dst_addr_width; }else if (hsuc->direction ==DMA_DEV_TO_MEM ) { bsr = config->src_maxburst; - mtsr = config->dst_addr_width; + mtsr = config->src_addr_width; }hsu_chan_disable (hsuc);
drivers/dma/imx-sdma.c +8 -0
@@ -1441,6 +1441,14 @@ static void sdma_add_scripts(struct sdma_engine *sdma,if (!sdma->script_number) sdma->script_number =SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 ; +if (sdma->script_number >sizeof (struct sdma_script_start_addrs ) + /sizeof (s32)) { +dev_err (sdma->dev, +"SDMA script number %d not match with firmware.\n" , + sdma->script_number); +return ; + } +for (i =0 ; i < sdma->script_number; i++)if (addr_arr[i] >0 ) saddr_arr[i] = addr_arr[i];
drivers/dma/mv_xor.c +1 -1
@@ -1059,6 +1059,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev, mv_chan->op_in_desc =XOR_MODE_IN_DESC ; dma_dev = &mv_chan->dmadev; + dma_dev->dev = &pdev->dev; mv_chan->xordev = xordev;/*
@@ -1091,7 +1092,6 @@ mv_xor_channel_add(struct mv_xor_device *xordev, dma_dev->device_free_chan_resources = mv_xor_free_chan_resources; dma_dev->device_tx_status = mv_xor_status; dma_dev->device_issue_pending = mv_xor_issue_pending; - dma_dev->dev = &pdev->dev;/* set prep routines based on capability */ if (dma_has_cap (DMA_INTERRUPT , dma_dev->cap_mask))
drivers/dma/tegra210-adma.c +58 -14
126 lines not on this page · raw message
drivers/edac/edac_mc.c +4 -8
@@ -680,22 +680,18 @@ static int del_mc_from_global_list(struct mem_ctl_info *mci)struct mem_ctl_info *edac_mc_find (int idx) { -struct mem_ctl_info *mci =NULL ; +struct mem_ctl_info *mci;struct list_head *item;mutex_lock (&mem_ctls_mutex);list_for_each (item, &mc_devices) { mci = list_entry(item, struct mem_ctl_info, link); - -if (mci->mc_idx >= idx) { -if (mci->mc_idx == idx) { - goto unlock; - } -break ; - } +if (mci->mc_idx == idx) + goto unlock; } + mci =NULL ; unlock:mutex_unlock (&mem_ctls_mutex);return mci;
drivers/gpu/drm/drm_dp_mst_topology.c +13 -2
@@ -982,9 +982,20 @@ static struct drm_dp_mst_port *drm_dp_mst_get_port_ref_locked(struct drm_dp_mst_static struct drm_dp_mst_port *drm_dp_get_validated_port_ref (struct drm_dp_mst_topology_mgr *mgr,struct drm_dp_mst_port *port) {struct drm_dp_mst_port *rport =NULL ; +mutex_lock (&mgr->lock); -if (mgr->mst_primary) - rport =drm_dp_mst_get_port_ref_locked (mgr->mst_primary, port); +/* +* Port may or may not be 'valid' but we don't care about that when +* destroying the port and we are guaranteed that the port pointer +* will be valid until we've finished +*/ +if (current_work () == &mgr->destroy_connector_work) { +kref_get (&port->kref); + rport = port; + }else if (mgr->mst_primary) { + rport =drm_dp_mst_get_port_ref_locked (mgr->mst_primary, + port); + }mutex_unlock (&mgr->lock);return rport; }
drivers/gpu/drm/etnaviv/etnaviv_dump.c +1 -1
@@ -207,7 +207,7 @@ void etnaviv_core_dump(struct etnaviv_gpu *gpu)mutex_lock (&obj->lock); pages =etnaviv_gem_get_pages (obj);mutex_unlock (&obj->lock); -if (pages) { +if (!IS_ERR (pages)) {int j; iter.hdr->data[0 ] = bomap - bomap_start;
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c +1 -1
@@ -26,7 +26,7 @@ struct sg_table *etnaviv_gem_prime_get_sg_table(struct drm_gem_object *obj)int npages = obj->size >>PAGE_SHIFT ;if (WARN_ON (!etnaviv_obj->pages))/* should have already pinned! */ -return NULL ; +return ERR_PTR (-EINVAL );return drm_prime_pages_to_sg (etnaviv_obj->pages, npages); }
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c +0 -1
@@ -71,7 +71,6 @@ static int hibmc_drm_fb_create(struct drm_fb_helper *helper,DRM_DEBUG_DRIVER ("surface width(%d), height(%d) and bpp(%d)\n" , sizes->surface_width, sizes->surface_height, sizes->surface_bpp); - sizes->surface_depth =32 ; bytes_per_pixel =DIV_ROUND_UP (sizes->surface_bpp,8 );
drivers/gpu/drm/msm/adreno/a3xx_gpu.c +11 -13
@@ -394,19 +394,17 @@ static const unsigned int a3xx_registers[] = {0x2200 ,0x2212 ,0x2214 ,0x2217 ,0x221a ,0x221a ,0x2240 ,0x227e ,0x2280 ,0x228b ,0x22c0 ,0x22c0 ,0x22c4 ,0x22ce ,0x22d0 ,0x22d8 ,0x22df ,0x22e6 ,0x22e8 ,0x22e9 ,0x22ec ,0x22ec ,0x22f0 ,0x22f7 , -0x22ff ,0x22ff ,0x2340 ,0x2343 ,0x2348 ,0x2349 ,0x2350 ,0x2356 , -0x2360 ,0x2360 ,0x2440 ,0x2440 ,0x2444 ,0x2444 ,0x2448 ,0x244d , -0x2468 ,0x2469 ,0x246c ,0x246d ,0x2470 ,0x2470 ,0x2472 ,0x2472 , -0x2474 ,0x2475 ,0x2479 ,0x247a ,0x24c0 ,0x24d3 ,0x24e4 ,0x24ef , -0x2500 ,0x2509 ,0x250c ,0x250c ,0x250e ,0x250e ,0x2510 ,0x2511 , -0x2514 ,0x2515 ,0x25e4 ,0x25e4 ,0x25ea ,0x25ea ,0x25ec ,0x25ed , -0x25f0 ,0x25f0 ,0x2600 ,0x2612 ,0x2614 ,0x2617 ,0x261a ,0x261a , -0x2640 ,0x267e ,0x2680 ,0x268b ,0x26c0 ,0x26c0 ,0x26c4 ,0x26ce , -0x26d0 ,0x26d8 ,0x26df ,0x26e6 ,0x26e8 ,0x26e9 ,0x26ec ,0x26ec , -0x26f0 ,0x26f7 ,0x26ff ,0x26ff ,0x2740 ,0x2743 ,0x2748 ,0x2749 , -0x2750 ,0x2756 ,0x2760 ,0x2760 ,0x300c ,0x300e ,0x301c ,0x301d , -0x302a ,0x302a ,0x302c ,0x302d ,0x3030 ,0x3031 ,0x3034 ,0x3036 , -0x303c ,0x303c ,0x305e ,0x305f , +0x22ff ,0x22ff ,0x2340 ,0x2343 ,0x2440 ,0x2440 ,0x2444 ,0x2444 , +0x2448 ,0x244d ,0x2468 ,0x2469 ,0x246c ,0x246d ,0x2470 ,0x2470 , +0x2472 ,0x2472 ,0x2474 ,0x2475 ,0x2479 ,0x247a ,0x24c0 ,0x24d3 , +0x24e4 ,0x24ef ,0x2500 ,0x2509 ,0x250c ,0x250c ,0x250e ,0x250e , +0x2510 ,0x2511 ,0x2514 ,0x2515 ,0x25e4 ,0x25e4 ,0x25ea ,0x25ea , +0x25ec ,0x25ed ,0x25f0 ,0x25f0 ,0x2600 ,0x2612 ,0x2614 ,0x2617 , +0x261a ,0x261a ,0x2640 ,0x267e ,0x2680 ,0x268b ,0x26c0 ,0x26c0 , +0x26c4 ,0x26ce ,0x26d0 ,0x26d8 ,0x26df ,0x26e6 ,0x26e8 ,0x26e9 , +0x26ec ,0x26ec ,0x26f0 ,0x26f7 ,0x26ff ,0x26ff ,0x2740 ,0x2743 , +0x300c ,0x300e ,0x301c ,0x301d ,0x302a ,0x302a ,0x302c ,0x302d , +0x3030 ,0x3031 ,0x3034 ,0x3036 ,0x303c ,0x303c ,0x305e ,0x305f , ~0 /* sentinel */ };
drivers/gpu/drm/msm/dsi/dsi_host.c +4 -2
@@ -34,6 +34,8 @@#include "dsi_cfg.h" #include "msm_kms.h" +#define DSI_RESET_TOGGLE_DELAY_MS 20 +static int dsi_get_version (const void __iomem *base,u32 *major,u32 *minor) {u32 ver;
@@ -906,7 +908,7 @@ static void dsi_sw_reset(struct msm_dsi_host *msm_host)wmb ();/* clocks need to be enabled before reset */ dsi_write (msm_host,REG_DSI_RESET ,1 ); -wmb ();/* make sure reset happen */ +msleep (DSI_RESET_TOGGLE_DELAY_MS );/* make sure reset happen */ dsi_write (msm_host,REG_DSI_RESET ,0 ); }
@@ -1288,7 +1290,7 @@ static void dsi_sw_reset_restore(struct msm_dsi_host *msm_host)/* dsi controller can only be reset while clocks are running */ dsi_write (msm_host,REG_DSI_RESET ,1 ); -wmb ();/* make sure reset happen */ +msleep (DSI_RESET_TOGGLE_DELAY_MS );/* make sure reset happen */ dsi_write (msm_host,REG_DSI_RESET ,0 );wmb ();/* controller out of reset */ dsi_write (msm_host,REG_DSI_CTRL , data0);
drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c +1 -1
@@ -635,7 +635,7 @@ struct mdp5_cfg_handler *mdp5_cfg_init(struct mdp5_kms *mdp5_kms,if (cfg_handler)mdp5_cfg_destroy (cfg_handler); -return NULL ; +return ERR_PTR (ret); }static struct mdp5_cfg_platform *mdp5_get_config (struct platform_device *dev)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr3.c +1 -1
@@ -87,7 +87,7 @@ nvkm_gddr3_calc(struct nvkm_ram *ram)WR = (ram->next->bios.timing[2 ] &0x007f0000 ) >>16 ;/* XXX: Get these values from the VBIOS instead */ DLL = !(ram->mr[1 ] &0x1 ); -RON = !(ram->mr[1 ] &0x300 ) >>8 ; +RON = !((ram->mr[1 ] &0x300 ) >>8 );break ;default :return -ENOSYS ;
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/memx.c +2 -2
@@ -88,10 +88,10 @@ nvkm_memx_fini(struct nvkm_memx **pmemx, bool exec)if (exec) {nvkm_pmu_send (pmu, reply,PROC_MEMX ,MEMX_MSG_EXEC , memx->base, finish); +nvkm_debug (subdev,"Exec took %uns, PMU_IN %08x\n" , + reply[0 ], reply[1 ]); } -nvkm_debug (subdev,"Exec took %uns, PMU_IN %08x\n" , - reply[0 ], reply[1 ]);kfree (memx);return 0 ; }
drivers/gpu/drm/radeon/cik.c +2 -2
@@ -7012,8 +7012,8 @@ static int cik_irq_init(struct radeon_device *rdev) }/* setup interrupt control */ -/* XXX this should actually be a bus address, not an MC address. same on older asics */ -WREG32 (INTERRUPT_CNTL2 , rdev->ih.gpu_addr >>8 ); +/* set dummy read address to dummy page address */ +WREG32 (INTERRUPT_CNTL2 , rdev->dummy_page.addr >>8 ); interrupt_cntl =RREG32 (INTERRUPT_CNTL );/* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi * IH_DUMMY_RD_OVERRIDE=1 - dummy read controlled by IH_DUMMY_RD_EN
drivers/gpu/drm/radeon/r600.c +2 -2
@@ -3690,8 +3690,8 @@ int r600_irq_init(struct radeon_device *rdev) }/* setup interrupt control */ -/* set dummy read address to ring address */ -WREG32 (INTERRUPT_CNTL2 , rdev->ih.gpu_addr >>8 ); +/* set dummy read address to dummy page address */ +WREG32 (INTERRUPT_CNTL2 , rdev->dummy_page.addr >>8 ); interrupt_cntl =RREG32 (INTERRUPT_CNTL );/* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi * IH_DUMMY_RD_OVERRIDE=1 - dummy read controlled by IH_DUMMY_RD_EN
drivers/gpu/drm/radeon/si.c +2 -2
@@ -5993,8 +5993,8 @@ static int si_irq_init(struct radeon_device *rdev) }/* setup interrupt control */ -/* set dummy read address to ring address */ -WREG32 (INTERRUPT_CNTL2 , rdev->ih.gpu_addr >>8 ); +/* set dummy read address to dummy page address */ +WREG32 (INTERRUPT_CNTL2 , rdev->dummy_page.addr >>8 ); interrupt_cntl =RREG32 (INTERRUPT_CNTL );/* IH_DUMMY_RD_OVERRIDE=0 - dummy read disabled with msi, enabled without msi * IH_DUMMY_RD_OVERRIDE=1 - dummy read controlled by IH_DUMMY_RD_EN
drivers/gpu/drm/shmobile/shmob_drm_drv.c +2 -2
@@ -233,8 +233,8 @@ static int shmob_drm_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); sdev->mmio =devm_ioremap_resource (&pdev->dev, res); -if (sdev->mmio ==NULL ) -return -ENOMEM ; +if (IS_ERR (sdev->mmio)) +return PTR_ERR (sdev->mmio); ret =shmob_drm_setup_clocks (sdev, pdata->clk_source);if (ret <0 )
drivers/gpu/drm/sti/sti_hda.c +0 -1
@@ -721,7 +721,6 @@ static int sti_hda_bind(struct device *dev, struct device *master, void *data)return 0 ; err_sysfs: -drm_bridge_remove (bridge);return -EINVAL ; }
drivers/gpu/drm/sti/sti_hdmi.c +0 -1
@@ -1314,7 +1314,6 @@ static int sti_hdmi_bind(struct device *dev, struct device *master, void *data)return 0 ; err_sysfs: -drm_bridge_remove (bridge); hdmi->drm_connector =NULL ;return -EINVAL ; }
drivers/gpu/drm/sun4i/sun4i_hdmi_tmds_clk.c +1 -1
@@ -50,7 +50,7 @@ static unsigned long sun4i_tmds_calc_divider(unsigned long rate, (rate - tmp_rate) < (rate - best_rate)) { best_rate = tmp_rate; best_m = m; - is_double = d; + is_double = (d ==2 ) ? true : false; } } }
drivers/gpu/drm/virtio/virtgpu_vq.c +3 -2
@@ -648,11 +648,11 @@ int virtio_gpu_cmd_get_capset(struct virtio_gpu_device *vgdev, {struct virtio_gpu_get_capset *cmd_p;struct virtio_gpu_vbuffer *vbuf; -int max_size = vgdev->capsets[idx].max_size; +int max_size;struct virtio_gpu_drv_cap_cache *cache_ent;void *resp_buf; -if (idx > vgdev->num_capsets) +if (idx >= vgdev->num_capsets)return -EINVAL ;if (version > vgdev->capsets[idx].max_version)
@@ -662,6 +662,7 @@ int virtio_gpu_cmd_get_capset(struct virtio_gpu_device *vgdev,if (!cache_ent)return -ENOMEM ; + max_size = vgdev->capsets[idx].max_size; cache_ent->caps_cache =kmalloc (max_size,GFP_KERNEL );if (!cache_ent->caps_cache) {kfree (cache_ent);
drivers/hwmon/lm75.c +1 -1
@@ -165,7 +165,7 @@ static int lm75_write(struct device *dev, enum hwmon_sensor_types type, temp =DIV_ROUND_CLOSEST (temp << (resolution -8 ),1000 ) << (16 - resolution); -return regmap_write (data->regmap, reg, temp); +return regmap_write (data->regmap, reg, (u16 )temp); } static umode_t lm75_is_visible(const void *data, enum hwmon_sensor_types type,
drivers/hwmon/pmbus/tps53679.c +8 -1
@@ -80,7 +80,14 @@ static struct pmbus_driver_info tps53679_info = {static int tps53679_probe (struct i2c_client *client,const struct i2c_device_id *id) { -return pmbus_do_probe (client, id, &tps53679_info); +struct pmbus_driver_info *info; + + info =devm_kmemdup (&client->dev, &tps53679_info,sizeof (*info), +GFP_KERNEL ); +if (!info) +return -ENOMEM ; + +return pmbus_do_probe (client, id, info); }static const struct i2c_device_id tps53679_id[] = {
drivers/hwmon/shtc1.c +1 -1
@@ -38,7 +38,7 @@ static const unsigned char shtc1_cmd_read_id_reg[] = { 0xef, 0xc8 };/* constants for reading the ID register */ #define SHTC1_ID 0x07 -#define SHTC1_ID_REG_MASK 0x1f +#define SHTC1_ID_REG_MASK 0x3f/* delays for non-blocking i2c commands, both in us */ #define SHTC1_NONBLOCKING_WAIT_TIME_HPM 14400
drivers/hwmon/w83627hf.c +37 -5
84 lines not on this page · raw message
drivers/iio/dac/ad5380.c +1 -1
@@ -221,7 +221,7 @@ static int ad5380_read_raw(struct iio_dev *indio_dev,if (ret)return ret; *val >>= chan->scan_type.shift; - val -= (1 << chan->scan_type.realbits) /2 ; + *val -= (1 << chan->scan_type.realbits) /2 ;return IIO_VAL_INT ;case IIO_CHAN_INFO_SCALE : *val =2 * st->vref;
drivers/infiniband/core/cma.c +1 -1
@@ -2789,7 +2789,7 @@ static void addr_handler(int status, struct sockaddr *src_addr,if (status)pr_debug_ratelimited ("RDMA CM: ADDR_ERROR: failed to acquire device. status %d\n" , status); - }else { + }else if (status) {pr_debug_ratelimited ("RDMA CM: ADDR_ERROR: failed to resolve IP. status %d\n" , status); }
drivers/infiniband/hw/cxgb4/cm.c +14 -10
@@ -2056,7 +2056,7 @@ static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip, }else { pdev =get_real_dev (n->dev); ep->l2t =cxgb4_l2t_get (cdev->rdev.lldi.l2t, - n, pdev,0 ); + n, pdev,rt_tos2priority (tos));if (!ep->l2t) goto out; ep->mtu =dst_mtu (dst);
@@ -2147,7 +2147,8 @@ static int c4iw_reconnect(struct c4iw_ep *ep) laddr6->sin6_addr.s6_addr, raddr6->sin6_addr.s6_addr, laddr6->sin6_port, - raddr6->sin6_port,0 , + raddr6->sin6_port, + ep->com.cm_id->tos, raddr6->sin6_scope_id); iptype =6 ; ra = (__u8 *)&raddr6->sin6_addr;
@@ -2923,15 +2924,18 @@ static int terminate(struct c4iw_dev *dev, struct sk_buff *skb) ep =get_ep_from_tid (dev, tid);BUG_ON (!ep); -if (ep && ep->com.qp) { -pr_warn ("TERM received tid %u qpid %u\n" , - tid, ep->com.qp->wq.sq.qid); - attrs.next_state =C4IW_QP_STATE_TERMINATE ; -c4iw_modify_qp (ep->com.qp->rhp, ep->com.qp, -C4IW_QP_ATTR_NEXT_STATE , &attrs,1 ); +if (ep) { +if (ep->com.qp) { +pr_warn ("TERM received tid %u qpid %u\n" , tid, + ep->com.qp->wq.sq.qid); + attrs.next_state =C4IW_QP_STATE_TERMINATE ; +c4iw_modify_qp (ep->com.qp->rhp, ep->com.qp, +C4IW_QP_ATTR_NEXT_STATE , &attrs,1 ); + } + +c4iw_put_ep (&ep->com); }else pr_warn ("TERM received tid %u no ep/qp\n" , tid); -c4iw_put_ep (&ep->com);return 0 ; }
@@ -3295,7 +3299,7 @@ int c4iw_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) laddr6->sin6_addr.s6_addr, raddr6->sin6_addr.s6_addr, laddr6->sin6_port, - raddr6->sin6_port,0 , + raddr6->sin6_port, cm_id->tos, raddr6->sin6_scope_id); }if (!ep->dst) {
drivers/infiniband/hw/hfi1/chip.c +22 -4
@@ -10552,12 +10552,29 @@ void set_link_down_reason(struct hfi1_pportdata *ppd, u8 lcl_reason, } } -/* -* Verify if BCT for data VLs is non-zero. +/** +* data_vls_operational() - Verify if data VL BCT credits and MTU +* are both set. +* @ppd: pointer to hfi1_pportdata structure +* +* Return: true - Ok, false -otherwise. */ static inline bool data_vls_operational (struct hfi1_pportdata *ppd) { -return !!ppd->actual_vls_operational; +int i; +u64 reg; + +if (!ppd->actual_vls_operational) +return false; + +for (i =0 ; i < ppd->vls_supported; i++) { + reg =read_csr (ppd->dd,SEND_CM_CREDIT_VL + (8 * i)); +if ((reg && !ppd->dd->vld[i].mtu) || + (!reg && ppd->dd->vld[i].mtu)) +return false; + } + +return true; }/*
@@ -10662,7 +10679,8 @@ int set_link_state(struct hfi1_pportdata *ppd, u32 state)if (!data_vls_operational (ppd)) {dd_dev_err (dd, -"%s: data VLs not operational\n" , __func__); +"%s: Invalid data VL credits or mtu\n" , + __func__); ret = -EINVAL ;break ; }
drivers/infiniband/hw/hns/hns_roce_qp.c +0 -1
@@ -241,7 +241,6 @@ void hns_roce_qp_free(struct hns_roce_dev *hr_dev, struct hns_roce_qp *hr_qp)if ((hr_qp->ibqp.qp_type) !=IB_QPT_GSI ) {hns_roce_table_put (hr_dev, &qp_table->irrl_table, hr_qp->qpn); -hns_roce_table_put (hr_dev, &qp_table->qp_table, hr_qp->qpn); } }
drivers/infiniband/hw/mlx5/qp.c +21 -0
@@ -2357,6 +2357,11 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q [MLX5_QP_ST_UD ] =MLX5_QP_OPTPAR_PKEY_INDEX |MLX5_QP_OPTPAR_Q_KEY | MLX5_QP_OPTPAR_PRI_PORT, + [MLX5_QP_ST_XRC ] =MLX5_QP_OPTPAR_RRE | +MLX5_QP_OPTPAR_RAE | +MLX5_QP_OPTPAR_RWE | +MLX5_QP_OPTPAR_PKEY_INDEX | +MLX5_QP_OPTPAR_PRI_PORT , }, [MLX5_QP_STATE_RTR] = { [MLX5_QP_ST_RC] = MLX5_QP_OPTPAR_ALT_ADDR_PATH |
@@ -2390,6 +2395,12 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_QMLX5_QP_OPTPAR_RWE | MLX5_QP_OPTPAR_PM_STATE, [MLX5_QP_ST_UD] = MLX5_QP_OPTPAR_Q_KEY, + [MLX5_QP_ST_XRC ] =MLX5_QP_OPTPAR_ALT_ADDR_PATH | +MLX5_QP_OPTPAR_RRE | +MLX5_QP_OPTPAR_RAE | +MLX5_QP_OPTPAR_RWE | +MLX5_QP_OPTPAR_PM_STATE | + MLX5_QP_OPTPAR_RNR_TIMEOUT, }, }, [MLX5_QP_STATE_RTS] = {
@@ -2406,6 +2417,12 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_Q [MLX5_QP_ST_UD ] =MLX5_QP_OPTPAR_Q_KEY |MLX5_QP_OPTPAR_SRQN | MLX5_QP_OPTPAR_CQN_RCV, + [MLX5_QP_ST_XRC ] =MLX5_QP_OPTPAR_RRE | +MLX5_QP_OPTPAR_RAE | +MLX5_QP_OPTPAR_RWE | +MLX5_QP_OPTPAR_RNR_TIMEOUT | +MLX5_QP_OPTPAR_PM_STATE | + MLX5_QP_OPTPAR_ALT_ADDR_PATH, }, }, [MLX5_QP_STATE_SQER] = {
@@ -2417,6 +2434,10 @@ static enum mlx5_qp_optpar opt_mask[MLX5_QP_NUM_STATE][MLX5_QP_NUM_STATE][MLX5_QMLX5_QP_OPTPAR_RWE |MLX5_QP_OPTPAR_RAE | MLX5_QP_OPTPAR_RRE, + [MLX5_QP_ST_XRC ] =MLX5_QP_OPTPAR_RNR_TIMEOUT | +MLX5_QP_OPTPAR_RWE | +MLX5_QP_OPTPAR_RAE | + MLX5_QP_OPTPAR_RRE, }, }, };
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +1 -1
@@ -55,7 +55,7 @@int ocrdma_query_pkey (struct ib_device *ibdev,u8 port,u16 index,u16 *pkey) { -if (index >1 ) +if (index >0 )return -EINVAL ; *pkey =0xffff ;
drivers/infiniband/hw/qedr/verbs.c +10 -17
@@ -63,7 +63,7 @@ static inline int qedr_ib_copy_to_udata(struct ib_udata *udata, void *src,int qedr_query_pkey (struct ib_device *ibdev,u8 port,u16 index,u16 *pkey) { -if (index >QEDR_ROCE_PKEY_TABLE_LEN ) +if (index >=QEDR_ROCE_PKEY_TABLE_LEN )return -EINVAL ; *pkey =QEDR_ROCE_PKEY_DEFAULT ;
@@ -178,54 +178,47 @@ int qedr_query_device(struct ib_device *ibdev,return 0 ; } -#define QEDR_SPEED_SDR (1) -#define QEDR_SPEED_DDR (2) -#define QEDR_SPEED_QDR (4) -#define QEDR_SPEED_FDR10 (8) -#define QEDR_SPEED_FDR (16) -#define QEDR_SPEED_EDR (32) -static inline void get_link_speed_and_width (int speed,u8 *ib_speed,u8 *ib_width) {switch (speed) {case 1000 : - *ib_speed =QEDR_SPEED_SDR ; + *ib_speed =IB_SPEED_SDR ; *ib_width =IB_WIDTH_1X ;break ;case 10000 : - *ib_speed =QEDR_SPEED_QDR ; + *ib_speed =IB_SPEED_QDR ; *ib_width =IB_WIDTH_1X ;break ;case 20000 : - *ib_speed =QEDR_SPEED_DDR ; + *ib_speed =IB_SPEED_DDR ; *ib_width =IB_WIDTH_4X ;break ;case 25000 : - *ib_speed =QEDR_SPEED_EDR ; + *ib_speed =IB_SPEED_EDR ; *ib_width =IB_WIDTH_1X ;break ;case 40000 : - *ib_speed =QEDR_SPEED_QDR ; + *ib_speed =IB_SPEED_QDR ; *ib_width =IB_WIDTH_4X ;break ;case 50000 : - *ib_speed =QEDR_SPEED_QDR ; - *ib_width =IB_WIDTH_4X ; + *ib_speed =IB_SPEED_HDR ; + *ib_width =IB_WIDTH_1X ;break ;case 100000 : - *ib_speed =QEDR_SPEED_EDR ; + *ib_speed =IB_SPEED_EDR ; *ib_width =IB_WIDTH_4X ;break ;default :/* Unsupported */ - *ib_speed =QEDR_SPEED_SDR ; + *ib_speed =IB_SPEED_SDR ; *ib_width =IB_WIDTH_1X ; } }
drivers/infiniband/hw/usnic/usnic_ib_verbs.c +1 -1
@@ -423,7 +423,7 @@ struct net_device *usnic_get_netdev(struct ib_device *device, u8 port_num)int usnic_ib_query_pkey (struct ib_device *ibdev,u8 port,u16 index,u16 *pkey) { -if (index >1 ) +if (index >0 )return -EINVAL ; *pkey =0xffff ;
drivers/infiniband/sw/rxe/rxe_cq.c +2 -2
@@ -30,7 +30,7 @@* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - +#include <linux/vmalloc.h> #include "rxe.h" #include "rxe_loc.h" #include "rxe_queue.h"
@@ -97,7 +97,7 @@ int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe, err =do_mmap_info (rxe, udata, false, context, cq->queue->buf, cq->queue->buf_size, &cq->queue->ip);if (err) { -kvfree (cq->queue->buf); +vfree (cq->queue->buf);kfree (cq->queue);return err; }
drivers/infiniband/sw/rxe/rxe_pool.c +14 -12
@@ -112,6 +112,18 @@ static inline struct kmem_cache *pool_cache(struct rxe_pool *pool)return rxe_type_info[pool->type].cache; } +static void rxe_cache_clean (size_t cnt) +{ +int i; +struct rxe_type_info *type; + +for (i =0 ; i < cnt; i++) { + type = &rxe_type_info[i]; +kmem_cache_destroy (type->cache); + type->cache =NULL ; + } +} +int rxe_cache_init (void ) {int err;
@@ -136,24 +148,14 @@ int rxe_cache_init(void)return 0 ; err1: -while (--i >=0 ) { -kmem_cache_destroy (type->cache); - type->cache =NULL ; - } +rxe_cache_clean (i);return err; }void rxe_cache_exit (void ) { -int i; -struct rxe_type_info *type; - -for (i =0 ; i <RXE_NUM_TYPES ; i++) { - type = &rxe_type_info[i]; -kmem_cache_destroy (type->cache); - type->cache =NULL ; - } +rxe_cache_clean (RXE_NUM_TYPES ); }static int rxe_pool_init_index (struct rxe_pool *pool,u32 max,u32 min)
drivers/infiniband/sw/rxe/rxe_qp.c +3 -2
@@ -34,6 +34,7 @@#include <linux/skbuff.h> #include <linux/delay.h> #include <linux/sched.h> +#include <linux/vmalloc.h> #include "rxe.h" #include "rxe_loc.h"
@@ -255,7 +256,7 @@ static int rxe_qp_init_req(struct rxe_dev *rxe, struct rxe_qp *qp, qp->sq.queue->buf_size, &qp->sq.queue->ip);if (err) { -kvfree (qp->sq.queue->buf); +vfree (qp->sq.queue->buf);kfree (qp->sq.queue);return err; }
@@ -308,7 +309,7 @@ static int rxe_qp_init_resp(struct rxe_dev *rxe, struct rxe_qp *qp, qp->rq.queue->buf_size, &qp->rq.queue->ip);if (err) { -kvfree (qp->rq.queue->buf); +vfree (qp->rq.queue->buf);kfree (qp->rq.queue);return err; }
drivers/infiniband/ulp/iser/iscsi_iser.h +1 -1
@@ -197,7 +197,7 @@ struct iser_data_buf {struct scatterlist *sg;int size;unsigned long data_len; -unsigned int dma_nents; +int dma_nents; };/* fwd declarations */
drivers/infiniband/ulp/iser/iser_memory.c +5 -5
@@ -240,8 +240,8 @@ int iser_fast_reg_fmr(struct iscsi_iser_task *iser_task, page_vec->npages =0 ; page_vec->fake_mr.page_size =SIZE_4K ; plen =ib_sg_to_pages (&page_vec->fake_mr, mem->sg, - mem->size,NULL , iser_set_page); -if (unlikely (plen < mem->size)) { + mem->dma_nents,NULL , iser_set_page); +if (unlikely (plen < mem->dma_nents)) {iser_err ("page vec too short to hold this SG\n" );iser_data_buf_dump (mem, device->ib_device);iser_dump_page_vec (page_vec);
@@ -450,10 +450,10 @@ static int iser_fast_reg_mr(struct iscsi_iser_task *iser_task,ib_update_fast_reg_key (mr,ib_inc_rkey (mr->rkey)); - n =ib_map_mr_sg (mr, mem->sg, mem->size,NULL ,SIZE_4K ); -if (unlikely (n != mem->size)) { + n =ib_map_mr_sg (mr, mem->sg, mem->dma_nents,NULL ,SIZE_4K ); +if (unlikely (n != mem->dma_nents)) {iser_err ("failed to map sg (%d/%d)\n" , - n, mem->size); + n, mem->dma_nents);return n <0 ? n : -EINVAL ; }
drivers/input/keyboard/nomadik-ske-keypad.c +1 -1
@@ -100,7 +100,7 @@ static int __init ske_keypad_chip_init(struct ske_keypad *keypad)while ((readl (keypad->reg_base +SKE_RIS ) !=0x00000000 ) && timeout--)cpu_relax (); -if (!timeout) +if (timeout ==-1 )return -EINVAL ;/*
drivers/iommu/amd_iommu.c +2 -0
@@ -2160,6 +2160,8 @@ static int attach_device(struct device *dev,*/ domain_flush_tlb_pde (domain); +domain_flush_complete (domain); +return ret; }
drivers/iommu/amd_iommu_init.c +3 -0
@@ -420,6 +420,9 @@ static void iommu_enable(struct amd_iommu *iommu)static void iommu_disable (struct amd_iommu *iommu) { +if (!iommu->mmio_base) +return ; +/* Disable command buffer */ iommu_feature_disable (iommu,CONTROL_CMDBUF_EN );
drivers/iommu/intel-iommu.c +21 -18
@@ -442,7 +442,6 @@ struct dmar_rmrr_unit {u64 end_address;/* reserved end address */ struct dmar_dev_scope *devices;/* target devices */ int devices_cnt;/* target device count */ -struct iommu_resv_region *resv;/* reserved region handle */ };struct dmar_atsr_unit {
@@ -3361,9 +3360,12 @@ static int __init init_dmars(void) iommu_identity_mapping |=IDENTMAP_ALL ;#ifdef CONFIG_INTEL_IOMMU_BROKEN_GFX_WA - iommu_identity_mapping |=IDENTMAP_GFX ; + dmar_map_gfx =0 ;#endif +if (!dmar_map_gfx) + iommu_identity_mapping |=IDENTMAP_GFX ; +check_tylersburg_isoch ();if (iommu_identity_mapping) {
@@ -4168,7 +4170,6 @@ static inline void init_iommu_pm_ops(void) {}int __init dmar_parse_one_rmrr (struct acpi_dmar_header *header,void *arg) {struct acpi_dmar_reserved_memory *rmrr; -int prot =DMA_PTE_READ |DMA_PTE_WRITE ;struct dmar_rmrr_unit *rmrru;size_t length;
@@ -4182,22 +4183,16 @@ int __init dmar_parse_one_rmrr(struct acpi_dmar_header *header, void *arg) rmrru->end_address = rmrr->end_address; length = rmrr->end_address - rmrr->base_address +1 ; - rmrru->resv =iommu_alloc_resv_region (rmrr->base_address, length, prot, -IOMMU_RESV_DIRECT ); -if (!rmrru->resv) - goto free_rmrru; rmrru->devices =dmar_alloc_dev_scope ((void *)(rmrr +1 ), ((void *)rmrr) + rmrr->header.length, &rmrru->devices_cnt);if (rmrru->devices_cnt && rmrru->devices ==NULL ) - goto free_all; + goto free_rmrru;list_add (&rmrru->list, &dmar_rmrr_units);return 0 ; -free_all: -kfree (rmrru->resv); free_rmrru:kfree (rmrru); out:
@@ -4415,7 +4410,6 @@ static void intel_iommu_free_dmars(void)list_for_each_entry_safe (rmrru, rmrr_n, &dmar_rmrr_units, list) {list_del (&rmrru->list);dmar_free_dev_scope (&rmrru->devices, &rmrru->devices_cnt); -kfree (rmrru->resv);kfree (rmrru); }
@@ -5183,22 +5177,33 @@ static void intel_iommu_remove_device(struct device *dev)static void intel_iommu_get_resv_regions (struct device *device,struct list_head *head) { +int prot =DMA_PTE_READ |DMA_PTE_WRITE ;struct iommu_resv_region *reg;struct dmar_rmrr_unit *rmrr;struct device *i_dev;int i; -rcu_read_lock (); +down_read (&dmar_global_lock);for_each_rmrr_units (rmrr) {for_each_active_dev_scope (rmrr->devices, rmrr->devices_cnt, i, i_dev) { +struct iommu_resv_region *resv; +size_t length; +if (i_dev != device)continue ; -list_add_tail (&rmrr->resv->list, head); + length = rmrr->end_address - rmrr->base_address +1 ; + resv =iommu_alloc_resv_region (rmrr->base_address, + length, prot, +IOMMU_RESV_DIRECT ); +if (!resv) +break ; + +list_add_tail (&resv->list, head); } } -rcu_read_unlock (); +up_read (&dmar_global_lock); reg = iommu_alloc_resv_region(IOAPIC_RANGE_START, IOAPIC_RANGE_END - IOAPIC_RANGE_START + 1,
@@ -5213,10 +5218,8 @@ static void intel_iommu_put_resv_regions(struct device *dev, {struct iommu_resv_region *entry, *next; -list_for_each_entry_safe (entry, next, head, list) { -if (entry->type ==IOMMU_RESV_MSI ) -kfree (entry); - } +list_for_each_entry_safe (entry, next, head, list) +kfree (entry); }#ifdef CONFIG_INTEL_IOMMU_SVM
drivers/iommu/iommu.c +3 -3
@@ -1856,9 +1856,9 @@ int iommu_request_dm_for_dev(struct device *dev)int ret;/* Device must already be in a group before calling this function */ - group =iommu_group_get_for_dev (dev); -if (IS_ERR (group)) -return PTR_ERR (group); + group =iommu_group_get (dev); +if (!group) +return -EINVAL ;mutex_lock (&group->mutex);
drivers/iommu/mtk_iommu.c +25 -1
@@ -115,6 +115,30 @@ struct mtk_iommu_domain {static struct iommu_ops mtk_iommu_ops; +/* +* In M4U 4GB mode, the physical address is remapped as below: +* +* CPU Physical address: +* ==================== +* +* 0 1G 2G 3G 4G 5G +* |---A---|---B---|---C---|---D---|---E---| +* +--I/O--+------------Memory-------------+ +* +* IOMMU output physical address: +* ============================= +* +* 4G 5G 6G 7G 8G +* |---E---|---B---|---C---|---D---| +* +------------Memory-------------+ +* +* The Region 'A'(I/O) can NOT be mapped by M4U; For Region 'B'/'C'/'D', the +* bit32 of the CPU physical address always is needed to set, and for Region +* 'E', the CPU physical address keep as is. +* Additionally, The iommu consumers always use the CPU phyiscal address. +*/ +#define MTK_IOMMU_4GB_MODE_REMAP_BASE 0x40000000 +static LIST_HEAD (m4ulist);/* List all the M4U HWs */ #define for_each_m4u (data) list_for_each_entry(data, &m4ulist, list)
@@ -404,7 +428,7 @@ static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain, pa = dom->iop->iova_to_phys (dom->iop, iova);spin_unlock_irqrestore (&dom->pgtlock, flags); -if (data->enable_4GB) +if (data->enable_4GB && pa <MTK_IOMMU_4GB_MODE_REMAP_BASE ) pa |=BIT_ULL (32 );return pa;
drivers/lightnvm/pblk-rb.c +1 -1
@@ -825,8 +825,8 @@ int pblk_rb_tear_down_check(struct pblk_rb *rb) } out: -spin_unlock (&rb->w_lock);spin_unlock_irq (&rb->s_lock); +spin_unlock (&rb->w_lock);return ret; }
drivers/media/i2c/ov2659.c +1 -1
@@ -1136,7 +1136,7 @@ static int ov2659_set_fmt(struct v4l2_subdev *sd, mf =v4l2_subdev_get_try_format (sd, cfg, fmt->pad); *mf = fmt->format;#else -return -ENOTTY ; + ret = -ENOTTY ;#endif }else {s64 val;
drivers/media/pci/cx18/cx18-fileops.c +1 -1
@@ -484,7 +484,7 @@ static ssize_t cx18_read_pos(struct cx18_stream *s, char __user *ubuf,CX18_DEBUG_HI_FILE ("read %zd from %s, got %zd\n" , count, s->name, rc);if (rc >0 ) - pos += rc; + *pos += rc;return rc; }
drivers/media/pci/cx23885/cx23885-dvb.c +3 -2
@@ -1460,8 +1460,9 @@ static int dvb_register(struct cx23885_tsport *port)if (fe0->dvb.frontend !=NULL ) {struct i2c_adapter *tun_i2c; - fe0->dvb.frontend->sec_priv =kmalloc (sizeof (dib7000p_ops),GFP_KERNEL ); -memcpy (fe0->dvb.frontend->sec_priv, &dib7000p_ops,sizeof (dib7000p_ops)); + fe0->dvb.frontend->sec_priv =kmemdup (&dib7000p_ops,sizeof (dib7000p_ops),GFP_KERNEL ); +if (!fe0->dvb.frontend->sec_priv) +return -ENOMEM ; tun_i2c = dib7000p_ops.get_i2c_master (fe0->dvb.frontend,DIBX000_I2C_INTERFACE_TUNER ,1 );if (!dvb_attach (dib0070_attach, fe0->dvb.frontend, tun_i2c, &dib7070p_dib0070_config))return -ENODEV ;
drivers/media/pci/ivtv/ivtv-fileops.c +1 -1
@@ -420,7 +420,7 @@ static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t coIVTV_DEBUG_HI_FILE ("read %zd from %s, got %zd\n" , count, s->name, rc);if (rc >0 ) - pos += rc; + *pos += rc;return rc; }
drivers/media/pci/tw5864/tw5864-video.c +2 -2
@@ -1395,13 +1395,13 @@ static void tw5864_handle_frame(struct tw5864_h264_frame *frame) input->vb =NULL ;spin_unlock_irqrestore (&input->slock, flags); - v4l2_buf =to_vb2_v4l2_buffer (&vb->vb.vb2_buf); -if (!vb) {/* Gone because of disabling */ dev_dbg (&dev->pci->dev,"vb is empty, dropping frame\n" );return ; } + v4l2_buf =to_vb2_v4l2_buffer (&vb->vb.vb2_buf); +/* * Check for space. * Mind the overhead of startcode emulation prevention.
drivers/media/platform/atmel/atmel-isi.c +1 -1
@@ -496,7 +496,7 @@ static void stop_streaming(struct vb2_queue *vq)spin_unlock_irq (&isi->irqlock);if (!isi->enable_preview_path) { - timeout = jiffies +FRAME_INTERVAL_MILLI_SEC *HZ ; + timeout = jiffies + (FRAME_INTERVAL_MILLI_SEC *HZ ) /1000 ;/* Wait until the end of the current frame. */ while ((isi_readl (isi,ISI_STATUS ) &ISI_CTRL_CDC ) &&time_before (jiffies, timeout))
drivers/media/platform/davinci/isif.c +0 -9
@@ -886,9 +886,7 @@ static int isif_set_hw_if_params(struct vpfe_hw_if_param *params)static int isif_config_ycbcr (void ) {struct isif_ycbcr_config *params = &isif_cfg.ycbcr; -struct vpss_pg_frame_size frame_size;u32 modeset =0 , ccdcfg =0 ; -struct vpss_sync_pol sync;dev_dbg (isif_cfg.dev,"\nStarting isif_config_ycbcr..." );
@@ -976,13 +974,6 @@ static int isif_config_ycbcr(void)/* two fields are interleaved in memory */ regw (0x00000249 ,SDOFST ); -/* Setup test pattern if enabled */ -if (isif_cfg.bayer.config_params.test_pat_gen) { - sync.ccdpg_hdpol = params->hd_pol; - sync.ccdpg_vdpol = params->vd_pol; -dm365_vpss_set_sync_pol (sync);
Lines of this file are not shown. View the raw message.
drivers/media/platform/omap/omap_vout.c +6 -9
Lines of this file are not shown. View the raw message.
drivers/media/platform/s5p-jpeg/jpeg-core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/media/platform/vivid/vivid-osd.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/media/radio/wl128x/fmdrv_common.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amazon/ena/ena_com.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amazon/ena/ena_ethtool.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amazon/ena/ena_netdev.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/aquantia/atlantic/aq_vec.c +6 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bcmsysport.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +8 -10
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ibm/ehea/ehea_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +9 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/qp.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/reg.h +21 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/pasemi/pasemi_mac.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_iwarp.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_l2.c +15 -19
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/qca_spi.c +4 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/qca_spi.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath10k/sdio.c +21 -8
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath9k/dynack.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/fw.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/sta.c +13 -6
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas_tf/cmd.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt7601u/phy.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/pci/endpoint/functions/pci-epf-test.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c +77 -19
96 lines not on this page · raw message
drivers/power/supply/power_supply_core.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/scsi/megaraid/megaraid_sas_base.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/spi/spi-tegra114.c +107 -38
145 lines not on this page · raw message
drivers/staging/comedi/drivers/ni_mio_common.c +17 -7
Lines of this file are not shown. View the raw message.
drivers/staging/rtlwifi/halmac/halmac_88xx/halmac_func_88xx.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/tty/serial/stm32-usart.c +67 -56
123 lines not on this page · raw message
fs/nfs/flexfilelayout/flexfilelayout.h +19 -13
Lines of this file are not shown. View the raw message.
include/linux/platform_data/dma-imx-sdma.h +3 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.