Linux 5.15.148
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.148 kernel.
All users of the 5.15 kernel series must upgrade.
The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.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 | 2 arch/arc/kernel/signal.c | 6 arch/arm/boot/dts/qcom-apq8064.dtsi | 2 arch/arm/boot/dts/qcom-sdx55.dtsi | 2 arch/arm/mach-davinci/Kconfig | 2 arch/arm/mach-sunxi/mc_smp.c | 4 arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts | 2 arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 2 arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 arch/arm64/boot/dts/qcom/sc7280.dtsi | 8 arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 2 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 arch/arm64/boot/dts/qcom/sm8150-hdk.dts | 12 arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 2 arch/arm64/kvm/vgic/vgic-its.c | 5 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 27 arch/mips/alchemy/devboards/db1200.c | 2 arch/mips/alchemy/devboards/db1550.c | 2 arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi | 3 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 3 arch/mips/include/asm/dmi.h | 2 arch/mips/kernel/setup.c | 4 arch/powerpc/Makefile | 16 arch/powerpc/boot/crt0.S | 2 arch/powerpc/boot/zImage.lds.S | 7 arch/powerpc/include/asm/sections.h | 16 arch/powerpc/kernel/head_64.S | 2 arch/powerpc/kernel/vmlinux.lds.S | 20 arch/powerpc/lib/Makefile | 4 arch/powerpc/perf/imc-pmu.c | 6 arch/powerpc/platforms/44x/Kconfig | 1 arch/powerpc/platforms/powernv/opal-irqchip.c | 2 arch/powerpc/platforms/powernv/opal-powercap.c | 6 arch/powerpc/platforms/powernv/opal-xscom.c | 5 arch/powerpc/platforms/pseries/hotplug-memory.c | 9 arch/riscv/include/asm/sections.h | 1 arch/riscv/kernel/module.c | 3 arch/riscv/kernel/patch.c | 11 arch/riscv/kernel/vmlinux-xip.lds.S | 2 arch/riscv/kernel/vmlinux.lds.S | 2 arch/s390/include/asm/pci_io.h | 32 - arch/s390/pci/pci_mmio.c | 12 arch/x86/kernel/kvmclock.c | 12 arch/x86/lib/misc.c | 2 block/bio.c | 7 block/blk-settings.c | 2 block/genhd.c | 5 block/ioctl.c | 11 crypto/af_alg.c | 14 crypto/scompress.c | 6 drivers/acpi/acpi_extlog.c | 7 drivers/acpi/acpi_lpit.c | 2 drivers/acpi/acpi_lpss.c | 3 drivers/acpi/acpi_video.c | 12 drivers/acpi/resource.c | 7 drivers/android/binder.c | 2 drivers/android/binder_alloc.c | 32 - drivers/base/swnode.c | 3 drivers/block/null_blk/main.c | 13 drivers/bluetooth/btmtkuart.c | 11 drivers/clk/clk-asm9260.c | 29 drivers/clk/clk-fixed-rate.c | 28 drivers/clk/clk-si5341.c | 4 drivers/clk/qcom/gpucc-sm8150.c | 4 drivers/clk/qcom/videocc-sm8150.c | 5 drivers/clk/rockchip/clk-rk3128.c | 2 drivers/clk/zynqmp/clk-mux-zynqmp.c | 2 drivers/clk/zynqmp/divider.c | 63 -- drivers/cpufreq/cpufreq-dt-platdev.c | 2 drivers/cpufreq/imx-cpufreq-dt.c | 2 drivers/cpufreq/imx6q-cpufreq.c | 4 drivers/cpufreq/scmi-cpufreq.c | 7 drivers/cpufreq/tegra20-cpufreq.c | 2 drivers/crypto/ccp/ccp-ops.c | 5 drivers/crypto/sa2ul.c | 3 drivers/crypto/sahara.c | 248 +++----- drivers/crypto/virtio/virtio_crypto_algs.c | 2 drivers/crypto/virtio/virtio_crypto_common.h | 2 drivers/crypto/virtio/virtio_crypto_core.c | 26 drivers/edac/thunderx_edac.c | 10 drivers/firmware/meson/meson_sm.c | 5 drivers/firmware/ti_sci.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 10 drivers/gpu/drm/amd/amdgpu/soc15.c | 12 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 6 drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c | 4 drivers/gpu/drm/amd/pm/powerplay/si_dpm.c | 5 drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.c | 3 drivers/gpu/drm/bridge/tc358767.c | 2 drivers/gpu/drm/bridge/ti-tpd12s015.c | 4 drivers/gpu/drm/drm_crtc.c | 8 drivers/gpu/drm/drm_drv.c | 10 drivers/gpu/drm/exynos/exynos_drm_dma.c | 8 drivers/gpu/drm/exynos/exynos_hdmi.c | 2 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c | 9 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 4 drivers/gpu/drm/nouveau/nv04_fence.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c | 2 drivers/gpu/drm/omapdrm/omap_drv.c | 9 drivers/gpu/drm/panel/panel-elida-kd35t133.c | 2 drivers/gpu/drm/radeon/r100.c | 4 drivers/gpu/drm/radeon/r600_cs.c | 4 drivers/gpu/drm/radeon/radeon_display.c | 7 drivers/gpu/drm/radeon/radeon_vm.c | 8 drivers/gpu/drm/radeon/si.c | 4 drivers/gpu/drm/radeon/sumo_dpm.c | 4 drivers/gpu/drm/radeon/trinity_dpm.c | 4 drivers/gpu/drm/tidss/tidss_kms.c | 4 drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 drivers/hid/wacom_wac.c | 32 - drivers/hwmon/corsair-psu.c | 18 drivers/hwtracing/coresight/coresight-etm4x.h | 2 drivers/i2c/busses/i2c-rk3x.c | 13 drivers/i2c/busses/i2c-s3c2410.c | 40 - drivers/iio/adc/ad7091r-base.c | 6 drivers/iio/adc/ad9467.c | 114 ++- drivers/iio/adc/adi-axi-adc.c | 74 -- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 drivers/infiniband/hw/hns/hns_roce_pd.c | 2 drivers/infiniband/hw/mthca/mthca_cmd.c | 4 drivers/infiniband/hw/mthca/mthca_main.c | 2 drivers/infiniband/ulp/iser/iscsi_iser.h | 2 drivers/infiniband/ulp/iser/iser_initiator.c | 5 drivers/infiniband/ulp/iser/iser_memory.c | 8 drivers/infiniband/ulp/iser/iser_verbs.c | 1 drivers/input/joystick/xpad.c | 1 drivers/input/keyboard/atkbd.c | 50 + drivers/input/serio/i8042-acpipnpio.h | 8 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 1 drivers/iommu/dma-iommu.c | 3 drivers/leds/Kconfig | 1 drivers/leds/trigger/ledtrig-tty.c | 4 drivers/media/dvb-core/dvbdev.c | 2 drivers/media/dvb-frontends/m88ds3103.c | 7 drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c | 3 drivers/media/usb/cx231xx/cx231xx-core.c | 2 drivers/media/usb/pvrusb2/pvrusb2-context.c | 3 drivers/mfd/intel-lpss.c | 2 drivers/mfd/syscon.c | 4 drivers/mmc/host/Kconfig | 10 drivers/mtd/mtd_blkdevs.c | 4 drivers/mtd/nand/raw/fsl_ifc_nand.c | 2 drivers/net/dsa/vitesse-vsc73xx-core.c | 2 drivers/net/ethernet/broadcom/tg3.c | 11 drivers/net/ethernet/mellanox/mlxbf_gige/Makefile | 1 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige.h | 12 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_gpio.c | 212 ------- drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c | 48 - drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_rx.c | 6 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c | 8 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c | 8 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c | 131 ++-- drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c | 9 drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 11 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 2 drivers/net/ethernet/renesas/ravb_main.c | 2 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 5 drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 10 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 5 drivers/net/phy/micrel.c | 1 drivers/net/wireless/ath/ath11k/ahb.c | 4 drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c | 11 drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 2 drivers/net/wireless/marvell/libertas/Kconfig | 2 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 drivers/net/wireless/marvell/mwifiex/fw.h | 1 drivers/net/wireless/marvell/mwifiex/ioctl.h | 1 drivers/net/wireless/marvell/mwifiex/uap_cmd.c | 8 drivers/net/wireless/mediatek/mt76/eeprom.c | 2 drivers/net/wireless/realtek/rtlwifi/pci.c | 79 -- drivers/net/wireless/realtek/rtlwifi/pci.h | 5 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c | 14 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c | 12 drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.h | 1 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c | 6 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.h | 1 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c | 6 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 15 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c | 16 drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c | 15 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c | 5 drivers/net/wireless/realtek/rtlwifi/wifi.h | 7 drivers/net/wireless/realtek/rtw88/mac80211.c | 4 drivers/net/xen-netback/netback.c | 44 + drivers/nvme/host/core.c | 5 drivers/nvme/host/nvme.h | 5 drivers/nvme/target/tcp.c | 20 drivers/nvme/target/trace.h | 3 drivers/of/base.c | 1 drivers/of/unittest-data/tests-phandle.dtsi | 10 drivers/of/unittest.c | 74 +- drivers/parport/parport_serial.c | 64 ++ drivers/pci/controller/dwc/pci-keystone.c | 9 drivers/pci/controller/dwc/pcie-designware-ep.c | 1 drivers/pci/controller/pcie-mediatek.c | 10 drivers/pci/quirks.c | 8 drivers/pinctrl/cirrus/Kconfig | 3 drivers/platform/x86/intel/vbtn.c | 19 drivers/power/supply/bq256xx_charger.c | 5 drivers/power/supply/cw2015_battery.c | 2 drivers/pwm/pwm-jz4740.c | 7 drivers/pwm/pwm-stm32.c | 63 -- drivers/reset/hisilicon/hi6220_reset.c | 2 drivers/s390/block/scm_blk.c | 7 drivers/scsi/fnic/fnic_debugfs.c | 3 drivers/scsi/hisi_sas/hisi_sas.h | 2 drivers/scsi/hisi_sas/hisi_sas_main.c | 22 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 2 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 20 drivers/scsi/mpi3mr/mpi3mr_os.c | 10 drivers/soc/qcom/llcc-qcom.c | 8 drivers/spi/Kconfig | 3 drivers/spi/spi-sh-msiof.c | 17 drivers/tty/serial/8250/8250_omap.c | 2 drivers/tty/serial/imx.c | 29 drivers/tty/serial/sc16is7xx.c | 8 drivers/tty/tty.h | 2 drivers/tty/tty_io.c | 35 - drivers/tty/tty_ioctl.c | 2 drivers/uio/uio.c | 7 drivers/usb/cdns3/cdns3-gadget.c | 142 +++- drivers/usb/cdns3/cdns3-gadget.h | 3 drivers/usb/chipidea/core.c | 7 drivers/usb/class/cdc-acm.c | 3 drivers/usb/dwc3/core.c | 39 - drivers/usb/dwc3/ep0.c | 5 drivers/usb/host/xhci-mtk.c | 40 + drivers/usb/host/xhci-mtk.h | 2 drivers/usb/mon/mon_bin.c | 7 drivers/usb/phy/phy-mxs-usb.c | 3 drivers/usb/typec/class.c | 4 drivers/video/fbdev/core/fb_defio.c | 6 drivers/watchdog/bcm2835_wdt.c | 3 drivers/watchdog/hpwdt.c | 2 drivers/watchdog/rti_wdt.c | 13 drivers/watchdog/watchdog_dev.c | 3 fs/debugfs/file.c | 8 fs/debugfs/inode.c | 27 fs/debugfs/internal.h | 10 fs/efivarfs/super.c | 12 fs/f2fs/file.c | 12 fs/f2fs/namei.c | 2 fs/f2fs/xattr.c | 6 fs/gfs2/rgrp.c | 2 fs/jbd2/commit.c | 1 fs/jbd2/journal.c | 4 fs/ksmbd/smb_common.c | 6 fs/namespace.c | 11 fs/nfs/blocklayout/blocklayout.c | 2 fs/nfs/nfs4proc.c | 3 fs/pstore/ram_core.c | 2 include/crypto/if_alg.h | 3 include/drm/drm_bridge.h | 2 include/dt-bindings/clock/qcom,videocc-sm8150.h | 4 include/linux/blkdev.h | 3 include/linux/clk-provider.h | 52 + include/linux/dma-map-ops.h | 3 include/linux/iio/adc/adi-axi-adc.h | 4 include/linux/of.h | 291 ++++------ include/net/bluetooth/hci_core.h | 1 include/trace/events/f2fs.h | 12 include/uapi/linux/bpf.h | 3 init/do_mounts.c | 9 io_uring/io_uring.c | 9 kernel/bpf/lpm_trie.c | 3 kernel/bpf/stackmap.c | 11 kernel/bpf/syscall.c | 9 kernel/bpf/verifier.c | 27 kernel/debug/kdb/kdb_main.c | 2 kernel/dma/coherent.c | 12 kernel/kprobes.c | 23 kernel/time/tick-sched.c | 5 kernel/trace/ring_buffer.c | 6 kernel/trace/trace.c | 12 kernel/trace/trace.h | 1 kernel/trace/trace_events_hist.c | 12 kernel/trace/trace_output.c | 6 lib/idr.c | 2 lib/kunit/debugfs.c | 4 lib/test_ida.c | 40 + net/bluetooth/hci_conn.c | 8 net/bluetooth/hci_debugfs.c | 12 net/bluetooth/hci_event.c | 11 net/core/neighbour.c | 9 net/dns_resolver/dns_key.c | 2 net/ethtool/features.c | 9 net/ipv6/ip6_tunnel.c | 26 net/ipv6/mcast.c | 4 net/mptcp/options.c | 12 net/mptcp/protocol.h | 3 net/mptcp/subflow.c | 18 net/ncsi/internal.h | 7 net/ncsi/ncsi-netlink.c | 4 net/ncsi/ncsi-pkt.h | 7 net/ncsi/ncsi-rsp.c | 26 net/netfilter/ipvs/ip_vs_xmit.c | 4 net/netfilter/nf_tables_api.c | 29 net/netfilter/nft_connlimit.c | 37 - net/netfilter/nft_counter.c | 2 net/netfilter/nft_last.c | 73 +- net/netfilter/nft_limit.c | 199 +++++- net/netfilter/nft_quota.c | 56 + net/netlabel/netlabel_calipso.c | 49 - net/qrtr/ns.c | 4 net/sched/act_ct.c | 12 net/vmw_vsock/virtio_transport_common.c | 13 net/wireless/core.c | 2 scripts/Makefile.compiler | 4 scripts/pahole-flags.sh | 3 security/apparmor/policy_unpack.c | 4 security/selinux/hooks.c | 7 sound/pci/hda/patch_realtek.c | 11 sound/pci/oxygen/oxygen_mixer.c | 2 sound/soc/atmel/sam9g20_wm8731.c | 61 ++ sound/soc/codecs/cs35l33.c | 4 sound/soc/codecs/cs35l34.c | 4 sound/soc/codecs/cs43130.c | 6 sound/soc/codecs/da7219-aad.c | 2 sound/soc/codecs/nau8822.c | 9 sound/soc/codecs/rt5645.c | 18 sound/soc/codecs/wm8974.c | 6 sound/soc/intel/boards/bytcr_rt5640.c | 12 sound/soc/intel/skylake/skl-pcm.c | 9 sound/soc/intel/skylake/skl-sst-ipc.c | 4 sound/soc/soc-ops.c | 2 sound/usb/mixer_scarlett_gen2.c | 223 +++++-- tools/include/uapi/linux/bpf.h | 3 tools/lib/api/io.h | 1 tools/perf/util/bpf-event.c | 8 tools/perf/util/bpf-event.h | 12 tools/perf/util/env.c | 50 + tools/perf/util/env.h | 4 tools/perf/util/genelf.c | 6 tools/perf/util/header.c | 8 tools/testing/selftests/bpf/prog_tests/bpf_iter.c | 2 tools/testing/selftests/bpf/progs/bpf_iter_task_stack.c | 5 tools/testing/selftests/drivers/net/mlxsw/qos_pfc.sh | 18 tools/testing/selftests/drivers/net/mlxsw/spectrum-2/tc_flower.sh | 106 +++ tools/testing/selftests/net/fib_nexthop_multiprefix.sh | 4 tools/testing/selftests/powerpc/math/fpu_preempt.c | 9 tools/testing/selftests/powerpc/math/vmx_preempt.c | 10 tools/testing/selftests/sgx/Makefile | 2 tools/testing/selftests/sgx/sigstruct.c | 5 349 files changed, 2951 insertions(+), 1987 deletions(-)
Abhinav Singh (1):
drm/nouveau/fence:: fix warning directly dereferencing a rcu pointer
Alan Maguire (1):
bpf: Add --skip_encoding_btf_inconsistent_proto, --btf_gen_optimized to pahole flags for v1.25
Alan Modra (1):
powerpc/toc: Future proof kernel toc
Alex Deucher (1):
drm/amdgpu/debugfs: fix error code when smc register accessors are NULL
Alexandra Diupina (1):
cpufreq: scmi: process the result of devm_of_clk_add_hw_provider()
Alexandre Ghiti (2):
riscv: Check if the code to patch lies in the exit section
riscv: Fix module_alloc() that did not reset the linear mapping permissions
Amit Cohen (2):
mlxsw: spectrum_acl_erp: Fix error flow of pool allocation failure
selftests: mlxsw: qos_pfc: Adjust the test to support 8 lanes
Amit Kumar Mahapatra (1):
spi: spi-zynqmp-gqspi: fix driver kconfig dependencies
Andrei Matei (1):
bpf: Fix verification of indirect var-off stack access
Andrii Nakryiko (2):
bpf: enforce precision of R0 on callback return
bpf: fix check for attempt to corrupt spilled pointer
Andy Shevchenko (2):
ACPI: LPSS: Fix the fractional clock divider flags
mfd: intel-lpss: Fix the fractional clock divider flags
Armin Wolf (1):
hwmon: (corsair-psu) Fix probe when built-in
Arnaldo Carvalho de Melo (1):
libapi: Add missing linux/types.h header to get the __u64 type on io.h
Arnd Bergmann (4):
EDAC/thunderx: Fix possible out-of-bounds string access
wifi: libertas: stop selecting wext
ARM: davinci: always select CONFIG_CPU_ARM926T
nvmet: re-fix tracing strncpy() warning
Arseniy Krasnov (1):
virtio/vsock: fix logic which reduces credit update messages
Artem Chernyshev (1):
scsi: fnic: Return error if vmalloc() failed
Asmaa Mnebhi (3):
mlxbf_gige: Fix intermittent no ip issue
net: mellanox: mlxbf_gige: Replace non-standard interrupt handling
mlxbf_gige: Enable the GigE port in mlxbf_gige_open
Atul Dhudase (1):
soc: qcom: llcc: Fix dis_cap_alloc and retain_on_pc configuration
Avraham Stern (1):
wifi: iwlwifi: pcie: avoid a NULL pointer dereference
Benjamin Coddington (1):
blocklayoutdriver: Fix reference leak of pnfs_device_node
Cameron Williams (2):
parport: parport_serial: Add Brainboxes BAR details
parport: parport_serial: Add Brainboxes device IDs and geometry
Carlos Llamas (7):
binder: use EPOLLERR from eventpoll.h
binder: fix use-after-free in shinker's callback
binder: fix trivial typo of binder_free_buf_locked()
binder: fix comment on binder_alloc_new_buf() return value
binder: fix async space check for 0-sized buffers
binder: fix unused alloc->free_async_space
binder: fix race between mmput() and do_exit()
Chandrakanth patil (1):
scsi: mpi3mr: Refresh sdev queue depth after controller reset
Chao Yu (3):
f2fs: fix to avoid dirent corruption
f2fs: fix to check compress file in f2fs_move_file_range()
f2fs: fix to update iostat correctly in f2fs_filemap_fault()
Charles Keepax (2):
pinctrl: lochnagar: Don't build on MIPS
ASoC: wm8974: Correct boost mixer inputs
Chen Ni (1):
crypto: sa2ul - Return crypto_aead_setkey to transfer the error
Chengming Zhou (1):
crypto: scomp - fix req->dst buffer overflow
Chih-Kang Chang (1):
wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
Chris Morgan (1):
drm/panel-elida-kd35t133: hold panel in reset for unprepare
Christian A. Ehrhardt (1):
of: Fix double free in of_parse_phandle_with_args_map
Christian Brauner (1):
fs: indicate request originates from old mount API
Christian Marangi (1):
wifi: mt76: fix broken precal loading from MTD for mt7915
Christoph Hellwig (1):
null_blk: don't cap max_hw_sectors to BLK_DEF_MAX_SECTORS
Christoph Niedermaier (2):
serial: imx: Ensure that imx_uart_rs485_config() is called with enabled clock
serial: imx: Correct clock error message in function probe()
Christophe JAILLET (6):
firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create()
media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()
MIPS: Alchemy: Fix an out-of-bound access in db1200_dev_setup()
MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup()
kdb: Fix a potential buffer overflow in kdb_local()
mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable
Christophe Leroy (1):
powerpc: Mark .opd section read-only
Chunfeng Yun (1):
usb: xhci-mtk: fix a short packet issue of gen1 isoc-in transfer
Claudiu Beznea (1):
net: phy: micrel: populate .soft_reset for KSZ9131
Colin Ian King (1):
x86/lib: Fix overflow when counting digits
Curtis Klein (1):
watchdog: set cdev owner before adding
Dan Carpenter (1):
media: dvbdev: drop refcount on error path in dvb_device_open()
Dang Huynh (1):
leds: aw2013: Select missing dependency REGMAP_I2C
Dario Binacchi (1):
drm/bridge: Fix typo in post_disable() description
Dave Airlie (1):
nouveau/tu102: flush all pdbs on vmm flush
David Howells (1):
keys, dns: Fix size check of V1 server-list header
David Lin (2):
ASoC: nau8822: Fix incorrect type in assignment and cast to restricted __be16
wifi: mwifiex: configure BSSID consistently when starting AP
David Rau (1):
ASoC: da7219: Support low DC impedance headset
Dinghao Liu (1):
crypto: ccp - fix memleak in ccp_init_dm_workarea
Dmitry Baryshkov (6):
ARM: dts: qcom: apq8064: correct XOADC register address
arm64: dts: qcom: sm8150-hdk: fix SS USB regulators drm/msm/mdp4: flush vblank event on disable drm/drv: propagate errors from drm_modeset_register_all()
clk: asm9260: use parent index to link the reference clock
clk: fixed-rate: add devm_clk_hw_register_fixed_rate
Dmitry Rokosov (1):
firmware: meson_sm: populate platform devices from sm device tree data
Douglas Anderson (5):
arm64: dts: qcom: sc7180: Make watchdog bark interrupt edge triggered
arm64: dts: qcom: sc7280: Make watchdog bark interrupt edge triggered
arm64: dts: qcom: sdm845: Make watchdog bark interrupt edge triggered
arm64: dts: qcom: sm8150: Make watchdog bark interrupt edge triggered
arm64: dts: qcom: sm8250: Make watchdog bark interrupt edge triggered
Edward Adam Davis (1):
mptcp: fix uninit-value in mptcp_incoming_options
Eric Biggers (2):
f2fs: explicitly null-terminate the xattr list
f2fs: fix the f2fs_file_write_iter tracepoint
Eric Dumazet (5):
ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
mptcp: mptcp_parse_option() fix for MPTCPOPT_MP_JOIN
mptcp: strict validation before using mp_opt->hmac
mptcp: use OPTION_MPTCP_MPJ_SYNACK in subflow_finish_connect()
mptcp: use OPTION_MPTCP_MPJ_SYN in subflow_check_req()
Esther Shimanovich (1):
Input: i8042 - add nomux quirk for Acer P459-G2-M
Fedor Pchelkin (2):
apparmor: avoid crash when parsed profile name is empty
ipvs: avoid stat macros calls from preemptible context
Florian Eckert (1):
leds: ledtrig-tty: Free allocated ttyname buffer on deactivate
Florian Lehner (1):
bpf, lpm: Fix check prefixlen before walking trie
Florian Westphal (2):
netfilter: nf_tables: mark newset as dead on transaction abort
netfilter: nft_limit: fix stateful object memory leak
Francesco Dolcini (1):
Bluetooth: btmtkuart: fix recv_buf() return value
Frank Li (3):
usb: cdns3: fix uvc failure work since sg support enabled
usb: cdns3: fix iso transfer error when mult is not zero
usb: cdns3: Fix uvc fail when DMA cross 4k boundery since sg enabled
Gavrilov Ilia (1):
calipso: fix memory leak in netlbl_calipso_add_pass()
Geert Uytterhoeven (1):
of: unittest: Fix of_count_phandle_with_args() expected value message
Geliang Tang (1):
mptcp: drop unused sk in mptcp_get_options
Geoffrey D. Bennett (5):
ALSA: scarlett2: Add missing error check to scarlett2_config_save()
ALSA: scarlett2: Add missing error check to scarlett2_usb_set_config()
ALSA: scarlett2: Allow passing any output to line_out_remap()
ALSA: scarlett2: Add missing error checks to *_ctl_get()
ALSA: scarlett2: Add clamp() in scarlett2_mixer_ctl_put()
Gonglei (Arei) (1):
crypto: virtio - Handle dataq logic with tasklet
Greg Kroah-Hartman (2):
Revert "ASoC: atmel: Remove system clock tree configuration for at91sam9g20ek" Linux 5.15.148
Guanghui Feng (1):
uio: Fix use-after-free in uio_open
Gui-Dong Han (2):
usb: mon: Fix atomicity violation in mon_bin_vma_fault
Bluetooth: Fix atomicity violation in {min,max}_key_size_set
Hangbin Liu (1):
selftests/net: fix grep checking for fib_nexthop_multiprefix
Hans de Goede (6):
platform/x86: intel-vbtn: Fix missing tablet-mode-switch events
Input: atkbd - skip ATKBD_CMD_GETID in translated mode
ASoC: Intel: bytcr_rt5640: Add quirk for the Medion Lifetab S10346
ACPI: resource: Add another DMI match for the TongFang GMxXGxx
ASoC: rt5645: Drop double EF20 entry from dmi_platform_data[]
Input: atkbd - use ab83 as id when skipping the getid command
Hao Sun (1):
bpf: Reject variable offset alu on PTR_TO_FLOW_KEYS
Heikki Krogerus (1):
Revert "usb: typec: class: fix typec_altmode_put_partner to put plugs"
Heiko Carstens (1):
tick-sched: Fix idle and iowait sleeptime accounting vs CPU hotplug
Herbert Xu (1):
crypto: af_alg - Disallow multiple in-flight AIO requests
Hugo Villeneuve (2):
serial: sc16is7xx: add check for unsupported SPI modes during probe
serial: sc16is7xx: set safe default SPI clock frequency
Ian Rogers (1):
perf env: Avoid recursively taking env->bpf_progs.lock
Ido Schimmel (4):
mlxsw: spectrum_acl_tcam: Add missing mutex_destroy()
mlxsw: spectrum_acl_tcam: Make fini symmetric to init
mlxsw: spectrum_acl_tcam: Reorder functions to avoid forward declarations
mlxsw: spectrum_acl_tcam: Fix stack corruption
Ilias Apalodimas (1):
efivarfs: force RO when remounting if SetVariable is not supported
Ilpo Järvinen (2):
wifi: rtlwifi: Remove bogus and dangerous ASPM disable/enable code
wifi: rtlwifi: Convert LNKCTL change to PCIe cap RMW accessors
Inki Dae (1):
drm/exynos: fix a wrong error checking
Isaac J. Manjarres (1):
iommu/dma: Trace bounce buffer usage when mapping buffers
James Clark (1):
coresight: etm4x: Fix width of CCITMIN field
Jan Beulich (1):
xen-netback: don't produce zero-size SKB frags
Jan Palus (1):
power: supply: cw2015: correct time_to_empty units in sysfs
Jani Nikula (1):
drm/crtc: fix uninitialized variable use
Jason Gerecke (1):
HID: wacom: Correct behavior when processing some confidence == false touches
Jay Buddhabhatti (2):
drivers: clk: zynqmp: calculate closest mux rate
drivers: clk: zynqmp: update divider round rate logic
Jens Axboe (1):
io_uring/rw: ensure io->bytes_done is always initialized
Jensen Huang (1):
i2c: rk3x: fix potential spinlock recursion on poll
Jerry Hoemann (1):
watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO
Jiri Olsa (1):
bpf: Fix re-attachment branch in bpf_tracing_prog_attach
Jiri Slaby (SUSE) (4):
tty: change tty_write_lock()'s ndelay parameter to bool
tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAK
tty: don't check for signal_pending() in send_break()
tty: use 'if' in send_break() instead of 'goto'
Jo Van Bulck (1):
selftests/sgx: Fix uninitialized pointer dereference in error path
Joakim Zhang (1):
dma-mapping: clear dev->dma_mem to NULL after freeing it
Johan Hovold (1):
arm64: dts: qcom: sc7280: fix usb_2 wakeup interrupt types
Johannes Berg (4):
wifi: cfg80211: lock wiphy mutex for rfkill poll
debugfs: fix automount d_fsdata usage
wifi: iwlwifi: mvm: set siso/mimo chains to 1 in FW SMPS request
wifi: iwlwifi: mvm: send TX path flush in rfkill
Jordan Rome (2):
bpf: Add crosstask check to __bpf_get_stack selftests/bpf: Add assert for user stacks in test_task_stack
Judy Hsiao (1):
neighbour: Don't let neigh_forced_gc() disable preemption for long
Junxian Huang (1):
RDMA/hns: Fix inappropriate err code for unsupported operations
Junxiao Bi (1):
Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"
Kamil Duljas (2):
ASoC: Intel: Skylake: Fix mem leak in few functions
ASoC: Intel: Skylake: mem leak in skl register function
Keith Busch (3):
nvme-core: check for too small lba shift
nvme: introduce helper function to get ctrl state
block: make BLK_DEF_MAX_SECTORS unsigned
Kirill A. Shutemov (1):
x86/kvm: Do not try to disable kvmclock if it was not enabled
Konrad Dybcio (2):
arm64: dts: qcom: sc7280: Mark SDHCI hosts as cache-coherent drm/msm/dsi: Use pm_runtime_resume_and_get to prevent refcnt leaks
Krzysztof Kozlowski (6):
stmmac: dwmac-loongson: drop useless check for compatible fallback
MIPS: dts: loongson: drop incorrect dwmac fallback compatible
reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning
ARM: dts: qcom: sdx65: correct SPMI node name
arm64: dts: qcom: qrb5165-rb5: correct LED panic indicator
arm64: dts: qcom: sdm845-db845c: correct LED panic indicator
Kunwu Chan (6):
powerpc/powernv: Add a null pointer check to scom_debug_init_one() powerpc/powernv: Add a null pointer check in opal_event_init() powerpc/powernv: Add a null pointer check in opal_powercap_init() powerpc/imc-pmu: Add a null pointer check in update_events_in_group()
mfd: syscon: Fix null pointer dereference in of_syscon_register()
net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
Laurent Pinchart (1):
media: rkisp1: Disable runtime PM in probe error path
LeoLiuoc (1):
PCI: Add ACS quirk for more Zhaoxin Root Ports
Leon Romanovsky (1):
RDMA/usnic: Silence uninitialized symbol smatch warnings
Li Nan (3):
block: Set memalloc_noio to false on device_add_disk() error path
block: add check of 'minors' and 'first_minor' in device_add_disk()
ksmbd: validate the zero field of packet header
Lijo Lazar (1):
drm/amdgpu: Add NULL checks for function pointers
Lin Ma (1):
net: qualcomm: rmnet: fix global oob in rmnet_policy
Linus Walleij (2):
ASoC: cs35l33: Fix GPIO name and drop legacy include
ASoC: cs35l34: Fix GPIO name and drop legacy include
Lu Yao (1):
drm/amdgpu: Fix cat debugfs amdgpu_regs_didt causes kernel null pointer
Luca Weiss (2):
Input: xpad - add Razer Wolverine V2 support
wifi: ath11k: Defer on rproc_get failure
Ludvig Pärsson (1):
ethtool: netlink: Add missing ethnl_ops_begin/complete
Luiz Augusto von Dentz (1):
Bluetooth: Fix bogus check for re-auth no supported with non-ssp
Luo Jiaxing (1):
scsi: hisi_sas: Rename HISI_SAS_{RESET -> RESETTING}_BITMaciej Strozek (2):
ASoC: cs43130: Fix the position of const qualifier
ASoC: cs43130: Fix incorrect frame delay configuration
Marc Zyngier (1):
KVM: arm64: vgic-v4: Restore pending state on host userspace write
Marcelo Schmitt (1):
iio: adc: ad7091r: Pass iio_dev to event handler
Marek Szyprowski (2):
i2c: s3c24xx: fix read transfers in polling mode
i2c: s3c24xx: fix transferring more than one message in polling mode
Mark-PK Tsai (1):
dma-mapping: Add dma_release_coherent_memory to DMA API
Masahiro Yamada (2):
powerpc: remove checks for binutils older than 2.25
powerpc: add crtsavres.o to always-y instead of extra-y
Masami Hiramatsu (Google) (1):
kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list
Matthew Wilcox (Oracle) (2):
ida: Fix crash in ida_free when the bitmap is empty
block: Remove special-casing of compound pages
Maurizio Lombardi (3):
nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length
nvmet-tcp: fix a crash in nvmet_req_complete()
nvmet-tcp: Fix the H2C expected PDU len calculation
Michael Ellerman (1):
selftests/powerpc: Fix error handling in FPU/VMX preemption tests
Michael Walle (1):
of: property: define of_property_read_u{8,16,32,64}_array() unconditionallyMickaël Salaün (1):
selinux: Fix error priority for bind with AF_UNSPEC on PF_INET6 socket
Min Li (1):
block: add check that partition length needs to be aligned with block size
Nam Cao (1):
fbdev: flush deferred work in fb_deferred_io_fsync()
Namhyung Kim (1):
perf genelf: Set ELF program header addresses properly
Nathan Lynch (1):
powerpc/pseries/memhp: Fix access beyond end of drmem array
Nikita Kiryushin (2):
ACPI: video: check for error while searching for backlight device parent
ACPI: LPIT: Avoid u32 multiplication overflow
Nikita Yushchenko (1):
net: ravb: Fix dma_addr_t truncation in error case
Nikita Zhandarovich (4):
drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg() drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check() drm/radeon: check return value of radeon_ring_lock()
ipv6: mcast: fix data-race in ipv6_mc_down / mld_ifc_work
Niklas Cassel (1):
PCI: dwc: endpoint: Fix dw_pcie_ep_raise_msix_irq() alignment support
Niklas Schnelle (1):
s390/pci: fix max size calculation in zpci_memcpy_toio()
Nuno Sa (3):
iio: adc: ad9467: fix reset gpio handling
iio: adc: ad9467: don't ignore error codes
iio: adc: ad9467: fix scale setting
Oliver Neukum (1):
usb: cdc-acm: return correct error code on unsupported break
Oliver Upton (1):
KVM: arm64: vgic-its: Avoid potential UAF in LPI translation cache
Osama Muhammad (1):
gfs2: Fix kernel NULL pointer dereference in gfs2_rgrp_dump
Ovidiu Panait (12):
crypto: sahara - remove FLAGS_NEW_KEY logic
crypto: sahara - fix cbc selftest failure
crypto: sahara - fix ahash selftest failure
crypto: sahara - fix processing requests with cryptlen < sg->length
crypto: sahara - fix error handling in sahara_hw_descriptor_create()
crypto: sahara - avoid skcipher fallback code duplication
crypto: sahara - handle zero-length aes requests
crypto: sahara - fix ahash reqsize
crypto: sahara - fix wait_for_completion_timeout() error handling
crypto: sahara - improve error handling in sahara_sha_process()
crypto: sahara - fix processing hash requests with req->nbytes < sg->length
crypto: sahara - do not resize req->src when doing hash operations
Pablo Neira Ayuso (15):
netfilter: nf_tables: check if catch-all set element is active in next generation
netfilter: nf_tables: reject invalid set policy
netfilter: nft_connlimit: move stateful fields out of expression data
netfilter: nft_last: move stateful fields out of expression data
netfilter: nft_quota: move stateful fields out of expression data
netfilter: nft_limit: rename stateful structure
netfilter: nft_limit: move stateful fields out of expression data
netfilter: nft_limit: do not ignore unsupported flags
netfilter: nf_tables: do not allow mismatch field size and set key length
netfilter: nf_tables: skip dead set elements in netlink dump
netfilter: nf_tables: reject NFT_SET_CONCAT with not field length description
netfilter: nf_tables: typo NULL check in _clone() function
netfilter: nft_connlimit: memleak if nf_ct_netns_get() fails
netfilter: nft_last: copy content when cloning expression
netfilter: nft_quota: copy content when cloning expression
Paul Geurts (1):
serial: imx: fix tx statemachine deadlock
Peter Delevoryas (1):
net/ncsi: Fix netlink major/minor version numbers
Peter Robinson (2):
mmc: sdhci_am654: Fix TI SoC dependencies
mmc: sdhci_omap: Fix TI SoC dependencies
Phil Sutter (1):
netfilter: nft_limit: Clone packet limits' cost value
Philipp Zabel (2):
pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
pwm: stm32: Fix enable count for clk in .probe()
Qi Liu (1):
scsi: hisi_sas: Prevent parallel FLR and controller reset
Qiang Ma (1):
net: stmmac: ethtool: Fixed calltrace caused by unbalanced disable_irq_wake calls
RD Babiera (1):
usb: typec: class: fix typec_altmode_put_partner to put plugs
Randy Dunlap (2):
powerpc/44x: select I2C for CURRITUCK
ARM: 9330/1: davinci: also select PINCTRL
Ren Zhijie (1):
dma-mapping: Fix build error unused-value
Ricardo B. Marliere (1):
media: pvrusb2: fix use after free on context disconnection
Richard Fitzgerald (1):
kunit: debugfs: Fix unchecked dereference in debugfs_print_results()
Rob Clark (1):
iommu/arm-smmu-qcom: Add missing GMU entry to match table
Rob Herring (2):
of: Add of_property_present() helper
cpufreq: Use of_property_present() for testing DT property presence
Ronald Monthero (1):
mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response
Sakari Ailus (1):
software node: Let args be NULL in software_node_get_reference_args
Sanjuán García, Jorge (1):
net: ethernet: ti: am65-cpsw: Fix max mtu to fit ethernet frames
Sarannya S (1):
net: qrtr: ns: Return 0 if server port is not present
Satya Priya Kakitapalli (4):
clk: qcom: gpucc-sm8150: Update the gpu_cc_pll1 config
dt-bindings: clock: Update the videocc resets for sm8150
clk: qcom: videocc-sm8150: Update the videocc resets
clk: qcom: videocc-sm8150: Add missing PLL config property
Serge Semin (2):
mips: dmi: Fix early remap on MIPS32
mips: Fix incorrect max_low_pfn adjustment
Sergey Gorenko (1):
IB/iser: Prevent invalidating wrong MR
Sergey Shtylyov (1):
pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()
Shubhrajyoti Datta (2):
clk: zynqmp: make bestdiv unsigned
clk: zynqmp: Add a check for NULL pointer
Shuming Fan (1):
ASoC: rt5650: add mutex to avoid the jack detection failure
Siddharth Vadapalli (1):
PCI: keystone: Fix race condition when initializing PHYs
Sjoerd Simons (1):
arm64: dts: armada-3720-turris-mox: set irq type for RTC
Song Liu (1):
Revert "Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d""
Srinivas Kandagatla (1):
ASoC: ops: add correct range check for limiting volume
Stefan Berger (1):
rootfs: Fix support for rootfstype= when root= is given
Stefan Wahren (2):
ARM: sun9i: smp: fix return code check of of_property_match_string
watchdog: bcm2835_wdt: Fix WDIOC_SETTIMEOUT handling
Steven Rostedt (Google) (3):
tracing: Have large events show up as '[LINE TOO BIG]' instead of nothing
tracing: Add size check when printing trace_marker output
ring-buffer: Do not record in NMI if the arch does not support cmpxchg in NMI
Su Hui (11):
wifi: rtlwifi: rtl8821ae: phy: fix an undefined bitwise shift behavior
wifi: rtlwifi: add calculate_bit_shift()
wifi: rtlwifi: rtl8188ee: phy: using calculate_bit_shift()
wifi: rtlwifi: rtl8192c: using calculate_bit_shift()
wifi: rtlwifi: rtl8192cu: using calculate_bit_shift()
wifi: rtlwifi: rtl8192ce: using calculate_bit_shift()
wifi: rtlwifi: rtl8192de: using calculate_bit_shift()
wifi: rtlwifi: rtl8192ee: using calculate_bit_shift()
wifi: rtlwifi: rtl8192se: using calculate_bit_shift()
clk: si5341: fix an error code problem in si5341_output_clk_set_rate
power: supply: bq256xx: fix some problem in bq256xx_hw_init
Takashi Iwai (1):
ALSA: oxygen: Fix right channel of capture volume mixer
Tao Liu (1):
net/sched: act_ct: fix skb leak and crash on ooo frags
Thinh Nguyen (2):
Revert "usb: dwc3: Soft reset phy on probe for host"
Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only"
Thinh Tran (1):
net/tg3: fix race condition in tg3_reset_task()
Théo Lebrun (1):
clk: fixed-rate: fix clk_hw_register_fixed_rate_with_accuracy_parent_hw
Tomi Valkeinen (6):
arm64: dts: ti: k3-am65-main: Fix DSS irq trigger type Revert "drm/tidss: Annotate dma-fence critical section in commit path" Revert "drm/omapdrm: Annotate dma-fence critical section in commit path" drm/tilcdc: Fix irq free on unload
drm/bridge: cdns-mhdp8546: Fix use of uninitialized variable drm/bridge: tc358767: Fix return value on error case
Tony Luck (1):
ACPI: extlog: Clear Extended Error Log status when RAS_CEC handled the error
Trond Myklebust (1):
NFSv4.1/pnfs: Ensure we handle the error NFS4ERR_RETURNCONFLICT
Uttkarsh Aggarwal (1):
usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart
Uwe Kleine-König (5):
drm/bridge: tpd12s015: Drop buggy __exit annotation for remove function
pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
pwm: jz4740: Don't use dev_err_probe() in .request()
serial: 8250: omap: Don't skip resource freeing if pm_runtime_resume_and_get() failed
iio: adc: ad9467: Benefit from devm_clk_get_enabled() to simplify
Vasiliy Kovalev (1):
ALSA: hda - Fix speaker and headset mic pin config for CHUWI CoreBook XPro
Vasily Averin (1):
netfilter: nf_tables: memcg accounting for dynamically allocated objects
Vignesh Raghavendra (1):
watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused
Vineet Gupta (1):
ARC: fix spare error
Vineeth Vijayan (1):
s390/scm: fix virtual vs physical address confusion
Wei Yongjun (1):
virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session()
Weihao Li (1):
clk: rockchip: rk3128: Fix HCLK_OTG gate register
Wolfram Sang (1):
spi: sh-msiof: Enforce fixed DTDL for R-Car H3
Xiang Yang (1):
drm/exynos: fix a potential error pointer dereference
Xu Yang (2):
usb: phy: mxs: remove CONFIG_USB_OTG condition for mxs_phy_is_otg_host()
usb: chipidea: wait controller resume finished for wakeup irq
Yang Yingliang (1):
drm/radeon: check the alloc_workqueue return value in radeon_crtc_init()
Ye Bin (1):
jbd2: fix soft lockup in journal_finish_inode_data_buffers()
Yihang Li (3):
scsi: hisi_sas: Replace with standard error code return value
scsi: hisi_sas: Rollback some operations if FLR failed
scsi: hisi_sas: Correct the number of global debugfs registers
Zhang Yi (1):
jbd2: correct the printing of write_flags in jbd2_write_superblock()
Zhao Mengmeng (1):
selftests/sgx: Skip non X86_64 platform
ZhaoLong Wang (1):
mtd: Fix gluebi NULL pointer dereference caused by ftl notifier
Zheng Yejian (1):
tracing: Fix uaf issue when open the hist or hist_debug file
Zhipeng Lu (7):
drm/radeon/dpm: fix a memleak in sumo_parse_power_table drm/radeon/trinity_dpm: fix a memleak in trinity_parse_power_table
media: cx231xx: fix a memleak in cx231xx_init_isoc drm/amd/pm: fix a double-free in si_dpm_init drivers/amd/pm: fix a use-after-free in kv_parse_power_table gpu/drm/radeon: fix two memleaks in radeon_vm_init drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init
Ziqi Zhao (1):
drm/crtc: Fix uninit-value bug in drm_mode_setcrtc
qizhong cheng (1):
PCI: mediatek: Clear interrupt status before dispatching handler
wangyangxin (1):
crypto: virtio - Wait for tasklet to complete on device remove
Çağhan Demir (1):
ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq2xxx
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 147 +SUBLEVEL = 148 EXTRAVERSION = NAME = Trick or Treat
arch/arc/kernel/signal.c +3 -3
@@ -61,7 +61,7 @@ struct rt_sigframe {unsigned int sigret_magic; }; -static int save_arcv2_regs (struct sigcontext *mctx,struct pt_regs *regs) +static int save_arcv2_regs (struct sigcontext __user *mctx,struct pt_regs *regs) {int err =0 ;#ifndef CONFIG_ISA_ARCOMPACT
@@ -74,12 +74,12 @@ static int save_arcv2_regs(struct sigcontext *mctx, struct pt_regs *regs)#else v2abi.r58 = v2abi.r59 =0 ;#endif - err =__copy_to_user (&mctx->v2abi, &v2abi,sizeof (v2abi)); + err =__copy_to_user (&mctx->v2abi, (void const *)&v2abi,sizeof (v2abi));#endif return err; } -static int restore_arcv2_regs (struct sigcontext *mctx,struct pt_regs *regs) +static int restore_arcv2_regs (struct sigcontext __user *mctx,struct pt_regs *regs) {int err =0 ;#ifndef CONFIG_ISA_ARCOMPACT
arch/arm/boot/dts/qcom-apq8064.dtsi +1 -1
@@ -760,7 +760,7 @@ pwrkey@1c { xoadc: xoadc@197 { compatible = "qcom,pm8921-adc"; - reg = <197>; + reg = <0x197>; interrupts-extended = <&pmicintc 78 IRQ_TYPE_EDGE_RISING>; #address-cells = <2>; #size-cells = <0>;
arch/arm/boot/dts/qcom-sdx55.dtsi +1 -1
@@ -457,7 +457,7 @@ restart@c264000 { reg = <0x0c264000 0x1000>; }; - spmi_bus: qcom,spmi@c440000 { + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0c440000 0x0000d00>, <0x0c600000 0x2000000>,
arch/arm/mach-davinci/Kconfig +2 -0
@@ -3,12 +3,14 @@ menuconfig ARCH_DAVINCI bool "TI DaVinci" depends on ARCH_MULTI_V5 + select CPU_ARM926T select DAVINCI_TIMER select ZONE_DMA select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM && OF select REGMAP_MMIO select RESET_CONTROLLER + select PINCTRL select PINCTRL_SINGLE if ARCH_DAVINCI
arch/arm/mach-sunxi/mc_smp.c +2 -2
@@ -804,12 +804,12 @@ static int __init sunxi_mc_smp_init(void)for (i =0 ; i <ARRAY_SIZE (sunxi_mc_smp_data); i++) { ret =of_property_match_string (node,"enable-method" , sunxi_mc_smp_data[i].enable_method); -if (!ret) +if (ret >=0 )break ; }of_node_put (node); -if (ret) +if (ret <0 )return -ENODEV ; is_a83t = sunxi_mc_smp_data[i].is_a83t;
arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts +1 -1
@@ -130,7 +130,7 @@ rtc@6f { compatible = "microchip,mcp7940x"; reg = <0x6f>; interrupt-parent = <&gpiosb>; - interrupts = <5 0>; /* GPIO2_5 */ + interrupts = <5 IRQ_TYPE_EDGE_FALLING>; /* GPIO2_5 */ }; };
arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +1 -1
@@ -58,8 +58,8 @@ leds { user4 { label = "green:user4"; gpios = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "panic-indicator"; default-state = "off"; + panic-indicator; }; wlan {
arch/arm64/boot/dts/qcom/sc7180.dtsi +1 -1
@@ -3366,7 +3366,7 @@ watchdog@17c10000 { compatible = "qcom,apss-wdt-sc7180", "qcom,kpss-wdt"; reg = <0 0x17c10000 0 0x1000>; clocks = <&sleep_clk>; - interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; }; timer@17c20000{
arch/arm64/boot/dts/qcom/sc7280.dtsi +5 -3
@@ -485,6 +485,7 @@ sdhc_1: sdhci@7c4000 { bus-width = <8>; supports-cqe; + dma-coherent; qcom,dll-config = <0x0007642c>; qcom,ddr-config = <0x80040868>;
@@ -1174,6 +1175,7 @@ sdhc_2: sdhci@8804000 { operating-points-v2 = <&sdhc2_opp_table>; bus-width = <4>; + dma-coherent; qcom,dll-config = <0x0007642c>;
@@ -1290,8 +1292,8 @@ usb_2: usb@8cf8800 { assigned-clock-rates = <19200000>, <200000000>; interrupts-extended = <&intc GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>, - <&pdc 13 IRQ_TYPE_EDGE_RISING>, - <&pdc 12 IRQ_TYPE_EDGE_RISING>; + <&pdc 12 IRQ_TYPE_EDGE_BOTH>, + <&pdc 13 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "hs_phy_irq", "dm_hs_phy_irq", "dp_hs_phy_irq";
@@ -1711,7 +1713,7 @@ watchdog@17c10000 { compatible = "qcom,apss-wdt-sc7280", "qcom,kpss-wdt"; reg = <0 0x17c10000 0 0x1000>; clocks = <&sleep_clk>; - interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; }; timer@17c20000 {
arch/arm64/boot/dts/qcom/sdm845-db845c.dts +1 -1
@@ -55,8 +55,8 @@ leds { user4 { label = "green:user4"; gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "panic-indicator"; default-state = "off"; + panic-indicator; }; wlan {
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -1
@@ -4725,7 +4725,7 @@ watchdog@17980000 { compatible = "qcom,apss-wdt-sdm845", "qcom,kpss-wdt"; reg = <0 0x17980000 0 0x1000>; clocks = <&sleep_clk>; - interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; }; apss_shared: mailbox@17990000 {
arch/arm64/boot/dts/qcom/sm8150-hdk.dts +8 -4
@@ -126,8 +126,6 @@ vdda_qrefs_0p875_5: vdda_sp_sensor: vdda_ufs_2ln_core_1: vdda_ufs_2ln_core_2: - vdda_usb_ss_dp_core_1: - vdda_usb_ss_dp_core_2: vdda_qlink_lv: vdda_qlink_lv_ck: vreg_l5a_0p875: ldo5 {
@@ -209,6 +207,12 @@ vreg_l17a_3p0: ldo17 { regulator-max-microvolt = <3008000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; }; + + vreg_l18a_0p8: ldo18 { + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; }; pm8150l-rpmh-regulators {
@@ -441,13 +445,13 @@ &usb_2_hsphy { &usb_1_qmpphy { status = "okay"; vdda-phy-supply = <&vreg_l3c_1p2>; - vdda-pll-supply = <&vdda_usb_ss_dp_core_1>; + vdda-pll-supply = <&vreg_l18a_0p8>; }; &usb_2_qmpphy { status = "okay"; vdda-phy-supply = <&vreg_l3c_1p2>; - vdda-pll-supply = <&vdda_usb_ss_dp_core_1>; + vdda-pll-supply = <&vreg_l5a_0p875>; }; &usb_1 {
arch/arm64/boot/dts/qcom/sm8150.dtsi +1 -1
@@ -3359,7 +3359,7 @@ watchdog@17c10000 { compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt"; reg = <0 0x17c10000 0 0x1000>; clocks = <&sleep_clk>; - interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; }; timer@17c20000 {
arch/arm64/boot/dts/qcom/sm8250.dtsi +1 -1
@@ -3947,7 +3947,7 @@ watchdog@17c10000 { compatible = "qcom,apss-wdt-sm8250", "qcom,kpss-wdt"; reg = <0 0x17c10000 0 0x1000>; clocks = <&sleep_clk>; - interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; }; timer@17c20000 {
arch/arm64/boot/dts/ti/k3-am65-main.dtsi +1 -1
@@ -855,7 +855,7 @@ dss: dss@4a00000 { assigned-clocks = <&k3_clks 67 2>; assigned-clock-parents = <&k3_clks 67 5>; - interrupts = <GIC_SPI 166 IRQ_TYPE_EDGE_RISING>; + interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>; dma-coherent;
arch/arm64/kvm/vgic/vgic-its.c +5 -0
@@ -584,7 +584,11 @@ static struct vgic_irq *vgic_its_check_cache(struct kvm *kvm, phys_addr_t db,unsigned long flags;raw_spin_lock_irqsave (&dist->lpi_list_lock, flags); + irq =__vgic_its_check_cache (dist, db, devid, eventid); +if (irq) +vgic_get_irq_kref (irq); +raw_spin_unlock_irqrestore (&dist->lpi_list_lock, flags);return irq;
@@ -763,6 +767,7 @@ int vgic_its_inject_cached_translation(struct kvm *kvm, struct kvm_msi *msi)raw_spin_lock_irqsave (&irq->irq_lock, flags); irq->pending_latch = true;vgic_queue_irq_unlock (kvm, irq, flags); +vgic_put_irq (kvm, irq);return 0 ; }
arch/arm64/kvm/vgic/vgic-mmio-v3.c +17 -10
@@ -363,19 +363,26 @@ static int vgic_v3_uaccess_write_pending(struct kvm_vcpu *vcpu,struct vgic_irq *irq =vgic_get_irq (vcpu->kvm, vcpu, intid + i);raw_spin_lock_irqsave (&irq->irq_lock, flags); -if (test_bit (i, &val)) { -/* -* pending_latch is set irrespective of irq type -* (level or edge) to avoid dependency that VM should -* restore irq config before pending info. -*/ - irq->pending_latch = true; -vgic_queue_irq_unlock (vcpu->kvm, irq, flags); - }else { + +/* +* pending_latch is set irrespective of irq type +* (level or edge) to avoid dependency that VM should +* restore irq config before pending info. +*/ + irq->pending_latch =test_bit (i, &val); + +if (irq->hw &&vgic_irq_is_sgi (irq->intid)) { +irq_set_irqchip_state (irq->host_irq, +IRQCHIP_STATE_PENDING , + irq->pending_latch); irq->pending_latch = false; -raw_spin_unlock_irqrestore (&irq->irq_lock, flags); } +if (irq->pending_latch) +vgic_queue_irq_unlock (vcpu->kvm, irq, flags); +else +raw_spin_unlock_irqrestore (&irq->irq_lock, flags); +vgic_put_irq (vcpu->kvm, irq); }
arch/mips/alchemy/devboards/db1200.c +1 -1
@@ -847,7 +847,7 @@ int __init db1200_dev_setup(void)i2c_register_board_info (0 , db1200_i2c_devs,ARRAY_SIZE (db1200_i2c_devs));spi_register_board_info (db1200_spi_devs, -ARRAY_SIZE (db1200_i2c_devs)); +ARRAY_SIZE (db1200_spi_devs));/* SWITCHES: S6.8 I2C/SPI selector (OFF=I2C ON=SPI) * S6.7 AC97/I2S selector (OFF=AC97 ON=I2S)
arch/mips/alchemy/devboards/db1550.c +1 -1
@@ -588,7 +588,7 @@ int __init db1550_dev_setup(void)i2c_register_board_info (0 , db1550_i2c_devs,ARRAY_SIZE (db1550_i2c_devs));spi_register_board_info (db1550_spi_devs, -ARRAY_SIZE (db1550_i2c_devs)); +ARRAY_SIZE (db1550_spi_devs)); c =clk_get (NULL ,"psc0_intclk" );if (!IS_ERR (c)) {
arch/mips/boot/dts/loongson/loongson64-2k1000.dtsi +1 -2
@@ -118,8 +118,7 @@ gmac@3,0 { compatible = "pci0014,7a03.0", "pci0014,7a03", "pciclass0c0320", - "pciclass0c03", - "loongson, pci-gmac"; + "pciclass0c03"; reg = <0x1800 0x0 0x0 0x0 0x0>; interrupts = <12 IRQ_TYPE_LEVEL_LOW>,
arch/mips/boot/dts/loongson/ls7a-pch.dtsi +1 -2
@@ -186,8 +186,7 @@ gmac@3,0 { compatible = "pci0014,7a03.0", "pci0014,7a03", "pciclass020000", - "pciclass0200", - "loongson, pci-gmac"; + "pciclass0200"; reg = <0x1800 0x0 0x0 0x0 0x0>; interrupts = <12 IRQ_TYPE_LEVEL_HIGH>,
arch/mips/include/asm/dmi.h +1 -1
@@ -5,7 +5,7 @@#include <linux/io.h> #include <linux/memblock.h> -#define dmi_early_remap (x, l) ioremap_cache(x, l) +#define dmi_early_remap (x, l) ioremap(x, l)#define dmi_early_unmap (x, l) iounmap(x)#define dmi_remap (x, l) ioremap_cache(x, l)#define dmi_unmap (x) iounmap(x)
arch/mips/kernel/setup.c +2 -2
@@ -324,11 +324,11 @@ static void __init bootmem_init(void)panic ("Incorrect memory mapping !!!" );if (max_pfn >PFN_DOWN (HIGHMEM_START )) { + max_low_pfn =PFN_DOWN (HIGHMEM_START );#ifdef CONFIG_HIGHMEM - highstart_pfn =PFN_DOWN (HIGHMEM_START ); + highstart_pfn = max_low_pfn; highend_pfn = max_pfn;#else - max_low_pfn =PFN_DOWN (HIGHMEM_START ); max_pfn = max_low_pfn;#endif }
arch/powerpc/Makefile +1 -15
@@ -44,18 +44,13 @@ machine-$(CONFIG_PPC64) += 64 machine-$(CONFIG_CPU_LITTLE_ENDIAN) += le UTS_MACHINE := $(subst $(space),,$(machine-y)) -# XXX This needs to be before we override LD below -ifdef CONFIG_PPC32 -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o -else -ifeq ($(call ld-ifversion, -ge, 22500, y),y) +ifeq ($(CONFIG_PPC64)$(CONFIG_LD_IS_BFD),yy) # Have the linker provide sfpr if possible. # There is a corresponding test in arch/powerpc/lib/Makefile KBUILD_LDFLAGS_MODULE += --save-restore-funcs else KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o endif -endif ifdef CONFIG_CPU_LITTLE_ENDIAN KBUILD_CFLAGS += -mlittle-endian
@@ -434,16 +429,7 @@ endif # CONFIG_PPC32 endif # CONFIG_SMP PHONY += checkbin -# Check toolchain versions: -# - gcc-4.6 is the minimum kernel-wide version so nothing required. checkbin: - @if test "x${CONFIG_CPU_LITTLE_ENDIAN}" = "xy" \ - && $(LD) --version | head -1 | grep ' 2\.24$$' >/dev/null ; then \ - echo -n '*** binutils 2.24 miscompiles weak symbols ' ; \ - echo 'in some circumstances.' ; \ - echo -n '*** Please use a different binutils version.' ; \ - false ; \ - fi @if test "x${CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT}" = "xy" -a \ "x${CONFIG_LD_IS_BFD}" = "xy" -a \ "${CONFIG_LD_VERSION}" = "23700" ; then \
arch/powerpc/boot/crt0.S +1 -1
@@ -28,7 +28,7 @@ p_etext: .8byte _etext p_bss_start: .8byte __bss_start p_end: .8byte _end -p_toc: .8byte __toc_start + 0x8000 - p_base +p_toc: .8byte .TOC. - p_base p_dyn: .8byte __dynamic_start - p_base p_rela: .8byte __rela_dyn_start - p_base p_prom: .8byte 0
arch/powerpc/boot/zImage.lds.S +2 -5
@@ -36,12 +36,9 @@ SECTIONS } #ifdef CONFIG_PPC64_BOOT_WRAPPER - . = ALIGN(256); - .got : + .got : ALIGN(256) { - __toc_start = .; - *(.got) - *(.toc) + *(.got .toc) } #endif
arch/powerpc/include/asm/sections.h +8 -8
@@ -26,16 +26,16 @@ extern char start_virt_trampolines[];extern char end_virt_trampolines[];#endif +/* +* This assumes the kernel is never compiled -mcmodel=small or +* the total .toc is always less than 64k. +*/ static inline unsigned long kernel_toc_addr (void ) { -/* Defined by the linker, see vmlinux.lds.S */ -extern unsigned long __toc_start; - -/* -* The TOC register (r2) points 32kB into the TOC, so that 64kB of -* the TOC can be addressed using a single machine instruction. -*/ -return (unsigned long )(&__toc_start) +0x8000UL ; +unsigned long toc_ptr; + + asmvolatile ("mr %0, 2" :"=r" (toc_ptr)); +return toc_ptr; } static inline int overlaps_interrupt_vector_text(unsigned long start,
arch/powerpc/kernel/head_64.S +1 -1
@@ -904,7 +904,7 @@ _GLOBAL(relative_toc) blr .balign 8 -p_toc: .8byte __toc_start + 0x8000 - 0b +p_toc: .8byte .TOC. - 0b /* * This is where the main kernel code starts.
arch/powerpc/kernel/vmlinux.lds.S +9 -11
@@ -148,6 +148,12 @@ SECTIONS SOFT_MASK_TABLE(8) RESTART_TABLE(8) + .opd : AT(ADDR(.opd) - LOAD_OFFSET) { + __start_opd = .; + KEEP(*(.opd)) + __end_opd = .; + } + . = ALIGN(8); __stf_entry_barrier_fixup : AT(ADDR(__stf_entry_barrier_fixup) - LOAD_OFFSET) { __start___stf_entry_barrier_fixup = .;
@@ -346,21 +352,13 @@ SECTIONS *(.branch_lt) } - .opd : AT(ADDR(.opd) - LOAD_OFFSET) { - __start_opd = .; - KEEP(*(.opd)) - __end_opd = .; - } - - . = ALIGN(256); - .got : AT(ADDR(.got) - LOAD_OFFSET) { - __toc_start = .; + .got : AT(ADDR(.got) - LOAD_OFFSET) ALIGN(256) { + *(.got) #ifndef CONFIG_RELOCATABLE __prom_init_toc_start = .; - arch/powerpc/kernel/prom_init.o*(.toc .got) + arch/powerpc/kernel/prom_init.o*(.toc) __prom_init_toc_end = .; #endif - *(.got) *(.toc) } #endif
arch/powerpc/lib/Makefile +2 -2
@@ -37,8 +37,8 @@ obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o # 64-bit linker creates .sfpr on demand for final link (vmlinux), # so it is only needed for modules, and only for older linkers which # do not support --save-restore-funcs -ifeq ($(call ld-ifversion, -lt, 22500, y),y) -extra-$(CONFIG_PPC64) += crtsavres.o +ifndef CONFIG_LD_IS_BFD +always-$(CONFIG_PPC64) += crtsavres.o endif obj-$(CONFIG_PPC_BOOK3S_64) += copyuser_power7.o copypage_power7.o \
arch/powerpc/perf/imc-pmu.c +6 -0
@@ -292,6 +292,8 @@ static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu) attr_group->attrs = attrs; do { ev_val_str = kasprintf(GFP_KERNEL, "event=0x%x", pmu->events[i].value); + if (!ev_val_str) + continue; dev_str = device_str_attr_create(pmu->events[i].name, ev_val_str); if (!dev_str) continue;
@@ -299,6 +301,8 @@ static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu) attrs[j++] = dev_str;if (pmu->events[i].scale) { ev_scale_str =kasprintf (GFP_KERNEL ,"%s.scale" , pmu->events[i].name); +if (!ev_scale_str) +continue ; dev_str =device_str_attr_create (ev_scale_str, pmu->events[i].scale);if (!dev_str)continue ;
@@ -308,6 +312,8 @@ static int update_events_in_group(struct device_node *node, struct imc_pmu *pmu)if (pmu->events[i].unit) { ev_unit_str =kasprintf (GFP_KERNEL ,"%s.unit" , pmu->events[i].name); +if (!ev_unit_str) +continue ; dev_str =device_str_attr_create (ev_unit_str, pmu->events[i].unit);if (!dev_str)continue ;
arch/powerpc/platforms/44x/Kconfig +1 -0
@@ -177,6 +177,7 @@ config ISS4xx config CURRITUCK bool "IBM Currituck (476fpe) Support" depends on PPC_47x + select I2C select SWIOTLB select 476FPE select FORCE_PCI
arch/powerpc/platforms/powernv/opal-irqchip.c +2 -0
@@ -275,6 +275,8 @@ int __init opal_event_init(void)else name =kasprintf (GFP_KERNEL ,"opal" ); +if (!name) +continue ;/* Install interrupt handler */ rc =request_irq (r->start, opal_interrupt, r->flags &IRQD_TRIGGER_MASK , name,NULL );
arch/powerpc/platforms/powernv/opal-powercap.c +6 -0
@@ -196,6 +196,12 @@ void __init opal_powercap_init(void) j =0 ; pcaps[i].pg.name =kasprintf (GFP_KERNEL ,"%pOFn" , node); +if (!pcaps[i].pg.name) { +kfree (pcaps[i].pattrs); +kfree (pcaps[i].pg.attrs); + goto out_pcaps_pattrs; + } +if (has_min) {powercap_add_attr (min,"powercap-min" , &pcaps[i].pattrs[j]);
arch/powerpc/platforms/powernv/opal-xscom.c +5 -0
@@ -165,6 +165,11 @@ static int scom_debug_init_one(struct dentry *root, struct device_node *dn, ent->chip = chip;snprintf (ent->name,16 ,"%08x" , chip); ent->path.data = (void *)kasprintf (GFP_KERNEL ,"%pOF" , dn); +if (!ent->path.data) { +kfree (ent); +return -ENOMEM ; + } + ent->path.size =strlen ((char *)ent->path.data); dir =debugfs_create_dir (ent->name, root);
arch/powerpc/platforms/pseries/hotplug-memory.c +5 -4
@@ -501,14 +501,15 @@ static int dlpar_memory_remove_by_index(u32 drc_index) } } -if (!lmb_found) +if (!lmb_found) { +pr_debug ("Failed to look up LMB for drc index %x\n" , drc_index); rc = -EINVAL ; - -if (rc) + }else if (rc) {pr_debug ("Failed to hot-remove memory at %llx\n" , lmb->base_addr); -else + }else {pr_debug ("Memory at %llx was hot-removed\n" , lmb->base_addr); + }return rc; }
arch/riscv/include/asm/sections.h +1 -0
@@ -13,6 +13,7 @@ extern char _start_kernel[];extern char __init_data_begin[], __init_data_end[];extern char __init_text_begin[], __init_text_end[];extern char __alt_start[], __alt_end[]; +extern char __exittext_begin[], __exittext_end[];static inline bool is_va_kernel_text (uintptr_t va) {
arch/riscv/kernel/module.c +2 -1
@@ -423,7 +423,8 @@ void *module_alloc(unsigned long size) {return __vmalloc_node_range (size,1 ,MODULES_VADDR ,MODULES_END ,GFP_KERNEL , -PAGE_KERNEL ,0 ,NUMA_NO_NODE , +PAGE_KERNEL ,VM_FLUSH_RESET_PERMS , +NUMA_NO_NODE ,__builtin_return_address (0 )); }#endif
arch/riscv/kernel/patch.c +10 -1
@@ -13,6 +13,7 @@#include <asm/fixmap.h> #include <asm/ftrace.h> #include <asm/patch.h> +#include <asm/sections.h> struct patch_insn {void *addr;
@@ -23,6 +24,14 @@ struct patch_insn {int riscv_patch_in_stop_machine = false;#ifdef CONFIG_MMU + +static inline bool is_kernel_exittext (uintptr_t addr) +{ +return system_state <SYSTEM_RUNNING && + addr >= (uintptr_t )__exittext_begin && + addr < (uintptr_t )__exittext_end; +} +/* * The fix_to_virt(, idx) needs a const value (not a dynamic variable of * reg-a0) or BUILD_BUG_ON failed with "idx >= __end_of_fixed_addresses".
@@ -33,7 +42,7 @@ static __always_inline void *patch_map(void *addr, const unsigned int fixmap)uintptr_t uintaddr = (uintptr_t ) addr;struct page *page; -if (core_kernel_text (uintaddr)) +if (core_kernel_text (uintaddr) ||is_kernel_exittext (uintaddr)) page =phys_to_page (__pa_symbol (addr));else if (IS_ENABLED (CONFIG_STRICT_MODULE_RWX )) page =vmalloc_to_page (addr);
arch/riscv/kernel/vmlinux-xip.lds.S +2 -0
@@ -29,10 +29,12 @@ SECTIONS HEAD_TEXT_SECTION INIT_TEXT_SECTION(PAGE_SIZE) /* we have to discard exit text and such at runtime, not link time */ + __exittext_begin = .; .exit.text : { EXIT_TEXT } + __exittext_end = .; .text : { _text = .;
arch/riscv/kernel/vmlinux.lds.S +2 -0
@@ -73,10 +73,12 @@ SECTIONS __soc_builtin_dtb_table_end = .; } /* we have to discard exit text and such at runtime, not link time */ + __exittext_begin = .; .exit.text : { EXIT_TEXT } + __exittext_end = .; __init_text_end = .; . = ALIGN(SECTION_ALIGN);
arch/s390/include/asm/pci_io.h +18 -14
@@ -11,6 +11,8 @@/* I/O size constraints */ #define ZPCI_MAX_READ_SIZE 8#define ZPCI_MAX_WRITE_SIZE 128 +#define ZPCI_BOUNDARY_SIZE (1 << 12) +#define ZPCI_BOUNDARY_MASK (ZPCI_BOUNDARY_SIZE - 1)/* I/O Map */ #define ZPCI_IOMAP_SHIFT 48
@@ -125,16 +127,18 @@ static inline int zpci_read_single(void *dst, const volatile void __iomem *src,int zpci_write_block (volatile void __iomem *dst,const void *src,unsigned long len); -static inline u8 zpci_get_max_write_size (u64 src,u64 dst,int len,int max) +static inline int zpci_get_max_io_size (u64 src,u64 dst,int len,int max) { -int count = len > max ? max : len, size =1 ; +int offset = dst &ZPCI_BOUNDARY_MASK ; +int size; -while (!(src &0x1 ) && !(dst &0x1 ) && ((size <<1 ) <= count)) { - dst = dst >>1 ; - src = src >>1 ; - size = size <<1 ; - } -return size; + size =min3 (len,ZPCI_BOUNDARY_SIZE - offset, max); +if (IS_ALIGNED (src,8 ) &&IS_ALIGNED (dst,8 ) &&IS_ALIGNED (size,8 )) +return size; + +if (size >=8 ) +return 8 ; +return rounddown_pow_of_two (size); } static inline int zpci_memcpy_fromio(void *dst,
@@ -144,9 +148,9 @@ static inline int zpci_memcpy_fromio(void *dst,int size, rc =0 ;while (n >0 ) { - size =zpci_get_max_write_size ((u64 __force ) src, - (u64 ) dst, n, -ZPCI_MAX_READ_SIZE ); + size =zpci_get_max_io_size ((u64 __force ) src, + (u64 ) dst, n, +ZPCI_MAX_READ_SIZE ); rc =zpci_read_single (dst, src, size);if (rc)break ;
@@ -166,9 +170,9 @@ static inline int zpci_memcpy_toio(volatile void __iomem *dst,return -EINVAL ;while (n >0 ) { - size =zpci_get_max_write_size ((u64 __force ) dst, - (u64 ) src, n, -ZPCI_MAX_WRITE_SIZE ); + size =zpci_get_max_io_size ((u64 __force ) dst, + (u64 ) src, n, +ZPCI_MAX_WRITE_SIZE );if (size >8 )/* main path */ rc =zpci_write_block (dst, src, size);else
arch/s390/pci/pci_mmio.c +6 -6
@@ -96,9 +96,9 @@ static inline int __memcpy_toio_inuser(void __iomem *dst,return -EINVAL ;while (n >0 ) { - size =zpci_get_max_write_size ((u64 __force ) dst, - (u64 __force ) src, n, -ZPCI_MAX_WRITE_SIZE ); + size =zpci_get_max_io_size ((u64 __force ) dst, + (u64 __force ) src, n, +ZPCI_MAX_WRITE_SIZE );if (size >8 )/* main path */ rc =__pcistb_mio_inuser (dst, src, size, &status);else
@@ -241,9 +241,9 @@ static inline int __memcpy_fromio_inuser(void __user *dst,u8 status;while (n >0 ) { - size =zpci_get_max_write_size ((u64 __force ) src, - (u64 __force ) dst, n, -ZPCI_MAX_READ_SIZE ); + size =zpci_get_max_io_size ((u64 __force ) src, + (u64 __force ) dst, n, +ZPCI_MAX_READ_SIZE ); rc =__pcilg_mio_inuser (dst, src, size, &status);if (rc)break ;
arch/x86/kernel/kvmclock.c +8 -4
@@ -24,8 +24,8 @@static int kvmclock__initdata =1 ;static int kvmclock_vsyscall__initdata =1 ; -static int msr_kvm_system_time__ro_after_init =MSR_KVM_SYSTEM_TIME ; -static int msr_kvm_wall_clock__ro_after_init =MSR_KVM_WALL_CLOCK ; +static int msr_kvm_system_time__ro_after_init ; +static int msr_kvm_wall_clock__ro_after_init ;static u64 kvm_sched_clock_offset__ro_after_init ;static int __init parse_no_kvmclock (char *arg)
@@ -195,7 +195,8 @@ static void kvm_setup_secondary_clock(void)void kvmclock_disable (void ) { -native_write_msr (msr_kvm_system_time,0 ,0 ); +if (msr_kvm_system_time) +native_write_msr (msr_kvm_system_time,0 ,0 ); }static void __init kvmclock_init_mem (void )
@@ -291,7 +292,10 @@ void __init kvmclock_init(void)if (kvm_para_has_feature (KVM_FEATURE_CLOCKSOURCE2 )) { msr_kvm_system_time =MSR_KVM_SYSTEM_TIME_NEW ; msr_kvm_wall_clock =MSR_KVM_WALL_CLOCK_NEW ; - }else if (!kvm_para_has_feature (KVM_FEATURE_CLOCKSOURCE )) { + }else if (kvm_para_has_feature (KVM_FEATURE_CLOCKSOURCE )) { + msr_kvm_system_time =MSR_KVM_SYSTEM_TIME ; + msr_kvm_wall_clock =MSR_KVM_WALL_CLOCK ; + }else {return ; }
arch/x86/lib/misc.c +1 -1
@@ -6,7 +6,7 @@*/ int num_digits (int val) { -int m =10 ; +long long m =10 ;int d =1 ;if (val <0 ) {
block/bio.c +3 -4
@@ -1026,7 +1026,7 @@ void bio_release_pages(struct bio *bio, bool mark_dirty)return ;bio_for_each_segment_all (bvec, bio, iter_all) { -if (mark_dirty && !PageCompound (bvec->bv_page)) +if (mark_dirty)set_page_dirty_lock (bvec->bv_page);put_page (bvec->bv_page); }
@@ -1345,8 +1345,7 @@ void bio_set_pages_dirty(struct bio *bio)struct bvec_iter_all iter_all;bio_for_each_segment_all (bvec, bio, iter_all) { -if (!PageCompound (bvec->bv_page)) -set_page_dirty_lock (bvec->bv_page); +set_page_dirty_lock (bvec->bv_page); } }
@@ -1394,7 +1393,7 @@ void bio_check_pages_dirty(struct bio *bio)struct bvec_iter_all iter_all;bio_for_each_segment_all (bvec, bio, iter_all) { -if (!PageDirty (bvec->bv_page) && !PageCompound (bvec->bv_page)) +if (!PageDirty (bvec->bv_page)) goto defer; }
block/blk-settings.c +1 -1
@@ -136,7 +136,7 @@ void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_secto limits->max_hw_sectors = max_hw_sectors; max_sectors =min_not_zero (max_hw_sectors, limits->max_dev_sectors); - max_sectors = min_t(unsigned int, max_sectors, BLK_DEF_MAX_SECTORS); + max_sectors =min (max_sectors,BLK_DEF_MAX_SECTORS ); max_sectors =round_down (max_sectors, limits->logical_block_size >>SECTOR_SHIFT ); limits->max_sectors = max_sectors;
block/genhd.c +4 -1
@@ -421,7 +421,9 @@ int device_add_disk(struct device *parent, struct gendisk *disk, DISK_MAX_PARTS); disk->minors =DISK_MAX_PARTS ; } -if (disk->first_minor + disk->minors >MINORMASK +1 ) +if (disk->first_minor >MINORMASK || + disk->minors >MINORMASK +1 || + disk->first_minor + disk->minors >MINORMASK +1 )return -EINVAL ; }else {if (WARN_ON (disk->minors))
@@ -538,6 +540,7 @@ int device_add_disk(struct device *parent, struct gendisk *disk, out_del_block_link:if (!sysfs_deprecated)sysfs_remove_link (block_depr,dev_name (ddev)); +pm_runtime_set_memalloc_noio (ddev, false); out_device_del:device_del (ddev); out_free_ext_minor:
block/ioctl.c +7 -4
@@ -18,7 +18,7 @@ static int blkpg_do_ioctl(struct block_device *bdev, {struct gendisk *disk = bdev->bd_disk;struct blkpg_partition p; -long long start, length; +sector_t start, length;if (disk->flags &GENHD_FL_NO_PART )return -EINVAL ;
@@ -35,14 +35,17 @@ static int blkpg_do_ioctl(struct block_device *bdev,if (op ==BLKPG_DEL_PARTITION )return bdev_del_partition (disk, p.pno); +if (p.start <0 || p.length <=0 || p.start + p.length <0 ) +return -EINVAL ; +/* Check that the partition is aligned to the block size */ +if (!IS_ALIGNED (p.start | p.length,bdev_logical_block_size (bdev))) +return -EINVAL ; + start = p.start >>SECTOR_SHIFT ; length = p.length >>SECTOR_SHIFT ;switch (op) {case BLKPG_ADD_PARTITION : -/* check if partition is aligned to blocksize */ -if (p.start & (bdev_logical_block_size (bdev) -1 )) -return -EINVAL ;return bdev_add_partition (disk, p.pno, start, length);case BLKPG_RESIZE_PARTITION :return bdev_resize_partition (disk, p.pno, start, length);
crypto/af_alg.c +13 -1
@@ -1045,9 +1045,13 @@ EXPORT_SYMBOL_GPL(af_alg_sendpage);void af_alg_free_resources (struct af_alg_async_req *areq) {struct sock *sk = areq->sk; +struct af_alg_ctx *ctx;af_alg_free_areq_sgls (areq);sock_kfree_s (sk, areq, areq->areqlen); + + ctx =alg_sk (sk)->private; + ctx->inflight = false; }EXPORT_SYMBOL_GPL (af_alg_free_resources);
@@ -1117,11 +1121,19 @@ EXPORT_SYMBOL_GPL(af_alg_poll);struct af_alg_async_req *af_alg_alloc_areq (struct sock *sk,unsigned int areqlen) { -struct af_alg_async_req *areq =sock_kmalloc (sk, areqlen,GFP_KERNEL ); +struct af_alg_ctx *ctx =alg_sk (sk)->private; +struct af_alg_async_req *areq; + +/* Only one AIO request can be in flight. */ +if (ctx->inflight) +return ERR_PTR (-EBUSY ); + areq =sock_kmalloc (sk, areqlen,GFP_KERNEL );if (unlikely (!areq))return ERR_PTR (-ENOMEM ); + ctx->inflight = true; + areq->areqlen = areqlen; areq->sk = sk; areq->last_rsgl =NULL ;
crypto/scompress.c +6 -0
@@ -124,6 +124,7 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir)struct crypto_scomp *scomp = *tfm_ctx;void **ctx =acomp_request_ctx (req);struct scomp_scratch *scratch; +unsigned int dlen;int ret;if (!req->src || !req->slen || req->slen >SCOMP_SCRATCH_SIZE )
@@ -135,6 +136,8 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir)if (!req->dlen || req->dlen >SCOMP_SCRATCH_SIZE ) req->dlen =SCOMP_SCRATCH_SIZE ; + dlen = req->dlen; + scratch =raw_cpu_ptr (&scomp_scratch);spin_lock (&scratch->lock);
@@ -152,6 +155,9 @@ static int scomp_acomp_comp_decomp(struct acomp_req *req, int dir) ret = -ENOMEM ; goto out; } + }else if (req->dlen > dlen) { + ret = -ENOSPC ; + goto out; }scatterwalk_map_and_copy (scratch->dst, req->dst,0 , req->dlen,1 );
drivers/acpi/acpi_extlog.c +6 -1
@@ -145,9 +145,14 @@ static int extlog_print(struct notifier_block *nb, unsigned long val,static u32 err_seq; estatus =extlog_elog_entry_check (cpu, bank); -if (estatus ==NULL || (mce->kflags &MCE_HANDLED_CEC )) +if (!estatus)return NOTIFY_DONE ; +if (mce->kflags &MCE_HANDLED_CEC ) { + estatus->block_status =0 ; +return NOTIFY_DONE ; + } +memcpy (elog_buf, (void *)estatus,ELOG_ENTRY_LEN );/* clear record status to enable BIOS to update it again */ estatus->block_status =0 ;
drivers/acpi/acpi_lpit.c +1 -1
@@ -98,7 +98,7 @@ static void lpit_update_residency(struct lpit_residency_info *info, struct acpi_lpit_native *lpit_native) { info->frequency = lpit_native->counter_frequency ? - lpit_native->counter_frequency : tsc_khz *1000 ; + lpit_native->counter_frequency :mul_u32_u32 (tsc_khz,1000U );if (!info->frequency) info->frequency =1 ;
drivers/acpi/acpi_lpss.c +2 -1
@@ -439,8 +439,9 @@ static int register_device_clock(struct acpi_device *adev,if (!clk_name)return -ENOMEM ; clk =clk_register_fractional_divider (NULL , clk_name, parent, +0 , prv_base,1 ,15 ,16 ,15 ,CLK_FRAC_DIVIDER_POWER_OF_TWO_PS , - prv_base,1 ,15 ,16 ,15 ,0 ,NULL ); +NULL ); parent = clk_name; clk_name =kasprintf (GFP_KERNEL ,"%s-update" , devname);
drivers/acpi/acpi_video.c +6 -6
@@ -1793,12 +1793,12 @@ static void acpi_video_dev_register_backlight(struct acpi_video_device *device)return ; count++; -acpi_get_parent (device->dev->handle, &acpi_parent); - - pdev =acpi_get_pci_dev (acpi_parent); -if (pdev) { - parent = &pdev->dev; -pci_dev_put (pdev); +if (ACPI_SUCCESS (acpi_get_parent (device->dev->handle, &acpi_parent))) { + pdev =acpi_get_pci_dev (acpi_parent); +if (pdev) { + parent = &pdev->dev; +pci_dev_put (pdev); + } }memset (&props,0 ,sizeof (struct backlight_properties ));
drivers/acpi/resource.c +7 -0
@@ -480,6 +480,13 @@ static const struct dmi_system_id maingear_laptop[] = { DMI_MATCH(DMI_BOARD_NAME, "GMxXGxx"), }, }, + { +/* TongFang GMxXGxx sold as Eluktronics Inc. RP-15 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Eluktronics Inc." ), + DMI_MATCH(DMI_BOARD_NAME, "RP-15"), + }, + }, {/* TongFang GM6XGxX/TUXEDO Stellaris 16 Gen5 AMD */ .matches = {
drivers/android/binder.c +1 -1
@@ -4836,7 +4836,7 @@ static __poll_t binder_poll(struct file *filp, thread =binder_get_thread (proc);if (!thread) -return POLLERR ; +return EPOLLERR ;binder_inner_proc_lock (thread->proc); thread->looper |=BINDER_LOOPER_STATE_POLL ;
drivers/android/binder_alloc.c +17 -15
@@ -271,7 +271,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, }if (mm) {mmap_write_unlock (mm); -mmput (mm); +mmput_async (mm); }return 0 ;
@@ -304,7 +304,7 @@ static int binder_update_page_range(struct binder_alloc *alloc, int allocate, err_no_vma:if (mm) {mmap_write_unlock (mm); -mmput (mm); +mmput_async (mm); }return vma ? -ENOMEM : -ESRCH ; }
@@ -344,8 +344,7 @@ static bool debug_low_async_space_locked(struct binder_alloc *alloc, int pid)continue ;if (!buffer->async_transaction)continue ; - total_alloc_size +=binder_alloc_buffer_size (alloc, buffer) - +sizeof (struct binder_buffer ); + total_alloc_size +=binder_alloc_buffer_size (alloc, buffer); num_buffers++; }
@@ -407,17 +406,17 @@ static struct binder_buffer *binder_alloc_new_buf_locked( alloc->pid, extra_buffers_size);return ERR_PTR (-EINVAL ); } -if (is_async && - alloc->free_async_space < size +sizeof (struct binder_buffer )) { + +/* Pad 0-size buffers so they get assigned unique addresses */ + size =max (size,sizeof (void *)); + +if (is_async && alloc->free_async_space < size) {binder_alloc_debug (BINDER_DEBUG_BUFFER_ALLOC ,"%d: binder_alloc_buf size %zd failed, no async space left\n" , alloc->pid, size);return ERR_PTR (-ENOSPC ); } -/* Pad 0-size buffers so they get assigned unique addresses */ - size =max (size,sizeof (void *)); -while (n) { buffer = rb_entry(n, struct binder_buffer, rb_node);BUG_ON (!buffer->free);
@@ -519,7 +518,7 @@ static struct binder_buffer *binder_alloc_new_buf_locked( buffer->pid = pid; buffer->oneway_spam_suspect = false;if (is_async) { - alloc->free_async_space -= size +sizeof (struct binder_buffer ); + alloc->free_async_space -= size;binder_alloc_debug (BINDER_DEBUG_BUFFER_ALLOC_ASYNC ,"%d: binder_alloc_buf size %zd async free %zd\n" , alloc->pid, size, alloc->free_async_space);
@@ -557,7 +556,7 @@ static struct binder_buffer *binder_alloc_new_buf_locked(* is the sum of the three given sizes (each rounded up to * pointer-sized boundary) * -* Return: The allocated buffer or %NULL if error +* Return: The allocated buffer or %ERR_PTR(-errno) if error */ struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc, size_t data_size,
@@ -657,8 +656,7 @@ static void binder_free_buf_locked(struct binder_alloc *alloc,BUG_ON (buffer->user_data > alloc->buffer + alloc->buffer_size);if (buffer->async_transaction) { - alloc->free_async_space += buffer_size +sizeof (struct binder_buffer ); - + alloc->free_async_space += buffer_size;binder_alloc_debug (BINDER_DEBUG_BUFFER_ALLOC_ASYNC ,"%d: binder_free_buf size %zd async free %zd\n" , alloc->pid, size, alloc->free_async_space);
@@ -706,7 +704,7 @@ void binder_alloc_free_buf(struct binder_alloc *alloc,/* * We could eliminate the call to binder_alloc_clear_buf() * from binder_alloc_deferred_release() by moving this to -* binder_alloc_free_buf_locked(). However, that could +* binder_free_buf_locked(). However, that could * increase contention for the alloc mutex if clear_on_free * is used frequently for large buffers. The mutex is not * needed for correctness here.
@@ -1005,7 +1003,9 @@ enum lru_status binder_alloc_free_page(struct list_head *item, goto err_mmget;if (!mmap_read_trylock (mm)) goto err_mmap_read_lock_failed; - vma =binder_alloc_get_vma (alloc); + vma =vma_lookup (mm, page_addr); +if (vma && vma !=binder_alloc_get_vma (alloc)) + goto err_invalid_vma;list_lru_isolate (lru, item);spin_unlock (lock);
@@ -1031,6 +1031,8 @@ enum lru_status binder_alloc_free_page(struct list_head *item,mutex_unlock (&alloc->mutex);return LRU_REMOVED_RETRY ; +err_invalid_vma: +mmap_read_unlock (mm); err_mmap_read_lock_failed:mmput_async (mm); err_mmget:
drivers/base/swnode.c +3 -0
@@ -547,6 +547,9 @@ software_node_get_reference_args(const struct fwnode_handle *fwnode,if (nargs >NR_FWNODE_REFERENCE_ARGS )return -EINVAL ; +if (!args) +return 0 ; + args->fwnode =software_node_get (refnode); args->nargs = nargs;
drivers/block/null_blk/main.c +2 -11
@@ -1900,11 +1900,8 @@ static int null_add_dev(struct nullb_device *dev)blk_queue_logical_block_size (nullb->q, dev->blocksize);blk_queue_physical_block_size (nullb->q, dev->blocksize); -if (!dev->max_sectors) - dev->max_sectors =queue_max_hw_sectors (nullb->q); - dev->max_sectors = min_t(unsigned int, dev->max_sectors, -BLK_DEF_MAX_SECTORS ); -blk_queue_max_hw_sectors (nullb->q, dev->max_sectors); +if (dev->max_sectors) +blk_queue_max_hw_sectors (nullb->q, dev->max_sectors);if (dev->virt_boundary)blk_queue_virt_boundary (nullb->q,PAGE_SIZE -1 );
@@ -1954,12 +1951,6 @@ static int __init null_init(void) g_bs =PAGE_SIZE ; } -if (g_max_sectors >BLK_DEF_MAX_SECTORS ) { -pr_warn ("invalid max sectors\n" ); -pr_warn ("defaults max sectors to %u\n" ,BLK_DEF_MAX_SECTORS ); - g_max_sectors =BLK_DEF_MAX_SECTORS ; - } -if (g_home_node !=NUMA_NO_NODE && g_home_node >= nr_online_nodes) {pr_err ("invalid home_node value\n" ); g_home_node =NUMA_NO_NODE ;
drivers/bluetooth/btmtkuart.c +3 -8
@@ -471,7 +471,7 @@ mtk_stp_split(struct btmtkuart_dev *bdev, const unsigned char *data, int count,return data; } -static int btmtkuart_recv (struct hci_dev *hdev,const u8 *data,size_t count) +static void btmtkuart_recv (struct hci_dev *hdev,const u8 *data,size_t count) {struct btmtkuart_dev *bdev =hci_get_drvdata (hdev);const unsigned char *p_left = data, *p_h4;
@@ -510,25 +510,20 @@ static int btmtkuart_recv(struct hci_dev *hdev, const u8 *data, size_t count)bt_dev_err (bdev->hdev,"Frame reassembly failed (%d)" , err); bdev->rx_skb =NULL ; -return err; +return ; } sz_left -= sz_h4; p_left += sz_h4; } - -return 0 ; }static int btmtkuart_receive_buf (struct serdev_device *serdev,const u8 *data,size_t count) {struct btmtkuart_dev *bdev =serdev_device_get_drvdata (serdev); -int err; - err =btmtkuart_recv (bdev->hdev, data, count); -if (err <0 ) -return err; +btmtkuart_recv (bdev->hdev, data, count); bdev->hdev->stat.byte_rx += count;
drivers/clk/clk-asm9260.c +12 -17
@@ -80,7 +80,7 @@ struct asm9260_mux_clock {u8 mask;u32 *table;const char *name; -const char **parent_names; +const struct clk_parent_data *parent_data;u8 num_parents;unsigned long offset;unsigned long flags;
@@ -232,10 +232,10 @@ static const struct asm9260_gate_data asm9260_ahb_gates[] __initconst = { HW_AHBCLKCTRL1, 16 }, }; -static const char __initdata *main_mux_p[] = {NULL ,NULL }; -static const char __initdata *i2s0_mux_p[] = {NULL ,NULL ,"i2s0m_div" }; -static const char __initdata *i2s1_mux_p[] = {NULL ,NULL ,"i2s1m_div" }; -static const char __initdata *clkout_mux_p[] = {NULL ,NULL ,"rtc" }; +static struct clk_parent_data __initdata main_mux_p[] = { { .index =0 , }, { .name ="pll" } }; +static struct clk_parent_data __initdata i2s0_mux_p[] = { { .index =0 , }, { .name ="pll" }, { .name ="i2s0m_div" } }; +static struct clk_parent_data __initdata i2s1_mux_p[] = { { .index =0 , }, { .name ="pll" }, { .name ="i2s1m_div" } }; +static struct clk_parent_data __initdata clkout_mux_p[] = { { .index =0 , }, { .name ="pll" }, { .name ="rtc" } };static u32 three_mux_table[] = {0 ,1 ,3 };static struct asm9260_mux_clock asm9260_mux_clks[]__initdata = {
@@ -255,9 +255,10 @@ static struct asm9260_mux_clock asm9260_mux_clks[] __initdata = {static void __init asm9260_acc_init (struct device_node *np) { -struct clk_hw *hw; +struct clk_hw *hw, *pll_hw;struct clk_hw **hws; -const char *ref_clk, *pll_clk ="pll" ; +const char *pll_clk ="pll" ; +struct clk_parent_data pll_parent_data = { .index =0 };u32 rate;int n;
@@ -274,21 +275,15 @@ static void __init asm9260_acc_init(struct device_node *np)/* register pll */ rate = (ioread32 (base +HW_SYSPLLCTRL ) &0xffff ) *1000000 ; -/* TODO: Convert to DT parent scheme */ - ref_clk =of_clk_get_parent_name (np,0 ); - hw =__clk_hw_register_fixed_rate (NULL ,NULL , pll_clk, - ref_clk,NULL ,NULL ,0 , rate,0 , -CLK_FIXED_RATE_PARENT_ACCURACY ); - -if (IS_ERR (hw)) + pll_hw =clk_hw_register_fixed_rate_parent_accuracy (NULL , pll_clk, &pll_parent_data, +0 , rate); +if (IS_ERR (pll_hw))panic ("%pOFn: can't register REFCLK. Check DT!" , np);for (n =0 ; n <ARRAY_SIZE (asm9260_mux_clks); n++) {const struct asm9260_mux_clock *mc = &asm9260_mux_clks[n]; - mc->parent_names[0 ] = ref_clk; - mc->parent_names[1 ] = pll_clk; - hw =clk_hw_register_mux_table (NULL , mc->name, mc->parent_names, + hw =clk_hw_register_mux_table_parent_data (NULL , mc->name, mc->parent_data, mc->num_parents, mc->flags, base + mc->offset,0 , mc->mask,0 , mc->table, &asm9260_clk_lock); }
drivers/clk/clk-fixed-rate.c +24 -4
@@ -49,12 +49,24 @@ const struct clk_ops clk_fixed_rate_ops = { };EXPORT_SYMBOL_GPL (clk_fixed_rate_ops); +static void devm_clk_hw_register_fixed_rate_release (struct device *dev,void *res) +{ +struct clk_fixed_rate *fix = res; + +/* +* We can not use clk_hw_unregister_fixed_rate, since it will kfree() +* the hw, resulting in double free. Just unregister the hw and let +* devres code kfree() it. +*/ +clk_hw_unregister (&fix->hw); +} +struct clk_hw *__clk_hw_register_fixed_rate (struct device *dev,struct device_node *np,const char *name,const char *parent_name,const struct clk_hw *parent_hw,const struct clk_parent_data *parent_data,unsigned long flags,unsigned long fixed_rate,unsigned long fixed_accuracy, -unsigned long clk_fixed_flags) +unsigned long clk_fixed_flags,bool devm) {struct clk_fixed_rate *fixed;struct clk_hw *hw;
@@ -62,7 +74,11 @@ struct clk_hw *__clk_hw_register_fixed_rate(struct device *dev,int ret = -EINVAL ;/* allocate fixed-rate clock */ - fixed =kzalloc (sizeof (*fixed),GFP_KERNEL ); +if (devm) + fixed =devres_alloc (devm_clk_hw_register_fixed_rate_release, +sizeof (*fixed),GFP_KERNEL ); +else + fixed =kzalloc (sizeof (*fixed),GFP_KERNEL );if (!fixed)return ERR_PTR (-ENOMEM );
@@ -90,9 +106,13 @@ struct clk_hw *__clk_hw_register_fixed_rate(struct device *dev,else if (np) ret =of_clk_hw_register (np, hw);if (ret) { -kfree (fixed); +if (devm) +devres_free (fixed); +else +kfree (fixed); hw =ERR_PTR (ret); - } + }else if (devm) +devres_add (dev, fixed);return hw; }
drivers/clk/clk-si5341.c +1 -3
@@ -892,10 +892,8 @@ static int si5341_output_clk_set_rate(struct clk_hw *hw, unsigned long rate, r[0 ] = r_div ? (r_div &0xff ) :1 ; r[1 ] = (r_div >>8 ) &0xff ; r[2 ] = (r_div >>16 ) &0xff ; - err =regmap_bulk_write (output->data->regmap, +return regmap_bulk_write (output->data->regmap,SI5341_OUT_R_REG (output), r,3 ); - -return 0 ; }static int si5341_output_reparent (struct clk_si5341_output *output,u8 index)
drivers/clk/qcom/gpucc-sm8150.c +2 -2
@@ -37,8 +37,8 @@ static struct alpha_pll_config gpu_cc_pll1_config = { .config_ctl_hi_val = 0x00002267, .config_ctl_hi1_val = 0x00000024, .test_ctl_val = 0x00000000, - .test_ctl_hi_val = 0x00000002, - .test_ctl_hi1_val = 0x00000000, + .test_ctl_hi_val = 0x00000000, + .test_ctl_hi1_val = 0x00000020, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000805, .user_ctl_hi1_val = 0x000000d0,
drivers/clk/qcom/videocc-sm8150.c +5 -0
@@ -33,6 +33,7 @@ static struct alpha_pll_config video_pll0_config = { .config_ctl_val = 0x20485699, .config_ctl_hi_val = 0x00002267, .config_ctl_hi1_val = 0x00000024, + .test_ctl_hi1_val = 0x00000020, .user_ctl_val = 0x00000000, .user_ctl_hi_val = 0x00000805, .user_ctl_hi1_val = 0x000000D0,
@@ -214,6 +215,10 @@ static const struct regmap_config video_cc_sm8150_regmap_config = {static const struct qcom_reset_map video_cc_sm8150_resets[] = { [VIDEO_CC_MVSC_CORE_CLK_BCR ] = {0x850 ,2 }, + [VIDEO_CC_INTERFACE_BCR ] = {0x8f0 }, + [VIDEO_CC_MVS0_BCR ] = {0x870 }, + [VIDEO_CC_MVS1_BCR ] = {0x8b0 }, + [VIDEO_CC_MVSC_BCR ] = {0x810 }, };static const struct qcom_cc_desc video_cc_sm8150_desc = {
drivers/clk/rockchip/clk-rk3128.c +1 -1
@@ -490,7 +490,7 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = {GATE (HCLK_I2S_2CH ,"hclk_i2s_2ch" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (7 ),2 ,GFLAGS ),GATE (0 ,"hclk_usb_peri" ,"hclk_peri" ,CLK_IGNORE_UNUSED ,RK2928_CLKGATE_CON (9 ),13 ,GFLAGS ),GATE (HCLK_HOST2 ,"hclk_host2" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (7 ),3 ,GFLAGS ), -GATE (HCLK_OTG ,"hclk_otg" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (3 ),13 ,GFLAGS ), +GATE (HCLK_OTG ,"hclk_otg" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (5 ),13 ,GFLAGS ),GATE (0 ,"hclk_peri_ahb" ,"hclk_peri" ,CLK_IGNORE_UNUSED ,RK2928_CLKGATE_CON (9 ),14 ,GFLAGS ),GATE (HCLK_SPDIF ,"hclk_spdif" ,"hclk_peri" ,0 ,RK2928_CLKGATE_CON (10 ),9 ,GFLAGS ), GATE(HCLK_TSP, "hclk_tsp", "hclk_peri", 0, RK2928_CLKGATE_CON(10), 12, GFLAGS),
drivers/clk/zynqmp/clk-mux-zynqmp.c +1 -1
@@ -89,7 +89,7 @@ static int zynqmp_clk_mux_set_parent(struct clk_hw *hw, u8 index)static const struct clk_ops zynqmp_clk_mux_ops = { .get_parent = zynqmp_clk_mux_get_parent, .set_parent = zynqmp_clk_mux_set_parent, - .determine_rate = __clk_mux_determine_rate, + .determine_rate = __clk_mux_determine_rate_closest, };static const struct clk_ops zynqmp_clk_mux_ro_ops = {
drivers/clk/zynqmp/divider.c +5 -58
83 lines not on this page · raw message
drivers/cpufreq/cpufreq-dt-platdev.c +1 -1
@@ -171,7 +171,7 @@ static bool __init cpu0_node_has_opp_v2_prop(void)struct device_node *np =of_cpu_device_node_get (0 );bool ret = false; -if (of_get_property (np,"operating-points-v2" ,NULL )) +if (of_property_present (np,"operating-points-v2" )) ret = true;of_node_put (np);
drivers/cpufreq/imx-cpufreq-dt.c +1 -1
@@ -89,7 +89,7 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev) cpu_dev =get_cpu_device (0 ); -if (!of_find_property (cpu_dev->of_node,"cpu-supply" ,NULL )) +if (!of_property_present (cpu_dev->of_node,"cpu-supply" ))return -ENODEV ;if (of_machine_is_compatible ("fsl,imx7ulp" )) {
drivers/cpufreq/imx6q-cpufreq.c +2 -2
@@ -230,7 +230,7 @@ static int imx6q_opp_check_speed_grading(struct device *dev)u32 val;int ret; -if (of_find_property (dev->of_node,"nvmem-cells" ,NULL )) { +if (of_property_present (dev->of_node,"nvmem-cells" )) { ret =nvmem_cell_read_u32 (dev,"speed_grade" , &val);if (ret)return ret;
@@ -285,7 +285,7 @@ static int imx6ul_opp_check_speed_grading(struct device *dev)u32 val;int ret =0 ; -if (of_find_property (dev->of_node,"nvmem-cells" ,NULL )) { +if (of_property_present (dev->of_node,"nvmem-cells" )) { ret =nvmem_cell_read_u32 (dev,"speed_grade" , &val);if (ret)return ret;
drivers/cpufreq/scmi-cpufreq.c +5 -2
@@ -299,8 +299,11 @@ static int scmi_cpufreq_probe(struct scmi_device *sdev)#ifdef CONFIG_COMMON_CLK /* dummy clock provider as needed by OPP if clocks property is used */ -if (of_find_property (dev->of_node,"#clock-cells" ,NULL )) -devm_of_clk_add_hw_provider (dev, of_clk_hw_simple_get,NULL ); +if (of_property_present (dev->of_node,"#clock-cells" )) { + ret =devm_of_clk_add_hw_provider (dev, of_clk_hw_simple_get,NULL ); +if (ret) +return dev_err_probe (dev, ret,"%s: registering clock provider failed\n" , __func__); + }#endif ret =cpufreq_register_driver (&scmi_cpufreq_driver);
drivers/cpufreq/tegra20-cpufreq.c +1 -1
@@ -25,7 +25,7 @@ static bool cpu0_node_has_opp_v2_prop(void)struct device_node *np =of_cpu_device_node_get (0 );bool ret = false; -if (of_get_property (np,"operating-points-v2" ,NULL )) +if (of_property_present (np,"operating-points-v2" )) ret = true;of_node_put (np);
drivers/crypto/ccp/ccp-ops.c +4 -1
@@ -179,8 +179,11 @@ static int ccp_init_dm_workarea(struct ccp_dm_workarea *wa, wa->dma.address =dma_map_single (wa->dev, wa->address, len, dir); -if (dma_mapping_error (wa->dev, wa->dma.address)) +if (dma_mapping_error (wa->dev, wa->dma.address)) { +kfree (wa->address); + wa->address =NULL ;return -ENOMEM ; + } wa->dma.length = len; }
drivers/crypto/sa2ul.c +1 -2
@@ -1868,9 +1868,8 @@ static int sa_aead_setkey(struct crypto_aead *authenc,crypto_aead_set_flags (ctx->fallback.aead,crypto_aead_get_flags (authenc) &CRYPTO_TFM_REQ_MASK ); -crypto_aead_setkey (ctx->fallback.aead, key, keylen); -return 0 ; +return crypto_aead_setkey (ctx->fallback.aead, key, keylen); }static int sa_aead_setauthsize (struct crypto_aead *tfm,unsigned int authsize)
drivers/crypto/sahara.c +108 -140
451 lines not on this page · raw message
drivers/crypto/virtio/virtio_crypto_algs.c +1 -1
@@ -255,7 +255,7 @@ static int virtio_crypto_alg_skcipher_close_session( vcrypto->ctrl_status.status, destroy_session->session_id); -return -EINVAL ; + err = -EINVAL ; }spin_unlock (&vcrypto->ctrl_lock);
drivers/crypto/virtio/virtio_crypto_common.h +2 -0
@@ -10,6 +10,7 @@#include <linux/virtio.h> #include <linux/crypto.h> #include <linux/spinlock.h> +#include <linux/interrupt.h> #include <crypto/aead.h> #include <crypto/aes.h> #include <crypto/engine.h>
@@ -27,6 +28,7 @@ struct data_queue {char name[32 ];struct crypto_engine *engine; +struct tasklet_struct done_task; };struct virtio_crypto {
drivers/crypto/virtio/virtio_crypto_core.c +16 -10
@@ -22,27 +22,28 @@ virtcrypto_clear_request(struct virtio_crypto_request *vc_req) } } -static void virtcrypto_dataq_callback (struct virtqueue *vq) +static void virtcrypto_done_task (unsigned long data) { -struct virtio_crypto *vcrypto = vq->vdev->priv; +struct data_queue *data_vq = (struct data_queue *)data; +struct virtqueue *vq = data_vq->vq;struct virtio_crypto_request *vc_req; -unsigned long flags;unsigned int len; -unsigned int qid = vq->index; -spin_lock_irqsave (&vcrypto->data_vq[qid].lock, flags);do {virtqueue_disable_cb (vq);while ((vc_req =virtqueue_get_buf (vq, &len)) !=NULL ) { -spin_unlock_irqrestore ( - &vcrypto->data_vq[qid].lock, flags);if (vc_req->alg_cb) vc_req->alg_cb (vc_req, len); -spin_lock_irqsave ( - &vcrypto->data_vq[qid].lock, flags); } }while (!virtqueue_enable_cb (vq)); -spin_unlock_irqrestore (&vcrypto->data_vq[qid].lock, flags); +} + +static void virtcrypto_dataq_callback (struct virtqueue *vq) +{ +struct virtio_crypto *vcrypto = vq->vdev->priv; +struct data_queue *dq = &vcrypto->data_vq[vq->index]; + +tasklet_schedule (&dq->done_task); }static int virtcrypto_find_vqs (struct virtio_crypto *vi)
@@ -99,6 +100,8 @@ static int virtcrypto_find_vqs(struct virtio_crypto *vi) ret = -ENOMEM ; goto err_engine; } +tasklet_init (&vi->data_vq[i].done_task, virtcrypto_done_task, + (unsigned long )&vi->data_vq[i]); }kfree (names);
@@ -431,11 +434,14 @@ static void virtcrypto_free_unused_reqs(struct virtio_crypto *vcrypto)static void virtcrypto_remove (struct virtio_device *vdev) {struct virtio_crypto *vcrypto = vdev->priv; +int i;dev_info (&vdev->dev,"Start virtcrypto_remove.\n" );if (virtcrypto_dev_started (vcrypto))virtcrypto_dev_stop (vcrypto); +for (i =0 ; i < vcrypto->max_data_queues; i++) +tasklet_kill (&vcrypto->data_vq[i].done_task); vdev->config->reset (vdev);virtcrypto_free_unused_reqs (vcrypto);virtcrypto_clear_crypto_engines (vcrypto);
drivers/edac/thunderx_edac.c +5 -5
@@ -1133,7 +1133,7 @@ static irqreturn_t thunderx_ocx_com_threaded_isr(int irq, void *irq_id)decode_register (other,OCX_OTHER_SIZE , ocx_com_errors, ctx->reg_com_int); -strncat (msg, other,OCX_MESSAGE_SIZE ); +strlcat (msg, other,OCX_MESSAGE_SIZE );for (lane =0 ; lane <OCX_RX_LANES ; lane++)if (ctx->reg_com_int &BIT (lane)) {
@@ -1142,12 +1142,12 @@ static irqreturn_t thunderx_ocx_com_threaded_isr(int irq, void *irq_id) lane, ctx->reg_lane_int[lane], lane, ctx->reg_lane_stat11[lane]); -strncat (msg, other,OCX_MESSAGE_SIZE ); +strlcat (msg, other,OCX_MESSAGE_SIZE );decode_register (other,OCX_OTHER_SIZE , ocx_lane_errors, ctx->reg_lane_int[lane]); -strncat (msg, other,OCX_MESSAGE_SIZE ); +strlcat (msg, other,OCX_MESSAGE_SIZE ); }if (ctx->reg_com_int &OCX_COM_INT_CE )
@@ -1217,7 +1217,7 @@ static irqreturn_t thunderx_ocx_lnk_threaded_isr(int irq, void *irq_id)decode_register (other,OCX_OTHER_SIZE , ocx_com_link_errors, ctx->reg_com_link_int); -strncat (msg, other,OCX_MESSAGE_SIZE ); +strlcat (msg, other,OCX_MESSAGE_SIZE );if (ctx->reg_com_link_int &OCX_COM_LINK_INT_UE )edac_device_handle_ue (ocx->edac_dev,0 ,0 , msg);
@@ -1896,7 +1896,7 @@ static irqreturn_t thunderx_l2c_threaded_isr(int irq, void *irq_id)decode_register (other,L2C_OTHER_SIZE , l2_errors, ctx->reg_int); -strncat (msg, other,L2C_MESSAGE_SIZE ); +strlcat (msg, other,L2C_MESSAGE_SIZE );if (ctx->reg_int & mask_ue)edac_device_handle_ue (l2c->edac_dev,0 ,0 , msg);
drivers/firmware/meson/meson_sm.c +4 -1
@@ -313,11 +313,14 @@ static int __init meson_sm_probe(struct platform_device *pdev)platform_set_drvdata (pdev, fw); -pr_info ("secure-monitor enabled\n" ); +if (devm_of_platform_populate (dev)) + goto out_in_base;if (sysfs_create_group (&pdev->dev.kobj, &meson_sm_sysfs_attr_group)) goto out_in_base; +pr_info ("secure-monitor enabled\n" ); +return 0 ; out_in_base:
drivers/firmware/ti_sci.c +5 -5
@@ -161,7 +161,7 @@ static int ti_sci_debugfs_create(struct platform_device *pdev, {struct device *dev = &pdev->dev;struct resource *res; -char debug_name[50 ] ="ti_sci_debug@" ; +char debug_name[50 ];/* Debug region is optional */ res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
@@ -178,10 +178,10 @@ static int ti_sci_debugfs_create(struct platform_device *pdev,/* Setup NULL termination */ info->debug_buffer[info->debug_region_size] =0 ; - info->d =debugfs_create_file (strncat (debug_name,dev_name (dev), -sizeof (debug_name) - -sizeof ("ti_sci_debug@" )), -0444 ,NULL , info, &ti_sci_debug_fops); +snprintf (debug_name,sizeof (debug_name),"ti_sci_debug@%s" , +dev_name (dev)); + info->d =debugfs_create_file (debug_name,0444 ,NULL , info, + &ti_sci_debug_fops);if (IS_ERR (info->d))return PTR_ERR (info->d);
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +8 -2
@@ -342,6 +342,9 @@ static ssize_t amdgpu_debugfs_regs_didt_read(struct file *f, char __user *buf,if (size &0x3 || *pos &0x3 )return -EINVAL ; +if (!adev->didt_rreg) +return -EOPNOTSUPP ; + r =pm_runtime_get_sync (adev_to_drm (adev)->dev);if (r <0 ) {pm_runtime_put_autosuspend (adev_to_drm (adev)->dev);
@@ -401,6 +404,9 @@ static ssize_t amdgpu_debugfs_regs_didt_write(struct file *f, const char __userif (size &0x3 || *pos &0x3 )return -EINVAL ; +if (!adev->didt_wreg) +return -EOPNOTSUPP ; + r =pm_runtime_get_sync (adev_to_drm (adev)->dev);if (r <0 ) {pm_runtime_put_autosuspend (adev_to_drm (adev)->dev);
@@ -459,7 +465,7 @@ static ssize_t amdgpu_debugfs_regs_smc_read(struct file *f, char __user *buf,int r;if (!adev->smc_rreg) -return -EPERM ; +return -EOPNOTSUPP ;if (size &0x3 || *pos &0x3 )return -EINVAL ;
@@ -521,7 +527,7 @@ static ssize_t amdgpu_debugfs_regs_smc_write(struct file *f, const char __user *int r;if (!adev->smc_wreg) -return -EPERM ; +return -EOPNOTSUPP ;if (size &0x3 || *pos &0x3 )return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/soc15.c +8 -4
@@ -1615,9 +1615,11 @@ static void soc15_common_get_clockgating_state(void *handle, u32 *flags)if (amdgpu_sriov_vf (adev)) *flags =0 ; - adev->nbio.funcs->get_clockgating_state (adev, flags); +if (adev->nbio.funcs && adev->nbio.funcs->get_clockgating_state) + adev->nbio.funcs->get_clockgating_state (adev, flags); - adev->hdp.funcs->get_clock_gating_state (adev, flags); +if (adev->hdp.funcs && adev->hdp.funcs->get_clock_gating_state) + adev->hdp.funcs->get_clock_gating_state (adev, flags);if (adev->asic_type !=CHIP_ALDEBARAN ) {
@@ -1633,9 +1635,11 @@ static void soc15_common_get_clockgating_state(void *handle, u32 *flags) }/* AMD_CG_SUPPORT_ROM_MGCG */ - adev->smuio.funcs->get_clock_gating_state (adev, flags); +if (adev->smuio.funcs && adev->smuio.funcs->get_clock_gating_state) + adev->smuio.funcs->get_clock_gating_state (adev, flags); - adev->df.funcs->get_clockgating_state (adev, flags); +if (adev->df.funcs && adev->df.funcs->get_clockgating_state) + adev->df.funcs->get_clockgating_state (adev, flags); } static int soc15_common_set_powergating_state(void *handle,
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +5 -1
@@ -2924,6 +2924,8 @@ static int smu7_hwmgr_backend_init(struct pp_hwmgr *hwmgr) result =smu7_get_evv_voltages (hwmgr);if (result) {pr_info ("Get EVV Voltage Failed. Abort Driver loading!\n" ); +kfree (hwmgr->backend); + hwmgr->backend =NULL ;return -EINVAL ; } }else {
@@ -2969,8 +2971,10 @@ static int smu7_hwmgr_backend_init(struct pp_hwmgr *hwmgr) } result =smu7_update_edc_leakage_table (hwmgr); -if (result) +if (result) { +smu7_hwmgr_backend_fini (hwmgr);return result; + }return 0 ; }
drivers/gpu/drm/amd/pm/powerplay/kv_dpm.c +1 -3
@@ -2731,10 +2731,8 @@ static int kv_parse_power_table(struct amdgpu_device *adev) non_clock_info = (struct _ATOM_PPLIB_NONCLOCK_INFO *) &non_clock_info_array->nonClockInfo[non_clock_array_index]; ps =kzalloc (sizeof (struct kv_ps ),GFP_KERNEL ); -if (ps ==NULL ) { -kfree (adev->pm.dpm.ps); +if (ps ==NULL )return -ENOMEM ; - } adev->pm.dpm.ps[i].ps_priv = ps; k =0 ; idx = (u8 *)&power_state->v2.clockInfoIndex[0 ];
drivers/gpu/drm/amd/pm/powerplay/si_dpm.c +2 -3
@@ -7346,10 +7346,9 @@ static int si_dpm_init(struct amdgpu_device *adev)kcalloc (4 ,sizeof (struct amdgpu_clock_voltage_dependency_entry ),GFP_KERNEL ); -if (!adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries) { -amdgpu_free_extended_power_table (adev); +if (!adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries)return -ENOMEM ; - } + adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.count =4 ; adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries[0 ].clk =0 ; adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries[0 ].v =0 ;
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-hdcp.c +2 -1
@@ -403,7 +403,8 @@ static int _cdns_mhdp_hdcp_disable(struct cdns_mhdp_device *mhdp)static int _cdns_mhdp_hdcp_enable (struct cdns_mhdp_device *mhdp,u8 content_type) { -int ret, tries =3 ; +int ret = -EINVAL ; +int tries =3 ;u32 i;for (i =0 ; i < tries; i++) {
drivers/gpu/drm/bridge/tc358767.c +1 -1
@@ -1633,7 +1633,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id) }else {if (tc->hpd_pin <0 || tc->hpd_pin >1 ) {dev_err (dev,"failed to parse HPD number\n" ); -return ret; +return -EINVAL ; } }
drivers/gpu/drm/bridge/ti-tpd12s015.c +2 -2
@@ -179,7 +179,7 @@ static int tpd12s015_probe(struct platform_device *pdev)return 0 ; } -static int __exit tpd12s015_remove(struct platform_device *pdev) +static int tpd12s015_remove (struct platform_device *pdev) {struct tpd12s015_device *tpd =platform_get_drvdata (pdev);
@@ -197,7 +197,7 @@ MODULE_DEVICE_TABLE(of, tpd12s015_of_match);static struct platform_driver tpd12s015_driver = { .probe = tpd12s015_probe, - .remove =__exit_p (tpd12s015_remove), + .remove = tpd12s015_remove, .driver = { .name ="tpd12s015" , .of_match_table = tpd12s015_of_match,
drivers/gpu/drm/drm_crtc.c +4 -4
@@ -643,8 +643,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,struct drm_mode_set set;uint32_t __user *set_connectors_ptr;struct drm_modeset_acquire_ctx ctx; -int ret; -int i; +int ret, i, num_connectors =0 ;if (!drm_core_check_feature (dev,DRIVER_MODESET ))return -EOPNOTSUPP ;
@@ -799,6 +798,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, connector->name); connector_set[i] = connector; + num_connectors++; } }
@@ -807,7 +807,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, set.y = crtc_req->y; set.mode = mode; set.connectors = connector_set; - set.num_connectors = crtc_req->count_connectors; + set.num_connectors = num_connectors; set.fb = fb;if (drm_drv_uses_atomic_modeset (dev))
@@ -820,7 +820,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,drm_framebuffer_put (fb);if (connector_set) { -for (i =0 ; i < crtc_req->count_connectors; i++) { +for (i =0 ; i < num_connectors; i++) {if (connector_set[i])drm_connector_put (connector_set[i]); }
drivers/gpu/drm/drm_drv.c +8 -2
@@ -894,8 +894,11 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags) goto err_minors; } -if (drm_core_check_feature (dev,DRIVER_MODESET )) -drm_modeset_register_all (dev); +if (drm_core_check_feature (dev,DRIVER_MODESET )) { + ret =drm_modeset_register_all (dev); +if (ret) + goto err_unload; + } DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n", driver->name, driver->major, driver->minor,
@@ -905,6 +908,9 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags) goto out_unlock; +err_unload: +if (dev->driver->unload) + dev->driver->unload (dev); err_minors:remove_compat_control_link (dev);drm_minor_unregister (dev,DRM_MINOR_PRIMARY );
drivers/gpu/drm/exynos/exynos_drm_dma.c +3 -5
@@ -108,18 +108,16 @@ int exynos_drm_register_dma(struct drm_device *drm, struct device *dev,return 0 ;if (!priv->mapping) { -void *mapping; +void *mapping =NULL ;if (IS_ENABLED (CONFIG_ARM_DMA_USE_IOMMU )) mapping =arm_iommu_create_mapping (&platform_bus_type,EXYNOS_DEV_ADDR_START ,EXYNOS_DEV_ADDR_SIZE );else if (IS_ENABLED (CONFIG_IOMMU_DMA )) mapping =iommu_get_domain_for_dev (priv->dma_dev); -else - mapping =ERR_PTR (-ENODEV ); -if (IS_ERR (mapping)) -return PTR_ERR (mapping); +if (!mapping) +return -ENODEV ; priv->mapping = mapping; }
drivers/gpu/drm/exynos/exynos_hdmi.c +2 -0
@@ -1861,6 +1861,8 @@ static int hdmi_bind(struct device *dev, struct device *master, void *data)return ret; crtc =exynos_drm_crtc_get_by_type (drm_dev,EXYNOS_DISPLAY_TYPE_HDMI ); +if (IS_ERR (crtc)) +return PTR_ERR (crtc); crtc->pipe_clk = &hdata->phy_clk; ret =hdmi_create_connector (encoder);
drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c +9 -0
@@ -269,6 +269,7 @@ static void mdp4_crtc_atomic_disable(struct drm_crtc *crtc, {struct mdp4_crtc *mdp4_crtc =to_mdp4_crtc (crtc);struct mdp4_kms *mdp4_kms =get_kms (crtc); +unsigned long flags;DBG ("%s" , mdp4_crtc->name);
@@ -281,6 +282,14 @@ static void mdp4_crtc_atomic_disable(struct drm_crtc *crtc,mdp_irq_unregister (&mdp4_kms->base, &mdp4_crtc->err);mdp4_disable (mdp4_kms); +if (crtc->state->event && !crtc->state->active) { +WARN_ON (mdp4_crtc->event); +spin_lock_irqsave (&mdp4_kms->dev->event_lock, flags); +drm_crtc_send_vblank_event (crtc, crtc->state->event); + crtc->state->event =NULL ; +spin_unlock_irqrestore (&mdp4_kms->dev->event_lock, flags); + } + mdp4_crtc->enabled = false; }
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +3 -1
@@ -588,7 +588,9 @@ static int dsi_phy_enable_resource(struct msm_dsi_phy *phy)struct device *dev = &phy->pdev->dev;int ret; -pm_runtime_get_sync (dev); + ret =pm_runtime_resume_and_get (dev); +if (ret) +return ret; ret =clk_prepare_enable (phy->ahb_clk);if (ret) {
drivers/gpu/drm/nouveau/nv04_fence.c +1 -1
@@ -39,7 +39,7 @@ struct nv04_fence_priv {static int nv04_fence_emit (struct nouveau_fence *fence) { -struct nvif_push *push = fence->channel->chan.push; +struct nvif_push *push =unrcu_pointer (fence->channel)->chan.push;int ret =PUSH_WAIT (push,2 );if (ret ==0 ) {PUSH_NVSQ (push,NV_SW ,0x0150 , fence->base.seqno);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmtu102.c +1 -1
@@ -31,7 +31,7 @@ tu102_vmm_flush(struct nvkm_vmm *vmm, int depth) type |=0x00000001 ;/* PAGE_ALL */ if (atomic_read (&vmm->engref[NVKM_SUBDEV_BAR ])) - type |=0x00000004 ;/* HUB_ONLY */ + type |=0x00000006 ;/* HUB_ONLY | ALL PDB (hack) */ mutex_lock (&vmm->mmu->mutex);
drivers/gpu/drm/omapdrm/omap_drv.c +4 -5
@@ -68,7 +68,6 @@ static void omap_atomic_commit_tail(struct drm_atomic_state *old_state) {struct drm_device *dev = old_state->dev;struct omap_drm_private *priv = dev->dev_private; -bool fence_cookie =dma_fence_begin_signalling ();dispc_runtime_get (priv->dispc);
@@ -91,6 +90,8 @@ static void omap_atomic_commit_tail(struct drm_atomic_state *old_state)omap_atomic_wait_for_completion (dev, old_state);drm_atomic_helper_commit_planes (dev, old_state,0 ); + +drm_atomic_helper_commit_hw_done (old_state); }else {/* * OMAP3 DSS seems to have issues with the work-around above,
@@ -100,11 +101,9 @@ static void omap_atomic_commit_tail(struct drm_atomic_state *old_state)drm_atomic_helper_commit_planes (dev, old_state,0 );drm_atomic_helper_commit_modeset_enables (dev, old_state); - } -drm_atomic_helper_commit_hw_done (old_state); - -dma_fence_end_signalling (fence_cookie); +drm_atomic_helper_commit_hw_done (old_state); + }/* * Wait for completion of the page flips to ensure that old buffers
drivers/gpu/drm/panel/panel-elida-kd35t133.c +2 -0
@@ -112,6 +112,8 @@ static int kd35t133_unprepare(struct drm_panel *panel)return ret; } +gpiod_set_value_cansleep (ctx->reset_gpio,1 ); +regulator_disable (ctx->iovcc);regulator_disable (ctx->vdd);
drivers/gpu/drm/radeon/r100.c +2 -2
@@ -2320,7 +2320,7 @@ int r100_cs_track_check(struct radeon_device *rdev, struct r100_cs_track *track)switch (prim_walk) {case 1 :for (i =0 ; i < track->num_arrays; i++) { - size = track->arrays[i].esize * track->max_indx *4 ; + size = track->arrays[i].esize * track->max_indx *4UL ;if (track->arrays[i].robj ==NULL ) {DRM_ERROR ("(PW %u) Vertex array %u no buffer " "bound\n" , prim_walk, i);
@@ -2339,7 +2339,7 @@ int r100_cs_track_check(struct radeon_device *rdev, struct r100_cs_track *track)break ;case 2 :for (i =0 ; i < track->num_arrays; i++) { - size = track->arrays[i].esize * (nverts -1 ) *4 ; + size = track->arrays[i].esize * (nverts -1 ) *4UL ;if (track->arrays[i].robj ==NULL ) {DRM_ERROR ("(PW %u) Vertex array %u no buffer " "bound\n" , prim_walk, i);
drivers/gpu/drm/radeon/r600_cs.c +2 -2
@@ -1277,7 +1277,7 @@ static int r600_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx)return -EINVAL ; } tmp = (reg -CB_COLOR0_BASE ) /4 ; - track->cb_color_bo_offset[tmp] =radeon_get_ib_value (p, idx) <<8 ; + track->cb_color_bo_offset[tmp] = (u64 )radeon_get_ib_value (p, idx) <<8 ; ib[idx] += (u32)((reloc->gpu_offset >>8 ) &0xffffffff ); track->cb_color_base_last[tmp] = ib[idx]; track->cb_color_bo[tmp] = reloc->robj;
@@ -1304,7 +1304,7 @@ static int r600_cs_check_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) "0x%04X\n", reg);return -EINVAL ; } - track->htile_offset =radeon_get_ib_value (p, idx) <<8 ; + track->htile_offset = (u64 )radeon_get_ib_value (p, idx) <<8 ; ib[idx] += (u32)((reloc->gpu_offset >>8 ) &0xffffffff ); track->htile_bo = reloc->robj; track->db_dirty = true;
drivers/gpu/drm/radeon/radeon_display.c +6 -1
@@ -681,11 +681,16 @@ static void radeon_crtc_init(struct drm_device *dev, int index)if (radeon_crtc ==NULL )return ; + radeon_crtc->flip_queue =alloc_workqueue ("radeon-crtc" ,WQ_HIGHPRI ,0 ); +if (!radeon_crtc->flip_queue) { +kfree (radeon_crtc); +return ; + } +drm_crtc_init (dev, &radeon_crtc->base, &radeon_crtc_funcs);drm_mode_crtc_set_gamma_size (&radeon_crtc->base,256 ); radeon_crtc->crtc_id = index; - radeon_crtc->flip_queue =alloc_workqueue ("radeon-crtc" ,WQ_HIGHPRI ,0 ); rdev->mode_info.crtcs[index] = radeon_crtc;if (rdev->family >=CHIP_BONAIRE ) {
drivers/gpu/drm/radeon/radeon_vm.c +6 -2
@@ -1204,13 +1204,17 @@ int radeon_vm_init(struct radeon_device *rdev, struct radeon_vm *vm) r =radeon_bo_create (rdev, pd_size, align, true,RADEON_GEM_DOMAIN_VRAM ,0 ,NULL ,NULL , &vm->page_directory); -if (r) +if (r) { +kfree (vm->page_tables); + vm->page_tables =NULL ;return r; - + } r =radeon_vm_clear_bo (rdev, vm->page_directory);if (r) {radeon_bo_unref (&vm->page_directory); vm->page_directory =NULL ; +kfree (vm->page_tables); + vm->page_tables =NULL ;return r; }
drivers/gpu/drm/radeon/si.c +4 -0
@@ -3611,6 +3611,10 @@ static int si_cp_start(struct radeon_device *rdev)for (i =RADEON_RING_TYPE_GFX_INDEX ; i <=CAYMAN_RING_TYPE_CP2_INDEX ; ++i) { ring = &rdev->ring[i]; r =radeon_ring_lock (rdev, ring,2 ); +if (r) { +DRM_ERROR ("radeon: cp failed to lock ring (%d).\n" , r); +return r; + }/* clear the compute context state */ radeon_ring_write (ring,PACKET3_COMPUTE (PACKET3_CLEAR_STATE ,0 ));
drivers/gpu/drm/radeon/sumo_dpm.c +3 -1
@@ -1493,8 +1493,10 @@ static int sumo_parse_power_table(struct radeon_device *rdev) non_clock_array_index = power_state->v2.nonClockInfoIndex; non_clock_info = (struct _ATOM_PPLIB_NONCLOCK_INFO *) &non_clock_info_array->nonClockInfo[non_clock_array_index]; -if (!rdev->pm.power_state[i].clock_info) +if (!rdev->pm.power_state[i].clock_info) { +kfree (rdev->pm.dpm.ps);return -EINVAL ; + } ps =kzalloc (sizeof (struct sumo_ps ),GFP_KERNEL );if (ps ==NULL ) {kfree (rdev->pm.dpm.ps);
drivers/gpu/drm/radeon/trinity_dpm.c +3 -1
@@ -1726,8 +1726,10 @@ static int trinity_parse_power_table(struct radeon_device *rdev) non_clock_array_index = power_state->v2.nonClockInfoIndex; non_clock_info = (struct _ATOM_PPLIB_NONCLOCK_INFO *) &non_clock_info_array->nonClockInfo[non_clock_array_index]; -if (!rdev->pm.power_state[i].clock_info) +if (!rdev->pm.power_state[i].clock_info) { +kfree (rdev->pm.dpm.ps);return -EINVAL ; + } ps =kzalloc (sizeof (struct sumo_ps ),GFP_KERNEL );if (ps ==NULL ) {kfree (rdev->pm.dpm.ps);
drivers/gpu/drm/tidss/tidss_kms.c +0 -4
@@ -4,8 +4,6 @@* Author: Tomi Valkeinen <[email protected]> */ -#include <linux/dma-fence.h> -#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h>
@@ -28,7 +26,6 @@ static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state) {struct drm_device *ddev = old_state->dev;struct tidss_device *tidss =to_tidss (ddev); -bool fence_cookie =dma_fence_begin_signalling ();dev_dbg (ddev->dev,"%s\n" , __func__);
@@ -39,7 +36,6 @@ static void tidss_atomic_commit_tail(struct drm_atomic_state *old_state)drm_atomic_helper_commit_modeset_enables (ddev, old_state);drm_atomic_helper_commit_hw_done (old_state); -dma_fence_end_signalling (fence_cookie);drm_atomic_helper_wait_for_flip_done (ddev, old_state);drm_atomic_helper_cleanup_planes (ddev, old_state);
drivers/gpu/drm/tilcdc/tilcdc_drv.c +1 -1
@@ -140,7 +140,7 @@ static int tilcdc_irq_install(struct drm_device *dev, unsigned int irq)if (ret)return ret; - priv->irq_enabled = false; + priv->irq_enabled = true;return 0 ; }
drivers/hid/wacom_wac.c +4 -28
@@ -2623,8 +2623,8 @@ static void wacom_wac_finger_slot(struct wacom_wac *wacom_wac, {struct hid_data *hid_data = &wacom_wac->hid_data;bool mt = wacom_wac->features.touch_max >1 ; -bool prox = hid_data->tipswitch && -report_touch_events (wacom_wac); +bool touch_down = hid_data->tipswitch && hid_data->confidence; +bool prox = touch_down &&report_touch_events (wacom_wac);if (touch_is_muted (wacom_wac)) {if (!wacom_wac->shared->touch_down)
@@ -2674,24 +2674,6 @@ static void wacom_wac_finger_slot(struct wacom_wac *wacom_wac, } } -static bool wacom_wac_slot_is_active (struct input_dev *dev,int key) -{ -struct input_mt *mt = dev->mt; -struct input_mt_slot *s; - -if (!mt) -return false; - -for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { -if (s->key == key && -input_mt_get_value (s,ABS_MT_TRACKING_ID ) >=0 ) { -return true; - } - } - -return false; -} -static void wacom_wac_finger_event (struct hid_device *hdev,struct hid_field *field,struct hid_usage *usage,__s32 value) {
@@ -2742,14 +2724,8 @@ static void wacom_wac_finger_event(struct hid_device *hdev, }if (usage->usage_index +1 == field->report_count) { -if (equivalent_usage == wacom_wac->hid_data.last_slot_field) { -bool touch_removed =wacom_wac_slot_is_active (wacom_wac->touch_input, - wacom_wac->hid_data.id) && !wacom_wac->hid_data.tipswitch; - -if (wacom_wac->hid_data.confidence || touch_removed) { -wacom_wac_finger_slot (wacom_wac, wacom_wac->touch_input); - } - } +if (equivalent_usage == wacom_wac->hid_data.last_slot_field) +wacom_wac_finger_slot (wacom_wac, wacom_wac->touch_input); } }
drivers/hwmon/corsair-psu.c +17 -1
@@ -808,7 +808,23 @@ static struct hid_driver corsairpsu_driver = { .reset_resume = corsairpsu_resume,#endif }; -module_hid_driver (corsairpsu_driver); + +static int __init corsair_init (void ) +{ +return hid_register_driver (&corsairpsu_driver); +} + +static void __exit corsair_exit(void) +{ +hid_unregister_driver (&corsairpsu_driver); +} + +/* +* With module_init() the driver would load before the HID bus when +* built-in, so use late_initcall() instead. +*/ +late_initcall (corsair_init); +module_exit (corsair_exit);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Wilken Gottwalt <[email protected]>" );
drivers/hwtracing/coresight/coresight-etm4x.h +1 -1
@@ -944,7 +944,7 @@ struct etmv4_drvdata {u8 ctxid_size;u8 vmid_size;u8 ccsize; -u8 ccitmin; +u16 ccitmin;u8 s_ex_level;u8 ns_ex_level;u8 q_support;
drivers/i2c/busses/i2c-rk3x.c +11 -2
@@ -178,6 +178,7 @@ struct rk3x_i2c_soc_data {* @clk: function clk for rk3399 or function & Bus clks for others * @pclk: Bus clk for rk3399 * @clk_rate_nb: i2c clk rate change notify +* @irq: irq number * @t: I2C known timing information * @lock: spinlock for the i2c bus * @wait: the waitqueue to wait for i2c transfer
@@ -200,6 +201,7 @@ struct rk3x_i2c {struct clk *clk;struct clk *pclk;struct notifier_block clk_rate_nb; +int irq;/* Settings */ struct i2c_timings t;
@@ -1087,13 +1089,18 @@ static int rk3x_i2c_xfer_common(struct i2c_adapter *adap,spin_unlock_irqrestore (&i2c->lock, flags); -rk3x_i2c_start (i2c); -if (!polling) { +rk3x_i2c_start (i2c); + timeout =wait_event_timeout (i2c->wait, !i2c->busy,msecs_to_jiffies (WAIT_TIMEOUT )); }else { +disable_irq (i2c->irq); +rk3x_i2c_start (i2c); + timeout =rk3x_i2c_wait_xfer_poll (i2c); + +enable_irq (i2c->irq); }spin_lock_irqsave (&i2c->lock, flags);
@@ -1301,6 +1308,8 @@ static int rk3x_i2c_probe(struct platform_device *pdev)return ret; } + i2c->irq = irq; +platform_set_drvdata (pdev, i2c);if (i2c->soc_data->calc_timings == rk3x_i2c_v0_calc_timings) {
drivers/i2c/busses/i2c-s3c2410.c +21 -19
@@ -220,8 +220,17 @@ static bool is_ack(struct s3c24xx_i2c *i2c)int tries;for (tries =50 ; tries; --tries) { -if (readl (i2c->regs +S3C2410_IICCON ) - &S3C2410_IICCON_IRQPEND ) { +unsigned long tmp =readl (i2c->regs +S3C2410_IICCON ); + +if (!(tmp &S3C2410_IICCON_ACKEN )) { +/* +* Wait a bit for the bus to stabilize, +* delay estimated experimentally. +*/ +usleep_range (100 ,200 ); +return true; + } +if (tmp &S3C2410_IICCON_IRQPEND ) {if (!(readl (i2c->regs +S3C2410_IICSTAT ) &S3C2410_IICSTAT_LASTBIT ))return true;
@@ -274,16 +283,6 @@ static void s3c24xx_i2c_message_start(struct s3c24xx_i2c *i2c, stat |=S3C2410_IICSTAT_START ;writel (stat, i2c->regs +S3C2410_IICSTAT ); - -if (i2c->quirks &QUIRK_POLL ) { -while ((i2c->msg_num !=0 ) &&is_ack (i2c)) { -i2c_s3c_irq_nextbyte (i2c, stat); - stat =readl (i2c->regs +S3C2410_IICSTAT ); - -if (stat &S3C2410_IICSTAT_ARBITR ) -dev_err (i2c->dev,"deal with arbitration loss\n" ); - } - } }static inline void s3c24xx_i2c_stop (struct s3c24xx_i2c *i2c,int ret)
@@ -690,7 +689,7 @@ static void s3c24xx_i2c_wait_idle(struct s3c24xx_i2c *i2c)static int s3c24xx_i2c_doxfer (struct s3c24xx_i2c *i2c,struct i2c_msg *msgs,int num) { -unsigned long timeout; +unsigned long timeout =0 ;int ret; ret =s3c24xx_i2c_set_master (i2c);
@@ -710,16 +709,19 @@ static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c,s3c24xx_i2c_message_start (i2c, msgs);if (i2c->quirks &QUIRK_POLL ) { - ret = i2c->msg_idx; +while ((i2c->msg_num !=0 ) &&is_ack (i2c)) { +unsigned long stat =readl (i2c->regs +S3C2410_IICSTAT ); -if (ret != num) -dev_dbg (i2c->dev,"incomplete xfer (%d)\n" , ret); +i2c_s3c_irq_nextbyte (i2c, stat); - goto out; + stat =readl (i2c->regs +S3C2410_IICSTAT ); +if (stat &S3C2410_IICSTAT_ARBITR ) +dev_err (i2c->dev,"deal with arbitration loss\n" ); + } + }else { + timeout =wait_event_timeout (i2c->wait, i2c->msg_num ==0 ,HZ *5 ); } - timeout =wait_event_timeout (i2c->wait, i2c->msg_num ==0 ,HZ *5 ); - ret = i2c->msg_idx;/*
drivers/iio/adc/ad7091r-base.c +3 -3
@@ -174,8 +174,8 @@ static const struct iio_info ad7091r_info = {static irqreturn_t ad7091r_event_handler (int irq,void *private) { -struct ad7091r_state *st = (struct ad7091r_state *) private; -struct iio_dev *iio_dev =dev_get_drvdata (st->dev); +struct iio_dev *iio_dev = private; +struct ad7091r_state *st =iio_priv (iio_dev);unsigned int i, read_val;int ret;s64 timestamp =iio_get_time_ns (iio_dev);
@@ -234,7 +234,7 @@ int ad7091r_probe(struct device *dev, const char *name,if (irq) { ret =devm_request_threaded_irq (dev, irq,NULL , ad7091r_event_handler, -IRQF_TRIGGER_FALLING |IRQF_ONESHOT , name, st); +IRQF_TRIGGER_FALLING |IRQF_ONESHOT , name, iio_dev);if (ret)return ret; }
drivers/iio/adc/ad9467.c +79 -35
197 lines not on this page · raw message
drivers/iio/adc/adi-axi-adc.c +15 -59
90 lines not on this page · raw message
drivers/infiniband/hw/hns/hns_roce_hw_v2.c +1 -1
@@ -5442,7 +5442,7 @@ static int hns_roce_v2_modify_srq(struct ib_srq *ibsrq,/* Resizing SRQs is not supported yet */ if (srq_attr_mask &IB_SRQ_MAX_WR ) -return -EINVAL ; +return -EOPNOTSUPP ;if (srq_attr_mask &IB_SRQ_LIMIT ) {if (srq_attr->srq_limit > srq->wqe_cnt)
drivers/infiniband/hw/hns/hns_roce_pd.c +1 -1
@@ -161,7 +161,7 @@ int hns_roce_alloc_xrcd(struct ib_xrcd *ib_xrcd, struct ib_udata *udata)int ret;if (!(hr_dev->caps.flags &HNS_ROCE_CAP_FLAG_XRC )) -return -EINVAL ; +return -EOPNOTSUPP ; ret =hns_roce_xrcd_alloc (hr_dev, &xrcd->xrcdn);if (ret)
drivers/infiniband/hw/mthca/mthca_cmd.c +2 -2
@@ -635,7 +635,7 @@ void mthca_free_mailbox(struct mthca_dev *dev, struct mthca_mailbox *mailbox)int mthca_SYS_EN (struct mthca_dev *dev) { -u64 out; +u64 out =0 ;int ret; ret =mthca_cmd_imm (dev,0 , &out,0 ,0 ,CMD_SYS_EN ,CMD_TIME_CLASS_D );
@@ -1955,7 +1955,7 @@ int mthca_WRITE_MGM(struct mthca_dev *dev, int index,int mthca_MGID_HASH (struct mthca_dev *dev,struct mthca_mailbox *mailbox,u16 *hash) { -u64 imm; +u64 imm =0 ;int err; err = mthca_cmd_imm(dev, mailbox->dma, &imm, 0, 0, CMD_MGID_HASH,
drivers/infiniband/hw/mthca/mthca_main.c +1 -1
@@ -382,7 +382,7 @@ static int mthca_init_icm(struct mthca_dev *mdev, struct mthca_init_hca_param *init_hca, u64 icm_size) { -u64 aux_pages; +u64 aux_pages =0 ;int err; err =mthca_SET_ICM_SIZE (mdev, icm_size, &aux_pages);
drivers/infiniband/ulp/iser/iscsi_iser.h +0 -2
@@ -321,12 +321,10 @@ struct iser_device {* * @mr: memory region * @sig_mr: signature memory region -* @mr_valid: is mr valid indicator */ struct iser_reg_resources {
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/iser/iser_initiator.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/iser/iser_memory.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/infiniband/ulp/iser/iser_verbs.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/input/keyboard/atkbd.c +45 -5
50 lines not on this page · raw message
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/dvb-frontends/m88ds3103.c +5 -2
Lines of this file are not shown. View the raw message.
drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/media/usb/cx231xx/cx231xx-core.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/media/usb/pvrusb2/pvrusb2-context.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxbf_gige/Makefile +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige.h +0 -12
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_gpio.c deleted +0 -212
212 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c +22 -26
48 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_rx.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_atcam.c +3 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c +5 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c +67 -64
131 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlxsw/spectrum_cnt.c +3 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +4 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/renesas/ravb_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +0 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +8 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/am65-cpsw-nuss.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c +0 -11
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/tx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/rx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas/Kconfig +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/cfg80211.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/fw.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/ioctl.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/uap_cmd.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/eeprom.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/pci.c +16 -63
79 lines not on this page · raw message
drivers/net/wireless/realtek/rtlwifi/pci.h +0 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c +4 -10
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c +2 -10
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.h +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/phy.h +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/phy.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c +4 -11
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c +4 -12
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192se/phy.c +4 -11
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/wifi.h +7 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/mac80211.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/xen-netback/netback.c +38 -6
44 lines not on this page · raw message
drivers/of/unittest-data/tests-phandle.dtsi +9 -1
Lines of this file are not shown. View the raw message.
drivers/of/unittest.c +43 -31
74 lines not on this page · raw message
drivers/parport/parport_serial.c +64 -0
64 lines not on this page · raw message
drivers/pci/controller/dwc/pci-keystone.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pcie-designware-ep.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/pwm/pwm-stm32.c +29 -34
63 lines not on this page · raw message
drivers/scsi/hisi_sas/hisi_sas_main.c +12 -10
Lines of this file are not shown. View the raw message.
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +13 -7
Lines of this file are not shown. View the raw message.
drivers/usb/cdns3/cdns3-gadget.c +107 -35
142 lines not on this page · raw message
include/dt-bindings/clock/qcom,videocc-sm8150.h +4 -0
Lines of this file are not shown. View the raw message.
include/linux/clk-provider.h +43 -9
52 lines not on this page · raw message
include/linux/of.h +140 -151
291 lines not on this page · raw message
net/netfilter/nft_last.c +55 -18
73 lines not on this page · raw message
net/netfilter/nft_limit.c +147 -52
199 lines not on this page · raw message
net/netfilter/nft_quota.c +51 -5
56 lines not on this page · raw message
net/netlabel/netlabel_calipso.c +26 -23
49 lines not on this page · raw message
net/vmw_vsock/virtio_transport_common.c +10 -3
Lines of this file are not shown. View the raw message.
sound/soc/atmel/sam9g20_wm8731.c +61 -0
61 lines not on this page · raw message
sound/usb/mixer_scarlett_gen2.c +150 -73
223 lines not on this page · raw message
tools/perf/util/env.c +32 -18
50 lines not on this page · raw message
tools/testing/selftests/bpf/prog_tests/bpf_iter.c +2 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/bpf_iter_task_stack.c +5 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/drivers/net/mlxsw/qos_pfc.sh +17 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/tc_flower.sh +105 -1
106 lines not on this page · raw message
tools/testing/selftests/net/fib_nexthop_multiprefix.sh +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/math/fpu_preempt.c +5 -4
Lines of this file are not shown. View the raw message.
tools/testing/selftests/powerpc/math/vmx_preempt.c +6 -4
Lines of this file are not shown. View the raw message.
tools/testing/selftests/sgx/sigstruct.c +3 -2
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.