Linux 7.1.8
Greg Kroah-Hartman
maintainerI'm announcing the release of the 7.1.8 kernel.
All users of the 7.1 kernel series must upgrade.
The updated 7.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-7.1.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 | 4 Documentation/devicetree/bindings/ufs/qcom,sa8255p-ufshc.yaml | 9 Documentation/filesystems/erofs.rst | 9 Documentation/networking/af_xdp.rst | 54 Documentation/virt/kvm/api.rst | 6 Makefile | 10 arch/arm64/include/asm/kvm_hypevents.h | 1 arch/arm64/kvm/arm.c | 25 arch/arm64/kvm/hyp/nvhe/hyp-main.c | 1 arch/arm64/kvm/hyp_trace.c | 36 arch/arm64/kvm/mmu.c | 4 arch/arm64/kvm/vgic/vgic-its.c | 25 arch/arm64/kvm/vgic/vgic-v3.c | 8 arch/arm64/kvm/vgic/vgic.c | 18 arch/powerpc/boot/simpleboot.c | 2 arch/powerpc/boot/treeboot-akebono.c | 2 arch/powerpc/boot/treeboot-currituck.c | 2 arch/powerpc/platforms/ps3/mm.c | 1 arch/riscv/Makefile | 2 arch/riscv/kernel/unaligned_access_speed.c | 4 arch/riscv/mm/init.c | 7 arch/s390/kvm/pci.c | 107 + arch/s390/kvm/pci.h | 2 arch/s390/pci/pci_mmio.c | 1 arch/um/drivers/vector_kern.c | 3 arch/x86/boot/string.c | 11 arch/x86/kernel/cpu/amd.c | 4 arch/x86/kvm/svm/avic.c | 8 arch/x86/kvm/vmx/vmx_ops.h | 8 arch/x86/kvm/x86.c | 6 drivers/accel/qaic/qaic_control.c | 2 drivers/acpi/cppc_acpi.c | 29 drivers/ata/ahci_ceva.c | 18 drivers/ata/libata-eh.c | 37 drivers/ata/libata-sata.c | 2 drivers/ata/libata-scsi.c | 119 + drivers/ata/libata.h | 3 drivers/ata/sata_mv.c | 2 drivers/block/ublk_drv.c | 9 drivers/bluetooth/btintel.c | 3 drivers/bluetooth/btmtk.c | 86 - drivers/bluetooth/btusb.c | 30 drivers/cpufreq/cppc_cpufreq.c | 33 drivers/cpufreq/powernow-k8.c | 1 drivers/dibs/dibs_loopback.c | 47 drivers/dma/idxd/cdev.c | 4 drivers/dma/idxd/init.c | 36 drivers/dma/sun6i-dma.c | 11 drivers/dma/switchtec_dma.c | 2 drivers/gpio/gpio-by-pinctrl.c | 18 drivers/gpio/gpio-pca953x.c | 15 drivers/gpio/gpio-pch.c | 28 drivers/gpio/gpio-sloppy-logic-analyzer.c | 10 drivers/gpio/gpiolib.c | 13 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 39 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 9 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 15 drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c | 3 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 12 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 10 drivers/gpu/drm/amd/amdkfd/kfd_events.c | 23 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 2 drivers/gpu/drm/amd/amdkfd/kfd_queue.c | 2 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 243 ++- drivers/gpu/drm/amd/display/dc/core/dc.c | 45 drivers/gpu/drm/amd/display/dc/dc.h | 1 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c | 20 drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c | 15 drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c | 31 drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c | 16 drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 16 drivers/gpu/drm/amd/include/kgd_pp_interface.h | 6 drivers/gpu/drm/amd/pm/amdgpu_dpm.c | 39 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 29 drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 6 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 4 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 4 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c | 2 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c | 5 drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h | 5 drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 2 drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c | 6 drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 8 drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 7 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 9 drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 5 drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 3 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 2 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 3 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c | 4 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c | 2 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 3 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c | 2 drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c | 3 drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 2 drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c | 3 drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c | 3 drivers/gpu/drm/bridge/display-connector.c | 11 drivers/gpu/drm/display/drm_dp_helper.c | 12 drivers/gpu/drm/drm_exec.c | 6 drivers/gpu/drm/drm_gpuvm.c | 3 drivers/gpu/drm/i915/display/intel_ddi.c | 2 drivers/gpu/drm/i915/display/intel_dp.c | 9 drivers/gpu/drm/i915/display/intel_hdmi.c | 26 drivers/gpu/drm/i915/display/intel_hdmi.h | 2 drivers/gpu/drm/mediatek/mtk_crtc.c | 6 drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 7 drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 8 drivers/gpu/drm/panthor/panthor_fw.c | 47 drivers/gpu/drm/vc4/vc4_irq.c | 2 drivers/gpu/drm/vc4/vc4_validate.c | 29 drivers/gpu/drm/vmwgfx/ttm_object.c | 7 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 39 drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c | 49 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 20 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 13 drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c | 4 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 4 drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 13 drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c | 17 drivers/gpu/drm/xe/tests/xe_pci.c | 6 drivers/gpu/drm/xe/xe_device.c | 56 drivers/gpu/drm/xe/xe_device.h | 4 drivers/gpu/drm/xe/xe_exec.c | 22 drivers/gpu/drm/xe/xe_gt_debugfs.c | 4 drivers/gpu/drm/xe/xe_hw_engine.c | 2 drivers/gpu/drm/xe/xe_hw_engine_types.h | 8 drivers/gpu/drm/xe/xe_oa.c | 7 drivers/gpu/drm/xe/xe_oa_types.h | 3 drivers/gpu/drm/xe/xe_pci.c | 15 drivers/gpu/drm/xe/xe_pt.c | 13 drivers/gpu/drm/xe/xe_reg_whitelist.c | 87 + drivers/gpu/drm/xe/xe_reg_whitelist.h | 4 drivers/gpu/drm/xe/xe_vm.c | 3 drivers/hv/mshv_eventfd.c | 39 drivers/hv/mshv_irq.c | 2 drivers/hv/mshv_portid_table.c | 6 drivers/hv/mshv_root_main.c | 41 drivers/hv/mshv_vtl_main.c | 1 drivers/hv/vmbus_drv.c | 13 drivers/hwmon/adt7470.c | 129 + drivers/hwmon/ina2xx.c | 61 drivers/hwmon/lm90.c | 4 drivers/hwmon/ltc4282.c | 4 drivers/hwmon/nct6775-core.c | 20 drivers/hwmon/npcm750-pwm-fan.c | 11 drivers/hwmon/nzxt-smart2.c | 2 drivers/hwmon/pmbus/pmbus_core.c | 7 drivers/hwmon/sht3x.c | 9 drivers/i2c/busses/i2c-amd-mp2-plat.c | 4 drivers/i2c/busses/i2c-bcm-iproc.c | 11 drivers/i2c/busses/i2c-imx.c | 54 drivers/i2c/busses/i2c-jz4780.c | 5 drivers/i2c/busses/i2c-k1.c | 10 drivers/i2c/busses/i2c-qcom-cci.c | 18 drivers/infiniband/hw/mana/main.c | 40 drivers/infiniband/hw/mana/mana_ib.h | 14 drivers/infiniband/hw/mana/qp.c | 68 - drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c | 15 drivers/iommu/io-pgfault.c | 24 drivers/iommu/iommufd/device.c | 2 drivers/iommu/iommufd/eventq.c | 2 drivers/iommu/iommufd/pages.c | 3 drivers/iommu/iommufd/viommu.c | 22 drivers/media/platform/chips-media/wave5/wave5-hw.c | 3 drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c | 5 drivers/media/platform/chips-media/wave5/wave5-vpuapi.h | 1 drivers/net/can/c_can/c_can_main.c | 8 drivers/net/can/ctucanfd/ctucanfd_base.c | 14 drivers/net/can/ctucanfd/ctucanfd_pci.c | 3 drivers/net/can/rcar/rcar_canfd.c | 32 drivers/net/can/softing/softing_fw.c | 46 drivers/net/can/usb/ems_usb.c | 43 drivers/net/can/usb/etas_es58x/es58x_core.c | 1 drivers/net/can/usb/gs_usb.c | 4 drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c | 1 drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c | 13 drivers/net/can/usb/peak_usb/pcan_usb_core.c | 1 drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 40 drivers/net/can/usb/peak_usb/pcan_usb_pro.c | 20 drivers/net/dsa/mt7530-mdio.c | 11 drivers/net/dsa/mt7530.c | 86 - drivers/net/ethernet/intel/e1000/e1000_main.c | 2 drivers/net/ethernet/intel/ice/ice_dpll.c | 19 drivers/net/ethernet/intel/ice/ice_ethtool.c | 10 drivers/net/ethernet/intel/ice/ice_main.c | 10 drivers/net/ethernet/intel/ice/ice_vf_lib.c | 27 drivers/net/ethernet/intel/ice/ice_vf_lib_private.h | 1 drivers/net/ethernet/intel/ice/virt/queues.c | 21 drivers/net/ethernet/intel/idpf/idpf_dev.c | 2 drivers/net/ethernet/intel/idpf/idpf_lib.c | 2 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 5 drivers/net/ethernet/intel/idpf/idpf_txrx.h | 2 drivers/net/ethernet/intel/idpf/idpf_vf_dev.c | 2 drivers/net/ethernet/intel/idpf/idpf_virtchnl.c | 5 drivers/net/ethernet/intel/idpf/idpf_virtchnl.h | 2 drivers/net/ethernet/intel/igbvf/netdev.c | 2 drivers/net/ethernet/intel/igc/igc_main.c | 3 drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 12 drivers/net/ethernet/marvell/octeontx2/af/cgx.h | 1 drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 1 drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 2 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 79 + drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 97 + drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 49 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 8 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en.h | 1 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 7 drivers/net/ethernet/mellanox/mlx5/core/en_stats.c | 19 drivers/net/ethernet/microsoft/mana/mana_en.c | 143 +- drivers/net/ethernet/microsoft/mana/mana_ethtool.c | 23 drivers/net/ethernet/nvidia/forcedeth.c | 4 drivers/net/ethernet/qlogic/qede/qede_main.c | 44 drivers/net/ethernet/realtek/rtase/rtase_main.c | 3 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 14 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 drivers/net/ethernet/wangxun/libwx/wx_lib.c | 2 drivers/net/phy/phylink.c | 29 drivers/net/veth.c | 4 drivers/net/vxlan/vxlan_core.c | 21 drivers/net/vxlan/vxlan_mdb.c | 4 drivers/net/wireless/ath/ath12k/mac.c | 5 drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c | 2 drivers/of/address.c | 22 drivers/of/of_reserved_mem.c | 14 drivers/pci/controller/dwc/pci-imx6.c | 9 drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 drivers/phy/xilinx/phy-zynqmp.c | 62 drivers/pinctrl/Kconfig | 2 drivers/pinctrl/devicetree.c | 4 drivers/pinctrl/pinctrl-amd.c | 3 drivers/pinctrl/qcom/pinctrl-msm.c | 8 drivers/pinctrl/qcom/pinctrl-sc8280xp.c | 21 drivers/power/supply/bq25890_charger.c | 2 drivers/power/supply/macsmc-power.c | 52 drivers/power/supply/max17040_battery.c | 6 drivers/ptp/ptp_netc.c | 15 drivers/s390/block/dasd_eckd.c | 11 drivers/s390/block/dasd_ioctl.c | 2 drivers/s390/crypto/pkey_cca.c | 15 drivers/s390/crypto/zcrypt_api.c | 4 drivers/s390/crypto/zcrypt_ccamisc.c | 89 + drivers/s390/crypto/zcrypt_ccamisc.h | 6 drivers/s390/net/qeth_core_main.c | 3 drivers/s390/scsi/zfcp_aux.c | 1 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 10 drivers/scsi/libiscsi.c | 2 drivers/scsi/libiscsi_tcp.c | 8 drivers/scsi/libsas/sas_init.c | 37 drivers/scsi/libsas/sas_scsi_host.c | 15 drivers/scsi/mpi3mr/mpi3mr_fw.c | 9 drivers/scsi/scsi_debug.c | 8 drivers/spi/spi-cadence.c | 26 drivers/spi/spi-nxp-fspi.c | 83 + drivers/spi/spi-qcom-qspi.c | 3 drivers/spi/spi-qpic-snand.c | 22 drivers/target/target_core_iblock.c | 6 drivers/target/target_core_transport.c | 12 drivers/thunderbolt/xdomain.c | 40 drivers/ufs/core/ufs-rpmb.c | 2 drivers/ufs/core/ufshcd.c | 46 drivers/usb/typec/ucsi/ucsi.c | 90 - drivers/usb/typec/ucsi/ucsi.h | 1 fs/afs/fsclient.c | 5 fs/afs/internal.h | 3 fs/binfmt_misc.c | 54 fs/btrfs/block-group.c | 34 fs/btrfs/block-rsv.c | 19 fs/btrfs/disk-io.c | 58 fs/btrfs/extent_io.c | 6 fs/btrfs/extent_io.h | 6 fs/btrfs/fs.h | 9 fs/btrfs/raid56.c | 15 fs/btrfs/super.c | 8 fs/btrfs/zoned.c | 27 fs/erofs/Kconfig | 36 fs/erofs/Makefile | 1 fs/erofs/data.c | 4 fs/erofs/decompressor_lzma.c | 3 fs/erofs/fscache.c | 664 ---------- fs/erofs/inode.c | 2 fs/erofs/internal.h | 76 - fs/erofs/ishare.c | 103 - fs/erofs/super.c | 94 - fs/erofs/zdata.c | 6 fs/iomap/ioend.c | 21 fs/netfs/buffered_read.c | 10 fs/netfs/internal.h | 1 fs/netfs/main.c | 7 fs/netfs/objects.c | 30 fs/netfs/read_pgpriv2.c | 3 fs/netfs/rolling_buffer.c | 22 fs/netfs/write_issue.c | 15 fs/ntfs/attrib.c | 10 fs/ntfs/namei.c | 3 fs/ntfs/runlist.c | 50 fs/ocfs2/dir.c | 5 fs/proc/task_mmu.c | 34 fs/smb/client/cifssmb.c | 12 fs/smb/client/inode.c | 1 fs/smb/server/connection.h | 5 fs/smb/server/smb2pdu.c | 14 fs/smb/server/smb_common.c | 37 fs/smb/server/vfs_cache.c | 6 include/acpi/cppc_acpi.h | 5 include/drm/drm_exec.h | 20 include/hyperv/hvhdk_mini.h | 3 include/kvm/arm_vgic.h | 3 include/linux/alloc_tag.h | 3 include/linux/dma/qcom_bam_dma.h | 21 include/linux/ethtool.h | 1 include/linux/iommu.h | 5 include/linux/libata.h | 6 include/linux/memcontrol.h | 25 include/linux/netfilter/nf_conntrack_sip.h | 2 include/linux/netfs.h | 1 include/linux/rolling_buffer.h | 6 include/linux/slab.h | 19 include/linux/thunderbolt.h | 3 include/net/bluetooth/hci_core.h | 4 include/net/ip_vs.h | 45 include/net/mana/mana.h | 15 include/net/netfilter/nf_conntrack_expect.h | 3 include/net/netfilter/nf_tables.h | 4 include/net/xdp_sock.h | 1 include/net/xsk_buff_pool.h | 9 include/scsi/libsas.h | 3 io_uring/cancel.c | 2 io_uring/net.c | 1 io_uring/tctx.c | 7 io_uring/tctx.h | 1 kernel/audit.c | 11 kernel/auditfilter.c | 6 kernel/events/uprobes.c | 2 kernel/sched/cpufreq_schedutil.c | 11 kernel/sched/deadline.c | 3 kernel/trace/fprobe.c | 6 kernel/trace/ring_buffer.c | 2 kernel/trace/trace_events.c | 4 kernel/trace/trace_events_filter.c | 3 kernel/trace/trace_fprobe.c | 12 kernel/trace/trace_mmiotrace.c | 13 kernel/trace/trace_probe.c | 6 lib/alloc_tag.c | 9 lib/assoc_array.c | 3 lib/test_fortify/Makefile | 1 lib/test_hmm.c | 2 mm/huge_memory.c | 14 mm/hugetlb.c | 12 mm/memcontrol-v1.h | 6 mm/migrate_device.c | 5 mm/mm_init.c | 15 mm/page_reporting.c | 6 mm/percpu-km.c | 2 mm/slab.h | 28 mm/slab_common.c | 13 mm/slub.c | 97 - mm/util.c | 2 mm/vmscan.c | 11 net/bluetooth/hci_conn.c | 14 net/bluetooth/hci_sync.c | 216 ++- net/bluetooth/hidp/core.c | 30 net/bluetooth/iso.c | 273 ++-- net/bluetooth/l2cap_core.c | 5 net/bluetooth/mgmt.c | 84 - net/bluetooth/sco.c | 22 net/bridge/br_mrp.c | 2 net/bridge/br_multicast.c | 1 net/can/isotp.c | 330 +++- net/can/j1939/bus.c | 2 net/can/j1939/j1939-priv.h | 3 net/can/j1939/main.c | 8 net/can/j1939/transport.c | 4 net/core/lwt_bpf.c | 4 net/core/pktgen.c | 4 net/core/skbuff.c | 18 net/ipv4/fou_core.c | 2 net/ipv4/netfilter/nf_nat_h323.c | 22 net/ipv4/nexthop.c | 25 net/ipv4/route.c | 2 net/ipv4/udp_tunnel_nic.c | 32 net/ipv6/fib6_rules.c | 1 net/ipv6/ip6_fib.c | 1 net/ipv6/ip6_output.c | 2 net/ipv6/ndisc.c | 2 net/mac80211/agg-tx.c | 4 net/mac80211/s1g.c | 4 net/mpls/af_mpls.c | 1 net/netfilter/ipset/ip_set_hash_gen.h | 2 net/netfilter/ipvs/ip_vs_app.c | 4 net/netfilter/ipvs/ip_vs_conn.c | 192 ++ net/netfilter/ipvs/ip_vs_core.c | 190 +- net/netfilter/ipvs/ip_vs_proto_sctp.c | 19 net/netfilter/ipvs/ip_vs_proto_tcp.c | 48 net/netfilter/ipvs/ip_vs_proto_udp.c | 54 net/netfilter/ipvs/ip_vs_xmit.c | 42 net/netfilter/nf_conntrack_expect.c | 35 net/netfilter/nf_conntrack_sip.c | 2 net/netfilter/nf_nat_sip.c | 22 net/netfilter/nf_tables_api.c | 34 net/netfilter/nft_payload.c | 12 net/netfilter/xt_hashlimit.c | 16 net/openvswitch/actions.c | 12 net/openvswitch/meter.c | 33 net/rds/tcp.c | 8 net/sched/cls_u32.c | 7 net/sched/sch_cake.c | 8 net/sctp/associola.c | 3 net/sctp/sm_make_chunk.c | 17 net/smc/smc_core.c | 2 net/tipc/socket.c | 2 net/unix/af_unix.c | 1 net/xdp/xsk.c | 255 +++ net/xdp/xsk_buff_pool.c | 13 net/xdp/xsk_queue.h | 65 security/keys/keyring.c | 14 security/keys/trusted-keys/trusted_dcp.c | 15 sound/core/pcm_native.c | 7 sound/core/seq/seq_timer.c | 9 sound/core/timer.c | 2 sound/core/ump.c | 1 sound/hda/codecs/realtek/alc269.c | 4 sound/pci/lx6464es/lx6464es.c | 5 sound/pci/lx6464es/lx_core.c | 5 sound/soc/codecs/max98090.c | 5 sound/soc/codecs/max98095.c | 5 sound/soc/codecs/tas2562.c | 30 sound/soc/codecs/tas2781-i2c.c | 4 sound/soc/fsl/fsl_asrc.c | 2 sound/soc/fsl/fsl_easrc.c | 2 sound/soc/sdca/sdca_device.c | 2 sound/soc/sdca/sdca_fdl.c | 5 sound/soc/sdca/sdca_functions.c | 2 sound/soc/sdca/sdca_ump.c | 4 sound/soc/sophgo/cv1800b-sound-adc.c | 10 sound/usb/6fire/chip.c | 4 sound/usb/endpoint.c | 14 sound/usb/midi.c | 2 sound/usb/midi2.c | 4 sound/usb/mixer_quirks.c | 2 tools/testing/selftests/clone3/clone3_set_tid.c | 2 tools/testing/selftests/filesystems/fclog.c | 4 tools/testing/selftests/lkdtm/tests.txt | 2 tools/testing/selftests/mm/mlock-random-test.c | 2 tools/testing/selftests/mm/pagemap_ioctl.c | 56 tools/testing/selftests/net/af_unix/.gitignore | 1 tools/testing/selftests/net/af_unix/Makefile | 1 tools/testing/selftests/net/af_unix/unix_listen.c | 187 ++ tools/testing/selftests/net/netfilter/nft_flowtable.sh | 14 tools/testing/selftests/seccomp/seccomp_bpf.c | 3 tools/tracing/rtla/src/timerlat_top.c | 2 454 files changed, 5956 insertions(+), 3358 deletions(-)
Aaron Ma (1):
ice: wait for reset completion in ice_resume()
Abdun Nihaal (3):
gpio: sloppy-logic-analyzer: Fix memory leak in gpio_la_poll_probe()
cpufreq: powernow-k8: Fix possible memory leak in powernowk8_cpu_init()
can: kvaser_usb: kvaser_usb_hydra_get_busparams(): fix memory leak in kvaser_usb_hydra_get_busparams()
Aboorva Devarajan (1):
mm/util: don't read __page_2 for order-1 folios in snapshot_page()
Aditya Garg (1):
net: mana: Return error code from mana_create_rxq()
Alan Swanson (1):
drm/amd/display: Silence link_dpms I2C retimer failures
Aldo Ariel Panzardo (1):
Bluetooth: SCO: give the socket its own sco_conn reference
Alex Deucher (1):
drm/amd/display: check if dml21_add_phantom_plane() is successful
Alex Tran (1):
gpio: gpio-by-pinctrl: Apply initial value in direction output wrapper
Alexander Kaplan (2):
drm/i915/dp: Ignore the sink's DSC max FRL rate without a PCON DSC encoder drm/dp: Read the PCON max FRL bandwidth only for HDMI DFPs
Alexandru Elisei (1):
KVM: arm64: Reject guest_memfd memslots when the VM has MTE
Andrei Kuchynski (2):
usb: typec: ucsi: Fix race condition and ordering in port unregistration
usb: typec: ucsi: Correct teardown ordering in ucsi_init() error path
Anirudh Srinivasan (1):
riscv: drop __init from vec_check_unaligned_access_speed_all_cpus
Ao Sun (1):
scsi: ufs: core: Initialize hba->rpmbs list in ufshcd
Ashutosh Dixit (8):
drm/xe/rtp: Maintain OA whitelists separately drm/xe/rtp: Keep track of non-OA nonpriv slots drm/xe/rtp: Generalize whitelist_apply_to_hwe drm/xe/rtp: Save OA nonpriv registers to register save/restore lists drm/xe/rtp: Toggle 'deny' bit to (de-)whitelist OA regs drm/xe/rtp: (De-)whitelist OA registers for all hwe's for a gt drm/xe/oa: (De-)whitelist OA registers on OA stream open/release drm/xe/rtp: Ensure locking/ref counting for OA whitelists
Asim Viladi Oglu Manizada (1):
sctp: prevent peer transport count overflow
Aswin Karuvally (1):
s390/qeth: Check CAP_NET_ADMIN for private ioctls
Avi Weiss (4):
can: ctucanfd: use self-test mode for PRESUME_ACK
can: ctucanfd: unmap BAR0 using base address
can: ctucanfd: handle bus error interrupts
can: ctucanfd: mark error-active controller status valid
Baochen Qiang (1):
wifi: ath12k: fix out-of-bounds clear_bit in ath12k_mac_dp_peer_cleanup()
Bart Van Assche (1):
scsi: ufs: core: Revert "Delegate the interrupt service routine to a threaded IRQ handler"
Baul Lee (4):
ALSA: ump: fix double free of out_cvts on rawmidi error
ALSA: usb-audio: fix use-after-free in ump_to_endpoint()
ALSA: usb-audio: fix stack info leak in RME Digiface status
ALSA: usb-audio: fix OOB write in snd_usbmidi_akai_output()
Benjamin Block (1):
scsi: zfcp: Fix memory leak during adapter release by destroying gid_pn_req
Benjamin Boortz (2):
pinctrl: microchip-sgpio: add missing select REGMAP_MMIO
pinctrl: bm1880: add missing select GENERIC_PINCONF
Breno Leitao (2):
mm: memcg: initialize *locked in memcg1_oom_prepare() stub
uprobes: Fix NULL pointer dereference in hprobe_expire()
Candice Li (1):
drm/amdgpu: restore UMD profile pstate after runtime resume
Carlo Caione (1):
of/address: Fix NULL bus dereference in of_pci_range_parser_one()
Carlos López (2):
KVM: arm64: vgic: Fix race between LPI release and re-registration
KVM: arm64: vgic: Mitigate potential LPI registration failure
Carlos Song (1):
i2c: imx: mark I2C adapter when hardware is powered down
Cen Zhang (Microsoft) (1):
net/sched: cls_u32: validate offshift to prevent shift-out-of-bounds
Chandrakanth Patil (1):
scsi: mpi3mr: Fix potential deadlock in mpi3mr_fault_uevent_emit
Charles Keepax (4):
ASoC: SDCA: Correct pointer passed to devm_acpi_table_put
ASoC: SDCA: Always free firmware in FDL path
ASoC: SDCA: Make UMP message size check more robust
ASoC: SDCA: Ensure that Control Range is large enough for header
Charles Vosburgh (1):
sctp: validate Adaptation Indication parameter length
Chengfeng Ye (2):
Bluetooth: hci_sync: Fix advertising data UAFs
net: pktgen: fix proc entry use-after-free
Chenguang Zhao (4):
forcedeth: fix UAF of txrx_stats in nv_remove
net: ethernet: mtk_eth_soc: pass eth to mtk_handle_irq_rx in poll_controller
net: sxgbe: free TX rings on RX allocation failure
net: sxgbe: check descriptor ring allocation failures
Chris Gellermann (2):
selftests/mm: fix potential wild pointer access of getline due to missing init selftests/clone3: fix wild pointer access of getline due to missing init
Christian Brauner (5):
binfmt_misc: restore write access when removing an entry
binfmt_misc: use exe_file_deny_write_access() for the interpreter clone
binfmt_misc: reject a flag character as the field delimiter
binfmt_misc: don't let an 'F' entry pin its own instance
binfmt_misc: don't leak the user namespace when the mount fails
Christian Loehle (3):
ACPI: CPPC: Skip writes to unsupported performance controls
ACPI: CPPC: Check all controls for fast switching
cpufreq: cppc: Sanitize lockless policy limit snapshots
Christian Marangi (1):
net: phylink: put link_gpio if phylink_create fails
Christoph Hellwig (1):
iomap: add a separate bio_set for iomap_split_ioend
D Scott Phillips (1):
KVM: arm64: vgic: Avoid double-deactivate of IRQs in the nested context
Damien Le Moal (3):
ata: libata-scsi: terminate deferred commands on time out
ata: libata-scsi: schedule deferred atapi command
scsi: libsas: terminate deferred commands on time out
Daniel Golle (4):
net: dsa: mt7530: check bus->read() errors in the MDIO regmap backend
net: dsa: mt7530: error out on failed reads in ATC/VTCR command polling
net: dsa: mt7530: error out on failed reads in MT7531 PHY polling
gpiolib: tolerate gpio-hogs lacking a hogging state
David Carlier (2):
dmaengine: switchtec-dma: fix FIELD_GET misuse when programming SE threshold
igc: remove napi_synchronize() in igc_down()
David Corvaglia (1):
net: bridge: mrp: fix Option TLV length in MRP_Test frames
David Francis (1):
drm/amdkfd: Handle invalid event type in CRIU event restore
David Howells (4):
netfs: Fix folio_queue ENOMEM in writeback by adding a mempool
afs: Fix afs_fs_fetch_data() to set call->async
afs: Fix afs_fs_fetch_data() to subtract transferred from len
afs: Fix UAF when sending a message
David Lee (1):
netfilter: ipset: do not update comments from kernel-side hash adds
Dawei Feng (3):
smb: client: fix buffer leaks in SMB1 read and write
e1000: fix memory leak in e1000_probe()
ice: fix memory leak in ice_lbtest_prepare_rings()
Dawid Osuchowski (1):
ice: fix VF interrupts cleanup
Denis V. Lunev (1):
qede: sync udp_tunnel ports outside qede_lock in the recovery path
Dongjiang Zhu (1):
btrfs: skip global block reserve accounting for rescue mounts
Eckhart Mohr (1):
ALSA: hda/realtek: Add quirk for TongFang X6SP45xU
Eric Dumazet (7):
net: do not send ICMP/NDISC Redirects when peer allocation fails
net: udp_tunnel: fix memory leak in udp_tunnel_nic_unregister()
vxlan: re-fetch eth header after route_shortcircuit()
vxlan: unclone skb head before modifying eth header in route_shortcircuit()
vxlan: use neigh_ha_snapshot() in route_shortcircuit()
vxlan: use pskb_network_may_pull() for transmit path header pulls
vxlan: use pskb_network_may_pull() in route_shortcircuit()
Eric Joyner (1):
ethtool: Embed FEC hist ranges as buffer in struct
Fabrice Derepas (1):
KEYS: trusted: dcp: fix key_len validation and calc_blob_len() return type
Farhan Ali (6):
KVM: s390: pci: Reject adapter interrupt forwarding if already enabled
KVM: s390: pci: Fix memory accounting for pinned/unpinned pages
KVM: s390: pci: Fix missing error codes and memory unaccounting
KVM: s390: pci: Fix resource leak on IRQ registration failure
KVM: s390: pci: Fix NULL dereference on AIBV allocation failure
KVM: s390: pci: Validate AIBV and AISB before pinning guest pages
Frank Sorenson (1):
cifs: add fscache_resize_cookie() to cifs_setsize()
Gabriele Monaco (1):
sched/deadline: Use revised wakeup rule only for running dl_server
Gang Ba (1):
drm/amdkfd: Fix missing authorization check in KFD_IOC_DBG_TRAP_DISABLE
Gao Xiang (3):
erofs: clean up erofs_ishare_fill_inode()
erofs: remove fscache backend entirely
erofs: ensure valid f_path for page cache sharing
George Zhang (1):
drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport
Greg Kroah-Hartman (4):
Bluetooth: btusb: Fix short read errors in btusb_qca_send_vendor_req()
Bluetooth: btmtk: Fix short read errors in btmtk_usb_uhw_reg_read()
Bluetooth: btmtk: Fix short read errors in btmtk_usb_reg_read() Linux 7.1.8
Gregory Price (1):
mm/vmstat: fold stranded per-cpu node stats when a node comes online
Guanghui Yang (1):
btrfs: zoned: fix missing chunk metadata reservation
Guangshuo Li (3):
scsi: ufs: core: Cancel RTC work in active-active suspend
can: etas_es58x: es58x_read_bulk_callback(): fix RX buffer leak on URB resubmit failure drm/mediatek: mtk_hdmi: Fix DDC adapter double put in v2
Guenter Roeck (8):
hwmon: (nct6775-core) Fix number of temperature registers for NCT6116
hwmon: (ina2xx) Fix various overflow issues
hwmon: (ltc4282) Fix reading the minimum alarm voltage
hwmon: (sht3x) Fix unaligned accesses
hwmon: (lm90) Only report alarms if driver is ready
hwmon: (nzxt-smart2) DMA-align output buffer
hwmon: (nct6775-core) Prevent access to unsupported weight registers
hwmon: (pmbus) Fix return value from pmbus_update_byte_data()
H. Nikolaus Schaller (1):
i2c: jz4780: Cache host clock rate at probe to prevent CCF prepare_lock deadlock
Haibo Chen (1):
spi: spi-nxp-fspi: add per-SoC SDR/DTR clock rate limits for all supported SoCs
Haidar Lee (2):
ASoC: tas2562: fix DVC coefficient write order
ASoC: tas2562: fix broken entries in the volume lookup table
Haofeng Li (1):
selftests/lkdtm: rename STACKLEAK_ERASING to KSTACK_ERASE
Harald Freudenberger (4):
s390/zcrypt: Fix wrong domain value verification with EP11 CPRBs s390/zcrypt: Close speculative mem read possibility
s390/zcrypt: Fix buffer over-read in cca_cipher2protkey s390/zcrypt: Fix missing mem scrub at clear key import in cca_clr2cipherkey()
Hariprasad Kelam (1):
octeontx2-af: Block VFs from clobbering special CGX PKIND state
Harkirat Gill (1):
drm/amdgpu: cap GTT size to physical RAM on APUs
Harry Yoo (Oracle) (3):
mm/slab: decouple SLAB_NO_SHEAVES from SLAB_NO_OBJ_EXT lib/alloc_tag: introduce mem_alloc_profiling_permanently_disabled() mm/slab: prevent unbounded recursion in free path with new kmalloc type
Hidayath Khan (1):
dibs: fix use-after-free of dmb_node in loopback attach/detach/unregister
Himal Prasad Ghimiray (1):
drm/xe/pt: check no-DMA huge-pte cases before DMA segment test
Holger Dengler (2):
s390/zcrypt: Validate length for CCA AES cipher key requests s390/zcrypt: Validate length for CCA ECC private key requests
Hongling Zeng (1):
dmaengine: sun6i-dma: Fix reclaim descriptors while terminating DMA
Hongyan Xu (1):
hwmon: (npcm750-pwm-fan): stop fan timer on device detach
HyeongJun An (2):
scsi: libiscsi: Fix stale-data leak into the SCSI sense buffer
scsi: libiscsi_tcp: Bound SCSI Response data segment to the connection buffer
Ibrahim Hashimov (1):
scsi: scsi_debug: Fix REPORT ZONES alloc_len underflow OOB write
Ilya Maximets (3):
net: openvswitch: fix potential UAF on meter attach failure
net: openvswitch: fix skb leak on flow key update failure during recirculation
net: openvswitch: fix skb leak on flow key update failure during ct
Jackson Lee (1):
media: chips-media: wave5: Support CBP profile
James Gao (1):
can: peak_usb: add bounds check for USB channel index
Jan Höppner (1):
s390/dasd: Fix potential NULL pointer dereference
Jason Xing (2):
xsk: fix buffer leak in xsk_drop_skb() for AF_XDP multi-buffer Tx
xsk: drain continuation descs after overflow in xsk_build_skb()
Jens Axboe (1):
io_uring/net: initialize mshot_len for send
Jerome Tollet (1):
drm/i915/hdmi: Poll for 200 msec for TMDS_Scrambler_Status
Jiakai Xu (1):
riscv/mm: use physical alignment for vmemmap_start_pfn
Jiale Yao (1):
Bluetooth: L2CAP: fix UAF in l2cap_le_connect_rsp
Jianing Li (1):
power: supply: max17040: handle missing status supplier
Jiawen Wu (1):
net: libwx: fix FDIR ATR queue mismatch for software VLAN packets
Jiri Slaby (SUSE) (1):
drm/amd/display: use proper context for logging
Johannes Thumshirn (3):
btrfs: zoned: fix deadlock between metadata writeback and transaction commit
btrfs: zoned: reset meta_write_pointer on zone reset
btrfs: zoned: skip fully truncated ordered extents at zone finish
John Ericson (2):
af_unix: fix listen() succeeding on sockets in the wrong state selftests/net/af_unix: test listen() rejects wrong socket states
Jonas Gorski (1):
i2c: iproc: reset bus after timeout if START_BUSY is stuck
Jonas Köppeler (1):
net/sched: sch_cake: skip clearing unused tins during rate adjustment
Jori Koolstra (1):
selftest: fix headers in fclog.c
Jose Maria Casanova Crespo (1):
drm/vc4: Supply the overflow slot size in BPOS, not the whole bin BO size
Joseph Qi (1):
ocfs2: fix boundary check in ocfs2_check_dir_entry() to use buffer offset
Joshua Hay (1):
idpf: adjust TxQ ring count minimum
Julian Anastasov (5):
ipvs: adjust double hashing when fwd method changes
ipvs: fix the checksum validations
ipvs: fix places with wrong packet offsets
ipvs: do not mangle ICMP replies for non-first fragments
ipvs: clear the nfct flag under lock
Junjie Cao (1):
gpio: pch: use raw_spinlock_t for the register lock
Karl Mehltretter (2):
riscv: mm: Fix out-of-bounds page-table walk during memory hot-remove
pinctrl: devicetree: don't free uninitialized dev_name on error path
Kefeng Wang (1):
mm: migrate_device: fix pte_pfn/pte_dirty called on non-present PTE
Kiryl Shutsemau (Meta) (4):
mm/hugetlb: fix swap entry corruption when clearing uffd-wp at fork() fs/proc/task_mmu: fix PAGEMAP_SCAN written state for unpopulated ptes fs/proc/task_mmu: fix PAGEMAP_SCAN written state for PMD holes mm/huge_memory: unlock i_mmap_rwsem before releasing after-split folios
Konrad Dybcio (1):
pinctrl: qcom: sc8280xp: Add missing wakeup entries for GPIO143/151
Krishna Kurapati (1):
phy: qcom: m31-eusb2: Fix return value of init call
Kuan-Ying Lee (1):
selftests/seccomp: Fix pointer type mismatch build error
Kyumin Lee (1):
io_uring: preserve task restrictions across exec
Laurent Pinchart (1):
drm/bridge: display-connector: Fix I2C adapter resource leak
Leo Li (2):
drm/amd/display: check GRPH_FLIP status before sending event drm/amd/display: Exit idle optimizations before programming
Leon Romanovsky (1):
scsi: target: Clear cmd_cnt when initial counter enrollment fails
Liem (2):
i2c: imx: Fix slave registration race and error handling
i2c: imx: Cancel hrtimer before clearing slave pointer
Link Lin (1):
mm/page_reporting: use system_freezable_wq to fix UAF during suspend
Linmao Li (1):
i2c: spacemit: request IRQ after controller initialization
Long Li (1):
net: mana: Create separate EQs for each vPort
Lorenzo Bianconi (1):
selftests: netfilter: nft_flowtable.sh: fix offload counter verification for tunnel tests
Lucas Martins Alves (1):
can: c_can: c_can_chip_config(): keep controller in init mode until bittiming is configured
Luiz Angelo Daros de Luca (8):
hwmon: (adt7470) Fix fans stuck in manual mode on I2C errors
hwmon: (adt7470) Fix cache updated before hardware write on I2C error
hwmon: (adt7470) Fix busy-loop and I2C flooding in update thread
hwmon: (adt7470) Fix temperature alarm logic in hwmon_temp_read()
hwmon: (adt7470) Fix swapped PWM3 and PWM4 auto mode masks
hwmon: (adt7470) Use cached PWM frequency value
hwmon: (adt7470) Fix divide-by-zero TOCTOU crash in fan speed read
hwmon: (adt7470) Fix PWM auto temp state array and bounds check
Luxiao Xu (1):
audit: fix potential use-after-free in audit_del_rule()
Maciej Fijalkowski (2):
xsk: provide sufficient space in pool->tx_descs
xsk: reclaim invalid Tx descriptors in ZC batch path
Maoyi Xie (1):
can: peak_usb: peak_usb_start(): fix double free of transfer buffer on URB submit error
Marc Kleine-Budde (1):
can: gs_usb: gs_usb_receive_bulk_callback(): resubmit URB on skb allocation failure
Mario Limonciello (1):
pinctrl-amd: Don't clear S4 wake bits at probe
Masami Hiramatsu (Google) (6):
fprobe: Fix module reference count leak on error in register_fprobe() tracing/mmiotrace: Reset dropped_count in mmio_reset_data() tracing/mmiotrace: Add NULL check for mmio_trace_array in logging functions
ring-buffer: Fix subbuf_ids memory leak in rb_allocate_cpu_buffer() error path
tracing: Check return value of __register_event() in trace_module_add_events() tracing/filters: Fix false positive match in regex_match_full()
Matt Fleming (1):
veth: convert frag_list skbs before running XDP
Matt Vollrath (2):
ata: libata-eh: Increase STANDBY IMMEDIATE timeout
igbvf: Fix leak in TX DMA error cleanup
Matthew Brost (2):
drm/xe: Set TTM device beneficial_order to 9 (2M) drm/xe: Wait on external BO kernel fences in exec IOCTL
Mauricio Faria de Oliveira (1):
x86/boot: Add volatile, clobbers and zero-length test in memcmp()
Maíra Canal (1):
drm/vc4: Zero the tile state data array before each BIN job
Md Sadre Alam (1):
dmaengine: qcom: bam_dma: Fix command element mask field for BAM v1.6.0+
Michael Bommarito (7):
thunderbolt: Prevent XDomain delayed work use-after-free on disconnect
keys: fix out-of-bounds read in keyring_get_key_chunk()
keys: make keyring key-chunk byte order agree with keyring_diff_objects()
assoc_array: trim the final shortcut word using the current chunk end
idpf: bound interrupt-vector register fill to the allocated array
erofs: cap LZMA stream pool size
um: vector: fix use-after-free in vector_mmsg_rx()
Michael Diesen (1):
ALSA: hda/realtek: Add quirk for HP Dragonfly Folio G3 2-in-1 (103c:8a05)
Michal Wajdeczko (4):
drm/xe: Drop unused param from xe_device_create() drm/xe: Move xe->info.force_execlist initialization drm/xe: Move xe->info.devid|revid initialization drm/xe: Separate early xe_device initialization
Ming Lei (1):
ublk: reset kernel-owned dev_info fields in ublk_ctrl_add_dev()
Minhong He (1):
can: isotp: check register_netdevice_notifier() error in module init
Muhammad Bilal (1):
accel/qaic: use sizeof(*trans_hdr) for transaction length check
Myeonghun Pak (2):
i2c: amd-mp2: Unregister callback on adapter add failure drm/mediatek: ovl_adaptor: balance component registrations
Mykola Lysenko (1):
btrfs: raid56: fix scrub read assembly submitting no reads
Namjae Jeon (7):
ntfs: preserve RECALL_ON_OPEN on WSL special-file reparse points
ntfs: harden runlist realloc size calculations
ntfs: drop stale page-cache when shrinking a non-resident attr
ksmbd: return success for deferred final close
ksmbd: fix use-after-free in __close_file_table_ids()
ksmbd: use memcmp() to compare ClientGUIDs
ksmbd: reject repeated SMB2 NEGOTIATE requests
Nathan Chancellor (1):
fortify: Disable -Wstringop-overread in tests
Nava kishore Manne (3):
phy: zynqmp: fix L0_TM_DISABLE_SCRAMBLE_ENCODER mask
phy: zynqmp: use read-modify-write for SERDES scrambler bypass
phy: zynqmp: keep SERDES scrambler and 8b/10b enabled for USB
Nazim Amirul (1):
net: stmmac: Fix E2E delay mechanism
Nicolas Schier (1):
kbuild: Stop modifying $(objtree)/Makefile when building oot-kmods oos
Nicolin Chen (3):
iommu/arm-smmu-v3-iommufd: Require exactly one Stream ID for a vDEVICE iommufd/viommu: Release the igroup lock on the vdevice_size error path iommufd/viommu: Publish a vDEVICE only after vdevice_init() succeeds
Niklas Cassel (1):
ata: libata-sata: fix ata_scsi_lpm_supported() iteration
Niklas Schnelle (1):
s390/pci: Fix s390_pci_mmio_write syscall error return without MIO
Norbert Szetei (3):
ALSA: pcm: wake linked drain waiters on unlink
ALSA: seq: Fix division by zero in initialize_timer()
ALSA: timer: Clear SNDRV_TIMER_IFLG_DEAD once the close completes
Oleksij Rempel (1):
can: j1939: transport: j1939_session_fresh_new(): initialize receive buffer
Oliver Hartkopp (1):
can: isotp: fix timer drain order, wakeup handling and tx_gen ordering
Osama Abdelkader (2):
drm/panthor: reject firmware sections with oversized data drm/panthor: validate firmware interface structure sizes
Pablo Neira Ayuso (3):
netfilter: nf_conntrack_expect: add and use nf_ct_expect_related_pair()
netfilter: nf_tables: make nft_object rhltable per table
netfilter: xt_hashlimit: validate hashtable supports XT_HASHLIMIT_RATE_MATCH
Paolo Bonzini (1):
KVM: VMX: add memory clobber to asm for VMX instructions
Pauli Virtanen (19):
Bluetooth: ISO: clear iso_data always when detaching conn from hcon
Bluetooth: ISO: fix CONNECTED -> CLOSED transition on shutdown/release
Bluetooth: ISO: lock sk in iso_sock_getname
Bluetooth: ISO: lock sk in iso_connect_ind
Bluetooth: ISO: fix timeout vs sync_timeout typo in check_bcast_qos
Bluetooth: ISO: validate sockaddr_iso first in iso_sock_rebind_bis()
Bluetooth: ISO: hold sk properly in iso_conn_ready
Bluetooth: ISO: fix leaking sk after socket release
Bluetooth: ISO: avoid deadlocks in iso_sock_timeout
Bluetooth: ISO: ensure no dangling hcon references in iso_conn
Bluetooth: ISO: fix refcounting of iso_conn
Bluetooth: ISO: fix race of kfree vs kref_get_unless_zero
Bluetooth: hci_conn: hold conn reference in abort_conn_sync()
Bluetooth: hci_sync: hold conn in hci_connect_acl/le_sync() callbacks
Bluetooth: hci_sync: hold conn in hci_connect_big_sync() callback
Bluetooth: hci_sync: hold conn in hci_connect_pa_sync() callback
Bluetooth: hci_sync: hold conn in hci_past_sync() callback
Bluetooth: hci_sync: fix hci_conn_del() use in hci_le_create_conn_sync
Bluetooth: hci_sync: remove unnecessary hci_conn_get in create_conn_sync
Peiyang He (3):
iommufd: Reject DMABUF pages from the access pin path
iommufd: Fix wrong hwpt passed to iommufd_auto_response_faults on replace iommu/iommufd: Fix IOPF group ownership UAF
Pengpeng Hou (5):
can: ems_usb: validate CPC message lengths
can: kvaser_usb_leaf: kvaser_usb_leaf_wait_cmd(): validate received command extents
can: softing: fw_parse(): validate firmware record spans
can: peak_usb: validate uCAN receive record lengths
can: ctucanfd: add missing MODULE_DEVICE_TABLE()
Pierre-Eric Pelloux-Prayer (1):
drm/amdgpu: move debug_vm handling to amdgpu_cs_parser_fini
Pratik Vishwakarma (1):
x86/CPU/AMD: Carve out a Zen5 models range
Przemyslaw Korba (1):
ice: suppress DPLL errors during reset recovery
Qi Zheng (1):
mm: mglru: fix stale batch updates after memcg reparenting
Qu Wenruo (3):
btrfs: fix leaking BTRFS_FS_STATE_REMOUNTING flag
btrfs: warn about extent buffer that can not be released
btrfs: raid56: fix an incorrect csum skip during scrub
Radhey Shyam Pandey (3):
ata: ahci_ceva: fix error paths in ceva_ahci_platform_enable_resources()
phy: zynqmp: fix clock error handling in xpsgtr_phy_init()
phy: zynqmp: fix runtime PM leak on probe allocation failure
Ratheesh Kannoth (1):
octeontx2: cn20k: Coordinate default rules with NIX LF lifecycle
Raushan Patel (2):
tracing/probes: Reject $arg0 in meta argument expansion tracing/fprobe: Roll back on enable_trace_fprobe() failure
Ray Wu (1):
drm/amd/display: Increase HDMI AV mute wait from 2 to 3 frames
Rosen Penev (1):
ata: sata_mv: accept 1 or 2 resources in platform probe
Ruoyu Wang (1):
drm/mediatek: Check CRTC state before freeing
Sang-Heon Jeon (1):
of: reserved_mem: prevent OOB when too many dynamic regions are defined
Sangho Lee (2):
Bluetooth: HIDP: reject frames without a transaction header
Bluetooth: HIDP: validate numbered report payloads
Sasha Finkelstein (1):
power: supply: macsmc: Support macOS 27 SMC firmware
Sean Christopherson (1):
KVM: SVM: Update x2APIC MSR intercepts if AVIC is inhibited while L2 is active
Sebastian Andrzej Siewior (1):
Drivers: hv: vmbus: Replace lockdep_hardirq_threaded() with lockdep annotation
Sergey Senozhatsky (1):
usb: typec: ucsi: split connector lock classes
Shawn Guo (1):
scsi: ufs: dt-bindings: Add missing mcq reg for qcom,sa8255p-ufshc
Shengjiu Wang (2):
ASoC: fsl_asrc: fix m2m_init error path to use goto instead of bare return
ASoC: fsl_easrc: fix m2m_init error path to use goto instead of bare return
Shuangpeng Bai (1):
ipv6: release fib6_null_entry on subtree failure
Sneh Mankad (1):
pinctrl: qcom: Unconditionally mark gpio as wakeup enable
Soeren Moch (1):
PCI: imx6: Keep i.MX6 Root Port MSI/MSI-X Capabilities with iMSI-RX to work around hardware bug
Sonali Pradhan (2):
ALSA: usb-audio: Fix DMA buffer out-of-bounds write when fill_max is set
ALSA: usb-audio: Clamp frame size in implicit-feedback mode
Srikanth Boyapally (1):
spi: spi-cadence: Move TX FIFO full busy-wait into FIFO
Stanislav Kinsburskii (8):
mshv: Fix duplicate GSI detection for GSI 0
mshv: Fix sleeping under spinlock in mshv_portid_alloc
mshv: Fix race in mshv_irqfd_deassign
mshv: Fix level-triggered check on uninitialized data
mshv: Fix missing error code on VP allocation failure
mshv: Order pt_vp_array publish against irqfd assertion path
mshv: Publish VP to pt_vp_array before installing the file descriptor
lib: test_hmm: use device devt for coherent device range selection
Stanislaw Pal (1):
spi: spi-qpic-snand: write the feature value before executing SET_FEATURE
Stefan Haberland (1):
s390/dasd: Fix undersized format-check buffer
Suman Ghosh (1):
octeontx2-pf: Set correct sequence for carrier off and tx queue stop
Surendra Singh Chouhan (1):
ASoC: sophgo: return 1 on volume change in cv1800b_adc_volume_set()
Takashi Iwai (1):
ALSA: 6fire: Fix UAF at error handling during probe
TanZheng (1):
scsi: target: iblock: Fix wrong PR ops NULL check for PREEMPT/RELEASE
Tetsuo Handa (1):
can: j1939: use netdevice_tracker for j1939_{priv,session,ecu} tracking
Thomas Hellström (1):
drm/exec: Remove the index parameter from drm_exec_for_each_locked_obj[_reverse]
Thomas Weißschuh (1):
riscv: vdso: Only try to install vDSO when present
Thorsten Blum (4):
powerpc/boot: Fix simpleboot CPU node lookup check powerpc/boot: Fix treeboot-currituck CPU node lookup check powerpc/boot: Fix treeboot-akebono CPU node lookup check powerpc/ps3: Fix map failure path in dma_ioc0_map_pages()
Tomas Glozar (1):
rtla/timerlat_top: Fix on-threshold actions firing on signal
Tu Nguyen (1):
can: rcar_canfd: change the initializing flow for clocks and resets
Uday Khare (2):
ASoC: max98095: fix missing IS_ERR() before PTR_ERR() on mclk lookup
ASoC: max98090: fix missing IS_ERR() before PTR_ERR() on mclk lookup
Usama Arif (1):
userfaultfd: wait on source PMD during UFFDIO_MOVE
Vijaya Krishna Nivarthi (1):
spi: qcom-qspi: Correct max DMA length to avoid 64K boundary failure
Vincent Donnefort (5):
KVM: arm64: Fix hyp_trace clock disabling
KVM: arm64: Fix potential leak in hyp_trace_buffer_alloc_bpages_backing
KVM: arm64: Fix hyp_trace_desc allocation size in hyp_trace_load()
KVM: arm64: Add missing hyp_enter when trapping sysreg
ring-buffer: Fix reader page read offset for remote buffers
Vincent Jardin (1):
hwmon: (pmbus/core) notify on the hwmon device, not the i2c client
Vladimir Marioukhine (1):
drm/amdkfd: fix QID bit leak in pqm_create_queue()
Wei Fang (1):
ptp: netc: fix potential interrupt storm caused by incorrect unbind order
Wei Liu (1):
mshv: fix hv_input_get_system_property struct
Weiming Shi (1):
KVM: x86: Cancel delayed I/O APIC EOI handling before destroying vCPUs
Wenmeng Liu (1):
i2c: qcom-cci: drop custom suspend/resume and rely on runtime PM helpers
William Palacek (2):
drm/amdkfd: fix uint32_t overflow in EOP ring buffer size alignment drm/amdkfd: hold event_mutex while checkpointing CRIU events
Xiang Mei (2):
netfilter: nf_conntrack_sip: widen NAT rewrite delta to s32 in sip_help_tcp()
rds: tcp: hold the RCU lock across ipv6_chk_addr() in rds_tcp_laddr_check()
Xiang Mei (Microsoft) (3):
netfilter: nft_payload: fix mask build for partial field offload
nexthop: take nh->lock for f6i_list walks in replace check and notify
nexthop: avoid unlocked f6i_list walk in nh_rt_cache_flush
Xiangfeng Cai (1):
mm/hugetlb: fix list corruption in allocate_file_region_entries()
Xingui Yang (1):
scsi: libsas: Fix HA resume deadlock and hisi_sas disk-wake race
Xu Rao (2):
ALSA: lx6464es: fix period byte count for 16-bit streams
power: supply: bq25890: fix the -10 C NTC lookup entry
Xuanqiang Luo (3):
bpf: lwt: Fix dst reference leak on reroute failure
fou: Fix use-after-free in fou_create()
net/smc: fix socket use-after-free during link group termination
Yang Wang (4):
drm/amd/pm: fix torn gpu metrics reads drm/amd/pm: fix pptable use-after-free drm/amd/pm: hide pp_table sysfs on APUs drm/amd/pm: use milliwatts for GPU power sensors
Yehyeong Lee (1):
net: mpls: initialize rtm_tos in mpls_getroute()
Yi Xie (1):
mshv_vtl: fix fd leak in mshv_ioctl_create_vtl()
Yichong Chen (3):
netfs: clear PG_private_2 on copy-to-cache append failure
netfs: handle single writeback rolling buffer allocation failure
netfs: release readahead folios on iterator preparation failure
Yuho Choi (3):
dmaengine: idxd: fix double free of wq, engine, and group structs
dmaengine: idxd: fix fdev setup failure cleanup in idxd_cdev_open()
idpf: Fix mailbox IRQ name leak on request failure
Yun Lu (1):
rtase: fix double free of multi-frag skb on DMA map failure
Yuxiang Yang (1):
sctp: reject stale cookies with mismatched verification tags
Zack Rusin (11):
drm/vmwgfx: fix guest_memory_dirty bitfield clobbered as size drm/vmwgfx: reject DX_BIND_QUERY without a DX context drm/vmwgfx: clamp dirty-page range with min, not max drm/vmwgfx: take fman->lock around fence list mutation in fifo_down drm/vmwgfx: drop dma_buf reference on foreign-fd prime import drm/vmwgfx: validate DRAW_PRIMITIVES header size before division drm/vmwgfx: bound DMA command body size against suffix pointer drm/vmwgfx: avoid destroy_workqueue(NULL) on vkms init failure drm/vmwgfx: enforce cursor size limits for MOB cursors drm/vmwgfx: use check_add_overflow for shader size+offset bound drm/vmwgfx: validate external BO copy bounds for both stride paths
Zhan Xusheng (1):
audit: fix potential integer overflow in audit_log_n_string()
Zhao Li (3):
wifi: mac80211: validate individual TWT params before driver setup
wifi: mac80211: fix tid_tx use-after-free on BA session stop
wifi: mwifiex: use the subframe length when parsing A-MSDU TDLS frames
Zhiling Zou (3):
ipvs: do not propagate one-packet flag to synced conns
net: bridge: stop fast-leave after deleting a port group
net: ipv6: clear suppressed fib6 rule result
Zhongqiu Han (1):
cpufreq: schedutil: Publish util hooks only after all sg_cpu are initialized
Zi Yan (1):
mm/percpu-km: fix bitmap overflow and accounting in pcpu_create_chunk()
Zihan Xi (3):
Bluetooth: mgmt: fix pending command UAF in EIR updates
Bluetooth: mgmt: fix UAF in pair command cancellation
tipc: avoid use-after-free in poll trace queue dumps
Zijun Hu (1):
Bluetooth: btintel: Validate length before parsing diagnostics TLV
bui duc phuc (1):
gpio: pca953x: fix cache_only and IRQ state on restore_context() failure
wangdicheng (1):
ASoC: tas2781: Use correct calibration data for SINEGAIN2 register
Greg Kroah-Hartman
maintainerDocumentation/arch/arm64/silicon-errata.rst +4 -0
@@ -55,10 +55,14 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | Ampere | AmpereOne | AC03_CPU_38 | AMPERE_ERRATUM_AC03_CPU_38 | +----------------+-----------------+-----------------+-----------------------------+ +| Ampere | AmpereOne | AC03_CPU_57 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ | Ampere | AmpereOne AC04 | AC04_CPU_10 | AMPERE_ERRATUM_AC03_CPU_38 | +----------------+-----------------+-----------------+-----------------------------+ | Ampere | AmpereOne AC04 | AC04_CPU_23 | AMPERE_ERRATUM_AC04_CPU_23 | +----------------+-----------------+-----------------+-----------------------------+ +| Ampere | AmpereOne AC04 | AC04_CPU_29 | N/A | ++----------------+-----------------+-----------------+-----------------------------+ +----------------+-----------------+-----------------+-----------------------------+ | ARM | Cortex-A510 | #2457168 | ARM64_ERRATUM_2457168 | +----------------+-----------------+-----------------+-----------------------------+
Documentation/devicetree/bindings/ufs/qcom,sa8255p-ufshc.yaml +8 -1
@@ -14,7 +14,14 @@ properties: const: qcom,sa8255p-ufshc reg: - maxItems: 1 + minItems: 1 + maxItems: 2 + + reg-names: + minItems: 1 + items: + - const: std + - const: mcq interrupts: maxItems: 1
Documentation/filesystems/erofs.rst +3 -6
@@ -127,12 +127,9 @@ dax A legacy option which is an alias for ``dax=always``. device=%s Specify a path to an extra device to be used together. directio (For file-backed mounts) Use direct I/O to access backing files, and asynchronous I/O will be enabled if supported. -fsid=%s Specify a filesystem image ID for Fscache back-end. -domain_id=%s Specify a trusted domain ID for fscache mode so that - different images with the same blobs, identified by blob IDs, - can share storage within the same trusted domain. - Also used for different filesystems with inode page sharing - enabled to share page cache within the trusted domain. +domain_id=%s Specify a trusted domain ID. Filesystems sharing the same + domain ID can share page cache across mounts when inode + page sharing is enabled. (not shown in mountinfo output) fsoffset=%llu Specify block-aligned filesystem offset for the primary device. inode_share Enable inode page sharing for this filesystem. Inodes with identical content within the same domain ID can share the
Documentation/networking/af_xdp.rst +30 -24
77 lines not on this page · raw message
Documentation/virt/kvm/api.rst +6 -0
@@ -8401,6 +8401,12 @@ When this capability is enabled all memory in memslots must be mapped as attempts to create a memslot with an invalid mmap will result in an -EINVAL return. +``guest_memfd``, even though it is an anonymous file, is not supported with MTE. +Attempting to create a memslot backed by ``guest_memfd`` when the MTE capability +is enabled, or attempting to enable the MTE capability after +``guest_memfd``-backed memslots have been created, will result in an -EINVAL +return. + When enabled the VMM may make use of the ``KVM_ARM_MTE_COPY_TAGS`` ioctl to perform a bulk copy of tags to/from the guest.
Makefile +4 -6
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 7 PATCHLEVEL = 1 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Baby Opossum Posse
@@ -695,13 +695,11 @@ filechk_makefile = { \ echo "include $(abs_srctree)/Makefile"; \ } -$(objtree)/Makefile: FORCE +PHONY += $(CURDIR)/Makefile +$(CURDIR)/Makefile: FORCE $(call filechk,makefile) -# Prevent $(srcroot)/Makefile from inhibiting the rule to run. -PHONY += $(objtree)/Makefile - -outputmakefile: $(objtree)/Makefile +outputmakefile: $(CURDIR)/Makefile ifeq ($(KBUILD_EXTMOD),) @if [ -f $(srctree)/.config -o \ -d $(srctree)/include/config -o \
arch/arm64/include/asm/kvm_hypevents.h +1 -0
@@ -12,6 +12,7 @@enum hyp_enter_exit_reason {HYP_REASON_SMC ,HYP_REASON_HVC , +HYP_REASON_SYS ,HYP_REASON_PSCI ,HYP_REASON_HOST_ABORT ,HYP_REASON_GUEST_EXIT ,
arch/arm64/kvm/arm.c +19 -6
@@ -148,14 +148,27 @@ int kvm_vm_ioctl_enable_cap(struct kvm *kvm,set_bit (KVM_ARCH_FLAG_RETURN_NISV_IO_ABORT_TO_USER , &kvm->arch.flags);break ; -case KVM_CAP_ARM_MTE : -mutex_lock (&kvm->lock); -if (system_supports_mte () && !kvm->created_vcpus) { - r =0 ; -set_bit (KVM_ARCH_FLAG_MTE_ENABLED , &kvm->arch.flags); +case KVM_CAP_ARM_MTE : { +struct kvm_memory_slot *memslot; +int bkt; + +guard (mutex)(&kvm->lock); +if (!system_supports_mte () || kvm->created_vcpus) +break ; + + r =0 ; +guard (mutex)(&kvm->slots_lock); +kvm_for_each_memslot (memslot, bkt,kvm_memslots (kvm)) { +if (kvm_slot_has_gmem (memslot)) { + r = -EINVAL ; +break ; + } } -mutex_unlock (&kvm->lock); +if (r ==0 ) +set_bit (KVM_ARCH_FLAG_MTE_ENABLED , &kvm->arch.flags);break ; + + }case KVM_CAP_ARM_SYSTEM_SUSPEND : r =0 ;set_bit (KVM_ARCH_FLAG_SYSTEM_SUSPEND_ENABLED , &kvm->arch.flags);
arch/arm64/kvm/hyp/nvhe/hyp-main.c +1 -0
@@ -925,6 +925,7 @@ void handle_trap(struct kvm_cpu_context *host_ctxt)handle_host_mem_abort (host_ctxt);break ;case ESR_ELx_EC_SYS64: +trace_hyp_enter (host_ctxt,HYP_REASON_SYS );if (handle_host_mte (esr))break ; fallthrough;
arch/arm64/kvm/hyp_trace.c +24 -12
@@ -37,8 +37,6 @@ static struct hyp_trace_clock {u32 shift;struct delayed_work work;struct completion ready; -struct mutex lock; -bool running; } hyp_clock;static void __hyp_clock_work (struct work_struct *work)
@@ -110,12 +108,9 @@ static void hyp_trace_clock_enable(struct hyp_trace_clock *hyp_clock, bool enabl {struct system_time_snapshot snap; -if (hyp_clock->running == enable) -return ; -if (!enable) {cancel_delayed_work_sync (&hyp_clock->work); - hyp_clock->running = false; +return ; }ktime_get_snapshot (&snap);
@@ -128,7 +123,6 @@ static void hyp_trace_clock_enable(struct hyp_trace_clock *hyp_clock, bool enablINIT_DELAYED_WORK (&hyp_clock->work, __hyp_clock_work);schedule_delayed_work (&hyp_clock->work,msecs_to_jiffies (CLOCK_INIT_MS ));wait_for_completion (&hyp_clock->ready); - hyp_clock->running = true; }/* Access to this struct within the trace_remote_callbacks are protected by the trace_remote lock */
@@ -160,6 +154,7 @@ static int hyp_trace_buffer_alloc_bpages_backing(struct hyp_trace_buffer *trace_int nr_bpages = (PAGE_ALIGN (size) /PAGE_SIZE ) +1 ;size_t backing_size;void *start; +int ret; backing_size =PAGE_ALIGN (sizeof (struct simple_buffer_page ) * nr_bpages *num_possible_cpus ());
@@ -168,10 +163,16 @@ static int hyp_trace_buffer_alloc_bpages_backing(struct hyp_trace_buffer *trace_if (!start)return -ENOMEM ; + ret =__map_hyp (start, backing_size); +if (ret) { +free_pages_exact (start, backing_size); +return ret; + } + trace_buffer->desc->bpages_backing_start = (unsigned long )start; trace_buffer->desc->bpages_backing_size = backing_size; -return __map_hyp (start, backing_size); +return ret; }static void hyp_trace_buffer_free_bpages_backing (struct hyp_trace_buffer *trace_buffer)
@@ -228,18 +229,22 @@ static int hyp_trace_buffer_share_hyp(struct hyp_trace_buffer *trace_buffer)static struct trace_buffer_desc *hyp_trace_load (unsigned long size,void *priv) {struct hyp_trace_buffer *trace_buffer = priv; +size_t desc_size, tb_desc_size;struct hyp_trace_desc *desc; -size_t desc_size;int ret;if (WARN_ON (trace_buffer->desc))return ERR_PTR (-EINVAL ); - desc_size =trace_buffer_desc_size (size,num_possible_cpus ()); + tb_desc_size =trace_buffer_desc_size (size,num_possible_cpus ()); + desc_size =size_add (tb_desc_size, offsetof(struct hyp_trace_desc , trace_buffer_desc));if (desc_size ==SIZE_MAX )return ERR_PTR (-E2BIG ); desc_size =PAGE_ALIGN (desc_size); +if (!desc_size) +return ERR_PTR (-E2BIG ); + desc = (struct hyp_trace_desc *)alloc_pages_exact (desc_size,GFP_KERNEL );if (!desc)return ERR_PTR (-ENOMEM );
@@ -255,7 +260,7 @@ static struct trace_buffer_desc *hyp_trace_load(unsigned long size, void *priv)if (ret) goto err_free_desc; - ret =trace_remote_alloc_buffer (&desc->trace_buffer_desc, desc_size, size, + ret =trace_remote_alloc_buffer (&desc->trace_buffer_desc, tb_desc_size, size, cpu_possible_mask);if (ret) goto err_free_backing;
@@ -304,9 +309,15 @@ static void hyp_trace_unload(struct trace_buffer_desc *desc, void *priv)static int hyp_trace_enable_tracing (bool enable,void *priv) { +int ret; +hyp_trace_clock_enable (&hyp_clock, enable); -return kvm_call_hyp_nvhe (__tracing_enable, enable); + ret =kvm_call_hyp_nvhe (__tracing_enable, enable); +if (ret) +hyp_trace_clock_enable (&hyp_clock, !enable); + +return ret; }static int hyp_trace_swap_reader_page (unsigned int cpu,void *priv)
@@ -398,6 +409,7 @@ static const char *__hyp_enter_exit_reason_str(u8 reason)static const char strs[][12 ] = {"smc" ,"hvc" , +"sys" ,"psci" ,"host_abort" ,"guest_exit" ,
arch/arm64/kvm/mmu.c +4 -0
@@ -2625,6 +2625,10 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,if (kvm_slot_has_gmem (new) && !kvm_memslot_is_gmem_only (new))return -EINVAL ; +/* guest_memfd is incompatible with MTE. */ +if (kvm_slot_has_gmem (new) &&kvm_has_mte (kvm)) +return -EINVAL ; + hva = new->userspace_addr; reg_end = hva + (new->npages <<PAGE_SHIFT );
arch/arm64/kvm/vgic/vgic-its.c +17 -8
@@ -116,18 +116,27 @@ static struct vgic_irq *vgic_add_lpi(struct kvm *kvm, u32 intid,kfree (irq); irq = oldirq; }else { - ret =xa_err (__xa_store (&dist->lpi_xa, intid, irq,0 )); +/* +* The entry is either empty or contains a dead LPI (refcount=0) +* from the deferred release path, pending cleanup by +* vgic_release_deleted_lpis(). Evict and free it if present. +*/ + oldirq =__xa_store (&dist->lpi_xa, intid, irq, +GFP_NOWAIT | __GFP_ACCOUNT); + ret =xa_err (oldirq); +if (ret) { +xa_unlock_irqrestore (&dist->lpi_xa, flags); +kfree (irq); + +return ERR_PTR (ret); + } + +if (oldirq && !WARN_ON_ONCE (refcount_read (&oldirq->refcount))) +kfree_rcu (oldirq, rcu); }xa_unlock_irqrestore (&dist->lpi_xa, flags); -if (ret) { -xa_release (&dist->lpi_xa, intid); -kfree (irq); - -return ERR_PTR (ret); - } -/* * We "cache" the configuration table entries in our struct vgic_irq's. * However we only have those structs for mapped IRQs, so we read in
arch/arm64/kvm/vgic/vgic-v3.c +7 -1
@@ -275,7 +275,13 @@ void vgic_v3_deactivate(struct kvm_vcpu *vcpu, u64 val) lr =vgic_v3_compute_lr (vcpu, irq) & ~ICH_LR_ACTIVE_BIT ; } -if (lr &ICH_LR_HW ) +/* +* In the nested state, the irq has already been deactivated via the HW +* bit in the LR. Deactivating again would be harmless except AmpereOne +* errata AC03_CPU_57, AC04_CPU_29 could cause irq delivery to break if +* the deactivation hits the highest priority pending irq. +*/ +if ((lr &ICH_LR_HW ) && !vgic_state_is_nested (vcpu))vgic_v3_deactivate_phys (FIELD_GET (ICH_LR_PHYS_ID_MASK , lr));vgic_v3_fold_lr (vcpu, lr);
arch/arm64/kvm/vgic/vgic.c +8 -10
@@ -147,11 +147,7 @@ static __must_check bool __vgic_put_irq(struct kvm *kvm, struct vgic_irq *irq)static __must_check bool vgic_put_irq_norelease (struct kvm *kvm,struct vgic_irq *irq) { -if (!__vgic_put_irq (kvm, irq)) -return false; - - irq->pending_release = true; -return true; +return __vgic_put_irq (kvm, irq); }void vgic_put_irq (struct kvm *kvm,struct vgic_irq *irq)
@@ -168,12 +164,14 @@ void vgic_put_irq(struct kvm *kvm, struct vgic_irq *irq)guard (spinlock_irqsave)(&dist->lpi_xa.xa_lock); } -if (!__vgic_put_irq (kvm, irq)) +if (!irq_is_lpi (kvm, irq->intid))return ; -xa_lock_irqsave (&dist->lpi_xa, flags); -vgic_release_lpi_locked (dist, irq); -xa_unlock_irqrestore (&dist->lpi_xa, flags); +if (refcount_dec_and_lock_irqsave (&irq->refcount, + &dist->lpi_xa.xa_lock, &flags)) { +vgic_release_lpi_locked (dist, irq); +xa_unlock_irqrestore (&dist->lpi_xa, flags); + } }static void vgic_release_deleted_lpis (struct kvm *kvm)
@@ -185,7 +183,7 @@ static void vgic_release_deleted_lpis(struct kvm *kvm)xa_lock_irqsave (&dist->lpi_xa, flags);xa_for_each (&dist->lpi_xa, intid, irq) { -if (irq->pending_release) +if (!refcount_read (&irq->refcount))vgic_release_lpi_locked (dist, irq); }
arch/powerpc/boot/simpleboot.c +1 -1
@@ -68,7 +68,7 @@ void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,/* finally, setup the timebase */ node =fdt_node_offset_by_prop_value (_dtb_start,-1 ,"device_type" ,"cpu" ,sizeof ("cpu" )); -if (!node) +if (node <0 )fatal ("Cannot find cpu node\n" ); timebase =fdt_getprop (_dtb_start, node,"timebase-frequency" , &size);if (timebase && (size ==4 ))
arch/powerpc/boot/treeboot-akebono.c +1 -1
@@ -146,7 +146,7 @@ void platform_init(char *userdata) node =fdt_node_offset_by_prop_value (_dtb_start,-1 ,"device_type" ,"cpu" ,sizeof ("cpu" )); -if (!node) +if (node <0 )fatal ("Cannot find cpu node\n" ); timebase =fdt_getprop (_dtb_start, node,"timebase-frequency" , &size);if (timebase && (size ==4 ))
arch/powerpc/boot/treeboot-currituck.c +1 -1
@@ -102,7 +102,7 @@ void platform_init(void) node =fdt_node_offset_by_prop_value (_dtb_start,-1 ,"device_type" ,"cpu" ,sizeof ("cpu" )); -if (!node) +if (node <0 )fatal ("Cannot find cpu node\n" ); timebase =fdt_getprop (_dtb_start, node,"timebase-frequency" , &size);if (timebase && (size ==4 ))
arch/powerpc/platforms/ps3/mm.c +1 -0
@@ -615,6 +615,7 @@ static int dma_ioc0_map_pages(struct ps3_dma_region *r, unsigned long phys_addr, fail_map:for (iopage--;0 <= iopage; iopage--) { + offset = (1 << r->page_size) * iopage; lv1_put_iopte(0, c->bus_addr + offset, c->lpar_addr + offset,
arch/riscv/Makefile +1 -1
@@ -168,7 +168,7 @@ vdso_prepare: prepare0 endif endif -vdso-install-y += arch/riscv/kernel/vdso/vdso.so.dbg +vdso-install-$(CONFIG_MMU) += arch/riscv/kernel/vdso/vdso.so.dbg vdso-install-$(CONFIG_RISCV_USER_CFI) += arch/riscv/kernel/vdso_cfi/vdso-cfi.so.dbg vdso-install-$(CONFIG_COMPAT) += arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg
arch/riscv/kernel/unaligned_access_speed.c +2 -2
@@ -314,7 +314,7 @@ static void check_vector_unaligned_access(struct work_struct *work __always_unus }/* Measure unaligned access speed on all CPUs present at boot in parallel. */ -static int __init vec_check_unaligned_access_speed_all_cpus (void *unused__always_unused ) +static int vec_check_unaligned_access_speed_all_cpus (void *unused__always_unused ) {schedule_on_each_cpu (check_vector_unaligned_access);riscv_hwprobe_complete_async_probe ();
@@ -322,7 +322,7 @@ static int __init vec_check_unaligned_access_speed_all_cpus(void *unused __alway return 0; }#else /* CONFIG_RISCV_PROBE_VECTOR_UNALIGNED_ACCESS */ -static int __init vec_check_unaligned_access_speed_all_cpus (void *unused__always_unused ) +static int vec_check_unaligned_access_speed_all_cpus (void *unused__always_unused ) {return 0 ; }
arch/riscv/mm/init.c +4 -3
@@ -61,7 +61,8 @@ EXPORT_SYMBOL(phys_ram_base);#ifdef CONFIG_SPARSEMEM_VMEMMAP #define VMEMMAP_ADDR_ALIGN max(1ULL << SECTION_SIZE_BITS, \ - MAX_FOLIO_VMEMMAP_ALIGN) + PFN_PHYS(MAX_FOLIO_VMEMMAP_ALIGN / \ + sizeof(struct page)))unsigned long vmemmap_start_pfn__ro_after_init ;EXPORT_SYMBOL (vmemmap_start_pfn);
@@ -1629,7 +1630,7 @@ static void __meminit remove_pud_mapping(pud_t *pud_base, unsigned long addr, unfor (; addr < end; addr = next) { next =pud_addr_end (addr, end); - pudp = pud_base +pud_index (addr); + pudp = pgtable_l4_enabled ? pud_base +pud_index (addr) : pud_base; pud =pudp_get (pudp);if (!pud_present (pud))continue ;
@@ -1660,7 +1661,7 @@ static void __meminit remove_p4d_mapping(p4d_t *p4d_base, unsigned long addr, unfor (; addr < end; addr = next) { next =p4d_addr_end (addr, end); - p4dp = p4d_base +p4d_index (addr); + p4dp = pgtable_l5_enabled ? p4d_base +p4d_index (addr) : p4d_base; p4d =p4dp_get (p4dp);if (!p4d_present (p4d))continue ;
arch/s390/kvm/pci.c +86 -21
192 lines not on this page · raw message
arch/s390/kvm/pci.h +2 -0
@@ -22,6 +22,8 @@ struct kvm_zdev {struct kvm *kvm;struct zpci_fib fib;struct list_head entry; +struct user_struct *user_account; +struct mm_struct *mm_account; };struct zpci_gaite {
arch/s390/pci/pci_mmio.c +1 -0
@@ -188,6 +188,7 @@ SYSCALL_DEFINE3(s390_pci_mmio_write, unsigned long, mmio_addr, goto out_unlock_mmap; } + ret = -EFAULT ; io_addr = (void __iomem *)((args.pfn <<PAGE_SHIFT ) | (mmio_addr & ~PAGE_MASK ));
arch/um/drivers/vector_kern.c +3 -0
@@ -995,6 +995,9 @@ static int vector_mmsg_rx(struct vector_private *vp, int budget)*/ dev_kfree_skb_irq (skb); vp->estats.rx_encaps_errors++; + (*skbuff_vector) =NULL ; + mmsg_vector++; + skbuff_vector++;continue ; }if (header_check >0 ) {
arch/x86/boot/string.c +9 -2
@@ -32,8 +32,15 @@int memcmp (const void *s1,const void *s2,size_t len) {bool diff; - asm("repe cmpsb" - :"=@ccnz" (diff),"+D" (s1),"+S" (s2),"+c" (len)); + +/* +* Make sure ZF is properly set in the len==0 case because in it, +* RCX==0 and the REPE; CMPSB won't get executed. +*/ + asmvolatile ("test %3, %3\n\t" +"repe cmpsb" + :"=@ccnz" (diff),"+D" (s1),"+S" (s2),"+c" (len) + : :"cc" ,"memory" );return diff; }
arch/x86/kernel/cpu/amd.c +3 -1
@@ -514,11 +514,13 @@ static void bsp_init_amd(struct cpuinfo_x86 *c) case 0x00 ... 0x2f: case 0x40 ... 0x4f: case 0x60 ... 0x7f: + case 0xd0 ... 0xd7:setup_force_cpu_cap (X86_FEATURE_ZEN5 );break ; case 0x50 ... 0x5f: case 0x80 ... 0xaf: - case 0xc0 ... 0xef: + case 0xc0 ... 0xcf: + case 0xd8 ... 0xef:setup_force_cpu_cap (X86_FEATURE_ZEN6 );break ;default :
arch/x86/kvm/svm/avic.c +0 -8
@@ -240,14 +240,6 @@ static void avic_deactivate_vmcb(struct vcpu_svm *svm)if (!is_sev_es_guest (&svm->vcpu))svm_set_intercept (svm,INTERCEPT_CR8_WRITE ); -/* -* If running nested and the guest uses its own MSR bitmap, there -* is no need to update L0's msr bitmap -*/ -if (is_guest_mode (&svm->vcpu) && -vmcb12_is_intercept (&svm->nested.ctl,INTERCEPT_MSR_PROT )) -return ; -/* Enabling MSR intercept for x2APIC registers */ avic_set_x2apic_msr_interception (svm, true); }
arch/x86/kvm/vmx/vmx_ops.h +4 -4
@@ -101,7 +101,7 @@ static __always_inline unsigned long __vmcs_readl(unsigned long field) : [output] "=r" (value) : [field] "r" (field) - : "cc" + : "cc", "memory" : do_fail, do_exception);return value;
@@ -145,7 +145,7 @@ static __always_inline unsigned long __vmcs_readl(unsigned long field) : ASM_CALL_CONSTRAINT, [output] "=&r" (value) : [field] "r" (field) - : "cc"); + : "cc", "memory");return value;#endif /* CONFIG_CC_HAS_ASM_GOTO_OUTPUT */
@@ -192,7 +192,7 @@ do { \ asm goto("1: " __stringify(insn) " %0\n\t" \ "jna %l[error]\n\t" \ _ASM_EXTABLE(1b, %l[fault]) \ - : : op1 : "cc" : error, fault); \ + : : op1 : "cc", "memory" : error, fault); \return ; \ error: \instrumentation_begin (); \
@@ -208,7 +208,7 @@ do { \ asm goto("1: " __stringify(insn) " %1, %0\n\t" \ "jna %l[error]\n\t" \ _ASM_EXTABLE(1b, %l[fault]) \ - : : op1, op2 : "cc" : error, fault); \ + : : op1, op2 : "cc", "memory" : error, fault);\return; \ error: \ instrumentation_begin(); \
arch/x86/kvm/x86.c +6 -0
@@ -13460,9 +13460,15 @@ void kvm_arch_pre_destroy_vm(struct kvm *kvm)* iterating over vCPUs in a different task while vCPUs are being freed * is unsafe, i.e. will lead to use-after-free. The PIT also needs to * be stopped before IRQ routing is freed. +* +* Do NOT free the in-kernel PIC or I/O APIC here (but as above, make +* sure to flush any background work), as KVM expects interrupt routing +* structures to be valid until vCPUs are destroyed. */ #ifdef CONFIG_KVM_IOAPIC kvm_free_pit (kvm); +if (kvm->arch.vioapic) +cancel_delayed_work_sync (&kvm->arch.vioapic->eoi_inject);#endif kvm_mmu_pre_destroy_vm (kvm);
drivers/accel/qaic/qaic_control.c +1 -1
@@ -786,7 +786,7 @@ static int encode_message(struct qaic_device *qdev, struct manage_msg *user_msg,break ; } trans_hdr = (struct qaic_manage_trans_hdr *)(user_msg->data + user_len); -if (trans_hdr->len <sizeof (trans_hdr) || +if (trans_hdr->len <sizeof (*trans_hdr) ||size_add (user_len, trans_hdr->len) > user_msg->len) { ret = -EINVAL ;break ;
drivers/acpi/cppc_acpi.c +21 -8
@@ -475,17 +475,29 @@ bool acpi_cpc_valid(void) }EXPORT_SYMBOL_GPL (acpi_cpc_valid); -bool cppc_allow_fast_switch (void ) +bool cppc_allow_fast_switch (const struct cpumask *cpus) { -struct cpc_register_resource *desired_reg; +struct cpc_register_resource *desired_reg, *min_reg, *max_reg;struct cpc_desc *cpc_ptr;int cpu; -for_each_online_cpu (cpu) { +for_each_cpu (cpu, cpus) { cpc_ptr =per_cpu (cpc_desc_ptr, cpu); +if (!cpc_ptr) +return false; desired_reg = &cpc_ptr->cpc_regs[DESIRED_PERF ]; -if (!CPC_IN_SYSTEM_MEMORY (desired_reg) && - !CPC_IN_SYSTEM_IO (desired_reg)) + min_reg = &cpc_ptr->cpc_regs[MIN_PERF ]; + max_reg = &cpc_ptr->cpc_regs[MAX_PERF ]; + +if (!CPC_SUPPORTED (desired_reg) || + (!CPC_IN_SYSTEM_MEMORY (desired_reg) && + !CPC_IN_SYSTEM_IO (desired_reg)) || + (CPC_SUPPORTED (min_reg) && + !CPC_IN_SYSTEM_MEMORY (min_reg) && + !CPC_IN_SYSTEM_IO (min_reg)) || + (CPC_SUPPORTED (max_reg) && + !CPC_IN_SYSTEM_MEMORY (max_reg) && + !CPC_IN_SYSTEM_IO (max_reg)))return false; }
@@ -1940,16 +1952,17 @@ int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls) cpc_desc->write_cmd_status =0 ; } -cpc_write (cpu, desired_reg, perf_ctrls->desired_perf); +if (CPC_SUPPORTED (desired_reg)) +cpc_write (cpu, desired_reg, perf_ctrls->desired_perf);/* * Only write if min_perf and max_perf not zero. Some drivers pass zero * value to min and max perf, but they don't mean to set the zero value, * they just don't want to write to those registers. */ -if (perf_ctrls->min_perf) +if (perf_ctrls->min_perf &&CPC_SUPPORTED (min_perf_reg))cpc_write (cpu, min_perf_reg, perf_ctrls->min_perf); -if (perf_ctrls->max_perf) +if (perf_ctrls->max_perf &&CPC_SUPPORTED (max_perf_reg))cpc_write (cpu, max_perf_reg, perf_ctrls->max_perf);if (CPC_IN_PCC (desired_reg) ||CPC_IN_PCC (min_perf_reg) ||CPC_IN_PCC (max_perf_reg))
drivers/ata/ahci_ceva.c +14 -4
@@ -211,7 +211,7 @@ static int ceva_ahci_platform_enable_resources(struct ahci_host_priv *hpriv) rc =phy_init (hpriv->phys[i]);if (rc) - goto disable_rsts; + goto exit_phys; }/* De-assert the controller reset */
@@ -230,14 +230,24 @@ static int ceva_ahci_platform_enable_resources(struct ahci_host_priv *hpriv)return 0 ; -disable_rsts: -ahci_platform_deassert_rsts (hpriv); - disable_phys:while (--i >=0 ) { +if (ahci_ignore_port (hpriv, i)) +continue ; +phy_power_off (hpriv->phys[i]);phy_exit (hpriv->phys[i]); } +ahci_platform_assert_rsts (hpriv); + goto disable_clks; + +exit_phys: +while (--i >=0 ) { +if (ahci_ignore_port (hpriv, i)) +continue ; + +phy_exit (hpriv->phys[i]); + } disable_clks:ahci_platform_disable_clks (hpriv);
drivers/ata/libata-eh.c +14 -23
@@ -106,6 +106,12 @@ static const unsigned int ata_eh_flush_timeouts[] = { UINT_MAX, }; +static const unsigned int ata_eh_standby_timeouts[] = { +15000 ,/* Some drives may be slow to standby */ +/* but don't hold up a suspend too long waiting for them */ +UINT_MAX , +}; +static const unsigned int ata_eh_other_timeouts[] = {5000 ,/* same rationale as identify timeout */ 10000 ,/* ditto */
@@ -147,6 +153,8 @@ ata_eh_cmd_timeout_table[ATA_EH_CMD_TIMEOUT_TABLE_SIZE] = { .timeouts = ata_eh_other_timeouts, }, { .commands = CMDS(ATA_CMD_FLUSH, ATA_CMD_FLUSH_EXT), .timeouts = ata_eh_flush_timeouts }, + { .commands = CMDS(ATA_CMD_STANDBYNOW1), + .timeouts = ata_eh_standby_timeouts }, { .commands = CMDS(ATA_CMD_VERIFY), .timeouts = ata_eh_reset_timeouts }, };
@@ -648,29 +656,12 @@ int ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap,set_host_byte (scmd,DID_OK );ata_qc_for_each_raw (ap, qc, i) { -if (qc->scsicmd != scmd) -continue ; -if ((qc->flags &ATA_QCFLAG_ACTIVE ) || - qc == qc->dev->link->deferred_qc) +if (qc->scsicmd == scmd && + qc->flags &ATA_QCFLAG_ACTIVE )break ; } -if (i <ATA_MAX_QUEUE && qc == qc->dev->link->deferred_qc) { -/* -* This is a deferred command that timed out while -* waiting for the command queue to drain. Since the qc -* is not active yet (deferred_qc is still set, so the -* deferred qc work has not issued the command yet), -* simply signal the timeout by finishing the SCSI -* command and clear the deferred qc to prevent the -* deferred qc work from issuing this qc. -*/ -WARN_ON_ONCE (qc->flags &ATA_QCFLAG_ACTIVE ); - qc->dev->link->deferred_qc =NULL ; -cancel_work (&qc->dev->link->deferred_qc_work); -set_host_byte (scmd,DID_TIME_OUT ); -scsi_eh_finish_cmd (scmd, &ap->eh_done_q); - }else if (i <ATA_MAX_QUEUE ) { +if (i <ATA_MAX_QUEUE ) {/* the scmd has an associated qc */ if (!(qc->flags &ATA_QCFLAG_EH )) {/* which hasn't failed yet, timeout */
@@ -946,10 +937,10 @@ static void ata_eh_set_pending(struct ata_port *ap, bool fastdrain) ap->pflags |=ATA_PFLAG_EH_PENDING ;/* -* If we have a deferred qc, requeue it so that it is retried once EH -* completes. +* If we have deferred QCs, requeue them so that the SCSI EH task can +* run. */ -ata_scsi_requeue_deferred_qc (ap); +ata_scsi_requeue_deferred_qc (ap,NULL );if (!fastdrain)return ;
drivers/ata/libata-sata.c +1 -1
@@ -913,7 +913,7 @@ static bool ata_scsi_lpm_supported(struct ata_port *ap)return false;ata_for_each_link (link, ap,EDGE ) { -ata_for_each_dev (dev, &ap->link,ENABLED ) { +ata_for_each_dev (dev, link,ENABLED ) {if (dev->quirks &ATA_QUIRK_NOLPM )return false; }
drivers/ata/libata-scsi.c +107 -12
166 lines not on this page · raw message
drivers/ata/libata.h +2 -1
@@ -177,7 +177,8 @@ int ata_scsi_dev_config(struct scsi_device *sdev, struct queue_limits *lim,enum scsi_qc_status __ata_scsi_queuecmd (struct scsi_cmnd *scmd,struct ata_device *dev);void ata_scsi_deferred_qc_work (struct work_struct *work); -void ata_scsi_requeue_deferred_qc (struct ata_port *ap); +enum scsi_timeout_action ata_scsi_requeue_deferred_qc (struct ata_port *ap, +struct scsi_cmnd *scmd);/* libata-eh.c */ extern unsigned int ata_internal_cmd_timeout (struct ata_device *dev,u8 cmd);
drivers/ata/sata_mv.c +1 -1
@@ -4026,7 +4026,7 @@ static int mv_platform_probe(struct platform_device *pdev)/* * Simple resource validation .. */ -if (unlikely (pdev->num_resources !=1 )) { +if (unlikely (pdev->num_resources !=1 && pdev->num_resources !=2 )) {dev_err (&pdev->dev,"invalid number of resources\n" );return -EINVAL ; }
drivers/block/ublk_drv.c +9 -0
@@ -4757,6 +4757,15 @@ static int ublk_ctrl_add_dev(const struct ublksrv_ctrl_cmd *header)/* update device id */ ub->dev_info.dev_id = ub->ub_number; +/* +* ->state and ->ublksrv_pid are owned by the driver and only read back +* by userspace, but they come from the copied-in dev_info, so reset +* them. Otherwise a device added with ->state != DEAD looks live while +* ->ub_disk is still NULL. +*/ + ub->dev_info.state =UBLK_S_DEV_DEAD ; + ub->dev_info.ublksrv_pid =-1 ; +/* * 64bit flags will be copied back to userspace as feature * negotiation result, so have to clear flags which driver
drivers/bluetooth/btintel.c +3 -0
@@ -3771,6 +3771,9 @@ static int btintel_diagnostics(struct hci_dev *hdev, struct sk_buff *skb) {struct intel_tlv *tlv = (void *)&skb->data[5 ]; +if (skb->len <5 +sizeof (*tlv) +sizeof (tlv->val[0 ])) + goto recv_frame; +/* The first event is always an event type TLV */ if (tlv->type !=INTEL_TLV_TYPE_ID ) goto recv_frame;
drivers/bluetooth/btmtk.c +37 -49
199 lines not on this page · raw message
drivers/bluetooth/btusb.c +9 -21
@@ -3407,28 +3407,16 @@ static const char *qca_get_fw_subdirectory(const struct qca_version *ver)static int btusb_qca_send_vendor_req (struct usb_device *udev,u8 request,void *data,u16 size) { -int pipe, err; -u8 *buf; - - buf =kmalloc (size,GFP_KERNEL ); -if (!buf) -return -ENOMEM ; +int err;/* Found some of USB hosts have IOT issues with ours so that we should * not wait until HCI layer is ready. */ - pipe =usb_rcvctrlpipe (udev,0 ); - err =usb_control_msg (udev, pipe, request,USB_TYPE_VENDOR |USB_DIR_IN , -0 ,0 , buf, size,USB_CTRL_GET_TIMEOUT ); -if (err <0 ) { + err =usb_control_msg_recv (udev,0 , request,USB_TYPE_VENDOR |USB_DIR_IN , +0 ,0 , data, size,USB_CTRL_GET_TIMEOUT , +GFP_KERNEL ); +if (err)dev_err (&udev->dev,"Failed to access otp area (%d)" , err); - goto done; - } - -memcpy (data, buf, size); - -done: -kfree (buf);return err; }
@@ -3635,7 +3623,7 @@ static bool btusb_qca_need_patch(struct usb_device *udev)struct qca_version ver;if (btusb_qca_send_vendor_req (udev,QCA_GET_TARGET_VERSION , &ver, -sizeof (ver)) <0 ) +sizeof (ver)))return false;/* only low ROM versions need patches */ return !(le32_to_cpu (ver.rom_version) & ~0xffffU );
@@ -3653,7 +3641,7 @@ static int btusb_setup_qca(struct hci_dev *hdev) err =btusb_qca_send_vendor_req (udev,QCA_GET_TARGET_VERSION , &ver,sizeof (ver)); -if (err <0 ) +if (err)return err; ver_rom =le32_to_cpu (ver.rom_version);
@@ -3676,7 +3664,7 @@ static int btusb_setup_qca(struct hci_dev *hdev) err =btusb_qca_send_vendor_req (udev,QCA_CHECK_STATUS , &status,sizeof (status)); -if (err <0 ) +if (err)return err;if (!(status &QCA_PATCH_UPDATED )) {
@@ -3687,7 +3675,7 @@ static int btusb_setup_qca(struct hci_dev *hdev) err =btusb_qca_send_vendor_req (udev,QCA_GET_TARGET_VERSION , &ver,sizeof (ver)); -if (err <0 ) +if (err)return err; btdata->qca_dump.fw_version =le32_to_cpu (ver.patch_version);
drivers/cpufreq/cppc_cpufreq.c +23 -10
@@ -290,19 +290,32 @@ static inline void cppc_freq_invariance_exit(void) }#endif /* CONFIG_ACPI_CPPC_CPUFREQ_FIE */ -static void cppc_cpufreq_update_perf_limits (struct cppc_cpudata *cpu_data, -struct cpufreq_policy *policy) +static void cppc_cpufreq_get_perf_limits (struct cppc_cpudata *cpu_data, +struct cpufreq_policy *policy, +u32 *min_perf,u32 *max_perf) {struct cppc_perf_caps *caps = &cpu_data->perf_caps; -u32 min_perf, max_perf; +unsigned int min_freq, max_freq; +u32 min, max; + + min_freq =READ_ONCE (policy->min); + max_freq =READ_ONCE (policy->max); +if (unlikely (min_freq > max_freq)) + min_freq = max_freq; + + min =cppc_khz_to_perf (caps, min_freq); + max =cppc_khz_to_perf (caps, max_freq); - min_perf =cppc_khz_to_perf (caps, policy->min); - max_perf =cppc_khz_to_perf (caps, policy->max); + *min_perf =clamp_t (u32, min, caps->lowest_perf, caps->highest_perf); + *max_perf =clamp_t (u32, max, caps->lowest_perf, caps->highest_perf); +} - cpu_data->perf_ctrls.min_perf = -clamp_t (u32, min_perf, caps->lowest_perf, caps->highest_perf); - cpu_data->perf_ctrls.max_perf = -clamp_t (u32, max_perf, caps->lowest_perf, caps->highest_perf); +static void cppc_cpufreq_update_perf_limits (struct cppc_cpudata *cpu_data, +struct cpufreq_policy *policy) +{ +cppc_cpufreq_get_perf_limits (cpu_data, policy, + &cpu_data->perf_ctrls.min_perf, + &cpu_data->perf_ctrls.max_perf); } static int cppc_cpufreq_set_target(struct cpufreq_policy *policy,
@@ -694,7 +707,7 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy) goto out; } - policy->fast_switch_possible =cppc_allow_fast_switch (); + policy->fast_switch_possible =cppc_allow_fast_switch (policy->cpus); policy->dvfs_possible_from_any_cpu = true;/*
drivers/cpufreq/powernow-k8.c +1 -0
@@ -1083,6 +1083,7 @@ static int powernowk8_cpu_init(struct cpufreq_policy *pol) err_out_exit_acpi:powernow_k8_cpu_exit_acpi (data); +kfree (data->powernow_table); err_out:kfree (data);
drivers/dibs/dibs_loopback.c +24 -23
103 lines not on this page · raw message
drivers/dma/idxd/cdev.c +3 -1
@@ -288,6 +288,7 @@ static int idxd_cdev_open(struct inode *inode, struct file *filp) fdev->parent =cdev_dev (idxd_cdev); fdev->bus = &dsa_bus_type; fdev->type = &idxd_cdev_file_type; +idxd_wq_get (wq); rc =dev_set_name (fdev,"file%d" , ctx->id);if (rc <0 ) {
@@ -301,13 +302,14 @@ static int idxd_cdev_open(struct inode *inode, struct file *filp) goto failed_dev_add; } -idxd_wq_get (wq);mutex_unlock (&wq->wq_lock);return 0 ; failed_dev_add: failed_dev_name: +mutex_unlock (&wq->wq_lock);put_device (fdev); +return rc; failed_ida: failed_set_pasid:if (device_user_pasid_enabled (idxd))
drivers/dma/idxd/init.c +5 -31
@@ -159,18 +159,12 @@ static void idxd_cleanup_interrupts(struct idxd_device *idxd)static void idxd_clean_wqs (struct idxd_device *idxd) { -struct idxd_wq *wq;struct device *conf_dev;int i;for (i =0 ; i < idxd->max_wqs; i++) { - wq = idxd->wqs[i]; -if (idxd->hw.wq_cap.op_config) -bitmap_free (wq->opcap_bmap); -kfree (wq->wqcfg); - conf_dev =wq_confdev (wq); + conf_dev =wq_confdev (idxd->wqs[i]);put_device (conf_dev); -kfree (wq); }bitmap_free (idxd->wq_enable_map);kfree (idxd->wqs);
@@ -212,7 +206,6 @@ static int idxd_setup_wqs(struct idxd_device *idxd) rc =dev_set_name (conf_dev,"wq%d.%d" , idxd->id, wq->id);if (rc <0 ) {put_device (conf_dev); -kfree (wq); goto err_unwind; }
@@ -227,7 +220,6 @@ static int idxd_setup_wqs(struct idxd_device *idxd) wq->wqcfg =kzalloc_node (idxd->wqcfg_size,GFP_KERNEL ,dev_to_node (dev));if (!wq->wqcfg) {put_device (conf_dev); -kfree (wq); rc = -ENOMEM ; goto err_unwind; }
@@ -235,9 +227,7 @@ static int idxd_setup_wqs(struct idxd_device *idxd)if (idxd->hw.wq_cap.op_config) { wq->opcap_bmap =bitmap_zalloc (IDXD_MAX_OPCAP_BITS ,GFP_KERNEL );if (!wq->opcap_bmap) { -kfree (wq->wqcfg);put_device (conf_dev); -kfree (wq); rc = -ENOMEM ; goto err_unwind; }
@@ -252,13 +242,8 @@ static int idxd_setup_wqs(struct idxd_device *idxd) err_unwind:while (--i >=0 ) { - wq = idxd->wqs[i]; -if (idxd->hw.wq_cap.op_config) -bitmap_free (wq->opcap_bmap); -kfree (wq->wqcfg); - conf_dev =wq_confdev (wq); + conf_dev =wq_confdev (idxd->wqs[i]);put_device (conf_dev); -kfree (wq); }bitmap_free (idxd->wq_enable_map);
@@ -270,15 +255,12 @@ static int idxd_setup_wqs(struct idxd_device *idxd)static void idxd_clean_engines (struct idxd_device *idxd) { -struct idxd_engine *engine;struct device *conf_dev;int i;for (i =0 ; i < idxd->max_engines; i++) { - engine = idxd->engines[i]; - conf_dev =engine_confdev (engine); + conf_dev =engine_confdev (idxd->engines[i]);put_device (conf_dev); -kfree (engine); }kfree (idxd->engines); }
@@ -313,7 +295,6 @@ static int idxd_setup_engines(struct idxd_device *idxd) rc =dev_set_name (conf_dev,"engine%d.%d" , idxd->id, engine->id);if (rc <0 ) {put_device (conf_dev); -kfree (engine); goto err; }
@@ -324,10 +305,8 @@ static int idxd_setup_engines(struct idxd_device *idxd) err:while (--i >=0 ) { - engine = idxd->engines[i]; - conf_dev =engine_confdev (engine); + conf_dev =engine_confdev (idxd->engines[i]);put_device (conf_dev); -kfree (engine); }kfree (idxd->engines);
@@ -336,13 +315,10 @@ static int idxd_setup_engines(struct idxd_device *idxd)static void idxd_clean_groups (struct idxd_device *idxd) { -struct idxd_group *group;int i;for (i =0 ; i < idxd->max_groups; i++) { - group = idxd->groups[i]; -put_device (group_confdev (group)); -kfree (group); +put_device (group_confdev (idxd->groups[i])); }kfree (idxd->groups); }
@@ -377,7 +353,6 @@ static int idxd_setup_groups(struct idxd_device *idxd) rc =dev_set_name (conf_dev,"group%d.%d" , idxd->id, group->id);if (rc <0 ) {put_device (conf_dev); -kfree (group); goto err; }
@@ -402,7 +377,6 @@ static int idxd_setup_groups(struct idxd_device *idxd)while (--i >=0 ) { group = idxd->groups[i];put_device (group_confdev (group)); -kfree (group); }kfree (idxd->groups);
drivers/dma/sun6i-dma.c +4 -7
@@ -945,16 +945,13 @@ static int sun6i_dma_terminate_all(struct dma_chan *chan)spin_lock_irqsave (&vchan->vc.lock, flags); -if (vchan->cyclic) { - vchan->cyclic = false; -if (pchan && pchan->desc) { -struct virt_dma_desc *vd = &pchan->desc->vd; -struct virt_dma_chan *vc = &vchan->vc; +if (pchan && pchan->desc && pchan->desc != pchan->done) { +struct virt_dma_desc *vd = &pchan->desc->vd; -list_add_tail (&vd->node, &vc->desc_completed); - } +vchan_terminate_vdesc (vd); } + vchan->cyclic = false;vchan_get_all_descriptors (&vchan->vc, &head);if (pchan) {
drivers/dma/switchtec_dma.c +1 -1
@@ -1099,7 +1099,7 @@ static int switchtec_dma_chan_init(struct switchtec_dma_dev *swdma_dev,dev_dbg (&pdev->dev,"Channel %d: SE buffer count %d\n" , i, se_buf_len); thresh = se_buf_len /2 ; - valid_en_se |=FIELD_GET (SE_THRESH_MASK , thresh); + valid_en_se |=FIELD_PREP (SE_THRESH_MASK , thresh);writel (valid_en_se, &swdma_chan->mmio_chan_fw->valid_en_se);/* request irqs */
drivers/gpio/gpio-by-pinctrl.c +12 -6
@@ -28,12 +28,6 @@ static int pin_control_gpio_get_direction(struct gpio_chip *gc, unsigned int offreturn GPIO_LINE_DIRECTION_IN ; } -static int pin_control_gpio_direction_output (struct gpio_chip *chip, -unsigned int offset,int val) -{ -return pinctrl_gpio_direction_output (chip, offset); -} -static int pin_control_gpio_get (struct gpio_chip *chip,unsigned int offset) {unsigned long config;
@@ -56,6 +50,18 @@ static int pin_control_gpio_set(struct gpio_chip *chip, unsigned int offset,return pinctrl_gpio_set_config (chip, offset, config); } +static int pin_control_gpio_direction_output (struct gpio_chip *chip, +unsigned int offset,int val) +{ +int ret; + + ret =pinctrl_gpio_direction_output (chip, offset); +if (ret) +return ret; + +return pin_control_gpio_set (chip, offset, val); +} +static int pin_control_gpio_probe (struct platform_device *pdev) {struct device *dev = &pdev->dev;
drivers/gpio/gpio-pca953x.c +13 -2
@@ -1373,9 +1373,20 @@ static int pca953x_restore_context(struct pca953x_chip *chip)regcache_mark_dirty (chip->regmap); ret =pca953x_regcache_sync (chip);if (ret) -return ret; + goto err; + + ret =regcache_sync (chip->regmap); +if (ret) + goto err; + +return 0 ; -return regcache_sync (chip->regmap); +err: +if (chip->client->irq >0 ) +disable_irq (chip->client->irq); +regcache_cache_only (chip->regmap, true); + +return ret; }static void pca953x_save_context (struct pca953x_chip *chip)
drivers/gpio/gpio-pch.c +14 -14
@@ -96,7 +96,7 @@ struct pch_gpio {struct pch_gpio_reg_data pch_gpio_reg;int irq_base;enum pch_type_t ioh; -spinlock_t spinlock; +raw_spinlock_t spinlock; };static int pch_gpio_set (struct gpio_chip *gpio,unsigned int nr,int val)
@@ -105,7 +105,7 @@ static int pch_gpio_set(struct gpio_chip *gpio, unsigned int nr, int val)struct pch_gpio *chip =gpiochip_get_data (gpio);unsigned long flags; -spin_lock_irqsave (&chip->spinlock, flags); +raw_spin_lock_irqsave (&chip->spinlock, flags); reg_val =ioread32 (&chip->reg->po);if (val) reg_val |=BIT (nr);
@@ -113,7 +113,7 @@ static int pch_gpio_set(struct gpio_chip *gpio, unsigned int nr, int val) reg_val &= ~BIT (nr);iowrite32 (reg_val, &chip->reg->po); -spin_unlock_irqrestore (&chip->spinlock, flags); +raw_spin_unlock_irqrestore (&chip->spinlock, flags);return 0 ; }
@@ -133,7 +133,7 @@ static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned int nr,u32 reg_val;unsigned long flags; -spin_lock_irqsave (&chip->spinlock, flags); +raw_spin_lock_irqsave (&chip->spinlock, flags); reg_val =ioread32 (&chip->reg->po);if (val)
@@ -147,7 +147,7 @@ static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned int nr, pm |=BIT (nr);iowrite32 (pm, &chip->reg->pm); -spin_unlock_irqrestore (&chip->spinlock, flags); +raw_spin_unlock_irqrestore (&chip->spinlock, flags);return 0 ; }
@@ -158,12 +158,12 @@ static int pch_gpio_direction_input(struct gpio_chip *gpio, unsigned int nr)u32 pm;unsigned long flags; -spin_lock_irqsave (&chip->spinlock, flags); +raw_spin_lock_irqsave (&chip->spinlock, flags); pm =ioread32 (&chip->reg->pm); pm &=BIT (gpio_pins[chip->ioh]) -1 ; pm &= ~BIT (nr);iowrite32 (pm, &chip->reg->pm); -spin_unlock_irqrestore (&chip->spinlock, flags); +raw_spin_unlock_irqrestore (&chip->spinlock, flags);return 0 ; }
@@ -265,7 +265,7 @@ static int pch_irq_type(struct irq_data *d, unsigned int type)return 0 ; } -spin_lock_irqsave (&chip->spinlock, flags); +raw_spin_lock_irqsave (&chip->spinlock, flags);/* Set interrupt mode */ im =ioread32 (im_reg) & ~(PCH_IM_MASK << (im_pos *4 ));
@@ -277,7 +277,7 @@ static int pch_irq_type(struct irq_data *d, unsigned int type)else if (type &IRQ_TYPE_EDGE_BOTH )irq_set_handler_locked (d, handle_edge_irq); -spin_unlock_irqrestore (&chip->spinlock, flags); +raw_spin_unlock_irqrestore (&chip->spinlock, flags);return 0 ; }
@@ -374,7 +374,7 @@ static int pch_gpio_probe(struct pci_dev *pdev, chip->ioh = id->driver_data; chip->reg = chip->base;pci_set_drvdata (pdev, chip); -spin_lock_init (&chip->spinlock); +raw_spin_lock_init (&chip->spinlock);pch_gpio_setup (chip); ret =devm_gpiochip_add_data (dev, &chip->gpio, chip);
@@ -407,9 +407,9 @@ static int pch_gpio_suspend(struct device *dev)struct pch_gpio *chip =dev_get_drvdata (dev);unsigned long flags; -spin_lock_irqsave (&chip->spinlock, flags); +raw_spin_lock_irqsave (&chip->spinlock, flags);pch_gpio_save_reg_conf (chip); -spin_unlock_irqrestore (&chip->spinlock, flags); +raw_spin_unlock_irqrestore (&chip->spinlock, flags);return 0 ; }
@@ -419,11 +419,11 @@ static int pch_gpio_resume(struct device *dev)struct pch_gpio *chip =dev_get_drvdata (dev);unsigned long flags; -spin_lock_irqsave (&chip->spinlock, flags); +raw_spin_lock_irqsave (&chip->spinlock, flags);iowrite32 (0x01 , &chip->reg->reset);iowrite32 (0x00 , &chip->reg->reset);pch_gpio_restore_reg_conf (chip); -spin_unlock_irqrestore (&chip->spinlock, flags); +raw_spin_unlock_irqrestore (&chip->spinlock, flags);return 0 ; }
drivers/gpio/gpio-sloppy-logic-analyzer.c +10 -0
@@ -161,6 +161,13 @@ static int fops_buf_size_get(void *data, u64 *val)return 0 ; } +static void fops_buf_release (void *data) +{ +struct gpio_la_poll_priv *priv = data; + +vfree (priv->blob.data); +} +static int fops_buf_size_set (void *data,u64 val) {struct gpio_la_poll_priv *priv = data;
@@ -239,6 +246,9 @@ static int gpio_la_poll_probe(struct platform_device *pdev)return ret;fops_buf_size_set (priv,GPIO_LA_DEFAULT_BUF_SIZE ); + ret =devm_add_action_or_reset (dev, fops_buf_release, priv); +if (ret) +return ret; priv->descs =devm_gpiod_get_array (dev,"probe" ,GPIOD_IN );if (IS_ERR (priv->descs))
drivers/gpio/gpiolib.c +8 -5
@@ -975,14 +975,17 @@ int gpiochip_add_hog(struct gpio_chip *gc, struct fwnode_handle *fwnode)if (ret <0 )return ret; -if (fwnode_property_present (fwnode,"input" )) +if (fwnode_property_present (fwnode,"input" )) { dflags |=GPIOD_IN ; -else if (fwnode_property_present (fwnode,"output-low" )) + }else if (fwnode_property_present (fwnode,"output-low" )) { dflags |=GPIOD_OUT_LOW ; -else if (fwnode_property_present (fwnode,"output-high" )) + }else if (fwnode_property_present (fwnode,"output-high" )) { dflags |=GPIOD_OUT_HIGH ; -else -return -EINVAL ; + }else { +gpiochip_warn (gc,"%pfwP: no hogging state specified, bailing out\n" , + fwnode); +return 0 ; + }fwnode_property_read_string (fwnode,"line-name" , &name);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +19 -20
@@ -854,7 +854,6 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,struct amdgpu_vm *vm = &fpriv->vm;struct amdgpu_bo_list_entry *e;struct drm_gem_object *obj; -unsigned long index;unsigned int i;int r;
@@ -965,7 +964,7 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p, goto out_free_user_pages; } -drm_exec_for_each_locked_object (&p->exec, index, obj) { +drm_exec_for_each_locked_object (&p->exec, obj) { r =amdgpu_cs_bo_validate (p,gem_to_amdgpu_bo (obj));if (unlikely (r)) goto out_free_user_pages;
@@ -1182,19 +1181,6 @@ static int amdgpu_cs_vm_handling(struct amdgpu_cs_parser *p) job->vm_pd_addr =amdgpu_gmc_pd_addr (vm->root.bo); } -if (adev->debug_vm) { -/* Invalidate all BOs to test for userspace bugs */ -amdgpu_bo_list_for_each_entry (e, p->bo_list) { -struct amdgpu_bo *bo = e->bo; - -/* ignore duplicates */ -if (!bo) -continue ; - -amdgpu_vm_bo_invalidate (bo, false); - } - } -return 0 ; }
@@ -1204,7 +1190,6 @@ static int amdgpu_cs_sync_rings(struct amdgpu_cs_parser *p)struct drm_gpu_scheduler *sched;struct drm_gem_object *obj;struct dma_fence *fence; -unsigned long index;unsigned int i;int r;
@@ -1215,7 +1200,7 @@ static int amdgpu_cs_sync_rings(struct amdgpu_cs_parser *p)return r; } -drm_exec_for_each_locked_object (&p->exec, index, obj) { +drm_exec_for_each_locked_object (&p->exec, obj) {struct amdgpu_bo *bo =gem_to_amdgpu_bo (obj);struct dma_resv *resv = bo->tbo.base.resv;
@@ -1284,7 +1269,6 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,struct amdgpu_vm *vm = &fpriv->vm;struct amdgpu_bo_list_entry *e;struct drm_gem_object *gobj; -unsigned long index;unsigned int i;uint64_t seq;int r;
@@ -1335,7 +1319,7 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p, } p->fence =dma_fence_get (&leader->base.s_fence->finished); -drm_exec_for_each_locked_object (&p->exec, index, gobj) { +drm_exec_for_each_locked_object (&p->exec, gobj) {ttm_bo_move_to_lru_tail_unlocked (&gem_to_amdgpu_bo (gobj)->tbo);
@@ -1384,6 +1368,8 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,/* Cleanup the parser structure */ static void amdgpu_cs_parser_fini (struct amdgpu_cs_parser *parser) { +struct amdgpu_device *adev = parser->adev; +struct amdgpu_bo_list_entry *e;unsigned int i;amdgpu_sync_free (&parser->sync);
@@ -1399,8 +1385,21 @@ static void amdgpu_cs_parser_fini(struct amdgpu_cs_parser *parser)if (parser->ctx)amdgpu_ctx_put (parser->ctx); -if (parser->bo_list) +if (parser->bo_list) { +if (adev->debug_vm) { +/* Invalidate all BOs to test for userspace bugs */ +amdgpu_bo_list_for_each_entry (e, parser->bo_list) { +struct amdgpu_bo *bo = e->bo; + +/* ignore duplicates */ +if (!bo) +continue ; + +amdgpu_vm_bo_invalidate (bo, false); + } + }amdgpu_bo_list_put (parser->bo_list); + }for (i =0 ; i < parser->nchunks; i++)kvfree (parser->chunks[i].kdata);
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +9 -0
@@ -43,6 +43,11 @@#if defined(CONFIG_DEBUG_FS ) +/* Encode milliwatts in the raw Q24.8 sensor report format used by UMR. */ +#define AMDGPU_DEBUGFS_PWR_MW_TO_Q24_8 (power_mw) \ + DIV_ROUND_CLOSEST_ULL((u64)(power_mw) * BIT(8), \ + MILLIWATT_PER_WATT) +/** * amdgpu_debugfs_process_reg_op - Handle MMIO register reads/writes *
@@ -1104,6 +1109,10 @@ static ssize_t amdgpu_debugfs_sensor_read(struct file *f, char __user *buf,return r; } +if (idx ==AMDGPU_PP_SENSOR_GPU_AVG_POWER || + idx ==AMDGPU_PP_SENSOR_GPU_INPUT_POWER ) + values[0 ] =AMDGPU_DEBUGFS_PWR_MW_TO_Q24_8 (values[0 ]); +if (size > valuesize) {amdgpu_virt_disable_access_debugfs (adev);return -EINVAL ;
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +15 -0
@@ -2876,6 +2876,19 @@ static int amdgpu_pmops_runtime_suspend(struct device *dev)return 0 ; } +static void amdgpu_restore_umd_profile_pstate_after_runpm (struct amdgpu_device *adev) +{ +enum amd_dpm_forced_level level; +uint32_t profile_mode_mask =AMD_DPM_FORCED_LEVEL_PROFILE_STANDARD | +AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK | +AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK | +AMD_DPM_FORCED_LEVEL_PROFILE_PEAK ; + + level =amdgpu_dpm_get_performance_level (adev); +if (level & profile_mode_mask) +amdgpu_asic_update_umd_stable_pstate (adev, true); +} +static int amdgpu_pmops_runtime_resume (struct device *dev) {struct pci_dev *pdev =to_pci_dev (dev);
@@ -2920,6 +2933,8 @@ static int amdgpu_pmops_runtime_resume(struct device *dev)if (adev->pm.rpm_mode ==AMDGPU_RUNPM_PX ) drm_dev->switch_power_state =DRM_SWITCH_POWER_ON ; + +amdgpu_restore_umd_profile_pstate_after_runpm (adev); adev->in_runpm = false;return 0 ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_eviction_fence.c +1 -2
@@ -121,7 +121,6 @@ int amdgpu_evf_mgr_rearm(struct amdgpu_eviction_fence_mgr *evf_mgr, {struct amdgpu_eviction_fence *ev_fence;struct drm_gem_object *obj; -unsigned long index;/* Create and initialize a new eviction fence */ ev_fence =kzalloc_obj (*ev_fence);
@@ -140,7 +139,7 @@ int amdgpu_evf_mgr_rearm(struct amdgpu_eviction_fence_mgr *evf_mgr, evf_mgr->ev_fence = &ev_fence->base;/* And add it to all existing BOs */ -drm_exec_for_each_locked_object (exec, index, obj) { +drm_exec_for_each_locked_object (exec, obj) {struct amdgpu_bo *bo =gem_to_amdgpu_bo (obj);amdgpu_evf_mgr_attach_fence (evf_mgr, bo);
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2 -2
@@ -1210,7 +1210,7 @@ int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp)return -EINVAL ; } } - ui32 >>=8 ; + ui32 /=MILLIWATT_PER_WATT ;break ;case AMDGPU_INFO_SENSOR_GPU_INPUT_POWER :/* get input GPU power */
@@ -1219,7 +1219,7 @@ int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) (void *)&ui32, &ui32_size)) {return -EINVAL ; } - ui32 >>=8 ; + ui32 /=MILLIWATT_PER_WATT ;break ;case AMDGPU_INFO_SENSOR_VDDNB :/* get VDDNB in millivolts */
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +12 -0
@@ -2174,6 +2174,18 @@ int amdgpu_ttm_init(struct amdgpu_device *adev) gtt_size = configured_size; } +/* Cap GTT so that it does not exceed total physical RAM. */ +if (adev->flags &AMD_IS_APU ) { +u64 phys_ram = (u64 )totalram_pages () <<PAGE_SHIFT ; + +if (gtt_size > phys_ram) { + gtt_size = phys_ram; +dev_info (adev->dev, +"Capping GTT to %uM to not exceed available system memory\n" , + (unsigned int )(gtt_size / (1024 *1024 ))); + } + } +/* Initialize GTT memory pool */ r =amdgpu_gtt_mgr_init (adev, gtt_size);if (r) {
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +7 -3
@@ -3038,10 +3038,14 @@ static int kfd_ioctl_set_debug_trap(struct file *filep, struct kfd_process *p, v goto out; } -/* Check if target is still PTRACED. */ +/* +* Verify debugger has permission to debug target process. +* For cross-process debugging, require active ptrace relationship. +* This applies to ALL operations to prevent unauthorized interference. +*/ rcu_read_lock (); -if (target != p && args->op !=KFD_IOC_DBG_TRAP_DISABLE - &&ptrace_parent (target->lead_thread) != current) { +if (target != p &&ptrace_parent (target->lead_thread) != current + && target->debugger_process != p) {pr_err ("PID %i is not PTRACED and cannot be debugged\n" , args->pid); r = -EPERM ; }
drivers/gpu/drm/amd/amdkfd/kfd_events.c +20 -3
@@ -524,6 +524,9 @@ int kfd_criu_restore_event(struct file *devkfd, ret =create_other_event (p, ev, &ev_priv->event_id);break ; +default : + ret = -EINVAL ; +break ; }mutex_unlock (&p->event_mutex);
@@ -545,15 +548,27 @@ int kfd_criu_checkpoint_events(struct kfd_process *p,int ret =0 ;struct kfd_event *ev;uint32_t ev_id; +uint32_t num_events; -uint32_t num_events =kfd_get_num_events (p); +/* Serialize the count and the walk below against concurrent event +* create/destroy. Those paths take only p->event_mutex, not the +* p->mutex held by the CRIU checkpoint caller, so without this the +* event_idr can grow between kfd_get_num_events() and the loop and the +* walk writes past the ev_privs allocation. +*/ +mutex_lock (&p->event_mutex); -if (!num_events) + num_events =kfd_get_num_events (p); +if (!num_events) { +mutex_unlock (&p->event_mutex);return 0 ; + } ev_privs =kvzalloc (num_events *sizeof (*ev_privs),GFP_KERNEL ); -if (!ev_privs) +if (!ev_privs) { +mutex_unlock (&p->event_mutex);return -ENOMEM ; + }idr_for_each_entry (&p->event_idr, ev, ev_id) {
@@ -594,6 +609,8 @@ int kfd_criu_checkpoint_events(struct kfd_process *p, i++; } +mutex_unlock (&p->event_mutex); + ret =copy_to_user (user_priv_data + *priv_data_offset, ev_privs, num_events *sizeof (*ev_privs));if (ret) {
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +1 -1
@@ -378,7 +378,7 @@ int pqm_create_queue(struct process_queue_manager *pqm, false);if (retval) {dev_err (dev->adev->dev,"failed to allocate process context bo\n" ); -return retval; + goto err_allocate_pqn; }memset (pdd->proc_ctx_cpu_ptr,0 ,AMDGPU_MES_PROC_CTX_SIZE ); }
drivers/gpu/drm/amd/amdkfd/kfd_queue.c +1 -1
@@ -288,7 +288,7 @@ int kfd_queue_acquire_buffers(struct kfd_process_device *pdd, struct queue_prope } err =kfd_queue_buffer_get (vm, (void *)properties->eop_ring_buffer_address, &properties->eop_buf_bo, -ALIGN (properties->eop_ring_buffer_size,PAGE_SIZE )); +ALIGN ((u64 )properties->eop_ring_buffer_size,PAGE_SIZE ));if (err) goto out_err_unreserve; }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +184 -59
290 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/core/dc.c +45 -0
51 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -2738,6 +2738,7 @@ enum dc_irq_source dc_interrupt_to_irq_source( uint32_t ext_id);bool dc_interrupt_set (struct dc *dc,enum dc_irq_source src,bool enable);void dc_interrupt_ack (struct dc *dc,enum dc_irq_source src); +bool dc_get_flip_pending_on_otg (struct dc *dc,int otg_inst);enum dc_irq_source dc_get_hpd_irq_source_at_index (struct dc *dc,uint32_t link_index);
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c +9 -11
@@ -45,9 +45,7 @@ clk_src->base.ctx#define DC_LOGGER \ - calc_pll_cs->ctx->logger -#define DC_LOGGER_INIT () \ - struct calc_pll_clock_source *calc_pll_cs = &clk_src->calc_pll + CTX->logger#undef FN#define FN (reg_name, field_name) \
@@ -289,6 +287,7 @@ static bool calc_pll_dividers_in_range( }static uint32_t calculate_pixel_clock_pll_dividers ( +struct dce110_clk_src *clk_src,struct calc_pll_clock_source *calc_pll_cs,struct pll_settings *pll_settings) {
@@ -477,7 +476,7 @@ static uint32_t dce110_get_pix_clk_dividers_helper ( {uint32_t field =0 ;uint32_t pll_calc_error =MAX_PLL_CALC_ERROR ; -DC_LOGGER_INIT (); +/* Check if reference clock is external (not pcie/xtalin) * HW Dce80 spec: * 00 - PCIE_REFCLK, 01 - XTALIN, 02 - GENERICA, 03 - GENERICB
@@ -520,12 +519,14 @@ static uint32_t dce110_get_pix_clk_dividers_helper (/*Calculate Dividers by HDMI object, no SS case or SS case */ pll_calc_error =calculate_pixel_clock_pll_dividers ( + clk_src, &clk_src->calc_pll_hdmi, pll_settings); else/*Calculate Dividers by default object, no SS case or SS case */ pll_calc_error =calculate_pixel_clock_pll_dividers ( + clk_src, &clk_src->calc_pll, pll_settings);
@@ -571,7 +572,6 @@ static uint32_t dce110_get_pix_clk_dividers( {struct dce110_clk_src *clk_src =TO_DCE110_CLK_SRC (cs);uint32_t pll_calc_error =MAX_PLL_CALC_ERROR ; -DC_LOGGER_INIT ();if (pix_clk_params ==NULL || pll_settings ==NULL || pix_clk_params->requested_pix_clk_100hz ==0 ) {
@@ -603,7 +603,6 @@ static uint32_t dce112_get_pix_clk_dividers( struct pll_settings *pll_settings) {struct dce110_clk_src *clk_src =TO_DCE110_CLK_SRC (cs); -DC_LOGGER_INIT ();if (pix_clk_params ==NULL || pll_settings ==NULL || pix_clk_params->requested_pix_clk_100hz ==0 ) {
@@ -1372,8 +1371,6 @@ static uint32_t dcn3_get_pix_clk_dividers(unsigned long long actual_pix_clk_100Hz = pix_clk_params ? pix_clk_params->requested_pix_clk_100hz :0 ;struct dce110_clk_src *clk_src =TO_DCE110_CLK_SRC (cs); -DC_LOGGER_INIT (); -if (pix_clk_params ==NULL || pll_settings ==NULL || pix_clk_params->requested_pix_clk_100hz ==0 ) { DC_LOG_ERROR(
@@ -1443,7 +1440,6 @@ static const struct clock_source_funcs dce110_clk_src_funcs = { .get_pixel_clk_frequency_100hz = get_pixel_clk_frequency_100hz }; - static void get_ss_info_from_atombios( struct dce110_clk_src *clk_src, enum as_signal_type as_signal,
@@ -1456,7 +1452,7 @@ static void get_ss_info_from_atombios(struct spread_spectrum_info *ss_info_cur;struct spread_spectrum_data *ss_data_cur;uint32_t i; -DC_LOGGER_INIT (); +if (ss_entries_num ==NULL ) {DC_LOG_SYNC ("Invalid entry !!!\n" );
@@ -1587,6 +1583,7 @@ static void ss_info_from_atombios_create( }static bool calc_pll_max_vco_construct ( +struct dce110_clk_src *clk_src,struct calc_pll_clock_source *calc_pll_cs,struct calc_pll_clock_source_init_data *init_data) {
@@ -1738,6 +1735,7 @@ bool dce110_clk_src_construct(ss_info_from_atombios_create (clk_src);if (!calc_pll_max_vco_construct ( + clk_src, &clk_src->calc_pll, &calc_pll_cs_init_data)) {ASSERT_CRITICAL (false);
@@ -1752,7 +1750,7 @@ bool dce110_clk_src_construct(if (!calc_pll_max_vco_construct ( - &clk_src->calc_pll_hdmi, &calc_pll_cs_init_data_hdmi)) { + clk_src, &clk_src->calc_pll_hdmi, &calc_pll_cs_init_data_hdmi)) {ASSERT_CRITICAL (false); goto unexpected_failure; }
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_utils.c +7 -8
@@ -359,14 +359,13 @@ void dml21_handle_phantom_streams_planes(const struct dc *dc, struct dc_state *c main_plane = main_stream_status->plane_states[dc_plane_index];/* create phantom planes for subvp enabled plane */ -dml21_add_phantom_plane (dml_ctx, - dc, - context, - phantom_stream, - main_plane, - &dml_ctx->v21.mode_programming.programming->plane_programming[dml_plane_index]); - - phantoms_added = true; +if (dml21_add_phantom_plane (dml_ctx, + dc, + context, + phantom_stream, + main_plane, + &dml_ctx->v21.mode_programming.programming->plane_programming[dml_plane_index])) + phantoms_added = true; } } }
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c +25 -6
@@ -2425,7 +2425,7 @@ static void calculate_mcache_row_bytes(DML_ASSERT (*p->num_mcaches >0 ); } -static void calculate_mcache_setting ( +static bool calculate_mcache_setting (struct dml2_core_internal_scratch *scratch,struct dml2_core_calcs_calculate_mcache_setting_params *p) {
@@ -2451,7 +2451,7 @@ static void calculate_mcache_setting( *p->lc_comb_mcache =0 ;if (!p->dcc_enable) -return ; +return true; l->is_dual_plane =dml_is_420 (p->source_format) || p->source_format == dml2_rgbe_alpha;
@@ -2488,7 +2488,14 @@ static void calculate_mcache_setting( l->l_p.mvmpg_per_mcache_lb = &l->mvmpg_per_mcache_lb_l;calculate_mcache_row_bytes (scratch, &l->l_p); -DML_ASSERT (*p->num_mcaches_l >0 ); +if (*p->num_mcaches_l ==0 || + (p->surf_vert ? l->mvmpg_height_l : l->mvmpg_width_l) ==0 ) { +DML_LOG_VERBOSE ("DML::%s: degenerate luma viewport (num_mcaches_l=%u mvmpg_%s_l=%u) — mode not supported\n" , + __func__, *p->num_mcaches_l, + p->surf_vert ?"height" :"width" , + p->surf_vert ? l->mvmpg_height_l : l->mvmpg_width_l); +return false; + }if (l->is_dual_plane) { l->c_p.num_chans = p->num_chans;
@@ -2524,7 +2531,14 @@ static void calculate_mcache_setting( l->c_p.mvmpg_per_mcache_lb = &l->mvmpg_per_mcache_lb_c;calculate_mcache_row_bytes (scratch, &l->c_p); -DML_ASSERT (*p->num_mcaches_c >0 ); +if (*p->num_mcaches_c ==0 || + (p->surf_vert ? l->mvmpg_height_c : l->mvmpg_width_c) ==0 ) { +DML_LOG_VERBOSE ("DML::%s: degenerate chroma viewport (num_mcaches_c=%u mvmpg_%s_c=%u) — mode not supported\n" , + __func__, *p->num_mcaches_c, + p->surf_vert ?"height" :"width" , + p->surf_vert ? l->mvmpg_height_c : l->mvmpg_width_c); +return false; + } }// Sharing for iMALL access
@@ -2634,6 +2648,7 @@ static void calculate_mcache_setting( *p->mcache_shift_granularity_l = l->mvmpg_access_width_l; *p->mcache_shift_granularity_c = l->mvmpg_access_width_c; +return true; } static void calculate_mall_bw_overhead_factor(
@@ -9430,7 +9445,10 @@ static bool dml_core_mode_support(struct dml2_core_calcs_mode_support_ex *in_out calculate_mcache_setting_params->mall_comb_mcache_c = &mode_lib->ms.mall_comb_mcache_c[k]; calculate_mcache_setting_params->lc_comb_mcache = &mode_lib->ms.lc_comb_mcache[k]; -calculate_mcache_setting (&mode_lib->scratch, calculate_mcache_setting_params); +if (!calculate_mcache_setting (&mode_lib->scratch, calculate_mcache_setting_params)) { + mode_lib->ms.support.ModeSupport = false; +return false; + } } calculate_mall_bw_overhead_factor(
@@ -10906,7 +10924,8 @@ static bool dml_core_mode_programming(struct dml2_core_calcs_mode_programming_ex calculate_mcache_setting_params->mall_comb_mcache_l = &mode_lib->mp.mall_comb_mcache_l[k]; calculate_mcache_setting_params->mall_comb_mcache_c = &mode_lib->mp.mall_comb_mcache_c[k]; calculate_mcache_setting_params->lc_comb_mcache = &mode_lib->mp.lc_comb_mcache[k]; -calculate_mcache_setting (&mode_lib->scratch, calculate_mcache_setting_params); +if (!calculate_mcache_setting (&mode_lib->scratch, calculate_mcache_setting_params)) +return false; } calculate_mall_bw_overhead_factor(
drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c +11 -5
@@ -841,13 +841,19 @@ void dcn30_set_avmute(struct pipe_ctx *pipe_ctx, bool enable) pipe_ctx->stream_res.stream_enc, enable); -/* Wait for two frame to make sure AV mute is sent out */ +/* Wait for three frames to make sure AV mute is sent out. +* Some HDMI sinks need additional GCP packets to properly +* process the mute state, especially after link re-establishment +* with HDMI 2.0 scrambling enabled. +*/ if (enable && pipe_ctx->stream_res.tg->funcs->is_tg_enabled (pipe_ctx->stream_res.tg)) { +int i; + pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VACTIVE ); - pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VBLANK ); - pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VACTIVE ); - pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VBLANK ); - pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VACTIVE ); +for (i =0 ; i <3 ; i++) { + pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VBLANK ); + pipe_ctx->stream_res.tg->funcs->wait_for_state (pipe_ctx->stream_res.tg,CRTC_STATE_VACTIVE ); + } } } }
drivers/gpu/drm/amd/display/dc/link/link_dpms.c +8 -8
@@ -379,7 +379,7 @@ static bool write_i2c_retimer_vga(for (size_t i =0 ; i <ARRAY_SIZE (vga_data); i++) {if (!write_i2c_retimer_offset_value (link, address, vga_data[i][0 ], vga_data[i][1 ])) { -DC_LOG_ERROR ("Set retimer failed, vga index: %zu\n" , i); +DC_LOG_DEBUG ("Set retimer failed, vga index: %zu\n" , i);return false; } }
@@ -400,7 +400,7 @@ static bool write_i2c_retimer_byte(return true;if (!write_i2c_retimer_offset_value (link, address, index, value)) { -DC_LOG_ERROR ("Set retimer failed, 3g index: 0x%x, value: 0x%x\n" , index, value); +DC_LOG_DEBUG ("Set retimer failed, 3g index: 0x%x, value: 0x%x\n" , index, value);return false; }
@@ -416,14 +416,14 @@ static bool write_i2c_retimer_byte(if (!link_query_ddc_data ( link->ddc, address, &offset,1 , &value,1 )) { -DC_LOG_ERROR ("Set retimer failed, link_query_ddc_data\n" ); +DC_LOG_DEBUG ("Set retimer failed, link_query_ddc_data\n" );return false; } } value |= apply_rx_tx_change;if (!write_i2c_retimer_offset_value (link, address, offset, value)) { -DC_LOG_ERROR ("Set retimer failed, 3g offset: 0x%x, value: 0x%x\n" , offset, value); +DC_LOG_DEBUG ("Set retimer failed, 3g offset: 0x%x, value: 0x%x\n" , offset, value);return false; } }
@@ -444,7 +444,7 @@ static bool write_i2c_retimer_setting(uint8_t value = settings->reg_settings[i].i2c_reg_val;if (!write_i2c_retimer_byte (link, address, index, value)) { -DC_LOG_ERROR ("Set retimer failed, index: %zu\n" , i); +DC_LOG_DEBUG ("Set retimer failed, index: %zu\n" , i);return false; } }
@@ -455,7 +455,7 @@ static bool write_i2c_retimer_setting(uint8_t value = settings->reg_settings_6g[i].i2c_reg_val;if (!write_i2c_retimer_byte (link, address, index, value)) { -DC_LOG_ERROR ("Set retimer failed, 6g index: %zu\n" , i); +DC_LOG_DEBUG ("Set retimer failed, 6g index: %zu\n" , i);return false; } }
@@ -487,7 +487,7 @@ static bool write_i2c_default_retimer_setting(for (size_t i =0 ; i <ARRAY_SIZE (data); i++) {if (!write_i2c_retimer_offset_value (link, address, data[i][0 ], data[i][1 ])) { -DC_LOG_ERROR ("Set default retimer failed, index: %zu\n" , i); +DC_LOG_DEBUG ("Set default retimer failed, index: %zu\n" , i);return false; } }
@@ -519,7 +519,7 @@ static bool write_i2c_redriver_setting( );if (!success) -DC_LOG_ERROR ("Set redriver failed" ); +DC_LOG_DEBUG ("Set redriver failed" );return success; }
drivers/gpu/drm/amd/include/kgd_pp_interface.h +4 -2
@@ -24,6 +24,8 @@#ifndef __KGD_PP_INTERFACE_H__#define __KGD_PP_INTERFACE_H__ +#include <linux/units.h> +extern const struct amdgpu_ip_block_version pp_smu_ip_block;extern const struct amdgpu_ip_block_version smu_v11_0_ip_block;extern const struct amdgpu_ip_block_version smu_v12_0_ip_block;
@@ -150,8 +152,8 @@ enum amd_pp_sensors {AMDGPU_PP_SENSOR_MEM_TEMP ,AMDGPU_PP_SENSOR_VCE_POWER ,AMDGPU_PP_SENSOR_UVD_POWER , -AMDGPU_PP_SENSOR_GPU_AVG_POWER , -AMDGPU_PP_SENSOR_GPU_INPUT_POWER , +AMDGPU_PP_SENSOR_GPU_AVG_POWER ,/* milliwatts */ +AMDGPU_PP_SENSOR_GPU_INPUT_POWER ,/* milliwatts */ AMDGPU_PP_SENSOR_SS_APU_SHARE ,AMDGPU_PP_SENSOR_SS_DGPU_SHARE , AMDGPU_PP_SENSOR_STABLE_PSTATE_SCLK,
drivers/gpu/drm/amd/pm/amdgpu_dpm.c +31 -8
@@ -1183,20 +1183,36 @@ int amdgpu_dpm_dispatch_task(struct amdgpu_device *adev,return ret; } -int amdgpu_dpm_get_pp_table (struct amdgpu_device *adev,char **table) +static bool amdgpu_dpm_is_pp_table_allowed (struct amdgpu_device *adev) +{ +return !amdgpu_sriov_vf (adev) && + !(adev->flags &AMD_IS_APU ) && + !adev->scpm_enabled; +} + +int amdgpu_dpm_get_pp_table (struct amdgpu_device *adev,char *table, +size_t size) {const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; +char *pptable =NULL ;int ret =0 ; -if (!table) +if ((!table && size) || (table && !size))return -EINVAL ; -if (amdgpu_sriov_vf (adev) || !pp_funcs->get_pp_table || adev->scpm_enabled) +if (!amdgpu_dpm_is_pp_table_allowed (adev) || + !pp_funcs->get_pp_table)return -EOPNOTSUPP ;mutex_lock (&adev->pm.mutex); ret = pp_funcs->get_pp_table (adev->powerplay.pp_handle, - table); + &pptable); +if (ret >0 && !pptable) { + ret = -EINVAL ; + }else if (ret >0 && table) { + ret =min_t (size_t, ret, size); +memcpy (table, pptable, ret); + }mutex_unlock (&adev->pm.mutex);return ret;
@@ -1426,17 +1442,23 @@ int amdgpu_dpm_set_power_profile_mode(struct amdgpu_device *adev,return ret; } -int amdgpu_dpm_get_gpu_metrics (struct amdgpu_device *adev,void **table) +ssize_t amdgpu_dpm_get_gpu_metrics (struct amdgpu_device *adev,void *buf, +size_t size) {const struct amd_pm_funcs *pp_funcs = adev->powerplay.pp_funcs; -int ret =0 ; +void *table; +ssize_t ret;if (!pp_funcs->get_gpu_metrics)return 0 ;mutex_lock (&adev->pm.mutex); ret = pp_funcs->get_gpu_metrics (adev->powerplay.pp_handle, - table); + &table); +if (ret >0 ) { + ret =min_t (ssize_t, ret, size); +memcpy (buf, table, ret); + }mutex_unlock (&adev->pm.mutex);return ret;
@@ -1703,7 +1725,8 @@ int amdgpu_dpm_set_pp_table(struct amdgpu_device *adev,if (!buf || !size)return -EINVAL ; -if (amdgpu_sriov_vf (adev) || !pp_funcs->set_pp_table || adev->scpm_enabled) +if (!amdgpu_dpm_is_pp_table_allowed (adev) || + !pp_funcs->set_pp_table)return -EOPNOTSUPP ;mutex_lock (&adev->pm.mutex);
drivers/gpu/drm/amd/pm/amdgpu_pm.c +7 -22
@@ -41,8 +41,6 @@#define DEVICE_ATTR_IS (_name) (attr_id == device_attr_id__##_name) -#define power_2_mwatt (power) (((power) >> 8) * 1000 + ((power) & 0xff)) -struct od_attribute {struct kobj_attribute attribute;struct list_head entry;
@@ -564,25 +562,19 @@ static ssize_t amdgpu_get_pp_table(struct device *dev, {struct drm_device *ddev =dev_get_drvdata (dev);struct amdgpu_device *adev =drm_to_adev (ddev); -char *table =NULL ;int size, ret; ret =amdgpu_pm_get_access_if_active (adev);if (ret)return ret; - size =amdgpu_dpm_get_pp_table (adev, &table); + size =amdgpu_dpm_get_pp_table (adev, buf,PAGE_SIZE -1 );amdgpu_pm_put_access (adev);if (size <=0 )return size; -if (size >=PAGE_SIZE ) - size =PAGE_SIZE -1 ; - -memcpy (buf, table, size); -return size; }
@@ -1773,7 +1765,6 @@ static ssize_t amdgpu_get_gpu_metrics(struct device *dev, {struct drm_device *ddev =dev_get_drvdata (dev);struct amdgpu_device *adev =drm_to_adev (ddev); -void *gpu_metrics;ssize_t size =0 ;int ret;
@@ -1781,15 +1772,10 @@ static ssize_t amdgpu_get_gpu_metrics(struct device *dev,if (ret)return ret; - size =amdgpu_dpm_get_gpu_metrics (adev, &gpu_metrics); + size =amdgpu_dpm_get_gpu_metrics (adev, buf,PAGE_SIZE -1 );
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h +4 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/powerplay/inc/hwmgr.h +5 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c +2 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +4 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +3 -6
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_0_ppt.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_0_ppt.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/bridge/display-connector.c +8 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_dp_helper.c +12 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_ddi.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp.c +8 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_hdmi.c +26 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_hdmi.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/panthor/panthor_fw.c +33 -14
47 lines not on this page · raw message
drivers/gpu/drm/vmwgfx/vmwgfx_cursor_plane.c +44 -5
49 lines not on this page · raw message
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +18 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/xe/xe_device.c +39 -17
56 lines not on this page · raw message
drivers/gpu/drm/xe/xe_hw_engine_types.h +8 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/xe/xe_reg_whitelist.c +81 -6
87 lines not on this page · raw message
drivers/hv/mshv_root_main.c +32 -9
41 lines not on this page · raw message
drivers/hwmon/adt7470.c +92 -37
129 lines not on this page · raw message
drivers/hwmon/ina2xx.c +35 -26
61 lines not on this page · raw message
drivers/i2c/busses/i2c-imx.c +49 -5
54 lines not on this page · raw message
drivers/infiniband/hw/mana/qp.c +61 -7
68 lines not on this page · raw message
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c +15 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/chips-media/wave5/wave5-hw.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/media/platform/chips-media/wave5/wave5-vpuapi.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/can/ctucanfd/ctucanfd_base.c +9 -5
Lines of this file are not shown. View the raw message.
drivers/net/can/ctucanfd/ctucanfd_pci.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/can/softing/softing_fw.c +32 -14
46 lines not on this page · raw message
drivers/net/can/usb/ems_usb.c +43 -0
43 lines not on this page · raw message
drivers/net/can/usb/etas_es58x/es58x_core.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/peak_usb/pcan_usb_core.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/peak_usb/pcan_usb_fd.c +39 -1
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/peak_usb/pcan_usb_pro.c +16 -4
Lines of this file are not shown. View the raw message.
drivers/net/dsa/mt7530.c +38 -48
86 lines not on this page · raw message
drivers/net/ethernet/intel/e1000/e1000_main.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_dpll.c +12 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_main.c +10 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_vf_lib.c +27 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_vf_lib_private.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/virt/queues.c +21 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_dev.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_lib.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_txrx.c +1 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_txrx.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_vf_dev.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_virtchnl.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igbvf/netdev.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_main.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/cgx.c +12 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/cgx.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/mbox.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +79 -0
79 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +69 -28
97 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +33 -16
49 lines not on this page · raw message
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +3 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en.h +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +0 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c +9 -10
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/mana_en.c +91 -52
143 lines not on this page · raw message
drivers/net/ethernet/microsoft/mana/mana_ethtool.c +22 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/nvidia/forcedeth.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qede/qede_main.c +22 -22
44 lines not on this page · raw message
drivers/net/ethernet/realtek/rtase/rtase_main.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +8 -6
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/wangxun/libwx/wx_lib.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/phy/qualcomm/phy-qcom-m31-eusb2.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/phy/xilinx/phy-zynqmp.c +45 -17
62 lines not on this page · raw message
drivers/pinctrl/qcom/pinctrl-sc8280xp.c +11 -10
Lines of this file are not shown. View the raw message.
drivers/power/supply/macsmc-power.c +45 -7
52 lines not on this page · raw message
drivers/power/supply/max17040_battery.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/s390/crypto/zcrypt_ccamisc.c +73 -16
89 lines not on this page · raw message
drivers/spi/spi-nxp-fspi.c +80 -3
83 lines not on this page · raw message
drivers/target/target_core_transport.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/ufs/core/ufshcd.c +8 -38
46 lines not on this page · raw message
drivers/usb/typec/ucsi/ucsi.c +47 -43
90 lines not on this page · raw message
fs/binfmt_misc.c +34 -20
54 lines not on this page · raw message
fs/btrfs/disk-io.c +49 -9
58 lines not on this page · raw message
fs/erofs/fscache.c deleted +0 -664
664 lines not on this page · raw message
fs/erofs/internal.h +5 -71
76 lines not on this page · raw message
fs/erofs/ishare.c +47 -56
103 lines not on this page · raw message
fs/erofs/super.c +18 -76
94 lines not on this page · raw message
fs/ntfs/runlist.c +27 -23
50 lines not on this page · raw message
include/linux/netfilter/nf_conntrack_sip.h +1 -1
Lines of this file are not shown. View the raw message.
include/net/ip_vs.h +37 -8
45 lines not on this page · raw message
include/net/netfilter/nf_conntrack_expect.h +3 -0
Lines of this file are not shown. View the raw message.
mm/slub.c +36 -61
97 lines not on this page · raw message
net/bluetooth/hci_sync.c +151 -65
216 lines not on this page · raw message
net/bluetooth/iso.c +192 -81
273 lines not on this page · raw message
net/bluetooth/mgmt.c +64 -20
84 lines not on this page · raw message
net/can/isotp.c +239 -91
330 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_conn.c +150 -42
192 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_core.c +95 -95
190 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_proto_tcp.c +10 -38
48 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_proto_udp.c +13 -41
54 lines not on this page · raw message
net/netfilter/ipvs/ip_vs_xmit.c +30 -12
42 lines not on this page · raw message
net/xdp/xsk.c +224 -31
255 lines not on this page · raw message
net/xdp/xsk_queue.h +47 -18
65 lines not on this page · raw message
security/keys/trusted-keys/trusted_dcp.c +11 -4
Lines of this file are not shown. View the raw message.
tools/testing/selftests/clone3/clone3_set_tid.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/filesystems/fclog.c +1 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/lkdtm/tests.txt +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mm/mlock-random-test.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/mm/pagemap_ioctl.c +55 -1
56 lines not on this page · raw message
tools/testing/selftests/net/af_unix/.gitignore +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/af_unix/Makefile +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/af_unix/unix_listen.c new file +187 -0
187 lines not on this page · raw message
tools/testing/selftests/net/netfilter/nft_flowtable.sh +12 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/seccomp/seccomp_bpf.c +2 -1
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.