Linux 6.12.113
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.12.113 kernel.
All users of the 6.12 kernel series must upgrade.
The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.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
------------
Documentation/arch/arm64/silicon-errata.rst | 2 Documentation/filesystems/netfs_library.rst | 26 Documentation/netlink/genetlink-c.yaml | 14 Documentation/netlink/genetlink-legacy.yaml | 14 Documentation/netlink/genetlink.yaml | 14 Documentation/netlink/netlink-raw.yaml | 20 Documentation/networking/strparser.rst | 2 Makefile | 2 arch/arm64/Kconfig | 30 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 19 arch/arm64/include/asm/el2_setup.h | 5 arch/arm64/include/asm/kvm_host.h | 2 arch/arm64/include/asm/kvm_nested.h | 3 arch/arm64/kernel/Makefile | 3 arch/arm64/kernel/cpu_errata.c | 24 arch/arm64/kernel/cpufeature.c | 2 arch/arm64/kernel/signal.c | 85 +- arch/arm64/kernel/topology.c | 11 arch/arm64/kernel/vdso/Makefile | 2 arch/arm64/kvm/arm.c | 10 arch/arm64/kvm/emulate-nested.c | 4 arch/arm64/kvm/mmu.c | 46 - arch/arm64/kvm/nested.c | 95 +- arch/arm64/kvm/vgic/vgic-its.c | 22 arch/arm64/tools/cpucaps | 2 arch/loongarch/vdso/Makefile | 1 arch/powerpc/kernel/vdso/Makefile | 1 arch/powerpc/perf/imc-pmu.c | 23 arch/riscv/include/asm/scs.h | 17 arch/riscv/kernel/entry.S | 2 arch/riscv/kvm/aia_imsic.c | 5 arch/riscv/mm/extable.c | 4 arch/s390/kernel/vdso64/Makefile | 1 arch/x86/entry/vdso/Makefile | 1 arch/x86/events/intel/bts.c | 2 arch/x86/events/intel/core.c | 2 arch/x86/events/intel/p4.c | 2 arch/x86/kvm/mmu/mmu.c | 6 arch/x86/kvm/svm/svm.c | 12 arch/x86/kvm/vmx/nested.c | 6 crypto/drbg.c | 11 drivers/android/binder.c | 3 drivers/block/virtio_blk.c | 1 drivers/bluetooth/btintel.c | 29 drivers/bluetooth/btintel_pcie.c | 138 +++- drivers/bluetooth/btintel_pcie.h | 2 drivers/bluetooth/btusb.c | 2 drivers/char/tpm/tpm2-cmd.c | 2 drivers/char/tpm/tpm2-sessions.c | 1 drivers/edac/altera_edac.c | 4 drivers/edac/amd64_edac.c | 4 drivers/gpio/gpio-exar.c | 2 drivers/gpio/gpio-xilinx.c | 9 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 13 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 77 +- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 17 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 5 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 9 drivers/gpu/drm/amd/amdgpu/vi.c | 21 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 32 drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 7 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 16 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 20 drivers/gpu/drm/amd/display/dc/dc.h | 1 drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c | 1 drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c | 4 drivers/gpu/drm/amd/display/dc/resource/dce80/dce80_resource.c | 1 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 39 - drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 10 drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c | 11 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 5 drivers/gpu/drm/display/drm_dp_helper.c | 4 drivers/gpu/drm/drm_fb_helper.c | 6 drivers/gpu/drm/gud/gud_pipe.c | 1 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 drivers/gpu/drm/i915/gt/intel_rps.c | 3 drivers/gpu/drm/imagination/pvr_mmu.c | 25 drivers/gpu/drm/imagination/pvr_vm.c | 8 drivers/gpu/drm/mediatek/mtk_drm_drv.c | 17 drivers/gpu/drm/panthor/panthor_sched.c | 3 drivers/gpu/drm/radeon/radeon_bios.c | 6 drivers/gpu/drm/vc4/vc4_bo.c | 29 drivers/gpu/drm/vc4/vc4_crtc.c | 4 drivers/gpu/drm/vc4/vc4_drv.c | 8 drivers/gpu/drm/vc4/vc4_drv.h | 2 drivers/gpu/drm/vc4/vc4_gem.c | 32 drivers/gpu/drm/vc4/vc4_irq.c | 16 drivers/gpu/drm/vc4/vc4_kms.c | 2 drivers/gpu/drm/vc4/vc4_perfmon.c | 20 drivers/gpu/drm/vc4/vc4_render_cl.c | 2 drivers/gpu/drm/vc4/vc4_v3d.c | 60 - drivers/gpu/drm/vc4/vc4_validate.c | 10 drivers/gpu/drm/vc4/vc4_validate_shaders.c | 2 drivers/hid/bpf/hid_bpf_dispatch.c | 2 drivers/hid/hid-multitouch.c | 2 drivers/hid/hid-steam.c | 226 +++---- drivers/i2c/busses/i2c-at91-master.c | 8 drivers/i2c/busses/i2c-xiic.c | 98 +-- drivers/iio/accel/kionix-kx022a.c | 77 +- drivers/iio/accel/kxcjk-1013.c | 2 drivers/iio/accel/sca3000.c | 2 drivers/iio/adc/ad_sigma_delta.c | 27 drivers/iio/adc/aspeed_adc.c | 13 drivers/iio/adc/axp288_adc.c | 8 drivers/iio/adc/max1363.c | 8 drivers/iio/adc/pac1934.c | 4 drivers/iio/adc/stm32-adc.c | 43 - drivers/iio/adc/sun4i-gpadc-iio.c | 10 drivers/iio/adc/xilinx-xadc-core.c | 9 drivers/iio/buffer/industrialio-buffer-dmaengine.c | 16 drivers/iio/cdc/ad7150.c | 8 drivers/iio/frequency/admv1013.c | 9 drivers/iio/gyro/adis16136.c | 2 drivers/iio/health/max30102.c | 12 drivers/iio/imu/adis16400.c | 2 drivers/iio/imu/adis16480.c | 4 drivers/iio/industrialio-buffer.c | 7 drivers/iio/industrialio-trigger.c | 2 drivers/iio/light/gp2ap020a00f.c | 2 drivers/iio/light/rohm-bu27034.c | 133 +--- drivers/iio/pressure/bmp280-core.c | 2 drivers/iio/proximity/aw96103.c | 30 drivers/iio/proximity/isl29501.c | 2 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 4 drivers/iio/proximity/sx9324.c | 2 drivers/iio/proximity/vcnl3020.c | 24 drivers/input/joystick/xpad.c | 3 drivers/input/keyboard/atkbd.c | 8 drivers/input/misc/ati_remote2.c | 12 drivers/input/mouse/synaptics.c | 7 drivers/input/serio/i8042-acpipnpio.h | 9 drivers/input/touchscreen/s6sy761.c | 14 drivers/md/dm-crypt.c | 7 drivers/md/dm-ioctl.c | 14 drivers/md/dm-snap.c | 14 drivers/memstick/core/memstick.c | 8 drivers/memstick/host/rtsx_usb_ms.c | 31 drivers/mmc/host/cavium-octeon.c | 5 drivers/mmc/host/cavium-thunderx.c | 5 drivers/mmc/host/mtk-sd.c | 1 drivers/mmc/host/sdhci-sprd.c | 4 drivers/mtd/devices/block2mtd.c | 2 drivers/mtd/mtdcore.c | 2 drivers/mtd/nand/raw/cadence-nand-controller.c | 6 drivers/mtd/nand/raw/vf610_nfc.c | 85 ++ drivers/mtd/nand/spi/core.c | 37 - drivers/net/amt.c | 48 - drivers/net/can/dev/skb.c | 2 drivers/net/can/usb/f81604.c | 2 drivers/net/dsa/microchip/ksz_common.h | 2 drivers/net/ethernet/broadcom/bcmsysport.c | 8 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 84 +- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 5 drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c | 4 drivers/net/ethernet/ibm/ibmveth.c | 22 drivers/net/ethernet/intel/ice/ice_eswitch.c | 2 drivers/net/ethernet/marvell/mvneta.c | 2 drivers/net/ethernet/marvell/octeontx2/af/mcs.c | 4 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 38 - drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 13 drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.c | 13 drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c | 191 +++-- drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h | 14 drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c | 24 drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c | 10 drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c | 16 drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 2 drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 10 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c | 9 drivers/net/ethernet/microchip/sparx5/sparx5_main.c | 1 drivers/net/ethernet/microchip/sparx5/sparx5_main.h | 1 drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c | 1 drivers/net/ethernet/microchip/sparx5/sparx5_tc_matchall.c | 1 drivers/net/ethernet/microchip/vcap/vcap_api.c | 2 drivers/net/ethernet/microsoft/mana/mana_en.c | 10 drivers/net/pfcp.c | 10 drivers/net/usb/ax88179_178a.c | 6 drivers/net/usb/qmi_wwan.c | 1 drivers/net/veth.c | 1 drivers/net/wireguard/noise.c | 7 drivers/net/wireguard/queueing.h | 2 drivers/net/wireless/ath/ath11k/mac.c | 1 drivers/net/wireless/ath/ath12k/qmi.c | 9 drivers/net/wireless/ath/ath12k/qmi.h | 3 drivers/net/wireless/ath/ath9k/hif_usb.c | 19 drivers/net/wireless/ath/ath9k/wmi.c | 16 drivers/net/wireless/ath/ath9k/wmi.h | 1 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 27 drivers/net/wireless/intel/iwlegacy/3945-mac.c | 1 drivers/net/wireless/marvell/libertas/tx.c | 7 drivers/net/wireless/mediatek/mt76/mt7603/init.c | 1 drivers/net/wireless/mediatek/mt76/mt7915/init.c | 6 drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 3 drivers/net/wireless/mediatek/mt76/mt7925/main.c | 12 drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c | 128 ++- drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h | 2 drivers/net/wireless/mediatek/mt76/mt7996/mcu.h | 3 drivers/net/wireless/silabs/wfx/hif_tx.c | 4 drivers/net/wireless/st/cw1200/bh.c | 8 drivers/net/wireless/st/cw1200/txrx.c | 14 drivers/net/wireless/ti/wlcore/main.c | 4 drivers/net/xen-netfront.c | 16 drivers/nvme/host/multipath.c | 10 drivers/nvme/host/pci.c | 2 drivers/nvme/target/configfs.c | 9 drivers/nvme/target/core.c | 2 drivers/nvme/target/fabrics-cmd-auth.c | 2 drivers/of/irq.c | 2 drivers/of/overlay.c | 17 drivers/pci/pci.c | 15 drivers/perf/arm_spe_pmu.c | 4 drivers/pmdomain/imx/imx8m-blk-ctrl.c | 15 drivers/pmdomain/rockchip/pm-domains.c | 20 drivers/ptp/ptp_ocp.c | 2 drivers/regulator/ltc3676.c | 15 drivers/regulator/tps6594-regulator.c | 6 drivers/rtc/dev.c | 2 drivers/rtc/rtc-88pm80x.c | 2 drivers/rtc/rtc-88pm860x.c | 2 drivers/rtc/rtc-ab8500.c | 2 drivers/rtc/rtc-ac100.c | 39 - drivers/rtc/rtc-asm9260.c | 2 drivers/rtc/rtc-at91rm9200.c | 2 drivers/rtc/rtc-at91sam9.c | 2 drivers/rtc/rtc-brcmstb-waketimer.c | 2 drivers/rtc/rtc-cadence.c | 2 drivers/rtc/rtc-cmos.c | 2 drivers/rtc/rtc-cros-ec.c | 2 drivers/rtc/rtc-ds1685.c | 2 drivers/rtc/rtc-ftrtc010.c | 2 drivers/rtc/rtc-hid-sensor-time.c | 2 drivers/rtc/rtc-imxdi.c | 2 drivers/rtc/rtc-loongson.c | 2 drivers/rtc/rtc-lpc24xx.c | 2 drivers/rtc/rtc-max77686.c | 2 drivers/rtc/rtc-mc13xxx.c | 2 drivers/rtc/rtc-mpc5121.c | 2 drivers/rtc/rtc-mpfs.c | 8 drivers/rtc/rtc-mt7622.c | 2 drivers/rtc/rtc-mv.c | 2 drivers/rtc/rtc-mxc_v2.c | 2 drivers/rtc/rtc-omap.c | 2 drivers/rtc/rtc-palmas.c | 2 drivers/rtc/rtc-pcf50633.c | 2 drivers/rtc/rtc-pic32.c | 2 drivers/rtc/rtc-pm8xxx.c | 2 drivers/rtc/rtc-pxa.c | 2 drivers/rtc/rtc-rc5t583.c | 2 drivers/rtc/rtc-rtd119x.c | 2 drivers/rtc/rtc-rzn1.c | 2 drivers/rtc/rtc-s3c.c | 2 drivers/rtc/rtc-sa1100.c | 2 drivers/rtc/rtc-sh.c | 2 drivers/rtc/rtc-spear.c | 13 drivers/rtc/rtc-stm32.c | 2 drivers/rtc/rtc-stmp3xxx.c | 2 drivers/rtc/rtc-sunplus.c | 2 drivers/rtc/rtc-tegra.c | 2 drivers/rtc/rtc-tps6586x.c | 2 drivers/rtc/rtc-twl.c | 2 drivers/rtc/rtc-vt8500.c | 2 drivers/rtc/rtc-wm8350.c | 2 drivers/rtc/rtc-xgene.c | 2 drivers/rtc/rtc-zynqmp.c | 2 drivers/scsi/qedi/qedi_main.c | 3 drivers/staging/greybus/uart.c | 3 drivers/tee/optee/ffa_abi.c | 38 - drivers/tee/optee/optee_ffa.h | 27 drivers/tee/optee/optee_msg.h | 132 +++- drivers/tee/optee/optee_private.h | 120 +-- drivers/tee/optee/optee_smc.h | 37 + drivers/tee/optee/smc_abi.c | 17 drivers/tee/tee_shm.c | 4 drivers/thunderbolt/ctl.c | 63 - drivers/thunderbolt/quirks.c | 3 drivers/thunderbolt/xdomain.c | 4 drivers/tty/amiserial.c | 9 drivers/tty/n_gsm.c | 47 - drivers/tty/serial/8250/8250_bcm7271.c | 2 drivers/tty/serial/kgdboc.c | 9 drivers/tty/serial/ma35d1_serial.c | 6 drivers/tty/serial/max3100.c | 13 drivers/tty/serial/qcom_geni_serial.c | 5 drivers/tty/serial/sc16is7xx.c | 53 + drivers/tty/serial/serial-tegra.c | 18 drivers/tty/serial/serial_core.c | 4 drivers/tty/serial/vt8500_serial.c | 1 drivers/tty/tty_io.c | 54 + drivers/tty/tty_port.c | 205 +++--- drivers/tty/vcc.c | 5 drivers/tty/vt/vc_screen.c | 50 - drivers/tty/vt/vt.c | 5 drivers/usb/cdns3/cdns3-gadget.c | 4 drivers/usb/cdns3/cdns3-pci-wrap.c | 5 drivers/usb/chipidea/ci_hdrc_tegra.c | 4 drivers/usb/class/cdc-acm.c | 41 - drivers/usb/class/cdc-acm.h | 1 drivers/usb/core/hub.c | 7 drivers/usb/core/message.c | 8 drivers/usb/dwc2/hcd.c | 3 drivers/usb/dwc3/core.h | 19 drivers/usb/dwc3/dwc3-am62.c | 1 drivers/usb/dwc3/ep0.c | 9 drivers/usb/dwc3/gadget.c | 108 +++ drivers/usb/gadget/function/f_fs.c | 15 drivers/usb/gadget/function/f_midi2.c | 4 drivers/usb/gadget/function/f_uac1_legacy.c | 6 drivers/usb/gadget/udc/aspeed-vhub/core.c | 4 drivers/usb/gadget/udc/aspeed-vhub/dev.c | 2 drivers/usb/gadget/udc/aspeed-vhub/hub.c | 5 drivers/usb/gadget/udc/aspeed-vhub/vhub.h | 1 drivers/usb/gadget/udc/dummy_hcd.c | 4 drivers/usb/host/octeon-hcd.c | 2 drivers/usb/host/ohci-da8xx.c | 2 drivers/usb/host/ohci-s3c2410.c | 1 drivers/usb/host/ohci-spear.c | 4 drivers/usb/host/ohci-st.c | 1 drivers/usb/serial/bus.c | 6 drivers/usb/serial/cp210x.c | 1 drivers/usb/serial/generic.c | 10 drivers/usb/serial/option.c | 14 drivers/usb/serial/quatech2.c | 19 drivers/usb/serial/ssu100.c | 18 drivers/usb/serial/usb-serial.c | 127 +++ drivers/usb/serial/xr_serial.c | 10 drivers/usb/storage/sierra_ms.c | 7 drivers/usb/typec/anx7411.c | 5 drivers/usb/typec/tcpm/tcpm.c | 2 drivers/usb/typec/tipd/core.c | 8 drivers/usb/typec/ucsi/displayport.c | 9 drivers/usb/typec/ucsi/ucsi.c | 17 drivers/usb/typec/ucsi/ucsi_acpi.c | 33 + drivers/usb/typec/ucsi/ucsi_glink.c | 15 drivers/virt/nitro_enclaves/ne_misc_dev.c | 1 drivers/virt/vmgenid.c | 6 fs/attr.c | 12 fs/btrfs/scrub.c | 4 fs/btrfs/xattr.c | 9 fs/dcache.c | 4 fs/ext4/inode.c | 4 fs/f2fs/f2fs.h | 2 fs/f2fs/file.c | 4 fs/f2fs/gc.c | 36 - fs/f2fs/segment.c | 13 fs/fsopen.c | 3 fs/inode.c | 23 fs/jfs/jfs_dtree.c | 18 fs/namei.c | 29 fs/namespace.c | 87 +- fs/netfs/buffered_write.c | 9 fs/netfs/direct_write.c | 9 fs/netfs/internal.h | 2 fs/netfs/misc.c | 99 +++ fs/smb/client/cifsfs.c | 7 fs/smb/client/cifsglob.h | 10 fs/smb/client/cifssmb.c | 2 fs/smb/client/dir.c | 39 - fs/smb/client/file.c | 17 fs/smb/client/inode.c | 30 fs/smb/client/link.c | 15 fs/smb/client/smb1ops.c | 21 fs/smb/client/smb2file.c | 19 fs/smb/client/smb2misc.c | 9 fs/smb/client/smb2ops.c | 38 - fs/smb/client/smb2pdu.c | 38 - fs/smb/client/smb2proto.h | 2 fs/smb/client/trace.h | 16 fs/smb/client/transport.c | 69 +- fs/verity/Kconfig | 3 fs/verity/open.c | 8 fs/xfs/scrub/newbt.c | 8 fs/xfs/xfs_log_recover.c | 13 include/linux/can/skb.h | 2 include/linux/console.h | 2 include/linux/fsverity.h | 25 include/linux/lsm_hook_defs.h | 2 include/linux/memcontrol.h | 50 + include/linux/netfilter_netdev.h | 2 include/linux/netfs.h | 2 include/linux/nvme.h | 4 include/linux/pagemap.h | 16 include/linux/perf_event.h | 17 include/linux/rtnetlink.h | 7 include/linux/sched/ext.h | 1 include/linux/sched/user.h | 3 include/linux/security.h | 5 include/linux/skbuff.h | 2 include/linux/soc/qcom/geni-se.h | 15 include/linux/tty.h | 1 include/linux/tty_driver.h | 6 include/linux/tty_port.h | 30 include/linux/usb/serial.h | 1 include/net/amt.h | 4 include/net/bluetooth/hci_core.h | 5 include/net/ip.h | 7 include/net/mac80211.h | 4 include/net/netfilter/nf_conntrack.h | 18 include/net/netfilter/nf_flow_table.h | 2 include/net/proto_memory.h | 2 include/net/sch_generic.h | 9 include/net/sock.h | 22 include/net/strparser.h | 10 include/net/tcp.h | 2 include/net/xdp.h | 34 - include/net/xdp_sock_drv.h | 11 include/net/xsk_buff_pool.h | 2 include/sound/core.h | 9 include/sound/sof/ipc4/header.h | 2 include/uapi/linux/random.h | 2 init/Kconfig | 5 io_uring/io_uring.c | 7 io_uring/waitid.c | 19 kernel/audit_tree.c | 24 kernel/cgroup/cpuset.c | 134 ++-- kernel/dma/swiotlb.c | 6 kernel/events/core.c | 322 ++++------ kernel/events/ring_buffer.c | 7 kernel/kprobes.c | 8 kernel/sched/ext.c | 20 kernel/sched/sched.h | 1 kernel/trace/trace_event_perf.c | 4 kernel/workqueue.c | 2 mm/damon/core.c | 48 - mm/memcontrol.c | 27 mm/secretmem.c | 117 +++ mm/shmem.c | 70 -- mm/vmpressure.c | 2 net/bluetooth/hci_conn.c | 18 net/bluetooth/hci_core.c | 55 + net/bluetooth/hci_debugfs.c | 2 net/bluetooth/hci_event.c | 7 net/bluetooth/hci_sock.c | 2 net/bluetooth/hci_sync.c | 19 net/bluetooth/iso.c | 153 +++- net/bluetooth/mgmt.c | 2 net/bluetooth/rfcomm/sock.c | 5 net/bluetooth/rfcomm/tty.c | 9 net/bluetooth/smp.c | 2 net/bridge/br_multicast.c | 23 net/bridge/netfilter/nf_conntrack_bridge.c | 10 net/can/af_can.c | 6 net/can/bcm.c | 2 net/can/isotp.c | 11 net/can/j1939/socket.c | 1 net/can/j1939/transport.c | 2 net/can/raw.c | 7 net/core/dev.c | 139 ++-- net/core/flow_dissector.c | 11 net/core/neighbour.c | 12 net/core/netdev-genl-gen.c | 4 net/core/skbuff.c | 14 net/core/sock.c | 15 net/devlink/core.c | 10 net/ipv4/af_inet.c | 2 net/ipv4/cipso_ipv4.c | 8 net/ipv4/fib_semantics.c | 3 net/ipv4/fib_trie.c | 2 net/ipv4/inet_connection_sock.c | 2 net/ipv4/ip_output.c | 10 net/ipv4/route.c | 5 net/ipv4/tcp.c | 2 net/ipv4/tcp_input.c | 6 net/ipv4/tcp_ipv4.c | 2 net/ipv4/tcp_output.c | 2 net/ipv6/addrconf.c | 2 net/ipv6/ip6_output.c | 29 net/ipv6/route.c | 2 net/ipv6/seg6_iptunnel.c | 2 net/mac80211/agg-rx.c | 2 net/mac80211/chan.c | 45 + net/mac80211/fils_aead.c | 8 net/mac80211/ieee80211_i.h | 2 net/mac80211/mesh_pathtbl.c | 30 net/mac80211/mlme.c | 4 net/mac80211/rc80211_minstrel_ht.c | 30 net/mac80211/spectmgmt.c | 4 net/mac80211/sta_info.c | 6 net/mac80211/tx.c | 128 +++ net/mctp/device.c | 6 net/mptcp/protocol.c | 10 net/mptcp/subflow.c | 11 net/netfilter/ipset/ip_set_bitmap_gen.h | 2 net/netfilter/ipvs/ip_vs_conn.c | 3 net/netfilter/ipvs/ip_vs_lblc.c | 4 net/netfilter/ipvs/ip_vs_lblcr.c | 3 net/netfilter/ipvs/ip_vs_sync.c | 33 - net/netfilter/nf_conntrack_amanda.c | 2 net/netfilter/nf_conntrack_broadcast.c | 2 net/netfilter/nf_conntrack_core.c | 13 net/netfilter/nf_conntrack_h323_main.c | 4 net/netfilter/nf_conntrack_sip.c | 4 net/netfilter/nf_flow_table_core.c | 123 +++ net/netfilter/nf_flow_table_offload.c | 14 net/netfilter/nf_nat_bpf.c | 3 net/netfilter/nf_nat_core.c | 5 net/netfilter/nfnetlink_queue.c | 7 net/netfilter/nft_ct.c | 2 net/netfilter/nft_flow_offload.c | 7 net/netfilter/xt_CHECKSUM.c | 6 net/openvswitch/actions.c | 7 net/openvswitch/datapath.c | 8 net/packet/af_packet.c | 6 net/rds/tcp.c | 9 net/sched/act_ct.c | 2 net/sched/act_skbedit.c | 5 net/sched/cls_api.c | 15 net/sched/cls_route.c | 6 net/sched/em_text.c | 3 net/sched/sch_codel.c | 2 net/sched/sch_fq_codel.c | 4 net/sctp/socket.c | 8 net/smc/af_smc.c | 7 net/strparser/strparser.c | 6 net/sunrpc/xprtrdma/svc_rdma_transport.c | 8 net/tipc/crypto.c | 20 net/tipc/node.c | 10 net/tipc/topsrv.c | 80 ++ net/vmw_vsock/af_vsock.c | 2 net/vmw_vsock/virtio_transport_common.c | 4 net/wireless/scan.c | 22 net/xfrm/xfrm_output.c | 16 security/keys/key.c | 6 security/keys/persistent.c | 55 - security/security.c | 5 security/selinux/avc.c | 5 security/selinux/hooks.c | 11 sound/core/seq/seq_compat.c | 4 sound/pci/hda/hda_tegra.c | 3 sound/pci/ice1712/ice1712.c | 2 sound/soc/amd/yc/acp6x-mach.c | 7 sound/soc/codecs/adau1372.c | 18 sound/soc/codecs/max98363.c | 2 sound/soc/codecs/rt1017-sdca-sdw.c | 27 sound/soc/codecs/rt274.c | 4 sound/soc/codecs/rt286.c | 2 sound/soc/codecs/wm8903.c | 2 sound/soc/qcom/lpass-cpu.c | 4 sound/soc/samsung/i2s.c | 8 sound/soc/sdw_utils/soc_sdw_utils.c | 20 sound/soc/sof/intel/hda-loader.c | 7 sound/soc/sof/ipc4-loader.c | 6 sound/soc/sof/ipc4-priv.h | 3 sound/soc/sof/ipc4.c | 14 sound/soc/tegra/tegra186_asrc.c | 2 sound/usb/caiaq/device.c | 3 sound/usb/line6/playback.c | 7 sound/usb/misc/ua101.c | 9 sound/usb/quirks.c | 4 tools/net/ynl/ynl-gen-c.py | 70 +- tools/testing/selftests/mm/hugepage-mremap.c | 5 tools/testing/selftests/mm/memfd_secret.c | 30 555 files changed, 5746 insertions(+), 2906 deletions(-)
Aamir Ahmed (3):
rtc: ac100: Assign .num before accessing .hws
wifi: wfx: validate MIB read length before copying to caller
rtc: ac100: Fix clock provider use-after-free on probe failure
Aaron Kling (1):
ALSA: hda/tegra: Re-enable SDO workaround for Tegra194
Aaron Ma (1):
wifi: mt76: mt7925: restore the legacy BSS after MLO teardown
Abdurrahman Hussain (6):
of/overlay: put property on deadprops only after changeset add succeeds of/overlay: only treat a positive changeset id as registered of/overlay: don't leak fragment references when changeset init fails of/overlay: don't create "//" paths for fragments targeting the root
i2c: xiic: don't clobber msg->len to signal block-read completion
i2c: xiic: preserve PEC byte length in SMBus block read setup
Abhishek Ojha (1):
regulator: ltc3676: don't read the write-only HRST and CLIRQ registers
Aditya Dutt (1):
jfs: fix array-index-out-of-bounds read in add_missing_indices
Adrian Bente (1):
netfilter: flowtable: fix offloaded ct timeout never being extended
Adrian Betschart (1):
drm/amd/display: Don't replace a sink mode that shares the native totals
Alan Stern (1):
USB: gadget: dummy-hcd: Fix wait for outstanding request completions
Aldo Ariel Panzardo (2):
Bluetooth: ISO: release unused CIS holds after channel attach
HID: multitouch: stop the release timer from being rearmed on remove
Alex Deucher (1):
drm/amdgpu: make Mac FB workaround generic
Alexander Lobakin (1):
xdp, xsk: constify read-only arguments of some static inline helpers
Alireza Asgari (1):
net: fix checksum offsets in skb_splice_from_iter()
Alvin Šipraga (2):
ASoC: adau1372: allow sleepy powerdown GPIOs
ASoC: adau1372: fix invalid default state of output ASRC and DAC muxes
Amit Sunil Dhamne (1):
usb: typec: tcpm: recover after failure to start the frs ams
Andre Eikmeyer (1):
drm/amdgpu: reset VI ASIC on MacBookPro15,1
Andrey Albershteyn (1):
fs,fsverity: remove check for fsverity being enabled in setattr_prepare()
Anirudh Virdi (1):
net/mlx5: Fix slab-out-of-bounds when handling team device events
Aohan Mei (1):
netfilter: nft_flow_offload: drop flowtable reference on init error path
Arka Mondal (3):
iio: gyro: adis16136: fix unprotected debugfs reads
iio: imu: adis16400: fix unprotected debugfs reads
iio: imu: adis16480: fix unprotected debugfs reads
Arthur Heymans (1):
drm/amd/display: Preserve eDP mode on initial ASSR failure
Asad Kamal (1):
drm/amd/powerplay: fix VoltageObjectInfo zero-stride loop and OOB read
Baha Mesleh (1):
octeontx2-af: mcs: Fix SC resource cleanup loop
Baochen Qiang (1):
wifi: ath12k: fix reusing m3 memory
Baolin Wang (3):
mm: factor out the order calculation into a new helper
mm: shmem: change shmem_huge_global_enabled() to return huge order bitmap
mm: shmem: ignore sysfs configs for shmem forced collapse
Bean Huo (1):
nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for Micron 4100AT
Beata Michalska (2):
arm64: errata: Factor out broken AMU const counter cap
arm64: errata: Add Cortex-A725 erratum 3821522 workaround
Ben Cressey (1):
dm-crypt: reject the lmk IV mode with AEAD ciphers
Benjamin Tissoires (1):
HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request
Binbin Deng (1):
net/mctp: publish the mctp_dev only after it is initialised
Carlo Szelinsky (1):
USB: serial: option: add Quectel EG060W
Cezary Rojewski (2):
ASoC: codecs: rt286: Revert delay value for jack setup
ASoC: codecs: rt274: Fix format setting for 44100 rate
Chandrashekar Devegowda (3):
Bluetooth: btintel: fix buffer over-read in btintel_hw_error()
Bluetooth: btintel_pcie: fix plen overflow in btintel_pcie_recv_frame()
Bluetooth: btintel_pcie: reject oversized TX packets in send_frame()
Chao Yu (3):
f2fs: fix to reclaim space in f2fs_allocate_pinning_section()
f2fs: fix to shrink gc_lock coverage in f2fs_gc_range()
f2fs: fix to reset all pinned status during fggc
Chen Ni (1):
usb: ohci-spear: Remove unnecessary NULL check before clk_disable_unprepare()
Chen Ridong (1):
cpuset: separate tmpmasks and cpuset allocation logic
ChenXiaoSong (2):
smb/client: use stack-allocated smb2_file_all_info in smb3_query_mf_symlink() smb/client: pass cifs_open_info_data to SMB2_open()
Chengfeng Ye (12):
Bluetooth: RFCOMM: Fix initial port reference race
Bluetooth: hci_sync: Fix inquiry cache use-after-free
Bluetooth: hci_conn: Lock parent access during enhanced SCO setup
Bluetooth: hci_core: Serialize ACL scheduling with channel deletion
Bluetooth: hci_core: Serialize fragmented ISO packet queueing
Bluetooth: hci_core: Serialize SCO and ISO scheduling with teardown
Bluetooth: Serialize SMP remote OOB data access
tipc: hold a reference to nodes found by link name net/smc: protect clcsock lifetime in smc_getname
Bluetooth: hci_sock: Serialize dead-device detachment
Bluetooth: ISO: Reject concurrent BIS listener setup
Bluetooth: ISO: Serialize concurrent connect calls
Christian Brauner (7):
namespace: don't copy an unmounted mount tree
fs: refuse fspick() on internal superblocks
namespace: check a submount for references right before unmounting it
dcache: don't put a mountpoint on a dentry that's being removed
namespace: don't let a pseudo dentry become the root of a mount
namei: don't reveal overmounted entries in refwalk
namespace: refuse an automount below a mount that is in no namespace
Christian Göttsche (1):
selinux: fix data race on AVC latest_notif
Christoph Hellwig (1):
fs,fsverity: reject size changes on fsverity files in setattr_prepare
Chuck Lever (1):
svcrdma: Use svc_xprt_put to free listener on create failure
Cong Nguyen (2):
iio: proximity: pulsedlight: fix iio_device left registered on PM setup failure
iio: adc: max1363: sign-extend bipolar differential channel reads
Cristian Papa (1):
wifi: mt76: mt7603: initialize global station WCID
Daehyeon Ko (10):
nvme-multipath: fix underflow in ANA log bounds checks
thunderbolt: Reject oversized XDomain properties responses
ipv4: stop PMTU walk when nexthop group shrinks
ipv4: stop exception dump when nexthop group shrinks
ipv4: stop route notification sizing when nexthop group shrinks
ipv4: do not warn on route notification size race
ipv6: do not warn on route notification size race
cipso: adjust cached option offsets when removing CIPSO vsock/virtio: account only unread bytes in read_skb()
tcp: reject net_iov in zerocopy receive mapping hints
Daniel Machon (1):
net: sparx5: free the matchall entry on destroy
Daniel Starke (1):
tty: n_gsm: fix missing modem controls after DLCI open in convergence layer type 2
Dapeng Mi (1):
perf/core: Check kernel access when kernel callchains are requested
Darrick J. Wong (2):
xfs: don't let memory failures leak blocks and kill repairs
xfs: fix cursor and pointer handling when recovering iunlink buckets
David Heidelberg (1):
Input: s6sy761 - fix resume ordering and restore sensing
David Howells (1):
cifs: Fix handling of a beyond-EOF DIO/unbuffered read over SMB1
Denis V. Lunev (1):
openvswitch: fix soft lockup in the netlink flow dump
Devin Wittmayer (2):
wifi: mt76: mt7925: don't put the band auto marker in TGID
wifi: mt76: mt792x: pick the SAR table layout from the table itself
Dinh Nguyen (1):
EDAC/altera: Fix memory leak on dci allocation failure
Dipayaan Roy (3):
net: mana: check xdp_rxq registration before unreg in mana_destroy_rxq()
net: mana: Skip WQ object destruction for uninitialized RXQ
net: mana: remove double CQ cleanup in mana_create_rxq error path
Eric Biggers (2):
fsverity: add dependency on 64K or smaller pages
crypto: drbg - Fix ineffective sanity check
Eric Dumazet (7):
net: restrict SO_RESERVE_MEM to TCP sockets and cap max value
ipv6: sr: use skb_get_hash_net() in seg6_make_flowlabel()
ipv6: use RCU in ip6_output()
ipv4: free inet_opt and ireq_opt after an RCU grace period
bnxt_en: fix DMA mapping length for padded small packets
flow_dissector: avoid u16 truncation of skb->len when computing thoff
flow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect()
Fabrice Gasnier (2):
iio: adc: stm32-adc: fix check on internal channel availability
iio: adc: stm32-adc: fix possible division by zero in processed channel
Fan Wu (11):
smb: client: fix cifsFileInfo reference leak in deferred close
usb: gadget: aspeed-vhub: cancel wake work on device removal
usb: typec: ucsi: glink: fix use-after-free of ucsi on remove
usb: cdns3: fix use-after-free in cdns3_gadget_exit()
tty: serial: max3100: shut down timer before freeing port
serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()
iio: adc: xilinx-xadc: free IRQ before cancelling the unmask worker on unbind
iio: light: gp2ap020a00f: drain irq_work after free_irq
iio: trigger: cancel reenable_work before freeing trigger
iio: adc: ad_sigma_delta: fix use-after-free on unbind
drm/vc4: drain the hangcheck timer and works on V3D unbind
Felix Fietkau (2):
wifi: mac80211: prevent AP VLAN tx from other interfaces
wifi: mac80211: set info->band for 802.3 encap offload frames
Felix Gu (2):
iio: adc: sun4i-gpadc-iio: clean up on thermal zone registration failure
iio: adc: sun4i-gpadc-iio: drop underflowing pm_runtime_put() calls
Fernando Fernandez Mancera (2):
netfilter: bpf: reject invalid NAT manipulation types
net: openvswitch: validate transport header presence in set_ipv6_addr
Filipe Manana (1):
btrfs: fix xattr replace when multiple xattrs are packed in the same item
Florian Fainelli (2):
net: systemport: Fix buffer overflow in bcm_sysport_get_stats()
net: systemport: Fix RUNT MIB counter register offset calculation
Florian Westphal (4):
netfilter: ipset: do not update comments from kernel-side adds
netfilter: conntrack: remove skb argument from nf_ct_refresh
netfilter: conntrack: rework offload nf_conn timeout extension logic
netfilter: conntrack: fix erronous removal of offload bit
Francisco Beltrán Millalén (1):
drm/amdgpu: reset VI ASIC on MacBookPro14,3
Frank Sorenson (2):
smb: client: fix OOB read/write from unvalidated DataOffset in coalesce_t2()
smb: client: split cifsFileInfo bitfields to avoid shared-byte RMW races
Fredrik Nyberg (1):
net: usb: ax88179_178a: fix rx frame length for non-last packets
Fuad Tabba (3):
KVM: arm64: vgic-its: Don't dereference a NULL collection on ITT save
KVM: arm64: Apply the fine-grained UNDEFs without FEAT_FGT arm64/boot: Don't set PMUv3p9 FGT2 bits without PMUv3
Georgios Karantzas (1):
wifi: ath9k_htc: bound TX aggregation to MAX_TX_BUF_SIZE
Georgiy Osokin (1):
tee: shm: reject zero-sized allocations in tee_dyn_shm_alloc_helper()
Gilberto Conde (1):
net: usb: qmi_wwan: add Quectel EG120K-EA
Greg Kroah-Hartman (1):
Linux 6.12.113
Guangshuo Li (7):
drm/mediatek: Fix ovl adaptor platform device leak drm/amdgpu: fix IP instance memory leak on kobject add failure drm/amdgpu: fix ACP MFD device leak on init failure
wifi: iwlegacy: 3945: free EEPROM data on remove
mmc: cavium-octeon: destroy slot platform devices on remove
mmc: cavium-thunderx: destroy slot platform devices on remove
mmc: sdhci-sprd: disable runtime PM on remove
Guixin Liu (1):
nvme-multipath: set BLK_FEAT_ZONED only after the zone info is known
Gyeyoung Baek (2):
drm/imagination: Size page table preallocation by device address drm/imagination: Fix reference and vm_bo handling in remap()
Haishuang Yan (2):
devlink: fix devlink_rel reference leak when notify work is pending
pfcp: make sure the SEID is linear before reading it
Han Xu (1):
mtd: spinand: Enable QE on all dies
Haojie Li (2):
drm/mediatek: Add missing IS_ERR check for ovl_adaptor platform device drm/amdkfd: fix dma_buf reference leak in get_dmabuf_info
Haotian Zhang (1):
Input: ati_remote2 - fix type confusion in device attribute handlers
Harshit Mogalapalli (1):
net: microchip: vcap: stop scanning after deleting key field
Hongjian Dai (1):
i2c: at91: release DMA channels when probe defers
Hui Peng (2):
usb: core: clear both ep_in and ep_out for non-ep0 control endpoints
sctp: copy zeroed stats to user in sctp_getsockopt_pr_streamstatus() when !streamoute
Hui Su (1):
iio: pressure: bmp280: fix out-of-bounds access in sampling frequency lookup
HyeongJun An (1):
ASoC: wm8903: Move the DRC QR threshold to the register that holds it
Ian Lin (2):
USB: serial: option: add Compal EXM-G1x support
USB: serial: option: add Compal EXC-T1 support
Ian Rogers (1):
perf: Replace perf_event_header__init_id with full header init
Iaroslav Voitovych (1):
Bluetooth: MGMT: Fix status of pending commands flushed on power off
Ilia Gavrilov (1):
vsock: Fix memory leak in vmci_transport_recv_dgram_cb()
Ilkka Lappeteläinen (1):
net/packet: prevent TX_RING byte count overflow
Imre Kaloz (1):
drm/radeon: Read the VRAM VBIOS signature with readb()
Jakub Kicinski (3):
tools: ynl-gen: use names of constants in generated limits
tools: ynl-gen: support limits using definitions
tools: ynl: add scope qualifier for definitions
Jamal Hadi Salim (5):
net/sched: cls_api: reclaim an empty proto on the error path net/sched: fq_codel: match the no-drop threshold to the packet size net/sched: sch_codel: match the no-drop threshold to the packet size
net: cap skb->queue_mapping when the tx queue is picked net/sched: em_text: reject unterminated algo before autoload
Jameson Thies (1):
usb: typec: ucsi: displayport: Current CAM OOB index fixup
Jason A. Donenfeld (1):
wireguard: noise: reject response consumption after intermediate initiation
Jeff Jo (1):
tcp: refresh TS.Recent for accepted old ACKs
Jens Axboe (3):
io_uring: fix task_work add use-after-free with SQPOLL io_uring/waitid: use io_waitid_remove_wq() consistently io_uring/waitid: fix KCSAN warning on io_waitid->head
Jens Wiklander (1):
optee: sync secure world ABI headers
Jerome Tollet (2):
net/mlx5e: Prevent stale XSK buffer release on refill retry net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry
Ji-Ze Hong (Peter Hong) (1):
usb: f81604: fix struct f81604_int_data size mismatch
Jiajia Liu (1):
Bluetooth: hci_event: fix simultaneous discovery stuck in FINDING
Jiakai Xu (1):
RISC-V: KVM: Fix null pointer dereference in kvm_riscv_aia_imsic_has_attr()
Jiale Yao (1):
iio: accel: kxcjk-1013: reject duplicate event disable
Jiangshan Yi (5):
smb: client: clear setuid/setgid bit on write with cifsacl/modefromsid/posix extensions drm/amd/display: check dc_state_create_copy() for NULL in dm_suspend
ASoC: codecs: max98363: fix uninitialized stream_config->type
ASoC: codecs: rt1017-sdca-sdw: fix uninitialized stream_config->type
tpm: fix off-by-four bounds check in tpm2_get_random()
Jiayuan Chen (1):
bpf, xdp: move offload check into dev_xdp_install()
Jiazi Liu (1):
usb: dwc3: gadget: fix IRQ storm on invalid event buffer count
Jie Deng (1):
usb: cdns3: Fix NULL pointer dereference in cdns3_pci_probe
Jinseob Kim (1):
iio: buffer: serialize buffer teardown with mode claims
Jiri Slaby (SUSE) (4):
console: introduce console_lock guard()s
tty/vt: use guard()s
tty: introduce tty_port_tty guard()
tty: tty_port: use guard()s
Johan Hovold (13):
USB: cdc-acm: fix racy TIOCMIWAIT implementation
USB: serial: fix port tear down use-after-free
tty: amiserial: fix broken TIOCMIWAIT
tty: abort break signalling on hangup
serial: fix TIOCMIWAIT race
USB: serial: quatech2: fix baud rate overflow
USB: serial: ssu100: fix baud rate overflow
USB: serial: fix dynamic id driver deregistration race
USB: serial: fix driver deregistration order
USB: serial: fix ioctl hangup race
tty: fix saved termios reset race
tty: tty_port: restore TTY_IO_ERROR on activation failure
tty: port: fix tty_port_tty_vhangup() race
Johannes Berg (1):
Revert "wifi: libertas: reject short monitor TX frames"
Jonathan Cameron (1):
iio: buffer: Ensure bounce buffer used for unaligned case is zeroed.
Josef Bacik (3):
xen/netfront: drop RX packets with a short Ethernet header xen/netfront: don't leak the skb when xennet_fill_frags() fails
net: skbuff: don't leave stale bytes in skb_copy_and_csum_bits()
Joshua Rogers (2):
tty: vcc: zero-initialize control packet in vcc_send_ctl()
tty: vcc: hold port lock when clearing tty pointer in vcc_cleanup
Julian Anastasov (3):
ipvs: fix missing counter decrement in lblc
ipvs: do not create invisible templates
ipvs: filter some flags received in the backup server
Julian Sun (1):
nvmet: preserve device path on allocation failure
Jun Yang (1):
sctp: check RCV_SHUTDOWN after the sendmsg connect wait
Junjie Cao (1):
wifi: mt76: mt792x: treat 0xff ACPI SAR entries as no limit
Jérémy Carrat (1):
USB: serial: cp210x: add Corsair AX1500i Power Supply
Jérémy Jean (2):
audit: fix exe mark UAF in kill_rules()
tipc: prevent GCM nonce reuse on peer key changes
Karl Bonde Torp (1):
nvme: fix swapped ZRASF zone state values for full and read only
Karl Mehltretter (5):
mtd: core: call _get_device() with the master MTD
random: fix vgetrandom_opaque_params kernel-doc
arm64: irq: exclude the softirq stack switch from KCOV
keys: finalize persistent keyring timeout after link attempt
riscv: fix load_unaligned_zeropad() fixup for RV32
Kefeng Wang (1):
mm: shmem: remove __shmem_huge_global_enabled()
Kiran K (1):
Bluetooth: btintel_pcie: Add recovery mechanism
Krzysztof Furman (1):
Input: xpad - add support for Corsair Novablade Pro
Krzysztof Karas (2):
drm/i915/gem: Prevent overstepping exec array boundary drm/i915/gt: Unmask interrupts only when ACTIVE is true
Krzysztof Kozlowski (1):
iio: adc: aspeed: Simplify with dev_err_probe
Kuba Piecuch (1):
sched_ext: Generate qseq from a per-task counter
Kuniyuki Iwashima (6):
neighbour: Skip default parms when resumed in neightbl_dump_info().
memcg: convert memcg->socket_pressure to u64
mptcp: Fix up subflow's memcg when CONFIG_SOCK_CGROUP_DATA=n.
net: Clean up __sk_mem_raise_allocated().
net-memcg: Introduce mem_cgroup_from_sk().
net-memcg: Introduce mem_cgroup_sk_enabled().
Kurt Lieber (1):
thunderbolt: Disable CL states for the Anker Prime TB5 dock
Kyle Zeng (1):
ALSA: seq: Serialize compat port-info ioctls
Laxman Acharya Padhya (1):
iio: proximity: aw96103: validate firmware data length
Leo Li (1):
drm/amd/display: Fix direct scanout alpha on some DRM_FORMATs
Leon Hwang (1):
kprobes: Skip disarmed probes when checking optkprobe overlap
Li RongQing (1):
net/mlx5e: Order ICOSQ cc update after CQ doorbell
Liew Rui Yan (1):
mm/damon/core: fix unconditionally skip last region
Linkai Gong (1):
usb: typec: anx7411 - stop the IRQ before destroying the workqueue
Linmao Li (1):
Bluetooth: hci_core: Fix inquiry cache timestamps on 64-bit systems
Liu Chao (1):
usb: gadget: f_uac1_legacy: validate bRequest index in generic_{set,get}_cmd
Liu Dalin (1):
rtc: dev: zero-initialize struct rtc_wkalrm to prevent information leak
Lorenzo Bianconi (1):
net: mvneta: clear XDP pfmemalloc flag between frames
Lorenzo Stoakes (ARM) (1):
mm/secretmem: properly account locked pages
Lovekesh Solanki (3):
Input: i8042 - add nomux quirk for Fujitsu LIFEBOOK U7410
Input: synaptics - add LEN205b entry to smbus_pnp_ids for ThinkPad T490
usb: hub: use shorter 120ms post resume hold for SS root hubs
Luo Gengkun (2):
perf: Fix race between perf_event_exit_task() and perf_pending_task()
perf: Remove unnecessary parameter of security check
Ma Xinmeng (1):
dm-snap: reject the transient exception store for snapshot-merge
Mahantesh Salimath (1):
tee: optee: ffa: support shared memory offsets on large-page kernels
Manikanta Guntupalli (1):
i2c: xiic: Relocate xiic_i2c_runtime_suspend and xiic_i2c_runtime_resume to facilitate atomic mode
Manush Prajwal (1):
rtc: mpfs: fix unchecked devm_clk_get() error pointer in probe()
Maoyi Xie (1):
rds_tcp: close NULL deref window in rds_tcp_set_callbacks
Marc Zyngier (3):
KVM: arm64: nv: Fix life cycle of the nested_mmus array
KVM: arm64: nv: Delay freeing of shadow S2 structures until VM destruction
KVM: arm64: vgic-its: Fix MOVALL handling of source redistributor
Marco Chen (1):
iio: health: max30102: fix NULL dereference in interrupt handler
Marek Szyprowski (2):
swiotlb: fix default_swiotlb_limit() for non-growable default pool
ASoC: samsung: i2s: enable op_clk in probe to balance runtime PM
Marian Rotariu (1):
usb: typec: tipd: don't send GAID when probe fails in APP mode
Mark Rutland (4):
arm64/fpsimd: signal: Clear PSTATE.SM when restoring FPSIMD frame only arm64/fpsimd: signal: Mandate SVE payload for streaming-mode state arm64/fpsimd: signal: Consistently read FPSIMD context arm64/fpsimd: signal: Forbid non-streaming SVE payload on SME-only systems
Martino Papero (1):
Input: atkbd - skip deactivate for Lenovo IdeaPad Slim 3 15IWC11
Matthew Wilcox (Oracle) (1):
fs: Free any excess xarray nodes in clear_inode()
Matti Vaittinen (6):
iio: accel: kionix-kx022a: Fix array boundary check
iio: accel: kx022a: Use cleanup.h helpers
iio: accel: kionix-kx022a: Prevent memory leak and fix state
iio: bu27034: simplify using guard(mutex)
iio: light: rohm-bu27034: Fix infinite delay on error
iio: light: rohm-bu27034: Fix error return
Maxim Skokov (1):
Bluetooth: RFCOMM: free the skb when the DLC has no owner
Maxime Ripard (1):
drm/vc4: Make v3d paths unavailable on any generation newer than vc4
Maíra Canal (2):
drm/vc4: Free the BO cache size list on teardown drm/vc4: Fix binner slot allocation failing on an idle GPU
Mehmet Fide (2):
mtd: rawnand: vf610_nfc: fix reads on chips with more than 64 bytes of OOB
mtd: rawnand: vf610_nfc: fix false bitflips on reads of erased pages
Michael Chan (2):
bnxt_en: Add bnxt_clear_bars() helper
bnxt_en: Fix driver init in kdump kernel
Michael Garland (1):
ASoC: amd: yc: Add DMI quirk for Acer Aspire Go 15 (AG15-21P)
Michael Hennerich (1):
iio: buffer-dmaengine: fix sg entry iteration when building dma_vecs
Michael S. Tsirkin (1):
ipv4: validate checksum_start before completing checksum
Michele Dionisio (1):
wifi: brcmfmac: fix P2P device removal race in brcmf_detach()
Mika Westerberg (1):
thunderbolt: Fix KASAN reported use-after-free when request is canceled
Mike Rapoport (Microsoft) (1):
selftests/mm: hugetlb-mremap: add setup of HugeTLB pages
Mikhail Gavrilov (1):
drm/amdgpu: copy debugfs register data outside the GRBM/SRBM locks
Mikulas Patocka (1):
dm: fix reading free memory in do_resume
Ming Qian (1):
pmdomain: imx8m-blk-ctrl: Serialize power on/off across sibling domains
Mingming Cao (2):
ibmveth: h_free logical LAN on open-fail after register
ibmveth: fix TX LTB and filter unwind on open-fail
Mingyu Wang (1):
tty: vt: fix memory leak in vc_allocate()
Mostafa Saleh (1):
KVM: arm64: Use stage-1 leaf size for VM_PFNMAP
Myeonghun Pak (6):
usb: ohci-da8xx: disable controller wakeup on cleanup
usb: ohci-s3c2410: disable controller wakeup on removal
usb: ohci-st: disable controller wakeup on removal
usb: chipidea: tegra: disable runtime PM on resume failure
usb: ohci-spear: disable controller wakeup on removal drm/aspeed: Balance the display clock enable on teardown
Namjae Jeon (1):
smb: client: use finish_no_open() for non-regular inodes
Nathan Chancellor (1):
random: vDSO: avoid call to memset() when zeroing reserved parameter
Nguyen Ngoc Thang (4):
ALSA: caiaq: unregister the input device when probe fails
Bluetooth: hci_sync: don't drain cmd_sync backlog on unregister
memstick: rtsx_usb_ms: complete requests after eject instead of dropping them drm/fb-helper: defer setup when fbdev_probe() fails, not just on -EAGAIN
Nicolai Buchwitz (1):
net: bcmgenet: fix NULL dereference in set_coalesce before first open
Nicolas Cavallari (1):
wifi: mt76: mt7915: disable rx napi when removing device
Nicolas Escande (1):
wifi: ath11k: reset ar->num_stations on hardware start
Niklas Cassel (1):
virtio_blk: set the zone write granularity
Nikola Prica (1):
PCI: Accept AtomicOps already enabled by the hypervisor
Nuno Sá (2):
mtd: spinand: fix zero oobavail when no ECC engine is used
mtd: spinand: fix NULL pointer dereference with no ECC engine
Oleg Keri (1):
drm/dp: don't mark the AUX backlight enabled when enabling failed
Oliver Hartkopp (1):
can: fix unique skb identifier regression under RPS
Omar Ramadan (1):
amt: send the relay's General Query directly from the receive path
Orgad Shaneh (1):
usb: octeon-hcd: fix the FIFO-flush timeout computation
Osama Abdelkader (1):
drm/panthor: validate userspace queue count against initialized firmware slot count
Pablo Neira Ayuso (1):
netfilter: flowtable: generalize pending status bit
Palla Raghunath (2):
dm ioctl: don't let data_start run past the buffer
Bluetooth: RFCOMM: Fix NULL tty_dev dereference in rfcomm_dev_shutdown
Pannarat Wiriyaarritham (1):
usb: typec: ucsi: acpi: Assume UCSI 1.2 on Acer Nitro ANV15-41
Paolo Abeni (1):
mptcp: prevent race between disconnect() and rtx
Paul Mbewe (2):
serial: sc16is7xx: fix TX gap caused by kfifo circular buffer wrap-around
serial: sc16is7xx: refill TX FIFO below trigger using fresh TXLVL
Paulo Alcantara (4):
smb: client: discard post-EOF pagecache when extending a file via zero range
smb: client: discard post-EOF pagecache when extending a file via copy range
netfs: clear post-EOF pagecache when extending a file via write
smb: client: only require read lease for size-extending preallocate
Pavankumar Kondeti (1):
workqueue: Fix NULL current_pwq deref in chained work check
Pei Xiao (1):
mtd: block2mtd: Fix divide error when erase_size is zero
Pengpeng Hou (3):
wifi: ath9k: reject short WMI command responses
iio: adc: aspeed: propagate reset deassert errors
iio: cdc: ad7150: fix OF matching and publish module aliases
Peter Ujfalusi (2):
ASoC: SOF: ipc4-priv: Add kernel doc for fw_context_save of sof_ipc4_fw_data
ASoC: SOF: ipc4/Intel: Add support for library restore firmware functionality
Petr Machata (1):
mlxsw: spectrum_flower: Fix port range register leak in tmplt_create()
Prashanth K (1):
usb: typec: ucsi: Get the connector fwnode based on reg value
Prathamesh Deshpande (1):
net/mlx5e: Fix AF_XDP TX timestamp teardown NULL dereference
Qishuai Liu (1):
ipv6: fix prefix route expiry in modify_prefix_route()
Quchaosheng (1):
net/packet: guard the ll header push in packet_rcv_spkt()
Quentin Freimanis (1):
net: sparx5: make ports inherit the switch base mac address type
Radhey Shyam Pandey (2):
usb: dwc3: am62: Fix runtime PM usage count leak on probe error path
usb: typec: tipd: fix uninitialized typec_partner_desc in tps6598x_connect()
Raj Ojha (1):
memstick: core: wait for request completion before freeing card
Ramses de Norre (1):
wireguard: queueing: preserve tstamp_type when encapsulating packet
Raphaël Larocque (1):
Input: synaptics - limit T440p InterTouch quirk to LEN0036
Ravindra (1):
Bluetooth: btintel_pcie: fix TX descriptor bounds check
Remy D. Farley (1):
doc/netlink: netlink-raw: Add max check
Richard Fitzgerald (1):
ASoC: sdw_utils: Set snd_soc_dai_link_ch_map.codec_ch_mask for capture
Ridham Khurana (2):
gpio: xilinx: fix runtime PM leak on request error path
regulator: tps6594-regulator: Fix n_linear_ranges for TPS65224 BUCK2-4
Rodrigo Zaiden (1):
tee: optee: fix kernel-doc warnings
Rongwei Liu (1):
net/mlx5: LAG, Refactor lag logic
Ruide Cao (1):
wifi: mac80211: reject invalid 320 MHz CSA bandwidth
Runyu Xiao (6):
rtc: spear: initialize IRQ state before requesting alarm IRQ
mtd: rawnand: cadence: Initialize IRQ state before requesting IRQ
iio: admv1013: initialize callback mutex before registering notifier
USB: dwc2: shut down wakeup timer before freeing HCD state
scsi: qedi: Initialize callback state before registration
Bluetooth: btintel_pcie: use managed IRQ teardown
SJ Park (1):
mm/damon/core: don't skip damos_adjust_quota() while esz is not zero
Sabrina Dubroca (1):
strparser: make sure __strp_recv isn't running before tearing down the parser
Sai Teja Aluvala (2):
Bluetooth: btintel: validate DDC record lengths
Bluetooth: btintel_pcie: Add shared HW reset for clean start
Sajal Gupta (1):
drm/gud: don't keep a connector without a CRTC as connector_state
Salah Triki (4):
iio: accel: sca3000: fix frequency divider condition check
iio: frequency: admv1013: fix wrong channel field used in admv1013_read_raw()
iio: proximity: isl29501: Fix return type of isl29501_register_write
iio: proximity: vcnl3020: fix ISR bitmask check in IRQ handler
Saleel Kudchadker (1):
drm/amdkfd: align SDMA doorbell base for shader doorbell writes
Sandeep Haemoon (1):
net: ethernet: mtk_eth_soc: allocate dummy netdev sooner
Sang-Hoon Choi (4):
Bluetooth: hci_core: free the HCI ID if naming fails
gpio: exar: initialize the ID before registering its cleanup cxgb4/ch_ktls: disable softirqs around tid_list erases
nvmet: use the local P2P device on metadata allocation failure
Sean Christopherson (3):
KVM: nVMX: Force MSR bitmap refresh if runtime eVMCS controls are modified
KVM: x86/mmu: Bail from shadow walks if the root is invalid or a dummy
KVM: SVM: Use the active VMCB's MSR bitmap when checking if MSR is intercepted
Sebastian Sjoholm (1):
USB: serial: option: add Quectel RG660QB
Sebastien Royen (1):
net: dsa: microchip: fix KSZ8765 fiber detection
SeongJae Park (1):
mm/damon/core: do non-safe region walk on kdamond_apply_schemes()
SeungJu Cheon (1):
Bluetooth: ISO: Fix data-race on iso_pi(sk) in socket and HCI event paths
Shao-Fu Chen (1):
optee: register TEE devices only once fully initialized
Shawn Lin (3):
pmdomain: rockchip: don't ignore clock lookup errors on attach
pmdomain: rockchip: fix clock leak on domain probe failure
pmdomain: rockchip: propagate subdomain add errors
Sheetal (1):
ASoC: tegra: Fix ASRC Stream6 input threshold control
Simon Gassner (1):
serial: tegra: don't clear the Tx FIFO on an Rx-only reset
Slavin Liu (1):
iio: adc: pac1934: check ACPI label duplication
Stephen Smalley (1):
selinux: preserve NATIVE_LABELS on already-initialized sb in set_mnt_opts
Surendran Kanagaraj (1):
tpm: Disable TPM on null key name mismatch
Syed Labeeq Sajid Bukhari (1):
usb: storage: sierra_ms: reject short SWoC info transfers
Takashi Iwai (4):
ALSA: usb-audio: Apply IGNORE_CTL_ERROR quirk to all Audient devices
ALSA: core: Define auto-cleanup for snd_card_free()
ALSA: ice1712: Fix the error handling via auto-cleanup at probe
usb: gadget: midi2: Fix the jack descriptor array sizes
Tamizh Chelvam Raja (3):
wifi: mac80211: Add multicast to unicast support for 802.3 path
wifi: mac80211: Add 802.3 multicast encapsulation offload support
wifi: mac80211: Add sta pointer sanity check in ieee80211_8023_xmit()
Tao Gong (1):
wifi: mt76: mt7996: fix struct mt7996_mcu_wed_rro_ba_delete_event layout
Tetsuo Handa (1):
perf/core: Fix WARN in perf_sigtrap()
Tianchu Chen (1):
wifi: cw1200: fix TX padding OOB read leaking heap data to device
Tianyi Gao (1):
veth: fix peer NETDEV_XDP_ACT_NDO_XMIT after GRO is toggled while down
Tibor Harcsa (1):
Bluetooth: btusb: Add IMC Networks QCA9377 to quirks table
Timur Kristóf (4):
drm/amd/pm/si: Check AMD_IS_MOBILITY flag for PPSMC_SYSTEMFLAG_GPIO_DC drm/amd/pm/si: Fix updating clock limits on AC/DC drm/amd/display: Fix fast updates on DCE 8.1 drm/amd/display: Mark DCE 6.4 as not APU
Tomer Pomeranc (2):
binder: fix is_failure flag for superseded transaction cleanup
binder: fix leaked fd fixups on TF_UPDATE_TXN supersede
Tristan Madani (1):
ice: fix metadata_dst refcount handling on representor teardown
Uwe Kleine-König (1):
rtc: Switch back to struct platform_driver::remove()
Vadim Fedorenko (1):
ptp: ocp: fix PCIe delay estimation calculation
Vicki Pfau (4):
HID: steam: Fully unregister controller when hidraw is opened
HID: steam: Rearrange teardown sequence
HID: steam: Refactor registration
HID: steam: Clean up locking
Victor Nogueira (1):
net/sched: cls_route: reject change with no routing attribute
Viken Dadhaniya (2):
soc: qcom: geni-se: Correct QUP Core ICC vote constants
tty: serial: qcom_geni_serial: Keep console RX functional after deep idle
Vincent Jardin (3):
arm64: dts: lx2160a: fix incorrect pinmux
arm64: dts: lx2160a: fix IIC1 pinmux submask rejected by pinctrl-single
arm64: dts: lx2160a: fix the iic5 spi3 pinmux offset and value
Vishal Badole (1):
EDAC/amd64: Mask UMC chip select to the four implemented selects
Vitaly Prosyak (1):
drm/amdgpu: serialize vblank counter reads against GPU reset
Vladyslav Ivashchenko (1):
iio: adc: axp288: Add TS bias override for Haier HV103H
Waiman Long (1):
cgroup/cpuset: Call is_in_v2_mode() after acquiring cpuset_mutex in cpuset_handle_hotplug()
Weiming Shi (1):
nvmet-auth: fix out-of-bounds write in nvmet_auth_challenge()
Wentao Liang (7):
of/irq: Fix remaining refcount leaks in of_irq_init()
wifi: wlcore: Fix runtime PM leak in wlcore_remove() drm/mediatek: Fix pdev reference leak in mtk_drm_bind()
kgdboc: Fix tty driver reference leak in configure_kgdboc()
serial: ma35d1: Fix clock reference leak in ma35d1serial_probe()
serial: vt8500: Fix clock reference leak in vt8500_serial_probe()
btrfs: scrub: fix local_root reference leak in scrub_print_warning_inode()
Willem de Bruijn (1):
net: extend IPv6 exthdr detection of tunneled packets
Willian Oliveira (1):
drm/amdgpu/gfx6: fix firmware leak on teardown
Xiang Mei (2):
ALSA: line6: reject oversized playback packets
ALSA: ua101: reject mismatched capture/playback packet sizes
Xuanqiang Luo (1):
pfcp: fix socket lifetime on netdevice registration failure
Yi Yang (1):
vc_screen: reload vc pointer before if (ret) in vcs_write() to avoid UAF
Yibo Tan (1):
mmc: mtk-sd: Cancel request timeout work on remove
Yuchao Zhang (2):
USB: cdc-acm: skip URB restart in port_shutdown if disconnected
usb: gadget: f_fs: Fix NULL pointer dereference in FUNCTIONFS_ENDPOINT_DESC
Yuqi Xu (3):
wifi: mac80211: minstrel_ht: validate fixed rate index
wifi: mac80211: handle empty FILS association request payload
tipc: destroy topsrv workqueues before closing connections
Yuxiao Wang (1):
nitro_enclaves: fix use-after-free on SLOT_ALLOC failure
Zhang Jie (1):
iio: proximity: sx9324: Correct proximity channel resolution
Zhao Dongdong (1):
USB: serial: option: add support for SIMCom SIM8260C
Zhao Li (6):
wifi: cfg80211: preserve hidden-group beacon IE ownership
wifi: mac80211: drain PS delivery work during station teardown
wifi: mac80211: account proxy paths against the mesh path limit
wifi: mac80211: keep fallback association elements alive
wifi: mac80211: release mesh path quota on failed additions
wifi: mac80211: shut down RX BA session timer on teardown
Zhengchuan Liang (1):
perf: Require kernel access for text poke events
Zhichen Wang (1):
virt: vmgenid: set driver_data before registering notification handlers
Zhiling Zou (3):
ipvs: bound LBLCR and LBLC cache growth
wifi: mac80211: keep paired old chanctx alive
wifi: mac80211: count only matching reservations in reserved switch
Zihan Xi (3):
smb: client: close handle after create-context parsing failure
smb: client: close completed creates on compound wait errors
wifi: mac80211: fix mesh fast xmit path deletion UAF
Zimeng Li (1):
ASoC: qcom: lpass-cpu: use DAI table index for playback constraints
Zixuan Chai (1):
net: bridge: avoid recursive multicast port cleanup
Ziyi Guo (1):
riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp
Zizhi Wo (1):
vt: skip screen update for DEC alignment test on backgroup consoles
성병찬 (1):
KEYS: Fix add_key() race with keyring restriction
Greg Kroah-Hartman
maintainerDocumentation/arch/arm64/silicon-errata.rst +2 -0
@@ -166,6 +166,8 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-A725 | #3456106 | ARM64_ERRATUM_3194386 | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | Cortex-A725 | #3821522 | ARM64_ERRATUM_3821522 | ++----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X1 | #1502854 | N/A | +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-X1 | #3324344 | ARM64_ERRATUM_3194386 |
Documentation/filesystems/netfs_library.rst +26 -0
@@ -587,6 +587,32 @@ there isn't a read request structure as well, such as writing dirty data to the cache. +Clearing Stale Post-EOF Pagecache +--------------------------------- + +When a file is extended, data left in the pagecache past the old EOF by a write +through an mmap must not be exposed as file content. Netfslib clears this on +its own write paths, and exports a helper so a filesystem can do the same from +a resize path (truncate, setattr, fallocate and the like) that holds the +inode's ``i_rwsem`` exclusively across the whole resize:: + + void netfs_clear_stale_post_isize(struct inode *inode, unsigned long long from, + unsigned long long to); + +This zeroes any such data within the ``[from, to)`` hole to be made, where +@from is the old EOF and @to is the new one, and the caller must have already +updated ``i_size`` to @to before calling it. Only the folio straddling @from +can hold data written past the EOF through an mmap, as pages wholly beyond the +EOF can't be faulted in, so the zeroing is limited to that folio. The folio is +zeroed rather than dropped so that a concurrent extending write can't lose +data. + +This overlaps with ``pagecache_isize_extended()`` but can't reuse it: that +helper is keyed on a sub-page block size and is a no-op when the block size is +``>= PAGE_SIZE`` (as on network filesystems), and it doesn't wait for +writeback. As both address the same problem, a change to one should probably +be reflected in the other to keep them in sync. + API Function Reference ======================
Documentation/netlink/genetlink-c.yaml +12 -2
@@ -14,9 +14,10 @@ $defs: pattern: ^[0-9A-Za-z_-]+( - 1)?$ minimum: 0 len-or-limit: - # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. + # literal int, const name, or limit based on fixed-width type + # e.g. u8-min, u16-max, etc. type: [ string, integer ] - pattern: ^[su](8|16|32|64)-(min|max)$ + pattern: ^[0-9A-Za-z_-]+$ minimum: 0 # Schema for specs
@@ -68,6 +69,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags ] doc:
Documentation/netlink/genetlink-legacy.yaml +12 -2
@@ -14,9 +14,10 @@ $defs: pattern: ^[0-9A-Za-z_-]+( - 1)?$ minimum: 0 len-or-limit: - # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. + # literal int, const name, or limit based on fixed-width type + # e.g. u8-min, u16-max, etc. type: [ string, integer ] - pattern: ^[su](8|16|32|64)-(min|max)$ + pattern: ^[0-9A-Za-z_-]+$ minimum: 0 # Schema for specs
@@ -79,6 +80,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags, struct ] # Trim doc:
Documentation/netlink/genetlink.yaml +12 -2
@@ -14,9 +14,10 @@ $defs: pattern: ^[0-9A-Za-z_-]+( - 1)?$ minimum: 0 len-or-limit: - # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. + # literal int, const name, or limit based on fixed-width type + # e.g. u8-min, u16-max, etc. type: [ string, integer ] - pattern: ^[su](8|16|32|64)-(min|max)$ + pattern: ^[0-9A-Za-z_-]+$ minimum: 0 # Schema for specs
@@ -51,6 +52,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags ] doc:
Documentation/netlink/netlink-raw.yaml +19 -1
@@ -13,6 +13,12 @@ $defs: type: [ string, integer ] pattern: ^[0-9A-Za-z_-]+( - 1)?$ minimum: 0 + len-or-limit: + # literal int, const name, or limit based on fixed-width type + # e.g. u8-min, u16-max, etc. + type: [ string, integer ] + pattern: ^[0-9A-Za-z_-]+$ + minimum: 0 # Schema for specs title: Protocol
@@ -75,6 +81,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags, struct ] # Trim doc:
@@ -261,7 +276,10 @@ properties: type: string min: description: Min value for an integer attribute. - type: integer + $ref: '#/$defs/len-or-limit' + max: + description: Max value for an integer attribute. + $ref: '#/$defs/len-or-limit' min-len: description: Min length for a binary attribute. $ref: '#/$defs/len-or-define'
Documentation/networking/strparser.rst +1 -1
@@ -77,7 +77,7 @@ Functions strp_done is called to release any resources held by the stream parser instance. This must be called after the stream processor - has been stopped. + has been stopped. The socket lock must not be held. ::
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 12 -SUBLEVEL = 112 +SUBLEVEL = 113 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/Kconfig +30 -0
@@ -1023,9 +1023,17 @@ config ARM64_ERRATUM_1902691 If unsure, say Y. +config ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT + bool + # Targeting errata affecting AMEVCNTR01, the AMU constant counter. + # On affected CPUs the counter may not increment at the expected rate, + # making it unreliable. As a result, AMU users should treat it as + # unavailable rather than relying on misleading counter values. + config ARM64_ERRATUM_2457168 bool "Cortex-A510: 2457168: workaround for AMEVCNTR01 incrementing incorrectly" depends on ARM64_AMU_EXTN + select ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT default y help This option adds the workaround for ARM Cortex-A510 erratum 2457168.
@@ -1056,6 +1064,28 @@ config ARM64_ERRATUM_2645198 If unsure, say Y. +config ARM64_ERRATUM_3821522 + bool "Cortex-A725: 3821522: workaround for possible CNT_CYCLES increment error due to WFE/WFI" + depends on ARM64_AMU_EXTN + select ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT + default y + help + This option adds the workaround for ARM Cortex-A725 erratum 3821522. + + On affected A725 cores, the CNT_CYCLES event may incur a significant + increment error when entering and subsequently exiting WFx. + As a result, the CNT_CYCLES may diverge from the system counter + frequency at which it is expected to increment. + This renders the AMU counter AMEVCNTR01, that implements CNT_CYCLES, + being unreliable and unsuitable for use. + + Since there is no hardware workaround, reads of the affected CNT_CYCLES + counter return 0 in the relevant paths. This causes users of the counter + to treat it as unavailable and is functionally equivalent to firmware + disabling the affected counter. + + If unsure, say Y. + config ARM64_WORKAROUND_SPECULATIVE_UNPRIV_LOAD bool
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +13 -6
@@ -1779,7 +1779,7 @@ esdhc0_clksync_pins: iic5-sdhc-clk-pins { }; dspi2_miso_mosi_pins: iic5-spi3-pins { - pinctrl-single,bits = <0x3 (0x2 << 9) (0x7 << 9)>; + pinctrl-single,bits = <0x0 (0x3 << 9) (0x7 << 9)>; }; i2c5_pins: iic6-i2c-pins {
@@ -1799,7 +1799,7 @@ fspi_data74_pins: xspi1-data74-pins { }; gpio1_31_28_pins: xspi1-data74-gpio-pins { - pinctrl-single,bits = <0x0 0x1 (0x7 << 15)>; + pinctrl-single,bits = <0x0 (0x1 << 15) (0x7 << 15)>; }; fspi_data30_pins: xspi1-data30-pins {
@@ -1807,7 +1807,7 @@ fspi_data30_pins: xspi1-data30-pins { }; gpio1_27_24_pins: xspi1-data30-gpio-pins { - pinctrl-single,bits = <0x0 0x1 (0x7 << 18)>; + pinctrl-single,bits = <0x0 (0x1 << 18) (0x7 << 18)>; }; fspi_dqs_sck_cs10_pins: xspi1-base-pins {
@@ -1815,7 +1815,7 @@ fspi_dqs_sck_cs10_pins: xspi1-base-pins { }; gpio1_23_20_pins: xspi1-base-gpio-pins { - pinctrl-single,bits = <0x0 0x1 (0x7 << 21)>; + pinctrl-single,bits = <0x0 (0x1 << 21) (0x7 << 21)>; }; esdhc0_cmd_data30_clk_vsel_pins: sdhc1-base-sdhc-vsel-pins {
@@ -1864,12 +1864,19 @@ i2c6_i2c7_pins: iic8-iic7-i2c-pins { }; /* RCWSR14 */ + /* + * IIC1_PMUX is a single bit at RCWSR14[10], but bit-per-mux + * uses the mask for the field to clear before applying the + * value. + * So bits 11 and 12, which are reserved, are written as 0 + * on every mux switch, it is harmless. + */ i2c0_pins: iic1-i2c-pins { - pinctrl-single,bits = <0x8 0x0 (0x1 << 10)>; + pinctrl-single,bits = <0x8 0x0 (0x7 << 10)>; }; gpio0_3_2_pins: iic1-gpio-pins { - pinctrl-single,bits = <0x8 (0x1 << 10) (0x1 << 10)>; + pinctrl-single,bits = <0x8 (0x1 << 10) (0x7 << 10)>; }; };
arch/arm64/include/asm/el2_setup.h +3 -2
@@ -277,8 +277,9 @@mov x2, xzr mrs x1, id_aa64dfr0_el1 ubfx x1, x1, #ID_AA64DFR0_EL1_PMUVer_SHIFT, #4 - cmp x1, #ID_AA64DFR0_EL1_PMUVer_V3P9 - b.lt .Lskip_pmuv3p9_\@ + cmp x1, #ID_AA64DFR0_EL1_PMUVer_IMP_DEF + ccmp x1, #ID_AA64DFR0_EL1_PMUVer_V3P9, #8, ne + b.lt .Lskip_pmuv3p9_\@ // Skip if < PMUv3p9 or IMP_DEF orr x0, x0, #HDFGRTR2_EL2_nPMICNTR_EL0 orr x0, x0, #HDFGRTR2_EL2_nPMICFILTR_EL0
arch/arm64/include/asm/kvm_host.h +1 -1
@@ -292,7 +292,7 @@ struct kvm_arch {* Stage 2 paging state for VMs with nested S2 using a virtual * VMID. */ -struct kvm_s2_mmu *nested_mmus; +struct kvm_s2_mmu **nested_mmus;size_t nested_mmus_size;int nested_mmus_next;
arch/arm64/include/asm/kvm_nested.h +2 -1
@@ -64,7 +64,8 @@ static inline u64 translate_ttbr0_el2_to_ttbr0_el1(u64 ttbr0) }extern bool forward_smc_trap (struct kvm_vcpu *vcpu); -extern void kvm_init_nested (struct kvm *kvm); +extern int kvm_init_nested (struct kvm *kvm); +extern void kvm_destroy_nested (struct kvm *kvm);extern int kvm_vcpu_init_nested (struct kvm_vcpu *vcpu);extern void kvm_init_nested_s2_mmu (struct kvm_s2_mmu *mmu);extern struct kvm_s2_mmu *lookup_s2_mmu (struct kvm_vcpu *vcpu);
arch/arm64/kernel/Makefile +3 -0
@@ -25,6 +25,9 @@ KASAN_SANITIZE_stacktrace.o := n KCOV_INSTRUMENT_entry-common.o := n KCOV_INSTRUMENT_idle.o := n +# Softirq stack switching can run outside interrupt context. +KCOV_INSTRUMENT_irq.o := n + # Object file lists. obj-y := debug-monitors.o entry.o irq.o fpsimd.o \ entry-common.o entry-fpsimd.o process.o ptrace.o \
arch/arm64/kernel/cpu_errata.c +18 -6
@@ -259,6 +259,20 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = { };#endif +#ifdef CONFIG_ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT +static const struct midr_range workaround_amu_constcnt_list[] = { +#ifdef CONFIG_ARM64_ERRATUM_2457168 +/* Cortex-A510 r0p0-r1p1 */ +MIDR_RANGE (MIDR_CORTEX_A510 ,0 ,0 ,1 ,1 ), +#endif +#ifdef CONFIG_ARM64_ERRATUM_3821522 +/* Cortex-A725 r0p0 - r0p2 */ +MIDR_RANGE (MIDR_CORTEX_A725 ,0 ,0 ,0 ,2 ), +#endif + {} +}; +#endif /* CONFIG_ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT */ +#ifdef CONFIG_CAVIUM_ERRATUM_23154 static const struct midr_range cavium_erratum_23154_cpus[] = { MIDR_ALL_VERSIONS(MIDR_THUNDERX),
@@ -750,14 +764,12 @@ const struct arm64_cpu_capabilities arm64_errata[] = { ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A510, 0, 0, 2) },#endif -#ifdef CONFIG_ARM64_ERRATUM_2457168 +#ifdef CONFIG_ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT { - .desc = "ARM erratum 2457168", - .capability = ARM64_WORKAROUND_2457168, + .desc = "Broken AMU AMEVCNTR01 (const counter)", + .capability = ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT, .type = ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE, - - /* Cortex-A510 r0p0-r1p1 */ - CAP_MIDR_RANGE(MIDR_CORTEX_A510, 0, 0, 1, 1) + CAP_MIDR_RANGE_LIST(workaround_amu_constcnt_list) }, #endif #ifdef CONFIG_ARM64_ERRATUM_2038923
arch/arm64/kernel/cpufeature.c +1 -1
@@ -2070,7 +2070,7 @@ static void cpu_amu_enable(struct arm64_cpu_capabilities const *cap)cpumask_set_cpu (smp_processor_id (), &amu_cpus);/* 0 reference values signal broken/disabled counters */ -if (!this_cpu_has_cap (ARM64_WORKAROUND_2457168 )) +if (!this_cpu_has_cap (ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT ))update_freq_counters_refs (); } }
arch/arm64/kernel/signal.c +52 -33
136 lines not on this page · raw message
arch/arm64/kernel/topology.c +6 -5
@@ -266,12 +266,13 @@ static void cpu_read_corecnt(void *val)static void cpu_read_constcnt (void *val) {/* -* Return 0 if the current CPU is affected by erratum 2457168. A value -* of 0 is also returned if the current CPU does not support AMUs or if -* the counter is disabled. A return value of 0 at counter read is -* properly handled as an error case by the users of the counter. +* Return 0 if the current CPU is affected by a HW erratum. +* A value of 0 is also returned if the current CPU does not +* support AMUs or if the counter is disabled. A return +* value of 0 at counter read is properly handled as an error +* case by the users of the counter. */ - *(u64 *)val =this_cpu_has_cap (ARM64_WORKAROUND_2457168 ) ? + *(u64 *)val =this_cpu_has_cap (ARM64_WORKAROUND_BROKEN_AMU_CONSTCNT ) ?0UL :read_constcnt (); }
arch/arm64/kernel/vdso/Makefile +1 -1
@@ -40,7 +40,7 @@ CC_FLAGS_REMOVE_VDSO := $(CC_FLAGS_FTRACE) -Os $(CC_FLAGS_SCS) \ $(CC_FLAGS_LTO) $(CC_FLAGS_CFI) \ -Wmissing-prototypes -Wmissing-declarations -CC_FLAGS_ADD_VDSO := -O2 -mcmodel=tiny -fasynchronous-unwind-tables +CC_FLAGS_ADD_VDSO := -O2 -mcmodel=tiny -fasynchronous-unwind-tables $(CONFIG_CC_OPT_INLINE_MEMSET) CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_REMOVE_VDSO) CFLAGS_REMOVE_vgetrandom.o = $(CC_FLAGS_REMOVE_VDSO)
arch/arm64/kvm/arm.c +8 -2
@@ -181,8 +181,6 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)mutex_unlock (&kvm->lock);#endif -kvm_init_nested (kvm); - ret =kvm_share_hyp (kvm, kvm +1 );if (ret)return ret;
@@ -201,6 +199,10 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)if (ret) goto err_free_cpumask; + ret =kvm_init_nested (kvm); +if (ret) + goto err_uninit_mmu; +kvm_vgic_early_init (kvm);kvm_timer_init_vm (kvm);
@@ -214,6 +216,9 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)return 0 ; +err_uninit_mmu: +kvm_uninit_stage2_mmu (kvm); +kvm_destroy_nested (kvm); err_free_cpumask:free_cpumask_var (kvm->arch.supported_cpus); err_unshare_kvm:
@@ -270,6 +275,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm)kvm_unshare_hyp (kvm, kvm +1 ); +kvm_destroy_nested (kvm);kvm_arm_teardown_hypercalls (kvm); }
arch/arm64/kvm/emulate-nested.c +0 -4
@@ -1981,9 +1981,6 @@ int __init populate_nv_trap_config(void)kvm_info ("nv: %ld coarse grained trap handlers\n" ,ARRAY_SIZE (encoding_to_cgt)); -if (!cpus_have_final_cap (ARM64_HAS_FGT )) - goto check_mcb; -for (int i =0 ; i <ARRAY_SIZE (encoding_to_fgt); i++) {const struct encoding_to_trap_config *fgt = &encoding_to_fgt[i];union trap_config tc;
@@ -2014,7 +2011,6 @@ int __init populate_nv_trap_config(void)kvm_info ("nv: %ld fine grained trap handlers\n" ,ARRAY_SIZE (encoding_to_fgt)); -check_mcb:for (int id = __MULTIPLE_CONTROL_BITS__; id < __COMPLEX_CONDITIONS__; id++) {const enum cgt_group_id *cgids;
arch/arm64/kvm/mmu.c +6 -40
80 lines not on this page · raw message
arch/arm64/kvm/nested.c +51 -44
162 lines not on this page · raw message
arch/arm64/kvm/vgic/vgic-its.c +18 -4
@@ -344,12 +344,18 @@ static int update_lpi_config(struct kvm *kvm, struct vgic_irq *irq,return 0 ; } -static int update_affinity (struct vgic_irq *irq,struct kvm_vcpu *vcpu) +static int update_affinity (struct vgic_irq *irq, +struct kvm_vcpu *from_vcpu,struct kvm_vcpu *vcpu) {int ret =0 ;unsigned long flags;raw_spin_lock_irqsave (&irq->irq_lock, flags); +if (from_vcpu && irq->target_vcpu != from_vcpu) { +raw_spin_unlock_irqrestore (&irq->irq_lock, flags); +return 0 ; + } + irq->target_vcpu = vcpu;raw_spin_unlock_irqrestore (&irq->irq_lock, flags);
@@ -391,7 +397,7 @@ static void update_affinity_ite(struct kvm *kvm, struct its_ite *ite)return ; vcpu =collection_to_vcpu (kvm, ite->collection); -update_affinity (ite->irq, vcpu); +update_affinity (ite->irq,NULL , vcpu); }/*
@@ -869,7 +875,7 @@ static int vgic_its_cmd_handle_movi(struct kvm *kvm, struct vgic_its *its,vgic_its_invalidate_cache (its); -return update_affinity (ite->irq, vcpu); +return update_affinity (ite->irq,NULL , vcpu); }static bool __is_visible_gfn_locked (struct vgic_its *its,gpa_t gpa)
@@ -1396,7 +1402,7 @@ static int vgic_its_cmd_handle_movall(struct kvm *kvm, struct vgic_its *its,if (!irq)continue ; -update_affinity (irq, vcpu2); +update_affinity (irq, vcpu1, vcpu2);vgic_put_irq (kvm, irq); }
@@ -2142,6 +2148,14 @@ static int vgic_its_save_ite(struct vgic_its *its, struct its_device *dev,u32 next_offset;u64 val; +/* +* MAPC with V=0 keeps the ITEs mapped but drops their collection, +* and with it the ICID. Save a zeroed entry, which the restore path +* reads back as invalid. +*/ +if (!ite->collection) +return vgic_its_write_entry_lock (its, gpa,0ULL , ite); + next_offset =compute_next_eventid_offset (&dev->itt_head, ite); val = ((u64 )next_offset <<KVM_ITS_ITE_NEXT_SHIFT ) | ((u64)ite->irq->intid << KVM_ITS_ITE_PINTID_SHIFT) |
arch/arm64/tools/cpucaps +1 -1
@@ -85,7 +85,6 @@ WORKAROUND_1902691 WORKAROUND_2038923 WORKAROUND_2064142 WORKAROUND_2077057 -WORKAROUND_2457168 WORKAROUND_2645198 WORKAROUND_2658417 WORKAROUND_AMPERE_AC03_CPU_38
@@ -105,3 +104,4 @@ WORKAROUND_REPEAT_TLBI WORKAROUND_SPECULATIVE_AT WORKAROUND_SPECULATIVE_SSBS WORKAROUND_SPECULATIVE_UNPRIV_LOAD +WORKAROUND_BROKEN_AMU_CONSTCNT
arch/loongarch/vdso/Makefile +1 -0
@@ -13,6 +13,7 @@ ccflags-vdso := \ $(filter -E%,$(KBUILD_CFLAGS)) \ $(filter -march=%,$(KBUILD_CFLAGS)) \ $(filter -m%-float,$(KBUILD_CFLAGS)) \ + $(CONFIG_CC_OPT_INLINE_MEMSET) \ $(CLANG_FLAGS) \ -D__VDSO__
arch/powerpc/kernel/vdso/Makefile +1 -0
@@ -43,6 +43,7 @@ ccflags-y := -fno-common -fno-builtin -DBUILD_VDSO ccflags-y += $(DISABLE_LATENT_ENTROPY_PLUGIN) ccflags-y += $(call cc-option, -fno-stack-protector) ccflags-y += -DDISABLE_BRANCH_PROFILING +ccflags-y += $(CONFIG_CC_OPT_INLINE_MEMSET) ccflags-y += -ffreestanding -fasynchronous-unwind-tables ccflags-remove-y := $(CC_FLAGS_FTRACE) ldflags-y := -Wl,--hash-style=both -nostdlib -shared -z noexecstack $(CLANG_FLAGS)
arch/powerpc/perf/imc-pmu.c +12 -11
@@ -1280,6 +1280,8 @@ static int trace_imc_prepare_sample(struct trace_imc_data *mem,struct perf_event_header *header, struct perf_event *event) { + u16 misc = 0; +/* Sanity checks for a valid record */ if (be64_to_cpu (READ_ONCE (mem->tb1)) > *prev_tb) *prev_tb =be64_to_cpu (READ_ONCE (mem->tb1));
@@ -1294,23 +1296,19 @@ static int trace_imc_prepare_sample(struct trace_imc_data *mem, data->ip =be64_to_cpu (READ_ONCE (mem->ip)); data->period = event->hw.last_period; - header->type =PERF_RECORD_SAMPLE ; - header->size =sizeof (*header) + event->header_size; - header->misc =0 ; -if (cpu_has_feature (CPU_FTR_ARCH_31 )) {switch (IMC_TRACE_RECORD_VAL_HVPR (be64_to_cpu (READ_ONCE (mem->val)))) {case 0 :/* when MSR HV and PR not set in the trace-record */ - header->misc |=PERF_RECORD_MISC_GUEST_KERNEL ; + misc |=PERF_RECORD_MISC_GUEST_KERNEL ;break ;case 1 :/* MSR HV is 0 and PR is 1 */ - header->misc |=PERF_RECORD_MISC_GUEST_USER ; + misc |=PERF_RECORD_MISC_GUEST_USER ;break ;case 2 :/* MSR HV is 1 and PR is 0 */ - header->misc |=PERF_RECORD_MISC_KERNEL ; + misc |=PERF_RECORD_MISC_KERNEL ;break ;case 3 :/* MSR HV is 1 and PR is 1 */ - header->misc |=PERF_RECORD_MISC_USER ; + misc |=PERF_RECORD_MISC_USER ;break ;default :pr_info ("IMC: Unable to set the flag based on MSR bits\n" );
@@ -1318,11 +1316,14 @@ static int trace_imc_prepare_sample(struct trace_imc_data *mem, } }else {if (is_kernel_addr (data->ip)) - header->misc |=PERF_RECORD_MISC_KERNEL ; + misc |=PERF_RECORD_MISC_KERNEL ;else - header->misc |=PERF_RECORD_MISC_USER ; + misc |=PERF_RECORD_MISC_USER ; } -perf_event_header__init_id (header, data, event); +perf_event_header__init (header, data, +PERF_RECORD_SAMPLE , misc, +sizeof (*header) + event->header_size, + event);return 0 ; }
arch/riscv/include/asm/scs.h +13 -4
@@ -4,6 +4,7 @@#ifdef __ASSEMBLY__#include <asm/asm-offsets.h> +#include <asm/csr.h> #ifdef CONFIG_SHADOW_CALL_STACK
@@ -23,9 +24,17 @@ REG_L gp, TASK_TI_SCS_SP(tp) .endm -/* Load task_scs_sp(current) to gp, but only if tp has changed. */ -.macro scs_load_current_if_task_changed prev - beq \prev, tp, _skip_scs +/* + * Load task_scs_sp(current) to gp, but only when the trap came from U-mode. + * The source privilege level is taken from the saved sstatus.SPP bit (written + * by hardware on trap entry), not by comparing tp. tp is a user-writable + * register, so gating the shadow call stack reload on it let a user task that + * set tp == ¤t skip the reload and run the kernel with an attacker + * controlled gp (the shadow call stack pointer). + */ +.macro scs_load_current_if_from_user status, tmp + andi \tmp, \status, SR_SPP + bnez \tmp, _skip_scs scs_load_current _skip_scs: .endm
@@ -43,7 +52,7 @@ .endm .macro scs_load_current .endm -.macro scs_load_current_if_task_changed prev +.macro scs_load_current_if_from_user status, tmp .endm .macro scs_save_current .endm
arch/riscv/kernel/entry.S +1 -1
@@ -173,7 +173,7 @@ SYM_CODE_START(handle_exception) load_global_pointer /* Load the kernel shadow call stack pointer if coming from userspace */ - scs_load_current_if_task_changed s5 + scs_load_current_if_from_user s1, s5 #ifdef CONFIG_RISCV_ISA_V_PREEMPTIVE move a0, sp
arch/riscv/kvm/aia_imsic.c +4 -1
@@ -945,8 +945,11 @@ int kvm_riscv_aia_imsic_has_attr(struct kvm *kvm, unsigned long type)if (!vcpu)return -ENODEV ; - isel =KVM_DEV_RISCV_AIA_IMSIC_GET_ISEL (type); imsic = vcpu->arch.aia_context.imsic_state; +if (!imsic) +return -ENODEV ; + + isel =KVM_DEV_RISCV_AIA_IMSIC_GET_ISEL (type);return imsic_mrif_isel_check (imsic->nr_eix, isel); }
arch/riscv/mm/extable.c +2 -2
@@ -68,8 +68,8 @@ ex_handler_load_unaligned_zeropad(const struct exception_table_entry *ex, addr =regs_get_gpr (regs, reg_addr *sizeof (unsigned long )); - offset = addr &0x7UL ; - addr &= ~0x7UL ; + offset = addr & (sizeof (data) -1 ); + addr &= ~(sizeof (data) -1 ); data = *(unsigned long *)addr >> (offset *8 );
arch/s390/kernel/vdso64/Makefile +1 -0
@@ -32,6 +32,7 @@ KBUILD_CFLAGS_64 := $(filter-out -mno-pic-data-is-text-relative,$(KBUILD_CFLAGS_ KBUILD_CFLAGS_64 := $(filter-out -munaligned-symbols,$(KBUILD_CFLAGS_64)) KBUILD_CFLAGS_64 := $(filter-out -fno-asynchronous-unwind-tables,$(KBUILD_CFLAGS_64)) KBUILD_CFLAGS_64 += -m64 -fPIC -fno-common -fno-builtin -fasynchronous-unwind-tables +KBUILD_CFLAGS_64 += $(CONFIG_CC_OPT_INLINE_MEMSET) ldflags-y := -shared -soname=linux-vdso64.so.1 \ --hash-style=both --build-id=sha1 -T
arch/x86/entry/vdso/Makefile +1 -0
@@ -54,6 +54,7 @@ $(obj)/vdso-image-%.c: $(obj)/vdso%.so.dbg $(obj)/vdso%.so $(obj)/vdso2c FORCE CFL := $(PROFILING) -mcmodel=small -fPIC -O2 -fasynchronous-unwind-tables -m64 \ $(filter -g%,$(KBUILD_CFLAGS)) -fno-stack-protector \ -fno-omit-frame-pointer -foptimize-sibling-calls \ + $(CONFIG_CC_OPT_INLINE_MEMSET) \ -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO ifdef CONFIG_MITIGATION_RETPOLINE
arch/x86/events/intel/bts.c +1 -1
@@ -559,7 +559,7 @@ static int bts_event_init(struct perf_event *event)* to the user in a zero-copy fashion. */ if (event->attr.exclude_kernel) { - ret =perf_allow_kernel (&event->attr); + ret =perf_allow_kernel ();if (ret)return ret; }
arch/x86/events/intel/core.c +1 -1
@@ -4256,7 +4256,7 @@ static int intel_pmu_hw_config(struct perf_event *event)if (x86_pmu.version <3 )return -EINVAL ; - ret =perf_allow_cpu (&event->attr); + ret =perf_allow_cpu ();if (ret)return ret;
arch/x86/events/intel/p4.c +1 -1
@@ -776,7 +776,7 @@ static int p4_validate_raw_event(struct perf_event *event)* the user needs special permissions to be able to use it */ if (p4_ht_active () && p4_event_bind_map[v].shared) { - v =perf_allow_cpu (&event->attr); + v =perf_allow_cpu ();if (v)return v; }
arch/x86/kvm/mmu/mmu.c +6 -0
@@ -2350,6 +2350,12 @@ static void shadow_walk_init_using_root(struct kvm_shadow_walk_iterator *iterato { iterator->addr = addr; iterator->shadow_addr = root; + +if (WARN_ON_ONCE (!VALID_PAGE (root)) ||kvm_mmu_is_dummy_root (root)) { + iterator->level =0 ; +return ; + } + iterator->level = vcpu->arch.mmu->root_role.level; if (iterator->level >= PT64_ROOT_4LEVEL &&
arch/x86/kvm/svm/svm.c +1 -11
@@ -812,17 +812,7 @@ static bool msr_write_intercepted(struct kvm_vcpu *vcpu, u32 msr)u32 offset;u32 *msrpm; -/* -* For non-nested case: -* If the L01 MSR bitmap does not intercept the MSR, then we need to -* save it. -* -* For nested case: -* If the L02 MSR bitmap does not intercept the MSR, then we need to -* save it. -*/ - msrpm =is_guest_mode (vcpu) ?to_svm (vcpu)->nested.msrpm: -to_svm (vcpu)->msrpm; + msrpm =__va (__sme_clr (to_svm (vcpu)->vmcb->control.msrpm_base_pa)); offset =svm_msrpm_offset (msr); bit_write =2 * (msr &0x0f ) +1 ;
arch/x86/kvm/vmx/nested.c +6 -0
@@ -1665,6 +1665,9 @@ static void copy_vmcs12_to_shadow(struct vcpu_vmx *vmx)static void copy_enlightened_to_vmcs12 (struct vcpu_vmx *vmx,u32 hv_clean_fields) {#ifdef CONFIG_KVM_HYPERV +const u64 runtime_controls =HV_VMX_ENLIGHTENED_CLEAN_FIELD_CONTROL_GRP1 | +HV_VMX_ENLIGHTENED_CLEAN_FIELD_CONTROL_GRP2 | +HV_VMX_ENLIGHTENED_CLEAN_FIELD_CONTROL_PROC ;struct vmcs12 *vmcs12 = vmx->nested.cached_vmcs12;struct hv_enlightened_vmcs *evmcs =nested_vmx_evmcs (vmx);struct kvm_vcpu_hv *hv_vcpu =to_hv_vcpu (&vmx->vcpu);
@@ -1673,6 +1676,9 @@ static void copy_enlightened_to_vmcs12(struct vcpu_vmx *vmx, u32 hv_clean_fields vmcs12->tpr_threshold = evmcs->tpr_threshold; vmcs12->guest_rip = evmcs->guest_rip; +if ((hv_clean_fields & runtime_controls) != runtime_controls) + vmx->nested.force_msr_bitmap_recalc = true; +if (unlikely (!(hv_clean_fields &HV_VMX_ENLIGHTENED_CLEAN_FIELD_ENLIGHTENMENTSCONTROL ))) { hv_vcpu->nested.pa_page_gpa = evmcs->partition_assist_page;
crypto/drbg.c +5 -6
@@ -1985,7 +1985,6 @@ static int drbg_kcapi_seed(struct crypto_rng *tfm,*/ static inline int __init drbg_healthcheck_sanity (void ) { -int len =0 ;#define OUTBUFLEN 16unsigned char buf[OUTBUFLEN ];struct drbg_state *drbg =NULL ;
@@ -2029,12 +2028,12 @@ static inline int __init drbg_healthcheck_sanity(void) max_addtllen =drbg_max_addtl (drbg); max_request_bytes =drbg_max_request_bytes (drbg);drbg_string_fill (&addtl, buf, max_addtllen +1 ); -/* overflow addtllen with additonal info string */ - len =drbg_generate (drbg, buf,OUTBUFLEN , &addtl); -BUG_ON (0 < len); +/* overflow addtllen with additional info string */ + ret =drbg_generate (drbg, buf,OUTBUFLEN , &addtl); +BUG_ON (ret ==0 );/* overflow max_bits */ - len =drbg_generate (drbg, buf, (max_request_bytes +1 ),NULL ); -BUG_ON (0 < len); + ret =drbg_generate (drbg, buf, max_request_bytes +1 ,NULL ); +BUG_ON (ret ==0 );/* overflow max addtllen with personalization string */ ret =drbg_seed (drbg, &addtl, false);
drivers/android/binder.c +2 -1
@@ -2926,8 +2926,9 @@ static int binder_proc_transaction(struct binder_transaction *t, t_outdated->buffer =NULL ; buffer->transaction =NULL ;trace_binder_transaction_update_buffer_release (buffer); -binder_release_entire_buffer (proc,NULL , buffer, false); +binder_release_entire_buffer (proc,NULL , buffer, true);binder_alloc_free_buf (&proc->alloc, buffer); +binder_free_txn_fixups (t_outdated);kfree (t_outdated);binder_stats_deleted (BINDER_STAT_TRANSACTION ); }
drivers/block/virtio_blk.c +1 -0
@@ -741,6 +741,7 @@ static int virtblk_read_zoned_limits(struct virtio_blk *vblk,dev_warn (&vdev->dev,"zero write granularity reported\n" );return -ENODEV ; } + lim->zone_write_granularity = wg; lim->physical_block_size = wg; lim->io_min = wg;
drivers/bluetooth/btintel.c +26 -3
@@ -268,7 +268,8 @@ void btintel_hw_error(struct hci_dev *hdev, u8 code) goto unlock; } -bt_dev_err (hdev,"Exception info %s" , (char *)(skb->data +1 )); +bt_dev_err (hdev,"Exception info %.*s" , (int )(skb->len -1 ), + (char *)(skb->data +1 ));kfree_skb (skb);
@@ -387,8 +388,16 @@ int btintel_load_ddc_config(struct hci_dev *hdev, const char *ddc_name)/* DDC file contains one or more DDC structure which has * Length (1 byte), DDC ID (2 bytes), and DDC value (Length - 2). */ -while (fw->size > fw_ptr - fw->data) { -u8 cmd_plen = fw_ptr[0 ] +sizeof (u8); +while (fw->size > (size_t )(fw_ptr - fw->data)) { +size_t remaining = fw->size - (fw_ptr - fw->data); +unsigned int cmd_plen = fw_ptr[0 ] +1U ; + +if (cmd_plen <3 || cmd_plen >U8_MAX || cmd_plen > remaining) { +bt_dev_err (hdev,"Malformed DDC record (plen=%u, remaining=%zu)" , + cmd_plen, remaining); +release_firmware (fw); +return -EINVAL ; + } skb =__hci_cmd_sync (hdev,0xfc8b , cmd_plen, fw_ptr,HCI_INIT_TIMEOUT );
@@ -1292,6 +1301,12 @@ static void btintel_reset_to_bootloader(struct hci_dev *hdev)struct intel_reset params;struct sk_buff *skb; +/* PCIe transport uses shared hardware reset mechanism for recovery +* which gets triggered in pcie *setup* function on error. +*/ +if (hdev->bus ==HCI_PCI ) +return ; +/* Send Intel Reset command. This will result in * re-enumeration of BT controller. *
@@ -1307,6 +1322,7 @@ static void btintel_reset_to_bootloader(struct hci_dev *hdev)* boot_param: Boot address * */ + params.reset_type =0x01 ; params.patch_enable =0x01 ; params.ddc_reload =0x01 ;
@@ -2842,6 +2858,13 @@ int btintel_bootloader_setup_tlv(struct hci_dev *hdev,*/ boot_param =0x00000000 ; +/* In case of PCIe, this function might get called multiple times with +* same hdev instance if there is any error on firmware download. +* Need to clear stale bits of previous firmware download attempt. +*/ +for (int i =0 ; i < __INTEL_NUM_FLAGS; i++) +btintel_clear_flag (hdev, i); +btintel_set_flag (hdev,INTEL_BOOTLOADER ); err =btintel_prepare_fw_download_tlv (hdev, ver, &boot_param);
drivers/bluetooth/btintel_pcie.c +100 -38
221 lines not on this page · raw message
drivers/bluetooth/btintel_pcie.h +2 -0
@@ -23,6 +23,8 @@#define BTINTEL_PCIE_CSR_FUNC_CTRL_MAC_INIT (BIT(6))#define BTINTEL_PCIE_CSR_FUNC_CTRL_FUNC_INIT (BIT(7))#define BTINTEL_PCIE_CSR_FUNC_CTRL_MAC_ACCESS_STS (BIT(20)) +#define BTINTEL_PCIE_CSR_FUNC_CTRL_BUS_MASTER_STS (BIT(28)) +#define BTINTEL_PCIE_CSR_FUNC_CTRL_BUS_MASTER_DISCON (BIT(29))#define BTINTEL_PCIE_CSR_FUNC_CTRL_SW_RESET (BIT(31))/* Value for BTINTEL_PCIE_CSR_BOOT_STAGE register */
drivers/bluetooth/btusb.c +2 -0
@@ -305,6 +305,8 @@ static const struct usb_device_id quirks_table[] = { BTUSB_WIDEBAND_SPEECH }, { USB_DEVICE(0x13d3, 0x3501), .driver_info = BTUSB_QCA_ROME | BTUSB_WIDEBAND_SPEECH }, + { USB_DEVICE(0x13d3, 0x3503), .driver_info = BTUSB_QCA_ROME | + BTUSB_WIDEBAND_SPEECH }, /* QCA WCN6855 chipset */ { USB_DEVICE(0x0cf3, 0xe600), .driver_info = BTUSB_QCA_WCN6855 |
drivers/char/tpm/tpm2-cmd.c +1 -1
@@ -361,7 +361,7 @@ int tpm2_get_random(struct tpm_chip *chip, u8 *dest, size_t max) out = (struct tpm2_get_random_out *)&buf.data[offset]; recd =min_t (u32,be16_to_cpu (out->size), num_bytes);if (tpm_buf_length (&buf) < -TPM_HEADER_SIZE + + offset + offsetof(struct tpm2_get_random_out , buffer) + recd) { err = -EFAULT ;
drivers/char/tpm/tpm2-sessions.c +1 -0
@@ -1025,6 +1025,7 @@ static int tpm2_load_null(struct tpm_chip *chip, u32 *null_key)/* Deduce from the name change TPM interference: */ dev_err (&chip->dev,"null key integrity check failed\n" );tpm2_flush_context (chip, tmp_null_key); + rc = -ENODEV ; err:if (rc) {
drivers/edac/altera_edac.c +3 -1
@@ -1534,8 +1534,10 @@ static int altr_portb_setup(struct altr_edac_device_dev *device) altdev = dci->pvt_info; *altdev = *device; -if (!devres_open_group (device->edac->dev, altr_portb_setup,GFP_KERNEL )) +if (!devres_open_group (device->edac->dev, altr_portb_setup,GFP_KERNEL )) { +edac_device_free_ctl_info (dci);return -ENOMEM ; + }/* Update PortB specific values */ altdev->edac_dev_name = ecc_name;
drivers/edac/amd64_edac.c +2 -2
@@ -2795,13 +2795,13 @@ static inline void decode_bus_error(int node_id, struct mce *m)* the instance_id. For example, instance_id=0xYXXXXX where Y is the channel * number. * -* For DRAM ECC errors, the Chip Select number is given in bits [2:0] of +* For DRAM ECC errors, the Chip Select number is given in bits [1:0] of * the MCA_SYND[ErrorInformation] field. */ static void umc_get_err_info (struct mce *m,struct err_info *err) { err->channel = (m->ipid &GENMASK (31 ,0 )) >>20 ; - err->csrow = m->synd &0x7 ; + err->csrow = m->synd &0x3 ; }static void decode_umc_error (int node_id,struct mce *m)
drivers/gpio/gpio-exar.c +1 -1
@@ -197,6 +197,7 @@ static int gpio_exar_probe(struct platform_device *pdev) index =ida_alloc (&ida_index,GFP_KERNEL );if (index <0 )return index; + exar_gpio->index = index; ret =devm_add_action_or_reset (dev, exar_devm_ida_free, exar_gpio);if (ret)
@@ -212,7 +213,6 @@ static int gpio_exar_probe(struct platform_device *pdev) exar_gpio->gpio_chip.set = exar_set_value; exar_gpio->gpio_chip.base =-1 ; exar_gpio->gpio_chip.ngpio = ngpios; - exar_gpio->index = index; exar_gpio->first_pin = first_pin; ret =devm_gpiochip_add_data (dev, &exar_gpio->gpio_chip, exar_gpio);
drivers/gpio/gpio-xilinx.c +1 -8
@@ -292,14 +292,7 @@ static void xgpio_save_regs(struct xgpio_instance *chip)static int xgpio_request (struct gpio_chip *chip,unsigned int offset) { -int ret; - - ret =pm_runtime_get_sync (chip->parent); -/* -* If the device is already active pm_runtime_get() will return 1 on -* success, but gpio_request still needs to return 0. -*/ -return ret <0 ? ret :0 ; +return pm_runtime_resume_and_get (chip->parent); }static void xgpio_free (struct gpio_chip *chip,unsigned int offset)
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c +9 -4
@@ -324,7 +324,7 @@ static int acp_hw_init(void *handle) r =device_for_each_child (adev->acp.parent, &adev->acp.acp_genpd->gpd, acp_genpd_add_device);if (r) - goto failure; + goto failure_remove_mfd;break ; }default :
@@ -446,7 +446,7 @@ static int acp_hw_init(void *handle) r =device_for_each_child (adev->acp.parent, &adev->acp.acp_genpd->gpd, acp_genpd_add_device);if (r) - goto failure; + goto failure_remove_mfd; }/* Assert Soft reset of ACP */
@@ -464,7 +464,7 @@ static int acp_hw_init(void *handle)if (--count ==0 ) {dev_err (&adev->pdev->dev,"Failed to reset ACP\n" ); r = -ETIMEDOUT ; - goto failure; + goto failure_remove_mfd; }udelay (100 ); }
@@ -482,7 +482,7 @@ static int acp_hw_init(void *handle)if (--count ==0 ) {dev_err (&adev->pdev->dev,"Failed to reset ACP\n" ); r = -ETIMEDOUT ; - goto failure; + goto failure_remove_mfd; }udelay (100 ); }
@@ -492,6 +492,11 @@ static int acp_hw_init(void *handle)cgs_write_register (adev->acp.cgs_device, mmACP_SOFT_RESET, val);return 0 ; +failure_remove_mfd: +device_for_each_child (adev->acp.parent,NULL , + acp_genpd_remove_device); +mfd_remove_devices (adev->acp.parent); + failure:kfree (i2s_pdata);kfree (adev->acp.acp_res);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +6 -2
@@ -540,14 +540,18 @@ int amdgpu_amdkfd_get_dmabuf_info(struct amdgpu_device *adev, int dma_buf_fd,/* first get metadata_size by buffer = NULL */ r =amdgpu_bo_get_metadata (bo,NULL ,0 , metadata_size,NULL ); +if (r) + goto out_put;/* user buf_size is bigger than bo metadata_size * allocate a buf at kernel space and copy */ if (*metadata_size <= buffer_size) { *metadata_buffer =kzalloc (*metadata_size,GFP_KERNEL ); -if (!*metadata_buffer) -return -ENOMEM ; +if (!*metadata_buffer) { + r = -ENOMEM ; + goto out_put; + } r =amdgpu_bo_get_metadata (bo, *metadata_buffer, *metadata_size,NULL , &metadata_flags);
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +46 -31
127 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2 -0
@@ -1130,6 +1130,8 @@ static int amdgpu_discovery_sysfs_ips(struct amdgpu_device *adev, ip_hw_instance->kobj.kset = &ip_hw_id->hw_id_kset; res =kobject_add (&ip_hw_instance->kobj,NULL ,"%d" , ip_hw_instance->num_instance); +if (res) +kobject_put (&ip_hw_instance->kobj); next_ip:if (reg_base_64) ip_offset += struct_size(ip, base_address_64,
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +7 -10
@@ -977,20 +977,17 @@ void amdgpu_gmc_get_vbios_allocations(struct amdgpu_device *adev)case CHIP_RENOIR : adev->mman.keep_stolen_vga_memory = true;break ; -case CHIP_POLARIS10 : -case CHIP_POLARIS11 : -case CHIP_POLARIS12 : -/* MacBookPros with switchable graphics put VRAM at 0 when -* the iGPU is enabled which results in cursor issues if -* the cursor ends up at 0. Reserve vram at 0 in that case. -*/ -if (adev->gmc.vram_start ==0 ) - adev->mman.keep_stolen_vga_memory = true; -break ;default : adev->mman.keep_stolen_vga_memory = false;break ; } +/* MacBookPros with switchable graphics put VRAM at 0 when +* the iGPU is enabled which results in cursor issues if +* the cursor ends up at 0. Reserve vram at 0 in that case. +*/ +if ((adev->pdev->subsystem_vendor ==PCI_VENDOR_ID_APPLE ) && + (adev->gmc.vram_start ==0 )) + adev->mman.keep_stolen_vga_memory = true;if (amdgpu_sriov_vf (adev) || !amdgpu_device_has_display_hardware (adev)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +5 -0
@@ -30,6 +30,7 @@#include <drm/amdgpu_drm.h> #include <drm/drm_drv.h> #include <drm/drm_fb_helper.h> +#include <drm/drm_vblank.h> #include "amdgpu_uvd.h" #include "amdgpu_vce.h" #include "atom.h"
@@ -1483,6 +1484,9 @@ u32 amdgpu_get_vblank_counter_kms(struct drm_crtc *crtc)DRM_ERROR ("Invalid crtc %u\n" , pipe);return -EINVAL ; } +if (!down_read_trylock (&adev->reset_domain->sem)) +return drm_crtc_vblank_count (crtc); +/* The hw increments its frame counter at start of vsync, not at start * of vblank, as is required by DRM core vblank counter handling.
@@ -1528,6 +1532,7 @@ u32 amdgpu_get_vblank_counter_kms(struct drm_crtc *crtc)DRM_DEBUG_VBL ("NULL mode info! Returned count may be wrong.\n" ); } +up_read (&adev->reset_domain->sem);return count; }
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +9 -0
@@ -308,6 +308,14 @@ static const u32 verde_rlc_save_restore_register_list[] = 0x00000000 }; +static void gfx_v6_0_free_microcode (struct amdgpu_device *adev) +{ +amdgpu_ucode_release (&adev->gfx.pfp_fw); +amdgpu_ucode_release (&adev->gfx.me_fw); +amdgpu_ucode_release (&adev->gfx.ce_fw); +amdgpu_ucode_release (&adev->gfx.rlc_fw); +} +static int gfx_v6_0_init_microcode (struct amdgpu_device *adev) {const char *chip_name;
@@ -3184,6 +3192,7 @@ static int gfx_v6_0_sw_fini(void *handle)amdgpu_ring_fini (&adev->gfx.compute_ring[i]);amdgpu_gfx_rlc_fini (adev); +gfx_v6_0_free_microcode (adev);return 0 ; }
drivers/gpu/drm/amd/amdgpu/vi.c +21 -0
@@ -1408,10 +1408,31 @@ static uint64_t vi_get_pcie_replay_count(struct amdgpu_device *adev)return (nak_r + nak_g); } +struct vi_reset_quirk { +u16 device; +u16 subsystem_vendor; +u16 subsystem_device; +u8 revision; +}; + +static const struct vi_reset_quirk vi_reset_quirks[] = { + {0x67ef ,PCI_VENDOR_ID_APPLE ,0x0190 ,0xe3 },/* Radeon Pro 555X */ + {0x67ef ,PCI_VENDOR_ID_APPLE ,0x018f ,0xc2 },/* Radeon Pro 560X */ + {0x67ef ,PCI_VENDOR_ID_APPLE ,0x017a ,0xc7 },/* Radeon Pro 555 */ +}; +static bool vi_need_reset_on_init (struct amdgpu_device *adev) { +unsigned int i;u32 clock_cntl, pc; +for (i =0 ; i <ARRAY_SIZE (vi_reset_quirks); i++) +if (adev->pdev->device == vi_reset_quirks[i].device && + adev->pdev->subsystem_vendor == vi_reset_quirks[i].subsystem_vendor && + adev->pdev->subsystem_device == vi_reset_quirks[i].subsystem_device && + adev->pdev->revision == vi_reset_quirks[i].revision) +return true; +if (adev->flags &AMD_IS_APU )return false;
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +26 -6
@@ -424,12 +424,32 @@ static int allocate_doorbell(struct qcm_process_device *qpd,* we need the physical sdma engine id in order to get the * correct doorbell offset. */ -uint32_t valid_id = idx_offset[qpd->dqm->dev->node_id * -get_num_all_sdma_engines (qpd->dqm) + - q->properties.sdma_engine_id] - + (q->properties.sdma_queue_id &1 ) - *KFD_QUEUE_DOORBELL_MIRROR_OFFSET - + (q->properties.sdma_queue_id >>1 ); +u32 engine_base = idx_offset[dev->node_id * +get_num_all_sdma_engines (qpd->dqm) + + q->properties.sdma_engine_id]; +u32 valid_id; + +/* +* With the aqua_vanjaram doorbell layout, a shader doorbell +* write whose 32-byte block starts in the previous engine's +* range rings that engine instead. Engine ranges are 10 +* indices apart (sdma_doorbell_range = 20 dwords, halved for +* 8-byte doorbells, in aqua_vanjaram_doorbell_index_init()), +* which puts odd engines 2 indices into a shared block. +* Aligning costs at most 2 indices, and 8 queues per engine use +* only 4 of the 10, so the aligned base stays in range. The +* 512-index mirror offset keeps the alignment. +*/ +if (KFD_GC_VERSION (dev) ==IP_VERSION (9 ,4 ,3 ) || +KFD_GC_VERSION (dev) ==IP_VERSION (9 ,4 ,4 ) || +KFD_GC_VERSION (dev) ==IP_VERSION (9 ,5 ,0 )) + engine_base =ALIGN (engine_base, +KFD_SDMA_SHADER_DOORBELL_GRANULARITY ); + + valid_id = engine_base + + (q->properties.sdma_queue_id &1 ) * +KFD_QUEUE_DOORBELL_MIRROR_OFFSET + + (q->properties.sdma_queue_id >>1 );if (restore_id && *restore_id != valid_id)return -EINVAL ;
drivers/gpu/drm/amd/amdkfd/kfd_priv.h +7 -0
@@ -132,6 +132,13 @@*/ #define KFD_QUEUE_DOORBELL_MIRROR_OFFSET 512 +/* +* On GC 9.4.3, 9.4.4 and 9.5.0, doorbell writes issued from shaders are +* routed to an SDMA engine at 32-byte granularity, i.e. 4 indices with the +* 8-byte SDMA doorbells used on SOC15. +*/ +#define KFD_SDMA_SHADER_DOORBELL_GRANULARITY 4 +/** * enum kfd_ioctl_flags - KFD ioctl flags * Various flags that can be set in &amdkfd_ioctl_desc.flags to control how
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +13 -3
@@ -3045,9 +3045,14 @@ static int dm_suspend(void *handle)dc_allow_idle_optimizations (adev->dm.dc, false); dm->cached_dc_state =dc_state_create_copy (dm->dc->current_state); +if (!dm->cached_dc_state) { +drm_err (adev_to_drm (adev), +"Failed to allocate cached DC state during suspend\n" ); +mutex_unlock (&dm->dc_lock); +return -ENOMEM ; + } -if (dm->cached_dc_state) -dm_gpureset_toggle_interrupts (adev, dm->cached_dc_state, false); +dm_gpureset_toggle_interrupts (adev, dm->cached_dc_state, false);amdgpu_dm_commit_zero_streams (dm->dc);
@@ -6343,11 +6348,16 @@ decide_crtc_timing_for_drm_display_mode(struct drm_display_mode *drm_mode,const struct drm_display_mode *native_mode, bool scale_enabled) { + /* Inserted modes copy the native sync; a sink mode with equal totals may not */ if (scale_enabled) {copy_crtc_timing_for_drm_display_mode (native_mode ,drm_mode ); } else if (native_mode->clock == drm_mode->clock && native_mode->htotal == drm_mode->htotal && - native_mode->vtotal == drm_mode->vtotal) { + native_mode->vtotal == drm_mode->vtotal && + native_mode->hsync_start == drm_mode->hsync_start && + native_mode->hsync_end == drm_mode->hsync_end && + native_mode->vsync_start == drm_mode->vsync_start && + native_mode->vsync_end == drm_mode->vsync_end) {copy_crtc_timing_for_drm_display_mode (native_mode, drm_mode); }else {/* no scaling nor amdgpu inserted, no need to patch */
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +1 -19
@@ -108,25 +108,7 @@ void amdgpu_dm_plane_fill_blending_from_plane_state(const struct drm_plane_stateif (plane_state->pixel_blend_mode ==DRM_MODE_BLEND_PREMULTI || plane_state->pixel_blend_mode ==DRM_MODE_BLEND_COVERAGE ) { -static const uint32_t alpha_formats[] = { -DRM_FORMAT_ARGB8888 , -DRM_FORMAT_RGBA8888 , -DRM_FORMAT_ABGR8888 , -DRM_FORMAT_ARGB2101010 , -DRM_FORMAT_ABGR2101010 , -DRM_FORMAT_ARGB16161616 , -DRM_FORMAT_ABGR16161616 , -DRM_FORMAT_ARGB16161616F , - }; -uint32_t format = plane_state->fb->format->format; -unsigned int i; - -for (i =0 ; i <ARRAY_SIZE (alpha_formats); ++i) { -if (format == alpha_formats[i]) { - *per_pixel_alpha = true; -break ; - } - } + *per_pixel_alpha = plane_state->fb->format->has_alpha;if (*per_pixel_alpha && plane_state->pixel_blend_mode ==DRM_MODE_BLEND_COVERAGE ) *pre_multiplied_alpha = false;
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -1721,6 +1721,7 @@ struct dc_link {struct ddc_service *ddc;enum dp_panel_mode panel_mode; +bool panel_mode_initialized;bool aux_mode;/* Private to DC core */
drivers/gpu/drm/amd/display/dc/dce60/dce60_resource.c +0 -1
@@ -1367,7 +1367,6 @@ static bool dce64_construct( dc->caps.max_downscale_ratio =200 ; dc->caps.i2c_speed_in_khz =40 ; dc->caps.max_cursor_size =64 ; - dc->caps.is_apu = true;/************************************************* * Create resources *
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c +3 -1
@@ -91,6 +91,7 @@ void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) } link->panel_mode = panel_mode; + link->panel_mode_initialized = true; DC_LOG_DETECTION_DP_CAPS("Link: %d eDP panel mode supported: %d " "eDP panel mode enabled: %d \n", link->link_index,
@@ -1231,7 +1232,8 @@ void edp_set_panel_assr(struct dc_link *link, struct pipe_ctx *pipe_ctx, result = cp_psp->funcs.enable_assr (cp_psp->handle, link); -if (!result && link->panel_mode !=DP_PANEL_MODE_EDP ) +if (!result && link->panel_mode_initialized && + link->panel_mode !=DP_PANEL_MODE_EDP ) *panel_mode =DP_PANEL_MODE_DEFAULT ; } }
drivers/gpu/drm/amd/display/dc/resource/dce80/dce80_resource.c +1 -0
@@ -1173,6 +1173,7 @@ static bool dce81_construct( dc->caps.max_cursor_size =128 ; dc->caps.min_horizontal_blanking_period =80 ; dc->caps.is_apu = true; + dc->debug = debug_defaults;/************************************************* * Create resources *
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +20 -19
@@ -5239,7 +5239,8 @@ static int si_init_smc_table(struct amdgpu_device *adev)break ; } -if (adev->pm.dpm.platform_caps &ATOM_PP_PLATFORM_CAP_HARDWAREDC ) +if ((adev->flags &AMD_IS_MOBILITY ) && + (adev->pm.dpm.platform_caps &ATOM_PP_PLATFORM_CAP_HARDWAREDC )) table->systemFlags |=PPSMC_SYSTEMFLAG_GPIO_DC ;if (adev->pm.dpm.platform_caps &ATOM_PP_PLATFORM_CAP_REGULATOR_HOT ) {
@@ -7206,6 +7207,19 @@ static void si_parse_pplib_non_clock_info(struct amdgpu_device *adev, adev->pm.dpm.uvd_ps = rps; } +static void si_update_limits (struct amdgpu_clock_and_voltage_limits *limits, +struct rv7xx_pl *pl) +{ +if (pl->sclk > limits->sclk) + limits->sclk = pl->sclk; +if (pl->mclk > limits->mclk) + limits->mclk = pl->mclk; +if (pl->vddc > limits->vddc) + limits->vddc = pl->vddc; +if (pl->vddci > limits->vddci) + limits->vddci = pl->vddci; +} +static void si_parse_pplib_clock_info (struct amdgpu_device *adev,struct amdgpu_ps *rps,int index,union pplib_clock_info *clock_info)
@@ -7214,7 +7228,6 @@ static void si_parse_pplib_clock_info(struct amdgpu_device *adev,struct evergreen_power_info *eg_pi =evergreen_get_pi (adev);struct si_power_info *si_pi =si_get_pi (adev);struct si_ps *ps =si_get_ps (rps); -struct amdgpu_clock_and_voltage_limits *limits;u16 leakage_voltage;struct rv7xx_pl *pl = &ps->performance_levels[index];int ret;
@@ -7279,26 +7292,14 @@ static void si_parse_pplib_clock_info(struct amdgpu_device *adev,* VBIOS can contain conflicting values between: * - the maximum allowed clocks and voltages on AC or DC * - the clocks and voltages in power states on AC or DC +* +* Assume that the AC limits are the maximum of all power states, +* and the DC limits are the maximum of battery power states. */ +si_update_limits (&adev->pm.dpm.dyn_state.max_clock_voltage_on_ac, pl);if ((rps->class &ATOM_PPLIB_CLASSIFICATION_UI_MASK ) == -ATOM_PPLIB_CLASSIFICATION_UI_PERFORMANCE ) - limits = &adev->pm.dpm.dyn_state.max_clock_voltage_on_ac; -else if ((rps->class &ATOM_PPLIB_CLASSIFICATION_UI_MASK ) ==ATOM_PPLIB_CLASSIFICATION_UI_BATTERY ) - limits = &adev->pm.dpm.dyn_state.max_clock_voltage_on_dc; -else - limits =NULL ; - -if (limits) { -if (pl->sclk > limits->sclk) - limits->sclk = pl->sclk; -if (pl->mclk > limits->mclk) - limits->mclk = pl->mclk; -if (pl->vddc > limits->vddc) - limits->vddc = pl->vddc; -if (pl->vddci > limits->vddci) - limits->vddci = pl->vddci; - } +si_update_limits (&adev->pm.dpm.dyn_state.max_clock_voltage_on_dc, pl); }union pplib_power_state {
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +8 -2
@@ -269,15 +269,21 @@ static const ATOM_VOLTAGE_OBJECT_V3 *atomctrl_lookup_voltage_type_v3( unsigned int offset = offsetof(ATOM_VOLTAGE_OBJECT_INFO_V3_1, asVoltageObj[0]);uint8_t *start = (uint8_t *)voltage_object_info_table; -while (offset < size) { +while (offset +sizeof (ATOM_VOLTAGE_OBJECT_HEADER_V3 ) <= size) {const ATOM_VOLTAGE_OBJECT_V3 *voltage_object = (const ATOM_VOLTAGE_OBJECT_V3 *)(start + offset); +u16 obj_size; + + obj_size =le16_to_cpu (voltage_object->asGpioVoltageObj.sHeader.usSize); +if (obj_size <sizeof (voltage_object->asGpioVoltageObj.sHeader) || + offset + obj_size > size) +break ;if (voltage_type == voltage_object->asGpioVoltageObj.sHeader.ucVoltageType && voltage_mode == voltage_object->asGpioVoltageObj.sHeader.ucVoltageMode)return voltage_object; - offset +=le16_to_cpu (voltage_object->asGpioVoltageObj.sHeader.usSize); + offset += obj_size; }return NULL ;
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomfwctrl.c +8 -3
@@ -36,16 +36,21 @@ static const union atom_voltage_object_v4 *pp_atomfwctrl_lookup_voltage_type_v4( offsetof(struct atom_voltage_objects_info_v4_1, voltage_object[0]);unsigned long start = (unsigned long )voltage_object_info_table; -while (offset < size) { +while (offset +sizeof (struct atom_voltage_object_header_v4 ) <= size) {const union atom_voltage_object_v4 *voltage_object = (const union atom_voltage_object_v4 *)(start + offset); +u16 obj_size; + + obj_size =le16_to_cpu (voltage_object->gpio_voltage_obj.header.object_size); +if (obj_size <sizeof (voltage_object->gpio_voltage_obj.header) || + offset + obj_size > size) +break ;if (voltage_type == voltage_object->gpio_voltage_obj.header.voltage_type && voltage_mode == voltage_object->gpio_voltage_obj.header.voltage_mode)return voltage_object; - offset +=le16_to_cpu (voltage_object->gpio_voltage_obj.header.object_size); - + offset += obj_size; }return NULL ;
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +2 -3
@@ -191,13 +191,12 @@ static int aspeed_gfx_load(struct drm_device *drm) }reset_control_deassert (priv->rst); - priv->clk =devm_clk_get (drm->dev,NULL ); + priv->clk =devm_clk_get_enabled (drm->dev,NULL );if (IS_ERR (priv->clk)) {dev_err (&pdev->dev, -"missing or invalid clk device tree entry" ); +"failed to get and enable clock\n" );return PTR_ERR (priv->clk); } -clk_prepare_enable (priv->clk);/* Sanitize control registers */ writel (0 , priv->base +CRT_CTRL1 );
drivers/gpu/drm/display/drm_dp_helper.c +3 -1
@@ -4060,7 +4060,9 @@ static int dp_aux_backlight_update_status(struct backlight_device *bd)if (!backlight_is_blank (bd)) {if (!bl->enabled) { -drm_edp_backlight_enable (bl->aux, &bl->info, brightness); + ret =drm_edp_backlight_enable (bl->aux, &bl->info, brightness); +if (ret) +return ret; bl->enabled = true;return 0 ; }
drivers/gpu/drm/drm_fb_helper.c +3 -3
@@ -1790,10 +1790,10 @@ __drm_fb_helper_initial_config_and_unlock(struct drm_fb_helper *fb_helper) ret =drm_fb_helper_single_fb_probe (fb_helper);if (ret <0 ) { -if (ret == -EAGAIN ) { - fb_helper->deferred_setup = true; +/* modesets are probed but fb_helper->fb isn't; defer restore too */ + fb_helper->deferred_setup = true; +if (ret == -EAGAIN ) ret =0 ; - }mutex_unlock (&fb_helper->lock); goto err_drm_fb_helper_release_info;
drivers/gpu/drm/gud/gud_pipe.c +1 -0
@@ -486,6 +486,7 @@ int gud_pipe_check(struct drm_simple_display_pipe *pipe,for_each_new_connector_in_state (state, connector, connector_state, i) {if (connector_state->crtc)break ; + connector_state =NULL ; }/*
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1 -1
@@ -1765,6 +1765,7 @@ static int eb_reinit_userptr(struct i915_execbuffer *eb) static noinline int eb_relocate_parse_slow(struct i915_execbuffer *eb) { +const unsigned int count = eb->buffer_count;bool have_copy = false;struct eb_vma *ev;int err =0 ;
@@ -1867,7 +1868,6 @@ static noinline int eb_relocate_parse_slow(struct i915_execbuffer *eb) out:if (have_copy) { -const unsigned int count = eb->buffer_count;unsigned int i;for (i =0 ; i < count; i++) {
drivers/gpu/drm/i915/gt/intel_rps.c +2 -1
@@ -1887,7 +1887,8 @@ static void rps_work(struct work_struct *work) out:spin_lock_irq (gt->irq_lock); -gen6_gt_pm_unmask_irq (gt, rps->pm_events); +if (intel_rps_is_active (rps)) +gen6_gt_pm_unmask_irq (gt, rps->pm_events);spin_unlock_irq (gt->irq_lock); }
drivers/gpu/drm/imagination/pvr_mmu.c +12 -13
@@ -2333,7 +2333,7 @@ void pvr_mmu_op_context_destroy(struct pvr_mmu_op_context *op_ctx)* @ctx: MMU context associated with owning VM context. * @sgt: Scatter gather table containing pages pinned for use by this context. * @device_addr: Virtual device address at the start of the requested mapping. -* @sgt_offset: Start offset of the requested device-virtual memory mapping. +* @sgt_offset: Offset into @sgt of the start of the requested mapping. * @size: Size in bytes of the requested device-virtual memory mapping. For an * unmapping, this should be zero so that no page tables are allocated. *
@@ -2346,7 +2346,6 @@ struct pvr_mmu_op_context * pvr_mmu_op_context_create(struct pvr_mmu_context *ctx, struct sg_table *sgt, u64 device_addr, u64 sgt_offset, u64 size) { - u64 start_addr = device_addr + sgt_offset; int err; struct pvr_mmu_op_context *op_ctx =
@@ -2362,18 +2361,18 @@ pvr_mmu_op_context_create(struct pvr_mmu_context *ctx, struct sg_table *sgt,if (size) {/* -* The number of page table objects we need to prealloc is -* indicated by the mapping size, start address and the sizes -* of the areas mapped per PT or PD. The range calculation is -* identical to that for the index into a table for a device -* address, so we reuse those functions here. +* The page tables needed are set by the device-virtual range +* being mapped: one level 1 table per 1GiB region and one +* level 0 table per 2MiB region the range touches. Tables that +* already exist are not consumed, so this is an upper bound. */ -const u32 l1_start_idx =pvr_page_table_l2_idx (start_addr); -const u32 l1_end_idx =pvr_page_table_l2_idx (start_addr + size); -const u32 l1_count = l1_end_idx - l1_start_idx +1 ; -const u32 l0_start_idx =pvr_page_table_l1_idx (start_addr); -const u32 l0_end_idx =pvr_page_table_l1_idx (start_addr + size); -const u32 l0_count = l0_end_idx - l0_start_idx +1 ; +const u64 last_addr = device_addr + size -1 ; +const u64 l1_count = + (last_addr >>ROGUE_MMUCTRL_VADDR_PC_INDEX_SHIFT ) - + (device_addr >>ROGUE_MMUCTRL_VADDR_PC_INDEX_SHIFT ) +1 ; +const u64 l0_count = + (last_addr >>ROGUE_MMUCTRL_VADDR_PD_INDEX_SHIFT ) - + (device_addr >>ROGUE_MMUCTRL_VADDR_PD_INDEX_SHIFT ) +1 ;/* * Alloc and push page table entries until we have enough of
drivers/gpu/drm/imagination/pvr_vm.c +4 -4
@@ -412,6 +412,8 @@ pvr_vm_gpuva_unmap(struct drm_gpuva_op *op, void *op_ctx)static int pvr_vm_gpuva_remap (struct drm_gpuva_op *op,void *op_ctx) { +/* The split parts belong to the object of the mapping being split. */ +struct drm_gpuvm_bo *vm_bo = op->remap.unmap->va->vm_bo;struct pvr_vm_bind_op *ctx = op_ctx;u64 va_start =0 , va_range =0 ;int err;
@@ -427,14 +429,12 @@ pvr_vm_gpuva_remap(struct drm_gpuva_op *op, void *op_ctx)drm_gpuva_remap (&ctx->prev_va->base, &ctx->next_va->base, &op->remap);if (op->remap.prev) { -pvr_gem_object_get (gem_to_pvr_gem (ctx->prev_va->base.gem.obj)); -drm_gpuva_link (&ctx->prev_va->base, ctx->gpuvm_bo); +drm_gpuva_link (&ctx->prev_va->base, vm_bo); ctx->prev_va =NULL ; }if (op->remap.next) { -pvr_gem_object_get (gem_to_pvr_gem (ctx->next_va->base.gem.obj)); -drm_gpuva_link (&ctx->next_va->base, ctx->gpuvm_bo); +drm_gpuva_link (&ctx->next_va->base, vm_bo); ctx->next_va =NULL ; }
drivers/gpu/drm/mediatek/mtk_drm_drv.c +15 -2
@@ -650,8 +650,10 @@ static int mtk_drm_bind(struct device *dev) private->mtk_drm_bound = true; private->dev = dev; -if (!mtk_drm_get_all_drm_priv (dev)) +if (!mtk_drm_get_all_drm_priv (dev)) { +put_device (private->mutex_dev);return 0 ; + } drm =drm_dev_alloc (&mtk_drm_driver, dev);if (IS_ERR (drm)) {
@@ -841,7 +843,7 @@ static int mtk_drm_probe(struct platform_device *pdev)struct mtk_drm_private *private;struct device_node *node;struct component_match *match =NULL ; -struct platform_device *ovl_adaptor; +struct platform_device *ovl_adaptor =NULL ;int ret;int i;
@@ -873,6 +875,9 @@ static int mtk_drm_probe(struct platform_device *pdev)PLATFORM_DEVID_AUTO , (void *)private->mmsys_dev, sizeof(*private->mmsys_dev)); +if (IS_ERR (ovl_adaptor)) +return PTR_ERR (ovl_adaptor); + private->ddp_comp[DDP_COMPONENT_DRM_OVL_ADAPTOR ].dev = &ovl_adaptor->dev;mtk_ddp_comp_init (dev,NULL , &private->ddp_comp[DDP_COMPONENT_DRM_OVL_ADAPTOR ],DDP_COMPONENT_DRM_OVL_ADAPTOR );
@@ -969,6 +974,8 @@ static int mtk_drm_probe(struct platform_device *pdev) err_pm:pm_runtime_disable (dev); err_node: +if (ovl_adaptor) +platform_device_unregister (ovl_adaptor);of_node_put (private->mutex_node);for (i =0 ; i <DDP_COMPONENT_DRM_ID_MAX ; i++)of_node_put (private->comp_node[i]);
@@ -978,9 +985,15 @@ static int mtk_drm_probe(struct platform_device *pdev)static void mtk_drm_remove (struct platform_device *pdev) {struct mtk_drm_private *private =platform_get_drvdata (pdev); +struct device *ovl_adaptor_dev;int i; + ovl_adaptor_dev = + private->ddp_comp[DDP_COMPONENT_DRM_OVL_ADAPTOR ].dev; +component_master_del (&pdev->dev, &mtk_drm_ops); +if (ovl_adaptor_dev) +platform_device_unregister (to_platform_device (ovl_adaptor_dev));pm_runtime_disable (&pdev->dev);of_node_put (private->mutex_node);for (i =0 ; i <DDP_COMPONENT_DRM_ID_MAX ; i++)
drivers/gpu/drm/panthor/panthor_sched.c +3 -0
@@ -3412,6 +3412,9 @@ int panthor_group_create(struct panthor_file *pfile, hweight64(group_args->tiler_core_mask) < group_args->max_tiler_cores)return -EINVAL ; +if (group_args->queues.count > sched->cs_slot_count) +return -EINVAL ; + group =kzalloc (sizeof (*group),GFP_KERNEL );if (!group)return -ENOMEM ;
drivers/gpu/drm/radeon/radeon_bios.c +5 -1
@@ -49,6 +49,7 @@static bool igp_read_bios_from_vram (struct radeon_device *rdev) {uint8_t __iomem *bios; +uint8_t val1, val2;resource_size_t vram_base;resource_size_t size =256 *1024 ;/* ??? */
@@ -63,7 +64,10 @@ static bool igp_read_bios_from_vram(struct radeon_device *rdev)return false; } -if (size ==0 || bios[0 ] !=0x55 || bios[1 ] !=0xaa ) { + val1 =readb (&bios[0 ]); + val2 =readb (&bios[1 ]); + +if (size ==0 || val1 !=0x55 || val2 !=0xaa ) {iounmap (bios);return false; }
drivers/gpu/drm/vc4/vc4_bo.c +15 -14
@@ -251,7 +251,7 @@ void vc4_bo_add_to_purgeable_pool(struct vc4_bo *bo) {struct vc4_dev *vc4 =to_vc4_dev (bo->base.base.dev); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;mutex_lock (&vc4->purgeable.lock);
@@ -265,7 +265,7 @@ static void vc4_bo_remove_from_purgeable_pool_locked(struct vc4_bo *bo) {struct vc4_dev *vc4 =to_vc4_dev (bo->base.base.dev); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;/* list_del_init() is used here because the caller might release
@@ -396,7 +396,7 @@ struct drm_gem_object *vc4_create_object(struct drm_device *dev, size_t size)struct vc4_dev *vc4 =to_vc4_dev (dev);struct vc4_bo *bo; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ERR_PTR (-ENODEV ); bo =kzalloc (sizeof (*bo),GFP_KERNEL );
@@ -427,7 +427,7 @@ struct vc4_bo *vc4_bo_create(struct drm_device *dev, size_t unaligned_size,struct drm_gem_dma_object *dma_obj;struct vc4_bo *bo; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ERR_PTR (-ENODEV );if (size ==0 )
@@ -496,7 +496,7 @@ int vc4_bo_dumb_create(struct drm_file *file_priv,struct vc4_bo *bo =NULL ;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; ret =vc4_dumb_fixup_args (args);
@@ -622,7 +622,7 @@ int vc4_bo_inc_usecnt(struct vc4_bo *bo)struct vc4_dev *vc4 =to_vc4_dev (bo->base.base.dev);int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;/* Fast path: if the BO is already retained by someone, no need to
@@ -661,7 +661,7 @@ void vc4_bo_dec_usecnt(struct vc4_bo *bo) {struct vc4_dev *vc4 =to_vc4_dev (bo->base.base.dev); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;/* Fast path: if the BO is still retained by someone, no need to test
@@ -790,7 +790,7 @@ int vc4_create_bo_ioctl(struct drm_device *dev, void *data,struct vc4_bo *bo =NULL ;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; ret =vc4_grab_bin_bo (vc4, vc4file);
@@ -820,7 +820,7 @@ int vc4_mmap_bo_ioctl(struct drm_device *dev, void *data,struct drm_vc4_mmap_bo *args = data;struct drm_gem_object *gem_obj; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; gem_obj =drm_gem_object_lookup (file_priv, args->handle);
@@ -846,7 +846,7 @@ vc4_create_shader_bo_ioctl(struct drm_device *dev, void *data,struct vc4_bo *bo =NULL ;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (args->size ==0 )
@@ -925,7 +925,7 @@ int vc4_set_tiling_ioctl(struct drm_device *dev, void *data,struct vc4_bo *bo;bool t_format; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (args->flags !=0 )
@@ -971,7 +971,7 @@ int vc4_get_tiling_ioctl(struct drm_device *dev, void *data,struct drm_gem_object *gem_obj;struct vc4_bo *bo; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (args->flags !=0 || args->modifier !=0 )
@@ -1014,7 +1014,7 @@ int vc4_bo_cache_init(struct drm_device *dev)int ret;int i; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;/* Create the initial set of BO labels that the kernel will
@@ -1054,6 +1054,7 @@ static void vc4_bo_cache_destroy(struct drm_device *dev, void *unused)cancel_work_sync (&vc4->bo_cache.time_work);vc4_bo_cache_purge (dev); +kfree (vc4->bo_cache.size_list);for (i =0 ; i < vc4->num_labels; i++) {if (vc4->bo_labels[i].num_allocated) {
@@ -1078,7 +1079,7 @@ int vc4_label_bo_ioctl(struct drm_device *dev, void *data,struct drm_gem_object *gem_obj;int ret =0 , label; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!args->len)
drivers/gpu/drm/vc4/vc4_crtc.c +2 -2
@@ -1000,7 +1000,7 @@ static int vc4_async_page_flip(struct drm_crtc *crtc,struct vc4_bo *bo =to_vc4_bo (&dma_bo->base);int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;/*
@@ -1043,7 +1043,7 @@ int vc4_page_flip(struct drm_crtc *crtc,struct drm_device *dev = crtc->dev;struct vc4_dev *vc4 =to_vc4_dev (dev); -if (vc4->gen ==VC4_GEN_5 ) +if (vc4->gen >VC4_GEN_4 )return vc5_async_page_flip (crtc, fb, event, flags);else return vc4_async_page_flip (crtc, fb, event, flags);
drivers/gpu/drm/vc4/vc4_drv.c +4 -4
@@ -98,7 +98,7 @@ static int vc4_get_param_ioctl(struct drm_device *dev, void *data,if (args->pad !=0 )return -EINVAL ; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!vc4->v3d)
@@ -147,7 +147,7 @@ static int vc4_open(struct drm_device *dev, struct drm_file *file)struct vc4_dev *vc4 =to_vc4_dev (dev);struct vc4_file *vc4file; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; vc4file =kzalloc (sizeof (*vc4file),GFP_KERNEL );
@@ -165,7 +165,7 @@ static void vc4_close(struct drm_device *dev, struct drm_file *file)struct vc4_dev *vc4 =to_vc4_dev (dev);struct vc4_file *vc4file = file->driver_priv; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;if (vc4file->bin_bo_used)
@@ -301,7 +301,7 @@ static int vc4_drm_bind(struct device *dev)else gen =VC4_GEN_4 ; -if (gen ==VC4_GEN_5 ) +if (gen >VC4_GEN_4 ) driver = &vc5_drm_driver;else driver = &vc4_drm_driver;
drivers/gpu/drm/vc4/vc4_drv.h +1 -1
@@ -1038,7 +1038,7 @@ void vc4_plane_async_set_fb(struct drm_plane *plane,/* vc4_v3d.c */ extern struct platform_driver vc4_v3d_driver;extern const struct of_device_id vc4_v3d_dt_match[]; -int vc4_v3d_get_bin_slot (struct vc4_dev *vc4); +int vc4_v3d_get_bin_slot (struct vc4_dev *vc4,long timeout);int vc4_v3d_bin_bo_get (struct vc4_dev *vc4,bool *used);void vc4_v3d_bin_bo_put (struct vc4_dev *vc4);int vc4_v3d_pm_get (struct vc4_dev *vc4);
drivers/gpu/drm/vc4/vc4_gem.c +19 -13
@@ -77,7 +77,7 @@ vc4_get_hang_state_ioctl(struct drm_device *dev, void *data,u32 i;int ret =0 ; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!vc4->v3d) {
@@ -392,7 +392,7 @@ vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns,unsigned long timeout_expire;DEFINE_WAIT (wait); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (vc4->finished_seqno >= seqno)
@@ -477,7 +477,7 @@ vc4_submit_next_bin_job(struct drm_device *dev)struct vc4_dev *vc4 =to_vc4_dev (dev);struct vc4_exec_info *exec; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ; again:
@@ -525,7 +525,7 @@ vc4_submit_next_render_job(struct drm_device *dev)if (!exec)return ; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;/* A previous RCL may have written to one of our textures, and
@@ -546,7 +546,7 @@ vc4_move_job_to_render(struct drm_device *dev, struct vc4_exec_info *exec)struct vc4_dev *vc4 =to_vc4_dev (dev);bool was_empty =list_empty (&vc4->render_job_list); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;list_move_tail (&exec->head, &vc4->render_job_list);
@@ -950,11 +950,17 @@ vc4_complete_exec(struct drm_device *dev, struct vc4_exec_info *exec)drm_gem_object_put (&bo->base.base); } -/* Free up the allocation of any bin slots we used. */ +/* Free up the allocation of any bin slots we used. Jobs that ran to +* completion had their slots released in vc4_irq_finish_render_job(). +* Only jobs that never completed still have slots to be released here. +*/ spin_lock_irqsave (&vc4->job_lock, irqflags); vc4->bin_alloc_used &= ~exec->bin_slots;spin_unlock_irqrestore (&vc4->job_lock, irqflags); +/* Let anyone waiting on the binner pool retry. */ +wake_up_all (&vc4->job_wait_queue); +/* Release the reference on the binner BO if needed. */ if (exec->bin_bo_used)vc4_v3d_bin_bo_put (vc4);
@@ -973,7 +979,7 @@ vc4_job_handle_completed(struct vc4_dev *vc4)unsigned long irqflags;struct vc4_seqno_cb *cb, *cb_temp; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;spin_lock_irqsave (&vc4->job_lock, irqflags);
@@ -1012,7 +1018,7 @@ int vc4_queue_seqno_cb(struct drm_device *dev,struct vc4_dev *vc4 =to_vc4_dev (dev);unsigned long irqflags; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; cb->func = func;
@@ -1068,7 +1074,7 @@ vc4_wait_seqno_ioctl(struct drm_device *dev, void *data,struct vc4_dev *vc4 =to_vc4_dev (dev);struct drm_vc4_wait_seqno *args = data; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; return vc4_wait_for_seqno_ioctl_helper(dev, args->seqno,
@@ -1085,7 +1091,7 @@ vc4_wait_bo_ioctl(struct drm_device *dev, void *data,struct drm_gem_object *gem_obj;struct vc4_bo *bo; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (args->pad !=0 )
@@ -1134,7 +1140,7 @@ vc4_submit_cl_ioctl(struct drm_device *dev, void *data, args->shader_rec_size, args->bo_handle_count); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!vc4->v3d) {
@@ -1270,7 +1276,7 @@ int vc4_gem_init(struct drm_device *dev)struct vc4_dev *vc4 =to_vc4_dev (dev);int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; vc4->dma_fence_context =dma_fence_context_alloc (1 );
@@ -1329,7 +1335,7 @@ int vc4_gem_madvise_ioctl(struct drm_device *dev, void *data,struct vc4_bo *bo;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;switch (args->madv) {
drivers/gpu/drm/vc4/vc4_irq.c +10 -6
@@ -74,7 +74,7 @@ vc4_overflow_mem_work(struct work_struct *work) bo = vc4->bin_bo; - bin_bo_slot =vc4_v3d_get_bin_slot (vc4); + bin_bo_slot =vc4_v3d_get_bin_slot (vc4,msecs_to_jiffies (500 ));if (bin_bo_slot <0 ) {drm_err (&vc4->base,"Couldn't allocate binner overflow mem\n" ); goto complete;
@@ -165,6 +165,10 @@ vc4_irq_finish_render_job(struct drm_device *dev)trace_vc4_rcl_end_irq (dev, exec->seqno); vc4->finished_seqno++; + + vc4->bin_alloc_used &= ~exec->bin_slots; + exec->bin_slots =0 ; +list_move_tail (&exec->head, &vc4->job_done_list); nextbin =vc4_first_bin_job (vc4);
@@ -263,7 +267,7 @@ vc4_irq_enable(struct drm_device *dev) {struct vc4_dev *vc4 =to_vc4_dev (dev); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;if (!vc4->v3d)
@@ -280,7 +284,7 @@ vc4_irq_disable(struct drm_device *dev) {struct vc4_dev *vc4 =to_vc4_dev (dev); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;if (!vc4->v3d)
@@ -303,7 +307,7 @@ int vc4_irq_install(struct drm_device *dev, int irq)struct vc4_dev *vc4 =to_vc4_dev (dev);int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (irq ==IRQ_NOTCONNECTED )
@@ -324,7 +328,7 @@ void vc4_irq_uninstall(struct drm_device *dev) {struct vc4_dev *vc4 =to_vc4_dev (dev); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;vc4_irq_disable (dev);
@@ -337,7 +341,7 @@ void vc4_irq_reset(struct drm_device *dev)struct vc4_dev *vc4 =to_vc4_dev (dev);unsigned long irqflags; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;/* Acknowledge any stale IRQs. */
drivers/gpu/drm/vc4/vc4_kms.c +1 -1
@@ -461,7 +461,7 @@ static struct drm_framebuffer *vc4_fb_create(struct drm_device *dev,struct vc4_dev *vc4 =to_vc4_dev (dev);struct drm_mode_fb_cmd2 mode_cmd_local; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ERR_PTR (-ENODEV );/* If the user didn't specify a modifier, use the
drivers/gpu/drm/vc4/vc4_perfmon.c +10 -10
@@ -23,7 +23,7 @@ void vc4_perfmon_get(struct vc4_perfmon *perfmon)return ; vc4 = perfmon->dev; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;refcount_inc (&perfmon->refcnt);
@@ -37,7 +37,7 @@ void vc4_perfmon_put(struct vc4_perfmon *perfmon)return ; vc4 = perfmon->dev; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;if (refcount_dec_and_test (&perfmon->refcnt))
@@ -49,7 +49,7 @@ void vc4_perfmon_start(struct vc4_dev *vc4, struct vc4_perfmon *perfmon)unsigned int i;u32 mask; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;if (WARN_ON_ONCE (!perfmon || vc4->active_perfmon))
@@ -69,7 +69,7 @@ void vc4_perfmon_stop(struct vc4_dev *vc4, struct vc4_perfmon *perfmon, {unsigned int i; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ; if (WARN_ON_ONCE(!vc4->active_perfmon ||
@@ -90,7 +90,7 @@ struct vc4_perfmon *vc4_perfmon_find(struct vc4_file *vc4file, int id)struct vc4_dev *vc4 = vc4file->dev;struct vc4_perfmon *perfmon; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return NULL ;mutex_lock (&vc4file->perfmon.lock);
@@ -105,7 +105,7 @@ void vc4_perfmon_open_file(struct vc4_file *vc4file) {struct vc4_dev *vc4 = vc4file->dev; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;mutex_init (&vc4file->perfmon.lock);
@@ -131,7 +131,7 @@ void vc4_perfmon_close_file(struct vc4_file *vc4file) {struct vc4_dev *vc4 = vc4file->dev; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return ;mutex_lock (&vc4file->perfmon.lock);
@@ -151,7 +151,7 @@ int vc4_perfmon_create_ioctl(struct drm_device *dev, void *data,unsigned int i;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!vc4->v3d) {
@@ -205,7 +205,7 @@ int vc4_perfmon_destroy_ioctl(struct drm_device *dev, void *data,struct drm_vc4_perfmon_destroy *req = data;struct vc4_perfmon *perfmon; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!vc4->v3d) {
@@ -233,7 +233,7 @@ int vc4_perfmon_get_values_ioctl(struct drm_device *dev, void *data,struct vc4_perfmon *perfmon;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;if (!vc4->v3d) {
drivers/gpu/drm/vc4/vc4_render_cl.c +1 -1
@@ -599,7 +599,7 @@ int vc4_get_rcl(struct drm_device *dev, struct vc4_exec_info *exec)bool has_bin = args->bin_cl_size !=0 ;int ret; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ; if (args->min_x_tile > args->max_x_tile ||
drivers/gpu/drm/vc4/vc4_v3d.c +32 -28
120 lines not on this page · raw message
drivers/gpu/drm/vc4/vc4_validate.c +5 -5
@@ -109,7 +109,7 @@ vc4_use_bo(struct vc4_exec_info *exec, uint32_t hindex)struct drm_gem_dma_object *obj;struct vc4_bo *bo; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return NULL ;if (hindex >= exec->bo_count) {
@@ -169,7 +169,7 @@ vc4_check_tex_size(struct vc4_exec_info *exec, struct drm_gem_dma_object *fbo,uint32_t utile_w =utile_width (cpp);uint32_t utile_h =utile_height (cpp); -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return false;/* The shaded vertex format stores signed 12.4 fixed point
@@ -404,7 +404,7 @@ validate_tile_binning_config(VALIDATE_ARGS)return -EINVAL ; } - bin_slot =vc4_v3d_get_bin_slot (vc4); + bin_slot =vc4_v3d_get_bin_slot (vc4,MAX_SCHEDULE_TIMEOUT );if (bin_slot <0 ) {if (bin_slot != -EINTR && bin_slot != -ERESTARTSYS ) { drm_err(dev, "Failed to allocate binner memory: %d\n",
@@ -512,7 +512,7 @@ vc4_validate_bin_cl(struct drm_device *dev,uint32_t dst_offset =0 ;uint32_t src_offset =0 ; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;while (src_offset < len) {
@@ -959,7 +959,7 @@ vc4_validate_shader_recs(struct drm_device *dev,uint32_t i;int ret =0 ; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return -ENODEV ;for (i =0 ; i < exec->shader_state_count; i++) {
drivers/gpu/drm/vc4/vc4_validate_shaders.c +1 -1
@@ -787,7 +787,7 @@ vc4_validate_shader(struct drm_gem_dma_object *shader_obj)struct vc4_validated_shader_info *validated_shader =NULL ;struct vc4_shader_validation_state validation_state; -if (WARN_ON_ONCE (vc4->gen ==VC4_GEN_5 )) +if (WARN_ON_ONCE (vc4->gen >VC4_GEN_4 ))return NULL ;memset (&validation_state,0 ,sizeof (validation_state));
drivers/hid/bpf/hid_bpf_dispatch.c +1 -1
@@ -459,7 +459,7 @@ hid_bpf_hw_request(struct hid_bpf_ctx *ctx, __u8 *buf, size_t buf__sz, (u64 )(long )ctx, true); /* prevent infinite recursions */ -if (ret > size) +if (ret > (ssize_t )size) ret = size;if (ret >0 )memcpy (buf, dma_data, ret);
drivers/hid/hid-multitouch.c +1 -1
@@ -2118,7 +2118,7 @@ static void mt_remove(struct hid_device *hdev) {struct mt_device *td =hid_get_drvdata (hdev); -del_timer_sync (&td->release_timer); +timer_shutdown_sync (&td->release_timer);sysfs_remove_group (&hdev->dev.kobj, &mt_attribute_group);hid_hw_stop (hdev);
drivers/hid/hid-steam.c +105 -121
97 lines not on this page · raw message
drivers/i2c/busses/i2c-xiic.c +60 -38
98 lines not on this page · raw message
drivers/iio/accel/kionix-kx022a.c +40 -37
77 lines not on this page · raw message
drivers/iio/adc/stm32-adc.c +26 -17
43 lines not on this page · raw message
drivers/iio/buffer/industrialio-buffer-dmaengine.c +11 -5
Lines of this file are not shown. View the raw message.
drivers/iio/light/rohm-bu27034.c +61 -72
133 lines not on this page · raw message
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/cadence-nand-controller.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/vf610_nfc.c +70 -15
85 lines not on this page · raw message
drivers/net/amt.c +15 -33
48 lines not on this page · raw message
drivers/net/ethernet/broadcom/bcmsysport.c +5 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/bnxt/bnxt.c +60 -24
84 lines not on this page · raw message
drivers/net/ethernet/broadcom/genet/bcmgenet.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_eswitch.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/mcs.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/mtk_eth_soc.c +26 -12
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +9 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.c +5 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c +97 -94
191 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h +13 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c +16 -8
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c +7 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c +8 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c +7 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_main.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/sparx5/sparx5_tc_matchall.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/vcap/vcap_api.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/mana_en.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath9k/hif_usb.c +9 -10
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +25 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlegacy/3945-mac.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas/tx.c +0 -7
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7603/init.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7915/init.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7925/mac.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7925/main.c +12 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c +85 -43
128 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7996/mcu.h +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/silabs/wfx/hif_tx.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/pmdomain/rockchip/pm-domains.c +17 -3
Lines of this file are not shown. View the raw message.
drivers/tee/optee/optee_msg.h +99 -33
132 lines not on this page · raw message
drivers/tee/optee/optee_private.h +64 -56
120 lines not on this page · raw message
drivers/thunderbolt/ctl.c +31 -32
63 lines not on this page · raw message
drivers/tty/n_gsm.c +14 -33
47 lines not on this page · raw message
drivers/tty/serial/sc16is7xx.c +42 -11
53 lines not on this page · raw message
drivers/tty/tty_io.c +37 -17
54 lines not on this page · raw message
drivers/tty/tty_port.c +108 -97
205 lines not on this page · raw message
drivers/tty/vt/vc_screen.c +20 -30
50 lines not on this page · raw message
drivers/usb/class/cdc-acm.c +23 -18
41 lines not on this page · raw message
drivers/usb/dwc3/gadget.c +106 -2
108 lines not on this page · raw message
drivers/usb/gadget/function/f_uac1_legacy.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/udc/aspeed-vhub/core.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/udc/aspeed-vhub/dev.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/udc/aspeed-vhub/hub.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/usb/gadget/udc/aspeed-vhub/vhub.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/usb/serial/usb-serial.c +101 -26
127 lines not on this page · raw message
drivers/virt/nitro_enclaves/ne_misc_dev.c +1 -0
Lines of this file are not shown. View the raw message.
fs/namespace.c +61 -26
87 lines not on this page · raw message
fs/netfs/misc.c +99 -0
99 lines not on this page · raw message
fs/smb/client/transport.c +53 -16
69 lines not on this page · raw message
include/linux/memcontrol.h +47 -3
50 lines not on this page · raw message
kernel/cgroup/cpuset.c +73 -61
134 lines not on this page · raw message
kernel/events/core.c +140 -182
322 lines not on this page · raw message
mm/damon/core.c +26 -22
48 lines not on this page · raw message
mm/secretmem.c +107 -10
117 lines not on this page · raw message
mm/shmem.c +28 -42
70 lines not on this page · raw message
net/bluetooth/hci_core.c +45 -10
55 lines not on this page · raw message
net/bluetooth/iso.c +106 -47
153 lines not on this page · raw message
net/bridge/netfilter/nf_conntrack_bridge.c +7 -3
Lines of this file are not shown. View the raw message.
net/core/dev.c +87 -52
139 lines not on this page · raw message
net/mac80211/chan.c +36 -9
45 lines not on this page · raw message
net/mac80211/tx.c +103 -25
128 lines not on this page · raw message
net/netfilter/ipset/ip_set_bitmap_gen.h +1 -1
Lines of this file are not shown. View the raw message.
net/netfilter/nf_flow_table_core.c +118 -5
123 lines not on this page · raw message
net/sunrpc/xprtrdma/svc_rdma_transport.c +7 -1
Lines of this file are not shown. View the raw message.
net/tipc/topsrv.c +65 -15
80 lines not on this page · raw message
net/vmw_vsock/virtio_transport_common.c +3 -1
Lines of this file are not shown. View the raw message.
security/keys/persistent.c +32 -23
55 lines not on this page · raw message
tools/net/ynl/ynl-gen-c.py +55 -15
70 lines not on this page · raw message
tools/testing/selftests/mm/hugepage-mremap.c +5 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mm/memfd_secret.c +1 -29
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.