Linux 7.3.5
Greg Kroah-Hartman
maintainerI'm announcing the release of the 7.3.5 kernel.
All users of the 7.3 kernel series must upgrade.
The updated 7.3.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-7.3.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/ABI/testing/sysfs-fs-f2fs | 2 Documentation/admin-guide/pm/intel_idle.rst | 12 Documentation/arch/arm64/silicon-errata.rst | 3 Documentation/filesystems/overlayfs.rst | 3 Documentation/filesystems/resctrl.rst | 87 +- Documentation/hwmon/asus_rog_ryujin.rst | 6 Documentation/mm/vmemmap_dedup.rst | 15 Makefile | 2 arch/arm64/include/asm/sdei.h | 3 arch/arm64/include/asm/suspend.h | 2 arch/arm64/kernel/entry-common.c | 40 + arch/arm64/kernel/machine_kexec_file.c | 2 arch/arm64/kernel/sdei.c | 59 + arch/arm64/kernel/topology.c | 12 arch/arm64/kvm/mmu.c | 129 +-- arch/arm64/kvm/pkvm.c | 3 arch/arm64/kvm/vgic/vgic-mmio-v3.c | 10 arch/arm64/mm/mmap.c | 4 arch/arm64/mm/proc.S | 8 arch/mips/mm/cex-gen.S | 16 arch/mips/pci/ops-mace.c | 26 arch/mips/pci/pci-ip32.c | 9 arch/mips/sgi-ip32/ip32-irq.c | 45 - arch/openrisc/kernel/or32_ksyms.c | 1 arch/x86/boot/startup/sme.c | 2 arch/x86/entry/syscall_32.c | 4 arch/x86/entry/syscall_64.c | 26 arch/x86/include/asm/checksum_32.h | 2 arch/x86/include/asm/vmware.h | 24 arch/x86/kernel/acpi/cppc.c | 15 arch/x86/kernel/cpu/bugs.c | 12 arch/x86/kernel/cpu/resctrl/internal.h | 4 arch/x86/kernel/cpu/resctrl/monitor.c | 4 arch/x86/kernel/nmi.c | 8 arch/x86/kernel/x86_init.c | 2 arch/x86/kvm/mmu/mmu.c | 10 arch/x86/kvm/mmu/paging_tmpl.h | 11 arch/x86/kvm/vmx/nested.c | 1 arch/x86/kvm/x86.c | 31 arch/x86/mm/tlb.c | 16 block/bio.c | 3 block/blk-iocost.c | 3 block/blk-mq.c | 13 block/elevator.c | 30 block/ioctl.c | 4 drivers/acpi/battery.c | 12 drivers/acpi/cppc_acpi.c | 61 + drivers/acpi/utils.c | 41 + drivers/ata/libata-pmp.c | 14 drivers/ata/libata-scsi.c | 25 drivers/block/ublk_drv.c | 1 drivers/block/virtio_blk.c | 2 drivers/bluetooth/btqca.c | 3 drivers/char/hw_random/virtio-rng.c | 7 drivers/clk/nuvoton/clk-ma35d1.c | 7 drivers/cpufreq/amd-pstate.c | 25 drivers/cpufreq/cppc_cpufreq.c | 26 drivers/cxl/core/features.c | 2 drivers/dma-buf/dma-buf-mapping.c | 2 drivers/dma/qcom/bam_dma.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 3 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 17 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 21 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 41 - drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 44 + drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 7 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 3 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 19 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 16 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c | 1 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 5 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 5 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 5 drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 drivers/gpu/drm/amd/amdgpu/ih_v6_0.c | 13 drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 4 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 4 drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 41 + drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 3 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_freesync.c | 27 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c | 3 drivers/gpu/drm/amd/display/dc/core/dc.c | 6 drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c | 31 drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h | 3 drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c | 6 drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c | 7 drivers/gpu/drm/amd/display/dc/optc/dcn30/dcn30_optc.h | 18 drivers/gpu/drm/amd/display/dc/optc/dcn31/dcn31_optc.h | 22 drivers/gpu/drm/amd/display/dc/optc/dcn314/dcn314_optc.h | 18 drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.h | 11 drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.h | 11 drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.h | 12 drivers/gpu/drm/amd/display/dc/optc/dcn42/dcn42_optc.h | 2 drivers/gpu/drm/amd/display/dc/optc/dcn60/dcn60_optc.h | 2 drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c | 15 drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.h | 6 drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.h | 6 drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 6 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 20 drivers/gpu/drm/bridge/nwl-dsi.c | 17 drivers/gpu/drm/display/drm_dp_helper.c | 3 drivers/gpu/drm/drm_crtc.c | 18 drivers/gpu/drm/drm_panic.c | 7 drivers/gpu/drm/etnaviv/etnaviv_buffer.c | 40 - drivers/gpu/drm/etnaviv/etnaviv_drv.c | 6 drivers/gpu/drm/i915/display/intel_ddi.c | 2 drivers/gpu/drm/i915/display/intel_display_device.c | 5 drivers/gpu/drm/i915/display/intel_dp.c | 4 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 22 drivers/gpu/drm/i915/display/intel_plane.c | 11 drivers/gpu/drm/i915/display/intel_psr.c | 96 +- drivers/gpu/drm/i915/display/intel_psr_regs.h | 4 drivers/gpu/drm/i915/display/intel_quirks.c | 24 drivers/gpu/drm/i915/display/intel_quirks.h | 1 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 drivers/gpu/drm/loongson/lsdc_gem.c | 12 drivers/gpu/drm/loongson/lsdc_plane.c | 2 drivers/gpu/drm/loongson/lsdc_ttm.c | 14 drivers/gpu/drm/loongson/lsdc_ttm.h | 2 drivers/gpu/drm/nouveau/nvkm/core/subdev.c | 1 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c | 20 drivers/gpu/drm/scheduler/sched_entity.c | 29 drivers/gpu/drm/v3d/v3d_gem.c | 5 drivers/gpu/drm/v3d/v3d_sched.c | 2 drivers/gpu/drm/vc4/vc4_gem.c | 14 drivers/gpu/drm/vc4/vc4_hdmi.c | 10 drivers/gpu/drm/vc4/vc4_hdmi_phy.c | 5 drivers/hwmon/aquacomputer_d5next.c | 58 + drivers/hwmon/asus_rog_ryujin.c | 54 + drivers/hwmon/asus_wmi_sensors.c | 13 drivers/hwmon/chipcap2.c | 192 +++-- drivers/hwmon/coretemp.c | 13 drivers/hwmon/corsair-cpro.c | 3 drivers/hwmon/gpd-fan.c | 1 drivers/hwmon/gpio-fan.c | 7 drivers/hwmon/hp-wmi-sensors.c | 29 drivers/hwmon/lm75.c | 9 drivers/hwmon/lm87.c | 7 drivers/hwmon/nct6683.c | 4 drivers/hwmon/peci/dimmtemp.c | 21 drivers/hwmon/pmbus/pmbus_core.c | 51 - drivers/hwmon/pmbus/q54sj108a2.c | 2 drivers/hwmon/sht15.c | 22 drivers/hwmon/sht4x.c | 4 drivers/hwmon/tmp108.c | 26 drivers/idle/intel_idle.c | 11 drivers/iommu/amd/init.c | 41 + drivers/iommu/amd/iommu.c | 17 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 7 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 89 ++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 5 drivers/iommu/iommufd/io_pagetable.c | 2 drivers/iommu/iommufd/iova_bitmap.c | 19 drivers/iommu/virtio-iommu.c | 6 drivers/media/pci/intel/ipu6/ipu6-fw-isys.c | 88 +- drivers/media/pci/intel/ipu6/ipu6-isys-video.c | 4 drivers/media/pci/intel/ipu6/ipu6-isys.c | 6 drivers/media/pci/intel/ipu6/ipu6-isys.h | 5 drivers/media/platform/microchip/microchip-isc-base.c | 20 drivers/media/platform/microchip/microchip-isc-regs.h | 16 drivers/media/platform/microchip/microchip-isc.h | 4 drivers/media/platform/microchip/microchip-sama5d2-isc.c | 20 drivers/media/platform/microchip/microchip-sama7g5-isc.c | 20 drivers/media/usb/uvc/uvc_driver.c | 20 drivers/mtd/spi-nor/macronix.c | 2 drivers/net/can/dev/netlink.c | 4 drivers/net/can/dev/skb.c | 10 drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 7 drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 33 drivers/net/ethernet/jme.c | 37 - drivers/net/ethernet/jme.h | 1 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 4 drivers/net/veth.c | 5 drivers/net/vxlan/vxlan_core.c | 14 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 7 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c | 2 drivers/net/wireless/realtek/rtw88/mac80211.c | 2 drivers/net/wireless/realtek/rtw88/reg.h | 2 drivers/net/wireless/realtek/rtw88/tx.c | 9 drivers/net/wireless/realtek/rtw88/tx.h | 3 drivers/net/wireless/realtek/rtw88/usb.c | 68 + drivers/net/wireless/realtek/rtw88/usb.h | 5 drivers/net/wireless/rsi/rsi_91x_core.c | 2 drivers/nvme/common/keyring.c | 1 drivers/nvme/host/core.c | 21 drivers/nvme/host/multipath.c | 2 drivers/nvme/host/pci.c | 2 drivers/nvme/host/pr.c | 8 drivers/nvme/host/rdma.c | 7 drivers/nvme/host/tcp.c | 213 ++++-- drivers/nvme/target/admin-cmd.c | 16 drivers/nvme/target/configfs.c | 4 drivers/nvme/target/core.c | 8 drivers/nvme/target/nvmet.h | 8 drivers/pci/controller/cadence/pcie-cadence-plat.c | 33 drivers/pci/controller/cadence/pcie-cadence.c | 16 drivers/pci/controller/cadence/pcie-cadence.h | 2 drivers/pci/controller/dwc/pcie-designware.c | 2 drivers/pci/controller/dwc/pcie-designware.h | 1 drivers/platform/chrome/cros_ec_ishtp.c | 2 drivers/platform/chrome/cros_usbpd_notify.c | 41 - drivers/ptp/ptp_sysfs.c | 6 drivers/scsi/aic7xxx/aic79xx_core.c | 4 drivers/scsi/aic7xxx/aic79xx_osm.h | 26 drivers/scsi/aic7xxx/aic7xxx_core.c | 8 drivers/scsi/aic7xxx/aic7xxx_pci.c | 20 drivers/scsi/scsi_bsg.c | 8 drivers/target/target_core_device.c | 18 drivers/target/target_core_fabric_lib.c | 10 drivers/target/target_core_tpg.c | 10 drivers/target/target_core_user.c | 5 drivers/thermal/intel/int340x_thermal/int3403_thermal.c | 3 drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c | 6 drivers/thermal/intel/int340x_thermal/processor_thermal_device.c | 2 drivers/vdpa/solidrun/snet_ctrl.c | 3 drivers/vdpa/vdpa_user/iova_domain.c | 11 drivers/vhost/scsi.c | 7 drivers/vhost/vdpa.c | 8 drivers/vhost/vhost.c | 3 drivers/vhost/vringh.c | 27 drivers/vhost/vsock.c | 34 fs/9p/v9fs.c | 18 fs/9p/vfs_inode.c | 8 fs/btrfs/ioctl.c | 24 fs/btrfs/sysfs.c | 1 fs/ceph/addr.c | 6 fs/erofs/fileio.c | 18 fs/ext2/file.c | 3 fs/ext2/inode.c | 13 fs/f2fs/checkpoint.c | 13 fs/f2fs/data.c | 28 fs/f2fs/f2fs.h | 10 fs/f2fs/gc.c | 11 fs/f2fs/node.c | 75 +- fs/f2fs/segment.c | 3 fs/f2fs/super.c | 24 fs/f2fs/sysfs.c | 2 fs/fat/inode.c | 2 fs/nfsd/nfs2acl.c | 64 + fs/nfsd/nfs3proc.c | 58 + fs/nfsd/nfs3xdr.c | 2 fs/nfsd/nfs4proc.c | 60 + fs/nfsd/nfs4recover.c | 49 + fs/nfsd/nfs4state.c | 24 fs/nfsd/nfs4xdr.c | 2 fs/nfsd/nfsctl.c | 56 + fs/nfsd/nfsproc.c | 2 fs/nfsd/state.h | 2 fs/nfsd/vfs.c | 108 --- fs/nfsd/vfs.h | 21 fs/nfsd/xdr3.h | 2 fs/notify/inotify/inotify_fsnotify.c | 2 fs/ntfs/ea.c | 5 fs/ntfs3/xattr.c | 25 fs/ocfs2/cluster/tcp.c | 5 fs/ocfs2/dcache.h | 5 fs/ocfs2/dlm/dlmmaster.c | 70 + fs/ocfs2/dlmglue.c | 34 fs/ocfs2/filecheck.c | 2 fs/ocfs2/journal.c | 15 fs/ocfs2/journal.h | 1 fs/ocfs2/move_extents.c | 70 + fs/ocfs2/super.c | 3 fs/ocfs2/xattr.c | 120 +++ fs/open.c | 1 fs/overlayfs/dir.c | 46 - fs/overlayfs/export.c | 4 fs/overlayfs/inode.c | 8 fs/overlayfs/namei.c | 13 fs/overlayfs/overlayfs.h | 21 fs/overlayfs/readdir.c | 6 fs/overlayfs/super.c | 12 fs/overlayfs/util.c | 13 fs/proc/task_mmu.c | 2 fs/smb/server/mgmt/user_session.c | 4 fs/smb/server/smb2pdu.c | 65 + fs/smb/server/smbacl.c | 43 + fs/smb/server/vfs.c | 4 fs/smb/server/vfs.h | 2 fs/smb/server/vfs_cache.c | 58 + fs/udf/balloc.c | 11 fs/udf/super.c | 80 ++ fs/udf/truncate.c | 7 fs/xfs/libxfs/xfs_attr_leaf.c | 9 fs/xfs/libxfs/xfs_bmap.c | 14 fs/xfs/libxfs/xfs_bmap.h | 10 fs/xfs/libxfs/xfs_btree.c | 4 fs/xfs/scrub/attr.c | 102 ++ fs/xfs/scrub/attr_repair.c | 16 fs/xfs/scrub/dir.c | 110 ++- fs/xfs/scrub/dir_repair.c | 100 ++ fs/xfs/scrub/quota_repair.c | 33 fs/xfs/xfs_discard.c | 26 fs/xfs/xfs_file.c | 2 fs/xfs/xfs_healthmon.c | 2 fs/xfs/xfs_ioctl32.c | 4 fs/xfs/xfs_ioend.c | 2 fs/xfs/xfs_iomap.c | 28 fs/xfs/xfs_iomap.h | 3 fs/xfs/xfs_pnfs.c | 52 + include/acpi/acpi_bus.h | 7 include/acpi/cppc_acpi.h | 6 include/asm-generic/tlb.h | 3 include/crypto/mldsa.h | 6 include/dt-bindings/clock/nuvoton,ma35d1-clk.h | 3 include/linux/assoc_array_priv.h | 2 include/linux/blkdev.h | 4 include/linux/can/can-ml.h | 3 include/linux/can/dev.h | 2 include/linux/can/skb.h | 4 include/linux/damon.h | 10 include/linux/huge_mm.h | 5 include/linux/hugetlb.h | 15 include/linux/ksm.h | 6 include/linux/memfd.h | 9 include/linux/mmu_notifier.h | 3 include/linux/mmzone.h | 2 include/linux/nfs4.h | 6 include/linux/shmem_fs.h | 15 include/linux/srcu.h | 36 + include/linux/sunrpc/clnt.h | 3 include/linux/sunrpc/svc.h | 7 include/linux/userfaultfd_k.h | 2 include/net/espintcp.h | 5 include/net/inet_frag.h | 9 include/net/netns/can.h | 2 include/net/sctp/sm.h | 1 include/sound/cs35l56.h | 4 include/sound/hwdep.h | 1 include/uapi/linux/iommufd.h | 6 io_uring/cancel.c | 26 io_uring/poll.c | 62 + io_uring/rsrc.c | 21 io_uring/sqpoll.c | 26 kernel/events/core.c | 9 kernel/fork.c | 20 kernel/panic.c | 2 kernel/sched/fair.c | 4 lib/assoc_array.c | 355 ++++++---- lib/base64.c | 3 lib/crypto/Kconfig | 6 lib/crypto/mldsa.c | 15 lib/crypto/tests/mldsa_kunit.c | 9 mm/cma.c | 14 mm/damon/core.c | 32 mm/damon/sysfs-schemes.c | 8 mm/filemap.c | 84 +- mm/gup.c | 68 + mm/huge_memory.c | 146 +++- mm/hugetlb.c | 92 +- mm/hugetlb_vmemmap.c | 8 mm/internal.h | 38 - mm/khugepaged.c | 75 +- mm/ksm.c | 66 + mm/madvise.c | 9 mm/memcontrol.c | 5 mm/memfd.c | 2 mm/memory-tiers.c | 29 mm/memory.c | 129 ++- mm/mempolicy.c | 4 mm/migrate.c | 5 mm/mm_init.c | 2 mm/mmap.c | 8 mm/mmu_notifier.c | 24 mm/mremap.c | 103 +- mm/nommu.c | 2 mm/page-writeback.c | 8 mm/page_alloc.c | 30 mm/page_alloc.h | 14 mm/rmap.c | 23 mm/shmem.c | 141 ++- mm/shmem_quota.c | 28 mm/swapfile.c | 7 mm/truncate.c | 13 mm/userfaultfd.c | 57 - mm/util.c | 13 mm/vma.c | 54 + mm/vma_init.c | 3 mm/vmscan.c | 29 net/9p/trans_usbg.c | 89 +- net/9p/trans_virtio.c | 5 net/9p/trans_xen.c | 10 net/batman-adv/bat_iv_ogm.c | 5 net/batman-adv/distributed-arp-table.c | 1 net/batman-adv/main.c | 12 net/batman-adv/multicast_forw.c | 5 net/batman-adv/tp_meter.c | 2 net/batman-adv/translation-table.c | 133 ++- net/batman-adv/types.h | 8 net/bluetooth/hci_sync.c | 25 net/bluetooth/l2cap_core.c | 47 + net/can/af_can.c | 54 - net/can/bcm.c | 50 - net/can/gw.c | 7 net/can/isotp.c | 230 ++++-- net/can/proc.c | 69 + net/can/raw.c | 274 ++++--- net/core/dev.c | 4 net/core/filter.c | 23 net/core/sock.c | 6 net/ipv4/cipso_ipv4.c | 9 net/ipv4/inet_connection_sock.c | 6 net/ipv4/inet_fragment.c | 5 net/ipv4/inet_hashtables.c | 2 net/ipv4/inet_timewait_sock.c | 4 net/ipv4/syncookies.c | 2 net/ipv4/tcp_fastopen.c | 2 net/ipv4/xfrm4_output.c | 7 net/ipv6/addrconf.c | 3 net/ipv6/datagram.c | 4 net/ipv6/inet6_hashtables.c | 2 net/ipv6/raw.c | 3 net/l2tp/l2tp_core.c | 13 net/mac80211/tdls.c | 3 net/mac80211/tx.c | 2 net/mptcp/pm_kernel.c | 1 net/mptcp/subflow.c | 11 net/qrtr/af_qrtr.c | 53 + net/sched/sch_generic.c | 41 + net/sched/sch_qfq.c | 3 net/sched/sch_taprio.c | 5 net/sctp/sm_make_chunk.c | 14 net/sctp/socket.c | 57 + net/smc/smc_rx.c | 39 + net/sunrpc/rpcb_clnt.c | 22 net/sunrpc/svc.c | 42 + net/wireless/reg.c | 3 net/xfrm/espintcp.c | 43 - net/xfrm/xfrm_interface_core.c | 8 net/xfrm/xfrm_policy.c | 11 rust/kernel/cpufreq.rs | 4 sound/core/hwdep.c | 2 sound/core/ump_convert.c | 2 sound/hda/codecs/realtek/alc269.c | 45 + sound/hda/codecs/side-codecs/tas2781_hda.c | 27 sound/pci/cs46xx/dsp_spos.c | 2 sound/pci/cs46xx/dsp_spos_scb_lib.c | 3 sound/soc/amd/yc/acp6x-mach.c | 7 sound/soc/codecs/cs35l56-sdw.c | 27 sound/soc/codecs/cs35l56-shared.c | 38 + sound/soc/codecs/cs35l56.c | 17 sound/soc/codecs/cs35l56.h | 1 sound/soc/codecs/hdac_hda.c | 25 sound/soc/codecs/tas2770.c | 14 sound/soc/qcom/qdsp6/q6apm.c | 6 sound/soc/qcom/qdsp6/q6prm.c | 3 sound/soc/sof/intel/hda-codec.c | 23 sound/soc/sof/intel/hda-sdw-bpt.c | 6 sound/usb/bcd2000/bcd2000.c | 20 sound/usb/caiaq/input.c | 2 sound/usb/line6/capture.c | 29 sound/usb/midi.c | 64 + sound/usb/qcom/qc_audio_offload.c | 7 sound/usb/usx2y/us122l.c | 27 sound/usb/usx2y/usX2Yhwdep.c | 5 sound/usb/usx2y/usb_stream.c | 9 sound/usb/usx2y/usbusx2yaudio.c | 43 + tools/perf/tests/tool_pmu.c | 79 ++ tools/perf/util/evsel.c | 30 tools/perf/util/hwmon_pmu.c | 2 tools/perf/util/tool_pmu.c | 2 tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c | 2 tools/testing/selftests/net/fib_nexthops.sh | 40 - 466 files changed, 7065 insertions(+), 2708 deletions(-)
Akshay Jindal (1):
iommu/amd: Skip non-IVMD entries when parsing IVRS memory definitions
Alex Hung (1):
drm/amd/display: Avoid closing unowned DDC pins
Alex Kazinsky (2):
wifi: rsi: Skip TX aggregation setup for non-QoS frames
ALSA: cs46xx: Handle SCB creation failures before dereferencing
Alexandr (1):
ALSA: hda/realtek: Enable mute and mic-mute LEDs on HP ENVY 17-cr0xxx
Alexei Solcanu (1):
hwmon: (gpd-fan) Reset both fans to automatic on duo boards
Alexei Starovoitov (1):
net: reject a negative TCP header offset in qdisc_pkt_len_segs_init()
Ali Ahmet Memiş (3):
ACPI: utils: Add exclusive AML evaluation helpers
ACPI: battery: Evaluate battery methods exclusively
thermal: intel: int340x: Evaluate _TMP exclusively
Amir Goldstein (2):
ovl: inherit FMODE_NONOTIFY when opening directory realfiles selftests/fscontext_ns: expect EINVAL for overlay descendant userns create
Andrea Parri (1):
iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA
Andrew Luebke (1):
scsi: aic79xx: Fix NULL pointer dereference in device reset
Andrew Morton (2):
block: restore the iterator when rejecting a misaligned bio
openrisc: export __mulsi3 for modules
André Draszik (2):
drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind drm/drm_crtc: fix race with dma_fence_signal() in ::get_driver_name()
Andy Shevchenko (1):
intel_idle: Use 2-argument strscpy()
Antti Laakso (1):
media: ipu6: Rename pointer to firmware context
Arnaldo Carvalho de Melo (1):
perf evsel: Close the fds opened so far when disabling missing features
Arnd Bergmann (1):
mm/vmscan: avoid false-positive -Wuninitialized warning, again
Ashok Raj (1):
cxl/features: Ensure that count is set before access to ent[] __counted_by()
Babu Moger (2):
x86/resctrl: Correct ABMC counter ID field width x86,fs/resctrl: Keep mbm_assign_mode in default mode at boot
Baek Kyu, Kim (2):
hwmon: (corsair-cpro) Cache fan target only after a successful command
hwmon: (gpio-fan) Update the speed cache before dropping the PM reference
Balakrishnan Sambath (4):
media: microchip-isc: store the unshifted PFE_CFG0 BPS value
media: microchip-isc: fix WB offset and gain register field masking
media: microchip-isc: fix ISC_PFG_CFG0_BPS macro name typo
media: microchip-isc: fix SBGGR10 Bayer pattern
Baolin Wang (1):
mm: memory: fix truncation removing mapped folios
Bartosz Golaszewski (1):
dmaengine: qcom: bam_dma: free interrupt before the clock in error path
Bas Nieuwenhuizen (1):
drm/amdgpu: Check cs flags.
Binbin Deng (1):
xfs: set healthmon mount cookie before publishing it
Breno Leitao (2):
x86/bugs: Select the BHI mitigation based on the attack vector properly x86/nmi: Ignore negative NMI handler durations
Bryam Vargas (1):
net/smc: don't spin in smc_rx_recvmsg() while a pipe holds spliced data
Ce Sun (1):
drm/amdgpu: skip RAS error count reset in debug mode
Cen Zhang (7):
ocfs2: validate move extents against a stable EOF
ocfs2: keep locking_state within the cluster connection lifetime ocfs2/dlm: serialize migration MLE cleanup on failure
ocfs2: stop recovery before shutting down local allocators ocfs2/cluster: unlink socket containers before releasing resources
ocfs2: wait for filecheck kobject release after a failed add
ocfs2: cache the mount context for dentry lock callbacks
Chao Yu (6):
f2fs: fix to avoid folio->mapping dereference in is_{meta, node}_folio()
f2fs: fix to check continuousness in f2fs_sync_meta_pages() correctly
f2fs: zone: fix to avoid bio split on sequential zone
f2fs: fix to avoid potential reference count leak in do_garbage_collect()
f2fs: fix to invalidate curseg if change_curseg() fails
f2fs: fix to use bio_in_atomic() in f2fs_write_end_io()
Cheng Ming Lin (1):
mtd: spi-nor: macronix: Restore fallback parameters for MX25L12805D
Chengfeng Ye (3):
xfrm: retry inexact policy lookup after node reinsertion net/9p/usbg: clear stale request context after abort
batman-adv: Close OGM aggregation before transmission
Chris Down (1):
mm: make swapoff interruptible when unusing mms/shmem
Chris Mason (21):
io_uring/cancel: drop sqd->lock while SQPOLL waits mm/mempolicy: charge shared policy nodes
mm/shmem: stop retrying folios that cannot be split mm/shmem: preserve data in clean folios when splitting fails mm/huge_memory: fix truncate racing with PMD zapping mm/huge_memory: fix zapping migration entries for device-private THPs mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs mm/gup: fix clearing folios in memfd_pin_folios()
mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast mm/mmu_notifier: set ->mm only after mmgrab()
mm/memory: reject remote COW faults on PFN mappings
mm: fix unkillable fault loop on MAP_DROPPABLE memory
mm: fix deadlock of mremap() against UFFDIO_MOVE
mm/ksm: check large swap-cache folios before mapping them mm/vma: call ->may_split() before a partial merge
ovl: fail the mount if the casefold flag has changed
ovl: do not let chattr change the casefold flag
ovl: fix whiteout creation in casefolded directories
ovl: look up the index by the decoded origin
x86/mm: Fix global ASID handed out to two processes mm/shmem: honour F_SEAL_EXEC when an ACL is set
Chris Simpson (1):
ALSA: hda/realtek: Enable bass speakers on Alienware m17 R3
Christian Aurich Zanettini Martins (1):
nvme-rdma: fix NULL queue->ctrl dereference on reconnect
Christian Gmeiner (2):
drm/etnaviv: Fix NULL dereference on unbind without PPU flop reset drm/etnaviv: Flush the tile status cache through both the PE and BLT
Christian Loehle (3):
ACPI: CPPC: Validate FFH register fields before hardware access
ACPI: CPPC: Accept requests to retain immutable autonomous selection
cpufreq: CPPC: Select the frequency-invariance callback per CPU
Christoph Hellwig (1):
xfs: fix recovery of partial attr removals
Chuck Lever (7):
NFSD: Replace nfsd_write()'s "stable" argument with "iocb_flags"
NFSD: Move version-specific ACCESS maps into per-version code
NFSD: map fh_verify() status codes for NFS_ACLv2 replies
NFSD: Send a meaningful CB_RECALL_ANY keep count
NFSD: Move the cld upcall message out of the caller's stack frame
NFSD: Complete a cld upcall when the daemon closes the pipe
NFSD: Complete a cld upcall when copying its reply fails
ChunYuZhiQiang (1):
can: dev: can_fill_info(): don't wake up controller if interface is down
Cong Zhang (1):
virtio_blk: use synchronous quiesce in virtblk_freeze_priv()
Cunhao Lu (2):
can: skb: make echo skb freeing safe in any IRQ context
can: dev: can_put_echo_skb(): free skb on invalid echo index
Daeho Jeong (3):
f2fs: return -EIO for a lost inode block after cp_error
f2fs: release a removed xattr node in roll-forward recovery
f2fs: expose resizable_tail feature via sysfs
Daehyeon Ko (2):
vhost/vsock: size receive SKBs from declared payload sched/fair: Clear throttle state when leaving the fair class
Daejun Park (9):
xfs: don't skip free extents in later batches of a whole-AG FITRIM
xfs: don't skip free extents of the longest length in a whole-AG FITRIM
nvme: unregister when pr_register() is given a zero new key
xfs: mark the inode preallocated for pNFS write layouts past EOF
xfs: add a flag to convert unwritten extents without allocating blocks
xfs: refuse a pNFS LAYOUTCOMMIT of a range without blocks
xfs: clamp a pNFS LAYOUTCOMMIT extent before computing its end
xfs: cap the block count of xfs_iomap_write_direct() at one extent
xfs: clamp the pNFS layout range to the maximum file size
Danish Khateeb (1):
perf/core: Don't send SIGTRAP after exec removed the event
Dariusz Marcinkiewicz (1):
drm/amdgpu: check amdgpu_vm_ready() in dma-buf move notify
Darrick J. Wong (6):
xfs: break out xattr entry checks into separate functions
xfs: check for buffer overruns when examining local/remote xattr entries
xfs: refactor directory data block walking loops in scrub
xfs: improve dirent bounds checking in scrub and repair
xfs: reinitialize dquot block if non-first dquot can't load
xfs: forcibly reset quota timers when upgrading to bigtime during repair
David Carlier (1):
media: ipu6: Fix firmware config leak on stream start
David Hildenbrand (Arm) (28):
mm/shmem: discard whole new large folios on fallocate rollback
mm/shmem: rescan after nonuniform folio splitting
mm/shmem: fix truncate hang in large swap entry
mm/shmem: preserve allocation errors when swapping in large entries
mm/shmem: fix truncate loop after boundary swapin failure
mm/shmem: fix accounting of swapin-error markers
mm/shmem: fix truncation of files containing only swapin-error markers
fork: take mmap_lock before copying mm_struct
mm/shmem: make shmem_file() check the file's inode
mm/truncate: look again if a folio left the mapping
mm/filemap: finish fault cleanup before dropping the fault lock
mm/rmap: handle device-exclusive entries in folio_referenced_one() mm/huge_memory: fix list corruption when deferred_split_scan() races with deferred_split_folio() mm/huge_memory: properly handle refcounted PUD mappings on fork
mm: fix address wraparound when scanning large folio PTEs
mm/vma: write lock source VMA before duplicating it in __split_vma()
mm/gup: recheck the PUD under PTL in follow_pud_mask()
mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast mm/userfaultfd: write-lock the VMA before waking waiters when unregistering mm/mremap: use pudp_huge_get_and_clear() when moving huge PUDs
mm/mremap: recheck PUDs under the page table lock
mm/madvise: fix data loss from MADV_FREE on a KSM page
mm/ksm: reset the unstable trees of all nodes
mm/ksm: fix use of a freed anon_vma at swap-in
mm/huge_memory: split huge PUDs when adjusting VMA boundaries
mm/vma: don't leak the charge for stack growth
mm/memory-tiers: unregister empty tiers outside memory_tier_lock mm/userfaultfd: only allocate anon_vma in CoW mappings
David Lee (1):
sctp: hold shkey across socket migration
Devin Wittmayer (1):
drm/panic: Fix kmsg screen hang on a long log line
Dom Cobley (1):
drm/vc4: hdmi: power down the BCM2712 PHY when the output is disabled
Erhan Bilgili (2):
drm/amdgpu: Fix duplicate dependency fence releases drm/amdgpu: Report MES ring wait timeouts.
Eric Biggers (4):
lib/crypto: mips: Disable Octeon SHA code on little-endian kernels lib/crypto: mldsa: Check pk_len before doing pointer arithmetic lib/crypto: mldsa: Explicitly check that 'alg' is a valid value lib/crypto: mldsa: Add __must_check to mldsa_verify()
Eric Dumazet (1):
inet: frags: limit the truesize of a reassembly queue
Esben Haabendal (2):
drm/bridge: nwl-dsi: Cleanup endpoint mux control selection drm/bridge: nwl-dsi: Limit LCDIF specific sync override
Evanshenf (3):
drm/loongson: Fix framebuffer selection in async cursor updates drm/loongson: Fix double free on BO initialization failure drm/loongson: Handle buffer mapping failures when clearing a BO
Ewan D. Milne (1):
nvmet: don't return memory contents beyond valid data when reading ANA log page
Fang Xieyan (3):
vringh: bound top-level re-entry into indirect tables
vringh: reject empty / undersized indirect descriptor tables
vhost: fix used ring index wrap in vhost_add_used_n_in_order
Federico Musto (1):
net: atl1c: drop oversized RX frames instead of panicking
Finn Zeruhn (1):
drm/dp: keep MOT set between messages when no_zero_sized is set
Fourie Zhang (1):
xfrm4: use a full socket for local errors
Franck Baur (1):
net: jme: keep RX MAC clock enabled for WoL
Fuad Tabba (1):
KVM: arm64: Use kvm_s2_fault_vma_info in gmem_abort()
Gael Blivet (1):
ksmbd: look up stream size by exact xattr name
Gianluca Balboni (1):
ASoC: amd: yc: Add DMI quirk for HP OmniBook 3 Laptop 16-by0xxx
Greg Kroah-Hartman (1):
Linux 7.3.5
Gregory Price (Meta) (1):
mm/page_alloc: let the highest memory node recover from hopeless state
Guanglei Zhu (1):
ceph: clamp the inline data length in ceph_fill_inline_data()
Guenter Roeck (16):
hwmon: (aquacomputer_d5next) Check maxcollection when probing AQUAERO devices
hwmon: (asus_wmi_sensors) Avoid global struct mutation
hwmon: (hp-wmi-sensors) Avoid global struct mutation
hwmon: (hp-wmi-sensors) Fix unbounded loops in scale_numeric_sensor()
hwmon: (lm87) Fix drvdata type confusion in vrm_show() and vrm_store()
hwmon: (nct6683) Fix incorrect struct cast in show_pwm() and store_pwm()
hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind
hwmon: (pmbus/q54sj108a2) Add missing NULL pointer check
hwmon: (pmbus) Check return value from pmbus_thermal_add_sensor()
hwmon: (pmbus) Release devres allocated memory after devm_thermal_of_zone_register error
hwmon: (pmbus) Fix return value check from thermal zone registration
hwmon: (lm75) Fix setting polarity mask for chips with 16-bit config register
hwmon: (tmp108) Fix initial conversion delay and wait until ready
hwmon: (coretemp) Check for NULL platform device in hotplug callbacks
hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds
hwmon: (sht4x) Convert update_interval to jiffies in pending data check
Guixin Liu (1):
nvme-tcp: Validate the queue state under the queue lock in the address attribute
Hemanth Selam (1):
platform/chrome: Fix typos in comments
Hengyu Liang (4):
btrfs: fix chattr failing on nodatasum files that have the compress flag fs/proc/task_mmu: return -ENOTTY for unknown pagemap ioctls
l2tp: only return sessions of the given tunnel in l2tp_session_get()
erofs: fix metadata reads at the end of file-backed images
Hugo Sales (1):
drm/amdgpu: Clamp the ATIF backlight curve to its 99 points
Hui Su (1):
perf evsel: Restrict incremental open error unwind
Hungyu Lin (6):
ext2: preserve completed DIO bytes when buffered fallback fails mm/page-writeback: avoid 32-bit overflow in dirty threshold shares mm/migrate: untag addresses when querying page nodes
inotify: do not coalesce rename events
block: Return the soft block size for compat BLKBSZGET
ext2: preserve IOMAP_F_DIRTY for extending direct writes
HyeongJun An (1):
ALSA: ump: Fix dropped data bytes at UMP System message conversion
Hyungjung Joo (1):
net/9p/usbg: clear stale client pointer on close
Hyunwoo Kim (1):
net: restore refcount ordering for lockless socket access
Ian Bridges (6):
ksmbd: require DELETE access for delete-on-close opens
ksmbd: enforce the read-only share flag when creating a stream
ksmbd: revert fsids on durable reconnect and replay failure
ksmbd: do not read past the DACL in the access denied debug message
ksmbd: grant a POSIX ACL group entry only to the group's members
ksmbd: let the owner read and change the DACL when no ACE names it
Ido Schimmel (1):
vxlan: Stop rejecting dynamic FDB entries with a nexthop ID
Ilia Mirkin (1):
drm/nouveau/devinit/gf100-: try to avoid double-running vbios scripts
Imre Kaloz (4):
scsi: aic7xxx: Use default settings on the SGI O2 onboard controllers
MIPS: mm: Fix the cache error vector jump for XKPHYS kernels
MIPS: sgi-ip32: Mask MACE PCI interrupts in CRIME only
MIPS: sgi-ip32: Leave MACE PCI control alone in config accesses
Jack Blessed Kimani (1):
ksmbd: fix NULL pointer dereference in session_user_name() and session_account_type()
Jamal Hadi Salim (2):
bpf: Fix skb_pull() BUG in __bpf_redirect_neigh() net/sched: clamp skb->queue_mapping before indexing the tx queue
James Calligeros (1):
ASoC: tas2770: Fix error detection in tas2770_set_dai_tdm_idle
James Clark (1):
net: ethernet: ti: am65-cpsw-nuss: Enable timestamping of unicast PTP packets
James Fairweather (1):
platform/chrome: cros_usbpd_notify: Only use drvdata when parent is GOOG0004
Janne Grunau (1):
wifi: brcmfmac: cfg80211: Report port_authorized for 4-way HS offload
Jared Wuerzburger (1):
ALSA: hda/realtek: Fix internal mic on Minisforum V3 and V3 SE
Jarkko Sakkinen (1):
nvme-keyring: Add a missing key_put() call to nvme_tls_key_lookup()
Jason Gunthorpe (1):
iommu/arm-smmu-v3: Handle ARM erratum for CONT under invalidation with SVA
Jason Perlow (1):
wifi: brcmfmac: map msgbuf RX packet IDs bidirectional
Javier Carrasco (11):
hwmon: chipcap2: fix command error diagnostics
hwmon: chipcap2: fix off-by-one in command mode retry loop
hwmon: chipcap2: fix be16 handling
hwmon: chipcap2: defer probe when IRQs are unavailable
hwmon: chipcap2: fix IRQ teardown ordering
hwmon: chipcap2: disable device after hwmon teardown
hwmon: chipcap2: enable IRQ processing when regulator is already enabled
hwmon: chipcap2: balance regulator state
hwmon: chipcap2: do not discard pending alarms on disable
hwmon: chipcap2: serialize access to the alarm indicators
hwmon: chipcap2: synchronize ready IRQ state
Jeff Layton (4):
NFSD: report listener creation failures through extack
SUNRPC: report local rpcbind calls that get no answer
NFSD: stop registering with rpcbind after a failure in listener_set
nfsd: shorten extack string returned with dodgy listener
Jens Axboe (3):
io_uring/sqpoll: don't attach to a thread that is canceling io_uring/poll: don't poll a writer for a read side hangup io_uring/poll: don't poll a writer for urgent data
Jesse Zhang (11):
drm/amdgpu: sign extend the addresses GEM_OP(GET_MAPPING_INFO) returns drm/amdgpu: parse CS IBs at the BO offset their VA mapping starts at drm/amdgpu: keep the CS user fence BO in GTT
drm/amdkfd: use the queue's process info for the WPTR BO eviction fence drm/amdgpu/userq: validate the moved individual BOs on restore drm/amdgpu/gfx12: disallow GFXOFF while updating the SPM VMID drm/amdgpu: drop the dma-buf reference when a KFD import fails drm/amdgpu: unlock the VM and BO when attaching a KFD BO fails drm/amdgpu: rewrite all PTEs of the BOs after a VM reset drm/amdgpu: don't walk the CS chunks when allocating them failed drm/amdgpu: don't drop the gang dependency fence twice
Jiale Yao (1):
hwmon: (aquacomputer_d5next) reject short status reports
Jianyun Gao (1):
xfs: fix temporary cursor leak in btree shift corruption paths
Jinjie Ruan (1):
arm64: kexec_file: Fix elf_headers memory leak in retry loop
Jinwang Li (1):
Bluetooth: L2CAP: Ignore connection responses with wrong ident
Johannes Weiner (2):
mm: page_alloc: do not give all non-blocking requests reserve access
mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES
Joonhoe Kim (1):
net: qrtr: announce local services again once our HELLO is sent
Jose Maria Casanova Crespo (1):
drm/v3d: Initialize timedout_batches when running a CSD job
Josef Bacik (14):
tmpfs: keep the quota soft limits of an unused id
tmpfs: preserve explicitly disabled quota limits
mm/mglru: don't use stack pointers when walking PUD and PMD tables mm/memfd: make f_pos accesses atomic
mm/filemap: read mapping->a_ops->free_folio under i_lock mm/filemap: don't lose a folio lock wakeup to a signal
blk-mq: end the request if getting a keyslot fails mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp() mm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp() mm/userfaultfd: wake all waiters on unregister mm/mmu_gather: fix flushing ranges with 4 GiB or larger mm/mmu_notifier: finish non-blocking interval invalidation on error mm/mremap: fix moving PUD leaves
mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit
Joseph Qi (5):
ocfs2: find the xattr entry again after defragmenting a bucket
ocfs2: find the xattr entry again after converting a block to a bucket
ocfs2: do not read the entry array of an empty xattr bucket
ocfs2: do not index before the entry array when dividing an empty bucket
ocfs2: do not read the entry array of an empty xattr block
Jouni Högander (5):
drm/i915/psr: Clear selective fetch area when duplicating plane state drm/i915/display: Add enabled pipe planes into state for selective fetch drm/i915/psr: Disable linked plane sel fetch as well drm/i915/psr: Fix SFF and CFF CTL register bit definitions drm/i915/psr: Don't clip plane state destination rectangle
Jun Yang (1):
sctp: re-point retained control chunks on association migration
Kairui Song (1):
mm/mglru: use explicit tier range in read_ctrl_pos()
Kaixuan Li (2):
can: isotp: check the frame type, not just the length
f2fs: bound the SIT/NAT bitmaps by the checkpoint pack
Kent Russell (1):
drm/amdgpu: Ensure that harvest information gets set
Kevin Mitchell (1):
iommu/amd: remove obsolete domain pointer warning on release
Kevin Wang (1):
drm/amd/pm: populate unique ID for smu 13.0.7
Kiryl Shutsemau (Meta) (3):
mm/hugetlb_vmemmap: map the shared tail page writable
arm64: sdei: Run the event handler on the kernel vectors
arm64: sdei: Preserve the interrupted context's exception registers
Krystian Kaniewski (1):
blk-mq: fix out-of-bounds read in blk_mq_free_rqs
Kyle Zeng (4):
batman-adv: mcast: validate tracker padding before forwarding mm/khugepaged: flush deferred unmaps before dropping a failed folio net/sched: sch_qfq: prevent aggregate self-replacement
mptcp: pm: kernel: use RCU to free endpoint listeners
Kylie C (1):
drm/amd/display: Don't select zero V_TOTAL_MIN/MAX on seamless boot
Lance Yang (2):
mm/ksm: fix userfaultfd protection during merge and unmerge
khugepaged: fix readahead lock inversion in collapse_file()
Laveesh Bansal (1):
block: only serialize elevator switches of the same queue
Lee Jones (1):
ASoC: SOF: Intel: hda-sdw-bpt: Stop active DMA before closing BPT streams
Li Zhe (2):
mm/hugetlb: fix mremap move length truncation mm/hugetlb: fix mremap deadlock when PMD sharing is possible
Linmao Li (1):
PCI: cadence: Store the core controller in platform drvdata
Linus Torvalds (9):
assoc_array: don't lose objects when a shortcut is split on a word boundary
assoc_array: don't lose objects when a root shortcut is split at level 4
assoc_array: move in-place insertion into a function of its own
assoc_array: fill the segment cache in one place
assoc_array: move node splitting into a function of its own
assoc_array: move shortcut creation into a function of its own
assoc_array: choose between splitting a node and a shortcut without gotos
assoc_array: don't chain a new shortcut onto an existing one
assoc_array: keep gc's cleanup out of the live tree on allocation failure
Liu Changjie (1):
can: peak_usb: pcan_usb_fd_decode_buf(): accept short uCAN end-of-list records
Lorenzo Stoakes (ARM) (1):
mm/vma: update VMA iterator state on error in new VMA merge
Lu Yao (1):
drm/i915/gem: Reset err for each fence entry
Lucas Tanure (2):
drm/vc4: hdmi: always cancel the scrambling work synchronously drm/vc4: hdmi: enable scrambling before the TMDS clock starts
Marc Zyngier (1):
KVM: arm64: vgic: Stop the target vcpu when disabling LPIs
Marco Ziliani (1):
ata: libata-pmp: disable the SEMB port on Marvell 88SM9705
Martin Belanger (1):
nvme-tcp: skip TLS control records while waiting for the ICResp
Masafumi Suzuki (1):
sctp: account for chunk padding in sctp_init_cause()
Matheus Alves de Almeida (1):
fat: hold truncate_lock in fat_write_failed()
Matthew Schwartz (1):
drm/amd/display: Keep the nominal vtotal while VRR is inactive
Matthias Goergens (4):
udf: don't let the extent type hide an exhausted free-space table extent
udf: check the unallocated space table when it is loaded
udf: fix preallocation discarding before an empty allocation extent
udf: don't use eloc after the end of the unallocated space table
Maíra Canal (3):
drm/vc4: Publish the output fence outside of job_lock drm/vc4: Drop the BO reservations outside of job_lock drm/v3d: Widen cache_clean_lock over the whole L2TCACTL sequence
Mehmet Fide (4):
wifi: rtw88: usb: route bmc frames via the high queue only for DTIM delivery
wifi: rtw88: usb: bound what the driver feeds the after-DTIM queue
wifi: rtw88: usb: only let the frames a dozing station needs use the after-DTIM queue
wifi: rtw88: widen the ATIM window while an AP interface is up
Melissa Wen (1):
drm/amd/display: Signal PQ EOTF in FreeSync infopacket for DP HDR
Michael Bommarito (1):
9p/trans_virtio: reject mount tags longer than NAME_MAX at probe
Michael Grzeschik (6):
net/9p/usbg: also disable endpoints on p9_usbg_close net/9p/usbg: set client to Disconnected on usb9pfs_disable net/9p/usbg: always reset completion when disconnecting net/9p/usbg: call disable_usb9pfs() from usb9pfs_disable() net/9p/usbg: fix out_req buffer leak in disable_usb9pfs net/9p/usbg: remove bogus context initialization in alloc_requests
Michael McAllister (1):
Bluetooth: qca: Fix the WCN3950 NVM baud rate offset
Miguel Ojeda (1):
rust: cpufreq: fix undocumented_unsafe_blocks in PolicyCpu::from_cpu()
Mike Rapoport (Microsoft) (2):
mm/cma: accept memory of multi-range CMA areas mm/cma: accept memory of CMA areas reserved at a fixed address
Mikhail Gavrilov (1):
drm/amd/display: set allow_freesync before validating a new stream
Milan Milicevic (2):
drm/amdgpu: clear RB_OVERFLOW bit when enabling interrupts for navi10_ih drm/amdgpu: publish IH enabled before PSP programs IH_RB_CNTL
Miquel Raynal (4):
clk: nuvoton: ma35d1: Keep the clock count in the driver
dt-bindings: clock: ma35d1: Drop CLK_MAX_IDX define
dt-bindings: clock: ma35d1: Add missing WDT/WWDT parent clocks
clk: nuvoton: ma35d1: Add missing WDT/WWDT parent clocks
Misha Nasledov (1):
drm/amd/display: Drop clock requirements on DCN32 when no displays are active
Mitul Golani (1):
drm/i915/display: Allow port sync on PTL
Mohamed Yassine Jebabli (1):
ALSA: hda/tas2781: Only accept CRC-less V1 data if all entries are valid
Mohit Sharma (1):
ASoC: qcom: q6apm: Guard callbacks until probe data is ready
Myeonghun Pak (1):
hwmon: (sht15) Stop deferred work before releasing its resources
Naman Jain (1):
x86/init: Initialize wall clock in get_rtc_noop()
Nathan Chancellor (1):
lib/base64: silence clang-24 -Wconstant-conversion with diag pragmas
Nicholas Hobson (1):
ALSA: usb-audio: keep MIDI input running for Roland TD-11
Nickolai Zeldovich (1):
panic: zero the dynamically allocated taint buffer
Oliver Hartkopp (5):
can: replace ARPHRD_CAN type checks with can_get_ml_priv()
can: isotp: check the return values of can_rx_register() in isotp_bind()
can: protect the receive lists with a per-device lock
can: raw, isotp: copy socket options outside of lock_sock()
can: proc: skip stats calculation after reset in can_stat_update()
Peter Ujfalusi (2):
ASoC: hdac_hda: Allocate the private data at codec driver bind
ASoC: hdac_hda: Restore the codec device type on unbind
Ping-Ke Shih (1):
wifi: rtw88: TX report with long timeout for non-PCIE devices
Prike Liang (3):
drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queues drm/amdgpu: finish GPU recovery callbacks before restarting schedulers drm/amdgpu: stop the schedulers before preparing the GPU reset
Qihang (2):
xfrm: interface: validate the IP header on xmit
cipso: fix optlen corruption in cipso_v4_delopt()
Qiliang Yuan (2):
srcu: Add list_splice_init_srcu()
nvme: wait for SRCU readers before splicing the namespace list
Rafael J. Wysocki (1):
intel_idle: Adjust state names and descriptions for _LPI states
Ray Zhang (1):
net: count last skb of each sk_backlog pass in __release_sock()
Reid Downing (1):
xfs: fix wrong compat fields in xfs_ioctl32_bstat_copyin()
Ricardo Ribalda (2):
media: uvcvideo: Add autosuspend quirk for AVerMedia Live Gamer HD 2
media: uvcvideo: Force UVC version for Avermedia GC515
Richard Fitzgerald (1):
ASoC: cs35l56: Wait for firmware timer expiry before system suspend
Rik van Riel (1):
mm/cma: don't release CMA pages still in use
Ritesh Harjani (IBM) (1):
mm/huge_memory: set the mmu_gather page size in zap_huge_pud()
Roman Demidov (1):
drm/amd/display: Fix NULL deref in dcn401_update_clocks_update_dtb_dto
Roman Li (1):
drm/amd/display: Reset DET of HUBPs without a plane before outstanding updates
Rosen Penev (2):
x86/csum: Relax the len and proto constraints in 32-bit csum_ipv6_magic() drm/nouveau/nvkm: clear use.enabled when subdev init fails
Runyu Xiao (2):
can: proc: reset pkg_stats atomics individually
ALSA: usb-audio: Protect Roland control activation
SJ Park (5):
mm/damon/core: remove unreachable damos charge_{target,addr}_from mm/damon/sysfs-schemes: read sysfs_filter->sz_range only once mm/damon/sysfs-schemes: hold damon_sysfs_lock in target_metric_store() mm/damon/core: move static variable last_nr_regions to damon_ctx mm/damon/core: move static variable rotation to damon_ctx
Sabrina Dubroca (1):
xfrm: espintcp: reorder operations within espintcp_init_sk
Saim Masood (1):
ALSA: hda/realtek: Fix speakers on ASUS ExpertBook PM3606CHA
Salvatore Dipietro (1):
mm/page_alloc: avoid direct reclaim and compaction for costly __GFP_NORETRY allocations
Samarth Narang (1):
mm/ksm: keep soft-dirty when merging a page
Samiullah Khawaja (1):
mm/gup: check folio->mapping under folio lock in memfd_pin_folios()
Sasha Levin (1):
nvme-pci: add NVME_QUIRK_DMAPOOL_ALIGN_512 for KIOXIA XG10d
Sean Christopherson (5):
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure
KVM: x86: Conditionally resched when restarting REP string emulation
KVM: nVMX: Process each host MSR entry at most once when unwinding failed VM-Entry
KVM: x86/mmu: Cap number of parent PTEs per SP at 1000 (the arbitrary rmap limit)
KVM: x86: Unconditionally reset MMU context when emulating INIT
Shakeel Butt (1):
io_uring/sqpoll: do the return-to-userspace work in the SQPOLL thread
Shang En Sim (2):
io_uring/cancel: count all requests that a CANCEL_ALL cancels io_uring/poll: cancel all matching requests in one pass
Shao Mingyin (2):
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store
nvmet: bound the traddr and trsvcid configfs writes
Shuai Liu (1):
io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit
Shubham Antil (1):
vhost-scsi: zero misaligned I/O bounce pages
Sinan Turunc (3):
ALSA: line6: Reject capture buffers smaller than two packets
ALSA: usx2y: Require a buffer of two URBs
ALSA: usx2y: Guard the playback copy
Siwei Zhang (2):
Bluetooth: L2CAP: Reject signalling responses in invalid states
Bluetooth: L2CAP: Only accept connection responses to outstanding requests
Stefano Garzarella (1):
9p: fix privport option setting wrong RDMA field
Sumit Kumar (1):
PCI: dwc: Set DMA_BYPASS bit in outbound IATU CTRL2 register
Suravee Suthikulpanit (1):
iommu/amd: Force device table to maximum size
Sven Eckelmann (10):
batman-adv: tpmeter: fix u32 truncation of reported bytes
batman-adv: dat: initialize orig_node of unfilled candidate slots
batman-adv: fix skb leak when hard_iface is being released
batman-adv: stop originator purge worker before freeing TT
batman-adv: tt: ignore ROAM flag of received ADD changes
batman-adv: tt: don't drop local events queued during TVLV update
batman-adv: tt: only transmit local ROAM flag together with DEL
batman-adv: tt: clear ROAM flag when re-adding a pending local client
batman-adv: tt: send ROAM_ADV on each roamed back client
batman-adv: tt: only update flags for TT events
T.J. Mercier (1):
mm: memcontrol: fix NULL pointer deref and UAF from high_work_func() on dying memcg
Tal Zussman (1):
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
Thomas Gleixner (1):
x86/entry: Fix ptrace regression
Thorsten Blum (2):
hwrng: virtio - prevent use-after-free after a failed restore x86/boot: Fix off-by-one error in sme_clear_pgd()
Toke Høiland-Jørgensen (1):
wifi: mac80211: reinstate IEEE80211_TX_CTL_AMPDU flag in ieee80211_tx_prep_agg()
Tvrtko Ursulin (2):
drm/sched: Fix out of bounds entity priority check drm/sched: Adjust run-queue when changing priority at runtime
Valentin Kindschi (2):
Bluetooth: hci_sync: re-enable legacy advertising on resume
Bluetooth: hci_sync: pause advertising for the scan address update
Vas Zayarskiy (1):
hwmon: (aquacomputer_d5next) Avoid truncating scaled sensor readings
Vidya Srinivas (2):
drm/i915/display: Single scaler per pipe on WCL drm/i915/display: Disable pipe joiner on WCL
Vincent Donnefort (2):
KVM: arm64: Pass kvm_s2_fault_desc to fault_supports_stage2_huge_mapping()
KVM: arm64: Use kvm_s2_fault_vma_info in pkvm_mem_abort()
Vincent Mailhol (1):
can: dev: can_dropped_invalid_skb: drop CAN XL frames on non-CAN XL devices
Vishnu Santhosh (1):
dmaengine: qcom: bam_dma: Defer IRQ trigger type to device tree
Vladimir Oltean (1):
PCI: cadence: Preserve all error codes in cdns_plat_pcie_probe()
Wayne Lin (1):
drm/amd/display: add missing CRC engine 1 registers
Wei Wang (1):
arm64: suspend: Save and restore TPIDR2_EL0 across CPU suspend
Weigang He (1):
wifi: mac80211: reload TDLS header pointer after skb_linearize()
Weiming Shi (1):
smb/server: prevent file publication after tree disconnect
Wentao Liang (1):
ALSA: caiaq: free the EP4 URB when input setup fails
Werner Sembach (1):
drm/i915/display: Add quirk to force backlight type on some TUXEDO devices
Xia Yan (2):
veth: keep carrier off when resizing channels with a down peer
ipv6: fix device binding after failed datagram connect
Yafang Shao (1):
mm/migrate: snapshot the source nid before the misplaced migration
Yehyeong Lee (1):
9p/xen: validate the response size from the backend
Yifei Gao (1):
9p/xen: fix refcount leak in p9_xen_response() on wrong tag
Yili Zhang (1):
dma-buf: Fix IOVA offset when linking phys vecs to sgt
Yilin Zhang (1):
mptcp: do not use Fast Open on MP_JOIN subflows
Yingjie Wang (4):
scsi: bsg: Report synchronous data copyback failures
scsi: bsg: Report io_uring data copyback failures
ipv6: reject wrapped temporary address preferred lifetimes
nvmet: reject keep-alive timeouts that would overflow
Yitang Yang (1):
ublk: add missing DEL_DEV_ASYNC to unprivileged permission check
Yizhou Zhao (2):
net/9p/usbg: fix prefix matching in device lookup net/9p/usbg: Fix use-after-free in disable_usb9pfs()
Yu Zhang (2):
scsi: target: Fix demo-mode dynamic ACL dev-entry UAF vs LUN teardown
ptp: fix use-after-free in extts_fifo_show() reading tsevqs unlocked
YuanZhe Liu (6):
ALSA: us122l: Add missing NULL check in usb_stream_hwdep_mmap()
ALSA: us122l: Fix NULL dereference at hwdep open and release
ALSA: usx2y: Initialize idle URBs before submitting streams
ALSA: hwdep: Serialize DSP load requests
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close
ALSA: usx2y: Refuse a retried DSP load after a failure
Yuanfu Xie (1):
9p: don't decrement a server-owned zero nlink
Yuanhe Shu (1):
scsi: target: Verify the iSCSI ISID is null-terminated
Yuansheng Yang (1):
io_uring/rsrc: hold uring_lock across index-alloc put_user
Yuejie Shi (1):
fs/ntfs3: validate the EA value length in ntfs_read_ea()
Yuho Choi (2):
iommu/virtio: Reset device before deleting virtqueues on probe failure vdpa/snet: Don't discard the DPU error in snet_send_ctrl_msg()
Yuqiang Sun (2):
nvme: Do not drop the cdev reference twice when cdev_device_add() fails
ALSA: usb-audio: qcom: Check the return value of qmi_handle_init()
Zac Lanzon (1):
hwmon: (asus_rog_ryujin) Fix pump control source on the Ryujin III
Zack Rusin (1):
x86/vmware: Fix i386 high-bandwidth hypercall arguments
Zenghui Yu (Huawei) (1):
mm/page_alloc: mark pages freed by __free_pages_core() as not tagged
Zhan Xusheng (1):
ntfs: don't allow compression on volumes with clusters larger than 4K
Zhao Gongyi (2):
arm64: mm: validate /dev/mem mmap ranges without overflow
ata: libata-scsi: reject data-in commands with a data-out buffer
Zhao Zhang (1):
9p: fix caches_show() out-of-bounds write
Zhe Liu (1):
blk-iocost: account flush sequence latency only once
Zhou Qiuyue (1):
ipv6: raw: fix use-after-free in rawv6_send_hdrinc()
Zijing Yin (1):
wifi: cfg80211: fix out-of-bounds read in valid_rule()
chenglong.ma (1):
vduse: fix VA/PA confusion in the coherent page fault path
guolingxing (2):
btrfs: sysfs: restore NOFS context on early return in btrfs_sysfs_add_block_group_type()
btrfs: prevent deleting the wrong subvolume by ID
renpanpan (1):
drm/amdgpu: Only enable HDMI audio if display supports it
[email protected] (1):
PCI: cadence: Remove device links to PHY
Greg Kroah-Hartman
maintainerDocumentation/ABI/testing/sysfs-fs-f2fs +1 -1
@@ -271,7 +271,7 @@ Description: Shows all enabled kernel features. inode_crtime, lost_found, verity, sb_checksum, casefold, readonly, compression, test_dummy_encryption_v2, atomic_write, pin_file, encrypted_casefold, linear_lookup, - fserror. + fserror, resizable_tail. What: /sys/fs/f2fs/<disk>/inject_rate Date: May 2016
Documentation/admin-guide/pm/intel_idle.rst +7 -5
@@ -145,11 +145,13 @@ for the other idle state types (C2 and C3) the target residency value is 3 times the exit latency (again, that is because it reflects the target residency to exit latency ratio in the majority of cases for the processor models recognized by ``intel_idle``). The name of the idle state (to be returned by the ``name`` -idle state attribute in ``sysfs``) is either "Cx_LPI" (if it comes from ``_LPI`` -processing) or "Cx_ACPI", where x is the index of that idle state in the final -list (note that the minimum value of x is 1, because 0 is reserved for the -"polling" state), and its target residency is based on the exit latency value. -All of the idle states in the final list are enabled by default in this case. +idle state attribute in ``sysfs``) either is equal to the state name value that +comes from ``_LPI`` processing (with the possible fallback to "Cx_LPI" if the +state name is not provided) or it is "Cx_ACPI", where x is the index of that +idle state in the final list (note that the minimum value of x is 1, because 0 +is reserved for the "polling" state), and its target residency is based on the +exit latency value. All of the idle states in the final list are enabled by +default in this case. .. _intel-idle-initialization:
Documentation/arch/arm64/silicon-errata.rst +2 -1
@@ -273,7 +273,8 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | MMU L1 | #3878312 | N/A | +----------------+-----------------+-----------------+-----------------------------+ -| ARM | MMU S3 | #3995052 | N/A | +| ARM | MMU S3 | #3995052, | N/A | +| | | #3673557 | | +----------------+-----------------+-----------------+-----------------------------+ | ARM | GIC-700 | #2941627 | ARM64_ERRATUM_2941627 | +----------------+-----------------+-----------------+-----------------------------+
Documentation/filesystems/overlayfs.rst +2 -1
@@ -731,7 +731,8 @@ When decoding an overlay file handle, the following steps are followed: 1. Find underlying layer by UUID and path type information. 2. Decode the underlying filesystem file handle to underlying dentry. - 3. For a lower file handle, lookup the handle in index directory by name. + 3. For a lower file handle, encode the decoded underlying inode again and + lookup that handle in index directory by name. 4. If a whiteout is found in index, return ESTALE. This represents an overlay object that was deleted after its file handle was encoded. 5. For a non-directory, instantiate a disconnected overlay dentry from the
Documentation/filesystems/resctrl.rst +51 -36
155 lines not on this page · raw message
Documentation/hwmon/asus_rog_ryujin.rst +6 -0
@@ -33,6 +33,12 @@ Usage notes As these are USB HIDs, the driver can be loaded automatically by the kernel and supports hot swapping. +The pump of the RYUJIN III also has a 4-pin cable for a motherboard fan header. +The cooler either hands the pump to its internal controller, which follows the +PWM of the header its 4-pin cable is plugged into, or runs it at the pump duty +set over USB. Writing pwm1 selects the duty set over USB. Writing pwm2 sets +only the internal fan duty and leaves the pump control as it is. + Sysfs entries -------------
Documentation/mm/vmemmap_dedup.rst +13 -2
@@ -131,8 +131,19 @@ pages of ``struct page`` (page 1 to page 7) are tail pages. The optimization is only applied when the size of the struct page is a power of 2. In this case, all tail pages of the same order are identical. See compound_head(). This allows us to remap the tail pages of the vmemmap to a -shared, read-only page. The head page is also remapped to a new page. This -allows the original vmemmap pages to be freed. +shared page. The head page is also remapped to a new page. This allows the +original vmemmap pages to be freed. + +The shared page is mapped writable. A lockless get of a page reference can +read a non-zero refcount before the remap and attempt its atomic update +after it. The refcount of a tail page is zero, so the update fails without +changing the page. Nothing else may write to the shared page: it is shared +by all HugeTLB pages of the same size in the zone, and a stray write would +corrupt all of them. + +HugeTLB pages whose vmemmap is optimized when the memmap is first set up at +boot keep a read-only mapping of the shared page. Nothing can do a lockless +get on them before they are handed to HugeTLB. Here is how things look after remapping::
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 7 PATCHLEVEL = 3 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/include/asm/sdei.h +2 -1
@@ -44,7 +44,8 @@ asmlinkage unsigned long __sdei_handler(struct pt_regs *regs, struct sdei_registered_event *arg);unsigned long do_sdei_event (struct pt_regs *regs, -struct sdei_registered_event *arg); +struct sdei_registered_event *arg, +unsigned long vbar);unsigned long sdei_arch_get_entry_point (int conduit);#define sdei_arch_get_entry_point (x) sdei_arch_get_entry_point(x)
arch/arm64/include/asm/suspend.h +1 -1
@@ -2,7 +2,7 @@#ifndef __ASM_SUSPEND_H#define __ASM_SUSPEND_H -#define NR_CTX_REGS 14 +#define NR_CTX_REGS 15#define NR_CALLEE_SAVED_REGS 12/*
arch/arm64/kernel/entry-common.c +39 -1
@@ -30,6 +30,7 @@#include <asm/stacktrace.h> #include <asm/sysreg.h> #include <asm/system_misc.h> +#include <asm/vectors.h> /* * Handle IRQ/context state management when entering from kernel mode.
@@ -1002,6 +1003,7 @@ asmlinkage void noinstr __noreturn handle_bad_stack(struct pt_regs *regs) asmlinkage noinstr unsigned long__sdei_handler (struct pt_regs *regs,struct sdei_registered_event *arg) { +unsigned long elr, spsr, esr, far, vbar;irqentry_state_t state;unsigned long ret;
@@ -1027,10 +1029,46 @@ __sdei_handler(struct pt_regs *regs, struct sdei_registered_event *arg) else if (cpu_has_pan()) set_pstate_pan(0); +/* +* Nothing saved the interrupted context's exception registers on the +* way in, and it may be in the middle of exception entry or return +* (SDEI ignores DAIF). Save them before anything can take an exception +* and overwrite them. +*/ + elr =read_sysreg (elr_el1); + spsr =read_sysreg (spsr_el1); + esr =read_sysreg (esr_el1); + far =read_sysreg (far_el1); + +/* +* With KPTI, VBAR_EL1 holds the trampoline vectors from the return to +* EL0 until the next exception from EL0 maps the kernel. They only +* handle exceptions from EL0: an exception taken here would run their +* empty current-EL half and never come back. Switch to the kernel +* vectors. The IRQ-like resume keeps using the interrupted VBAR, so it +* still goes through the trampoline. +*/ + vbar =read_sysreg (vbar_el1); +if (arm64_kernel_unmapped_at_el0 () && + vbar == (unsigned long )raw_cpu_read (this_cpu_vector)) { +write_sysreg ((unsigned long )vectors, vbar_el1); +isb (); + } + state =irqentry_nmi_enter (regs); - ret =do_sdei_event (regs, arg); + ret =do_sdei_event (regs, arg, vbar);irqentry_nmi_exit (regs, state); +/* +* Put them back unconditionally. An unchanged ELR does not rule out a +* nested exception: one may have returned to the same address. +*/ +write_sysreg (elr, elr_el1); +write_sysreg (spsr, spsr_el1); +write_sysreg (esr, esr_el1); +write_sysreg (far, far_el1); +write_sysreg (vbar, vbar_el1); + return ret; }#endif /* CONFIG_ARM_SDE_INTERFACE */
arch/arm64/kernel/machine_kexec_file.c +2 -0
@@ -112,6 +112,8 @@ int load_other_segments(struct kimage *image,vfree (headers); goto out_err; } + +vfree (image->elf_headers); image->elf_headers = headers; image->elf_load_addr = kbuf.mem; image->elf_headers_sz = headers_sz;
arch/arm64/kernel/sdei.c +48 -11
87 lines not on this page · raw message
arch/arm64/kernel/topology.c +11 -1
@@ -470,6 +470,12 @@ static void amu_read_core_const_ctrs(void *val)cpu_read_corecnt (&ctrs->corecnt); } +static bool cpc_ffh_reg_valid (const struct cpc_reg *reg) +{ +return reg->bit_width && reg->bit_width <=64 && + reg->bit_offset <=64 - reg->bit_width; +} +static u64 cpc_ffh_extract_bits (const struct cpc_reg *reg,u64 val) { val &= GENMASK_ULL(reg->bit_offset + reg->bit_width - 1,
@@ -506,7 +512,8 @@ int cpc_read_ffh_fb_ctrs(int cpu, struct cpc_reg *reg1, u64 *val1,struct amu_ffh_ctrs ctrs;int ret; -if (!is_amu_ctr_reg (reg1) || !is_amu_ctr_reg (reg2)) +if (!is_amu_ctr_reg (reg1) || !is_amu_ctr_reg (reg2) || + !cpc_ffh_reg_valid (reg1) || !cpc_ffh_reg_valid (reg2))return -EINVAL ; ret =counters_read_on_cpu (cpu, amu_read_core_const_ctrs, &ctrs);
@@ -530,6 +537,9 @@ int cpc_read_ffh(int cpu, struct cpc_reg *reg, u64 *val) {int ret = -EOPNOTSUPP ; +if (!cpc_ffh_reg_valid (reg)) +return -EINVAL ; +switch ((u64 )reg->address) {case CPC_FFH_CTR_CORE : ret =counters_read_on_cpu (cpu, cpu_read_corecnt, val);
arch/arm64/kvm/mmu.c +69 -60
269 lines not on this page · raw message
arch/arm64/kvm/pkvm.c +3 -0
@@ -414,6 +414,9 @@ int pkvm_pgtable_stage2_map(struct kvm_pgtable *pgt, u64 addr, u64 size,u64 end = addr + size;int ret; +if (WARN_ON_ONCE (!PAGE_ALIGNED (addr | size))) +return -EINVAL ; +lockdep_assert_held_write (&kvm->mmu_lock); mapping =pkvm_mapping_iter_first (&pgt->pkvm_mappings, addr, end -1 );
arch/arm64/kvm/vgic/vgic-mmio-v3.c +10 -0
@@ -303,9 +303,19 @@ static void vgic_mmio_write_v3r_ctlr(struct kvm_vcpu *vcpu,if (ctlr !=GICR_CTLR_ENABLE_LPIS )return ; +/* +* Yes, disabling LPIs is painful, since it can be done from +* a *remote* vcpu! So let's not take any chance, and make +* sure that the target vCPU has written their LRs back to the +* irq structures, and release any reference they would have. +* +* If it hurts, don't do it. +*/ +kvm_arm_halt_guest (vcpu->kvm);vgic_flush_pending_lpis (vcpu);vgic_its_invalidate_all_caches (vcpu->kvm);atomic_set_release (&vgic_cpu->ctlr,0 ); +kvm_arm_resume_guest (vcpu->kvm); }else { ctlr =atomic_cmpxchg_acquire (&vgic_cpu->ctlr,0 ,GICR_CTLR_ENABLE_LPIS );
arch/arm64/mm/mmap.c +3 -1
@@ -61,7 +61,9 @@ int valid_phys_addr_range(phys_addr_t addr, size_t size)*/ int valid_mmap_phys_addr_range (unsigned long pfn,size_t size) { -return !(((pfn <<PAGE_SHIFT ) + size) & ~PHYS_MASK ); +const phys_addr_t limit =PHYS_MASK +1 ; + +return size <= limit && pfn <= (limit - size) >>PAGE_SHIFT ; }static int __init adjust_protection_map (void )
arch/arm64/mm/proc.S +8 -0
@@ -113,6 +113,10 @@ SYM_FUNC_START(cpu_do_suspend) alternative_if ARM64_HAS_TCR2 mrs x2, REG_TCR2_EL1 str x2, [x0, #104] +alternative_else_nop_endif +alternative_if ARM64_SME + mrs_s x2, SYS_TPIDR2_EL0 + str x2, [x0, #112] alternative_else_nop_endif ret SYM_FUNC_END(cpu_do_suspend)
@@ -152,6 +156,10 @@ alternative_if ARM64_HAS_TCR2 ldr x2, [x0, #104] msr REG_TCR2_EL1, x2 alternative_else_nop_endif +alternative_if ARM64_SME + ldr x2, [x0, #112] + msr_s SYS_TPIDR2_EL0, x2 +alternative_else_nop_endif msr sctlr_el1, x12 set_this_cpu_offset x13
arch/mips/mm/cex-gen.S +16 -0
@@ -8,6 +8,7 @@ * * Cache error handler */ +#include <asm/addrspace.h> #include <asm/asm.h> #include <asm/regdef.h> #include <asm/mipsregs.h>
@@ -37,6 +38,21 @@ nop nop +#if defined(CONFIG_64BIT) && VMLINUX_LOAD_ADDRESS >= XKPHYS && \ + VMLINUX_LOAD_ADDRESS < XKSEG + /* + * An XKPHYS kernel may lie outside the 256MB region a j from the + * vector reaches, so jump to the handler's uncached XKPHYS address. + */ + PTR_LA k0, cache_parity_error + PTR_LI k1, TO_PHYS_MASK + and k0, k0, k1 + PTR_LI k1, UNCAC_BASE + or k0, k0, k1 + jr k0 + nop +#else j cache_parity_error nop +#endif END(except_vec2_generic)
arch/mips/pci/ops-mace.c +19 -7
@@ -35,15 +35,27 @@ static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, (reg &0xfc ); } +/* +* On CRIME 1.1, a MACE PCI register read followed by two register writes +* can hang the machine under DMA load, so every register write in this +* file is followed by a read. Config cycles to empty slots end in a +* master abort; ack it with interrupts still off so the bridge error +* interrupt does not report it. +*/ +static void mace_pci_ack_abort (void ) +{ +u32 error = mace->pci.error; + +if (error &MACEPCI_ERROR_MASTER_ABORT ) { + mace->pci.error = error & ~MACEPCI_ERROR_MASTER_ABORT ; + mace->pci.error; + } +}static int mace_pci_read_config (struct pci_bus *bus,unsigned int devfn,int reg,int size,u32 *val) { -u32 control = mace->pci.control; - -/* disable master aborts interrupts during config read */ - mace->pci.control = control & ~MACEPCI_CONTROL_MAR_INT ; mace->pci.config_addr =mkaddr (bus, devfn, reg);switch (size) {case 1 :
@@ -56,9 +68,7 @@ mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, *val = mace->pci.config_data.l;break ; } -/* ack possible master abort */ - mace->pci.error &= ~MACEPCI_ERROR_MASTER_ABORT ; - mace->pci.control = control; +mace_pci_ack_abort ();/* * someone forgot to set the ultra bit for the onboard * scsi chips; we fake it here
@@ -77,6 +87,7 @@ mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, int reg, int size, u32 val) { mace->pci.config_addr = mkaddr(bus, devfn, reg); + mace->pci.error;switch (size) {case 1 : mace->pci.config_data.b[(reg &3 ) ^3 ] = val;
@@ -88,6 +99,7 @@ mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, mace->pci.config_data.l = val;break ; } +mace_pci_ack_abort ();DPRINTK ("write%d: reg=%08x,val=%02x\n" , size *8 , reg, val);
arch/mips/pci/pci-ip32.c +7 -2
@@ -77,6 +77,8 @@ static irqreturn_t macepci_error(int irq, void *dev) } mace->pci.error = flags; +/* follow the write with a read, see mace_pci_ack_abort() */ + mace->pci.error;return IRQ_HANDLED ; }
@@ -125,10 +127,13 @@ static int __init mace_init(void) {PCIBIOS_MIN_IO =0x1000 ; -/* Clear any outstanding errors and enable interrupts */ +/* +* Clear any outstanding errors and enable interrupts. PCI interrupts +* are masked in CRIME, so the per-slot enables stay on. +*/ mace->pci.error_addr =0 ; mace->pci.error =0 ; - mace->pci.control =0xff008500 ; + mace->pci.control =0xff0085ff ;printk ("MACE PCI rev %d\n" , mace->pci.rev);
arch/mips/sgi-ip32/ip32-irq.c +3 -42
69 lines not on this page · raw message
arch/openrisc/kernel/or32_ksyms.c +1 -0
@@ -35,6 +35,7 @@ DECLARE_EXPORT(__divsi3);DECLARE_EXPORT (__umodsi3);DECLARE_EXPORT (__modsi3);DECLARE_EXPORT (__muldi3); +DECLARE_EXPORT (__mulsi3);DECLARE_EXPORT (__ashrdi3);DECLARE_EXPORT (__ashldi3);DECLARE_EXPORT (__lshrdi3);
arch/x86/boot/startup/sme.c +1 -1
@@ -99,7 +99,7 @@ static void __init sme_clear_pgd(struct sme_populate_pgd_data *ppd)pgd_t *pgd_p; pgd_start = ppd->vaddr &PGDIR_MASK ; - pgd_end = ppd->vaddr_end &PGDIR_MASK ; + pgd_end = (ppd->vaddr_end -1 ) &PGDIR_MASK ; pgd_size = (((pgd_end - pgd_start) /PGDIR_SIZE ) +1 ) *sizeof (pgd_t);
arch/x86/entry/syscall_32.c +4 -0
@@ -77,6 +77,10 @@ static __always_inline void do_syscall_32_irqs_on(struct pt_regs *regs, unsignedif (likely (nr < IA32_NR_syscalls)) { nr =array_index_nospec (nr, IA32_NR_syscalls); regs->ax =ia32_sys_call (regs, (unsigned int )nr); + }else { +/* See comment in do_syscall_64() */ +if (nr !=-1UL ) + regs->ax = -ENOSYS ; } }
arch/x86/entry/syscall_64.c +22 -4
@@ -64,15 +64,20 @@ static __always_inline bool do_syscall_x64(struct pt_regs *regs, unsigned long nreturn false; } -static __always_inline void do_syscall_x32(struct pt_regs *regs, unsigned long nr) +static __always_inline bool do_syscall_x32(struct pt_regs *regs, unsigned long nr) { +if (!IS_ENABLED (CONFIG_X86_X32_ABI )) +return false; +/* Adjust the starting offset of the table */ nr -= __X32_SYSCALL_BIT; -if (IS_ENABLED (CONFIG_X86_X32_ABI ) &&likely (nr < X32_NR_syscalls)) { +if (likely (nr < X32_NR_syscalls)) { nr =array_index_nospec (nr, X32_NR_syscalls); regs->ax =x32_sys_call (regs, (unsigned int )nr); +return true; } +return false; }/* Returns true to return using SYSRET, or false to use IRET */
@@ -81,8 +86,21 @@ __visible noinstr bool do_syscall_64(struct pt_regs *regs, long nr)if (likely (syscall_enter_from_user_mode_randomize_stack (regs, &nr))) {instrumentation_begin (); -if (!do_syscall_x64 (regs, nr)) -do_syscall_x32 (regs, nr); +if (unlikely (!do_syscall_x64 (regs, nr))) { +/* +* The special treatment of syscall number -1 is a +* historical bogosity as the original code used -1 to +* indicate syscall abort, which is not distinguishable +* from a syscall which is invoked with syscall number +* -1. The historic behavior is to keep the return value +* in regs->ax unmodified in that case, which means it's +* either the preset value -ENOSYS or a value which was +* written by a tracer. If the syscall number is invalid +* but not -1 then overwrite any tracer modification. +*/ +if (!do_syscall_x32 (regs, nr) && nr !=-1L ) + regs->ax = -ENOSYS ; + }instrumentation_end (); }
arch/x86/include/asm/checksum_32.h +1 -1
@@ -159,7 +159,7 @@ static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr, "adcl $0, %0 ;\n" : "=&r" (sum) : "r" (saddr), "r" (daddr), - "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) + "g" (htonl(len)), "g" (htonl(proto)), "0" (sum) : "memory");return csum_fold (sum);
arch/x86/include/asm/vmware.h +14 -10
@@ -276,20 +276,22 @@ unsigned long vmware_hypercall_hb_out(unsigned long cmd, unsigned long in2, asm_inline volatile ( UNWIND_HINT_SAVE + "mov %[in6], %%" _ASM_AX "\n\t" "push %%" _ASM_BP "\n\t" UNWIND_HINT_UNDEFINED - "mov %[in6], %%" _ASM_BP "\n\t" + "mov %%" _ASM_AX ", %%" _ASM_BP "\n\t" + "mov %[magic], %%eax\n\t" "rep outsb\n\t" "pop %%" _ASM_BP "\n\t" UNWIND_HINT_RESTORE - : "=a" (out0), "=b" (*out1) - : "a" (VMWARE_HYPERVISOR_MAGIC), -"b" (cmd), + : "=&a" (out0), "=b" (*out1) + : "b" (cmd),"c" (in2),"d" (in3 |VMWARE_HYPERVISOR_PORT_HB ),"S" (in4), "D" (in5), - [in6] VMW_BP_CONSTRAINT (in6) + [in6] VMW_BP_CONSTRAINT(in6), + [magic] "i" (VMWARE_HYPERVISOR_MAGIC) : "cc", "memory"); return out0; }
@@ -304,20 +306,22 @@ unsigned long vmware_hypercall_hb_in(unsigned long cmd, unsigned long in2, asm_inline volatile ( UNWIND_HINT_SAVE + "mov %[in6], %%" _ASM_AX "\n\t" "push %%" _ASM_BP "\n\t" UNWIND_HINT_UNDEFINED - "mov %[in6], %%" _ASM_BP "\n\t" + "mov %%" _ASM_AX ", %%" _ASM_BP "\n\t" + "mov %[magic], %%eax\n\t" "rep insb\n\t" "pop %%" _ASM_BP "\n\t" UNWIND_HINT_RESTORE - : "=a" (out0), "=b" (*out1) - : "a" (VMWARE_HYPERVISOR_MAGIC), -"b" (cmd), + : "=&a" (out0), "=b" (*out1) + : "b" (cmd),"c" (in2),"d" (in3 |VMWARE_HYPERVISOR_PORT_HB ),"S" (in4), "D" (in5), - [in6] VMW_BP_CONSTRAINT (in6) + [in6] VMW_BP_CONSTRAINT(in6), + [magic] "i" (VMWARE_HYPERVISOR_MAGIC) : "cc", "memory"); return out0; }
arch/x86/kernel/acpi/cppc.c +15 -0
@@ -6,6 +6,8 @@#include <linux/bitfield.h> +#include <linux/limits.h> +#include <acpi/cppc_acpi.h> #include <asm/msr.h> #include <asm/processor.h>
@@ -45,10 +47,20 @@ bool cpc_ffh_supported(void)return true; } +static bool cpc_ffh_reg_valid (const struct cpc_reg *reg) +{ +return reg->address <=U32_MAX && reg->bit_width && + reg->bit_width <=64 && + reg->bit_offset <=64 - reg->bit_width; +} +int cpc_read_ffh (int cpunum,struct cpc_reg *reg,u64 *val) {int err; +if (!cpc_ffh_reg_valid (reg)) +return -EINVAL ; + err =rdmsrq_safe_on_cpu (cpunum, reg->address, val);if (!err) { u64 mask = GENMASK_ULL(reg->bit_offset + reg->bit_width - 1,
@@ -65,6 +77,9 @@ int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val)u64 rd_val;int err; +if (!cpc_ffh_reg_valid (reg)) +return -EINVAL ; + err =rdmsrq_safe_on_cpu (cpunum, reg->address, &rd_val);if (!err) { u64 mask = GENMASK_ULL(reg->bit_offset + reg->bit_width - 1,
arch/x86/kernel/cpu/bugs.c +5 -7
@@ -2088,14 +2088,12 @@ static void __init bhi_select_mitigation(void)if (bhi_mitigation !=BHI_MITIGATION_AUTO )return ; -if (cpu_attack_vector_mitigated (CPU_MITIGATE_GUEST_HOST )) { -if (cpu_attack_vector_mitigated (CPU_MITIGATE_USER_KERNEL )) - bhi_mitigation =BHI_MITIGATION_ON ; -else - bhi_mitigation =BHI_MITIGATION_VMEXIT_ONLY ; - }else { +if (cpu_attack_vector_mitigated (CPU_MITIGATE_USER_KERNEL )) + bhi_mitigation =BHI_MITIGATION_ON ; +else if (cpu_attack_vector_mitigated (CPU_MITIGATE_GUEST_HOST )) + bhi_mitigation =BHI_MITIGATION_VMEXIT_ONLY ; +else bhi_mitigation =BHI_MITIGATION_OFF ; - } }static void __init bhi_update_mitigation (void )
arch/x86/kernel/cpu/resctrl/internal.h +2 -2
@@ -214,8 +214,8 @@ union l3_qos_abmc_cfg { bw_src :12, reserved1: 3, is_clos : 1, - cntr_id : 5, - reserved : 9, + cntr_id :12, + reserved : 2, cntr_en : 1, cfg_en : 1; } split;
arch/x86/kernel/cpu/resctrl/monitor.c +2 -2
@@ -470,8 +470,8 @@ int __init rdt_get_l3_mon_config(struct rdt_resource *r) r->mon.mbm_cntr_assignable = true; r->mon.mbm_cntr_configurable = true;cpuid_count (0x80000020 ,5 , &eax, &ebx, &ecx, &edx); - r->mon.num_mbm_cntrs = (ebx &GENMASK (15 ,0 )) +1 ; - hw_res->mbm_cntr_assign_enabled = true; +/* cntr_id is 12 bits and can only encode 4096 counters. */ + r->mon.num_mbm_cntrs =min ((ebx &GENMASK (15 ,0 )) +1 ,BIT (12 )); } r->mon_capable = true;
arch/x86/kernel/nmi.c +8 -0
@@ -115,6 +115,14 @@ static void nmi_check_duration(struct nmiaction *action, u64 duration) {int remainder_ns, decimal_msecs; +/* sched_clock() went backwards? */ +if ((s64 )duration <0 ) { +pr_warn_once ("NMI handler (%ps): sched_clock() went backwards by %lld ns on CPU%d\n" , + action->handler, -(s64 )duration, +smp_processor_id ()); +return ; + } +if (duration < nmi_longest_ns || duration < action->max_duration)return ;
arch/x86/kernel/x86_init.c +1 -1
@@ -37,7 +37,7 @@ static void iommu_shutdown_noop(void) { }bool __init bool_x86_init_noop (void ) {return false; }void x86_op_int_noop (int cpu) { }int set_rtc_noop (const struct timespec64 *now) {return -EINVAL ; } -void get_rtc_noop (struct timespec64 *now) { } +void get_rtc_noop (struct timespec64 *now) { *now = (struct timespec64 ){0 }; }static __initconst const struct of_device_id of_cmos_match[] = { { .compatible ="motorola,mc146818" },
arch/x86/kvm/mmu/mmu.c +10 -0
@@ -2310,6 +2310,16 @@ static struct kvm_mmu_page *kvm_mmu_find_shadow_page(struct kvm *kvm,continue ; } +/* +* Note! Unlike fully direct MMUs, direct SPs in indirect MMUs +* can have an arbitrary number of parents, e.g if the guest is +* mapping a huge PTE at many points in its page tables. +*/ +if (pte_list_count (&sp->parent_ptes) >=RMAP_RECYCLE_THRESHOLD ) { +kvm_mmu_prepare_zap_page (kvm, sp, &invalid_list); +break ; + } +/* unsync and write-flooding only apply to indirect SPs. */ if (sp->role.direct) goto out;
arch/x86/kvm/mmu/paging_tmpl.h +10 -1
@@ -339,6 +339,13 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker,gpa_t real_gpa;gfn_t gfn; +/* +* KVM might sleep/resched when retrying the walk if the updating A/D +* fails because the gPTE changed between reading the gPTE and trying +* the CMPXHG to set A/D bits. +*/ +might_sleep (); +trace_kvm_mmu_pagetable_walk (addr, access); retry_walk: walker->level = w->cpu_role.base.level;
@@ -479,8 +486,10 @@ static int FNAME(walk_addr_generic)(struct guest_walker *walker, addr, write_fault);if (unlikely (ret <0 )) goto error; -else if (ret) +else if (ret) { +cond_resched (); goto retry_walk; + } }return 1 ;
arch/x86/kvm/vmx/nested.c +1 -0
@@ -5059,6 +5059,7 @@ static void nested_vmx_restore_host_state(struct kvm_vcpu *vcpu) __func__, j, h.index, h.value); goto vmabort; } +break ; } }
arch/x86/kvm/x86.c +19 -12
@@ -6515,10 +6515,12 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, gpa_t cr2_or_gpa, }else if (vcpu->arch.complete_userspace_io) { writeback = false; r =0 ; - }else if (r ==EMULATION_RESTART ) + }else if (r ==EMULATION_RESTART ) { +cond_resched (); goto restart; -else + }else { r =1 ; + } writeback:if (writeback) {
@@ -9661,18 +9663,23 @@ void kvm_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event)kvm_x86_call (set_efer)(vcpu,0 );kvm_x86_call (update_exception_bitmap)(vcpu); +if (old_cr0 &X86_CR0_PG ) +kvm_make_request (KVM_REQ_TLB_FLUSH_GUEST , vcpu); +/* -* On the standard CR0/CR4/EFER modification paths, there are several -* complex conditions determining whether the MMU has to be reset and/or -* which PCIDs have to be flushed. However, CR0.WP and the paging-related -* bits in CR4 and EFER are irrelevant if CR0.PG was '0'; and a reset+flush -* is needed anyway if CR0.PG was '1' (which can only happen for INIT, as -* CR0 will be '0' prior to RESET). So we only need to check CR0.PG here. +* Unconditionally reset the MMU, even though super strictly speaking, +* a MMU reset is only necessary if and only one of the page role bits +* is changing. All of the CR0/CR4/EFER bits effectively get covered +* by checking CR0.PG=1, as CR0.WP and the paging-related bits in CR4 +* and EFER are irrelevant if CR0.PG was '0'. Subtly, if the vCPU was +* in guest mode (L2) or SMM (although emulating INIT in SMM _should_ +* be impossible), an MMU reset is also necessary as "guest mode" and +* "smm" are both encoded in the shadow page role. As a result, the +* only scenarios where an MMU reset is *not* needed is if the vCPU is +* in Real Mode or Unpaged Protected Mode, and micro-optimizing those +* paths are not worth the risk of running with a stale MMU context. */ -if (old_cr0 &X86_CR0_PG ) { -kvm_make_request (KVM_REQ_TLB_FLUSH_GUEST , vcpu); -kvm_mmu_reset_context (vcpu); - } +kvm_mmu_reset_context (vcpu);/* * Intel's SDM states that all TLB entries are flushed on INIT. AMD's
arch/x86/mm/tlb.c +11 -5
@@ -320,13 +320,19 @@ static u16 allocate_global_asid(void)lockdep_assert_held (&global_asid_lock); -/* The previous allocation hit the edge of available address space */ -if (last_global_asid >=MAX_ASID_AVAILABLE -1 ) -reset_global_asid_space (); - asid =find_next_zero_bit (global_asid_used,MAX_ASID_AVAILABLE , last_global_asid); -if (asid >=MAX_ASID_AVAILABLE && !global_asid_available) { +/* +* Nothing is free between last_global_asid and MAX_ASID_AVAILABLE. +* Flush lazy-freed ASIDs and reset the search space. +*/ +if (asid >=MAX_ASID_AVAILABLE ) { +reset_global_asid_space (); + asid =find_next_zero_bit (global_asid_used,MAX_ASID_AVAILABLE , + last_global_asid); + } + +if (asid >=MAX_ASID_AVAILABLE ) {/* This should never happen. */ VM_WARN_ONCE (1 ,"Unable to allocate global ASID despite %d available\n" , global_asid_available);
block/bio.c +3 -0
@@ -1285,6 +1285,7 @@ int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter, unsigned mem_align_mask, unsigned len_align_mask) {iov_iter_extraction_t flags =0 ; +struct iov_iter saved_iter;if (WARN_ON_ONCE (bio_flagged (bio,BIO_CLONED )))return -EIO ;
@@ -1303,6 +1304,7 @@ int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter,if (bio->bi_bdev &&blk_queue_pci_p2pdma (bio->bi_bdev->bd_disk->queue)) flags |=ITER_ALLOW_P2PDMA ; + saved_iter = *iter; do { ssize_t ret;
@@ -1320,6 +1322,7 @@ int bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter,bio_release_pages (bio, false);bio_clear_flag (bio,BIO_PAGE_PINNED ); bio->bi_vcnt =0 ; + *iter = saved_iter; }if (!bio->bi_vcnt)return ret;
block/blk-iocost.c +3 -0
@@ -2851,6 +2851,9 @@ static void ioc_rqos_done(struct rq_qos *rqos, struct request *rq)if (!ioc->enabled || !rq->alloc_time_ns || !rq->start_time_ns)return ; +if (unlikely (rq->rq_flags &RQF_FLUSH_SEQ )) +return ; +switch (req_op (rq)) {case REQ_OP_READ : pidx =QOS_RLAT ;
block/blk-mq.c +7 -6
@@ -3193,16 +3193,15 @@ void blk_mq_submit_bio(struct bio *bio)blk_mq_bio_to_request (rq, bio, nr_segs); +if (bio_zone_write_plugging (bio)) +blk_zone_write_plug_init_request (rq); + ret =blk_crypto_rq_get_keyslot (rq);if (ret !=BLK_STS_OK ) { -bio_endio_status (bio, ret); -blk_mq_free_request (rq); +blk_mq_end_request (rq, ret);return ; } -if (bio_zone_write_plugging (bio)) -blk_zone_write_plug_init_request (rq); -if (op_is_flush (bio->bi_opf) &&blk_insert_flush (rq))return ;
@@ -3485,8 +3484,10 @@ void blk_mq_free_rqs(struct blk_mq_tag_set *set, struct blk_mq_tags *tags,if (blk_mq_is_shared_tags (set->flags)) drv_tags = set->shared_tags; -else +else if (hctx_idx < set->nr_hw_queues) drv_tags = set->tags[hctx_idx]; +else + drv_tags =NULL ;if (tags->static_rqs && set->ops->exit_request) {int i;
block/elevator.c +17 -13
@@ -812,25 +812,29 @@ ssize_t elv_iosched_store(struct gendisk *disk, const char *buf,* reference during concurrent disk deletion: * update_nr_hwq_lock -> kn->active (via del_gendisk -> kobject_del) * kn->active -> update_nr_hwq_lock (via this sysfs write path) -* -* Use the writer lock instead of the reader lock of update_nr_hwq_lock -* to serialize the two-stage elevator switch steps in -* elevator_change(): the core switch step under the elevator lock and -* the elevator_change_done() step outside the elevator lock. */ -if (!down_write_trylock (&set->update_nr_hwq_lock)) { +if (!down_read_trylock (&set->update_nr_hwq_lock)) { ret = -EBUSY ; goto out; } -if (!blk_queue_no_elv_switch (q)) { - ret =elevator_change (q, &ctx); -if (!ret) - ret = count; - }else { - ret = -ENOENT ; + +/* +* The reader lock is shared, so use QUEUE_FLAG_NO_ELV_SWITCH to allow +* only one switch of this queue at a time, and none once the disk is +* going away. +*/ +if (test_and_set_bit (QUEUE_FLAG_NO_ELV_SWITCH , &q->queue_flags)) { + ret = -EBUSY ; + goto out_unlock; } -up_write (&set->update_nr_hwq_lock); + ret =elevator_change (q, &ctx); +if (!ret) + ret = count; + +blk_queue_flag_clear (QUEUE_FLAG_NO_ELV_SWITCH , q); +out_unlock: +up_read (&set->update_nr_hwq_lock); out:if (ctx.type)elevator_put (ctx.type);
block/ioctl.c +2 -2
@@ -835,8 +835,8 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)return compat_put_ulong (argp,bdev_nr_sectors (bdev));/* The data is compatible, but the command number is different */ -case BLKBSZGET_32 :/* get the logical block size (cf. BLKSSZGET) */ -return put_int (argp,bdev_logical_block_size (bdev)); +case BLKBSZGET_32 :/* get the soft block size (cf. BLKSSZGET) */ +return put_int (argp,block_size (bdev));case BLKBSZSET_32 :return blkdev_bszset (file, mode, argp);case BLKGETSIZE64_32 :
drivers/acpi/battery.c +5 -7
@@ -583,9 +583,8 @@ static int acpi_battery_get_info(struct acpi_battery *battery)struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER ,NULL };acpi_status status =AE_ERROR ; - status =acpi_evaluate_object (battery->device->handle, - use_bix ?"_BIX" :"_BIF" , -NULL , &buffer); + status =acpi_evaluate_object_exclusive (battery->device->handle, + use_bix ?"_BIX" :"_BIF" ,NULL , &buffer);if (ACPI_FAILURE (status)) { acpi_handle_info(battery->device->handle,
@@ -624,8 +623,7 @@ static int acpi_battery_get_state(struct acpi_battery *battery) msecs_to_jiffies(cache_time)))return 0 ; - status =acpi_evaluate_object (battery->device->handle,"_BST" , -NULL , &buffer); + status =acpi_evaluate_object_exclusive (battery->device->handle,"_BST" ,NULL , &buffer);if (ACPI_FAILURE (status)) { acpi_handle_info(battery->device->handle, "_BST evaluation failed: %s",
@@ -675,8 +673,8 @@ static int acpi_battery_set_alarm(struct acpi_battery *battery) !test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags))return -ENODEV ; - status =acpi_execute_simple_method (battery->device->handle,"_BTP" , - battery->alarm); + status =acpi_execute_simple_method_exclusive (battery->device->handle,"_BTP" , + battery->alarm);if (ACPI_FAILURE (status))return -ENODEV ;
drivers/acpi/cppc_acpi.c +55 -6
131 lines not on this page · raw message
drivers/acpi/utils.c +41 -0
65 lines not on this page · raw message
drivers/ata/libata-pmp.c +14 -0
@@ -482,6 +482,20 @@ static void sata_pmp_quirks(struct ata_port *ap)if (link->pmp ==4 ) link->flags |=ATA_LFLAG_DISABLED ; } + }else if (vendor ==0x1b4b && devid ==0x9705 ) { +/* +* Marvell 88SM9705 quirks +* +* 1-to-5 PMP with an extra SEMB port. It reports 6 ports and +* port 5 is the SEMB, which never answers SRST: EH spends about +* a minute per round retrying it, and disk discovery waits for +* that. Seen behind a Marvell 88SE9235 in the Synology DX1215 +* and DX1222. +*/ +ata_for_each_link (link, ap,EDGE ) { +if (link->pmp ==5 ) + link->flags |=ATA_LFLAG_DISABLED ; + } } }
drivers/ata/libata-scsi.c +25 -0
@@ -1984,6 +1984,18 @@ static int ata_scsi_translate(struct ata_device *dev, struct scsi_cmnd *cmd,if (xlat_func (qc)) goto done; +/* +* A data-out request may contain pages pinned without write access. +* Reject a translated data-in command before issuing it, since its +* completion handler may write to the buffer even if the device fails. +*/ +if (unlikely (cmd->sc_data_direction ==DMA_TO_DEVICE && +ata_is_data (qc->tf.protocol) && + !(qc->tf.flags &ATA_TFLAG_WRITE ))) { +ata_scsi_set_sense (dev, cmd,ABORTED_COMMAND ,0x4b ,0x0a ); + goto done; + } +return ata_scsi_qc_issue (ap, qc); done:
@@ -2015,6 +2027,12 @@ static void ata_scsi_rbuf_fill(struct ata_device *dev, struct scsi_cmnd *cmd,unsigned long flags;unsigned int len; +/* A data-out request may contain pages pinned without write access. */ +if (cmd->sc_data_direction ==DMA_TO_DEVICE ) { +ata_scsi_set_sense (dev, cmd,ABORTED_COMMAND ,0x4b ,0x0a ); +return ; + } +spin_lock_irqsave (&ata_scsi_rbuf_lock, flags);memset (ata_scsi_rbuf,0 ,ATA_SCSI_RBUF_SIZE );
@@ -3108,6 +3126,13 @@ static unsigned int atapi_xlat(struct ata_queued_cmd *qc) qc->complete_fn = atapi_qc_complete; +/* atapi_fixup_inquiry() writes to the buffer on successful completion. */ +if (scmd->sc_data_direction ==DMA_TO_DEVICE && + scmd->cmnd[0 ] ==INQUIRY ) { +ata_scsi_set_sense (dev, scmd,ABORTED_COMMAND ,0x4b ,0x0a ); +return 1 ; + } + qc->tf.flags |=ATA_TFLAG_ISADDR |ATA_TFLAG_DEVICE ;if (scmd->sc_data_direction ==DMA_TO_DEVICE ) { qc->tf.flags |=ATA_TFLAG_WRITE ;
drivers/block/ublk_drv.c +1 -0
@@ -5833,6 +5833,7 @@ static int ublk_ctrl_uring_cmd_permission(struct ublk_device *ub,case UBLK_CMD_STOP_DEV :case UBLK_CMD_ADD_DEV :case UBLK_CMD_DEL_DEV : +case UBLK_CMD_DEL_DEV_ASYNC :case UBLK_CMD_SET_PARAMS :case UBLK_CMD_START_USER_RECOVERY :case UBLK_CMD_END_USER_RECOVERY :
drivers/block/virtio_blk.c +1 -1
@@ -1596,7 +1596,7 @@ static int virtblk_freeze_priv(struct virtio_device *vdev)/* Ensure no requests in virtqueues before deleting vqs. */ memflags =blk_mq_freeze_queue (q); -blk_mq_quiesce_queue_nowait (q); +blk_mq_quiesce_queue (q);blk_mq_unfreeze_queue (q, memflags);/* Ensure we don't receive any more interrupts */
drivers/bluetooth/btqca.c +2 -1
@@ -426,7 +426,8 @@ static int qca_tlv_check_data(struct hci_dev *hdev, tlv_nvm->data[0 ] |=0x80 ;/* UART Baud Rate */ -if (soc_type >=QCA_WCN3991 ) +if (soc_type ==QCA_WCN3950 || + soc_type >=QCA_WCN3991 ) tlv_nvm->data[1 ] = nvm_baud_rate;else tlv_nvm->data[2 ] = nvm_baud_rate;
drivers/char/hw_random/virtio-rng.c +7 -0
@@ -190,6 +190,7 @@ static int probe_common(struct virtio_device *vdev) err_find:ida_free (&rng_index_ida, index); err_ida: + vdev->priv =NULL ;kfree (vi);return err; }
@@ -198,6 +199,11 @@ static void remove_common(struct virtio_device *vdev) {struct virtrng_info *vi = vdev->priv; +if (!vi) { +virtio_reset_device (vdev); +return ; + } + vi->hwrng_removed = true; vi->data_avail =0 ; vi->data_idx =0 ;
@@ -207,6 +213,7 @@ static void remove_common(struct virtio_device *vdev)virtio_reset_device (vdev); vdev->config->del_vqs (vdev);ida_free (&rng_index_ida, vi->index); + vdev->priv =NULL ;kfree (vi); }
drivers/clk/nuvoton/clk-ma35d1.c +5 -2
@@ -17,6 +17,7 @@static DEFINE_SPINLOCK (ma35d1_lock);#define PLL_MAX_NUM 5 +#define MA35D1_CLK_COUNT 238/* Clock Control Registers Offset */ #define REG_CLK_PWRCTL 0x00
@@ -467,12 +468,12 @@ static int ma35d1_clocks_probe(struct platform_device *pdev)int ret; ma35d1_hw_data =devm_kzalloc (dev, -struct_size (ma35d1_hw_data, hws,CLK_MAX_IDX ), +struct_size (ma35d1_hw_data, hws,MA35D1_CLK_COUNT ),GFP_KERNEL );if (!ma35d1_hw_data)return -ENOMEM ; - ma35d1_hw_data->num =CLK_MAX_IDX ; + ma35d1_hw_data->num =MA35D1_CLK_COUNT ; hws = ma35d1_hw_data->hws; clk_base =devm_platform_ioremap_resource (pdev,0 );
@@ -543,6 +544,8 @@ static int ma35d1_clocks_probe(struct platform_device *pdev) hws[HCLK3 ] =ma35d1_clk_fixed_factor (dev,"hclk3" ,"sysclk1_mux" ,1 ,2 ); hws[PCLK3 ] =ma35d1_clk_fixed_factor (dev,"pclk3" ,"sysclk1_mux" ,1 ,2 ); hws[PCLK4 ] =ma35d1_clk_fixed_factor (dev,"pclk4" ,"sysclk1_mux" ,1 ,2 ); + hws[PCLK3_DIV4096 ] =ma35d1_clk_fixed_factor (dev,"pclk3_div4096" ,"pclk3" ,1 ,4096 ); + hws[PCLK4_DIV4096 ] =ma35d1_clk_fixed_factor (dev,"pclk4_div4096" ,"pclk4" ,1 ,4096 ); hws[USBPHY0 ] =ma35d1_clk_fixed ("usbphy0" ,480000000 ); hws[USBPHY1 ] =ma35d1_clk_fixed ("usbphy1" ,480000000 );
drivers/cpufreq/amd-pstate.c +20 -5
@@ -1796,7 +1796,7 @@ EXPORT_SYMBOL_FOR_PSTATE_UT(amd_pstate_get_status);int amd_pstate_update_status (const char *buf,size_t size) { -int mode_idx; +int cpu, mode_idx, ret =0 ;if (size >strlen ("passive" ) || size <strlen ("active" ))return -EINVAL ;
@@ -1805,12 +1805,27 @@ int amd_pstate_update_status(const char *buf, size_t size)if (mode_idx <0 )return mode_idx; -if (mode_state_machine[cppc_state][mode_idx]) { -guard (mutex)(&amd_pstate_driver_lock); -return mode_state_machine[cppc_state][mode_idx](mode_idx); +guard (mutex)(&amd_pstate_driver_lock); + +if (!mode_state_machine[cppc_state][mode_idx]) +return 0 ; + +if (mode_idx ==AMD_PSTATE_PASSIVE && + !cpu_feature_enabled (X86_FEATURE_CPPC )) { +cpus_read_lock (); +/* Check offline CPUs too, before changing or removing the driver. */ +for_each_present_cpu (cpu) { +if (cppc_auto_sel_is_immutable (cpu)) { + ret = -EOPNOTSUPP ; +break ; + } + } +cpus_read_unlock (); +if (ret) +return ret; } -return 0 ; +return mode_state_machine[cppc_state][mode_idx](mode_idx); }EXPORT_SYMBOL_FOR_PSTATE_UT (amd_pstate_update_status);
drivers/cpufreq/cppc_cpufreq.c +18 -8
@@ -42,6 +42,7 @@ MODULE_PARM_DESC(fie_disabled, "Disable Frequency Invariance Engine (FIE)");/* Frequency invariance support */ struct cppc_freq_invariance {int cpu; +bool pcc_work_initialized;struct irq_work irq_work;struct kthread_work work;struct cppc_perf_fb_ctrs prev_perf_fb_ctrs;
@@ -152,7 +153,7 @@ static struct scale_freq_data cppc_sftd_pcc = {static void cppc_cpufreq_cpu_fie_init (struct cpufreq_policy *policy) { -struct scale_freq_data *sftd = &cppc_sftd; +struct scale_freq_data *sftd;struct cppc_freq_invariance *cppc_fi;int cpu, ret;
@@ -169,7 +170,7 @@ static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy)kthread_init_work (&cppc_fi->work, cppc_scale_freq_workfn);init_irq_work (&cppc_fi->irq_work, cppc_irq_work); - sftd = &cppc_sftd_pcc; + cppc_fi->pcc_work_initialized = true; } ret =cppc_get_perf_ctrs (cpu, &cppc_fi->prev_perf_fb_ctrs);
@@ -185,8 +186,15 @@ static void cppc_cpufreq_cpu_fie_init(struct cpufreq_policy *policy) } } -/* Register for freq-invariance */ -topology_set_scale_freq_source (sftd, policy->cpus); +/* A shared policy may contain both PCC and non-PCC counters. */ +for_each_cpu (cpu, policy->cpus) { + cppc_fi = &per_cpu (cppc_freq_inv, cpu); +if (cppc_fi->pcc_work_initialized) + sftd = &cppc_sftd_pcc; +else + sftd = &cppc_sftd; +topology_set_scale_freq_source (sftd,cpumask_of (cpu)); + } }/*
@@ -209,11 +217,12 @@ static void cppc_cpufreq_cpu_fie_exit(struct cpufreq_policy *policy)topology_clear_scale_freq_source (SCALE_FREQ_SOURCE_CPPC , policy->related_cpus);for_each_cpu (cpu, policy->related_cpus) { -if (!cppc_perf_ctrs_in_pcc_cpu (cpu)) -continue ; cppc_fi = &per_cpu (cppc_freq_inv, cpu); +if (!cppc_fi->pcc_work_initialized) +continue ;irq_work_sync (&cppc_fi->irq_work);kthread_cancel_work_sync (&cppc_fi->work); + cppc_fi->pcc_work_initialized = false; } }
@@ -890,6 +899,7 @@ static ssize_t store_auto_select(struct cpufreq_policy *policy, const char *buf, size_t count) {struct cppc_cpudata *cpu_data = policy->driver_data; +bool old_auto_sel = cpu_data->perf_ctrls.auto_sel;bool val;int ret;
@@ -918,8 +928,8 @@ static ssize_t store_auto_select(struct cpufreq_policy *policy,if (ret) { cpu_data->perf_ctrls.min_perf = old_min_perf; cpu_data->perf_ctrls.max_perf = old_max_perf; -cppc_set_auto_sel (policy->cpu, false); - cpu_data->perf_ctrls.auto_sel = false; +cppc_set_auto_sel (policy->cpu, old_auto_sel); + cpu_data->perf_ctrls.auto_sel = old_auto_sel;return ret; } }
drivers/cxl/core/features.c +1 -1
@@ -97,6 +97,7 @@ get_supported_features(struct cxl_features_state *cxlfs)kvmalloc_flex (*entries, ent, count);if (!entries)return NULL ; + entries->num_features = count; struct cxl_mbox_get_sup_feats_out *mbox_out __free(kvfree) =kvmalloc (cxl_mbox->payload_size,GFP_KERNEL );
@@ -174,7 +175,6 @@ get_supported_features(struct cxl_features_state *cxlfs) start += num_entries; }while (remain_feats); - entries->num_features = count; entries->num_user_features = user_feats;return no_free_ptr (entries);
drivers/dma-buf/dma-buf-mapping.c +1 -1
@@ -156,7 +156,7 @@ struct sg_table *dma_buf_phys_vec_to_sgt(struct dma_buf_attachment *attach, phys_vec[i].paddr); }else if (dma_use_iova (dma->state)) { ret =dma_iova_link (attach->dev, dma->state, - phys_vec[i].paddr,0 , + phys_vec[i].paddr, mapped_len, phys_vec[i].len, dir,DMA_ATTR_MMIO );if (ret)
drivers/dma/qcom/bam_dma.c +6 -4
@@ -1332,8 +1332,8 @@ static int bam_dma_probe(struct platform_device *pdev)for (i =0 ; i < bdev->num_channels; i++)bam_channel_init (bdev, &bdev->channels[i], i); - ret =devm_request_irq (bdev->dev, bdev->irq, bam_dma_irq, -IRQF_TRIGGER_HIGH ,"bam_dma" , bdev); + ret =request_irq (bdev->irq, bam_dma_irq,IRQF_TRIGGER_NONE , +"bam_dma" , bdev);if (ret) goto err_bam_channel_exit;
@@ -1366,7 +1366,7 @@ static int bam_dma_probe(struct platform_device *pdev) ret =dma_async_device_register (&bdev->common);if (ret) {dev_err (bdev->dev,"failed to register dma async device\n" ); - goto err_bam_channel_exit; + goto err_free_irq; } ret = of_dma_controller_register(pdev->dev.of_node, bam_dma_xlate,
@@ -1385,6 +1385,8 @@ static int bam_dma_probe(struct platform_device *pdev) err_unregister_dma:dma_async_device_unregister (&bdev->common); +err_free_irq: +free_irq (bdev->irq, bdev); err_bam_channel_exit:for (i =0 ; i < bdev->num_channels; i++)tasklet_kill (&bdev->channels[i].vc.task);
@@ -1410,7 +1412,7 @@ static void bam_dma_remove(struct platform_device *pdev)/* mask all interrupts for this execution environment */ writel_relaxed (0 ,bam_addr (bdev,0 ,BAM_IRQ_SRCS_MSK_EE )); -devm_free_irq (bdev->dev, bdev->irq, bdev); +free_irq (bdev->irq, bdev);for (i =0 ; i < bdev->num_channels; i++) {bam_dma_terminate_all (&bdev->channels[i].vc.chan);
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +5 -1
@@ -405,7 +405,11 @@ int amdgpu_atif_query_backlight_caps(struct amdgpu_atif *atif) characteristics.max_input_signal; atif->backlight_caps.ac_level = characteristics.ac_level; atif->backlight_caps.dc_level = characteristics.dc_level; - atif->backlight_caps.data_points = characteristics.number_of_points; +if (characteristics.number_of_points >ATIF_QBTC_MAX_DATA_POINTS ) +pr_warn (FW_BUG "ATIF: backlight curve has %u points, using the first %u\n" , + characteristics.number_of_points,ATIF_QBTC_MAX_DATA_POINTS ); + atif->backlight_caps.data_points =min_t (u8, characteristics.number_of_points, +ATIF_QBTC_MAX_DATA_POINTS );memcpy (atif->backlight_caps.luminance_data, characteristics.data_points,sizeof (atif->backlight_caps.luminance_data));
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h +2 -1
@@ -345,7 +345,8 @@ int amdgpu_amdkfd_gpuvm_map_bo_to_kernel(struct kgd_mem *mem, void **kptr, u64 *size, u32 domain);void amdgpu_amdkfd_gpuvm_unmap_bo_from_kernel (struct kgd_mem *mem); -int amdgpu_amdkfd_map_gtt_bo_to_gart (struct amdgpu_bo *bo,struct amdgpu_bo **bo_gart); +int amdgpu_amdkfd_map_gtt_bo_to_gart (struct amdgpu_bo *bo,struct amdgpu_bo **bo_gart, +struct amdkfd_process_info *process_info);int amdgpu_amdkfd_gpuvm_restore_process_bos (void *process_info,struct dma_fence __rcu **ef);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +12 -5
@@ -975,11 +975,11 @@ static int kfd_mem_attach(struct amdgpu_device *adev, struct kgd_mem *mem, ret =amdgpu_vm_lock_pd (vm, &exec,0 );drm_exec_retry_on_contention (&exec);if (unlikely (ret)) - goto unwind; + goto unlock; ret =drm_exec_lock_obj (&exec, &bo[i]->tbo.base);drm_exec_retry_on_contention (&exec);if (unlikely (ret)) - goto unwind; + goto unlock; } bo_va =amdgpu_vm_bo_find (vm, bo[i]);
@@ -1005,6 +1005,8 @@ static int kfd_mem_attach(struct amdgpu_device *adev, struct kgd_mem *mem,return 0 ; +unlock: +drm_exec_fini (&exec); unwind:for (; i >=0 ; i--) {if (!attachment[i])
@@ -2261,11 +2263,13 @@ int amdgpu_amdkfd_gpuvm_sync_memory(* amdgpu_amdkfd_map_gtt_bo_to_gart - Map BO to GART and increment reference count * @bo: Buffer object to be mapped * @bo_gart: Return bo reference +* @process_info: KFD process info of the queue the BO is for * * Before return, bo reference count is incremented. To release the reference and unpin/ * unmap the BO, call amdgpu_amdkfd_free_kernel_mem. */ -int amdgpu_amdkfd_map_gtt_bo_to_gart (struct amdgpu_bo *bo,struct amdgpu_bo **bo_gart) +int amdgpu_amdkfd_map_gtt_bo_to_gart (struct amdgpu_bo *bo,struct amdgpu_bo **bo_gart, +struct amdkfd_process_info *process_info) {int ret;
@@ -2287,8 +2291,8 @@ int amdgpu_amdkfd_map_gtt_bo_to_gart(struct amdgpu_bo *bo, struct amdgpu_bo **bo goto err_map_bo_gart_failed; } -amdgpu_amdkfd_remove_eviction_fence ( - bo, bo->vm_bo->vm->process_info->eviction_fence); +/* bo->vm_bo can be the VM of any file which opened the BO */ +amdgpu_amdkfd_remove_eviction_fence (bo, process_info->eviction_fence);amdgpu_bo_unreserve (bo);
@@ -2473,6 +2477,9 @@ static int import_obj_create(struct amdgpu_device *adev, err_remove_mem:remove_kgd_mem_from_kfd_bo_list (*mem, avm->process_info); +amdgpu_sync_free (&(*mem)->sync); +mutex_destroy (&(*mem)->lock); +dma_buf_put (dma_buf);drm_vma_node_revoke (&obj->vma_node, drm_priv); err_free_mem:kfree (*mem);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +14 -7
@@ -149,7 +149,12 @@ static int amdgpu_cs_p1_user_fence(struct amdgpu_cs_parser *p,if (size !=PAGE_SIZE || data->offset > (size -8 ))return -EINVAL ; -if (amdgpu_ttm_tt_get_usermm (p->uf_bo->tbo.ttm)) +if (amdgpu_ttm_tt_is_userptr (p->uf_bo->tbo.ttm)) +return -EINVAL ; + +/* The GPU writes the user fence through the GART */ +if (p->uf_bo->preferred_domains !=AMDGPU_GEM_DOMAIN_GTT && + p->uf_bo->allowed_domains !=AMDGPU_GEM_DOMAIN_GTT )return -EINVAL ; *offset = data->offset;
@@ -188,18 +193,22 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,int ret;int i; +if (cs->in.flags) +return -EINVAL ; + chunk_array =memdup_array_user (u64_to_user_ptr (cs->in.chunks), cs->in.num_chunks,sizeof (uint64_t ));if (IS_ERR (chunk_array))return PTR_ERR (chunk_array); - p->nchunks = cs->in.num_chunks; - p->chunks = kvmalloc_objs(struct amdgpu_cs_chunk, p->nchunks); +/* parser_fini() walks nchunks chunks, set it once they exist */ + p->chunks = kvmalloc_objs(struct amdgpu_cs_chunk, cs->in.num_chunks);if (!p->chunks) { ret = -ENOMEM ; goto free_chunk; } + p->nchunks = cs->in.num_chunks;for (i =0 ; i < p->nchunks; i++) {struct drm_amdgpu_cs_chunk __user *chunk_ptr =NULL ;
@@ -1071,7 +1080,7 @@ static int amdgpu_cs_patch_ibs(struct amdgpu_cs_parser *p,if (r)return r; - kptr += va_start - (m->start *AMDGPU_GPU_PAGE_SIZE ); + kptr += va_start - (m->start *AMDGPU_GPU_PAGE_SIZE ) + m->offset;if (ring->funcs->parse_cs) {memcpy (ib->ptr, kptr, ib->length_dw *4 );
@@ -1309,10 +1318,8 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p, fence = &p->jobs[i]->base.s_fence->scheduled;dma_fence_get (fence); r =drm_sched_job_add_dependency (&leader->base, fence); -if (r) { -dma_fence_put (fence); +if (r)return r; - } }if (p->gang_size >1 ) {
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +22 -19
73 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +40 -4
63 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c +5 -0
@@ -547,6 +547,11 @@ amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach)continue ; } +if (!amdgpu_vm_ready (vm)) { +dma_resv_unlock (resv); +continue ; + } +/* Reserve fences for two SDMA page table updates */ r =dma_resv_reserve_fences (resv,2 );if (!r)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +5 -2
@@ -1033,6 +1033,7 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,int amdgpu_gem_op_ioctl (struct drm_device *dev,void *data,struct drm_file *filp) { +struct amdgpu_device *adev =drm_to_adev (dev);struct drm_amdgpu_gem_op *args = data;struct drm_gem_object *gobj;struct amdgpu_vm_bo_base *base;
@@ -1139,7 +1140,8 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,amdgpu_vm_bo_va_for_each_valid_mapping (bo_va, mapping) {if (num_mappings < args->num_entries) { - vm_entries[num_mappings].addr = mapping->start *AMDGPU_GPU_PAGE_SIZE ; + vm_entries[num_mappings].addr = +amdgpu_gmc_sign_extend (mapping->start *AMDGPU_GPU_PAGE_SIZE ); vm_entries[num_mappings].size = (mapping->last - mapping->start +1 ) *AMDGPU_GPU_PAGE_SIZE ; vm_entries[num_mappings].offset = mapping->offset; vm_entries[num_mappings].flags = mapping->flags;
@@ -1149,7 +1151,8 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,amdgpu_vm_bo_va_for_each_invalid_mapping (bo_va, mapping) {if (num_mappings < args->num_entries) { - vm_entries[num_mappings].addr = mapping->start *AMDGPU_GPU_PAGE_SIZE ; + vm_entries[num_mappings].addr = +amdgpu_gmc_sign_extend (mapping->start *AMDGPU_GPU_PAGE_SIZE ); vm_entries[num_mappings].size = (mapping->last - mapping->start +1 ) *AMDGPU_GPU_PAGE_SIZE ; vm_entries[num_mappings].offset = mapping->offset; vm_entries[num_mappings].flags = mapping->flags;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +2 -1
@@ -1485,7 +1485,8 @@ int amdgpu_ras_reset_error_count(struct amdgpu_device *adev,return -EOPNOTSUPP ; } -if (!amdgpu_ras_is_supported (adev, block)) +if (!amdgpu_ras_is_supported (adev, block) || + !amdgpu_ras_mgr_get_debug_mode (adev))return -EOPNOTSUPP ;if (amdgpu_sriov_vf (adev))
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c +1 -3
@@ -447,10 +447,8 @@ int amdgpu_sync_push_to_job(struct amdgpu_sync *sync, struct amdgpu_job *job)dma_fence_get (f); r =drm_sched_job_add_dependency (&job->base, f); -if (r) { -dma_fence_put (f); +if (r)return r; - } }return 0 ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +11 -8
@@ -365,6 +365,8 @@ static int amdgpu_userq_unmap_helper(struct amdgpu_usermode_queue *queue) adev->userq_funcs[queue->queue_type];int r; +/* The reset changes the queue state and the MES is unusable meanwhile */ +guard (rwsem_read)(&adev->reset_domain->sem);if ((queue->state ==AMDGPU_USERQ_STATE_MAPPED ) || (queue->state ==AMDGPU_USERQ_STATE_PREEMPTED )) {trace_amdgpu_userq_state_start (queue);
@@ -391,6 +393,8 @@ static int amdgpu_userq_map_helper(struct amdgpu_usermode_queue *queue) adev->userq_funcs[queue->queue_type];int r; +/* The reset changes the queue state and the MES is unusable meanwhile */ +guard (rwsem_read)(&adev->reset_domain->sem);if (queue->state ==AMDGPU_USERQ_STATE_UNMAPPED ) {trace_amdgpu_userq_state_start (queue);
@@ -751,12 +755,7 @@ amdgpu_userq_create(struct drm_file *filp, union drm_amdgpu_userq *args)if (!adev->userq_halt_for_enforce_isolation || ((queue->queue_type !=AMDGPU_HW_IP_GFX ) && (queue->queue_type !=AMDGPU_HW_IP_COMPUTE ))) { -/* Serialize the map against an in-progress GPU reset (MES is -* unresponsive during recovery), matching amdgpu_userq_detach_doorbell(). -*/ -down_read (&adev->reset_domain->sem); r =amdgpu_userq_map_helper (queue); -up_read (&adev->reset_domain->sem);if (r) {drm_file_err (uq_mgr->file,"Failed to map Queue\n" );trace_amdgpu_userq_create_end (queue, r);
@@ -973,7 +972,11 @@ static int amdgpu_userq_validate_vm(void *param, struct amdgpu_bo *bo)return ttm_bo_validate (&bo->tbo, &bo->placement, &ctx); } -/* Handle all BOs on the invalidated list, validate them and update the PTs */ +/* +* Handle all individual BOs which were moved, lock and validate them and +* update the PTs. An evicted individual BO lands on the needs_update list, +* the evicted one only holds imported DMA-bufs of compute VMs. +*/ static int amdgpu_userq_bo_validate (struct amdgpu_device *adev,struct drm_exec *exec,struct amdgpu_vm *vm)
@@ -984,8 +987,8 @@ amdgpu_userq_bo_validate(struct amdgpu_device *adev, struct drm_exec *exec,int ret;spin_lock (&vm->individual_lock); -while (!list_empty (&vm->individual.evicted)) { - bo_va =list_first_entry (&vm->individual.evicted, +while (!list_empty (&vm->individual.needs_update)) { + bo_va =list_first_entry (&vm->individual.needs_update, struct amdgpu_bo_va, base.vm_status); bo = bo_va->base.bo;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +12 -4
@@ -269,19 +269,27 @@ static void amdgpu_vm_bo_reset_state_machine(struct amdgpu_vm *vm)/* * Don't use list splice here, we need the special handling for the root -* PD and set the moved flag appropriately. +* PD. All mappings must be written again, also of the vm_bos which are +* already waiting for an update of some of them, e.g. after a map with +* a delayed update, so set the moved flag for everything that needs an +* update. */ amdgpu_vm_assert_locked (vm);list_for_each_entry_safe (vm_bo, tmp, &vm->kernel.idle, vm_status)amdgpu_vm_bo_needs_update (vm_bo); +list_for_each_entry (vm_bo, &vm->kernel.needs_update, vm_status) + vm_bo->moved = true; +list_for_each_entry_safe (vm_bo, tmp, &vm->always_valid.idle, vm_status)amdgpu_vm_bo_needs_update (vm_bo); +list_for_each_entry (vm_bo, &vm->always_valid.needs_update, vm_status) + vm_bo->moved = true;spin_lock (&vm->individual_lock); -list_for_each_entry_safe (vm_bo, tmp, &vm->individual.idle, vm_status) { - vm_bo->moved = true; +list_for_each_entry_safe (vm_bo, tmp, &vm->individual.idle, vm_status)list_move (&vm_bo->vm_status, &vm->individual.needs_update); - } +list_for_each_entry (vm_bo, &vm->individual.needs_update, vm_status) + vm_bo->moved = true;spin_unlock (&vm->individual_lock); }
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c +0 -1
@@ -234,7 +234,6 @@ static int amdgpu_vm_sdma_update(struct amdgpu_vm_update_params *p,dma_fence_get (fence); r =drm_sched_job_add_dependency (&p->job->base, fence);if (r) { -dma_fence_put (fence);dma_resv_iter_end (&cursor);return r; }
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +3 -2
@@ -1705,8 +1705,9 @@ static void dce_v10_0_afmt_setmode(struct drm_encoder *encoder,WREG32 (mmAFMT_RAMP_CONTROL2 + dig->afmt->offset,0x00000001 );WREG32 (mmAFMT_RAMP_CONTROL3 + dig->afmt->offset,0x00000001 ); -/* enable audio after to setting up hw */ -dce_v10_0_audio_enable (adev, dig->afmt->pin, true); +/* Only enable audio if the display supports it */ +if (connector->display_info.has_audio) +dce_v10_0_audio_enable (adev, dig->afmt->pin, true); }static void dce_v10_0_afmt_enable (struct drm_encoder *encoder,bool enable)
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +3 -2
@@ -1748,8 +1748,9 @@ static void dce_v6_0_afmt_setmode(struct drm_encoder *encoder,dce_v6_0_audio_dp_enable (encoder,1 ); } -/* enable audio after setting up hw */ -dce_v6_0_audio_enable (adev, dig->afmt->pin, true); +/* Only enable audio if the display supports it */ +if (connector->display_info.has_audio) +dce_v6_0_audio_enable (adev, dig->afmt->pin, true); }static void dce_v6_0_afmt_enable (struct drm_encoder *encoder,bool enable)
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +3 -2
@@ -1653,8 +1653,9 @@ static void dce_v8_0_afmt_setmode(struct drm_encoder *encoder,WREG32 (mmAFMT_RAMP_CONTROL2 + offset,0x00000001 );WREG32 (mmAFMT_RAMP_CONTROL3 + offset,0x00000001 ); -/* enable audio after setting up hw */ -dce_v8_0_audio_enable (adev, dig->afmt->pin, true); +/* Only enable audio if the display supports it */ +if (connector->display_info.has_audio) +dce_v8_0_audio_enable (adev, dig->afmt->pin, true); }static void dce_v8_0_afmt_enable (struct drm_encoder *encoder,bool enable)
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +2 -0
@@ -4080,6 +4080,7 @@ static void gfx_v12_0_update_spm_vmid(struct amdgpu_device *adev, {u32 reg, data; +amdgpu_gfx_off_ctrl (adev, false); reg =SOC15_REG_OFFSET (GC ,0 , regRLC_SPM_MC_CNTL);if (amdgpu_sriov_is_pp_one_vf (adev)) data =RREG32_NO_KIQ (reg);
@@ -4093,6 +4094,7 @@ static void gfx_v12_0_update_spm_vmid(struct amdgpu_device *adev,WREG32_SOC15_NO_KIQ (GC ,0 , regRLC_SPM_MC_CNTL, data); else WREG32_SOC15(GC, 0, regRLC_SPM_MC_CNTL, data); +amdgpu_gfx_off_ctrl (adev, true);if (ring && amdgpu_sriov_is_pp_one_vf(adev)
drivers/gpu/drm/amd/amdgpu/ih_v6_0.c +12 -1
@@ -168,8 +168,19 @@ static int ih_v6_0_toggle_ring_interrupts(struct amdgpu_device *adev, tmp =REG_SET_FIELD (tmp,IH_RB_CNTL ,ENABLE_INTR , (enable ?1 :0 ));if (amdgpu_sriov_vf (adev) &&amdgpu_sriov_reg_indirect_ih (adev)) { -if (psp_reg_program (&adev->psp, ih_regs->psp_reg_id, tmp)) +/* +* PSP programming of IH_RB_CNTL is slow enough for MSI to +* arrive before this call returns. Publish ih->enabled first +* so amdgpu_ih_process() consumes that IV and rearms. +*/ +if (enable) { + ih->enabled = true; +smp_wmb (); + } +if (psp_reg_program (&adev->psp, ih_regs->psp_reg_id, tmp)) { + ih->enabled = false;return -ETIMEDOUT ; + } }else {WREG32 (ih_regs->ih_rb_cntl, tmp); }
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +3 -1
@@ -218,8 +218,10 @@ static int mes_v11_0_submit_pkt_and_poll_completion(struct amdgpu_mes *mes, r =amdgpu_fence_wait_polling (ring, seq - ring->fence_drv.num_fences_mask, timeout); -if (r <1 ) +if (r <1 ) { + r = -ETIMEDOUT ; goto error_undo; + } api_status = (struct MES_API_STATUS *)((char *)pkt + api_status_off); api_status->api_completion_fence_addr = status_gpu_addr;
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +3 -1
@@ -195,8 +195,10 @@ static int mes_v12_0_submit_pkt_and_poll_completion(struct amdgpu_mes *mes, r =amdgpu_fence_wait_polling (ring, seq - ring->fence_drv.num_fences_mask, timeout); -if (r <1 ) +if (r <1 ) { + r = -ETIMEDOUT ; goto error_undo; + } api_status = (struct MES_API_STATUS *)((char *)pkt + api_status_off); api_status->api_completion_fence_addr = status_gpu_addr;
drivers/gpu/drm/amd/amdgpu/navi10_ih.c +40 -1
53 lines not on this page · raw message
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +2 -1
@@ -303,7 +303,8 @@ static int init_user_queue(struct process_queue_manager *pqm, } retval =amdgpu_amdkfd_map_gtt_bo_to_gart (q_properties->wptr_bo, - &(*q)->wptr_bo_gart); + &(*q)->wptr_bo_gart, + pqm->process->kgd_process_info);if (retval) {pr_err ("Failed to map wptr bo to GART\n" ); goto free_gang_ctx_bo;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_freesync.c +26 -1
@@ -128,6 +128,14 @@ void amdgpu_dm_get_freesync_config_for_crtc( vrefresh >= aconnector->min_vfreq && vrefresh <= aconnector->max_vfreq; +/* +* DC reads allow_freesync while validating the new state, for example +* to keep SubVP off a single FreeSync display, but it is otherwise set +* only on the first flip after the commit. Set it here, so that a +* stream created by this commit is not validated without it. +*/ + new_crtc_state->stream->allow_freesync = new_crtc_state->vrr_supported; +if (new_crtc_state->vrr_supported) { new_crtc_state->stream->ignore_msa_timing_param = true; fs_vid_mode = new_crtc_state->freesync_config.state ==VRR_STATE_ACTIVE_FIXED ;
@@ -154,6 +162,18 @@ void amdgpu_dm_get_freesync_config_for_crtc( }EXPORT_IF_KUNIT (amdgpu_dm_get_freesync_config_for_crtc); +#define DP_HDR_SDP_EOTF_IDX 2 + +static bool dm_dp_in_hdr_mode (const struct dc_stream_state *stream) +{ +const struct dc_info_packet *hdr = &stream->hdr_static_metadata; + +if (!dc_is_dp_signal (stream->signal) || !hdr->valid) +return false; + +return hdr->sb[DP_HDR_SDP_EOTF_IDX ] ==HDMI_EOTF_SMPTE_ST2084 ; +} + void amdgpu_dm_update_freesync_state_on_stream( struct amdgpu_display_manager *dm, struct dm_crtc_state *new_crtc_state,
@@ -169,6 +189,7 @@ void amdgpu_dm_update_freesync_state_on_stream(bool pack_sdp_v1_3 = false;struct amdgpu_dm_connector *aconn;enum vrr_packet_type packet_type =PACKET_TYPE_VRR ; +enum color_transfer_func app_tf;if (!new_stream)return ;
@@ -220,12 +241,16 @@ void amdgpu_dm_update_freesync_state_on_stream( &new_stream->adaptive_sync_infopacket); } + app_tf =dm_dp_in_hdr_mode (new_stream) ? +TRANSFER_FUNC_PQ2084 : +TRANSFER_FUNC_UNKNOWN ; +mod_freesync_build_vrr_infopacket ( dm->freesync_module, new_stream, &vrr_params, packet_type, -TRANSFER_FUNC_UNKNOWN , + app_tf, &vrr_infopacket, pack_sdp_v1_3);
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/dcn401_clk_mgr.c +3 -0
@@ -538,6 +538,9 @@ static void dcn401_update_clocks_update_dtb_dto(struct clk_mgr_internal *clk_mgr otg_master =resource_get_otg_master_for_stream ( &context->res_ctx, context->streams[i]);ASSERT (otg_master); +if (!otg_master) +continue ; +ASSERT (otg_master->clock_source);ASSERT (otg_master->clock_source->funcs->program_pix_clk);ASSERT (otg_master->stream_res.pix_clk_params.controller_id >=CONTROLLER_ID_D0 );
drivers/gpu/drm/amd/display/dc/core/dc.c +5 -1
@@ -2452,6 +2452,8 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c* update pending complete before optimizing bandwidth. */ hwss_wait_for_odm_update_pending_complete (dc, context); +/* No DET may stay allocated to a HUBP without a plane (e.g. left over from VBIOS) */ +hwss_reset_unused_det (dc, context);/* pplib is notified if disp_num changed */ dc->hwss.optimize_bandwidth (dc, context);/* Need to do otg sync again as otg could be out of sync due to otg
@@ -4885,8 +4887,10 @@ static void commit_planes_for_stream(struct dc *dc,dc_exit_ips_for_hw_access (dc);dc_z10_restore (dc); -if (update_type ==UPDATE_TYPE_FULL && dc->optimized_required) +if (update_type ==UPDATE_TYPE_FULL && dc->optimized_required) { +hwss_reset_unused_det (dc, dc->current_state);hwss_process_outstanding_hw_updates (dc, dc->current_state); + }if (update_type !=UPDATE_TYPE_FAST && dc->res_pool->funcs->prepare_mcache_programming) dc->res_pool->funcs->prepare_mcache_programming (dc, context);
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c +31 -0
@@ -3047,6 +3047,37 @@ void hwss_wait_for_odm_update_pending_complete(struct dc *dc, struct dc_state *chwss_wait_for_all_blank_complete (dc, context); } +void hwss_reset_unused_det (struct dc *dc,struct dc_state *context) +{ +struct hubbub *hubbub = dc->res_pool->hubbub; +unsigned int i, j; + +if (!hubbub || !hubbub->funcs->program_det_segments) +return ; + +for (i =0 ; i < dc->res_pool->pipe_count; i++) { +struct hubp *hubp = dc->res_pool->hubps[i]; +bool hubp_in_use = false; + +if (!hubp) +continue ; + +for (j =0 ; j < dc->res_pool->pipe_count; j++) { +const struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[j]; + +/* A plane-less pipe renders from the DPG, its HUBP (assigned with the stream) needs no DET */ +if (pipe->plane_state && pipe->plane_res.hubp && + pipe->plane_res.hubp->inst == hubp->inst) { + hubp_in_use = true; +break ; + } + } + +if (!hubp_in_use) + hubbub->funcs->program_det_segments (hubbub, hubp->inst,0 ); + } +} +void hwss_wait_for_no_pipes_pending (struct dc *dc,struct dc_state *context) {int i;
drivers/gpu/drm/amd/display/dc/hwss/hw_sequencer.h +3 -0
@@ -1807,6 +1807,9 @@ void hwss_wait_for_odm_update_pending_complete(struct dc *dc,void hwss_wait_for_no_pipes_pending (struct dc *dc,struct dc_state *context); +void hwss_reset_unused_det (struct dc *dc, +struct dc_state *context); +void hwss_wait_for_outstanding_hw_updates (struct dc *dc,struct dc_state *dc_context);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c +1 -5
@@ -2601,12 +2601,8 @@ bool dp_is_sink_present(struct dc_link *link)* which indicates we need additional delay */ -if (dal_ddc_open (ddc,GPIO_MODE_INPUT , -GPIO_DDC_CONFIG_TYPE_MODE_I2C ) !=GPIO_RESULT_OK ) { -dal_ddc_close (ddc); - +if (dal_ddc_open (ddc,GPIO_MODE_INPUT ,GPIO_DDC_CONFIG_TYPE_MODE_I2C ) !=GPIO_RESULT_OK )return present; - }/* * Read GPIO: DP sink is present if both clock and data pins are zero
drivers/gpu/drm/amd/display/dc/optc/dcn20/dcn20_optc.c +7 -0
@@ -449,6 +449,13 @@ void optc2_lock_doublebuffer_disable(struct timing_generator *optc)void optc2_setup_manual_trigger (struct timing_generator *optc) {struct optc *optc1 =DCN10TG_FROM_TG (optc); +uint32_t v_total, v_total_max; + +REG_GET (OTG_V_TOTAL_MAX ,OTG_V_TOTAL_MAX , &v_total_max); +if (!v_total_max) { +REG_GET (OTG_V_TOTAL ,OTG_V_TOTAL , &v_total); + optc->funcs->set_vtotal_min_max (optc, v_total, v_total); + }/* Set the min/max selectors unconditionally so that * DMCUB fw may change OTG timings when necessary
drivers/gpu/drm/amd/display/dc/optc/dcn30/dcn30_optc.h +18 -0
@@ -91,6 +91,12 @@SRI (OTG_CRC0_WINDOWA_Y_CONTROL ,OTG , inst),\SRI (OTG_CRC0_WINDOWB_X_CONTROL ,OTG , inst),\SRI (OTG_CRC0_WINDOWB_Y_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_DATA_RG ,OTG , inst),\ +SRI (OTG_CRC1_DATA_B ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWA_X_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWA_Y_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWB_X_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWB_Y_CONTROL ,OTG , inst),\SR (GSL_SOURCE_SELECT ),\SRI (OTG_TRIGA_MANUAL_TRIG ,OTG , inst),\SRI (OTG_DRR_CONTROL ,OTG , inst)
@@ -229,6 +235,7 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_CHECK_ALL_FIELDS , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL2 ,OTG_CRC_DSC_MODE , mask_sh),\ SF(OTG0_OTG_CRC_CNTL2, OTG_CRC_DATA_STREAM_COMBINE_MODE, mask_sh),\
@@ -245,6 +252,17 @@SF (OTG0_OTG_CRC0_WINDOWB_X_CONTROL ,OTG_CRC0_WINDOWB_X_END , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_START , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_R_CR , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_G_Y , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_B ,CRC1_B_CB , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_END , mask_sh),\SF (OTG0_OTG_TRIGA_MANUAL_TRIG ,OTG_TRIGA_MANUAL_TRIG , mask_sh),\SF (GSL_SOURCE_SELECT ,GSL0_READY_SOURCE_SEL , mask_sh),\ SF(GSL_SOURCE_SELECT, GSL1_READY_SOURCE_SEL, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn31/dcn31_optc.h +20 -2
@@ -83,6 +83,12 @@SRI (OTG_CRC0_WINDOWA_Y_CONTROL ,OTG , inst),\SRI (OTG_CRC0_WINDOWB_X_CONTROL ,OTG , inst),\SRI (OTG_CRC0_WINDOWB_Y_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_DATA_RG ,OTG , inst),\ +SRI (OTG_CRC1_DATA_B ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWA_X_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWA_Y_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWB_X_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWB_Y_CONTROL ,OTG , inst),\SR (GSL_SOURCE_SELECT ),\SRI (OTG_TRIGA_MANUAL_TRIG ,OTG , inst),\ SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\
@@ -205,7 +211,9 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_CHECK_ALL_FIELDS , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_EN , mask_sh),\SF (OTG0_OTG_CRC0_DATA_RG ,CRC0_R_CR , mask_sh),\SF (OTG0_OTG_CRC0_DATA_RG ,CRC0_G_Y , mask_sh),\ SF(OTG0_OTG_CRC0_DATA_B, CRC0_B_CB, mask_sh),\
@@ -217,6 +225,17 @@SF (OTG0_OTG_CRC0_WINDOWB_X_CONTROL ,OTG_CRC0_WINDOWB_X_END , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_START , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_R_CR , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_G_Y , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_B ,CRC1_B_CB , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_END , mask_sh),\SF (OTG0_OTG_TRIGA_MANUAL_TRIG ,OTG_TRIGA_MANUAL_TRIG , mask_sh),\SF (GSL_SOURCE_SELECT ,GSL0_READY_SOURCE_SEL , mask_sh),\ SF(GSL_SOURCE_SELECT, GSL1_READY_SOURCE_SEL, mask_sh),\
@@ -264,8 +283,7 @@ SF(OTG0_INTERRUPT_DEST, OTG0_IHC_OTG_VERTICAL_INTERRUPT2_DEST, mask_sh)#define OPTC_COMMON_MASK_SH_LIST_DCN31X (mask_sh)\ - OPTC_COMMON_MASK_SH_LIST_DCN3_1(mask_sh),\ - SF(OTG0_OTG_CRC_CNTL, OTG_CRC1_EN, mask_sh) + OPTC_COMMON_MASK_SH_LIST_DCN3_1(mask_sh)void dcn31_timing_generator_init (struct optc *optc1);
drivers/gpu/drm/amd/display/dc/optc/dcn314/dcn314_optc.h +18 -0
@@ -84,6 +84,12 @@SRI (OTG_CRC0_WINDOWA_Y_CONTROL ,OTG , inst),\SRI (OTG_CRC0_WINDOWB_X_CONTROL ,OTG , inst),\SRI (OTG_CRC0_WINDOWB_Y_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_DATA_RG ,OTG , inst),\ +SRI (OTG_CRC1_DATA_B ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWA_X_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWA_Y_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWB_X_CONTROL ,OTG , inst),\ +SRI (OTG_CRC1_WINDOWB_Y_CONTROL ,OTG , inst),\SR (GSL_SOURCE_SELECT ),\SRI (OTG_TRIGA_MANUAL_TRIG ,OTG , inst),\ SRI(OTG_GLOBAL_CONTROL1, OTG, inst),\
@@ -204,6 +210,7 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_CHECK_ALL_FIELDS , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_EN , mask_sh),\ SF(OTG0_OTG_CRC0_DATA_RG, CRC0_R_CR, mask_sh),\
@@ -217,6 +224,17 @@SF (OTG0_OTG_CRC0_WINDOWB_X_CONTROL ,OTG_CRC0_WINDOWB_X_END , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_START , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_R_CR , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_G_Y , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_B ,CRC1_B_CB , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_END , mask_sh),\SF (OTG0_OTG_TRIGA_MANUAL_TRIG ,OTG_TRIGA_MANUAL_TRIG , mask_sh),\SF (GSL_SOURCE_SELECT ,GSL0_READY_SOURCE_SEL , mask_sh),\ SF(GSL_SOURCE_SELECT, GSL1_READY_SOURCE_SEL, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.h +11 -0
@@ -146,6 +146,17 @@SF (OTG0_OTG_CRC0_WINDOWB_X_CONTROL ,OTG_CRC0_WINDOWB_X_END , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_START , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_R_CR , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_G_Y , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_B ,CRC1_B_CB , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_END , mask_sh),\SF (OTG0_OTG_TRIGA_MANUAL_TRIG ,OTG_TRIGA_MANUAL_TRIG , mask_sh),\SF (GSL_SOURCE_SELECT ,GSL0_READY_SOURCE_SEL , mask_sh),\ SF(GSL_SOURCE_SELECT, GSL1_READY_SOURCE_SEL, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn35/dcn35_optc.h +0 -11
@@ -32,23 +32,12 @@#define OPTC_COMMON_MASK_SH_LIST_DCN3_5 (mask_sh)\ OPTC_COMMON_MASK_SH_LIST_DCN3_2(mask_sh),\ SF(OTG0_OTG_CRC_CNTL, OTG_CRC_WINDOW_DB_EN, mask_sh),\ - SF(OTG0_OTG_CRC1_DATA_RG, CRC1_R_CR, mask_sh),\ - SF(OTG0_OTG_CRC1_DATA_RG, CRC1_G_Y, mask_sh),\ - SF(OTG0_OTG_CRC1_DATA_B, CRC1_B_CB, mask_sh),\ SF(OTG0_OTG_CRC2_DATA_RG, CRC2_R_CR, mask_sh),\ SF(OTG0_OTG_CRC2_DATA_RG, CRC2_G_Y, mask_sh),\ SF(OTG0_OTG_CRC2_DATA_B, CRC2_B_CB, mask_sh),\ SF(OTG0_OTG_CRC3_DATA_RG, CRC3_R_CR, mask_sh),\ SF(OTG0_OTG_CRC3_DATA_RG, CRC3_G_Y, mask_sh),\ SF(OTG0_OTG_CRC3_DATA_B, CRC3_B_CB, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWA_X_CONTROL, OTG_CRC1_WINDOWA_X_START, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWA_X_CONTROL, OTG_CRC1_WINDOWA_X_END, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWA_Y_CONTROL, OTG_CRC1_WINDOWA_Y_START, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWA_Y_CONTROL, OTG_CRC1_WINDOWA_Y_END, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWB_X_CONTROL, OTG_CRC1_WINDOWB_X_START, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWB_X_CONTROL, OTG_CRC1_WINDOWB_X_END, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWB_Y_CONTROL, OTG_CRC1_WINDOWB_Y_START, mask_sh),\ - SF(OTG0_OTG_CRC1_WINDOWB_Y_CONTROL, OTG_CRC1_WINDOWB_Y_END, mask_sh),\ SF(OTG0_OTG_CRC0_WINDOWA_X_CONTROL_READBACK, OTG_CRC0_WINDOWA_X_START_READBACK, mask_sh),\ SF(OTG0_OTG_CRC0_WINDOWA_X_CONTROL_READBACK, OTG_CRC0_WINDOWA_X_END_READBACK, mask_sh),\ SF(OTG0_OTG_CRC0_WINDOWA_Y_CONTROL_READBACK, OTG_CRC0_WINDOWA_Y_START_READBACK, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.h +12 -0
@@ -110,6 +110,7 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_CHECK_ALL_FIELDS , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_EN , mask_sh),\ SF(OTG0_OTG_CRC0_DATA_RG, CRC0_R_CR, mask_sh),\
@@ -123,6 +124,17 @@SF (OTG0_OTG_CRC0_WINDOWB_X_CONTROL ,OTG_CRC0_WINDOWB_X_END , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_START , mask_sh),\SF (OTG0_OTG_CRC0_WINDOWB_Y_CONTROL ,OTG_CRC0_WINDOWB_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_R_CR , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_RG ,CRC1_G_Y , mask_sh),\ +SF (OTG0_OTG_CRC1_DATA_B ,CRC1_B_CB , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_X_CONTROL ,OTG_CRC1_WINDOWA_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWA_Y_CONTROL ,OTG_CRC1_WINDOWA_Y_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_X_CONTROL ,OTG_CRC1_WINDOWB_X_END , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_START , mask_sh),\ +SF (OTG0_OTG_CRC1_WINDOWB_Y_CONTROL ,OTG_CRC1_WINDOWB_Y_END , mask_sh),\SF (OTG0_OTG_TRIGA_MANUAL_TRIG ,OTG_TRIGA_MANUAL_TRIG , mask_sh),\SF (GSL_SOURCE_SELECT ,GSL0_READY_SOURCE_SEL , mask_sh),\ SF(GSL_SOURCE_SELECT, GSL1_READY_SOURCE_SEL, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn42/dcn42_optc.h +2 -0
@@ -137,6 +137,7 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_CHECK_ALL_FIELDS , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_EN , mask_sh),\ SF(OTG0_OTG_CRC0_DATA_R, CRC0_R_CR, mask_sh),\
@@ -316,6 +317,7 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_CHECK_ALL_FIELDS , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_EN , mask_sh),\ SF(OTG0_OTG_CRC0_DATA_R, CRC0_R_CR, mask_sh),\
drivers/gpu/drm/amd/display/dc/optc/dcn60/dcn60_optc.h +2 -0
@@ -109,7 +109,9 @@SF (OTG0_OTG_GSL_CONTROL ,OTG_GSL_FORCE_DELAY , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_CONT_EN , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC0_SELECT , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_SELECT , mask_sh),\SF (OTG0_OTG_CRC_CNTL ,OTG_CRC_EN , mask_sh),\ +SF (OTG0_OTG_CRC_CNTL ,OTG_CRC1_EN , mask_sh),\SF (OTG0_OTG_CRC0_DATA_R ,CRC0_R_CR , mask_sh),\SF (OTG0_OTG_CRC0_DATA_G ,CRC0_G_Y , mask_sh),\ SF(OTG0_OTG_CRC0_DATA_B, CRC0_B_CB, mask_sh),\
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +14 -1
@@ -1941,8 +1941,21 @@ static bool dml1_validate(struct dc *dc, struct dc_state *context, enum dc_valid out =dcn32_internal_validate_bw (dc, context, pipes, &pipe_cnt, &vlevel, validate_mode);DC_FP_END (); -if (pipe_cnt ==0 ) +if (pipe_cnt ==0 ) { +/* The context is a copy of the previous state, so without this the +* clocks the last display needed stay applied with all displays off. +*/ + context->bw_ctx.bw.dcn.clk.socclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dppclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dcfclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.dcfclk_deep_sleep_khz =0 ; + context->bw_ctx.bw.dcn.clk.dramclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.fclk_khz =0 ; + context->bw_ctx.bw.dcn.clk.p_state_change_support = true; + context->bw_ctx.bw.dcn.clk.fclk_p_state_change_support = true; + context->bw_ctx.bw.dcn.clk.num_ways =0 ; goto validate_out; + }if (!out) goto validate_fail;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.h +6 -0
@@ -1054,6 +1054,12 @@ unsigned int dcn32_get_max_hw_cursor_size(const struct dc *dc,SRI_ARR (OTG_CRC0_WINDOWA_Y_CONTROL ,OTG , inst), \SRI_ARR (OTG_CRC0_WINDOWB_X_CONTROL ,OTG , inst), \SRI_ARR (OTG_CRC0_WINDOWB_Y_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_DATA_RG ,OTG , inst), \ +SRI_ARR (OTG_CRC1_DATA_B ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWA_X_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWA_Y_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWB_X_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWB_Y_CONTROL ,OTG , inst), \SR_ARR (GSL_SOURCE_SELECT , inst), \SRI_ARR (OTG_TRIGA_MANUAL_TRIG ,OTG , inst), \ SRI_ARR(OTG_GLOBAL_CONTROL1, OTG, inst), \
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.h +6 -0
@@ -535,6 +535,12 @@ int dcn401_get_power_profile(const struct dc_state *context);SRI_ARR (OTG_CRC0_WINDOWA_Y_CONTROL ,OTG , inst), \SRI_ARR (OTG_CRC0_WINDOWB_X_CONTROL ,OTG , inst), \SRI_ARR (OTG_CRC0_WINDOWB_Y_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_DATA_RG ,OTG , inst), \ +SRI_ARR (OTG_CRC1_DATA_B ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWA_X_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWA_Y_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWB_X_CONTROL ,OTG , inst), \ +SRI_ARR (OTG_CRC1_WINDOWB_Y_CONTROL ,OTG , inst), \SR_ARR (GSL_SOURCE_SELECT , inst), \SRI_ARR (OTG_TRIGA_MANUAL_TRIG ,OTG , inst), \ SRI_ARR(OTG_GLOBAL_CONTROL1, OTG, inst), \
drivers/gpu/drm/amd/display/modules/freesync/freesync.c +2 -4
@@ -1281,10 +1281,8 @@ void mod_freesync_handle_v_update(struct mod_freesync *mod_freesync,* If VRR is inactive, set vtotal min and max to nominal vtotal */ if (in_out_vrr->state ==VRR_STATE_INACTIVE ) { - in_out_vrr->adjust.v_total_min = -mod_freesync_calc_v_total_from_refresh (stream, - in_out_vrr->max_refresh_in_uhz); - in_out_vrr->adjust.v_total_max = in_out_vrr->adjust.v_total_min; + in_out_vrr->adjust.v_total_min = stream->timing.v_total; + in_out_vrr->adjust.v_total_max = stream->timing.v_total;return ; } }
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +20 -0
@@ -2912,6 +2912,25 @@ static int smu_v13_0_7_mode1_reset(struct smu_context *smu)return ret; } +static void smu_v13_0_7_get_unique_id (struct smu_context *smu) +{ +SmuMetricsExternal_t metrics_external; +SmuMetrics_t *metrics = &metrics_external.SmuMetrics; +struct amdgpu_device *adev = smu->adev; +u32 upper32 =0 , lower32 =0 ; +int ret; + + ret =smu_cmn_get_metrics_table (smu, &metrics_external, false); +if (ret) + goto out; + + upper32 = metrics->PublicSerialNumberUpper; + lower32 = metrics->PublicSerialNumberLower; + +out: + adev->unique_id = ((u64 )upper32 <<32 ) | lower32; +} +static void smu_v13_0_7_init_msg_ctl (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev;
@@ -2995,6 +3014,7 @@ static const struct pptable_funcs smu_v13_0_7_ppt_funcs = { .enable_uclk_shadow = smu_v13_0_enable_uclk_shadow, .set_wbrf_exclusion_ranges = smu_v13_0_set_wbrf_exclusion_ranges, .interrupt_work = smu_v13_0_interrupt_work, + .get_unique_id = smu_v13_0_7_get_unique_id, };void smu_v13_0_7_set_ppt_funcs (struct smu_context *smu)
drivers/gpu/drm/bridge/nwl-dsi.c +11 -6
@@ -110,6 +110,8 @@ struct nwl_dsi {int error;struct nwl_dsi_transfer *xfer; + +unsigned int endpoint; };static const struct regmap_config nwl_dsi_regmap_config = {
@@ -821,10 +823,13 @@ static int nwl_dsi_bridge_atomic_check(struct drm_bridge *bridge, struct drm_connector_state *conn_state) {struct drm_display_mode *adjusted_mode = &crtc_state->adjusted_mode; +struct nwl_dsi *dsi =bridge_to_dsi (bridge);/* At least LCDIF + NWL needs active high sync */ - adjusted_mode->flags |= (DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC ); - adjusted_mode->flags &= ~(DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC ); +if (dsi->endpoint ==NWL_DSI_ENDPOINT_LCDIF ) { + adjusted_mode->flags |= (DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_PVSYNC ); + adjusted_mode->flags &= ~(DRM_MODE_FLAG_NHSYNC |DRM_MODE_FLAG_NVSYNC ); + }/* * Do a full modeset if crtc_state->active is changed to be true.
@@ -1088,13 +1093,12 @@ static int nwl_dsi_parse_dt(struct nwl_dsi *dsi)static int nwl_dsi_select_input (struct nwl_dsi *dsi) {struct device_node *remote; -u32 use_dcss =1 ;int ret; remote =of_graph_get_remote_node (dsi->dev->of_node,0 ,NWL_DSI_ENDPOINT_LCDIF );if (remote) { - use_dcss =0 ; + dsi->endpoint =NWL_DSI_ENDPOINT_LCDIF ; }else { remote =of_graph_get_remote_node (dsi->dev->of_node,0 ,NWL_DSI_ENDPOINT_DCSS );
@@ -1103,11 +1107,12 @@ static int nwl_dsi_select_input(struct nwl_dsi *dsi) "No valid input endpoint found\n");return -EINVAL ; } + dsi->endpoint =NWL_DSI_ENDPOINT_DCSS ; }DRM_DEV_INFO (dsi->dev,"Using %s as input source\n" , - (use_dcss) ?"DCSS" :"LCDIF" ); - ret =mux_control_try_select (dsi->mux, use_dcss); + (dsi->endpoint ==NWL_DSI_ENDPOINT_DCSS ) ?"DCSS" :"LCDIF" );
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/display/drm_dp_helper.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/etnaviv/etnaviv_buffer.c +18 -22
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_ddi.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_display_device.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c +21 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_plane.c +11 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_psr.c +43 -53
96 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_psr_regs.h +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_quirks.c +24 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_quirks.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/core/subdev.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/gf100.c +20 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/scheduler/sched_entity.c +14 -15
Lines of this file are not shown. View the raw message.
drivers/hwmon/aquacomputer_d5next.c +46 -12
58 lines not on this page · raw message
drivers/hwmon/asus_rog_ryujin.c +53 -1
54 lines not on this page · raw message
drivers/hwmon/chipcap2.c +128 -64
192 lines not on this page · raw message
drivers/hwmon/pmbus/pmbus_core.c +30 -21
51 lines not on this page · raw message
drivers/iommu/amd/init.c +36 -5
41 lines not on this page · raw message
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +73 -16
89 lines not on this page · raw message
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h +5 -0
Lines of this file are not shown. View the raw message.
drivers/media/pci/intel/ipu6/ipu6-fw-isys.c +52 -36
88 lines not on this page · raw message
drivers/media/pci/intel/ipu6/ipu6-isys-video.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/media/pci/intel/ipu6/ipu6-isys.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/media/pci/intel/ipu6/ipu6-isys.h +2 -3
Lines of this file are not shown. View the raw message.
drivers/media/platform/microchip/microchip-isc-base.c +11 -9
Lines of this file are not shown. View the raw message.
drivers/media/platform/microchip/microchip-isc-regs.h +11 -5
Lines of this file are not shown. View the raw message.
drivers/media/platform/microchip/microchip-isc.h +3 -1
Lines of this file are not shown. View the raw message.
drivers/media/platform/microchip/microchip-sama5d2-isc.c +10 -10
Lines of this file are not shown. View the raw message.
drivers/media/platform/microchip/microchip-sama7g5-isc.c +10 -10
Lines of this file are not shown. View the raw message.
drivers/net/can/usb/peak_usb/pcan_usb_fd.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/atheros/atl1c/atl1c_main.c +33 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/ti/am65-cpsw-nuss.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c +7 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/mac80211.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/reg.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/tx.c +5 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/tx.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/realtek/rtw88/usb.c +64 -4
68 lines not on this page · raw message
drivers/net/wireless/realtek/rtw88/usb.h +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/rsi/rsi_91x_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/nvme/host/tcp.c +176 -37
213 lines not on this page · raw message
drivers/pci/controller/cadence/pcie-cadence-plat.c +9 -24
Lines of this file are not shown. View the raw message.
drivers/pci/controller/cadence/pcie-cadence.c +1 -15
Lines of this file are not shown. View the raw message.
drivers/pci/controller/cadence/pcie-cadence.h +0 -2
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pcie-designware.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/pci/controller/dwc/pcie-designware.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/platform/chrome/cros_ec_ishtp.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/platform/chrome/cros_usbpd_notify.c +22 -19
41 lines not on this page · raw message
drivers/target/target_core_fabric_lib.c +10 -0
Lines of this file are not shown. View the raw message.
drivers/thermal/intel/int340x_thermal/int3403_thermal.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c +5 -1
Lines of this file are not shown. View the raw message.
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c +1 -1
Lines of this file are not shown. View the raw message.
fs/f2fs/node.c +63 -12
75 lines not on this page · raw message
fs/nfsd/nfs2acl.c +63 -1
64 lines not on this page · raw message
fs/nfsd/nfs3proc.c +56 -2
58 lines not on this page · raw message
fs/nfsd/nfs4proc.c +55 -5
60 lines not on this page · raw message
fs/nfsd/nfs4recover.c +38 -11
49 lines not on this page · raw message
fs/nfsd/nfsctl.c +53 -3
56 lines not on this page · raw message
fs/nfsd/vfs.c +27 -81
108 lines not on this page · raw message
fs/ocfs2/dlm/dlmmaster.c +61 -9
70 lines not on this page · raw message
fs/ocfs2/move_extents.c +39 -31
70 lines not on this page · raw message
fs/ocfs2/xattr.c +107 -13
120 lines not on this page · raw message
fs/overlayfs/dir.c +25 -21
46 lines not on this page · raw message
fs/smb/server/smb2pdu.c +45 -20
65 lines not on this page · raw message
fs/smb/server/smbacl.c +36 -7
43 lines not on this page · raw message
fs/smb/server/vfs_cache.c +42 -16
58 lines not on this page · raw message
fs/udf/super.c +79 -1
80 lines not on this page · raw message
fs/xfs/scrub/attr.c +80 -22
102 lines not on this page · raw message
fs/xfs/scrub/dir.c +100 -10
110 lines not on this page · raw message
fs/xfs/scrub/dir_repair.c +81 -19
100 lines not on this page · raw message
fs/xfs/xfs_pnfs.c +36 -16
52 lines not on this page · raw message
include/dt-bindings/clock/nuvoton,ma35d1-clk.h +2 -1
Lines of this file are not shown. View the raw message.
io_uring/poll.c +55 -7
62 lines not on this page · raw message
lib/assoc_array.c +219 -136
355 lines not on this page · raw message
mm/filemap.c +42 -42
84 lines not on this page · raw message
mm/gup.c +51 -17
68 lines not on this page · raw message
mm/huge_memory.c +109 -37
146 lines not on this page · raw message
mm/hugetlb.c +55 -37
92 lines not on this page · raw message
mm/khugepaged.c +51 -24
75 lines not on this page · raw message
mm/ksm.c +52 -14
66 lines not on this page · raw message
mm/memory.c +87 -42
129 lines not on this page · raw message
mm/mremap.c +44 -59
103 lines not on this page · raw message
mm/shmem.c +94 -47
141 lines not on this page · raw message
mm/userfaultfd.c +15 -42
57 lines not on this page · raw message
mm/vma.c +37 -17
54 lines not on this page · raw message
net/9p/trans_usbg.c +64 -25
89 lines not on this page · raw message
net/batman-adv/translation-table.c +91 -42
133 lines not on this page · raw message
net/bluetooth/l2cap_core.c +45 -2
47 lines not on this page · raw message
net/can/af_can.c +31 -23
54 lines not on this page · raw message
net/can/bcm.c +16 -34
50 lines not on this page · raw message
net/can/isotp.c +142 -88
230 lines not on this page · raw message
net/can/proc.c +41 -28
69 lines not on this page · raw message
net/can/raw.c +163 -111
274 lines not on this page · raw message
net/qrtr/af_qrtr.c +45 -8
53 lines not on this page · raw message
net/sched/sch_generic.c +36 -5
41 lines not on this page · raw message
net/sctp/socket.c +47 -10
57 lines not on this page · raw message
net/sunrpc/svc.c +41 -1
42 lines not on this page · raw message
net/xfrm/espintcp.c +26 -17
43 lines not on this page · raw message
sound/hda/codecs/realtek/alc269.c +43 -2
45 lines not on this page · raw message
sound/hda/codecs/side-codecs/tas2781_hda.c +26 -1
Lines of this file are not shown. View the raw message.
sound/usb/midi.c +37 -27
64 lines not on this page · raw message
sound/usb/usx2y/usbusx2yaudio.c +42 -1
43 lines not on this page · raw message
tools/perf/tests/tool_pmu.c +79 -0
79 lines not on this page · raw message
tools/testing/selftests/filesystems/fscontext_ns/fscontext_ns_test.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/fib_nexthops.sh +28 -12
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.