Linux 5.4.7
Greg KH
maintainerI'm announcing the release of the 5.4.7 kernel.
All users of the 5.4 kernel series must upgrade.
The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.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/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 4 arch/arm64/kernel/psci.c | 15 - arch/arm64/kvm/sys_regs.c | 5 arch/mips/include/asm/barrier.h | 13 arch/mips/include/asm/futex.h | 15 - arch/mips/include/asm/pgtable-64.h | 9 arch/mips/ralink/Kconfig | 1 arch/powerpc/include/asm/spinlock.h | 4 arch/powerpc/kernel/irq.c | 4 arch/powerpc/kvm/book3s_hv_rmhandlers.S | 4 arch/powerpc/platforms/pseries/setup.c | 7 arch/s390/crypto/sha_common.c | 7 arch/s390/include/asm/pgalloc.h | 16 - arch/s390/include/asm/timex.h | 16 - arch/s390/kernel/dis.c | 13 arch/s390/kernel/perf_cpum_cf.c | 21 - arch/s390/kernel/perf_cpum_cf_diag.c | 10 arch/s390/kernel/perf_event.c | 8 arch/s390/mm/maccess.c | 12 arch/s390/net/bpf_jit_comp.c | 5 arch/sh/include/cpu-sh4/cpu/sh7734.h | 2 arch/x86/include/asm/crash.h | 2 arch/x86/include/asm/fixmap.h | 2 arch/x86/include/asm/syscall_wrapper.h | 23 - arch/x86/kernel/apic/io_apic.c | 9 arch/x86/kernel/cpu/mce/amd.c | 4 arch/x86/kernel/cpu/mce/core.c | 2 arch/x86/kernel/cpu/mce/therm_throt.c | 2 arch/x86/kernel/early-quirks.c | 2 arch/x86/kvm/cpuid.c | 6 arch/x86/lib/x86-opcode-map.txt | 18 - arch/x86/math-emu/fpu_system.h | 6 arch/x86/math-emu/reg_ld_str.c | 6 arch/x86/mm/pgtable.c | 4 block/blk-iocost.c | 13 crypto/Kconfig | 1 crypto/Makefile | 2 crypto/asymmetric_keys/asym_tpm.c | 1 crypto/asymmetric_keys/public_key.c | 1 drivers/acpi/button.c | 11 drivers/ata/libata-core.c | 3 drivers/base/firmware_loader/builtin/Makefile | 3 drivers/block/loop.c | 26 + drivers/block/nbd.c | 6 drivers/bluetooth/btusb.c | 5 drivers/char/hw_random/omap3-rom-rng.c | 3 drivers/char/ipmi/ipmi_msghandler.c | 23 + drivers/char/tpm/tpm-dev-common.c | 8 drivers/char/tpm/tpm_tis_core.c | 35 +- drivers/clk/imx/clk-composite-8m.c | 2 drivers/clk/imx/clk-imx7ulp.c | 1 drivers/clk/imx/clk-pll14xx.c | 2 drivers/cpufreq/cpufreq.c | 7 drivers/cpufreq/sun50i-cpufreq-nvmem.c | 25 - drivers/crypto/atmel-aes.c | 18 - drivers/crypto/atmel-authenc.h | 2 drivers/crypto/atmel-sha.c | 2 drivers/crypto/inside-secure/safexcel.c | 2 drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 22 - drivers/crypto/sunxi-ss/sun4i-ss-hash.c | 12 drivers/crypto/virtio/virtio_crypto_algs.c | 12 drivers/crypto/vmx/Makefile | 6 drivers/edac/amd64_edac.c | 2 drivers/edac/ghes_edac.c | 10 drivers/extcon/extcon-sm5502.c | 4 drivers/extcon/extcon-sm5502.h | 2 drivers/firmware/efi/efi.c | 28 + drivers/fsi/fsi-core.c | 31 +- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 18 - drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 12 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 3 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c | 61 ++-- drivers/gpu/drm/amd/amdgpu/si_ih.c | 3 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 3 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c | 5 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 10 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c | 2 drivers/gpu/drm/amd/display/dc/core/dc_link.c | 17 - drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 3 drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 4 drivers/gpu/drm/amd/display/dc/dce/dce_abm.c | 3 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 5 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 4 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 7 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c | 40 +- drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h | 6 drivers/gpu/drm/amd/display/include/ddc_service_types.h | 2 drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 13 drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 77 +++-- drivers/gpu/drm/amd/display/modules/power/power_helpers.h | 1 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 5 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c | 12 drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 4 drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 2 drivers/gpu/drm/bridge/analogix-anx78xx.c | 8 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 12 drivers/gpu/drm/drm_edid.c | 6 drivers/gpu/drm/drm_mipi_dbi.c | 5 drivers/gpu/drm/drm_vblank.c | 6 drivers/gpu/drm/exynos/exynos_hdmi.c | 31 +- drivers/gpu/drm/gma500/oaktrail_crtc.c | 2 drivers/gpu/drm/meson/meson_vclk.c | 9 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 24 - drivers/gpu/drm/nouveau/nouveau_connector.c | 33 +- drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 1 drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 1 drivers/gpu/drm/scheduler/sched_main.c | 43 +-- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 4 drivers/gpu/drm/tegra/sor.c | 5 drivers/gpu/drm/ttm/ttm_bo.c | 44 +-- drivers/gpu/drm/vc4/vc4_hdmi.c | 13 drivers/gpu/drm/virtio/virtgpu_ioctl.c | 28 + drivers/gpu/host1x/job.c | 11 drivers/hwtracing/intel_th/core.c | 7 drivers/hwtracing/intel_th/intel_th.h | 2 drivers/hwtracing/intel_th/msu.c | 14 drivers/hwtracing/intel_th/pci.c | 10 drivers/iio/adc/dln2-adc.c | 20 - drivers/iio/adc/max1027.c | 8 drivers/iio/dac/Kconfig | 4 drivers/iio/dac/ad5446.c | 6 drivers/iio/light/bh1750.c | 4 drivers/iio/pressure/cros_ec_baro.c | 3 drivers/iio/temperature/max31856.c | 2 drivers/infiniband/core/device.c | 22 + drivers/infiniband/hw/bnxt_re/main.c | 9 drivers/infiniband/hw/bnxt_re/qplib_res.h | 8 drivers/infiniband/hw/efa/efa_com.c | 5 drivers/infiniband/hw/hns/hns_roce_restrack.c | 10 drivers/infiniband/hw/hns/hns_roce_srq.c | 24 - drivers/infiniband/hw/qedr/main.c | 1 drivers/infiniband/hw/qedr/verbs.c | 12 drivers/infiniband/sw/siw/siw_main.c | 20 - drivers/infiniband/sw/siw/siw_verbs.c | 143 ++++++++-- drivers/infiniband/ulp/iser/iscsi_iser.c | 1 drivers/iommu/intel-iommu.c | 12 drivers/iommu/iommu.c | 8 drivers/md/bcache/alloc.c | 5 drivers/md/bcache/bcache.h | 2 drivers/md/bcache/super.c | 51 ++- drivers/md/md-bitmap.c | 2 drivers/md/md.c | 46 ++- drivers/media/i2c/Kconfig | 1 drivers/media/i2c/ad5820.c | 1 drivers/media/i2c/ov2659.c | 18 - drivers/media/i2c/ov5640.c | 5 drivers/media/i2c/ov6650.c | 75 +++-- drivers/media/i2c/smiapp/smiapp-core.c | 12 drivers/media/i2c/st-mipid02.c | 5 drivers/media/pci/cx88/cx88-video.c | 11 drivers/media/platform/am437x/am437x-vpfe.c | 4 drivers/media/platform/aspeed-video.c | 12 drivers/media/platform/exynos4-is/media-dev.c | 7 drivers/media/platform/meson/ao-cec-g12a.c | 36 +- drivers/media/platform/meson/ao-cec.c | 30 +- drivers/media/platform/qcom/venus/core.c | 9 drivers/media/platform/qcom/venus/hfi_venus.c | 6 drivers/media/platform/rcar_drif.c | 1 drivers/media/platform/seco-cec/seco-cec.c | 1 drivers/media/platform/ti-vpe/vpdma.h | 1 drivers/media/platform/ti-vpe/vpe.c | 52 ++- drivers/media/platform/vicodec/vicodec-core.c | 4 drivers/media/platform/vim2m.c | 8 drivers/media/platform/vimc/vimc-common.c | 3 drivers/media/platform/vimc/vimc-debayer.c | 1 drivers/media/platform/vimc/vimc-scaler.c | 1 drivers/media/platform/vimc/vimc-sensor.c | 1 drivers/media/platform/vivid/vivid-core.c | 4 drivers/media/radio/si470x/radio-si470x-i2c.c | 2 drivers/media/usb/b2c2/flexcop-usb.c | 8 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 9 drivers/media/v4l2-core/v4l2-ctrls.c | 7 drivers/media/v4l2-core/v4l2-ioctl.c | 33 +- drivers/misc/fastrpc.c | 4 drivers/misc/ocxl/file.c | 23 - drivers/mmc/host/mtk-sd.c | 2 drivers/mmc/host/sdhci-msm.c | 28 + drivers/mmc/host/sdhci-of-esdhc.c | 7 drivers/mmc/host/sdhci-pci-core.c | 10 drivers/mmc/host/sdhci.c | 11 drivers/mmc/host/sdhci.h | 2 drivers/mmc/host/tmio_mmc_core.c | 2 drivers/net/bonding/bond_main.c | 39 +- drivers/net/can/flexcan.c | 73 ++--- drivers/net/can/m_can/tcan4x5x.c | 2 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c | 6 drivers/net/can/xilinx_can.c | 7 drivers/net/dsa/Kconfig | 1 drivers/net/dsa/b53/b53_common.c | 21 + drivers/net/dsa/sja1105/sja1105_main.c | 4 drivers/net/ethernet/amazon/ena/ena_com.h | 2 drivers/net/ethernet/amazon/ena/ena_ethtool.c | 24 - drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 16 - drivers/net/ethernet/broadcom/bnxt/bnxt.c | 8 drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 9 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 2 drivers/net/ethernet/cortina/gemini.c | 2 drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 14 drivers/net/ethernet/hisilicon/hip04_eth.c | 2 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 drivers/net/ethernet/ibm/ibmvnic.c | 19 - drivers/net/ethernet/intel/i40e/i40e_common.c | 13 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 32 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 10 drivers/net/ethernet/intel/ice/ice_controlq.c | 2 drivers/net/ethernet/intel/ice/ice_controlq.h | 5 drivers/net/ethernet/intel/ice/ice_ethtool.c | 13 drivers/net/ethernet/intel/ice/ice_main.c | 18 - drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c | 12 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 6 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 7 drivers/net/ethernet/netronome/nfp/flower/metadata.c | 12 drivers/net/ethernet/qlogic/qede/qede_filter.c | 2 drivers/net/ethernet/qlogic/qede/qede_main.c | 4 drivers/net/ethernet/qlogic/qla3xxx.c | 8 drivers/net/ethernet/realtek/r8169_main.c | 18 + drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 drivers/net/ethernet/ti/Kconfig | 1 drivers/net/ethernet/ti/cpsw_ale.c | 2 drivers/net/ethernet/ti/davinci_cpdma.c | 5 drivers/net/fjes/fjes_main.c | 3 drivers/net/phy/dp83867.c | 15 - drivers/net/phy/phy_device.c | 21 - drivers/net/team/team.c | 5 drivers/net/tun.c | 4 drivers/net/usb/lan78xx.c | 1 drivers/net/wireless/ath/ath10k/coredump.c | 11 drivers/net/wireless/ath/ath10k/htt_rx.c | 2 drivers/net/wireless/ath/ath10k/mac.c | 26 - drivers/net/wireless/ath/ath10k/txrx.c | 2 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 5 drivers/net/wireless/intel/iwlwifi/dvm/led.c | 3 drivers/net/wireless/intel/iwlwifi/mvm/led.c | 3 drivers/net/wireless/intel/iwlwifi/mvm/rx.c | 3 drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 13 drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c | 25 - drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 30 ++ drivers/net/wireless/marvell/libertas/if_sdio.c | 5 drivers/net/wireless/marvell/mwifiex/pcie.c | 5 drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 4 drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 4 drivers/net/wireless/quantenna/qtnfmac/commands.c | 6 drivers/net/wireless/quantenna/qtnfmac/event.c | 7 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 6 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 1 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 3 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c | 2 drivers/net/wireless/realtek/rtlwifi/usb.c | 5 drivers/net/wireless/realtek/rtw88/coex.c | 24 + drivers/net/wireless/realtek/rtw88/main.c | 3 drivers/nfc/nxp-nci/i2c.c | 2 drivers/nvme/host/core.c | 14 drivers/nvme/host/multipath.c | 1 drivers/nvmem/imx-ocotp.c | 4 drivers/parport/share.c | 21 + drivers/phy/qualcomm/phy-qcom-usb-hs.c | 7 drivers/phy/renesas/phy-rcar-gen2.c | 5 drivers/pinctrl/devicetree.c | 25 + drivers/pinctrl/intel/pinctrl-baytrail.c | 81 +++-- drivers/pinctrl/pinctrl-amd.c | 3 drivers/pinctrl/qcom/pinctrl-sc7180.c | 18 - drivers/pinctrl/sh-pfc/pfc-r8a77990.c | 25 - drivers/pinctrl/sh-pfc/pfc-sh7734.c | 4 drivers/platform/x86/hp-wmi.c | 2 drivers/power/supply/cpcap-battery.c | 8 drivers/regulator/core.c | 5 drivers/regulator/max8907-regulator.c | 15 - drivers/soundwire/intel.c | 10 drivers/spi/spi-cadence.c | 6 drivers/spi/spi-dw.c | 8 drivers/spi/spi-fsl-spi.c | 7 drivers/spi/spi-gpio.c | 4 drivers/spi/spi-img-spfi.c | 2 drivers/spi/spi-pxa2xx.c | 6 drivers/spi/spi-sifive.c | 11 drivers/spi/spi-sprd-adi.c | 3 drivers/spi/spi-st-ssc4.c | 3 drivers/spi/spi-tegra20-slink.c | 5 drivers/spi/spidev.c | 3 drivers/staging/comedi/drivers/gsc_hpdi.c | 10 drivers/staging/fbtft/fbtft-core.c | 2 drivers/staging/iio/frequency/ad9834.c | 4 drivers/staging/media/imx/imx-media-capture.c | 6 drivers/staging/media/imx/imx7-mipi-csis.c | 7 drivers/staging/media/sunxi/cedrus/cedrus.c | 2 drivers/staging/media/sunxi/cedrus/cedrus.h | 8 drivers/staging/media/sunxi/cedrus/cedrus_h264.c | 8 drivers/staging/media/sunxi/cedrus/cedrus_regs.h | 31 +- drivers/staging/mt7621-pci/Kconfig | 1 drivers/staging/rtl8188eu/core/rtw_xmit.c | 4 drivers/staging/rtl8192u/r8192U_core.c | 17 - drivers/staging/wilc1000/wilc_hif.c | 2 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 18 - drivers/tty/serial/atmel_serial.c | 43 +-- drivers/tty/serial/sprd_serial.c | 3 drivers/usb/core/devio.c | 15 - drivers/usb/host/ehci-q.c | 13 drivers/usb/host/xhci-pci.c | 6 drivers/usb/renesas_usbhs/common.h | 3 drivers/usb/renesas_usbhs/mod_gadget.c | 12 drivers/usb/usbip/usbip_common.c | 3 drivers/usb/usbip/vhci_rx.c | 13 drivers/xen/Kconfig | 3 fs/btrfs/async-thread.c | 56 +++ fs/btrfs/ctree.c | 2 fs/btrfs/ctree.h | 2 fs/btrfs/disk-io.c | 2 fs/btrfs/extent-tree.c | 7 fs/btrfs/extent_io.c | 6 fs/btrfs/file-item.c | 7 fs/btrfs/inode.c | 12 fs/btrfs/ioctl.c | 10 fs/btrfs/reada.c | 10 fs/btrfs/relocation.c | 1 fs/btrfs/scrub.c | 3 fs/btrfs/send.c | 6 fs/btrfs/tests/free-space-tree-tests.c | 4 fs/btrfs/tests/qgroup-tests.c | 4 fs/btrfs/tree-checker.c | 18 + fs/btrfs/tree-log.c | 52 +++ fs/btrfs/uuid-tree.c | 2 fs/ext4/dir.c | 5 fs/ext4/inode.c | 4 fs/ext4/namei.c | 32 +- fs/ext4/super.c | 143 ++++------ include/drm/drm_dp_mst_helper.h | 2 include/linux/cpufreq.h | 11 include/linux/ipmi_smi.h | 12 include/linux/mod_devicetable.h | 4 include/linux/nvme.h | 1 include/linux/nvmem-consumer.h | 2 include/linux/phy.h | 2 include/linux/sched/cpufreq.h | 3 include/net/arp.h | 4 include/net/dst.h | 2 include/net/ndisc.h | 8 include/net/neighbour.h | 1 include/net/sock.h | 12 include/trace/events/wbt.h | 12 include/uapi/linux/cec-funcs.h | 6 kernel/bpf/stackmap.c | 7 kernel/bpf/verifier.c | 19 + kernel/cgroup/freezer.c | 9 kernel/events/core.c | 6 kernel/sched/core.c | 6 kernel/sched/cpufreq.c | 18 + kernel/sched/cpufreq_schedutil.c | 8 kernel/sched/sched.h | 2 kernel/trace/trace.c | 2 kernel/trace/trace_kprobe.c | 27 + lib/ubsan.c | 5 mm/vmscan.c | 2 net/bluetooth/hci_conn.c | 8 net/bluetooth/hci_core.c | 13 net/bluetooth/hci_request.c | 9 net/can/j1939/socket.c | 10 net/core/neighbour.c | 3 net/core/net-sysfs.c | 7 net/mac80211/status.c | 3 net/nfc/nci/uart.c | 2 net/packet/af_packet.c | 3 net/sctp/protocol.c | 5 net/sctp/stream.c | 8 net/smc/smc_core.c | 9 samples/pktgen/functions.sh | 17 - sound/core/pcm_native.c | 7 sound/core/timer.c | 10 sound/firewire/bebob/bebob_stream.c | 11 sound/pci/hda/patch_ca0132.c | 23 + sound/soc/codecs/rt5677.c | 1 sound/soc/codecs/wm2200.c | 5 sound/soc/codecs/wm5100.c | 2 sound/soc/codecs/wm8904.c | 1 sound/soc/intel/boards/bytcr_rt5640.c | 10 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 3 sound/soc/soc-pcm.c | 14 sound/soc/sof/imx/Kconfig | 8 sound/soc/sof/intel/hda.c | 1 sound/soc/sof/topology.c | 4 tools/arch/x86/lib/x86-opcode-map.txt | 18 - tools/bpf/Makefile | 6 tools/lib/bpf/btf_dump.c | 8 tools/lib/bpf/libbpf.c | 14 tools/lib/bpf/xsk.c | 14 tools/lib/subcmd/Makefile | 4 tools/lib/traceevent/parse-filter.c | 9 tools/memory-model/linux-kernel.cat | 2 tools/objtool/check.c | 1 tools/perf/arch/arm64/util/sym-handling.c | 3 tools/perf/builtin-report.c | 7 tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json | 2 tools/perf/pmu-events/jevents.c | 13 tools/perf/tests/bp_signal.c | 15 - tools/perf/tests/task-exit.c | 9 tools/perf/util/cs-etm.c | 4 tools/perf/util/dwarf-aux.c | 80 ++++- tools/perf/util/dwarf-aux.h | 3 tools/perf/util/parse-events.c | 26 + tools/perf/util/probe-finder.c | 45 ++- tools/perf/util/session.c | 44 +-- tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c | 1 tools/testing/selftests/bpf/cgroup_helpers.c | 2 tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c | 5 tools/testing/selftests/bpf/progs/test_seg6_loop.c | 4 tools/testing/selftests/bpf/progs/test_sysctl_loop1.c | 5 tools/testing/selftests/bpf/test_progs.c | 17 - tools/testing/selftests/bpf/test_tc_tunnel.sh | 5 tools/testing/selftests/net/forwarding/router_bridge_vlan.sh | 2 tools/testing/selftests/net/so_txtime.c | 4 tools/testing/selftests/net/tls.c | 28 - tools/testing/selftests/net/udpgso.c | 3 tools/testing/selftests/net/udpgso_bench_tx.c | 3 tools/testing/selftests/proc/proc-self-map-files-002.c | 6 virt/kvm/arm/mmu.c | 21 + 423 files changed, 3084 insertions(+), 1505 deletions(-)
Adham Abozaeid (1):
staging: wilc1000: check if device is initialzied before changing vif
Adrian Hunter (3):
x86/insn: Add some Intel instructions to the opcode map
mmc: sdhci: Workaround broken command queuing on Intel GLK
mmc: sdhci: Add a quirk for broken command queuing
Akeem G Abodunrin (1):
ice: Only disable VF state when freeing each VF resources
Alan Stern (1):
tools/memory-model: Fix data race detection for unordered store and load
Alex Williamson (1):
iommu/vt-d: Set ISA bridge reserved region as relaxable
Alexander Lobakin (1):
net: wireless: intel: iwlwifi: fix GRO_NORMAL packet stalling
Alexander Shishkin (5):
perf/core: Fix the mlock accounting, again
intel_th: pci: Add Comet Lake PCH-V support
intel_th: pci: Add Elkhart Lake SOC support
intel_th: Fix freeing IRQs
intel_th: msu: Fix window switching without windows
Alexandru Ardelean (1):
iio: dln2-adc: fix iio_triggered_buffer_postenable() position
Alexey Budankov (1):
perf session: Fix decompression of PERF_RECORD_COMPRESSED records
Allen Pais (2):
libertas: fix a potential NULL pointer dereference drm/amdkfd: fix a potential NULL pointer dereference (v2)
Anand Jain (1):
btrfs: send: remove WARN_ON for readonly mount
Andrea Merello (1):
iio: max31856: add missing of_node and parent references to iio_dev
Andrea Righi (1):
bcache: fix deadlock in bcache_allocator
Andrew Jeffery (1):
fsi: core: Fix small accesses and unaligned offsets via sysfs
Andrey Grodzovsky (1):
drm/amdgpu: Avoid accidental thread reactivation.
Andrii Nakryiko (4):
selftests/bpf: Fix btf_dump padding test case
libbpf: Fix struct end padding in btf_dump selftests/bpf: Make a copy of subtest name
libbpf: Fix negative FD close() in xsk_setup_xdp_prog()
Andy Shevchenko (1):
fbtft: Make sure string is NULL terminated
Anilkumar Kolli (1):
ath10k: fix backtrace on coredump
Anthony Koo (2):
drm/amd/display: set minimum abm backlight level drm/amd/display: correctly populate dpp refclk in fpga
Ard Biesheuvel (4):
crypto: aegis128-neon - use Clang compatible cflags for ARM
crypto: aegis128/simd - build 32-bit ARM for v8 architecture explicitly
crypto: virtio - deal with unsupported input sizes efi/memreserve: Register reservations as 'reserved' in /proc/iomem
Aric Cyr (1):
drm/amd/display: Properly round nominal frequency for SPD
Arnd Bergmann (3):
x86/math-emu: Check __copy_from_user() result
crypto: inside-secure - Fix a maybe-uninitialized warning
Bluetooth: btusb: avoid unused function warning
Arthur Kiyanovski (2):
net: ena: fix default tx interrupt moderation interval
net: ena: fix issues in setting interrupt moderation params in ethtool
Bart Van Assche (2):
block: Fix writeback throttling W=1 compiler warnings RDMA/core: Set DMA parameters correctly
Ben Dooks (Codethink) (2):
Bluetooth: missed cpu_to_le16 conversion in hci_init4_req
pinctrl: amd: fix __iomem annotation in amd_gpio_irq_handler()
Ben Greear (1):
ath10k: fix offchannel tx failure when no ath10k_mac_tx_frm_has_freq
Ben Hutchings (1):
net: qlogic: Fix error paths in ql_alloc_large_buffers()
Ben Zhang (1):
ASoC: rt5677: Mark reg RT5677_PWR_ANLG2 as volatile
Benjamin Berg (1):
x86/mce: Lower throttling MCE messages' priority to warning
Benoit Parrot (11):
media: am437x-vpfe: Setting STD to current value is not an error
media: i2c: ov2659: fix s_stream return value
media: i2c: ov2659: Fix missing 720p register config
media: ti-vpe: vpe: Fix Motion Vector vpdma stride
media: ti-vpe: vpe: fix a v4l2-compliance warning about invalid pixel format
media: ti-vpe: vpe: fix a v4l2-compliance failure about frame sequence number
media: ti-vpe: vpe: Make sure YUYV is set as default format
media: ti-vpe: vpe: fix a v4l2-compliance failure causing a kernel panic
media: ti-vpe: vpe: ensure buffers are cleaned up properly in abort cases
media: ti-vpe: vpe: fix a v4l2-compliance failure about invalid sizeimage
media: ov5640: Make 2592x1944 mode only available at 15 fps
Bernard Metzler (2):
RDMA/siw: Fix SQ/RQ drain logic
RDMA/siw: Fix post_recv QP state locking
Biju Das (1):
phy: renesas: phy-rcar-gen2: Fix the array off by one warning
Bjorn Andersson (2):
ath10k: Correct error handling of dma_map_single()
ath10k: Revert "ath10k: add cleanup in ath10k_sta_state()"
Brett Creeley (1):
ice: Fix setting coalesce to handle DCB configuration
Brian Masney (1):
drm/bridge: analogix-anx78xx: silence -EPROBE_DEFER warnings
Chaotian Jing (1):
mmc: mediatek: fix CMD_TA to 2 for MT8173 HS200/HS400 mode
Charles Keepax (2):
spi: dw: Correct handling of native chipselect
spi: cadence: Correct handling of native chipselect
Chris Chiu (1):
rtl8xxxu: fix RTL8723BU connection failure issue after warm reboot
Christian König (2):
drm/amdgpu: grab the id mgr lock while accessing passid_mapping drm/ttm: return -EBUSY on pipelining with no_gpu_wait (v2)
Christophe JAILLET (2):
media: seco-cec: Add a missing 'release_region()' in an error handling path
media: cx88: Fix some error handling path in 'cx8800_initdev()'
Christophe Leroy (3):
spi: fsl: don't map irq during probe
spi: fsl: use platform_get_irq() instead of of_irq_to_resource() powerpc/irq: fix stack overflow verification
Chuhong Yuan (11):
fjes: fix missed check in fjes_acpi_add
staging: iio: ad9834: add a check for devm_clk_get
media: st-mipid02: add a check for devm_gpiod_get_optional
media: imx7-mipi-csis: Add a check for devm_regulator_get
spi: sifive: disable clk when probe fails and remove
media: si470x-i2c: add missed operations in remove
spi: pxa2xx: Add missed security checks
spi: tegra20-slink: add missed clk_unprepare
ASoC: wm2200: add missed operations in remove and probe failure
spi: st-ssc4: add missed pm_runtime_disable
ASoC: wm5100: add missed pm_runtime_disable
Colin Ian King (2):
RDMA/hns: Fix memory leak on 'context' on error return path drm/amdgpu: fix uninitialized variable pasid_mapping_needed
Coly Li (1):
bcache: fix static checker warning in bcache_device_free()
Connor Kuehl (1):
staging: rtl8188eu: fix possible null dereference
Corentin Labbe (1):
crypto: sun4i-ss - Fix 64-bit size_t warnings on sun4i-ss-hash.c
Corey Minyard (1):
ipmi: Don't allow device module unload when in use
Cristian Birsan (1):
net: usb: lan78xx: Fix suspend/resume PHY register access error
Dan Carpenter (4):
btrfs: return error pointer from alloc_test_extent_buffer drm/mipi-dbi: fix a loop in debugfs code
staging: wilc1000: potential corruption in wilc_parse_join_bss_param()
ext4: unlock on error in ext4_expand_extra_isize()
Daniel Kurtz (1):
drm/bridge: dw-hdmi: Restore audio when setting a mode
Daniel T. Lee (1):
samples: pktgen: fix proc_cmd command result check logic
Daniel Vetter (1):
drm: Use EOPNOTSUPP, not ENOTSUPP
Dariusz Marcinkiewicz (2):
drm/vc4/vc4_hdmi: fill in connector info
drm: exynos: exynos_hdmi: use cec_notifier_conn_(un)register
Darrick J. Wong (1):
loop: fix no-unmap write-zeroes request behavior
David Engraf (1):
tty/serial: atmel: fix out of range clock divider handling
David Galiffi (1):
drm/amd/display: Fix dongle_caps containing stale information.
Devesh Sharma (2):
RDMA/bnxt_re: Fix missing le16_to_cpu RDMA/bnxt_re: Fix stat push into dma buffer on gen p5 devices
Dmitry Osipenko (1):
regulator: core: Release coupled_rdevs on regulator_init_coupling() error
Dmytro Laktyushkin (1):
drm/amd/display: enable hostvm based on roimmu active for dcn2.1
Eduard Hasenleithner (1):
nvme: Discard workaround for non-conformant devices
Eric Auger (1):
iommu: fix KASAN use-after-free in iommu_insert_resv_region
Eric Biggers (1):
KEYS: asymmetric: return ENOMEM if akcipher_request_alloc() fails
Eric Dumazet (3):
neighbour: remove neigh_cleanup() method
bonding: fix bond_neigh_init()
net: avoid potential false sharing in neighbor related code
Erkka Talvitie (1):
USB: EHCI: Do not return -EPIPE when hub is disconnected
Eugeniu Rosca (1):
mmc: tmio: Add MMC_CAP_ERASE to allow erase/discard/trim requests
Fabio Estevam (1):
media: staging/imx: Use a shorter name for driver
Faiz Abbas (2):
Revert "mmc: sdhci: Fix incorrect switch to HS mode"
mmc: sdhci: Update the tuning failed messages to pr_debug level
Filipe Manana (3):
Btrfs: make tree checker detect checksum items with overlapping ranges
Btrfs: fix missing data checksums after replaying a log tree
Btrfs: fix removal logic of the tree mod log that leads to use-after-free issues
Florian Fainelli (1):
net: dsa: b53: Fix egress flooding settings
Frederic Barrat (1):
ocxl: Fix concurrent AFU open and device removal
Gal Pressman (1):
RDMA/efa: Clear the admin command buffer prior to its submission
Geert Uytterhoeven (4):
net: dst: Force 4-byte alignment of dst_metrics
Revert "pinctrl: sh-pfc: r8a77990: Fix MOD_SEL1 bit30 when using SSI_SCK2 and SSI_WS2" Revert "pinctrl: sh-pfc: r8a77990: Fix MOD_SEL1 bit31 when using SIM0_D"
pinctrl: sh-pfc: sh7734: Fix duplicate TCLK1_B
Gerald Schaefer (1):
s390/mm: add mm_pxd_folded() checks to pxd_free()
Gerd Hoffmann (1):
drm/virtio: switch virtio_gpu_wait_ioctl() to gem helper.
Greg Kroah-Hartman (1):
Linux 5.4.7
Grygorii Strashko (3):
net: ethernet: ti: davinci_cpdma: fix warning "device driver frees DMA memory with different size"
net: phy: dp83867: enable robust auto-mdix
net: ethernet: ti: ale: clean ale tbl on init and intf restart
Guenter Roeck (1):
usb: xhci: Fix build warning seen with CONFIG_PM=n
Guoqing Jiang (1):
md/bitmap: avoid race window between md_bitmap_resize and bitmap_file_clear_bit
Gwendal Grignou (1):
iio: cros_ec_baro: set info_mask_shared_by_all_available field
Hangbin Liu (1):
team: call RCU read lock when walking the port_list
Hans Verkuil (5):
media: cedrus: fill in bus_info for media device
media: cec-funcs.h: add status_req checks
media: vivid: media_device_cleanup was called too early
media: vicodec: media_device_cleanup was called too early
media: vim2m: media_device_cleanup was called too early
Hans de Goede (4):
ACPI: button: Add DMI quirk for Medion Akoya E2215T
ASoC: Intel: bytcr_rt5640: Update quirk for Acer Switch 10 SW5-012 2-in-1 platform/x86: hp-wmi: Make buffer for HPWMI_FEATURE2_QUERY 128 bytes
pinctrl: baytrail: Really serialize all register accesses
Hauke Mehrtens (1):
ath10k: Check if station exists before forwarding tx airtime report
Hawking Zhang (1):
drm/amdgpu: disallow direct upload save restore list from gfx driver
Heiko Carstens (1):
s390/time: ensure get_clock_monotonic() returns monotonic values
Heiner Kallweit (1):
r8169: respect EEE user setting when restarting network
Herbert Xu (2):
crypto: atmel - Fix authenc support when it is set to m
crypto: sun4i-ss - Fix 64-bit size_t warnings
Hewenliang (1):
libtraceevent: Fix memory leakage in copy_filter_type
Honglei Wang (1):
cgroup: freezer: don't change task and cgroups status unnecessarily
Ian Abbott (1):
staging: comedi: gsc_hpdi: check dma_alloc_coherent() return value
Ian Rogers (2):
perf tools: Splice events onto evlist even on error perf parse: If pmu configuration fails free terms
Ido Schimmel (2):
selftests: forwarding: Delete IPv6 address at the end
mlxsw: spectrum_router: Remove unlikely user-triggerable warning
Ilya Leoshkevich (3):
s390: add error handling to perf_callchain_kernel s390/bpf: Use kvcalloc for addrs array s390/disassembler: don't hide instruction addresses
Ilya Maximets (1):
libbpf: Fix passing uninitialized bytes to setsockopt
Ingo Rohloff (1):
usb: usbfs: Suppress problematic bind and unbind uevents.
Ioana Ciornei (1):
dpaa2-ptp: fix double free of the ptp_qoriq IRQ
Ivan Khoronzhuk (1):
selftests/bpf: Correct path to include msg + path
Jack Zhang (1):
drm/amdgpu/sriov: add ring_stop before ring_create in psp v11 code
Jae Hyun Yoo (2):
media: aspeed: set hsync and vsync polarities to normal before starting mode detection
media: aspeed: clear garbage interrupts
Jaehyun Chung (1):
drm/amd/display: OTC underflow fix
Jagan Teki (1):
drm/sun4i: dsi: Fix TCON DRQ set bits
James Clark (1):
libsubcmd: Use -O0 with DEBUG=1
Jan H. Schönherr (1):
x86/mce: Fix possibly incorrect severity calculation on AMD
Jan Kara (2):
ext4: fix ext4_empty_dir() for directories with holes
ext4: check for directory entries too close to block end
Janusz Krzysztofik (5):
media: ov6650: Fix control handler not freed on init error
media: ov6650: Fix crop rectangle alignment not passed back
media: ov6650: Fix stored frame format not in sync with hardware
media: ov6650: Fix stored crop rectangle not in sync with hardware
media: ov6650: Fix stored frame interval not in sync with hardware
Jaroslaw Gawin (1):
i40e: Wrong 'Advertised FEC modes' after set FEC to AUTO
Jason Gunthorpe (1):
xen/gntdev: Use select for DMA_SHARED_BUFFER
Jernej Skrabec (2):
media: vim2m: Fix abort issue
media: cedrus: Use helpers to access capture queue
Jerry Snitselaar (3):
tpm_tis: reserve chip for duration of tpm_tis_core_init
iommu: set group default domain before creating direct mappings iommu/vt-d: Allocate reserved region for ISA with correct permission
Jia-Ju Bai (1):
net: nfc: nci: fix a possible sleep-in-atomic-context bug in nci_uart_tty_receive()
Jian Shen (1):
net: hns3: log and clear hardware error after reset complete
Jiangfeng Xiao (1):
net: hisilicon: Fix a BUG trigered by wrong bytes_compl
Jim Mattson (2):
kvm: x86: Host feature SSBD doesn't imply guest feature SPEC_CTRL_SSBD
kvm: x86: Host feature SSBD doesn't imply guest feature AMD_SSBD
Jin Yao (1):
perf report: Add warning when libunwind not compiled in
Jing Zhou (1):
drm/amd/display: verify stream link before link test
Jiri Benc (1):
selftests, bpf: Fix test_tc_tunnel hanging
Joakim Zhang (2):
can: flexcan: poll MCR_LPM_ACK instead of GPR ACK for stop mode acknowledgment
can: flexcan: add low power enter/exit acknowledgment helper
Johannes Berg (1):
iwlwifi: check kasprintf() return value
John Garry (3):
perf vendor events arm64: Fix Hisi hip08 DDRC PMU eventname
libata: Ensure ata_port probe has completed before detach perf tools: Fix cross compile for ARM64
John Hurley (1):
nfp: flower: fix stats id allocation
Josef Bacik (6):
btrfs: don't double lock the subvol_sem for rename exchange
btrfs: do not call synchronize_srcu() in inode_tree_del
btrfs: abort transaction after failed inode updates in create_subvol
btrfs: skip log replay on orphaned roots
btrfs: do not leak reloc root if we fail to read the fs root
btrfs: handle ENOENT in btrfs_uuid_tree_iterate
Josip Pavic (1):
drm/amd/display: wait for set pipe mcp command completion
Jouni Hogander (1):
net-sysfs: Call dev_hold always in rx_queue_add_kobject
Julian Parkin (1):
drm/amd/display: Program DWB watermarks from correct state
Kai Vehmanen (1):
ASoC: SOF: enable sync_write in hdac_bus
Kai-Heng Feng (1):
x86/intel: Disable HPET on Intel Coffee Lake H platforms
Kamal Heib (1):
RDMA/core: Fix return code when modify_port isn't supported
Kangjie Lu (2):
drm/gma500: fix memory disclosures due to uninitialized bytes
media: rcar_drif: fix a memory disclosure
Kefeng Wang (1):
media: vim2m: Fix BUG_ON in vim2m_device_release()
Kevin Wang (1):
drm/amdgpu: fix amdgpu trace event print string format error
Konstantin Khlebnikov (1):
x86/MCE/AMD: Do not use rdmsr_safe_on_cpu() in smca_configure()
Krzysztof Wilczynski (1):
iio: light: bh1750: Resolve compiler warning and make code more readable
Kuninori Morimoto (1):
ASoC: soc-pcm: fixup dpcm_prune_paths() loop continue
Laurent Pinchart (1):
drm/panel: Add missing drm_panel_init() in panel drivers
Le Ma (1):
drm/amd/powerplay: avoid disabling ECC if RAS is enabled for VEGA20
Leo Yan (4):
perf test: Report failure for mmap events perf test: Avoid infinite loop for task exit case perf tests: Disable bp_signal testing for arm64 perf cs-etm: Fix definition of macro TO_CS_QUEUE_NR
Lianbo Jiang (1):
x86/crash: Add a forward declaration of struct kimage
Lingling Xu (1):
spi: sprd: adi: Add missing lock protection when rebooting
Linus Walleij (1):
firmware_loader: Fix labels with comma for builtin firmware
Loic Poulain (1):
media: venus: core: Fix msm8996 frequency table
Lorenzo Bianconi (1):
mt76: fix possible out-of-bound access in mt7615_fill_txs/mt7603_fill_txs
Lu Baolu (1):
iommu/vt-d: Fix dmar pte read access not set error
Luca Coelho (1):
iwlwifi: pcie: move power gating workaround earlier in the flow
Lucas Stach (1):
nvmem: imx-ocotp: reset error status on probe
Luigi Rizzo (1):
net-af_xdp: Use correct number of channels from ethtool
Luiz Augusto von Dentz (1):
Bluetooth: Fix advertising duplicated flags
Lukasz Majewski (1):
spi: Add call to spi_slave_abort() function when spidev driver is released
Luke Starrett (1):
RDMA/bnxt_re: Fix chip number validation Broadcom's Gen P5 series
Lyude Paul (1):
drm/nouveau: Don't grab runtime PM refs for HPD IRQs
Manish Chopra (3):
qede: Disable hardware gro when xdp prog is installed
qede: Fix multicast mac configuration
bnx2x: Fix PF-VF communication over multi-cos queues.
Manjunath Patil (1):
ixgbe: protect TX timestamping from API misuse
Mao Wenan (3):
af_packet: set defaule value for tmo
net: dsa: LAN9303: select REGMAP when LAN9303 enable
net: ethernet: ti: Add dependency for TI_DAVINCI_EMAC
Marc Zyngier (1):
KVM: arm/arm64: Properly handle faulting of device mappings
Marcelo Ricardo Leitner (1):
sctp: fix memleak on err handling of stream initialization
Marcus Comstedt (1):
KVM: PPC: Book3S HV: Fix regression on big endian hosts
Martin Tsai (1):
drm/amd/display: Handle virtual signal type in disable_link()
Masami Hiramatsu (16):
perf probe: Fix to find range-only function instance
perf probe: Fix to list probe event with correct line number perf probe: Walk function lines in lexical blocks
perf probe: Fix to probe an inline function which has no entry pc perf probe: Fix to show ranges of variables in functions without entry_pc perf probe: Fix to show inlined function callsite without entry_pc perf probe: Fix to probe a function which has no entry pc
perf probe: Skip overlapped location on searching variables
perf probe: Return a better scope DIE if there is no best scope perf probe: Fix to show calling lines of inlined functions
perf probe: Skip end-of-sequence and non statement lines
perf probe: Filter out instances except for inlined subroutine and subprogram
selftests: proc: Make va_max 1MB
selftests: net: Fix printf format warnings on arm tracing/kprobe: Check whether the non-suffixed symbol is notrace perf probe: Fix to show function entry line as probe-able
Matthias Kaehlcke (1):
drm/bridge: dw-hdmi: Refuse DDC/CI transfers on the internal I2C controller
Mattijs Korpershoek (1):
Bluetooth: hci_core: fix init for HCI_USER_CHANNEL
Max Gurtovoy (2):
IB/iser: bound protection_sg size by data_sg size
nvme: introduce "Command Aborted By host" status code
Miaoqing Pan (1):
ath10k: fix get invalid tx rate for Mesh metric
Michael Chan (1):
bnxt_en: Improve RX buffer error handling.
Michael Ellerman (1):
crypto: vmx - Avoid weird build failures
Michael Walle (1):
ASoC: wm8904: fix regcache handling
Michal Kalderon (2):
RDMA/qedr: Fix memory leak in user qp and mr RDMA/qedr: Fix srqs xarray initialization
Michal Swiatkowski (1):
ice: Check for null pointer dereference when setting rings
Mihail Atanassov (1):
drm/komeda: Workaround for broken FLIP_COMPLETE timestamps
Mika Westerberg (1):
xhci-pci: Allow host runtime PM as default also for Intel Ice Lake xHCI
Mike Christie (1):
nbd: fix shutdown and recv work deadlock v2
Mike Isely (1):
media: pvrusb2: Fix oops on tear-down when radio support is not present
Mike Rapoport (1):
mips: fix build when "48 bits virtual memory" is enabled
Mikita Lipski (1):
drm/amd/display: Rebuild mapped resources after pipe split
Miquel Raynal (1):
iio: adc: max1027: Reset the device at probe time
Mitch Williams (1):
ice: delay less
Nathan Chancellor (1):
tools/power/cpupower: Fix initializer override in hsw_ext_cstates
Navid Emamdoost (5):
net: gemini: Fix memory leak in gmac_setup_txqs
staging: rtl8192u: fix multiple memory leaks on error path
rtlwifi: prevent memory leak in rtl_usb_probe
spi: gpio: prevent memory leak in spi_gpio_probe
mwifiex: pcie: Fix memory leak in mwifiex_pcie_init_evt_ring
Neil Armstrong (2):
drm/meson: vclk: use the correct G12A frac max value
media: meson/ao-cec: move cec_notifier_cec_adap_register after hw setup
Nicholas Nunley (1):
i40e: initialize ITRN registers with correct values
Nikola Cornij (1):
drm/amd/display: Set number of pipes to 1 if the second pipe was disabled
Oak Zeng (1):
drm/amdkfd: Fix MQD size calculation
Oleksij Rempel (1):
can: j1939: j1939_sk_bind(): take priv after lock is held
Omar Sandoval (4):
btrfs: don't prematurely free work in end_workqueue_fn()
btrfs: don't prematurely free work in run_ordered_work()
btrfs: don't prematurely free work in reada_start_machine_worker()
btrfs: don't prematurely free work in scrub_missing_raid56_worker()
Ondrej Jirman (1):
cpufreq: sun50i: Fix CPU speed bin detection
Padmanabhan Rajanbabu (1):
net: stmmac: platform: Fix MDIO init for platforms without PHY
Pan Bian (2):
spi: img-spfi: fix potential double release drm/amdgpu: fix potential double drop fence reference
Pascal Paillet (1):
regulator: core: Let boot-on regulators be powered off
Paul Burton (2):
MIPS: futex: Emit Loongson3 sync workarounds within asm
MIPS: futex: Restore \n after sync instructions
Paul Kocialkowski (1):
media: cedrus: Fix undefined shift with a SHIFT_AND_MASK_BITS macro
Peng Fan (3):
clk: imx: clk-imx7ulp: Add missing sentinel of ulp_div_table
clk: imx: clk-composite-8m: add lock to gate/mux
clk: imx: pll14xx: fix clk_pll14xx_wait_lock
Petar Penkov (1):
tun: fix data-race in gro_normal_list()
Peter Zijlstra (1):
ubsan, x86: Annotate and allow __ubsan_handle_shift_out_of_bounds() in uaccess regions
Pi-Hsun Shih (1):
media: v4l2-ctrl: Lock main_hdl on operations of requests_queued.
Pierre-Louis Bossart (2):
ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency
soundwire: intel: fix PDI/stream mapping for Bulk
Ping-Ke Shih (3):
rtw88: fix NSS of hw_cap
rtw88: coex: Set 4 slot mode for A2DP
rtlwifi: fix memory leak in rtl92c_set_fw_rsvdpagepkt()
Quentin Monnet (1):
tools, bpf: Fix build for 'make -s tools/bpf O=<dir>'
Rafael J. Wysocki (1):
cpufreq: Avoid leaving stale IRQ work items during CPU offline
Rafał Miłecki (1):
brcmfmac: remove monitor interface when detaching
Rajendra Nayak (1):
pinctrl: qcom: sc7180: Add missing tile info in SDC_QDSD_PINGROUP/UFS_RESET
Ranjani Sridharan (1):
ASoC: SOF: topology: set trigger order for FE DAI link
Rasmus Villemoes (1):
mmc: sdhci-of-esdhc: Revert "mmc: sdhci-of-esdhc: add erratum A-009204 support"
Raul E Rangel (2):
drm/amd/display: fix struct init in update_bounding_box drm/amd/powerplay: fix struct init in renoir_print_clk_levels
Ricardo Ribalda Delgado (1):
media: ad5820: Define entity function
Robert Richter (1):
EDAC/ghes: Fix grain calculation
Rodrigo Siqueira (1):
drm/drm_vblank: Change EINVAL by the correct errno
Russell King (4):
mod_devicetable: fix PHY module format
net: phy: ensure that phy IDs are correctly typed
net: phy: avoid matching all-ones clause 45 PHY IDs
net: phy: initialise phydev speed and duplex sanely
Sakari Ailus (1):
media: smiapp: Register sensor after enabling runtime PM on the device
Sam Bobroff (1):
drm/amdgpu: fix bad DMA from INTERRUPT_CNTL2
Sami Tolvanen (2):
syscalls/x86: Use the correct function type in SYSCALL_DEFINE0 x86/mm: Use the correct function type for native_set_fixmap()
Sean Nyekjaer (2):
can: m_can: tcan4x5x: add required delay after reset
can: flexcan: fix possible deadlock and out-of-order reception after wakeup
Sean Paul (1):
drm: mst: Fix query_payload ack reply struct
Sebastian Reichel (1):
nvmem: core: fix nvmem_cell_write inline function
Sergey Matyukevich (3):
qtnfmac: fix debugfs support for multiple cards
qtnfmac: fix invalid channel information output
qtnfmac: fix using skb after free
Sergio Paracuellos (1):
MIPS: ralink: enable PCI support only if driver for mt7621 SoC is selected
Seung-Woo Kim (1):
media: exynos4-is: fix wrong mdev and v4l2 dev order in error path
Sharat Masetty (1):
drm: msm: a6xx: fix debug bus register configuration
Shengjiu Wang (1):
ASoC: soc-pcm: check symmetry before hw_params
Shuah Khan (1):
media: vimc: Fix gpf in rmmod path when stream is active
Song Liu (1):
bpf/stackmap: Fix deadlock with rq_lock in bpf_get_stack()
Srikar Dronamraju (1):
powerpc/vcpu: Assume dedicated processors as non-preempt
Srinivas Kandagatla (1):
misc: fastrpc: fix memory leak from miscdev->name
Srinivas Neeli (1):
can: xilinx_can: Fix missing Rx can packets on CANFD2.0
Stanimir Varbanov (1):
media: venus: Fix occasionally failures to suspend
Stefan Popa (1):
iio: dac: ad5446: Add support for new AD5600 DAC
Stephan Gerhold (3):
NFC: nxp-nci: Fix probing without ACPI
extcon: sm5502: Reset registers during initialization
phy: qcom-usb-hs: Fix extcon double register after power cycle
Steven Price (1):
drm: Don't free jobs in wait_event_interruptible()
Sudip Mukherjee (1):
parport: load lowlevel driver if ports not found
Suwan Kim (2):
usbip: Fix receive error in vhci-hcd when using scatter-gather
usbip: Fix error path of vhci_recv_ret_submit()
Sven Schnelle (1):
s390/ftrace: fix endless recursion in function_graph tracer
Szymon Janc (1):
Bluetooth: Workaround directed advertising bug in Broadcom controllers
Tadeusz Struk (1):
tpm: fix invalid locking in NONBLOCKING mode
Takashi Iwai (6):
ALSA: pcm: Avoid possible info leaks from PCM stream buffers
ALSA: hda/ca0132 - Keep power on during processing DSP response
ALSA: hda/ca0132 - Avoid endless loop
ALSA: hda/ca0132 - Fix work handling in delayed HP detection
ALSA: pcm: Fix missing check of the new non-cached buffer type
ALSA: timer: Limit max amount of slave instances
Takashi Sakamoto (1):
ALSA: bebob: expand sleep just after breaking connections for protocol version 1
Tejun Heo (1):
iocost: over-budget forced IOs should schedule async delay
Thadeu Lima de Souza Cascardo (1):
selftests: net: tls: remove recv_rcvbuf test
Theodore Ts'o (1):
ext4: validate the debug_want_extra_isize mount option at parse time
Thierry Reding (2):
drm/tegra: sor: Use correct SOR index on Tegra210
gpu: host1x: Allocate gather copy for host1x
Thomas Falcon (1):
ibmvnic: Fix completion structure initialization
Thomas Gleixner (1):
x86/ioapic: Prevent inconsistent state when moving an interrupt
Thomas Pedersen (1):
mac80211: consider QoS Null frames for STA_NULLFUNC_ACKED
Thomas Richter (1):
s390/cpumf: Adjust registration of s390 PMU device drivers
Thor Thayer (1):
spi: dw: Fix Designware SPI loopback
Toke Høiland-Jørgensen (1):
libbpf: Fix error handling in bpf_map__reuse_fd()
Tony Lindgren (3):
hwrng: omap3-rom - Call clk_disable_unprepare() on exit only if not idled
power: supply: cpcap-battery: Check voltage before orderly_poweroff
ARM: dts: Fix vcsi regulator to be always-on for droid4 to prevent hangs
Ursula Braun (1):
net/smc: increase device refcount for added link group
Valentin Schneider (1):
sched/uclamp: Fix overzealous type replacement
Vandana BN (1):
media: v4l2-core: fix touch support in v4l_g_fmt
Vasily Gorbik (1):
s390/kasan: support memcpy_real with TRACE_IRQFLAGS
Vasundhara Volam (1):
bnxt_en: Return proper error code for non-existent NVM variable
Veerabhadrarao Badiganti (1):
mmc: sdhci-msm: Correct the offset and value for DDR_CONFIG register
Veeraiyan Chidambaram (1):
usb: renesas_usbhs: add suspend event support in gadget mode
Viresh Kumar (1):
cpufreq: Register drivers only after CPU devices have been registered
Vitaly Prosyak (1):
drm/amd/display: add new active dongle to existent w/a
Vlad Buslov (1):
net/mlx5e: Verify that rule has at least one fwd/drop action
Vladimir Oltean (1):
net: dsa: sja1105: Disallow management xmit during switch reset
Wang Xuerui (1):
iwlwifi: mvm: fix unaligned read of rx_pkt_status
Weihang Li (1):
RDMA/hns: Fix wrong parameters when initial mtt of srq->idx_que
Wenwen Wang (1):
ath10k: add cleanup in ath10k_sta_state()
Will Deacon (2):
pinctrl: devicetree: Avoid taking direct reference to device name string
KVM: arm64: Ensure 'params' is initialised when looking up sys register
Xiaolong Huang (1):
can: kvaser_usb: kvaser_usb_leaf: Fix some info-leaks to USB devices
Xin Long (1):
sctp: fully initialize v4 addr in some functions
Yang Shi (1):
mm: vmscan: protect shrinker idr replace with CONFIG_MEMCG
Yang Yingliang (1):
media: flexcop-usb: fix NULL-ptr deref in flexcop_usb_transfer_init()
Yangbo Lu (1):
mmc: sdhci-of-esdhc: fix P2020 errata handling
Yazen Ghannam (2):
EDAC/amd64: Set grain per DIMM
x86/MCE/AMD: Allow Reserved types to be overwritten in smca_banks[]
Yizhuo (1):
regulator: max8907: Fix the usage of uninitialized variable in max8907_regulator_probe()
Yonghan Ye (1):
serial: sprd: Add clearing break interrupt operation
Yonghong Song (3):
bpf, testing: Workaround a verifier failure for test_progs selftests, bpf: Workaround an alu32 sub-register spilling issue
bpf: Provide better register bounds after jmp32 instructions
Yu-Hsuan Hsu (1):
ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint
YueHaibing (2):
media: max2175: Fix build error without CONFIG_REGMAP_I2C s390/crypto: Fix unsigned variable compared with zero
Yufen Yu (2):
md: no longer compare spare disk superblock events in super_load
md: avoid invalid memory access for array sb->dev_roles
Yuming Han (1):
tracing: use kvcalloc for tgid_map array allocation
Yunfeng Ye (2):
arm64: psci: Reduce the waiting time for cpu_psci_cpu_kill() perf jevents: Fix resource leak in process_mapfile() and main()
Yunsheng Lin (1):
net: hns3: add struct netdev_queue debug info for TX timeout
Zhan liu (1):
drm/amd/display: setting the DIG_MODE to the correct value.
chen gong (1):
drm/amd/powerplay: A workaround to GPU RESET on APU
joseph gravenor (1):
drm/amd/display: fix header for RN clk mgr
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 6 +SUBLEVEL = 7 EXTRAVERSION = NAME = Kleptomaniac Octopus
arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi +2 -2
@@ -160,12 +160,12 @@ regulator-enable-ramp-delay = <1000>; }; - /* Used by DSS */ + /* Used by DSS and is the "zerov_regulator" trigger for SoC off mode */ vcsi: VCSI { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-enable-ramp-delay = <1000>; - regulator-boot-on; + regulator-always-on; }; vdac: VDAC {
arch/arm64/kernel/psci.c +9 -6
@@ -81,7 +81,8 @@ static void cpu_psci_cpu_die(unsigned int cpu)static int cpu_psci_cpu_kill (unsigned int cpu) { -int err, i; +int err; +unsigned long start, end;if (!psci_ops.affinity_info)return 0 ;
@@ -91,16 +92,18 @@ static int cpu_psci_cpu_kill(unsigned int cpu)* while it is dying. So, try again a few times. */ -for (i =0 ; i <10 ; i++) { + start = jiffies; + end = start +msecs_to_jiffies (100 ); +do { err = psci_ops.affinity_info (cpu_logical_map (cpu),0 );if (err ==PSCI_0_2_AFFINITY_LEVEL_OFF ) { -pr_info ("CPU%d killed.\n" , cpu); +pr_info ("CPU%d killed (polled %d ms)\n" , cpu, +jiffies_to_msecs (jiffies - start));return 0 ; } -msleep (10 ); -pr_info ("Retrying again to check for CPU kill\n" ); - } +usleep_range (100 ,1000 ); + }while (time_before (jiffies, end));pr_warn ("CPU%d may not have shut down cleanly (AFFINITY_INFO reports %d)\n" , cpu, err);
arch/arm64/kvm/sys_regs.c +4 -1
@@ -2360,8 +2360,11 @@ static const struct sys_reg_desc *index_to_sys_reg_desc(struct kvm_vcpu *vcpu,if ((id &KVM_REG_ARM_COPROC_MASK ) !=KVM_REG_ARM64_SYSREG )return NULL ; +if (!index_to_params (id, ¶ms)) +return NULL ; + table =get_target_table (vcpu->arch.target, true, &num); - r =find_reg_by_id (id, ¶ms, table, num); + r =find_reg (¶ms, table, num);if (!r) r =find_reg (¶ms, sys_reg_descs,ARRAY_SIZE (sys_reg_descs));
arch/mips/include/asm/barrier.h +7 -6
@@ -218,13 +218,14 @@* ordering will be done by smp_llsc_mb() and friends. */ #if defined(CONFIG_WEAK_REORDERING_BEYOND_LLSC ) && defined(CONFIG_SMP ) -#define __WEAK_LLSC_MB " sync \n" -#define smp_llsc_mb () __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory") -#define __LLSC_CLOBBER +# define __WEAK_LLSC_MB sync +# define smp_llsc_mb () \ + __asm__ __volatile__(__stringify(__WEAK_LLSC_MB) : : :"memory") +# define __LLSC_CLOBBER#else -#define __WEAK_LLSC_MB " \n" -#define smp_llsc_mb () do { } while (0) -#define __LLSC_CLOBBER "memory" +# define __WEAK_LLSC_MB +# define smp_llsc_mb () do { } while (0) +# define __LLSC_CLOBBER "memory"#endif #ifdef CONFIG_CPU_CAVIUM_OCTEON
arch/mips/include/asm/futex.h +7 -8
@@ -16,6 +16,7 @@#include <asm/barrier.h> #include <asm/compiler.h> #include <asm/errno.h> +#include <asm/sync.h> #include <asm/war.h> #define __futex_atomic_op (insn, ret, oldval, uaddr, oparg) \
@@ -32,7 +33,7 @@" .set arch=r4000 \n" \"2: sc $1, %2 \n" \" beqzl $1, 1b \n" \ - __WEAK_LLSC_MB \ + __stringify(__WEAK_LLSC_MB) " \n" \"3: \n" \" .insn \n" \" .set pop \n" \
@@ -50,19 +51,19 @@ "i" (-EFAULT) \ : "memory"); \ } else if (cpu_has_llsc) { \ - loongson_llsc_mb(); \ __asm__ __volatile__( \ " .set push \n" \ " .set noat \n" \ " .set push \n" \ " .set "MIPS_ISA_ARCH_LEVEL" \n" \ + " " __SYNC(full, loongson3_war) " \n" \ "1: "user_ll("%1", "%4")" # __futex_atomic_op\n" \ " .set pop \n" \ " " insn " \n" \ " .set "MIPS_ISA_ARCH_LEVEL" \n" \ "2: "user_sc("$1", "%2")" \n" \ " beqz $1, 1b \n" \ - __WEAK_LLSC_MB \ + __stringify(__WEAK_LLSC_MB) " \n" \"3: \n" \" .insn \n" \" .set pop \n" \
@@ -147,7 +148,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr," .set arch=r4000 \n" "2: sc $1, %2 \n" " beqzl $1, 1b \n" - __WEAK_LLSC_MB + __stringify(__WEAK_LLSC_MB) " \n""3: \n" " .insn \n" " .set pop \n"
@@ -164,13 +165,13 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, "i" (-EFAULT) : "memory"); }else if (cpu_has_llsc) { -loongson_llsc_mb (); __asm__ __volatile__("# futex_atomic_cmpxchg_inatomic \n" " .set push \n" " .set noat \n" " .set push \n" " .set " MIPS_ISA_ARCH_LEVEL " \n" + " " __SYNC(full, loongson3_war) " \n" "1: "user_ll("%1", "%3")" \n"" bne %1, %z4, 3f \n" " .set pop \n"
@@ -178,8 +179,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr," .set " MIPS_ISA_ARCH_LEVEL " \n" "2: "user_sc("$1", "%2")" \n"" beqz $1, 1b \n" - __WEAK_LLSC_MB -"3: \n" + "3: " __SYNC_ELSE(full, loongson3_war, __WEAK_LLSC_MB) "\n"" .insn \n" " .set pop \n" " .section .fixup,\"ax\" \n"
@@ -194,7 +194,6 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, : GCC_OFF_SMALL_ASM() (*uaddr), "Jr" (oldval), "Jr" (newval), "i" (-EFAULT) : "memory"); -loongson_llsc_mb (); }else return -ENOSYS ;
arch/mips/include/asm/pgtable-64.h +7 -2
@@ -18,10 +18,12 @@#include <asm/fixmap.h> #define __ARCH_USE_5LEVEL_HACK -#if defined(CONFIG_PAGE_SIZE_64KB ) && !defined(CONFIG_MIPS_VA_BITS_48 ) +#if CONFIG_PGTABLE_LEVELS ==2 #include <asm-generic/pgtable-nopmd.h> -#elif !(defined(CONFIG_PAGE_SIZE_4KB ) && defined(CONFIG_MIPS_VA_BITS_48 )) +#elif CONFIG_PGTABLE_LEVELS ==3 #include <asm-generic/pgtable-nopud.h> +#else +#include <asm-generic/5level-fixup.h> #endif /*
@@ -216,6 +218,9 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd)return pgd_val (pgd); } +#define pgd_phys (pgd) virt_to_phys((void *)pgd_val(pgd)) +#define pgd_page (pgd) (pfn_to_page(pgd_phys(pgd) >> PAGE_SHIFT)) +static inline pud_t *pud_offset (pgd_t *pgd,unsigned long address) {return (pud_t *)pgd_page_vaddr (*pgd) +pud_index (address);
arch/mips/ralink/Kconfig +1 -0
@@ -51,6 +51,7 @@ choice select MIPS_GIC select COMMON_CLK select CLKSRC_MIPS_GIC + select HAVE_PCI if PCI_MT7621 endchoice choice
arch/powerpc/include/asm/spinlock.h +3 -1
@@ -36,10 +36,12 @@#endif #ifdef CONFIG_PPC_PSERIES +DECLARE_STATIC_KEY_FALSE (shared_processor); +#define vcpu_is_preempted vcpu_is_preemptedstatic inline bool vcpu_is_preempted (int cpu) { -if (!firmware_has_feature (FW_FEATURE_SPLPAR )) +if (!static_branch_unlikely (&shared_processor))return false;return !!(be32_to_cpu (lppaca_of (cpu).yield_count) &1 ); }
arch/powerpc/kernel/irq.c +2 -2
@@ -619,8 +619,6 @@ void __do_irq(struct pt_regs *regs)trace_irq_entry (regs); -check_stack_overflow (); -/* * Query the platform PIC for the interrupt & ack it. *
@@ -652,6 +650,8 @@ void do_IRQ(struct pt_regs *regs) irqsp = hardirq_ctx[raw_smp_processor_id ()]; sirqsp = softirq_ctx[raw_smp_processor_id ()]; +check_stack_overflow (); +/* Already there ? */ if (unlikely (cursp == irqsp || cursp == sirqsp)) {__do_irq (regs);
arch/powerpc/kvm/book3s_hv_rmhandlers.S +2 -2
@@ -1117,7 +1117,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300) ld r7, VCPU_GPR(R7)(r4) bne ret_to_ultra - lwz r0, VCPU_CR(r4) + ld r0, VCPU_CR(r4) mtcr r0 ld r0, VCPU_GPR(R0)(r4)
@@ -1137,7 +1137,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300) * R3 = UV_RETURN */ ret_to_ultra: - lwz r0, VCPU_CR(r4) + ld r0, VCPU_CR(r4) mtcr r0 ld r0, VCPU_GPR(R3)(r4)
arch/powerpc/platforms/pseries/setup.c +7 -0
@@ -74,6 +74,9 @@#include "pseries.h" #include "../../../../drivers/pci/pci.h" +DEFINE_STATIC_KEY_FALSE (shared_processor); +EXPORT_SYMBOL_GPL (shared_processor); +int CMO_PrPSP =-1 ;int CMO_SecPSP =-1 ;unsigned long CMO_PageSize = (ASM_CONST (1 ) <<IOMMU_PAGE_SHIFT_4K );
@@ -758,6 +761,10 @@ static void __init pSeries_setup_arch(void)if (firmware_has_feature (FW_FEATURE_LPAR )) {vpa_init (boot_cpuid); + +if (lppaca_shared_proc (get_lppaca ())) +static_branch_enable (&shared_processor); + ppc_md.power_save = pseries_lpar_idle; ppc_md.enable_pmcs = pseries_lpar_enable_pmcs;#ifdef CONFIG_PCI_IOV
arch/s390/crypto/sha_common.c +5 -2
@@ -74,14 +74,17 @@ int s390_sha_final(struct shash_desc *desc, u8 *out)struct s390_sha_ctx *ctx =shash_desc_ctx (desc);unsigned int bsize =crypto_shash_blocksize (desc->tfm);u64 bits; -unsigned int n, mbl_offset; +unsigned int n; +int mbl_offset; n = ctx->count % bsize; bits = ctx->count *8 ; - mbl_offset =s390_crypto_shash_parmsize (ctx->func) /sizeof (u32); + mbl_offset =s390_crypto_shash_parmsize (ctx->func);if (mbl_offset <0 )return -EINVAL ; + mbl_offset = mbl_offset /sizeof (u32); +/* set total msg bit length (mbl) in CPACF parmblock */ switch (ctx->func) {case CPACF_KLMD_SHA_1 :
arch/s390/include/asm/pgalloc.h +14 -2
@@ -56,7 +56,12 @@ static inline p4d_t *p4d_alloc_one(struct mm_struct *mm, unsigned long address)crst_table_init (table, _REGION2_ENTRY_EMPTY);return (p4d_t *) table; } -#define p4d_free (mm, p4d) crst_table_free(mm, (unsigned long *) p4d) + +static inline void p4d_free (struct mm_struct *mm,p4d_t *p4d) +{ +if (!mm_p4d_folded (mm)) +crst_table_free (mm, (unsigned long *) p4d); +}static inline pud_t *pud_alloc_one (struct mm_struct *mm,unsigned long address) {
@@ -65,7 +70,12 @@ static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address)crst_table_init (table, _REGION3_ENTRY_EMPTY);return (pud_t *) table; } -#define pud_free (mm, pud) crst_table_free(mm, (unsigned long *) pud) + +static inline void pud_free (struct mm_struct *mm,pud_t *pud) +{ +if (!mm_pud_folded (mm)) +crst_table_free (mm, (unsigned long *) pud); +}static inline pmd_t *pmd_alloc_one (struct mm_struct *mm,unsigned long vmaddr) {
@@ -83,6 +93,8 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr)static inline void pmd_free (struct mm_struct *mm,pmd_t *pmd) { +if (mm_pmd_folded (mm)) +return ;pgtable_pmd_page_dtor (virt_to_page (pmd));crst_table_free (mm, (unsigned long *) pmd); }
arch/s390/include/asm/timex.h +10 -6
@@ -10,8 +10,9 @@#ifndef _ASM_S390_TIMEX_H#define _ASM_S390_TIMEX_H -#include <asm/lowcore.h> +#include <linux/preempt.h> #include <linux/time64.h> +#include <asm/lowcore.h> /* The value of the TOD clock for 1.1.1970. */ #define TOD_UNIX_EPOCH 0x7d91048bca000000ULL
@@ -186,15 +187,18 @@ extern unsigned char tod_clock_base[16] __aligned(8);/** * get_clock_monotonic - returns current time in clock rate units * -* The caller must ensure that preemption is disabled. * The clock and tod_clock_base get changed via stop_machine. -* Therefore preemption must be disabled when calling this -* function, otherwise the returned value is not guaranteed to -* be monotonic. +* Therefore preemption must be disabled, otherwise the returned +* value is not guaranteed to be monotonic. */ static inline unsigned long long get_tod_clock_monotonic (void ) { -return get_tod_clock () - *(unsigned long long *) &tod_clock_base[1 ]; +unsigned long long tod; + +preempt_disable_notrace (); + tod =get_tod_clock () - *(unsigned long long *) &tod_clock_base[1 ]; +preempt_enable_notrace (); +return tod; }/**
arch/s390/kernel/dis.c +7 -6
@@ -461,10 +461,11 @@ static int print_insn(char *buffer, unsigned char *code, unsigned long addr) ptr +=sprintf (ptr,"%%c%i" , value); else if (operand->flags & OPERAND_VR) ptr += sprintf(ptr, "%%v%i", value); - else if (operand->flags & OPERAND_PCREL) - ptr += sprintf(ptr, "%lx", (signed int) value - + addr); - else if (operand->flags & OPERAND_SIGNED) + else if (operand->flags & OPERAND_PCREL) { +void *pcrel = (void *)((int )value + addr); + + ptr +=sprintf (ptr,"%px" , pcrel); + } else if (operand->flags & OPERAND_SIGNED) ptr += sprintf(ptr, "%i", value); else ptr += sprintf(ptr, "%u", value);
@@ -536,7 +537,7 @@ void show_code(struct pt_regs *regs)else *ptr++ =' ' ; addr = regs->psw.addr + start -32 ; - ptr +=sprintf (ptr,"%016lx: " , addr); + ptr +=sprintf (ptr,"%px: " , (void *)addr);if (start + opsize >= end)break ;for (i =0 ; i < opsize; i++)
@@ -564,7 +565,7 @@ void print_fn_code(unsigned char *code, unsigned long len) opsize =insn_length (*code);if (opsize > len)break ; - ptr +=sprintf (ptr,"%p: " , code); + ptr +=sprintf (ptr,"%px: " , code);for (i =0 ; i < opsize; i++) ptr +=sprintf (ptr,"%02x" , code[i]); *ptr++ ='\t' ;
arch/s390/kernel/perf_cpum_cf.c +10 -11
@@ -199,7 +199,7 @@ static const int cpumf_generic_events_user[] = { [PERF_COUNT_HW_BUS_CYCLES] = -1, }; -static int __hw_perf_event_init (struct perf_event *event) +static int __hw_perf_event_init (struct perf_event *event,unsigned int type) {struct perf_event_attr *attr = &event->attr;struct hw_perf_event *hwc = &event->hw;
@@ -207,7 +207,7 @@ static int __hw_perf_event_init(struct perf_event *event)int err =0 ;u64 ev; -switch (attr->type) { +switch (type) {case PERF_TYPE_RAW :/* Raw events are used to access counters directly, * hence do not permit excludes */
@@ -294,17 +294,16 @@ static int __hw_perf_event_init(struct perf_event *event)static int cpumf_pmu_event_init (struct perf_event *event) { +unsigned int type = event->attr.type;int err; -switch (event->attr.type) { -case PERF_TYPE_HARDWARE : -case PERF_TYPE_HW_CACHE : -case PERF_TYPE_RAW : - err =__hw_perf_event_init (event); -break ; -default : +if (type ==PERF_TYPE_HARDWARE || type ==PERF_TYPE_RAW ) + err =__hw_perf_event_init (event, type); +else if (event->pmu->type == type) +/* Registered as unknown PMU */ + err =__hw_perf_event_init (event,PERF_TYPE_RAW ); +else return -ENOENT ; - }if (unlikely (err) && event->destroy) event->destroy (event);
@@ -553,7 +552,7 @@ static int __init cpumf_pmu_init(void)return -ENODEV ; cpumf_pmu.attr_groups =cpumf_cf_event_group (); - rc =perf_pmu_register (&cpumf_pmu,"cpum_cf" ,PERF_TYPE_RAW ); + rc =perf_pmu_register (&cpumf_pmu,"cpum_cf" ,-1 );if (rc)pr_err ("Registering the cpum_cf PMU failed with rc=%i\n" , rc);return rc;
arch/s390/kernel/perf_cpum_cf_diag.c +5 -5
@@ -243,13 +243,13 @@ static int cf_diag_event_init(struct perf_event *event)int err = -ENOENT ;debug_sprintf_event (cf_diag_dbg,5 , -"%s event %p cpu %d config %#llx " +"%s event %p cpu %d config %#llx type:%u " "sample_type %#llx cf_diag_events %d\n" , __func__, - event, event->cpu, attr->config, attr->sample_type, -atomic_read (&cf_diag_events)); + event, event->cpu, attr->config, event->pmu->type, + attr->sample_type,atomic_read (&cf_diag_events));if (event->attr.config !=PERF_EVENT_CPUM_CF_DIAG || - event->attr.type !=PERF_TYPE_RAW ) + event->attr.type != event->pmu->type) goto out;/* Raw events are used to access counters directly,
@@ -693,7 +693,7 @@ static int __init cf_diag_init(void) }debug_register_view (cf_diag_dbg, &debug_sprintf_view); - rc =perf_pmu_register (&cf_diag,"cpum_cf_diag" ,PERF_TYPE_RAW ); + rc =perf_pmu_register (&cf_diag,"cpum_cf_diag" ,-1 );if (rc) {debug_unregister_view (cf_diag_dbg, &debug_sprintf_view);debug_unregister (cf_diag_dbg);
arch/s390/kernel/perf_event.c +6 -2
@@ -224,9 +224,13 @@ void perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *regs) {struct unwind_state state; +unsigned long addr; -unwind_for_each_frame (&state, current, regs,0 ) -perf_callchain_store (entry, state.ip); +unwind_for_each_frame (&state, current, regs,0 ) { + addr =unwind_get_return_address (&state); +if (!addr ||perf_callchain_store (entry, addr)) +return ; + } }/* Perf definitions for PMU event attributes in sysfs */
arch/s390/mm/maccess.c +8 -4
@@ -70,7 +70,7 @@ void notrace s390_kernel_write(void *dst, const void *src, size_t size)spin_unlock_irqrestore (&s390_kernel_write_lock, flags); } -static int __memcpy_real (void *dest,void *src,size_t count) +static int __no_sanitize_address __memcpy_real(void *dest, void *src, size_t count) { register unsigned long _dest asm("2") = (unsigned long) dest; register unsigned long _len1 asm("3") = (unsigned long) count;
@@ -91,19 +91,23 @@ static int __memcpy_real(void *dest, void *src, size_t count)return rc; } -static unsigned long _memcpy_real (unsigned long dest,unsigned long src, -unsigned long count) +static unsigned long __no_sanitize_address _memcpy_real (unsigned long dest, +unsigned long src, +unsigned long count) {int irqs_disabled, rc;unsigned long flags;if (!count)return 0 ; - flags =__arch_local_irq_stnsm (0xf8UL ); + flags =arch_local_irq_save (); irqs_disabled =arch_irqs_disabled_flags (flags);if (!irqs_disabled)trace_hardirqs_off (); +__arch_local_irq_stnsm (0xf8 );// disable DAT rc =__memcpy_real ((void *) dest, (void *) src, (size_t ) count); +if (flags &PSW_MASK_DAT ) +__arch_local_irq_stosm (0x04 );// enable DAT if (!irqs_disabled)trace_hardirqs_on ();__arch_local_irq_ssm (flags);
arch/s390/net/bpf_jit_comp.c +3 -2
@@ -23,6 +23,7 @@#include <linux/filter.h> #include <linux/init.h> #include <linux/bpf.h> +#include <linux/mm.h> #include <asm/cacheflush.h> #include <asm/dis.h> #include <asm/facility.h>
@@ -1369,7 +1370,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) }memset (&jit,0 ,sizeof (jit)); - jit.addrs =kcalloc (fp->len +1 ,sizeof (*jit.addrs),GFP_KERNEL ); + jit.addrs =kvcalloc (fp->len +1 ,sizeof (*jit.addrs),GFP_KERNEL );if (jit.addrs ==NULL ) { fp = orig_fp; goto out;
@@ -1422,7 +1423,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)if (!fp->is_func || extra_pass) {bpf_prog_fill_jited_linfo (fp, jit.addrs +1 ); free_addrs: -kfree (jit.addrs); +kvfree (jit.addrs);kfree (jit_data); fp->aux->jit_data =NULL ; }
arch/sh/include/cpu-sh4/cpu/sh7734.h +1 -1
@@ -134,7 +134,7 @@ enum {GPIO_FN_EX_WAIT1 ,GPIO_FN_SD1_DAT0_A ,GPIO_FN_DREQ2 ,GPIO_FN_CAN1_TX_C ,GPIO_FN_ET0_LINK_C ,GPIO_FN_ET0_ETXD5_A ,GPIO_FN_EX_WAIT0 ,GPIO_FN_TCLK1_B , -GPIO_FN_RD_WR ,GPIO_FN_TCLK0 , +GPIO_FN_RD_WR ,GPIO_FN_TCLK0 ,GPIO_FN_CAN_CLK_B ,GPIO_FN_ET0_ETXD4 ,GPIO_FN_EX_CS5 ,GPIO_FN_SD1_CMD_A ,GPIO_FN_ATADIR ,GPIO_FN_QSSL_B ,GPIO_FN_ET0_ETXD3_A , GPIO_FN_EX_CS4, GPIO_FN_SD1_WP_A, GPIO_FN_ATAWR, GPIO_FN_QMI_QIO1_B,
arch/x86/include/asm/crash.h +2 -0
@@ -2,6 +2,8 @@#ifndef _ASM_X86_CRASH_H#define _ASM_X86_CRASH_H +struct kimage ; +int crash_load_segments (struct kimage *image);int crash_copy_backup_region (struct kimage *image); int crash_setup_memmap_entries(struct kimage *image,
arch/x86/include/asm/fixmap.h +1 -1
@@ -156,7 +156,7 @@ extern pte_t *kmap_pte;extern pte_t *pkmap_page_table;void __native_set_fixmap (enum fixed_addresses idx,pte_t pte); -void native_set_fixmap (enum fixed_addresses idx, +void native_set_fixmap (unsigned /* enum fixed_addresses */ idx,phys_addr_t phys,pgprot_t flags);#ifndef CONFIG_PARAVIRT_XXL
arch/x86/include/asm/syscall_wrapper.h +12 -11
@@ -48,12 +48,13 @@* To keep the naming coherent, re-define SYSCALL_DEFINE0 to create an alias * named __ia32_sys_*() */ -#define SYSCALL_DEFINE0 (sname) \ - SYSCALL_METADATA(_##sname, 0); \ - asmlinkage long __x64_sys_##sname(void); \ - ALLOW_ERROR_INJECTION(__x64_sys_##sname, ERRNO); \ - SYSCALL_ALIAS(__ia32_sys_##sname, __x64_sys_##sname); \ - asmlinkage long __x64_sys_##sname(void) + +#define SYSCALL_DEFINE0 (sname) \ + SYSCALL_METADATA(_##sname, 0); \ + asmlinkage long __x64_sys_##sname(const struct pt_regs *__unused);\ + ALLOW_ERROR_INJECTION(__x64_sys_##sname, ERRNO); \ + SYSCALL_ALIAS(__ia32_sys_##sname, __x64_sys_##sname); \ + asmlinkage long __x64_sys_##sname(const struct pt_regs *__unused)#define COND_SYSCALL (name) \ cond_syscall(__x64_sys_##name); \
@@ -181,11 +182,11 @@* macros to work correctly. */ #ifndef SYSCALL_DEFINE0 -#define SYSCALL_DEFINE0 (sname) \ - SYSCALL_METADATA(_##sname, 0); \ - asmlinkage long __x64_sys_##sname(void); \ - ALLOW_ERROR_INJECTION(__x64_sys_##sname, ERRNO); \ - asmlinkage long __x64_sys_##sname(void) +#define SYSCALL_DEFINE0 (sname) \ + SYSCALL_METADATA(_##sname, 0); \ + asmlinkage long __x64_sys_##sname(const struct pt_regs *__unused);\ + ALLOW_ERROR_INJECTION(__x64_sys_##sname, ERRNO); \ + asmlinkage long __x64_sys_##sname(const struct pt_regs *__unused)#endif #ifndef COND_SYSCALL
arch/x86/kernel/apic/io_apic.c +6 -3
@@ -1727,9 +1727,10 @@ static bool io_apic_level_ack_pending(struct mp_chip_data *data)static inline bool ioapic_irqd_mask (struct irq_data *data) { -/* If we are moving the irq we need to mask it */ +/* If we are moving the IRQ we need to mask it */ if (unlikely (irqd_is_setaffinity_pending (data))) { -mask_ioapic_irq (data); +if (!irqd_irq_masked (data)) +mask_ioapic_irq (data);return true; }return false;
@@ -1766,7 +1767,9 @@ static inline void ioapic_irqd_unmask(struct irq_data *data, bool masked)*/ if (!io_apic_level_ack_pending (data->chip_data))irq_move_masked_irq (data); - unmask_ioapic_irq(data); +/* If the IRQ is masked in the core, leave it: */ +if (!irqd_irq_masked (data)) + unmask_ioapic_irq(data); } }#else
arch/x86/kernel/cpu/mce/amd.c +2 -2
@@ -266,10 +266,10 @@ static void smca_configure(unsigned int bank, unsigned int cpu)smca_set_misc_banks_map (bank, cpu);/* Return early if this bank was already initialized. */ -if (smca_banks[bank].hwid) +if (smca_banks[bank].hwid && smca_banks[bank].hwid->hwid_mcatype !=0 )return ; -if (rdmsr_safe_on_cpu (cpu,MSR_AMD64_SMCA_MCx_IPID (bank), &low, &high)) { +if (rdmsr_safe (MSR_AMD64_SMCA_MCx_IPID (bank), &low, &high)) {pr_warn ("Failed to read MCA_IPID for bank %d\n" , bank);return ; }
arch/x86/kernel/cpu/mce/core.c +1 -1
@@ -814,8 +814,8 @@ static int mce_no_way_out(struct mce *m, char **msg, unsigned long *validp,if (quirk_no_way_out)quirk_no_way_out (i, m, regs); + m->bank = i;if (mce_severity (m, mca_cfg.tolerant, &tmp, true) >=MCE_PANIC_SEVERITY ) { - m->bank = i;mce_read_aux (m, i); *msg = tmp;return 1 ;
arch/x86/kernel/cpu/mce/therm_throt.c +1 -1
@@ -188,7 +188,7 @@ static void therm_throt_process(bool new_event, int event, int level)/* if we just entered the thermal event */ if (new_event) {if (event ==THERMAL_THROTTLING_EVENT ) -pr_crit ("CPU%d: %s temperature above threshold, cpu clock throttled (total events = %lu)\n" , +pr_warn ("CPU%d: %s temperature above threshold, cpu clock throttled (total events = %lu)\n" , this_cpu, level ==CORE_LEVEL ?"Core" :"Package" , state->count);
arch/x86/kernel/early-quirks.c +2 -0
@@ -710,6 +710,8 @@ static struct chipset early_qrk[] __initdata = {*/ {PCI_VENDOR_ID_INTEL ,0x0f00 , PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, + { PCI_VENDOR_ID_INTEL, 0x3e20, + PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, { PCI_VENDOR_ID_INTEL, 0x3ec4, PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, { PCI_VENDOR_ID_BROADCOM, 0x4331,
arch/x86/kvm/cpuid.c +4 -2
@@ -402,7 +402,8 @@ static inline void do_cpuid_7_mask(struct kvm_cpuid_entry2 *entry, int index) entry->edx |=F (SPEC_CTRL );if (boot_cpu_has (X86_FEATURE_STIBP )) entry->edx |=F (INTEL_STIBP ); -if (boot_cpu_has (X86_FEATURE_SSBD )) +if (boot_cpu_has (X86_FEATURE_SPEC_CTRL_SSBD ) || +boot_cpu_has (X86_FEATURE_AMD_SSBD )) entry->edx |=F (SPEC_CTRL_SSBD );/* * We emulate ARCH_CAPABILITIES in software even
@@ -759,7 +760,8 @@ static inline int __do_cpuid_func(struct kvm_cpuid_entry2 *entry, u32 function, entry->ebx |=F (AMD_IBRS );if (boot_cpu_has (X86_FEATURE_STIBP )) entry->ebx |=F (AMD_STIBP ); -if (boot_cpu_has (X86_FEATURE_SSBD )) +if (boot_cpu_has (X86_FEATURE_SPEC_CTRL_SSBD ) || +boot_cpu_has (X86_FEATURE_AMD_SSBD )) entry->ebx |=F (AMD_SSBD );if (!boot_cpu_has_bug (X86_BUG_SPEC_STORE_BYPASS )) entry->ebx |=F (AMD_SSB_NO );
arch/x86/lib/x86-opcode-map.txt +12 -6
@@ -333,7 +333,7 @@ AVXcode: 1 06: CLTS 07: SYSRET (o64) 08: INVD -09: WBINVD +09: WBINVD | WBNOINVD (F3) 0a: 0b: UD2 (1B) 0c:
@@ -364,7 +364,7 @@ AVXcode: 1 # a ModR/M byte. 1a: BNDCL Gv,Ev (F3) | BNDCU Gv,Ev (F2) | BNDMOV Gv,Ev (66) | BNDLDX Gv,Ev 1b: BNDCN Gv,Ev (F2) | BNDMOV Ev,Gv (66) | BNDMK Gv,Ev (F3) | BNDSTX Ev,Gv -1c: +1c: Grp20 (1A),(1C) 1d: 1e: 1f: NOP Ev
@@ -792,6 +792,8 @@ f3: Grp17 (1A) f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v) f6: ADCX Gy,Ey (66) | ADOX Gy,Ey (F3) | MULX By,Gy,rDX,Ey (F2),(v) f7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v) +f8: MOVDIR64B Gv,Mdqq (66) | ENQCMD Gv,Mdqq (F2) | ENQCMDS Gv,Mdqq (F3) +f9: MOVDIRI My,Gy EndTable Table: 3-byte opcode 2 (0x0f 0x3a)
@@ -943,9 +945,9 @@ GrpTable: Grp6 EndTable GrpTable: Grp7 -0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) -1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) -2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) +0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B) +1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B) +2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B) 3: LIDT Ms 4: SMSW Mw/Rv 5: rdpkru (110),(11B) | wrpkru (111),(11B)
@@ -1020,7 +1022,7 @@ GrpTable: Grp15 3: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B) 4: XSAVE | ptwrite Ey (F3),(11B) 5: XRSTOR | lfence (11B) -6: XSAVEOPT | clwb (66) | mfence (11B) +6: XSAVEOPT | clwb (66) | mfence (11B) | TPAUSE Rd (66),(11B) | UMONITOR Rv (F3),(11B) | UMWAIT Rd (F2),(11B) 7: clflush | clflushopt (66) | sfence (11B) EndTable
@@ -1051,6 +1053,10 @@ GrpTable: Grp19 6: vscatterpf1qps/d Wx (66),(ev) EndTable +GrpTable: Grp20 +0: cldemote Mb +EndTable + # AMD's Prefetch Group GrpTable: GrpP 0: PREFETCH
arch/x86/math-emu/fpu_system.h +4 -2
@@ -107,6 +107,8 @@ static inline bool seg_writable(struct desc_struct *d)#define FPU_access_ok (y,z) if ( !access_ok(y,z) ) \ math_abort(FPU_info,SIGSEGV)#define FPU_abort math_abort(FPU_info, SIGSEGV) +#define FPU_copy_from_user (to, from, n) \ + do { if (copy_from_user(to, from, n)) FPU_abort; } while (0)#undef FPU_IGNORE_CODE_SEGV#ifdef FPU_IGNORE_CODE_SEGV
@@ -122,7 +124,7 @@ static inline bool seg_writable(struct desc_struct *d)#define FPU_code_access_ok (z) FPU_access_ok((void __user *)FPU_EIP,z)#endif -#define FPU_get_user (x,y) get_user((x),(y)) -#define FPU_put_user (x,y) put_user((x),(y)) +#define FPU_get_user (x,y) do { if (get_user((x),(y))) FPU_abort; } while (0) +#define FPU_put_user (x,y) do { if (put_user((x),(y))) FPU_abort; } while (0)#endif
arch/x86/math-emu/reg_ld_str.c +3 -3
@@ -85,7 +85,7 @@ int FPU_load_extended(long double __user *s, int stnr)RE_ENTRANT_CHECK_OFF ;FPU_access_ok (s,10 ); -__copy_from_user (sti_ptr, s,10 ); +FPU_copy_from_user (sti_ptr, s,10 );RE_ENTRANT_CHECK_ON ;return FPU_tagof (sti_ptr);
@@ -1126,9 +1126,9 @@ void frstor(fpu_addr_modes addr_modes, u_char __user *data_address)/* Copy all registers in stack order. */ RE_ENTRANT_CHECK_OFF ;FPU_access_ok (s,80 ); -__copy_from_user (register_base + offset, s, other); +FPU_copy_from_user (register_base + offset, s, other);if (offset) -__copy_from_user (register_base, s + other, offset); +FPU_copy_from_user (register_base, s + other, offset);RE_ENTRANT_CHECK_ON ;for (i =0 ; i <8 ; i++) {
arch/x86/mm/pgtable.c +2 -2
@@ -643,8 +643,8 @@ void __native_set_fixmap(enum fixed_addresses idx, pte_t pte) fixmaps_set++; } -void native_set_fixmap (enum fixed_addresses idx,phys_addr_t phys, -pgprot_t flags) +void native_set_fixmap (unsigned /* enum fixed_addresses */ idx, +phys_addr_t phys,pgprot_t flags) {/* Sanitize 'prot' against any unsupported bits: */ pgprot_val (flags) &= __default_kernel_pte_mask;
block/blk-iocost.c +8 -5
@@ -1212,7 +1212,7 @@ static enum hrtimer_restart iocg_waitq_timer_fn(struct hrtimer *timer)return HRTIMER_NORESTART ; } -static void iocg_kick_delay (struct ioc_gq *iocg,struct ioc_now *now,u64 cost) +static bool iocg_kick_delay (struct ioc_gq *iocg,struct ioc_now *now,u64 cost) {struct ioc *ioc = iocg->ioc;struct blkcg_gq *blkg =iocg_to_blkg (iocg);
@@ -1229,11 +1229,11 @@ static void iocg_kick_delay(struct ioc_gq *iocg, struct ioc_now *now, u64 cost)/* clear or maintain depending on the overage */ if (time_before_eq64 (vtime, now->vnow)) {blkcg_clear_delay (blkg); -return ; +return false; }if (!atomic_read (&blkg->use_delay) &&time_before_eq64 (vtime, now->vnow + vmargin)) -return ; +return false;/* use delay */ if (cost) {
@@ -1250,10 +1250,11 @@ static void iocg_kick_delay(struct ioc_gq *iocg, struct ioc_now *now, u64 cost) oexpires =ktime_to_ns (hrtimer_get_softexpires (&iocg->delay_timer));if (hrtimer_is_queued (&iocg->delay_timer) &&abs (oexpires - expires) <= margin_ns /4 ) -return ; +return true;hrtimer_start_range_ns (&iocg->delay_timer,ns_to_ktime (expires), margin_ns /4 ,HRTIMER_MODE_ABS ); +return true; }static enum hrtimer_restart iocg_delay_timer_fn (struct hrtimer *timer)
@@ -1739,7 +1740,9 @@ static void ioc_rqos_throttle(struct rq_qos *rqos, struct bio *bio)*/ if (bio_issue_as_root_blkg (bio) ||fatal_signal_pending (current)) {atomic64_add (abs_cost, &iocg->abs_vdebt); -iocg_kick_delay (iocg, &now, cost); +if (iocg_kick_delay (iocg, &now, cost)) +blkcg_schedule_throttle (rqos->q, + (bio->bi_opf &REQ_SWAP ) ==REQ_SWAP );return ; }
crypto/Kconfig +1 -0
@@ -309,6 +309,7 @@ config CRYPTO_AEGIS128 config CRYPTO_AEGIS128_SIMD bool "Support SIMD acceleration for AEGIS-128" depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON) + depends on !ARM || CC_IS_CLANG || GCC_VERSION >= 40800 default y config CRYPTO_AEGIS128_AESNI_SSE2
crypto/Makefile +1 -1
@@ -93,7 +93,7 @@ obj-$(CONFIG_CRYPTO_AEGIS128) += aegis128.o aegis128-y := aegis128-core.o ifeq ($(ARCH),arm) -CFLAGS_aegis128-neon-inner.o += -ffreestanding -march=armv7-a -mfloat-abi=softfp +CFLAGS_aegis128-neon-inner.o += -ffreestanding -march=armv8-a -mfloat-abi=softfp CFLAGS_aegis128-neon-inner.o += -mfpu=crypto-neon-fp-armv8 aegis128-$(CONFIG_CRYPTO_AEGIS128_SIMD) += aegis128-neon.o aegis128-neon-inner.o endif
crypto/asymmetric_keys/asym_tpm.c +1 -0
@@ -486,6 +486,7 @@ static int tpm_key_encrypt(struct tpm_key *tk,if (ret <0 ) goto error_free_tfm; + ret = -ENOMEM ; req =akcipher_request_alloc (tfm,GFP_KERNEL );if (!req) goto error_free_tfm;
crypto/asymmetric_keys/public_key.c +1 -0
@@ -184,6 +184,7 @@ static int software_key_eds_op(struct kernel_pkey_params *params,if (IS_ERR (tfm))return PTR_ERR (tfm); + ret = -ENOMEM ; req =akcipher_request_alloc (tfm,GFP_KERNEL );if (!req) goto error_free_tfm;
drivers/acpi/button.c +11 -0
@@ -78,6 +78,17 @@ static const struct dmi_system_id lid_blacklst[] = { DMI_MATCH(DMI_BIOS_VERSION, "BYT70A.YNCHENG.WIN.007"), }, }, + { + /* + * Medion Akoya E2215T, notification of the LID device only + * happens on close, not on open and _LID always returns closed. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "MEDION"), + DMI_MATCH(DMI_PRODUCT_NAME, "E2215T MD60198"), + }, + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN, + }, {} };
drivers/ata/libata-core.c +3 -0
@@ -6708,6 +6708,9 @@ void ata_host_detach(struct ata_host *host) {int i; +/* Ensure ata_port probe has completed */ +async_synchronize_full (); +for (i =0 ; i < host->n_ports; i++)ata_port_detach (host->ports[i]);
drivers/base/firmware_loader/builtin/Makefile +2 -1
@@ -8,7 +8,8 @@ fwdir := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir)) obj-y := $(addsuffix .gen.o, $(subst $(quote),,$(CONFIG_EXTRA_FIRMWARE))) FWNAME = $(patsubst $(obj)/%.gen.S,%,$@) -FWSTR = $(subst /,_,$(subst .,_,$(subst -,_,$(FWNAME)))) +comma := , +FWSTR = $(subst $(comma),_,$(subst /,_,$(subst .,_,$(subst -,_,$(FWNAME))))) ASM_WORD = $(if $(CONFIG_64BIT),.quad,.long) ASM_ALIGN = $(if $(CONFIG_64BIT),3,2) PROGBITS = $(if $(CONFIG_ARM),%,@)progbits
drivers/block/loop.c +18 -8
@@ -417,18 +417,20 @@ static int lo_read_transfer(struct loop_device *lo, struct request *rq,return ret; } -static int lo_discard (struct loop_device *lo,struct request *rq,loff_t pos) +static int lo_fallocate (struct loop_device *lo,struct request *rq,loff_t pos, +int mode) {/* -* We use punch hole to reclaim the free space used by the -* image a.k.a. discard. However we do not support discard if -* encryption is enabled, because it may give an attacker -* useful information. +* We use fallocate to manipulate the space mappings used by the image +* a.k.a. discard/zerorange. However we do not support this if +* encryption is enabled, because it may give an attacker useful +* information. */ struct file *file = lo->lo_backing_file; -int mode =FALLOC_FL_PUNCH_HOLE |FALLOC_FL_KEEP_SIZE ;int ret; + mode |=FALLOC_FL_KEEP_SIZE ; +if ((!file->f_op->fallocate) || lo->lo_encrypt_key_size) { ret = -EOPNOTSUPP ; goto out;
@@ -596,9 +598,17 @@ static int do_req_filebacked(struct loop_device *lo, struct request *rq)switch (req_op (rq)) {case REQ_OP_FLUSH :return lo_req_flush (lo, rq); -case REQ_OP_DISCARD :case REQ_OP_WRITE_ZEROES : -return lo_discard (lo, rq, pos); +/* +* If the caller doesn't want deallocation, call zeroout to +* write zeroes the range. Otherwise, punch them out. +*/ +return lo_fallocate (lo, rq, pos, + (rq->cmd_flags &REQ_NOUNMAP ) ? +FALLOC_FL_ZERO_RANGE : +FALLOC_FL_PUNCH_HOLE ); +case REQ_OP_DISCARD : +return lo_fallocate (lo, rq, pos,FALLOC_FL_PUNCH_HOLE );case REQ_OP_WRITE :if (lo->transfer)return lo_write_transfer (lo, rq, pos);
drivers/block/nbd.c +3 -3
@@ -1296,10 +1296,10 @@ static int nbd_start_device_ioctl(struct nbd_device *nbd, struct block_device *bmutex_unlock (&nbd->config_lock); ret =wait_event_interruptible (config->recv_wq,atomic_read (&config->recv_threads) ==0 ); -if (ret) { +if (ret)sock_shutdown (nbd); -flush_workqueue (nbd->recv_workq); - } +flush_workqueue (nbd->recv_workq); +mutex_lock (&nbd->config_lock);nbd_bdev_reset (bdev);/* user requested, ignore socket errors */
drivers/bluetooth/btusb.c +2 -3
@@ -3807,8 +3807,8 @@ static int btusb_probe(struct usb_interface *intf,btusb_check_needs_reset_resume (intf); } -#ifdef CONFIG_BT_HCIBTUSB_RTL -if (id->driver_info &BTUSB_REALTEK ) { +if (IS_ENABLED (CONFIG_BT_HCIBTUSB_RTL ) && + (id->driver_info &BTUSB_REALTEK )) { hdev->setup = btrtl_setup_realtek; hdev->shutdown = btrtl_shutdown_realtek; hdev->cmd_timeout = btusb_rtl_cmd_timeout;
@@ -3819,7 +3819,6 @@ static int btusb_probe(struct usb_interface *intf,*/ set_bit (BTUSB_WAKEUP_DISABLE , &data->flags); } -#endif if (id->driver_info &BTUSB_AMP ) {/* AMP controllers do not support SCO packets */
drivers/char/hw_random/omap3-rom-rng.c +2 -1
@@ -121,7 +121,8 @@ static int omap3_rom_rng_remove(struct platform_device *pdev) {cancel_delayed_work_sync (&idle_work);hwrng_unregister (&omap3_rom_rng_ops); -clk_disable_unprepare (rng_clk); +if (!rng_idle) +clk_disable_unprepare (rng_clk);return 0 ; }
drivers/char/ipmi/ipmi_msghandler.c +16 -7
@@ -448,6 +448,8 @@ enum ipmi_stat_indexes {#define IPMI_IPMB_NUM_SEQ 64struct ipmi_smi { +struct module *owner; +/* What interface number are we? */ int intf_num;
@@ -1220,6 +1222,11 @@ int ipmi_create_user(unsigned int if_num,if (rv) goto out_kfree; +if (!try_module_get (intf->owner)) { + rv = -ENODEV ; + goto out_kfree; + } +/* Note that each existing user holds a refcount to the interface. */ kref_get (&intf->refcount);
@@ -1349,6 +1356,7 @@ static void _ipmi_destroy_user(struct ipmi_user *user) }kref_put (&intf->refcount, intf_free); +module_put (intf->owner); }int ipmi_destroy_user (struct ipmi_user *user)
@@ -2459,7 +2467,7 @@ static int __get_device_id(struct ipmi_smi *intf, struct bmc_device *bmc)* been recently fetched, this will just use the cached data. Otherwise * it will run a new fetch. * -* Except for the first time this is called (in ipmi_register_smi()), +* Except for the first time this is called (in ipmi_add_smi()), * this will always return good data; */ static int __bmc_get_device_id(struct ipmi_smi *intf, struct bmc_device *bmc,
@@ -3377,10 +3385,11 @@ static void redo_bmc_reg(struct work_struct *work)kref_put (&intf->refcount, intf_free); } -int ipmi_register_smi (const struct ipmi_smi_handlers *handlers, -void *send_info, -struct device *si_dev, -unsigned char slave_addr) +int ipmi_add_smi (struct module *owner, +const struct ipmi_smi_handlers *handlers, +void *send_info, +struct device *si_dev, +unsigned char slave_addr) {int i, j;int rv;
@@ -3406,7 +3415,7 @@ int ipmi_register_smi(const struct ipmi_smi_handlers *handlers,return rv; } - + intf->owner = owner; intf->bmc = &intf->tmp_bmc;INIT_LIST_HEAD (&intf->bmc->intfs);mutex_init (&intf->bmc->dyn_mutex);
@@ -3514,7 +3523,7 @@ int ipmi_register_smi(const struct ipmi_smi_handlers *handlers,return rv; } -EXPORT_SYMBOL (ipmi_register_smi); +EXPORT_SYMBOL (ipmi_add_smi); static void deliver_smi_err_response(struct ipmi_smi *intf, struct ipmi_smi_msg *msg,
drivers/char/tpm/tpm-dev-common.c +8 -0
@@ -61,6 +61,12 @@ static void tpm_dev_async_work(struct work_struct *work)mutex_lock (&priv->buffer_mutex); priv->command_enqueued = false; + ret =tpm_try_get_ops (priv->chip); +if (ret) { + priv->response_length = ret; + goto out; + } + ret =tpm_dev_transmit (priv->chip, priv->space, priv->data_buffer,sizeof (priv->data_buffer));tpm_put_ops (priv->chip);
@@ -68,6 +74,7 @@ static void tpm_dev_async_work(struct work_struct *work) priv->response_length = ret;mod_timer (&priv->user_read_timer, jiffies + (120 *HZ )); } +out:mutex_unlock (&priv->buffer_mutex);wake_up_interruptible (&priv->async_wait); }
@@ -204,6 +211,7 @@ ssize_t tpm_common_write(struct file *file, const char __user *buf,if (file->f_flags &O_NONBLOCK ) { priv->command_enqueued = true;queue_work (tpm_dev_wq, &priv->async_work); +tpm_put_ops (priv->chip);mutex_unlock (&priv->buffer_mutex);return size; }
drivers/char/tpm/tpm_tis_core.c +18 -17
@@ -899,13 +899,13 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,if (wait_startup (chip,0 ) !=0 ) { rc = -ENODEV ; - goto out_err; + goto err_start; }/* Take control of the TPM's interrupt hardware and shut it off */ rc =tpm_tis_read32 (priv,TPM_INT_ENABLE (priv->locality), &intmask);if (rc <0 ) - goto out_err; + goto err_start; intmask |=TPM_INTF_CMD_READY_INT |TPM_INTF_LOCALITY_CHANGE_INT |TPM_INTF_DATA_AVAIL_INT |TPM_INTF_STS_VALID_INT ;
@@ -914,21 +914,21 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq, rc =tpm_chip_start (chip);if (rc) - goto out_err; + goto err_start; + rc =tpm2_probe (chip); -tpm_chip_stop (chip);if (rc) - goto out_err; + goto err_probe; rc =tpm_tis_read32 (priv,TPM_DID_VID (0 ), &vendor);if (rc <0 ) - goto out_err; + goto err_probe; priv->manufacturer_id = vendor; rc =tpm_tis_read8 (priv,TPM_RID (0 ), &rid);if (rc <0 ) - goto out_err; + goto err_probe; dev_info(dev, "%s TPM (device-id 0x%X, rev-id %d)\n", (chip->flags & TPM_CHIP_FLAG_TPM2) ? "2.0" : "1.2",
@@ -937,13 +937,13 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq, probe =probe_itpm (chip);if (probe <0 ) { rc = -ENODEV ; - goto out_err; + goto err_probe; }/* Figure out the capabilities */ rc =tpm_tis_read32 (priv,TPM_INTF_CAPS (priv->locality), &intfcaps);if (rc <0 ) - goto out_err; + goto err_probe;dev_dbg (dev,"TPM interface capabilities (0x%x):\n" , intfcaps);
@@ -977,10 +977,9 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq,if (tpm_get_timeouts (chip)) {dev_err (dev,"Could not get TPM timeouts and durations\n" ); rc = -ENODEV ; - goto out_err; + goto err_probe; } -tpm_chip_start (chip); chip->flags |=TPM_CHIP_FLAG_IRQ ;if (irq) { tpm_tis_probe_irq_single(chip, intmask, IRQF_SHARED,
@@ -991,18 +990,20 @@ int tpm_tis_core_init(struct device *dev, struct tpm_tis_data *priv, int irq, }else {tpm_tis_probe_irq (chip, intmask); } -tpm_chip_stop (chip); } +tpm_chip_stop (chip); + rc =tpm_chip_register (chip);if (rc) - goto out_err; - -if (chip->ops->clk_enable !=NULL ) - chip->ops->clk_enable (chip, false); + goto err_start;return 0 ; -out_err: + +err_probe: +tpm_chip_stop (chip); + +err_start:if ((chip->ops !=NULL ) && (chip->ops->clk_enable !=NULL )) chip->ops->clk_enable (chip, false);
drivers/clk/imx/clk-composite-8m.c +2 -0
@@ -142,6 +142,7 @@ struct clk *imx8m_clk_composite_flags(const char *name, mux->reg = reg; mux->shift =PCG_PCS_SHIFT ; mux->mask =PCG_PCS_MASK ; + mux->lock = &imx_ccm_lock; div =kzalloc (sizeof (*div),GFP_KERNEL );if (!div)
@@ -161,6 +162,7 @@ struct clk *imx8m_clk_composite_flags(const char *name, gate_hw = &gate->hw; gate->reg = reg; gate->bit_idx =PCG_CGC_SHIFT ; + gate->lock = &imx_ccm_lock; hw = clk_hw_register_composite(NULL, name, parent_names, num_parents, mux_hw, &clk_mux_ops, div_hw,
drivers/clk/imx/clk-imx7ulp.c +1 -0
@@ -40,6 +40,7 @@ static const struct clk_div_table ulp_div_table[] = { { .val = 5, .div = 16, }, { .val = 6, .div = 32, }, { .val = 7, .div = 64, }, + { /* sentinel */ }, }; static const int pcc2_uart_clk_ids[] __initconst = {
drivers/clk/imx/clk-pll14xx.c +1 -1
@@ -153,7 +153,7 @@ static int clk_pll14xx_wait_lock(struct clk_pll14xx *pll) {u32 val; -return readl_poll_timeout (pll->base, val, val &LOCK_TIMEOUT_US ,0 , +return readl_poll_timeout (pll->base, val, val &LOCK_STATUS ,0 ,LOCK_TIMEOUT_US ); }
drivers/cpufreq/cpufreq.c +7 -0
@@ -2634,6 +2634,13 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data)if (cpufreq_disabled ())return -ENODEV ; +/* +* The cpufreq core depends heavily on the availability of device +* structure, make sure they are available before proceeding further. +*/ +if (!get_cpu_device (0 )) +return -EPROBE_DEFER ; + if (!driver_data || !driver_data->verify || !driver_data->init || !(driver_data->setpolicy || driver_data->target_index || driver_data->target) ||
drivers/cpufreq/sun50i-cpufreq-nvmem.c +10 -15
@@ -25,7 +25,7 @@static struct platform_device *cpufreq_dt_pdev, *sun50i_cpufreq_pdev;/** -* sun50i_cpufreq_get_efuse() - Parse and return efuse value present on SoC +* sun50i_cpufreq_get_efuse() - Determine speed grade from efuse value * @versions: Set to the value parsed from efuse * * Returns 0 if success.
@@ -69,21 +69,16 @@ static int sun50i_cpufreq_get_efuse(u32 *versions)return PTR_ERR (speedbin); efuse_value = (*speedbin >>NVMEM_SHIFT ) &NVMEM_MASK ; -switch (efuse_value) { -case 0b0001 : - *versions =1 ; -break ; -case 0b0011 : - *versions =2 ; -break ; -default : -/* -* For other situations, we treat it as bin0. -* This vf table can be run for any good cpu. -*/ + +/* +* We treat unexpected efuse values as if the SoC was from +* the slowest bin. Expected efuse values are 1-3, slowest +* to fastest. +*/ +if (efuse_value >=1 && efuse_value <=3 ) + *versions = efuse_value -1 ; +else *versions =0 ; -break ; - }kfree (speedbin);return 0 ;
drivers/crypto/atmel-aes.c +9 -9
@@ -145,7 +145,7 @@ struct atmel_aes_xts_ctx {u32 key2[AES_KEYSIZE_256 /sizeof (u32)]; }; -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED(CONFIG_CRYPTO_DEV_ATMEL_AUTHENC) struct atmel_aes_authenc_ctx { struct atmel_aes_base_ctx base; struct atmel_sha_authenc_ctx *auth;
@@ -157,7 +157,7 @@ struct atmel_aes_reqctx {u32 lastc[AES_BLOCK_SIZE /sizeof (u32)]; }; -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED(CONFIG_CRYPTO_DEV_ATMEL_AUTHENC) struct atmel_aes_authenc_reqctx { struct atmel_aes_reqctx base;
@@ -486,7 +486,7 @@ static inline bool atmel_aes_is_encrypt(const struct atmel_aes_dev *dd)return (dd->flags &AES_FLAGS_ENCRYPT ); } -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )static void atmel_aes_authenc_complete (struct atmel_aes_dev *dd,int err);#endif
@@ -515,7 +515,7 @@ static void atmel_aes_set_iv_as_last_ciphertext_block(struct atmel_aes_dev *dd)static inline int atmel_aes_complete (struct atmel_aes_dev *dd,int err) { -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )if (dd->ctx->is_aead)atmel_aes_authenc_complete (dd, err);#endif
@@ -1980,7 +1980,7 @@ static struct crypto_alg aes_xts_alg = { } }; -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )/* authenc aead functions */ static int atmel_aes_authenc_start (struct atmel_aes_dev *dd);
@@ -2467,7 +2467,7 @@ static void atmel_aes_unregister_algs(struct atmel_aes_dev *dd) {int i; -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )if (dd->caps.has_authenc)for (i =0 ; i <ARRAY_SIZE (aes_authenc_algs); i++)crypto_unregister_aead (&aes_authenc_algs[i]);
@@ -2514,7 +2514,7 @@ static int atmel_aes_register_algs(struct atmel_aes_dev *dd) goto err_aes_xts_alg; } -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )if (dd->caps.has_authenc) {for (i =0 ; i <ARRAY_SIZE (aes_authenc_algs); i++) { err =crypto_register_aead (&aes_authenc_algs[i]);
@@ -2526,7 +2526,7 @@ static int atmel_aes_register_algs(struct atmel_aes_dev *dd)return 0 ; -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )/* i = ARRAY_SIZE(aes_authenc_algs); */ err_aes_authenc_alg:for (j =0 ; j < i; j++)
@@ -2716,7 +2716,7 @@ static int atmel_aes_probe(struct platform_device *pdev)atmel_aes_get_cap (aes_dd); -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )if (aes_dd->caps.has_authenc && !atmel_sha_authenc_is_ready ()) { err = -EPROBE_DEFER ; goto iclk_unprepare;
drivers/crypto/atmel-authenc.h +1 -1
@@ -12,7 +12,7 @@#ifndef __ATMEL_AUTHENC_H__#define __ATMEL_AUTHENC_H__ -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )#include <crypto/authenc.h> #include <crypto/hash.h>
drivers/crypto/atmel-sha.c +1 -1
@@ -2212,7 +2212,7 @@ static struct ahash_alg sha_hmac_algs[] = { }, }; -#ifdef CONFIG_CRYPTO_DEV_ATMEL_AUTHENC +#if IS_ENABLED (CONFIG_CRYPTO_DEV_ATMEL_AUTHENC )/* authenc functions */ static int atmel_sha_authenc_init2 (struct atmel_sha_dev *dd);
drivers/crypto/inside-secure/safexcel.c +2 -0
@@ -1120,6 +1120,8 @@ static int safexcel_request_ring_irq(void *pdev, int irqid, irq_name, irq);return irq; } + }else { +return -ENXIO ; } ret = devm_request_threaded_irq(dev, irq, handler,
drivers/crypto/sunxi-ss/sun4i-ss-cipher.c +14 -8
@@ -72,7 +72,8 @@ static int noinline_for_stack sun4i_ss_opti_poll(struct skcipher_request *areq) oi =0 ; oo =0 ; do { - todo = min3(rx_cnt, ileft, (mi.length - oi) / 4); + todo = min(rx_cnt, ileft); + todo = min_t(size_t, todo, (mi.length - oi) / 4); if (todo) { ileft -= todo; writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo);
@@ -87,7 +88,8 @@ static int noinline_for_stack sun4i_ss_opti_poll(struct skcipher_request *areq) rx_cnt =SS_RXFIFO_SPACES (spaces); tx_cnt =SS_TXFIFO_SPACES (spaces); - todo =min3 (tx_cnt, oleft, (mo.length - oo) /4 ); + todo =min (tx_cnt, oleft); + todo =min_t (size_t, todo, (mo.length - oo) /4 );if (todo) { oleft -= todo;readsl (ss->base +SS_TXFIFO , mo.addr + oo, todo);
@@ -239,7 +241,8 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)* todo is the number of consecutive 4byte word that we * can read from current SG */ - todo =min3 (rx_cnt, ileft /4 , (mi.length - oi) /4 ); + todo =min (rx_cnt, ileft /4 ); + todo =min_t (size_t, todo, (mi.length - oi) /4 );if (todo && !ob) {writesl (ss->base +SS_RXFIFO , mi.addr + oi, todo);
@@ -253,8 +256,8 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)* we need to be able to write all buf in one * pass, so it is why we min() with rx_cnt */ - todo =min3 (rx_cnt *4 - ob, ileft, - mi.length - oi); + todo =min (rx_cnt *4 - ob, ileft); + todo =min_t (size_t, todo, mi.length - oi);memcpy (buf + ob, mi.addr + oi, todo); ileft -= todo; oi += todo;
@@ -274,7 +277,8 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq) spaces =readl (ss->base +SS_FCSR ); rx_cnt =SS_RXFIFO_SPACES (spaces); tx_cnt =SS_TXFIFO_SPACES (spaces); -dev_dbg (ss->dev,"%x %u/%u %u/%u cnt=%u %u/%u %u/%u cnt=%u %u\n" , +dev_dbg (ss->dev, +"%x %u/%zu %u/%u cnt=%u %u/%zu %u/%u cnt=%u %u\n" , mode, oi, mi.length, ileft, areq->cryptlen, rx_cnt, oo, mo.length, oleft, areq->cryptlen, tx_cnt, ob);
@@ -282,7 +286,8 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)if (!tx_cnt)continue ;/* todo in 4bytes word */ - todo =min3 (tx_cnt, oleft /4 , (mo.length - oo) /4 ); + todo =min (tx_cnt, oleft /4 ); + todo =min_t (size_t, todo, (mo.length - oo) /4 );if (todo) {readsl (ss->base +SS_TXFIFO , mo.addr + oo, todo); oleft -= todo *4 ;
@@ -308,7 +313,8 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)* no more than remaining buffer * no need to test against oleft */ - todo =min (mo.length - oo, obl - obo); + todo =min_t (size_t, + mo.length - oo, obl - obo);memcpy (mo.addr + oo, bufo + obo, todo); oleft -= todo; obo += todo;
drivers/crypto/sunxi-ss/sun4i-ss-hash.c +6 -6
@@ -272,8 +272,8 @@ static int sun4i_hash(struct ahash_request *areq)*/ while (op->len <64 && i < end) {/* how many bytes we can read from current SG */ - in_r =min3 (mi.length - in_i, end - i, -64 - op->len); + in_r =min (end - i,64 - op->len); + in_r =min_t (size_t, mi.length - in_i, in_r);memcpy (op->buf + op->len, mi.addr + in_i, in_r); op->len += in_r; i += in_r;
@@ -293,8 +293,8 @@ static int sun4i_hash(struct ahash_request *areq) }if (mi.length - in_i >3 && i < end) {/* how many bytes we can read from current SG */ - in_r =min3 (mi.length - in_i, areq->nbytes - i, - ((mi.length - in_i) /4 ) *4 ); + in_r =min_t (size_t, mi.length - in_i, areq->nbytes - i); + in_r =min_t (size_t, ((mi.length - in_i) /4 ) *4 , in_r);/* how many bytes we can write in the device*/ todo =min3 ((u32)(end - i) /4 , rx_cnt, (u32 )in_r /4 );writesl (ss->base +SS_RXFIFO , mi.addr + in_i, todo);
@@ -320,8 +320,8 @@ static int sun4i_hash(struct ahash_request *areq)if ((areq->nbytes - i) <64 ) {while (i < areq->nbytes && in_i < mi.length && op->len <64 ) {/* how many bytes we can read from current SG */ - in_r =min3 (mi.length - in_i, areq->nbytes - i, -64 - op->len); + in_r =min (areq->nbytes - i,64 - op->len); + in_r =min_t (size_t, mi.length - in_i, in_r);memcpy (op->buf + op->len, mi.addr + in_i, in_r); op->len += in_r; i += in_r;
drivers/crypto/virtio/virtio_crypto_algs.c +10 -2
@@ -105,8 +105,6 @@ virtio_crypto_alg_validate_key(int key_len, uint32_t *alg) *alg =VIRTIO_CRYPTO_CIPHER_AES_CBC ;break ;default : -pr_err ("virtio_crypto: Unsupported key length: %d\n" , - key_len);return -EINVAL ; }return 0 ;
@@ -484,6 +482,11 @@ static int virtio_crypto_ablkcipher_encrypt(struct ablkcipher_request *req)/* Use the first data virtqueue as default */ struct data_queue *data_vq = &vcrypto->data_vq[0 ]; +if (!req->nbytes) +return 0 ; +if (req->nbytes %AES_BLOCK_SIZE ) +return -EINVAL ; + vc_req->dataq = data_vq; vc_req->alg_cb = virtio_crypto_dataq_sym_callback; vc_sym_req->ablkcipher_ctx = ctx;
@@ -504,6 +507,11 @@ static int virtio_crypto_ablkcipher_decrypt(struct ablkcipher_request *req)/* Use the first data virtqueue as default */ struct data_queue *data_vq = &vcrypto->data_vq[0 ]; +if (!req->nbytes) +return 0 ; +if (req->nbytes %AES_BLOCK_SIZE ) +return -EINVAL ; + vc_req->dataq = data_vq; vc_req->alg_cb = virtio_crypto_dataq_sym_callback; vc_sym_req->ablkcipher_ctx = ctx;
drivers/crypto/vmx/Makefile +3 -3
@@ -3,13 +3,13 @@ obj-$(CONFIG_CRYPTO_DEV_VMX_ENCRYPT) += vmx-crypto.o vmx-crypto-objs := vmx.o aesp8-ppc.o ghashp8-ppc.o aes.o aes_cbc.o aes_ctr.o aes_xts.o ghash.o ifeq ($(CONFIG_CPU_LITTLE_ENDIAN),y) -TARGET := linux-ppc64le +override flavour := linux-ppc64le else -TARGET := linux-ppc64 +override flavour := linux-ppc64 endif quiet_cmd_perl = PERL $@ - cmd_perl = $(PERL) $(<) $(TARGET) > $(@) + cmd_perl = $(PERL) $(<) $(flavour) > $(@) targets += aesp8-ppc.S ghashp8-ppc.S
drivers/edac/amd64_edac.c +2 -0
@@ -2936,6 +2936,7 @@ static int init_csrows_df(struct mem_ctl_info *mci) dimm->mtype = pvt->dram_type; dimm->edac_mode = edac_mode; dimm->dtype = dev_type; + dimm->grain =64 ; } }
@@ -3012,6 +3013,7 @@ static int init_csrows(struct mem_ctl_info *mci) dimm = csrow->channels[j]->dimm; dimm->mtype = pvt->dram_type; dimm->edac_mode = edac_mode; + dimm->grain =64 ; } }
drivers/edac/ghes_edac.c +8 -2
@@ -231,6 +231,7 @@ void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)/* Cleans the error report buffer */ memset (e,0 ,sizeof (*e)); e->error_count =1 ; + e->grain =1 ;strcpy (e->label,"unknown label" ); e->msg = pvt->msg; e->other_detail = pvt->other_detail;
@@ -326,7 +327,7 @@ void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)/* Error grain */ if (mem_err->validation_bits &CPER_MEM_VALID_PA_MASK ) - e->grain = ~(mem_err->physical_addr_mask & ~PAGE_MASK ); + e->grain = ~mem_err->physical_addr_mask +1 ;/* Memory error location, mapped on e->location */ p = e->location;
@@ -442,8 +443,13 @@ void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)if (p > pvt->other_detail) *(p -1 ) ='\0' ; +/* Sanity-check driver-supplied grain value. */ +if (WARN_ON_ONCE (!e->grain)) + e->grain =1 ; + + grain_bits =fls_long (e->grain -1 ); +/* Generate the trace event */ - grain_bits =fls_long (e->grain);snprintf (pvt->detail_location,sizeof (pvt->detail_location),"APEI location: %s %s" , e->location, e->other_detail); trace_mc_event(type, e->msg, e->label, e->error_count,
drivers/extcon/extcon-sm5502.c +4 -0
@@ -65,6 +65,10 @@ struct sm5502_muic_info {/* Default value of SM5502 register to bring up MUIC device. */ static struct reg_data sm5502_reg_data[] = { { + .reg =SM5502_REG_RESET , + .val =SM5502_REG_RESET_MASK , + .invert = true, + }, { .reg =SM5502_REG_CONTROL , .val =SM5502_REG_CONTROL_MASK_INT_MASK , .invert = false,
drivers/extcon/extcon-sm5502.h +2 -0
@@ -237,6 +237,8 @@ enum sm5502_reg {#define DM_DP_SWITCH_UART ((DM_DP_CON_SWITCH_UART <<SM5502_REG_MANUAL_SW1_DP_SHIFT) \ | (DM_DP_CON_SWITCH_UART <<SM5502_REG_MANUAL_SW1_DM_SHIFT)) +#define SM5502_REG_RESET_MASK (0x1) +/* SM5502 Interrupts */ enum sm5502_irq {/* INT1 */
drivers/firmware/efi/efi.c +26 -2
@@ -970,6 +970,24 @@ static int __init efi_memreserve_map_root(void)return 0 ; } +static int efi_mem_reserve_iomem (phys_addr_t addr,u64 size) +{ +struct resource *res, *parent; + + res =kzalloc (sizeof (struct resource ),GFP_ATOMIC ); +if (!res) +return -ENOMEM ; + + res->name ="reserved" ; + res->flags =IORESOURCE_MEM ; + res->start = addr; + res->end = addr + size -1 ; + +/* we expect a conflict with a 'System RAM' region */ + parent =request_resource_conflict (&iomem_resource, res); +return parent ?request_resource (parent, res) :0 ; +} +int __ref efi_mem_reserve_persistent (phys_addr_t addr,u64 size) {struct linux_efi_memreserve *rsv;
@@ -994,7 +1012,7 @@ int __ref efi_mem_reserve_persistent(phys_addr_t addr, u64 size) rsv->entry[index].size = size;memunmap (rsv); -return 0 ; +return efi_mem_reserve_iomem (addr, size); }memunmap (rsv); }
@@ -1004,6 +1022,12 @@ int __ref efi_mem_reserve_persistent(phys_addr_t addr, u64 size)if (!rsv)return -ENOMEM ; + rc =efi_mem_reserve_iomem (__pa (rsv),SZ_4K ); +if (rc) { +free_page ((unsigned long )rsv); +return rc; + } +/* * The memremap() call above assumes that a linux_efi_memreserve entry * never crosses a page boundary, so let's ensure that this remains true
@@ -1020,7 +1044,7 @@ int __ref efi_mem_reserve_persistent(phys_addr_t addr, u64 size) efi_memreserve_root->next =__pa (rsv);spin_unlock (&efi_mem_reserve_persistent_lock); -return 0 ; +return efi_mem_reserve_iomem (addr, size); }static int __init efi_memreserve_root_init (void )
drivers/fsi/fsi-core.c +27 -4
@@ -544,6 +544,31 @@ static int fsi_slave_scan(struct fsi_slave *slave)return 0 ; } +static unsigned long aligned_access_size (size_t offset,size_t count) +{ +unsigned long offset_unit, count_unit; + +/* Criteria: +* +* 1. Access size must be less than or equal to the maximum access +* width or the highest power-of-two factor of offset +* 2. Access size must be less than or equal to the amount specified by +* count +* +* The access width is optimal if we can calculate 1 to be strictly +* equal while still satisfying 2. +*/ + +/* Find 1 by the bottom bit of offset (with a 4 byte access cap) */ + offset_unit =BIT (__builtin_ctzl (offset |4 )); + +/* Find 2 by the top bit of count */ + count_unit =BIT (8 *sizeof (unsigned long ) -1 -__builtin_clzl (count)); + +/* Constrain the maximum access width to the minimum of both criteria */ +return BIT (__builtin_ctzl (offset_unit | count_unit)); +} +static ssize_t fsi_slave_sysfs_raw_read (struct file *file,struct kobject *kobj,struct bin_attribute *attr,char *buf,loff_t off,size_t count)
@@ -559,8 +584,7 @@ static ssize_t fsi_slave_sysfs_raw_read(struct file *file,return -EINVAL ;for (total_len =0 ; total_len < count; total_len += read_len) { - read_len =min_t (size_t, count,4 ); - read_len -= off &0x3 ; + read_len =aligned_access_size (off, count - total_len); rc =fsi_slave_read (slave, off, buf + total_len, read_len);if (rc)
@@ -587,8 +611,7 @@ static ssize_t fsi_slave_sysfs_raw_write(struct file *file,return -EINVAL ;for (total_len =0 ; total_len < count; total_len += write_len) { - write_len =min_t (size_t, count,4 ); - write_len -= off &0x3 ; + write_len =aligned_access_size (off, count - total_len); rc =fsi_slave_write (slave, off, buf + total_len, write_len);if (rc)
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +10 -0
@@ -859,6 +859,9 @@ static int amdgpu_debugfs_test_ib(struct seq_file *m, void *data)struct amdgpu_device *adev = dev->dev_private;int r =0 , i; +/* Avoid accidently unparking the sched thread during GPU reset */ +mutex_lock (&adev->lock_reset); +/* hold on the scheduler */ for (i =0 ; i <AMDGPU_MAX_RINGS ; i++) {struct amdgpu_ring *ring = adev->rings[i];
@@ -884,6 +887,8 @@ static int amdgpu_debugfs_test_ib(struct seq_file *m, void *data)kthread_unpark (ring->sched.thread); } +mutex_unlock (&adev->lock_reset); +return 0 ; }
@@ -1036,6 +1041,9 @@ static int amdgpu_debugfs_ib_preempt(void *data, u64 val)if (!fences)return -ENOMEM ; +/* Avoid accidently unparking the sched thread during GPU reset */ +mutex_lock (&adev->lock_reset); +/* stop the scheduler */ kthread_park (ring->sched.thread);
@@ -1075,6 +1083,8 @@ static int amdgpu_debugfs_ib_preempt(void *data, u64 val)/* restart the scheduler */ kthread_unpark (ring->sched.thread); +mutex_unlock (&adev->lock_reset); +ttm_bo_unlock_delayed_workqueue (&adev->mman.bdev, resched);if (fences)
drivers/gpu/drm/amd/amdgpu/amdgpu_test.c +2 -0
@@ -138,6 +138,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev) }dma_fence_put (fence); + fence =NULL ; r =amdgpu_bo_kmap (vram_obj, &vram_map);if (r) {
@@ -183,6 +184,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev) }dma_fence_put (fence); + fence =NULL ; r =amdgpu_bo_kmap (gtt_obj[i], >t_map);if (r) {
drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +9 -9
@@ -170,7 +170,7 @@ TRACE_EVENT(amdgpu_cs_ioctl, __field(unsigned int, context) __field(unsigned int, seqno) __field(struct dma_fence *, fence) - __field(char *, ring_name) + __string(ring, to_amdgpu_ring(job->base.sched)->name) __field(u32, num_ibs) ),
@@ -179,12 +179,12 @@ TRACE_EVENT(amdgpu_cs_ioctl,__assign_str (timeline,AMDGPU_JOB_GET_TIMELINE_NAME (job)) __entry->context = job->base.s_fence->finished.context; __entry->seqno = job->base.s_fence->finished.seqno; - __entry->ring_name =to_amdgpu_ring (job->base.sched)->name; +__assign_str (ring,to_amdgpu_ring (job->base.sched)->name) __entry->num_ibs = job->num_ibs; ),TP_printk ("sched_job=%llu, timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u" , __entry->sched_job_id,__get_str (timeline), __entry->context, - __entry->seqno, __entry->ring_name, __entry->num_ibs) + __entry->seqno,__get_str (ring), __entry->num_ibs) ); TRACE_EVENT(amdgpu_sched_run_job,
@@ -195,7 +195,7 @@ TRACE_EVENT(amdgpu_sched_run_job, __string(timeline, AMDGPU_JOB_GET_TIMELINE_NAME(job)) __field(unsigned int, context) __field(unsigned int, seqno) - __field(char *, ring_name) + __string(ring, to_amdgpu_ring(job->base.sched)->name) __field(u32, num_ibs) ),
@@ -204,12 +204,12 @@ TRACE_EVENT(amdgpu_sched_run_job,__assign_str (timeline,AMDGPU_JOB_GET_TIMELINE_NAME (job)) __entry->context = job->base.s_fence->finished.context; __entry->seqno = job->base.s_fence->finished.seqno; - __entry->ring_name =to_amdgpu_ring (job->base.sched)->name; +__assign_str (ring,to_amdgpu_ring (job->base.sched)->name) __entry->num_ibs = job->num_ibs; ),TP_printk ("sched_job=%llu, timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u" , __entry->sched_job_id,__get_str (timeline), __entry->context, - __entry->seqno, __entry->ring_name, __entry->num_ibs) + __entry->seqno,__get_str (ring), __entry->num_ibs) );
@@ -468,7 +468,7 @@ TRACE_EVENT(amdgpu_ib_pipe_sync, TP_PROTO(struct amdgpu_job *sched_job, struct dma_fence *fence),TP_ARGS (sched_job, fence),TP_STRUCT__entry ( - __field(const char *,name) + __string(ring, sched_job->base.sched->name);__field (uint64_t ,id ) __field(struct dma_fence *, fence) __field(uint64_t, ctx)
@@ -476,14 +476,14 @@ TRACE_EVENT(amdgpu_ib_pipe_sync, ),TP_fast_assign ( - __entry->name = sched_job->base.sched->name; +__assign_str (ring, sched_job->base.sched->name) __entry->id = sched_job->base.id; __entry->fence = fence; __entry->ctx = fence->context; __entry->seqno = fence->seqno; ),TP_printk ("job ring=%s, id=%llu, need pipe sync to fence=%p, context=%llu, seq=%u" , - __entry->name, __entry->id, +__get_str (ring), __entry->id, __entry->fence, __entry->ctx, __entry->seqno) );
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +9 -3
@@ -1034,10 +1034,8 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ id->oa_base != job->oa_base || id->oa_size != job->oa_size);bool vm_flush_needed = job->vm_needs_flush; -bool pasid_mapping_needed = id->pasid != job->pasid || - !id->pasid_mapping || - !dma_fence_is_signaled (id->pasid_mapping);struct dma_fence *fence =NULL ; +bool pasid_mapping_needed = false;unsigned patch_offset =0 ;int r;
@@ -1047,6 +1045,12 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ pasid_mapping_needed = true; } +mutex_lock (&id_mgr->lock); +if (id->pasid != job->pasid || !id->pasid_mapping || + !dma_fence_is_signaled (id->pasid_mapping)) + pasid_mapping_needed = true; +mutex_unlock (&id_mgr->lock); + gds_switch_needed &= !!ring->funcs->emit_gds_switch; vm_flush_needed &= !!ring->funcs->emit_vm_flush && job->vm_pd_addr !=AMDGPU_BO_INVALID_OFFSET ;
@@ -1086,9 +1090,11 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, bool need_ }if (pasid_mapping_needed) { +mutex_lock (&id_mgr->lock); id->pasid = job->pasid;dma_fence_put (id->pasid_mapping); id->pasid_mapping =dma_fence_get (fence); +mutex_unlock (&id_mgr->lock); }dma_fence_put (fence);
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +2 -1
@@ -2930,7 +2930,8 @@ static void gfx_v9_0_init_pg(struct amdgpu_device *adev)* And it's needed by gfxoff feature. */ if (adev->gfx.rlc.is_rlc_v2_1) { -gfx_v9_1_init_rlc_save_restore_list (adev); +if (adev->asic_type ==CHIP_VEGA12 ) +gfx_v9_1_init_rlc_save_restore_list (adev);gfx_v9_0_enable_save_restore_machine (adev); }
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c +34 -27
79 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/si_ih.c +2 -1
@@ -64,7 +64,8 @@ static int si_ih_irq_init(struct amdgpu_device *adev)u32 interrupt_cntl, ih_cntl, ih_rb_cntl;si_ih_disable_interrupts (adev); -WREG32 (INTERRUPT_CNTL2 , adev->irq.ih.gpu_addr >>8 ); +/* set dummy read address to dummy page address */ +WREG32 (INTERRUPT_CNTL2 , adev->dummy_page_addr >>8 ); interrupt_cntl =RREG32 (INTERRUPT_CNTL ); interrupt_cntl &= ~IH_DUMMY_RD_OVERRIDE ; interrupt_cntl &= ~IH_REQ_NONSNOOP_EN ;
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +2 -1
@@ -1676,7 +1676,8 @@ static int allocate_hiq_sdma_mqd(struct device_queue_manager *dqm)struct kfd_dev *dev = dqm->dev;struct kfd_mem_obj *mem_obj = &dqm->hiq_sdma_mqd;uint32_t size = dqm->mqd_mgrs[KFD_MQD_TYPE_SDMA ]->mqd_size * - dev->device_info->num_sdma_engines * + (dev->device_info->num_sdma_engines + + dev->device_info->num_xgmi_sdma_engines) * dev->device_info->num_sdma_queues_per_engine + dqm->mqd_mgrs[KFD_MQD_TYPE_HIQ ]->mqd_size;
drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c +5 -0
@@ -62,6 +62,11 @@ int kfd_interrupt_init(struct kfd_dev *kfd) } kfd->ih_wq =alloc_workqueue ("KFD IH" ,WQ_HIGHPRI ,1 ); +if (unlikely (!kfd->ih_wq)) { +kfifo_free (&kfd->ih_fifo); +dev_err (kfd_chardev (),"Failed to allocate KFD IH workqueue\n" ); +return -ENOMEM ; + }spin_lock_init (&kfd->interrupt_lock);INIT_WORK (&kfd->interrupt_work, interrupt_wq);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -0
@@ -940,6 +940,11 @@ static int dm_late_init(void *handle) params.backlight_lut_array_size =16 ; params.backlight_lut_array = linear_lut; +/* Min backlight level after ABM reduction, Don't allow below 1% +* 0xFFFF x 0.01 = 0x28F +*/ + params.min_abm_backlight =0x28F ; +/* todo will enable for navi10 */ if (adev->asic_type <=CHIP_RAVEN ) { ret =dmcu_load_iram (dmcu, params);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c +8 -2
@@ -320,6 +320,8 @@ void dcn2_update_clocks_fpga(struct clk_mgr *clk_mgr, struct dc_state *context, bool safe_to_lower) { +struct clk_mgr_internal *clk_mgr_int =TO_CLK_MGR_INTERNAL (clk_mgr); +struct dc_clocks *new_clocks = &context->bw_ctx.bw.dcn.clk;/* Min fclk = 1.2GHz since all the extra scemi logic seems to run off of it */ int fclk_adj = new_clocks->fclk_khz >1200000 ? new_clocks->fclk_khz :1200000 ;
@@ -357,14 +359,18 @@ void dcn2_update_clocks_fpga(struct clk_mgr *clk_mgr, clk_mgr->clks.dispclk_khz = new_clocks->dispclk_khz; } -/* Both fclk and dppclk ref are run on the same scemi clock so we -* need to keep the same value for both +/* Both fclk and ref_dppclk run on the same scemi clock. +* So take the higher value since the DPP DTO is typically programmed +* such that max dppclk is 1:1 with ref_dppclk. */ if (clk_mgr->clks.fclk_khz > clk_mgr->clks.dppclk_khz) clk_mgr->clks.dppclk_khz = clk_mgr->clks.fclk_khz;if (clk_mgr->clks.dppclk_khz > clk_mgr->clks.fclk_khz) clk_mgr->clks.fclk_khz = clk_mgr->clks.dppclk_khz; +// Both fclk and ref_dppclk run on the same scemi clock. + clk_mgr_int->dccg->ref_dppclk = clk_mgr->clks.fclk_khz; +dm_set_dcn_clocks (clk_mgr->ctx, &clk_mgr->clks); }
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c +1 -1
@@ -33,7 +33,7 @@#include "mp/mp_12_0_0_sh_mask.h" #define REG (reg_name) \ - (MP1_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name) + (MP0_BASE.instance[0].segment[mm ## reg_name ## _BASE_IDX] + mm ## reg_name)#define FN (reg_name, field) \ FD(reg_name##__##field)
drivers/gpu/drm/amd/display/dc/core/dc_link.c +14 -3
@@ -2169,8 +2169,10 @@ static void disable_link(struct dc_link *link, enum signal_type signal) dp_set_fec_ready(link, false); }#endif - }else - link->link_enc->funcs->disable_output (link->link_enc, signal); + }else { +if (signal !=SIGNAL_TYPE_VIRTUAL ) + link->link_enc->funcs->disable_output (link->link_enc, signal); + }if (signal ==SIGNAL_TYPE_DISPLAY_PORT_MST ) {/* MST disable link only when no stream use the link */
@@ -2217,7 +2219,7 @@ static bool dp_active_dongle_validate_timing(break ; } -if (dongle_caps->dongle_type !=DISPLAY_DONGLE_DP_HDMI_CONVERTER || +if (dpcd_caps->dongle_type !=DISPLAY_DONGLE_DP_HDMI_CONVERTER || dongle_caps->extendedCapValid == false)return true;
@@ -2767,6 +2769,15 @@ void core_link_enable_stream( CONTROLLER_DP_TEST_PATTERN_VIDEOMODE, COLOR_DEPTH_UNDEFINED); +/* This second call is needed to reconfigure the DIG +* as a workaround for the incorrect value being applied +* from transmitter control. +*/ +if (!dc_is_virtual_signal (pipe_ctx->stream->signal)) + stream->link->link_enc->funcs->setup ( + stream->link->link_enc, + pipe_ctx->stream->signal); +#ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT if (pipe_ctx->stream->timing.flags.DSC) { if (dc_is_dp_signal(pipe_ctx->stream->signal) ||
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +2 -0
@@ -2545,6 +2545,7 @@ static void get_active_converter_info( uint8_t data, struct dc_link *link) { union dp_downstream_port_present ds_port = { .byte = data }; +memset (&link->dpcd_caps.dongle_caps,0 ,sizeof (link->dpcd_caps.dongle_caps));/* decode converter info*/ if (!ds_port.fields.PORT_PRESENT) {
@@ -2691,6 +2692,7 @@ static void dp_wa_power_up_0010FA(struct dc_link *link, uint8_t *dpcd_data,* keep receiver powered all the time.*/ case DP_BRANCH_DEVICE_ID_0010FA :case DP_BRANCH_DEVICE_ID_0080E1 : +case DP_BRANCH_DEVICE_ID_00E04C : link->wa_flags.dp_keep_receiver_powered = true;break ;
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c +2 -1
@@ -277,7 +277,8 @@ void dp_retrain_link_dp_test(struct dc_link *link,if (pipes[i].stream !=NULL && !pipes[i].top_pipe && !pipes[i].prev_odm_pipe && pipes[i].stream->link !=NULL && - pipes[i].stream_res.stream_enc !=NULL ) { + pipes[i].stream_res.stream_enc !=NULL && + pipes[i].stream->link == link) {udelay (100 ); pipes[i].stream_res.stream_enc->funcs->dp_blank(
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +2 -2
@@ -423,10 +423,10 @@ bool dc_stream_add_writeback(struct dc *dc,if (dwb->funcs->is_enabled (dwb)) {/* writeback pipe already enabled, only need to update */ - dc->hwss.update_writeback (dc, stream_status, wb_info); + dc->hwss.update_writeback (dc, stream_status, wb_info, dc->current_state); }else {/* Enable writeback pipe from scratch*/ - dc->hwss.enable_writeback (dc, stream_status, wb_info); + dc->hwss.enable_writeback (dc, stream_status, wb_info, dc->current_state); } }
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c +3 -0
@@ -77,6 +77,9 @@ static bool dce_abm_set_pipe(struct abm *abm, uint32_t controller_id)/* notifyDMCUMsg */ REG_UPDATE (MASTER_COMM_CNTL_REG ,MASTER_COMM_INTERRUPT ,1 ); +REG_WAIT (MASTER_COMM_CNTL_REG ,MASTER_COMM_INTERRUPT ,0 , +1 ,80000 ); +return true; }
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +3 -2
@@ -1356,7 +1356,8 @@ bool dcn20_update_bandwidth(static void dcn20_enable_writeback (struct dc *dc,const struct dc_stream_status *stream_status, -struct dc_writeback_info *wb_info) +struct dc_writeback_info *wb_info, +struct dc_state *context) {struct dwbc *dwb;struct mcif_wb *mcif_wb;
@@ -1373,7 +1374,7 @@ static void dcn20_enable_writeback( optc->funcs->set_dwb_source (optc, wb_info->dwb_pipe_inst);/* set MCIF_WB buffer and arbitration configuration */ mcif_wb->funcs->config_mcif_buf (mcif_wb, &wb_info->mcif_buf_params, wb_info->dwb_params.dest_height); - mcif_wb->funcs->config_mcif_arb (mcif_wb, &dc->current_state->bw_ctx.bw.dcn.bw_writeback.mcif_wb_arb[wb_info->dwb_pipe_inst]); + mcif_wb->funcs->config_mcif_arb (mcif_wb, &context->bw_ctx.bw.dcn.bw_writeback.mcif_wb_arb[wb_info->dwb_pipe_inst]);/* Enable MCIF_WB */ mcif_wb->funcs->enable_mcif (mcif_wb);/* Enable DWB */
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c +4 -0
@@ -287,6 +287,10 @@ void optc2_get_optc_source(struct timing_generator *optc, *num_of_src_opp =2 ; else *num_of_src_opp =1 ; + +/* Work around VBIOS not updating OPTC_NUM_OF_INPUT_SEGMENT */ +if (*src_opp_id_1 ==0xf ) + *num_of_src_opp =1 ; } void optc2_set_dwb_source(struct timing_generator *optc,
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +5 -2
@@ -1765,7 +1765,7 @@ int dcn20_populate_dml_pipes_from_context( pipe_cnt = i;continue ; } -if (!resource_are_streams_timing_synchronizable ( +if (dc->debug.disable_timing_sync || !resource_are_streams_timing_synchronizable ( res_ctx->pipe_ctx[pipe_cnt].stream, res_ctx->pipe_ctx[i].stream)) { synchronized_vblank = false;
@@ -2474,6 +2474,7 @@ bool dcn20_fast_validate_bw( &context->res_ctx, dc->res_pool, pipe, hsplit_pipe)) goto validate_fail; +dcn20_build_mapped_resource (dc, context, pipe->stream); }else dcn20_split_stream_for_mpc( &context->res_ctx, dc->res_pool,
@@ -3040,7 +3041,7 @@ static void cap_soc_clocks(static void update_bounding_box (struct dc *dc,struct _vcs_dpi_soc_bounding_box_st *bb,struct pp_smu_nv_clock_table *max_clocks,unsigned int *uclk_states,unsigned int num_states) { -struct _vcs_dpi_voltage_scaling_st calculated_states[MAX_CLOCK_LIMIT_STATES ] = {0 }; +struct _vcs_dpi_voltage_scaling_st calculated_states[MAX_CLOCK_LIMIT_STATES ];int i;int num_calculated_states =0 ;int min_dcfclk =0 ;
@@ -3048,6 +3049,8 @@ static void update_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_if (num_states ==0 )return ; +memset (calculated_states,0 ,sizeof (calculated_states)); +if (dc->bb_overrides.min_dcfclk_mhz >0 ) min_dcfclk = dc->bb_overrides.min_dcfclk_mhz;else
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c +25 -15
@@ -22,6 +22,7 @@* Authors: AMD * */ +#include <linux/delay.h> #include "dm_services.h" #include "dcn20/dcn20_hubbub.h" #include "dcn21_hubbub.h"
@@ -71,30 +72,39 @@ static uint32_t convert_and_clamp(void dcn21_dchvm_init (struct hubbub *hubbub) {struct dcn20_hubbub *hubbub1 =TO_DCN20_HUBBUB (hubbub); +uint32_t riommu_active; +int i;//Init DCHVM block REG_UPDATE (DCHVM_CTRL0 ,HOSTVM_INIT_REQ ,1 );//Poll until RIOMMU_ACTIVE = 1 -//TODO: Figure out interval us and retry count -REG_WAIT (DCHVM_RIOMMU_STAT0 ,RIOMMU_ACTIVE ,1 ,5 ,100 ); +for (i =0 ; i <100 ; i++) { +REG_GET (DCHVM_RIOMMU_STAT0 ,RIOMMU_ACTIVE , &riommu_active); -//Reflect the power status of DCHUBBUB -REG_UPDATE (DCHVM_RIOMMU_CTRL0 ,HOSTVM_POWERSTATUS ,1 ); +if (riommu_active) +break ; +else +udelay (5 ); + } + +if (riommu_active) { +//Reflect the power status of DCHUBBUB +REG_UPDATE (DCHVM_RIOMMU_CTRL0 ,HOSTVM_POWERSTATUS ,1 ); -//Start rIOMMU prefetching -REG_UPDATE (DCHVM_RIOMMU_CTRL0 ,HOSTVM_PREFETCH_REQ ,1 ); +//Start rIOMMU prefetching +REG_UPDATE (DCHVM_RIOMMU_CTRL0 ,HOSTVM_PREFETCH_REQ ,1 ); -// Enable dynamic clock gating -REG_UPDATE_4 (DCHVM_CLK_CTRL , -HVM_DISPCLK_R_GATE_DIS ,0 , -HVM_DISPCLK_G_GATE_DIS ,0 , -HVM_DCFCLK_R_GATE_DIS ,0 , -HVM_DCFCLK_G_GATE_DIS ,0 ); +// Enable dynamic clock gating +REG_UPDATE_4 (DCHVM_CLK_CTRL , +HVM_DISPCLK_R_GATE_DIS ,0 , +HVM_DISPCLK_G_GATE_DIS ,0 , +HVM_DCFCLK_R_GATE_DIS ,0 , +HVM_DCFCLK_G_GATE_DIS ,0 ); -//Poll until HOSTVM_PREFETCH_DONE = 1 -//TODO: Figure out interval us and retry count -REG_WAIT (DCHVM_RIOMMU_STAT0 ,HOSTVM_PREFETCH_DONE ,1 ,5 ,100 ); +//Poll until HOSTVM_PREFETCH_DONE = 1 +REG_WAIT (DCHVM_RIOMMU_STAT0 ,HOSTVM_PREFETCH_DONE ,1 ,5 ,100 ); + } } static int hubbub21_init_dchub(struct hubbub *hubbub,
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h +4 -2
@@ -321,10 +321,12 @@ struct hw_sequencer_funcs { struct dc_state *context);void (*update_writeback)(struct dc *dc,const struct dc_stream_status *stream_status, -struct dc_writeback_info *wb_info); +struct dc_writeback_info *wb_info, +struct dc_state *context);void (*enable_writeback)(struct dc *dc,const struct dc_stream_status *stream_status, -struct dc_writeback_info *wb_info); +struct dc_writeback_info *wb_info, +struct dc_state *context);void (*disable_writeback)(struct dc *dc,unsigned int dwb_pipe_inst);#endif
drivers/gpu/drm/amd/display/include/ddc_service_types.h +2 -0
@@ -31,6 +31,8 @@#define DP_BRANCH_DEVICE_ID_0022B9 0x0022B9#define DP_BRANCH_DEVICE_ID_00001A 0x00001A#define DP_BRANCH_DEVICE_ID_0080E1 0x0080e1 +#define DP_BRANCH_DEVICE_ID_90CC24 0x90CC24 +#define DP_BRANCH_DEVICE_ID_00E04C 0x00E04Cenum ddc_result {DDC_RESULT_UNKNOWN =0 ,
drivers/gpu/drm/amd/display/modules/freesync/freesync.c +8 -5
@@ -743,6 +743,10 @@ void mod_freesync_build_vrr_params(struct mod_freesync *mod_freesync, nominal_field_rate_in_uhz =mod_freesync_calc_nominal_field_rate (stream); +/* Rounded to the nearest Hz */ + nominal_field_rate_in_uhz =1000000ULL * +div_u64 (nominal_field_rate_in_uhz +500000 ,1000000 ); + min_refresh_in_uhz = in_config->min_refresh_in_uhz; max_refresh_in_uhz = in_config->max_refresh_in_uhz;
@@ -996,14 +1000,13 @@ unsigned long long mod_freesync_calc_nominal_field_rate( const struct dc_stream_state *stream) {unsigned long long nominal_field_rate_in_uhz =0 ; +unsigned int total = stream->timing.h_total * stream->timing.v_total; -/* Calculate nominal field rate for stream */ +/* Calculate nominal field rate for stream, rounded up to nearest integer */ nominal_field_rate_in_uhz = stream->timing.pix_clk_100hz /10 ; nominal_field_rate_in_uhz *=1000ULL *1000ULL *1000ULL ; - nominal_field_rate_in_uhz =div_u64 (nominal_field_rate_in_uhz, - stream->timing.h_total); - nominal_field_rate_in_uhz =div_u64 (nominal_field_rate_in_uhz, - stream->timing.v_total); + + nominal_field_rate_in_uhz =div_u64 (nominal_field_rate_in_uhz, total);return nominal_field_rate_in_uhz; }
drivers/gpu/drm/amd/display/modules/power/power_helpers.c +43 -34
121 lines not on this page · raw message
drivers/gpu/drm/amd/display/modules/power/power_helpers.h +1 -0
@@ -38,6 +38,7 @@ struct dmcu_iram_parameters {unsigned int backlight_lut_array_size;unsigned int backlight_ramping_reduction;unsigned int backlight_ramping_start; +unsigned int min_abm_backlight;unsigned int set; };
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +4 -1
@@ -1344,7 +1344,10 @@ static int smu_suspend(void *handle)int ret;struct amdgpu_device *adev = (struct amdgpu_device *)handle;struct smu_context *smu = &adev->smu; -bool baco_feature_is_enabled =smu_feature_is_enabled (smu,SMU_FEATURE_BACO_BIT ); +bool baco_feature_is_enabled = false; + +if (!(adev->flags &AMD_IS_APU )) + baco_feature_is_enabled =smu_feature_is_enabled (smu,SMU_FEATURE_BACO_BIT ); ret =smu_system_features_control (smu, false);if (ret)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c +7 -5
@@ -29,7 +29,7 @@#include "vega20_baco.h" #include "vega20_smumgr.h" - +#include "amdgpu_ras.h" static const struct soc15_baco_cmd_entry clean_baco_tbl[] = {
@@ -74,6 +74,7 @@ int vega20_baco_get_state(struct pp_hwmgr *hwmgr, enum BACO_STATE *state)int vega20_baco_set_state (struct pp_hwmgr *hwmgr,enum BACO_STATE state) {struct amdgpu_device *adev = (struct amdgpu_device *)(hwmgr->adev); +struct amdgpu_ras *ras =amdgpu_ras_get_context (adev);enum BACO_STATE cur_state;uint32_t data;
@@ -84,10 +85,11 @@ int vega20_baco_set_state(struct pp_hwmgr *hwmgr, enum BACO_STATE state)return 0 ;if (state ==BACO_STATE_IN ) { - data =RREG32_SOC15 (THM ,0 , mmTHM_BACO_CNTL); - data |=0x80000000 ; -WREG32_SOC15 (THM ,0 , mmTHM_BACO_CNTL, data); - +if (!ras || !ras->supported) { + data =RREG32_SOC15 (THM ,0 , mmTHM_BACO_CNTL); + data |=0x80000000 ; +WREG32_SOC15 (THM ,0 , mmTHM_BACO_CNTL, data); + }if (smum_send_msg_to_smc_with_parameter (hwmgr, PPSMC_MSG_EnterBaco,0 ))return -EINVAL ;
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +3 -1
@@ -183,11 +183,13 @@ static int renoir_print_clk_levels(struct smu_context *smu,int i, size =0 , ret =0 ;uint32_t cur_value =0 , value =0 , count =0 , min =0 , max =0 ;DpmClocks_t *clk_table = smu->smu_table.clocks_table; -SmuMetrics_t metrics = {0 }; +SmuMetrics_t metrics;if (!clk_table || clk_type >=SMU_CLK_COUNT )return -EINVAL ; +memset (&metrics,0 ,sizeof (metrics)); + ret =smu_update_table (smu,SMU_TABLE_SMU_METRICS ,0 , (void *)&metrics, false);if (ret)
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c +2 -0
@@ -250,6 +250,7 @@ komeda_crtc_atomic_enable(struct drm_crtc *crtc, {komeda_crtc_prepare (to_kcrtc (crtc));drm_crtc_vblank_on (crtc); +WARN_ON (drm_crtc_vblank_get (crtc));komeda_crtc_do_flush (crtc, old); }
@@ -319,6 +320,7 @@ komeda_crtc_atomic_disable(struct drm_crtc *crtc, } } +drm_crtc_vblank_put (crtc);drm_crtc_vblank_off (crtc);komeda_crtc_unprepare (kcrtc); }
drivers/gpu/drm/bridge/analogix-anx78xx.c +6 -2
@@ -715,7 +715,9 @@ static int anx78xx_init_pdata(struct anx78xx *anx78xx)/* 1.0V digital core power regulator */ pdata->dvdd10 =devm_regulator_get (dev,"dvdd10" );if (IS_ERR (pdata->dvdd10)) { -DRM_ERROR ("DVDD10 regulator not found\n" ); +if (PTR_ERR (pdata->dvdd10) != -EPROBE_DEFER ) +DRM_ERROR ("DVDD10 regulator not found\n" ); +return PTR_ERR (pdata->dvdd10); }
@@ -1332,7 +1334,9 @@ static int anx78xx_i2c_probe(struct i2c_client *client, err =anx78xx_init_pdata (anx78xx);if (err) { -DRM_ERROR ("Failed to initialize pdata: %d\n" , err); +if (err != -EPROBE_DEFER ) +DRM_ERROR ("Failed to initialize pdata: %d\n" , err); +return err; }
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +11 -1
@@ -36,6 +36,7 @@#include "dw-hdmi-cec.h" #include "dw-hdmi.h" +#define DDC_CI_ADDR 0x37#define DDC_SEGMENT_ADDR 0x30#define HDMI_EDID_LEN 512
@@ -398,6 +399,15 @@ static int dw_hdmi_i2c_xfer(struct i2c_adapter *adap,u8 addr = msgs[0 ].addr;int i, ret =0 ; +if (addr ==DDC_CI_ADDR ) +/* +* The internal I2C controller does not support the multi-byte +* read and write operations needed for DDC/CI. +* TOFIX: Blacklist the DDC/CI address until we filter out +* unsupported I2C operations. +*/ +return -EOPNOTSUPP ; +dev_dbg (hdmi->dev,"xfer: num: %d, addr: %#x\n" , num, addr);for (i =0 ; i < num; i++) {
@@ -2023,7 +2033,7 @@ static int dw_hdmi_setup(struct dw_hdmi *hdmi, struct drm_display_mode *mode)/* HDMI Initialization Step E - Configure audio */ hdmi_clk_regenerator_update_pixel_clock (hdmi); -hdmi_enable_audio_clk (hdmi, true); +hdmi_enable_audio_clk (hdmi, hdmi->audio_enable); }/* not for DVI mode */
drivers/gpu/drm/drm_edid.c +3 -3
@@ -3722,7 +3722,7 @@ cea_db_offsets(const u8 *cea, int *start, int *end)if (*end <4 || *end >127 )return -ERANGE ; }else { -return -ENOTSUPP ; +return -EOPNOTSUPP ; }return 0 ;
@@ -4191,7 +4191,7 @@ int drm_edid_to_sad(struct edid *edid, struct cea_sad **sads)if (cea_revision (cea) <3 ) {DRM_DEBUG_KMS ("SAD: wrong CEA revision\n" ); -return -ENOTSUPP ; +return -EOPNOTSUPP ; }if (cea_db_offsets (cea, &start, &end)) {
@@ -4252,7 +4252,7 @@ int drm_edid_to_speaker_allocation(struct edid *edid, u8 **sadb)if (cea_revision (cea) <3 ) {DRM_DEBUG_KMS ("SAD: wrong CEA revision\n" ); -return -ENOTSUPP ; +return -EOPNOTSUPP ; }if (cea_db_offsets (cea, &start, &end)) {
drivers/gpu/drm/drm_mipi_dbi.c +2 -3
@@ -955,7 +955,7 @@ static int mipi_dbi_typec1_command(struct mipi_dbi *dbi, u8 *cmd,int ret;if (mipi_dbi_command_is_read (dbi, *cmd)) -return -ENOTSUPP ; +return -EOPNOTSUPP ;MIPI_DBI_DEBUG_COMMAND (*cmd, parameters, num);
@@ -1187,8 +1187,7 @@ static ssize_t mipi_dbi_debugfs_command_write(struct file *file,struct mipi_dbi_dev *dbidev = m->private;u8 val, cmd =0 , parameters[64 ];char *buf, *pos, *token; -unsigned int i; -int ret, idx; +int i, ret, idx;if (!drm_dev_enter (&dbidev->drm, &idx))return -ENODEV ;
drivers/gpu/drm/drm_vblank.c +3 -3
@@ -1581,7 +1581,7 @@ int drm_wait_vblank_ioctl(struct drm_device *dev, void *data,unsigned int flags, pipe, high_pipe;if (!dev->irq_enabled) -return -EINVAL ; +return -EOPNOTSUPP ;if (vblwait->request.type & _DRM_VBLANK_SIGNAL)return -EINVAL ;
@@ -1838,7 +1838,7 @@ int drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data,return -EOPNOTSUPP ;if (!dev->irq_enabled) -return -EINVAL ; +return -EOPNOTSUPP ; crtc =drm_crtc_find (dev, file_priv, get_seq->crtc_id);if (!crtc)
@@ -1896,7 +1896,7 @@ int drm_crtc_queue_sequence_ioctl(struct drm_device *dev, void *data,return -EOPNOTSUPP ;if (!dev->irq_enabled) -return -EINVAL ; +return -EOPNOTSUPP ; crtc =drm_crtc_find (dev, file_priv, queue_seq->crtc_id);if (!crtc)
drivers/gpu/drm/exynos/exynos_hdmi.c +18 -13
@@ -852,6 +852,10 @@ static enum drm_connector_status hdmi_detect(struct drm_connector *connector,static void hdmi_connector_destroy (struct drm_connector *connector) { +struct hdmi_context *hdata =connector_to_hdmi (connector); + +cec_notifier_conn_unregister (hdata->notifier); +drm_connector_unregister (connector);drm_connector_cleanup (connector); }
@@ -935,6 +939,7 @@ static int hdmi_create_connector(struct drm_encoder *encoder) {struct hdmi_context *hdata =encoder_to_hdmi (encoder);struct drm_connector *connector = &hdata->connector; +struct cec_connector_info conn_info;int ret; connector->interlace_allowed = true;
@@ -957,6 +962,15 @@ static int hdmi_create_connector(struct drm_encoder *encoder)DRM_DEV_ERROR (hdata->dev,"Failed to attach bridge\n" ); } +cec_fill_conn_info_from_drm (&conn_info, connector); + + hdata->notifier =cec_notifier_conn_register (hdata->dev,NULL , + &conn_info); +if (!hdata->notifier) { + ret = -ENOMEM ; +DRM_DEV_ERROR (hdata->dev,"Failed to allocate CEC notifier\n" ); + } +return ret; }
@@ -1528,8 +1542,8 @@ static void hdmi_disable(struct drm_encoder *encoder)*/ mutex_unlock (&hdata->mutex);cancel_delayed_work (&hdata->hotplug_work); -cec_notifier_set_phys_addr (hdata->notifier, -CEC_PHYS_ADDR_INVALID ); +if (hdata->notifier) +cec_notifier_phys_addr_invalidate (hdata->notifier);return ; }
@@ -2006,12 +2020,6 @@ static int hdmi_probe(struct platform_device *pdev) } } - hdata->notifier =cec_notifier_get (&pdev->dev); -if (hdata->notifier ==NULL ) { - ret = -ENOMEM ; - goto err_hdmiphy; - } -pm_runtime_enable (dev); audio_infoframe = &hdata->audio.infoframe;
@@ -2023,7 +2031,7 @@ static int hdmi_probe(struct platform_device *pdev) ret =hdmi_register_audio_device (hdata);if (ret) - goto err_notifier_put; + goto err_rpm_disable; ret =component_add (&pdev->dev, &hdmi_component_ops);if (ret)
@@ -2034,8 +2042,7 @@ static int hdmi_probe(struct platform_device *pdev) err_unregister_audio:platform_device_unregister (hdata->audio.pdev); -err_notifier_put: -cec_notifier_put (hdata->notifier); +err_rpm_disable:pm_runtime_disable (dev); err_hdmiphy:
@@ -2054,12 +2061,10 @@ static int hdmi_remove(struct platform_device *pdev)struct hdmi_context *hdata =platform_get_drvdata (pdev);cancel_delayed_work_sync (&hdata->hotplug_work); -cec_notifier_set_phys_addr (hdata->notifier,CEC_PHYS_ADDR_INVALID );component_del (&pdev->dev, &hdmi_component_ops);platform_device_unregister (hdata->audio.pdev); -cec_notifier_put (hdata->notifier);pm_runtime_disable (&pdev->dev);if (!IS_ERR (hdata->reg_hdmi_en))
drivers/gpu/drm/gma500/oaktrail_crtc.c +2 -0
@@ -129,6 +129,7 @@ static bool mrst_sdvo_find_best_pll(const struct gma_limit_t *limit,s32 freq_error, min_error =100000 ;memset (best_clock,0 ,sizeof (*best_clock)); +memset (&clock,0 ,sizeof (clock));for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { for (clock.n = limit->n.min; clock.n <= limit->n.max;
@@ -185,6 +186,7 @@ static bool mrst_lvds_find_best_pll(const struct gma_limit_t *limit,int err = target;memset (best_clock,0 ,sizeof (*best_clock)); +memset (&clock,0 ,sizeof (clock));for (clock.m = limit->m.min; clock.m <= limit->m.max; clock.m++) { for (clock.p1 = limit->p1.min; clock.p1 <= limit->p1.max;
drivers/gpu/drm/meson/meson_vclk.c +7 -2
@@ -638,13 +638,18 @@ static bool meson_hdmi_pll_validate_params(struct meson_drm *priv,if (frac >=HDMI_FRAC_MAX_GXBB )return false; }else if (meson_vpu_is_compatible (priv,VPU_COMPATIBLE_GXM ) || -meson_vpu_is_compatible (priv,VPU_COMPATIBLE_GXL ) || -meson_vpu_is_compatible (priv,VPU_COMPATIBLE_G12A )) { +meson_vpu_is_compatible (priv,VPU_COMPATIBLE_GXL )) {/* Empiric supported min/max dividers */ if (m <106 || m >247 )return false;if (frac >=HDMI_FRAC_MAX_GXL )return false; + }else if (meson_vpu_is_compatible (priv,VPU_COMPATIBLE_G12A )) { +/* Empiric supported min/max dividers */ +if (m <106 || m >247 ) +return false; +if (frac >=HDMI_FRAC_MAX_G12A ) +return false; }return true;
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c +12 -12
@@ -352,26 +352,26 @@ static void a6xx_get_debugbus(struct msm_gpu *gpu, cxdbg =ioremap (res->start,resource_size (res));if (cxdbg) { -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_CNTLT , +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_CNTLT ,A6XX_DBGC_CFG_DBGBUS_CNTLT_SEGT (0xf )); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_CNTLM , +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_CNTLM ,A6XX_DBGC_CFG_DBGBUS_CNTLM_ENABLE (0xf )); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_IVTL_0 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_IVTL_1 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_IVTL_2 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_IVTL_3 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_0 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_1 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_2 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_IVTL_3 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_BYTEL_0 , +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_0 ,0x76543210 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_BYTEL_1 , +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_BYTEL_1 ,0xFEDCBA98 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_MASKL_0 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_MASKL_1 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_MASKL_2 ,0 ); -cxdbg_write (cxdbg,REG_A6XX_DBGC_CFG_DBGBUS_MASKL_3 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_0 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_1 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_2 ,0 ); +cxdbg_write (cxdbg,REG_A6XX_CX_DBGC_CFG_DBGBUS_MASKL_3 ,0 ); } a6xx_state->debugbus = state_kcalloc(a6xx_state,
drivers/gpu/drm/nouveau/nouveau_connector.c +17 -16
@@ -1131,6 +1131,16 @@ nouveau_connector_hotplug(struct nvif_notify *notify)const char *name = connector->name;struct nouveau_encoder *nv_encoder;int ret; +bool plugged = (rep->mask !=NVIF_NOTIFY_CONN_V0_UNPLUG ); + +if (rep->mask &NVIF_NOTIFY_CONN_V0_IRQ ) { +NV_DEBUG (drm,"service %s\n" , name); +drm_dp_cec_irq (&nv_connector->aux); +if ((nv_encoder =find_encoder (connector,DCB_OUTPUT_DP ))) +nv50_mstm_service (nv_encoder->dp.mstm); + +return NVIF_NOTIFY_KEEP ; + } ret =pm_runtime_get (drm->dev->dev);if (ret ==0 ) {
@@ -1151,25 +1161,16 @@ nouveau_connector_hotplug(struct nvif_notify *notify)return NVIF_NOTIFY_DROP ; } -if (rep->mask &NVIF_NOTIFY_CONN_V0_IRQ ) { -NV_DEBUG (drm,"service %s\n" , name); -drm_dp_cec_irq (&nv_connector->aux); -if ((nv_encoder =find_encoder (connector,DCB_OUTPUT_DP ))) -nv50_mstm_service (nv_encoder->dp.mstm); - }else { -bool plugged = (rep->mask !=NVIF_NOTIFY_CONN_V0_UNPLUG ); - +if (!plugged) +drm_dp_cec_unset_edid (&nv_connector->aux); +NV_DEBUG (drm,"%splugged %s\n" , plugged ?"" :"un" , name); +if ((nv_encoder =find_encoder (connector,DCB_OUTPUT_DP ))) {if (!plugged) -drm_dp_cec_unset_edid (&nv_connector->aux); -NV_DEBUG (drm,"%splugged %s\n" , plugged ?"" :"un" , name); -if ((nv_encoder =find_encoder (connector,DCB_OUTPUT_DP ))) { -if (!plugged) -nv50_mstm_remove (nv_encoder->dp.mstm); - } - -drm_helper_hpd_irq_event (connector->dev); +nv50_mstm_remove (nv_encoder->dp.mstm); } +drm_helper_hpd_irq_event (connector->dev); +pm_runtime_mark_last_busy (drm->dev->dev);pm_runtime_put_autosuspend (drm->dev->dev);return NVIF_NOTIFY_KEEP ;
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +1 -0
@@ -426,6 +426,7 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c,return PTR_ERR (ts->dsi); } +drm_panel_init (&ts->base); ts->base.dev = dev; ts->base.funcs = &rpi_touchscreen_funcs;
drivers/gpu/drm/panel/panel-sitronix-st7789v.c +1 -0
@@ -381,6 +381,7 @@ static int st7789v_probe(struct spi_device *spi)spi_set_drvdata (spi, ctx); ctx->spi = spi; +drm_panel_init (&ctx->panel); ctx->panel.dev = &spi->dev; ctx->panel.funcs = &st7789v_drm_funcs;
drivers/gpu/drm/scheduler/sched_main.c +24 -19
79 lines not on this page · raw message
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +2 -2
@@ -437,9 +437,9 @@ static void sun6i_dsi_setup_burst(struct sun6i_dsi *dsi, SUN6I_DSI_BURST_LINE_SYNC_POINT(SUN6I_DSI_SYNC_POINT)); val =SUN6I_DSI_TCON_DRQ_ENABLE_MODE ; - }else if ((mode->hsync_end - mode->hdisplay) >20 ) { + }else if ((mode->hsync_start - mode->hdisplay) >20 ) {/* Maaaaaagic */ -u16 drq = (mode->hsync_end - mode->hdisplay) -20 ; +u16 drq = (mode->hsync_start - mode->hdisplay) -20 ; drq *=mipi_dsi_pixel_format_to_bpp (device->format); drq /=32 ;
drivers/gpu/drm/tegra/sor.c +5 -0
@@ -3200,6 +3200,11 @@ static int tegra_sor_parse_dt(struct tegra_sor *sor)* earlier */ sor->pad =TEGRA_IO_PAD_HDMI_DP0 + sor->index; + }else { +if (sor->soc->supports_edp) + sor->index =0 ; +else + sor->index =1 ; } err =of_property_read_u32_array (np,"nvidia,xbar-cfg" , xbar_cfg,5 );
drivers/gpu/drm/ttm/ttm_bo.c +26 -18
73 lines not on this page · raw message
drivers/gpu/drm/vc4/vc4_hdmi.c +9 -4
@@ -1285,6 +1285,9 @@ static const struct cec_adap_ops vc4_hdmi_cec_adap_ops = {static int vc4_hdmi_bind (struct device *dev,struct device *master,void *data) { +#ifdef CONFIG_DRM_VC4_HDMI_CEC +struct cec_connector_info conn_info; +#endif struct platform_device *pdev =to_platform_device (dev);struct drm_device *drm =dev_get_drvdata (master);struct vc4_dev *vc4 = drm->dev_private;
@@ -1403,13 +1406,15 @@ static int vc4_hdmi_bind(struct device *dev, struct device *master, void *data)#ifdef CONFIG_DRM_VC4_HDMI_CEC hdmi->cec_adap =cec_allocate_adapter (&vc4_hdmi_cec_adap_ops, vc4,"vc4" , -CEC_CAP_TRANSMIT | -CEC_CAP_LOG_ADDRS | -CEC_CAP_PASSTHROUGH | -CEC_CAP_RC ,1 ); +CEC_CAP_DEFAULTS | +CEC_CAP_CONNECTOR_INFO ,1 ); ret =PTR_ERR_OR_ZERO (hdmi->cec_adap);if (ret <0 ) goto err_destroy_conn; + +cec_fill_conn_info_from_drm (&conn_info, hdmi->connector); +cec_s_conn_info (hdmi->cec_adap, &conn_info); +HDMI_WRITE (VC4_HDMI_CPU_MASK_SET ,0xffffffff ); value =HDMI_READ (VC4_HDMI_CEC_CNTRL_1 ); value &= ~VC4_HDMI_CEC_DIV_CLK_CNT_MASK ;
drivers/gpu/drm/virtio/virtgpu_ioctl.c +16 -12
@@ -463,25 +463,29 @@ static int virtio_gpu_transfer_to_host_ioctl(struct drm_device *dev, void *data, }static int virtio_gpu_wait_ioctl (struct drm_device *dev,void *data, -struct drm_file *file) +struct drm_file *file) {struct drm_virtgpu_3d_wait *args = data; -struct drm_gem_object *gobj =NULL ; -struct virtio_gpu_object *qobj =NULL ; +struct drm_gem_object *obj; +long timeout =15 *HZ ;int ret; -bool nowait = false; - gobj =drm_gem_object_lookup (file, args->handle); -if (gobj ==NULL ) + obj =drm_gem_object_lookup (file, args->handle); +if (obj ==NULL )return -ENOENT ; - qobj =gem_to_virtio_gpu_obj (gobj); - -if (args->flags &VIRTGPU_WAIT_NOWAIT ) - nowait = true; - ret =virtio_gpu_object_wait (qobj, nowait); +if (args->flags &VIRTGPU_WAIT_NOWAIT ) { + ret =dma_resv_test_signaled_rcu (obj->resv, true); + }else { + ret =dma_resv_wait_timeout_rcu (obj->resv, true, true, + timeout); + } +if (ret ==0 ) + ret = -EBUSY ; +else if (ret >0 ) + ret =0 ; -drm_gem_object_put_unlocked (gobj); +drm_gem_object_put_unlocked (obj);return ret; }
drivers/gpu/host1x/job.c +6 -5
@@ -436,7 +436,8 @@ static int validate(struct host1x_firewall *fw, struct host1x_job_gather *g)return err; } -static inline int copy_gathers (struct host1x_job *job,struct device *dev) +static inline int copy_gathers (struct device *host,struct host1x_job *job, +struct device *dev) {struct host1x_firewall fw;size_t size =0 ;
@@ -459,12 +460,12 @@ static inline int copy_gathers(struct host1x_job *job, struct device *dev)* Try a non-blocking allocation from a higher priority pools first, * as awaiting for the allocation here is a major performance hit. */ - job->gather_copy_mapped =dma_alloc_wc (dev, size, &job->gather_copy, + job->gather_copy_mapped =dma_alloc_wc (host, size, &job->gather_copy,GFP_NOWAIT );/* the higher priority allocation failed, try the generic-blocking */ if (!job->gather_copy_mapped) - job->gather_copy_mapped =dma_alloc_wc (dev, size, + job->gather_copy_mapped =dma_alloc_wc (host, size, &job->gather_copy,GFP_KERNEL );if (!job->gather_copy_mapped)
@@ -512,7 +513,7 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev) goto out;if (IS_ENABLED (CONFIG_TEGRA_HOST1X_FIREWALL )) { - err =copy_gathers (job, dev); + err =copy_gathers (host->dev, job, dev);if (err) goto out; }
@@ -573,7 +574,7 @@ void host1x_job_unpin(struct host1x_job *job) job->num_unpins =0 ;if (job->gather_copy_size) -dma_free_wc (job->channel->dev, job->gather_copy_size, +dma_free_wc (host->dev, job->gather_copy_size, job->gather_copy_mapped, job->gather_copy); }EXPORT_SYMBOL (host1x_job_unpin);
drivers/hwtracing/intel_th/core.c +4 -3
@@ -834,9 +834,6 @@ static irqreturn_t intel_th_irq(int irq, void *data) ret |= d->irq (th->thdev[i]); } -if (ret ==IRQ_NONE ) -pr_warn_ratelimited ("nobody cared for irq\n" ); -return ret; }
@@ -887,6 +884,7 @@ intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata,if (th->irq ==-1 ) th->irq = devres[r].start; + th->num_irqs++;break ;default : dev_warn(dev, "Unknown resource type %lx\n",
@@ -940,6 +938,9 @@ void intel_th_free(struct intel_th *th) th->num_thdevs =0 ; +for (i =0 ; i < th->num_irqs; i++) +devm_free_irq (th->dev, th->irq + i, th); +
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/bnxt_re/qplib_res.h +6 -2
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_restrack.c +7 -3
Lines of this file are not shown. View the raw message.
drivers/infiniband/hw/hns/hns_roce_srq.c +14 -10
Lines of this file are not shown. View the raw message.
drivers/infiniband/sw/siw/siw_verbs.c +121 -22
143 lines not on this page · raw message
drivers/infiniband/ulp/iser/iscsi_iser.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/md/bcache/super.c +37 -14
51 lines not on this page · raw message
drivers/md/md.c +40 -6
46 lines not on this page · raw message
drivers/media/i2c/ov6650.c +43 -32
75 lines not on this page · raw message
drivers/media/platform/am437x/am437x-vpfe.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/exynos4-is/media-dev.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/media/platform/meson/ao-cec-g12a.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/media/platform/meson/ao-cec.c +15 -15
Lines of this file are not shown. View the raw message.
drivers/media/platform/qcom/venus/core.c +5 -4
Lines of this file are not shown. View the raw message.
drivers/media/platform/qcom/venus/hfi_venus.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/seco-cec/seco-cec.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/ti-vpe/vpe.c +38 -14
52 lines not on this page · raw message
drivers/media/platform/vicodec/vicodec-core.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-common.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-debayer.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-scaler.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/vimc/vimc-sensor.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/vivid/vivid-core.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/media/radio/si470x/radio-si470x-i2c.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c +7 -2
Lines of this file are not shown. View the raw message.
drivers/net/can/flexcan.c +36 -37
73 lines not on this page · raw message
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amazon/ena/ena_com.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amazon/ena/ena_ethtool.c +10 -14
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +8 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c +8 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hip04_eth.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_common.c +10 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +16 -16
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_main.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_controlq.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_controlq.h +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool.c +10 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_main.c +14 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c +8 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/netronome/nfp/flower/metadata.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_filter.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +15 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/davinci_cpdma.c +2 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath10k/coredump.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath10k/htt_rx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath10k/mac.c +14 -12
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/dvm/led.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/led.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/rx.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/rx.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/trans-gen2.c +0 -25
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +30 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas/if_sdio.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/pcie.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7603/mac.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7615/mac.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/quantenna/qtnfmac/commands.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/quantenna/qtnfmac/event.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtlwifi/usb.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/coex.c +15 -9
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/pinctrl/intel/pinctrl-baytrail.c +44 -37
81 lines not on this page · raw message
drivers/pinctrl/sh-pfc/pfc-r8a77990.c +14 -11
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/gsc_hpdi.c +10 -0
Lines of this file are not shown. View the raw message.
drivers/staging/media/imx/imx-media-capture.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/staging/media/imx/imx7-mipi-csis.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/staging/media/sunxi/cedrus/cedrus.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/staging/media/sunxi/cedrus/cedrus.h +6 -2
Lines of this file are not shown. View the raw message.
drivers/staging/media/sunxi/cedrus/cedrus_h264.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/staging/media/sunxi/cedrus/cedrus_regs.h +17 -14
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8188eu/core/rtw_xmit.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8192u/r8192U_core.c +12 -5
Lines of this file are not shown. View the raw message.
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +12 -6
Lines of this file are not shown. View the raw message.
drivers/tty/serial/atmel_serial.c +22 -21
43 lines not on this page · raw message
fs/btrfs/async-thread.c +44 -12
56 lines not on this page · raw message
fs/btrfs/tree-log.c +47 -5
52 lines not on this page · raw message
fs/ext4/super.c +69 -74
143 lines not on this page · raw message
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +3 -0
Lines of this file are not shown. View the raw message.
tools/perf/arch/arm64/util/sym-handling.c +2 -1
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/arm64/hisilicon/hip08/uncore-ddrc.json +1 -1
Lines of this file are not shown. View the raw message.
tools/perf/util/dwarf-aux.c +66 -14
80 lines not on this page · raw message
tools/perf/util/probe-finder.c +40 -5
45 lines not on this page · raw message
tools/perf/util/session.c +27 -17
44 lines not on this page · raw message
tools/power/cpupower/utils/idle_monitor/hsw_ext_idle.c +0 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/cgroup_helpers.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c +4 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/test_seg6_loop.c +3 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/test_sysctl_loop1.c +4 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_progs.c +12 -5
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/test_tc_tunnel.sh +5 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/forwarding/router_bridge_vlan.sh +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/so_txtime.c +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/udpgso_bench_tx.c +2 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/proc/proc-self-map-files-002.c +5 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.