Linux 6.12.78
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.12.78 kernel.
All users of the 6.12 kernel series must upgrade.
The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/virt/kvm/api.rst | 52 + Makefile | 11 arch/arm/kernel/machine_kexec.c | 23 arch/arm64/Kconfig | 1 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 1 arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 37 - arch/arm64/include/asm/pgtable-prot.h | 10 arch/arm64/kernel/machine_kexec.c | 31 - arch/arm64/mm/contpte.c | 53 +- arch/loongarch/include/asm/uaccess.h | 14 arch/parisc/include/asm/pgtable.h | 2 arch/parisc/kernel/cache.c | 4 arch/parisc/kernel/head.S | 7 arch/parisc/kernel/setup.c | 20 arch/powerpc/include/asm/kexec.h | 1 arch/powerpc/include/asm/uaccess.h | 2 arch/powerpc/kexec/core.c | 60 -- arch/powerpc/kexec/core_32.c | 1 arch/powerpc/kexec/file_load_64.c | 14 arch/powerpc/net/bpf_jit_comp.c | 2 arch/powerpc/net/bpf_jit_comp64.c | 148 +++-- arch/powerpc/platforms/83xx/km83xx.c | 4 arch/riscv/kernel/machine_kexec.c | 23 arch/s390/include/asm/processor.h | 2 arch/s390/lib/xor.c | 4 arch/s390/mm/pfault.c | 4 arch/x86/boot/compressed/sev.c | 1 arch/x86/coco/sev/core.c | 1 arch/x86/events/intel/core.c | 25 arch/x86/events/intel/uncore_snbep.c | 76 ++ arch/x86/include/asm/kvm_host.h | 9 arch/x86/include/asm/msr-index.h | 5 arch/x86/include/uapi/asm/kvm.h | 3 arch/x86/kernel/apic/apic.c | 6 arch/x86/kernel/apic/x2apic_uv_x.c | 18 arch/x86/kernel/uprobes.c | 24 arch/x86/kvm/mmu.h | 2 arch/x86/kvm/mmu/mmu.c | 10 arch/x86/kvm/svm/avic.c | 30 - arch/x86/kvm/svm/svm.c | 14 arch/x86/kvm/vmx/nested.c | 26 arch/x86/kvm/vmx/vmx.c | 50 + arch/x86/kvm/x86.c | 23 arch/x86/kvm/x86.h | 3 block/blk-cgroup.c | 6 block/blk-cgroup.h | 6 block/blk-throttle.c | 6 block/blk-throttle.h | 18 drivers/acpi/acpi_processor.c | 15 drivers/acpi/osi.c | 13 drivers/acpi/osl.c | 2 drivers/acpi/sleep.c | 8 drivers/ata/libata-core.c | 5 drivers/ata/libata-scsi.c | 83 +-- drivers/base/power/runtime.c | 1 drivers/base/property.c | 27 - drivers/bluetooth/btqca.c | 2 drivers/cache/ax45mp_cache.c | 4 drivers/cache/starfive_starlink_cache.c | 4 drivers/cpuidle/cpuidle.c | 10 drivers/crypto/atmel-sha204a.c | 5 drivers/dma/mmp_pdma.c | 6 drivers/firewire/net.c | 5 drivers/firmware/arm_ffa/driver.c | 8 drivers/firmware/arm_scpi.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 20 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 21 drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 5 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 5 drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 9 drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c | 3 drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c | 3 drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c | 3 drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c | 3 drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c | 3 drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 4 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 1 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 1 drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c | 8 drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c | 2 drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 2 drivers/gpu/drm/amd/display/dc/dm_services_types.h | 2 drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c | 6 drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c | 3 drivers/gpu/drm/amd/include/dm_pp_interface.h | 1 drivers/gpu/drm/amd/pm/amdgpu_dpm_internal.c | 67 ++ drivers/gpu/drm/amd/pm/inc/amdgpu_dpm_internal.h | 2 drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 4 drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c | 6 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 69 -- drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c | 11 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c | 8 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 3 drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c | 3 drivers/gpu/drm/bridge/samsung-dsim.c | 25 drivers/gpu/drm/bridge/ti-sn65dsi83.c | 13 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 118 ++++ drivers/gpu/drm/drm_file.c | 5 drivers/gpu/drm/drm_mode_config.c | 9 drivers/gpu/drm/i915/display/intel_display_types.h | 1 drivers/gpu/drm/i915/display/intel_psr.c | 71 +- drivers/gpu/drm/i915/display/intel_vdsc.c | 23 drivers/gpu/drm/i915/display/intel_vdsc.h | 3 drivers/gpu/drm/i915/display/intel_vdsc_regs.h | 12 drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 12 drivers/gpu/drm/i915/gt/intel_engine_cs.c | 3 drivers/gpu/drm/imagination/pvr_power.c | 11 drivers/gpu/drm/msm/adreno/a2xx_gpummu.c | 2 drivers/gpu/drm/msm/dsi/dsi_host.c | 43 + drivers/gpu/drm/nouveau/nouveau_connector.c | 3 drivers/gpu/drm/radeon/si_dpm.c | 4 drivers/gpu/drm/tiny/st7586.c | 15 drivers/gpu/drm/xe/xe_ggtt.c | 10 drivers/gpu/drm/xe/xe_ggtt_types.h | 5 drivers/gpu/drm/xe/xe_oa.c | 7 drivers/gpu/drm/xe/xe_sync.c | 24 drivers/hid/bpf/hid_bpf_dispatch.c | 2 drivers/hwmon/max6639.c | 10 drivers/hwmon/pmbus/isl68137.c | 7 drivers/hwmon/pmbus/mp2975.c | 2 drivers/hwmon/pmbus/q54sj108a2.c | 19 drivers/i2c/busses/i2c-cp2615.c | 3 drivers/i2c/busses/i2c-fsi.c | 1 drivers/i2c/busses/i2c-pxa.c | 17 drivers/i3c/master/dw-i3c-master.c | 4 drivers/i3c/master/mipi-i3c-hci/cmd.h | 1 drivers/i3c/master/mipi-i3c-hci/cmd_v1.c | 2 drivers/i3c/master/mipi-i3c-hci/cmd_v2.c | 2 drivers/i3c/master/mipi-i3c-hci/core.c | 6 drivers/i3c/master/mipi-i3c-hci/dma.c | 4 drivers/iio/chemical/bme680_core.c | 2 drivers/iio/chemical/sps30_i2c.c | 2 drivers/iio/chemical/sps30_serial.c | 2 drivers/iio/dac/ds4424.c | 2 drivers/iio/frequency/adf4377.c | 2 drivers/iio/gyro/mpu3050-core.c | 18 drivers/iio/gyro/mpu3050-i2c.c | 3 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c | 2 drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c | 4 drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c | 2 drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 8 drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 2 drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c | 5 drivers/iio/industrialio-buffer.c | 6 drivers/iio/potentiometer/mcp4131.c | 2 drivers/iio/proximity/hx9023s.c | 3 drivers/iommu/intel/dmar.c | 3 drivers/irqchip/irq-gic-v3-its.c | 4 drivers/md/dm-verity-fec.c | 4 drivers/md/dm-verity-fec.h | 3 drivers/media/dvb-core/dvb_net.c | 3 drivers/mmc/host/dw_mmc-rockchip.c | 51 + drivers/mmc/host/mmci_qcom_dml.c | 1 drivers/mmc/host/sdhci-pci-gli.c | 9 drivers/mmc/host/sdhci.c | 9 drivers/mtd/nand/raw/brcmnand/brcmnand.c | 6 drivers/mtd/nand/raw/cadence-nand-controller.c | 2 drivers/mtd/nand/raw/nand_base.c | 14 drivers/mtd/nand/raw/pl35x-nand-controller.c | 3 drivers/mtd/parsers/redboot.c | 6 drivers/mtd/spi-nor/core.c | 145 +++++ drivers/net/bonding/bond_debugfs.c | 16 drivers/net/bonding/bond_main.c | 134 ++--- drivers/net/caif/caif_serial.c | 3 drivers/net/can/spi/hi311x.c | 5 drivers/net/can/usb/gs_usb.c | 22 drivers/net/dsa/bcm_sf2.c | 8 drivers/net/dsa/microchip/ksz_ptp.c | 11 drivers/net/dsa/realtek/rtl8365mb.c | 3 drivers/net/dsa/realtek/rtl8366rb-leds.c | 6 drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 4 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c | 82 ++- drivers/net/ethernet/amd/xgbe/xgbe.h | 4 drivers/net/ethernet/arc/emac_main.c | 11 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 4 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 31 - drivers/net/ethernet/broadcom/genet/bcmgenet.h | 5 drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c | 2 drivers/net/ethernet/broadcom/genet/bcmmii.c | 10 drivers/net/ethernet/cadence/macb_main.c | 124 ++++ drivers/net/ethernet/cadence/macb_ptp.c | 4 drivers/net/ethernet/google/gve/gve_tx_dqo.c | 54 -- drivers/net/ethernet/intel/e1000/e1000_main.c | 2 drivers/net/ethernet/intel/e1000e/netdev.c | 2 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 14 drivers/net/ethernet/intel/iavf/iavf_main.c | 9 drivers/net/ethernet/intel/ice/ice_common.c | 13 drivers/net/ethernet/intel/ice/ice_ethtool.c | 35 - drivers/net/ethernet/intel/ice/ice_main.c | 3 drivers/net/ethernet/intel/igc/igc.h | 2 drivers/net/ethernet/intel/igc/igc_main.c | 14 drivers/net/ethernet/intel/igc/igc_ptp.c | 33 + drivers/net/ethernet/intel/ixgbevf/vf.c | 3 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 4 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 3 drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c | 6 drivers/net/ethernet/marvell/octeontx2/af/rvu_sdp.c | 2 drivers/net/ethernet/mediatek/airoha_eth.c | 52 + drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c | 1 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h | 1 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c | 50 - drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c | 23 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 30 + drivers/net/ethernet/mellanox/mlx5/core/eswitch.h | 3 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 18 drivers/net/ethernet/microsoft/mana/hw_channel.c | 6 drivers/net/ethernet/microsoft/mana/mana_en.c | 23 drivers/net/ethernet/stmicro/stmmac/common.h | 1 drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 4 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 7 drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 36 - drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 8 drivers/net/mctp/mctp-i2c.c | 1 drivers/net/phy/phy_device.c | 25 drivers/net/phy/sfp.c | 8 drivers/net/usb/aqc111.c | 12 drivers/net/usb/cdc_ncm.c | 10 drivers/net/usb/lan78xx.c | 10 drivers/net/usb/lan78xx.h | 3 drivers/net/usb/qmi_wwan.c | 4 drivers/net/usb/usbnet.c | 7 drivers/net/wireless/marvell/libertas/main.c | 4 drivers/net/wireless/ti/wlcore/tx.c | 2 drivers/nfc/nxp-nci/i2c.c | 4 drivers/nvdimm/bus.c | 5 drivers/nvme/host/pci.c | 8 drivers/platform/x86/amd/pmc/pmc.c | 3 drivers/platform/x86/amd/pmc/pmc.h | 1 drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c | 9 drivers/pmdomain/bcm/bcm2835-power.c | 18 drivers/regulator/pca9450-regulator.c | 2 drivers/remoteproc/mtk_scp.c | 39 + drivers/remoteproc/qcom_sysmon.c | 2 drivers/s390/block/dasd_eckd.c | 16 drivers/s390/crypto/zcrypt_ccamisc.c | 12 drivers/s390/crypto/zcrypt_cex4.c | 3 drivers/scsi/hisi_sas/hisi_sas.h | 43 + drivers/scsi/hisi_sas/hisi_sas_main.c | 42 + drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 246 +++++---- drivers/scsi/mpi3mr/mpi3mr_fw.c | 34 - drivers/scsi/scsi_scan.c | 8 drivers/scsi/ses.c | 5 drivers/scsi/storvsc_drv.c | 5 drivers/soc/fsl/qbman/qman.c | 24 drivers/soc/fsl/qe/qmc.c | 4 drivers/soc/microchip/mpfs-sys-controller.c | 13 drivers/soc/rockchip/grf.c | 1 drivers/spi/spi-cadence-quadspi.c | 33 + drivers/spi/spi.c | 25 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 15 drivers/staging/rtl8723bs/core/rtw_mlme.c | 5 drivers/tty/serial/8250/8250_dma.c | 15 drivers/tty/serial/8250/8250_pci.c | 17 drivers/tty/serial/8250/8250_port.c | 6 drivers/tty/serial/uartlite.c | 1 drivers/ufs/core/ufshcd.c | 8 drivers/usb/class/cdc-acm.c | 5 drivers/usb/class/cdc-acm.h | 1 drivers/usb/class/cdc-wdm.c | 4 drivers/usb/class/usbtmc.c | 6 drivers/usb/core/message.c | 100 +++ drivers/usb/core/phy.c | 8 drivers/usb/core/quirks.c | 16 drivers/usb/dwc3/dwc3-pci.c | 2 drivers/usb/gadget/function/f_mass_storage.c | 12 drivers/usb/gadget/function/f_ncm.c | 38 - drivers/usb/gadget/function/f_tcm.c | 14 drivers/usb/gadget/function/u_ether.c | 22 drivers/usb/gadget/function/u_ether.h | 26 drivers/usb/gadget/function/u_ncm.h | 2 drivers/usb/host/xhci-ring.c | 1 drivers/usb/host/xhci.c | 4 drivers/usb/image/mdc800.c | 6 drivers/usb/misc/uss720.c | 2 drivers/usb/misc/yurex.c | 2 drivers/usb/renesas_usbhs/common.c | 9 drivers/usb/roles/class.c | 7 drivers/usb/serial/f81232.c | 77 +- drivers/usb/typec/altmodes/displayport.c | 7 drivers/usb/typec/tcpm/tcpm.c | 2 drivers/xen/privcmd.c | 73 ++ fs/binfmt_misc.c | 4 fs/btrfs/disk-io.c | 22 fs/btrfs/extent_io.c | 3 fs/btrfs/extent_io.h | 3 fs/btrfs/inode.c | 19 fs/btrfs/ioctl.c | 24 fs/btrfs/space-info.c | 5 fs/btrfs/transaction.c | 16 fs/btrfs/tree-checker.c | 2 fs/btrfs/tree-log.c | 6 fs/btrfs/uuid-tree.c | 38 + fs/btrfs/uuid-tree.h | 2 fs/btrfs/volumes.c | 6 fs/ceph/debugfs.c | 4 fs/ceph/dir.c | 17 fs/ceph/file.c | 4 fs/ceph/inode.c | 2 fs/ceph/mds_client.c | 3 fs/erofs/zdata.c | 21 fs/f2fs/compress.c | 74 +- fs/f2fs/f2fs.h | 2 fs/f2fs/gc.c | 16 fs/iomap/buffered-io.c | 15 fs/nfs/nfs3proc.c | 7 fs/nfsd/nfs4xdr.c | 9 fs/nfsd/nfsctl.c | 16 fs/nfsd/state.h | 17 fs/nsfs.c | 21 fs/smb/client/cifsencrypt.c | 3 fs/smb/client/cifsfs.c | 7 fs/smb/client/cifsglob.h | 11 fs/smb/client/cifsproto.h | 1 fs/smb/client/connect.c | 4 fs/smb/client/dir.c | 1 fs/smb/client/file.c | 29 - fs/smb/client/fs_context.c | 2 fs/smb/client/misc.c | 42 + fs/smb/client/smb2ops.c | 14 fs/smb/client/smb2pdu.c | 5 fs/smb/client/smb2transport.c | 4 fs/smb/client/trace.h | 2 fs/smb/server/Kconfig | 1 fs/smb/server/auth.c | 26 fs/smb/server/oplock.c | 35 - fs/smb/server/oplock.h | 5 fs/smb/server/smb2pdu.c | 34 - fs/tests/exec_kunit.c | 3 fs/xfs/libxfs/xfs_defer.c | 2 fs/xfs/scrub/agheader_repair.c | 13 fs/xfs/scrub/alloc_repair.c | 5 fs/xfs/scrub/attr_repair.c | 20 fs/xfs/scrub/bmap_repair.c | 6 fs/xfs/scrub/common.h | 18 fs/xfs/scrub/dir.c | 13 fs/xfs/scrub/dir_repair.c | 11 fs/xfs/scrub/dirtree.c | 11 fs/xfs/scrub/ialloc_repair.c | 5 fs/xfs/scrub/nlinks.c | 6 fs/xfs/scrub/orphanage.c | 7 fs/xfs/scrub/parent.c | 11 fs/xfs/scrub/parent_repair.c | 23 fs/xfs/scrub/quotacheck.c | 13 fs/xfs/scrub/refcount_repair.c | 13 fs/xfs/scrub/rmap_repair.c | 5 fs/xfs/scrub/rtsummary.c | 7 fs/xfs/xfs_bmap_item.c | 3 fs/xfs/xfs_dquot.c | 8 fs/xfs/xfs_log.c | 2 include/linux/cleanup.h | 19 include/linux/etherdevice.h | 3 include/linux/huge_mm.h | 4 include/linux/if_ether.h | 3 include/linux/io_uring_types.h | 3 include/linux/irq.h | 3 include/linux/irqchip/arm-gic-v3.h | 1 include/linux/mlx5/mlx5_ifc.h | 4 include/linux/mmc/host.h | 9 include/linux/netdev_features.h | 18 include/linux/netdevice.h | 40 + include/linux/security.h | 1 include/linux/stmmac.h | 1 include/linux/trace_recursion.h | 9 include/linux/uprobes.h | 1 include/linux/usb.h | 8 include/linux/usb/usbnet.h | 1 include/net/dsa.h | 1 include/net/ip6_tunnel.h | 14 include/net/ip_tunnels.h | 7 include/net/netfilter/nf_tables.h | 2 include/net/sch_generic.h | 33 + include/net/tc_act/tc_gate.h | 33 - include/net/udp_tunnel.h | 2 include/net/xdp.h | 32 + include/trace/events/kmem.h | 8 include/trace/events/rxrpc.h | 4 init/Kconfig | 3 io_uring/kbuf.c | 18 io_uring/kbuf.h | 4 io_uring/uring_cmd.c | 9 kernel/cgroup/cgroup.c | 1 kernel/events/uprobes.c | 10 kernel/fork.c | 2 kernel/irq/Kconfig | 6 kernel/irq/Makefile | 2 kernel/irq/kexec.c | 40 + kernel/kprobes.c | 51 - kernel/sched/ext.c | 89 ++- kernel/sched/fair.c | 84 ++- kernel/sched/idle.c | 39 + kernel/time/time.c | 2 kernel/trace/ring_buffer.c | 2 kernel/trace/trace.c | 12 kernel/trace/trace_events.c | 58 +- kernel/trace/trace_functions_graph.c | 6 kernel/workqueue.c | 2 lib/bootconfig.c | 9 mm/compaction.c | 2 mm/internal.h | 3 mm/kfence/core.c | 29 - mm/page_alloc.c | 59 +- mm/shmem.c | 97 +++ net/batman-adv/bat_iv_ogm.c | 3 net/batman-adv/bat_v_elp.c | 10 net/batman-adv/hard-interface.c | 8 net/batman-adv/hard-interface.h | 1 net/bluetooth/hci_conn.c | 4 net/bluetooth/hci_sync.c | 2 net/bluetooth/hidp/core.c | 16 net/bluetooth/l2cap_core.c | 51 + net/bluetooth/mgmt.c | 7 net/bluetooth/smp.c | 2 net/bridge/br_cfm.c | 4 net/ceph/auth.c | 6 net/ceph/messenger_v2.c | 31 - net/ceph/mon_client.c | 6 net/core/dev.c | 98 +++ net/core/dev.h | 35 - net/core/dst.c | 1 net/core/xdp.c | 56 ++ net/dsa/dsa.c | 59 +- net/ethernet/eth.c | 9 net/ipv4/Kconfig | 1 net/ipv4/icmp.c | 4 net/ipv4/ip_gre.c | 3 net/ipv4/ip_tunnel_core.c | 15 net/ipv4/nexthop.c | 14 net/ipv4/route.c | 4 net/ipv4/tcp.c | 3 net/ipv4/tcp_ao.c | 3 net/ipv4/tcp_ipv4.c | 3 net/ipv6/ip6_output.c | 35 - net/ipv6/route.c | 4 net/ipv6/tcp_ipv6.c | 3 net/mac80211/chan.c | 6 net/mac80211/debugfs.c | 14 net/mac80211/link.c | 2 net/mac80211/mesh.c | 3 net/mac802154/iface.c | 4 net/mctp/route.c | 11 net/mpls/af_mpls.c | 1 net/mptcp/pm.c | 2 net/mptcp/pm_netlink.c | 72 ++ net/mptcp/protocol.h | 2 net/ncsi/ncsi-aen.c | 3 net/ncsi/ncsi-rsp.c | 16 net/netfilter/nf_bpf_link.c | 2 net/netfilter/nf_conntrack_h323_asn1.c | 4 net/netfilter/nf_conntrack_netlink.c | 67 +- net/netfilter/nf_conntrack_sip.c | 6 net/netfilter/nf_tables_api.c | 7 net/netfilter/nfnetlink_cthelper.c | 8 net/netfilter/nfnetlink_osf.c | 13 net/netfilter/nfnetlink_queue.c | 4 net/netfilter/nft_ct.c | 4 net/netfilter/nft_dynset.c | 10 net/netfilter/nft_set_pipapo.c | 3 net/netfilter/xt_CT.c | 4 net/netfilter/xt_IDLETIMER.c | 6 net/netfilter/xt_dccp.c | 4 net/netfilter/xt_tcpudp.c | 6 net/netfilter/xt_time.c | 4 net/phonet/af_phonet.c | 5 net/rose/af_rose.c | 5 net/rxrpc/recvmsg.c | 19 net/sched/act_gate.c | 262 +++++++--- net/sched/sch_generic.c | 27 - net/sched/sch_ingress.c | 14 net/sched/sch_teql.c | 8 net/smc/af_smc.c | 23 net/smc/smc.h | 5 net/smc/smc_close.c | 2 net/sunrpc/cache.c | 26 net/sunrpc/xprtrdma/verbs.c | 7 net/tipc/socket.c | 2 net/wireless/pmsr.c | 1 security/security.c | 1 sound/core/pcm_native.c | 19 sound/pci/hda/patch_realtek.c | 25 sound/soc/amd/acp3x-rt5682-max9836.c | 9 sound/soc/amd/yc/acp6x-mach.c | 14 sound/soc/codecs/cs42l43-jack.c | 1 sound/soc/generic/simple-card-utils.c | 48 - sound/soc/qcom/qdsp6/q6apm-dai.c | 1 sound/soc/qcom/qdsp6/q6apm-lpass-dais.c | 1 sound/soc/qcom/qdsp6/q6apm.c | 1 sound/soc/soc-core.c | 11 sound/usb/endpoint.c | 1 sound/usb/mixer_scarlett2.c | 2 sound/usb/quirks.c | 2 tools/bootconfig/main.c | 7 tools/objtool/Makefile | 8 tools/perf/builtin-ftrace.c | 9 tools/perf/util/annotate.c | 5 tools/perf/util/disasm.c | 2 tools/testing/selftests/hid/progs/hid_bpf_helpers.h | 12 tools/testing/selftests/net/mptcp/mptcp_join.sh | 43 + 503 files changed, 5250 insertions(+), 2255 deletions(-)
A1RM4X (1):
USB: add QUIRK_NO_BOS for video capture several devices
Adrian Hunter (3):
i3c: mipi-i3c-hci: Use ETIMEDOUT instead of ETIME for timeout errors
i3c: mipi-i3c-hci: Restart DMA ring correctly after dequeue abort
i3c: mipi-i3c-hci: Add missing TID field to no-op command descriptor
Adrian Ng Ho Yin (1):
i3c: dw-i3c-master: Set SIR_REJECT in DAT on device attach and reattach
Al Viro (1):
unshare: fix unshare_fs() handling
Alan Stern (3):
USB: usbcore: Introduce usb_bulk_msg_killable()
USB: usbtmc: Use usb_bulk_msg_killable() with user-specified timeouts
USB: core: Limit the length of unkillable synchronous timeouts
Alessio Belle (1):
drm/imagination: Fix deadlock in soft reset sequence
Alex Deucher (9):
drm/amdgpu/gmc9.0: add bounds checking for cid drm/amdgpu/mmhub2.0: add bounds checking for cid drm/amdgpu/mmhub2.3: add bounds checking for cid drm/amdgpu/mmhub3.0.1: add bounds checking for cid drm/amdgpu/mmhub3.0.2: add bounds checking for cid drm/amdgpu/mmhub3.0: add bounds checking for cid drm/amdgpu/mmhub4.1.0: add bounds checking for cid drm/radeon: apply state adjust rules to some additional HAINAN vairants drm/amdgpu: apply state adjust rules to some additional HAINAN vairants
Alexander Gordeev (1):
s390/pfault: Fix virtual vs physical address confusion
Alexander Lobakin (1):
xdp: allow attaching already registered memory model to xdp_rxq_info
Alexander Potapenko (2):
mm/kfence: disable KFENCE upon KASAN HW tags enablement mm/kfence: fix KASAN hardware tag faults during late enablement
Alok Tiwari (3):
i40e: fix src IP mask checks and memcpy argument names in cloud filter
octeontx2-af: devlink: fix NIX RAS reporter recovery condition
octeontx2-af: devlink: fix NIX RAS reporter to use RAS interrupt status
Alysa Liu (1):
drm/amdgpu: Fix use-after-free race in VM acquire
Anas Iqbal (1):
net: dsa: bcm_sf2: fix missing clk_disable_unprepare() in error paths
Andreas Kemnade (1):
iio: imu: inv-mpu9150: fix irq ack preventing irq storms
Andrei-Alexandru Tachici (1):
tracing: Fix enabling multiple events on the kernel command line and bootconfig
Andrew Lunn (1):
net: phy: register phy led_triggers during probe to avoid AB-BA deadlock
Andy Nguyen (1):
drm/amd: fix dcn 2.01 check
Andy Shevchenko (1):
device property: Allow secondary lookup in fwnode_get_next_child_node()
Ankit Garg (1):
gve: fix incorrect buffer cleanup in gve_tx_clean_pending_packets for QPL
Antheas Kapenekakis (1):
platform/x86/amd/pmc: Add support for Van Gogh SoC
Antoniu Miclaus (4):
iio: chemical: sps30_serial: fix buffer size in sps30_serial_read_meas()
iio: chemical: sps30_i2c: fix buffer size in sps30_i2c_read_meas()
iio: gyro: mpu3050-core: fix pm_runtime error handling
iio: gyro: mpu3050-i2c: fix pm_runtime error handling
Ariel Silver (1):
media: dvb-net: fix OOB access in ULE extension header tables
Asbjørn Sloth Tønnesen (1):
io_uring/uring_cmd: fix too strict requirement on ioctl
Ashutosh Dixit (1):
drm/xe/oa: Allow reading after disabling OA stream
Azamat Almazbek uulu (1):
ASoC: amd: yc: Add ASUS EXPERTBOOK BM1503CDA to quirk table
Baolin Wang (1):
mm: shmem: fix potential data corruption during shmem swapin
Bart Van Assche (1):
PM: runtime: Fix a race condition related to device removal
Bastien Curutchet (Schneider Electric) (1):
net: dsa: microchip: Fix error path in PTP IRQ setup
Ben Collins (1):
kexec: Include kernel-end even without crashkernel
Ben Dooks (1):
ACPI: OSL: fix __iomem type on return from acpi_os_map_generic_address()
Benjamin Tissoires (2):
selftests/hid: fix compilation when bpf_wq and hid_device are not exported
HID: bpf: prevent buffer overflow in hid_hw_request
Bharath SM (1):
smb: client: fix in-place encryption corruption in SMB2_write()
Bjorn Andersson (1):
remoteproc: sysmon: Correct subsys_name_len type in QMI request
Breno Leitao (1):
workqueue: Use POOL_BH instead of WQ_BH when checking pool flags
Calvin Owens (1):
tracing: Fix trace_buf_size= cmdline parameter with sizes >= 2G
Carlos Maiolino (1):
xfs: fix returned valued from xfs_defer_can_append
Casey Connolly (1):
ASoC: detect empty DMI strings
Catalin Marinas (1):
arm64: mm: Add PTE_DIRTY back to PAGE_KERNEL* to fix kexec/hibernation
Chao Gao (1):
KVM: nVMX: Add consistency checks for CR0.WP and CR4.CET
Chao Yu (1):
f2fs: fix to avoid migrating empty section
Charles Keepax (1):
ASoC: cs42l43: Report insert for exotic peripherals
Chen Ni (5):
perf annotate: Fix hashmap__new() error checking
perf ftrace: Fix hashmap__new() error checking
ASoC: amd: acp3x-rt5682-max9836: Add missing error check for clock acquisition
mtd: rawnand: cadence: Fix error check for dma_alloc_coherent() in cadence_nand_init()
soc: fsl: cpm1: qmc: Fix error check for devm_ioremap_resource() in qmc_qe_init_resources()
Cheng-Yang Chou (1):
sched_ext: Remove redundant css_put() in scx_cgroup_init()
Chengfeng Ye (1):
mctp: route: hold key->lock in mctp_flow_prepare_output()
Chris Spencer (1):
iio: chemical: bme680: Fix measurement wait duration calculation
Christian Brauner (1):
nsfs: tighten permission checks for ns iteration ioctls
Christian Eggers (3):
Bluetooth: LE L2CAP: Disconnect if received packet's SDU exceeds IMTU
Bluetooth: LE L2CAP: Disconnect if sum of payload sizes exceed SDU
Bluetooth: SMP: make SM/PER/KDU/BI-04-C happy
Christoffer Sandberg (1):
usb/core/quirks: Add Huawei ME906S-device to wakeup quirk
Christophe JAILLET (1):
i2c: fsi: Fix a potential leak in fsi_i2c_probe()
Christophe Leroy (CS GROUP) (1):
powerpc/uaccess: Fix inline assembly for clang build on PPC32
Chuck Lever (1):
NFSD: Hold net reference for the lifetime of /proc/fs/nfs/exports fd
Cosmin Ratiu (3):
net/mlx5: Fix deadlock between devlink lock and esw->wq
bonding: Correctly support GSO ESP offload net/mlx5: qos: Restrict RTNL area to avoid a lock cycle
Damien Le Moal (3):
ata: libata-core: disable LPM on ADATA SU680 SSD
ata: libata-scsi: Return residual for emulated SCSI commands
ata: libata-scsi: report correct sense field pointer in ata_scsiop_maint_in()
Daniel Borkmann (1):
clsact: Fix use-after-free in init/destroy rollback asymmetry
Daniel Hodges (1):
wifi: libertas: fix use-after-free in lbs_free_adapter()
Daniel Jurgens (2):
net/mlx5: IFC updates for disabled host PF net/mlx5: Query to see if host PF is disabled
Dapeng Mi (1):
perf/x86/intel: Add missing branch counters constraint apply
Darrick J. Wong (3):
xfs: fix undersized l_iclog_roundoff values
iomap: reject delalloc mappings during writeback
xfs: get rid of the xchk_xfile_*_descr calls
Dave Airlie (1):
nouveau/dpcd: return EBUSY for aux xfer if the device is asleep
David Dull (1):
netfilter: x_tables: guard option walkers against 1-byte tail reads
David Hildenbrand (2):
mm/page_alloc: sort out the alloc_contig_range() gfp flags mess mm/page_alloc: forward the gfp flags from alloc_contig_range() to post_alloc_hook()
David Howells (1):
rxrpc: Fix recvmsg() unconditional requeue
David Lechner (1):
drm/sitronix/st7586: fix bad pixel data due to byte swap
Dayu Jiang (1):
usb: xhci: Prevent interrupt storm on host controller error (HCE)
Deepanshu Kartikey (1):
mm: thp: deny THP for files on anonymous inodes
Dillon Varone (1):
drm/amd/display: Fallback to boot snapshot for dispclk
Dipayaan Roy (1):
net: mana: fix use-after-free in mana_hwc_destroy_channel() by reordering teardown
Dmitry Baryshkov (1):
Bluetooth: qca: fix ROM version reading on WCN3998 chips
Eliav Farber (1):
kexec: Consolidate machine_kexec_mask_interrupts() implementation
Eric Badger (1):
xprtrdma: Decrement re_receiving on the early exit paths
Eric Biggers (4):
net/tcp-ao: Fix MAC comparison to be constant-time net/tcp-md5: Fix MAC comparison to be constant-time
ksmbd: Compare MACs in constant time
smb: client: Compare MACs in constant time
Eric Dumazet (4):
net: prevent NULL deref in ip[6]tunnel_xmit()
dst: fix races in rt6_uncached_list_del() and rt_del_uncached_list()
ipv6: use RCU in ip6_xmit()
bonding: prevent potential infinite loop in bond_header_parse()
Ethan Tidmore (1):
xfs: Fix error pointer dereference
Fabrizio Castro (1):
arm64: dts: renesas: r9a09g057: Remove wdt{0,2,3} nodesFan Wu (2):
usb: renesas_usbhs: fix use-after-free in ISR during device removal
net: ethernet: arc: emac: quiesce interrupts before requesting IRQ
Fedor Pchelkin (3):
ksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths
net: macb: fix use-after-free access to PTP clock
net: macb: fix uninitialized rx_fs_lock
Felix Fietkau (1):
mac80211: fix crash in ieee80211_chan_bw_change for AP_VLAN stations
Felix Gu (4):
mmc: mmci: Fix device_node reference leak in of_get_dml_pipe_index()
cache: starfive: fix device node leak in starlink_cache_init()
cache: ax45mp: Fix device node reference leak in ax45mp_cache_init()
firmware: arm_scpi: Fix device_node reference leak in probe path
Filipe Manana (5):
btrfs: fix transaction abort on file creation due to name hash collision
btrfs: fix transaction abort on set received ioctl due to item overflow
btrfs: abort transaction on failure to update root in the received subvol ioctl
btrfs: fix transaction abort when snapshotting received subvolumes
btrfs: log new dentries when logging parent dir of a conflicting inode
Finn Thain (1):
mtd: Avoid boot crash in RedBoot partition table parser
Florian Westphal (3):
netfilter: nf_tables: always walk all pending catchall elements
netfilter: ctnetlink: remove refcounting in expectation dumpers
netfilter: bpf: defer hook memory release until rcu readers are done
Franz Schnyder (1):
drm/bridge: ti-sn65dsi86: Enable HPD polling if IRQ is not used
Gabor Juhos (2):
usb: core: don't power off roothub PHYs if phy_set_mode() fails
i2c: pxa: defer reset on Armada 3700 when recovery is used
Gal Pressman (1):
net/mlx5e: Fix DMA FIFO desync on error CQE SQ recovery
Gang Yan (1):
selftests: mptcp: add a check for 'add_addr_accepted'
Gao Xiang (1):
erofs: fix inline data read failure for ztailpacking pclusters
Greg Kroah-Hartman (3):
usb: misc: uss720: properly clean up reference in uss720_probe()
staging: rtl8723bs: properly validate the data in rtw_get_ie_ex() Linux 6.12.78
Guanghui Feng (1):
iommu/vt-d: Fix intel iommu iotlb sync hardlockup and retry
Guenter Roeck (3):
smb/server: Fix another refcount leak in smb2_open()
wifi: wlcore: Return -ENOMEM instead of -EAGAIN if there is not enough headroom
hwmon: (max6639) Fix pulses-per-revolution implementation
Guodong Xu (1):
dmaengine: mmp_pdma: Fix race condition in mmp_pdma_residue()
Haiyue Wang (1):
mctp: i2c: fix skb memory leak in receive path
Han Guangjiang (1):
blk-throttle: fix access race during throttle policy activation
Hangbin Liu (3):
bonding: handle BOND_LINK_FAIL, BOND_LINK_BACK as valid link states
net: add a common function to compute features for upper devices
bonding: use common function to compute the features
Harald Freudenberger (1):
s390/zcrypt: Enable AUTOSEL_DOM for CCA serialnr sysfs attribute
Hari Bathini (1):
powerpc64/bpf: fix kfunc call support
Hariprasad Kelam (1):
Octeontx2-af: Add proper checks for fwdata
Heikki Krogerus (1):
usb: dwc3: pci: add support for the Intel Nova Lake -H
Heiko Carstens (2):
s390/stackleak: Fix __stackleak_poison() inline assembly constraint s390/xor: Fix xor_xc_2() inline assembly constraints
Helge Deller (4):
parisc: Increase initial mapping to 64 MB with KALLSYMS
parisc: Fix initial page table creation for boot
parisc: Check kernel mapping earlier at bootup
parisc: Flush correct cache in cacheflush() syscall
Henrique Carvalho (1):
smb: client: fix iface port assignment in parse_server_interfaces
Huiwen He (1):
tracing: Fix syscall events activation by ensuring refcount hits zero
Hyunwoo Kim (6):
netfilter: nfnetlink_queue: fix entry leak in bridge verdict error path
netfilter: nfnetlink_cthelper: fix OOB read in nfnl_cthelper_dump_table()
bridge: cfm: Fix race condition in peer_mep deletion
netfilter: ctnetlink: fix use-after-free in ctnetlink_dump_exp_ct()
ksmbd: fix use-after-free of share_conf in compound request
ksmbd: fix use-after-free in durable v2 replay of active file handles
Ian Ray (1):
NFC: nxp-nci: allow GPIOs to sleep
Ilpo Järvinen (1):
serial: 8250: Add late synchronize_irq() to shutdown to handle DW UART BUSY
Ilya Dryomov (3):
libceph: reject preamble if control segment is empty
libceph: prevent potential out-of-bounds reads in process_message_header()
libceph: admit message frames only in CEPH_CON_S_OPEN state
Ira Weiny (1):
nvdimm/bus: Fix potential use after free in asynchronous initialization
J. Neuschäfer (1):
powerpc: 83xx: km83xx: Fix keymile vendor prefix
Jakub Staniszewski (2):
ice: reintroduce retry mechanism for indirect AQ
ice: fix retry for AQ command 0x06EE
Jamal Hadi Salim (1):
net/sched: teql: Fix double-free in teql_master_xmit
Jan Kiszka (1):
scsi: storvsc: Fix scheduling while atomic on PREEMPT_RT
Janusz Krzysztofik (1):
drm/i915: Fix potential overflow of shmem scatterlist length
Jean-Baptiste Maneyrol (2):
iio: imu: inv_icm42600: fix odr switch to the same value
iio: imu: inv_icm42600: fix odr switch when turning buffer off
Jedrzej Jagielski (1):
ixgbevf: fix link setup issue
Jeff Layton (2):
nfsd: fix heap overflow in NFSv4.0 LOCK replay cache
sunrpc: fix cache_request leak in cache_release
Jenny Guanni Qu (4):
netfilter: nft_set_pipapo: fix stack out-of-bounds read in pipapo_drop()
netfilter: nf_conntrack_h323: fix OOB read in decode_int() CONS case
netfilter: xt_time: use unsigned int for monthday bit shift
netfilter: nf_conntrack_h323: check for zero length in DecodeQ931()
Jens Axboe (2):
io_uring/kbuf: check if target buffer list is still legacy on recycle io_uring/kbuf: propagate BUF_MORE through early buffer commit path
Ji-Ze Hong (Peter Hong) (1):
USB: serial: f81232: fix incomplete serial port generation
Jian Zhang (1):
net: ncsi: fix skb leak in error paths
Jianbo Liu (3):
bonding: add ESP offload features when slaves support net/mlx5e: Prevent concurrent access to IPSec ASO context net/mlx5e: Fix race condition during IPSec ESN update
Jiasheng Jiang (1):
usb: gadget: f_tcm: Fix NULL pointer dereferences in nexus handling
Jiayuan Chen (3):
bonding: fix type confusion in bond_setup_by_slave() net/rose: fix NULL pointer dereference in rose_transmit_link on reconnect net/smc: fix NULL dereference and UAF in smc_tcp_syn_recv_sock()
Jim Mattson (1):
KVM: x86: Introduce KVM_X86_QUIRK_VMCS12_ALLOW_FREEZE_IN_SMM
Jisheng Zhang (1):
mmc: dw_mmc-rockchip: use modern PM macros
Johan Hovold (3):
spi: fix use-after-free on controller registration failure
spi: fix statistics allocation
i2c: cp2615: fix serial string NULL-deref at probe
John Ripple (1):
drm/bridge: ti-sn65dsi86: Add support for DisplayPort mode with HPD
Josh Law (5):
lib/bootconfig: fix off-by-one in xbc_verify_tree() unclosed brace error lib/bootconfig: fix snprintf truncation check in xbc_node_compose_key_after() lib/bootconfig: check bounds before writing in __xbc_open_brace() lib/bootconfig: check xbc_init_node() return in override path tools/bootconfig: fix fd leak in load_xbc_file() on fstat failure
Jouni Högander (6):
drm/i915/alpm: ALPM disable fixes
drm/i915/psr: Repeat Selective Update area alignment drm/i915/dsc: Add Selective Update register definitions drm/i915/dsc: Add helper for writing DSC Selective Update ET parameters drm/i915/psr: Write DSC parameters on Selective Update in ET mode drm/i915/psr: Compute PSR entry_setup_frames into intel_crtc_state
Juergen Gross (2):
xen/privcmd: restrict usage in unprivileged domU xen/privcmd: add boot control for restricted usage in domU
Junxiao Bi (1):
scsi: core: Fix error handling for scsi_alloc_sdev()
Justin Chen (1):
net: bcmgenet: increase WoL poll timeout
Kairui Song (2):
mm/shmem, swap: improve cached mTHP handling and fix potential hang mm/shmem, swap: avoid redundant Xarray lookup during swapin
Kalesh Singh (1):
mm/tracing: rss_stat: ensure curr is false from kthread context
Kamal Dasu (2):
mtd: rawnand: serialize lock/unlock against other NAND operations
mtd: rawnand: brcmnand: skip DMA during panic write
Kan Liang (1):
perf/x86/intel/uncore: Support more units on Granite Rapids
Kees Cook (1):
fs/tests: exec: Remove bad test vector
Kemeng Shi (1):
mm: shmem: avoid unpaired folio_unlock() in shmem_swapin_folio()
Kevin Hao (3):
net: macb: Shuffle the tx ring before enabling tx
net: macb: Introduce gem_init_rx_ring()
net: macb: Reinitialize tx/rx queue pointer registers and rx ring during resume
Khairul Anuar Romli (1):
spi: cadence-quadspi: Implement refcount to handle unbind during busy
Kim Phillips (1):
x86/sev: Allow IBPB-on-Entry feature for SNP guests
Kohei Enju (1):
igc: fix missing update of skb->tail in igc_xmit_frame()
Kuen-Han Tsai (1):
usb: gadget: f_ncm: Fix net_device lifecycle with device_move
Kuninori Morimoto (1):
ASoC: simple-card-utils: use __free(device_node) for device node
Kuniyuki Iwashima (2):
nfsd: Fix cred ref leak in nfsd_nl_listener_set_doit().
wifi: mac80211: Fix static_branch_dec() underflow for aql_disable.
Kyle Meyer (1):
x86/platform/uv: Handle deconfigured sockets
Laurent Vivier (1):
qmi_wwan: allow max_mtu above hard_mtu to control rx_urb_size
Lijo Lazar (1):
drm/amdgpu: Add basic validation for RAS header
Linus Torvalds (1):
Fix CC_HAS_ASM_GOTO_OUTPUT on non-x86 architectures
Long Li (3):
net: mana: Ring doorbell at 4 CQ wraparounds
xfs: ensure dquot item is deleted from AIL only after log shutdown
xfs: fix integer overflow in bmap intent sort comparator
Lorenzo Bianconi (4):
net: airoha: read default PSE reserved pages value before updating
net: airoha: fix PSE memory configuration in airoha_fe_pse_ports_init()
net: airoha: Read completion queue data in airoha_qdma_tx_napi_poll()
net: airoha: Remove airoha_dev_stop() in airoha_remove()
Luca Ceresoli (2):
drm/bridge: ti-sn65dsi83: fix CHA_DSI_CLK_RANGE rounding drm/bridge: ti-sn65dsi83: halve horizontal syncs for dual LVDS output
Luiz Augusto von Dentz (3):
Bluetooth: L2CAP: Fix accepting multiple L2CAP_ECRED_CONN_REQ
Bluetooth: ISO: Fix defer tests being unstable
Bluetooth: HIDP: Fix possible UAF
Luka Gejak (1):
staging: rtl8723bs: fix potential out-of-bounds read in rtw_restruct_wmm_ie
Lukas Johannes Möller (3):
Bluetooth: L2CAP: Fix type confusion in l2cap_ecred_reconf_rsp()
Bluetooth: L2CAP: Validate L2CAP_INFO_RSP payload length before access
netfilter: nf_conntrack_sip: fix Content-Length u32 truncation in sip_help_tcp()
Lukas Schmid (1):
iio: potentiometer: mcp4131: fix double application of wiper shift
Luke Wang (1):
mmc: sdhci: fix timing selection for 1-bit bus width
Maarten Lankhorst (1):
drm: Fix use-after-free on framebuffers and property blobs when calling drm_dev_unplug
Maciej Andrzejewski ICEYE (1):
serial: uartlite: fix PM runtime usage count underflow on probe
Marc Kleine-Budde (1):
can: gs_usb: gs_can_open(): always configure bitrates before starting device
Marc Zyngier (2):
usb: cdc-acm: Restore CAP_BRK functionnality to CH343 irqchip/gic-v3-its: Limit number of per-device MSIs to the range the ITS supports
Marek Behún (1):
net: dsa: realtek: Fix LED group port bit for non-zero LED group
Mario Limonciello (3):
drm/amd: Disable MES LR compute W/A
drm/amd: Set num IP blocks to 0 if discovery fails platform/x86: hp-bioscfg: Support allocations of larger data
Marios Makassikis (1):
smb: server: fix use-after-free in smb2_open()
Mark Harmstone (1):
btrfs: fix chunk map leak in btrfs_map_block() after btrfs_chunk_map_num_copies()
Martin Roukala (né Peres) (1):
serial: 8250_pci: add support for the AX99100
Masami Hiramatsu (Google) (4):
kprobes: avoid crash when rmmod/insmod after ftrace killed
kprobes: Remove unneeded goto
kprobes: Remove unneeded warnings from __arm_kprobe_ftrace()
ring-buffer: Fix to update per-subbuf entries of persistent ring buffer
Matt Vollrath (1):
e1000/e1000e: Fix leak in DMA error cleanup
Matthew Brost (1):
drm/xe: Open-code GGTT MMIO access protection
Matthew Schwartz (1):
mmc: sdhci-pci-gli: fix GL9750 DMA write corruption
Matthew Wilcox (Oracle) (1):
mm/page_alloc: move set_page_refcounted() to callers of post_alloc_hook()
Matthieu Baerts (NGI0) (4):
mptcp: pm: in-kernel: always mark signal+subflow endp as used
mptcp: pm: avoid sending RM_ADDR over same subflow
selftests: mptcp: join: check RM_ADDR not sent over same subflow
mptcp: pm: in-kernel: always set ID as avail when rm endp
Max Kellermann (3):
ceph: add a bunch of missing ceph_path_info initializers
ceph: fix i_nlink underrun during async unlink
ceph: fix memory leaks in ceph_mdsc_build_path()
Maximilian Pezzullo (1):
ata: libata-core: Disable LPM on ST1000DM010-2EP102
Maíra Canal (2):
pmdomain: bcm: bcm2835-power: Fix broken reset status read
pmdomain: bcm: bcm2835-power: Increase ASB control timeout
Mehul Rao (3):
ALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()
tipc: fix divide-by-zero in tipc_sk_filter_connect()
net: nexthop: fix percpu use-after-free in remove_nh_grp_entry
Michael Grzeschik (1):
Bluetooth: hci_sync: Fix hci_le_create_conn_sync
Mieczyslaw Nalewaj (1):
net: dsa: realtek: rtl8365mb: remove ifOutDiscards from rx_packets
Miguel Ojeda (1):
rust: kbuild: allow unused_features
Mikulas Patocka (1):
dm-verity: disable recursive forward error correction
Muhammad Hammad Ijaz (1):
net: mvpp2: guard flow control update with global_tx_fc in buffer switching
Namjae Jeon (4):
ksmbd: fix use-after-free in smb_lazy_parent_lease_break_close()
ksmbd: fix use-after-free by using call_rcu() for oplock_info
ksmbd: unset conn->binding on failed binding request
ksmbd: use volume UUID in FS_OBJECT_ID_INFORMATION
Natalie Vock (1):
drm/amd/display: Use GFP_ATOMIC in dc_create_stream_for_sink
Nathan Chancellor (1):
kbuild: Leave objtool binary around with 'make clean'
Naveen N Rao (3):
KVM: SVM: Limit AVIC physical max index based on configured max_vcpu_ids
KVM: SVM: Add a helper to look up the max physical ID for AVIC powerpc64/bpf: Fold bpf_jit_emit_func_call_hlp() into bpf_jit_emit_func_call_rel()
Nicolai Buchwitz (1):
net: bcmgenet: fix broken EEE by converting to phylib-managed state
Nikola Z. Ivanov (1):
net: usb: aqc111: Do not perform PM inside suspend callback
Nuno Sá (1):
iio: buffer: Fix wait_queue not being removed
Oleg Nesterov (1):
x86/uprobes: Fix XOL allocation failure for 32-bit tasks
Oleksij Rempel (4):
net: usb: lan78xx: fix silent drop of packets with checksum errors
net: usb: lan78xx: fix TX byte statistics for small packets
net: usb: lan78xx: skip LTM configuration for LAN7850
iio: dac: ds4424: reject -128 RAW value
Oliver Neukum (3):
usb: yurex: fix race in probe
usb: class: cdc-wdm: fix reordering issue in read code path
usb: mdc800: handle signal and read racing
Olivier Sobrie (1):
mtd: rawnand: pl353: make sure optimal timings are applied
Osama Abdelkader (1):
drm/bridge: samsung-dsim: Fix memory leak in error path
Ovidiu Panait (1):
arm64: dts: renesas: r9a09g057: Add RTC node
Pablo Neira Ayuso (4):
nf_tables: nft_dynset: fix possible stateful expression memleak in error path
netfilter: nft_ct: drop pending enqueued packets on removal
netfilter: xt_CT: drop pending enqueued packets on template removal
netfilter: nf_tables: release flowtable after rcu grace period on error
Paolo Bonzini (2):
KVM: x86: do not allow re-enabling quirks
KVM: x86: Allow vendor code to disable quirks
Patrisious Haddad (1):
net/mlx5: Fix crash when moving to switchdev mode
Paul Greenwalt (1):
ice: fix devlink reload call trace
Paul Moses (1):
net/sched: act_gate: snapshot parameters with RCU on replace
Paulo Alcantara (2):
smb: client: fix atomic open with O_DIRECT & O_SYNC
smb: client: fix krb5 mount with username option
Pavan Chebbi (1):
bnxt_en: Fix RSS table size check when changing ethtool channels
Peddolla Harshavardhan Reddy (1):
wifi: cfg80211: cancel pmsr_free_wk in cfg80211_pmsr_wdev_down
Pedro Falcato (1):
ata: libata-core: Add BRIDGE_OK quirk for QEMU drives
Peng Fan (1):
regulator: pca9450: Correct interrupt type
Penghe Geng (1):
mmc: core: Avoid bitfield RMW for claim/retune flags
Pengyu Luo (2):
drm/msm/dsi: fix hdisplay calculation when programming dsi registers drm/msm/dsi: fix pclk rate calculation for bonded dsi
Peter Collingbourne (1):
perf disasm: Fix off-by-one bug in outside check
Peter Wang (1):
scsi: ufs: core: Fix possible NULL pointer dereference in ufshcd_add_command_trace()
Peter Zijlstra (1):
sched/fair: Fix zero_vruntime tracking
Petr Oros (1):
iavf: fix VLAN filter lost on add/delete race
Philip Yang (1):
drm/amdkfd: Unreserve bo if queue update failed
Piotr Jaroszynski (1):
arm64: contpte: fix set_access_flags() no-op check for SMMU/ATS faults
Piotr Mazek (1):
ACPI: PM: Save NVS memory on Lenovo G70-35
Pratyush Yadav (2):
mtd: spi-nor: core: avoid odd length/address reads on 8D-8D-8D mode
mtd: spi-nor: core: avoid odd length/address writes in 8D-8D-8D mode
Qingye Zhao (1):
cgroup: fix race between task migration and iteration
Qu Wenruo (1):
btrfs: do not strictly require dirty metadata threshold for metadata writepages
RD Babiera (1):
usb: typec: altmode/displayport: set displayport signaling rate in configure message
Rafael J. Wysocki (3):
sched: idle: Make skipping governor callbacks more consistent
sched: idle: Consolidate the handling of two special cases
ACPI: processor: Fix previous acpi_processor_errata_piix4() fix
Rahul Bukte (1):
drm/i915/gt: Check set_default_submission() before deferencing
Raju Rangoju (2):
amd-xgbe: fix link status handling in xgbe_rx_adaptation
amd-xgbe: prevent CRC errors during RX adaptation with AN disabled
Ramanathan Choodamani (1):
wifi: mac80211: set default WMM parameters on all links
Ranjan Kumar (1):
scsi: mpi3mr: Add NULL checks when resetting request and reply queues
Raphael Zimmer (2):
libceph: Fix potential out-of-bounds access in ceph_handle_auth_reply()
libceph: Use u32 for non-negative values in ceph_monmap_decode()
Raul E Rangel (1):
serial: 8250: Fix TX deadlock when using DMA
Ravi Hothi (1):
ASoC: qcom: qdsp6: Fix q6apm remove ordering during ADSP stop and start
Ricardo B. Marlière (1):
net: bonding: Fix nd_tbl NULL dereference when IPv6 is disabled
Richard Genoud (1):
soc: fsl: qbman: fix race condition in qman_destroy_fq
Roberto Bergantinos Corpas (1):
nfs: return EISDIR on nfs3_proc_create if d_alias is a dir
Russell King (Oracle) (1):
net: stmmac: remove support for lpi_intr_o
Sabrina Dubroca (1):
mpls: add missing unregister_netdevice_notifier to mpls_init
Sanman Pradhan (3):
hwmon: (pmbus/q54sj108a2) fix stack overflow in debugfs read
hwmon: (pmbus/mp2975) Add error check for pmbus_read_word_data() return value
hwmon: (pmbus/isl68137) Fix unchecked return value and use sysfs_emit()
Sasha Levin (1):
Revert "arm64: dts: qcom: sdm845-oneplus: Mark l14a regulator as boot-on"
Sean Christopherson (4):
KVM: SVM: Initialize AVIC VMCB fields if AVIC is enabled with in-kernel APIC
KVM: SVM: Set/clear CR8 write interception when AVIC is (de)activated
KVM: x86: Co-locate initialization of feature MSRs in kvm_arch_vcpu_create()
KVM: x86: Quirk initialization of feature MSRs to KVM's max configuration
Sean Rhodes (1):
ALSA: hda/realtek: Fix speaker pop on Star Labs StarFighter
Sen Wang (1):
ASoC: simple-card-utils: fix graph_util_is_ports0() for DT overlays
SeungJu Cheon (1):
iio: frequency: adf4377: Fix duplicated soft reset mask
Seungjin Bae (1):
usb: gadget: f_mass_storage: Fix potential integer overflow in check_command_size_in_blocks()
Shashank Balaji (1):
x86/apic: Disable x2apic on resume if the kernel expects so
Shaurya Rane (1):
Bluetooth: L2CAP: Fix use-after-free in l2cap_unregister_user
Shawn Lin (3):
mmc: dw_mmc-rockchip: Add memory clock auto-gating support
mmc: dw_mmc-rockchip: Fix runtime PM support for internal phase support
soc: rockchip: grf: Add missing of_node_put() when returning
Shengming Hu (1):
fgraph: Fix thresh_return clear per-task notrace
Shuangpeng Bai (1):
serial: caif: hold tty->link reference in ldisc_open and ser_release
Shuicheng Lin (1):
drm/xe/sync: Cleanup partially initialized sync on parse failure
Shyam Prasad N (2):
cifs: make default value of retrans as zero
cifs: open files should not hold ref on superblock
Sofia Schneider (1):
ACPI: OSI: Add DMI quirk for Acer Aspire One D255
Sourabh Jain (2):
powerpc/kexec/core: use big-endian types for crash variables powerpc/crash: adjust the elfcorehdr size
Srinivasan Shanmugam (1):
drm/amd/display: Fix DisplayID not-found handling in parse_edid_displayid_vrr()
Stefan Haberland (2):
s390/dasd: Move quiesce state with pprc swap s390/dasd: Copy detected format information to secondary device
Steven Rostedt (2):
time/jiffies: Mark jiffies_64_to_clock_t() notrace
tracing: Add recursion protection in kernel stack trace recording
Sun YangKai (1):
btrfs: hold space_info->lock when clearing periodic reclaim ready
Sungwoo Kim (2):
nvme-pci: Fix slab-out-of-bounds in nvme_dbbuf_set
nvme-pci: Fix race bug in nvme_poll_irqdisable()
Sven Eckelmann (1):
batman-adv: Avoid double-rtnl_lock ELP metric worker
Takashi Iwai (3):
ALSA: usb-audio: Avoid implicit feedback mode on DIYINHK USB Audio 2.0
ALSA: usb-audio: Check max frame size for implicit feedback mode, too
ALSA: usb-audio: Check endpoint numbers at parsing Scarlett2 mixer interfaces
Tejun Heo (2):
sched_ext: Disable preemption between scx_claim_exit() and kicking helper work
sched_ext: Fix starvation of scx_enable() under fair-class saturation
Thomas Fourier (1):
drm/msm: Fix dma_free_attrs() buffer size
Thomas Gleixner (2):
kbuild: Disable CC_HAS_ASM_GOTO_OUTPUT on clang < 17
cleanup: Provide retain_and_null_ptr()
Thorsten Blum (2):
ksmbd: Don't log keys in SMB3 signing and encryption key generation
crypto: atmel-sha204a - Fix OOM ->tfm_count leak
Tiezhu Yang (1):
LoongArch: Give more information if kmem access failed
Timur Kristóf (2):
drm/amd/display: Add pixel_clock to amd_pp_display_configuration drm/amd/pm: Use pm_display_cfg in legacy DPM (v2)
Tobi Gaertner (2):
net: usb: cdc_ncm: add ndpoffset to NDP16 nframes bounds check
net: usb: cdc_ncm: add ndpoffset to NDP32 nframes bounds check
Toke Høiland-Jørgensen (1):
xdp: register system page pool as an XDP memory model
Tomas Henzl (1):
scsi: ses: Fix devices attaching to different hosts
Tzung-Bi Shih (1):
remoteproc: mediatek: Unprepare SCP clock during system suspend
Vladimir Oltean (1):
net: dsa: properly keep track of conduit reference
Vyacheslav Vahnenko (1):
USB: ezcap401 needs USB_QUIRK_NO_BOS to function on 10gbs usb speed
Wang Shuaiwei (1):
scsi: ufs: core: Fix SError in ufshcd_rtc_work() during UFS suspend
Wang Tao (1):
Bluetooth: MGMT: Fix list corruption and UAF in command complete handlers
Weiming Shi (4):
net/sched: teql: fix NULL pointer dereference in iptunnel_xmit on TEQL slave xmit
net: add xmit recursion limit to tunnel xmit functions
nfnetlink_osf: validate individual option lengths in fingerprints
icmp: fix NULL pointer dereference in icmp_tag_validation()
Wenyuan Li (1):
can: hi311x: hi3110_open(): add check for hi3110_power_enable() return value
Xi Ruoyao (1):
drm/amd/display: Wrap dcn32_override_min_req_memclk() in DC_FP_{START, END}Xiang Mei (3):
wifi: mac80211: fix NULL deref in mesh_matches_local()
udp_tunnel: fix NULL deref caused by udp_sock_create6 when CONFIG_IPV6=n
net: bonding: fix NULL deref in bond_debug_rlb_hash_show
Xingui Yang (2):
scsi: hisi_sas: Add time interval between two H2D FIS following soft reset spec
scsi: hisi_sas: Fix NULL pointer exception during user_scan()
Xu Yang (2):
usb: roles: get usb role switch from parent only for usb-b-connector Revert "tcpm: allow looking for role_sw device in the main node"
Yan Zhao (2):
KVM: x86: Introduce supported_quirks to block disabling quirks
KVM: x86: Introduce Intel specific quirk KVM_X86_QUIRK_IGNORE_GUEST_PAT
Yang Wang (2):
drm/amd/pm: add missing od setting PP_OD_FEATURE_ZERO_FAN_BIT for smu v14 drm/amd/pm: remove invalid gpu_metrics.energy_accumulator on smu v13.0.x
Yang Yang (1):
batman-adv: avoid OGM aggregation when skb tailroom is insufficient
Yasin Lee (1):
iio: proximity: hx9023s: Protect against division by zero in set_samp_freq
Yeoreum Yun (1):
firmware: arm_ffa: Remove vm_id argument in ffa_rxtx_unmap()
Yihang Li (1):
scsi: hisi_sas: Use macro instead of magic number
Yuan Tan (1):
netfilter: xt_IDLETIMER: reject rev0 reuse of ALARM timer labels
Zdenek Bouska (1):
igc: fix page fault in XDP TX timestamps handling
Zhang Heng (1):
ASoC: amd: yc: Add DMI quirk for ASUS EXPERTBOOK PM1503CDA
ZhengYuan Huang (1):
btrfs: tree-checker: fix misleading root drop_level error message
Zhiguo Niu (2):
f2fs: compress: change the first parameter of page_array_{alloc,free} to sbi
f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic
Zide Chen (1):
perf/x86/intel/uncore: Add per-scheduler IMC CAS count events
Zilin Guan (3):
usb: xhci: Fix memory leak in xhci_disable_slot()
binfmt_misc: restore write access before closing files opened by open_exec()
soc: microchip: mpfs: Fix memory leak in mpfs_sys_controller_probe()
Ziyi Guo (1):
usb: image: mdc800: kill download URB on timeout
matteo.cotifava (2):
ASoC: soc-core: drop delayed_work_pending() check before flush
ASoC: soc-core: flush delayed work before removing DAIs and widgets
sguttula (1):
drm/amdgpu/vcn5: Add SMU dpm interface type
wangshuaiwei (1):
scsi: ufs: core: Fix shift out of bounds when MAXQ=32
Álvaro Fernández Rojas (1):
net: sfp: improve Huawei MA5671a fixup
Greg Kroah-Hartman
maintainerDocumentation/virt/kvm/api.rst +52 -0
@@ -8107,6 +8107,58 @@ KVM_X86_QUIRK_SLOT_ZAP_ALL By default, for KVM_X86_DEFAULT_VM VMs, KVM or moved memslot isn't reachable, i.e KVM _may_ invalidate only SPTEs related to the memslot. + +KVM_X86_QUIRK_STUFF_FEATURE_MSRS By default, at vCPU creation, KVM sets the + vCPU's MSR_IA32_PERF_CAPABILITIES (0x345), + MSR_IA32_ARCH_CAPABILITIES (0x10a), + MSR_PLATFORM_INFO (0xce), and all VMX MSRs + (0x480..0x492) to the maximal capabilities + supported by KVM. KVM also sets + MSR_IA32_UCODE_REV (0x8b) to an arbitrary + value (which is different for Intel vs. + AMD). Lastly, when guest CPUID is set (by + userspace), KVM modifies select VMX MSR + fields to force consistency between guest + CPUID and L2's effective ISA. When this + quirk is disabled, KVM zeroes the vCPU's MSR + values (with two exceptions, see below), + i.e. treats the feature MSRs like CPUID + leaves and gives userspace full control of + the vCPU model definition. This quirk does + not affect VMX MSRs CR0/CR4_FIXED1 (0x487 + and 0x489), as KVM does now allow them to + be set by userspace (KVM sets them based on + guest CPUID, for safety purposes). + +KVM_X86_QUIRK_IGNORE_GUEST_PAT By default, on Intel platforms, KVM ignores + guest PAT and forces the effective memory + type to WB in EPT. The quirk is not available + on Intel platforms which are incapable of + safely honoring guest PAT (i.e., without CPU + self-snoop, KVM always ignores guest PAT and + forces effective memory type to WB). It is + also ignored on AMD platforms or, on Intel, + when a VM has non-coherent DMA devices + assigned; KVM always honors guest PAT in + such case. The quirk is needed to avoid + slowdowns on certain Intel Xeon platforms + (e.g. ICX, SPR) where self-snoop feature is + supported but UC is slow enough to cause + issues with some older guests that use + UC instead of WC to map the video RAM. + Userspace can disable the quirk to honor + guest PAT if it knows that there is no such + guest software, for example if it does not + expose a bochs graphics device (which is + known to have had a buggy driver). + +KVM_X86_QUIRK_VMCS12_ALLOW_FREEZE_IN_SMM By default, KVM relaxes the consistency + check for GUEST_IA32_DEBUGCTL in vmcs12 + to allow FREEZE_IN_SMM to be set. When + this quirk is disabled, KVM requires this + bit to be cleared. Note that the vmcs02 + bit is still completely controlled by the + host, regardless of the quirk setting. =================================== ============================================ 7.32 KVM_CAP_MAX_VCPU_ID
Makefile +6 -5
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 12 -SUBLEVEL = 77 +SUBLEVEL = 78 EXTRAVERSION = NAME = Baby Opossum Posse
@@ -446,6 +446,7 @@ KBUILD_USERLDFLAGS := $(USERLDFLAGS) export rust_common_flags := --edition=2021 \ -Zbinary_dep_depinfo=y \ -Astable_features \ + -Aunused_features \ -Dnon_ascii_idents \ -Dunsafe_op_in_unsafe_fn \ -Wmissing_docs \
@@ -1370,13 +1371,13 @@ ifneq ($(wildcard $(resolve_btfids_O)),) $(Q)$(MAKE) -sC $(srctree)/tools/bpf/resolve_btfids O=$(resolve_btfids_O) clean endif -PHONY += objtool_clean +PHONY += objtool_clean objtool_mrproper objtool_O = $(abspath $(objtree))/tools/objtool -objtool_clean: +objtool_clean objtool_mrproper: ifneq ($(wildcard $(objtool_O)),) - $(Q)$(MAKE) -sC $(abs_srctree)/tools/objtool O=$(objtool_O) srctree=$(abs_srctree) clean + $(Q)$(MAKE) -sC $(abs_srctree)/tools/objtool O=$(objtool_O) srctree=$(abs_srctree) $(patsubst objtool_%,%,$@) endif tools/: FORCE
@@ -1547,7 +1548,7 @@ PHONY += $(mrproper-dirs) mrproper $(mrproper-dirs): $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@) -mrproper: clean $(mrproper-dirs) +mrproper: clean objtool_mrproper $(mrproper-dirs) $(call cmd,rmfiles) @find . $(RCS_FIND_IGNORE) \ \( -name '*.rmeta' \) \
arch/arm/kernel/machine_kexec.c +0 -23
@@ -127,29 +127,6 @@ void crash_smp_send_stop(void) cpus_stopped =1 ; } -static void machine_kexec_mask_interrupts (void ) -{ -unsigned int i; -struct irq_desc *desc; - -for_each_irq_desc (i, desc) { -struct irq_chip *chip; - - chip =irq_desc_get_chip (desc); -if (!chip) -continue ; - -if (chip->irq_eoi &&irqd_irq_inprogress (&desc->irq_data)) - chip->irq_eoi (&desc->irq_data); - -if (chip->irq_mask) - chip->irq_mask (&desc->irq_data); - -if (chip->irq_disable && !irqd_irq_disabled (&desc->irq_data)) - chip->irq_disable (&desc->irq_data); - } -} -void machine_crash_shutdown (struct pt_regs *regs) {local_irq_disable ();
arch/arm64/Kconfig +1 -0
@@ -146,6 +146,7 @@ config ARM64 select GENERIC_IDLE_POLL_SETUP select GENERIC_IOREMAP select GENERIC_IRQ_IPI + select GENERIC_IRQ_KEXEC_CLEAR_VM_FORWARD select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW_LEVEL
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +0 -1
@@ -246,7 +246,6 @@ vreg_l12a_1p8: ldo12 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; - regulator-boot-on; }; vreg_l14a_1p88: ldo14 {
arch/arm64/boot/dts/renesas/r9a09g057.dtsi +11 -26
@@ -201,16 +201,6 @@ ostm7: timer@12c03000 { status = "disabled"; }; - wdt0: watchdog@11c00400 { - compatible = "renesas,r9a09g057-wdt"; - reg = <0 0x11c00400 0 0x400>; - clocks = <&cpg CPG_MOD 0x4b>, <&cpg CPG_MOD 0x4c>; - clock-names = "pclk", "oscclk"; - resets = <&cpg 0x75>; - power-domains = <&cpg>; - status = "disabled"; - }; - wdt1: watchdog@14400000 { compatible = "renesas,r9a09g057-wdt"; reg = <0 0x14400000 0 0x400>;
@@ -221,23 +211,18 @@ wdt1: watchdog@14400000 { status = "disabled"; }; - wdt2: watchdog@13000000 { - compatible = "renesas,r9a09g057-wdt"; - reg = <0 0x13000000 0 0x400>; - clocks = <&cpg CPG_MOD 0x4f>, <&cpg CPG_MOD 0x50>; - clock-names = "pclk", "oscclk"; - resets = <&cpg 0x77>; - power-domains = <&cpg>; - status = "disabled"; - }; - - wdt3: watchdog@13000400 { - compatible = "renesas,r9a09g057-wdt"; - reg = <0 0x13000400 0 0x400>; - clocks = <&cpg CPG_MOD 0x51>, <&cpg CPG_MOD 0x52>; - clock-names = "pclk", "oscclk"; - resets = <&cpg 0x78>; + rtc: rtc@11c00800 { + compatible = "renesas,r9a09g057-rtca3", "renesas,rz-rtca3"; + reg = <0 0x11c00800 0 0x400>; + interrupts = <GIC_SPI 524 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 525 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 526 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "alarm", "period", "carry"; + clocks = <&cpg CPG_MOD 0x53>, <&rtxin_clk>; + clock-names = "bus", "counter"; power-domains = <&cpg>; + resets = <&cpg 0x79>, <&cpg 0x7a>; + reset-names = "rtc", "rtest"; status = "disabled"; };
arch/arm64/include/asm/pgtable-prot.h +5 -5
@@ -52,11 +52,11 @@#define _PAGE_DEFAULT (_PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL)) -#define _PAGE_KERNEL (PROT_NORMAL) -#define _PAGE_KERNEL_RO ((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY) -#define _PAGE_KERNEL_ROX ((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY) -#define _PAGE_KERNEL_EXEC (PROT_NORMAL & ~PTE_PXN) -#define _PAGE_KERNEL_EXEC_CONT ((PROT_NORMAL & ~PTE_PXN) | PTE_CONT) +#define _PAGE_KERNEL (PROT_NORMAL | PTE_DIRTY) +#define _PAGE_KERNEL_RO ((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY | PTE_DIRTY) +#define _PAGE_KERNEL_ROX ((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY | PTE_DIRTY) +#define _PAGE_KERNEL_EXEC ((PROT_NORMAL & ~PTE_PXN) | PTE_DIRTY) +#define _PAGE_KERNEL_EXEC_CONT ((PROT_NORMAL & ~PTE_PXN) | PTE_CONT | PTE_DIRTY)#define _PAGE_SHARED (_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN | PTE_WRITE)#define _PAGE_SHARED_EXEC (_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_WRITE)
arch/arm64/kernel/machine_kexec.c +0 -31
@@ -207,37 +207,6 @@ void machine_kexec(struct kimage *kimage)BUG ();/* Should never get here. */ } -static void machine_kexec_mask_interrupts (void ) -{ -unsigned int i; -struct irq_desc *desc; - -for_each_irq_desc (i, desc) { -struct irq_chip *chip; -int ret; - - chip =irq_desc_get_chip (desc); -if (!chip) -continue ; - -/* -* First try to remove the active state. If this -* fails, try to EOI the interrupt. -*/ - ret =irq_set_irqchip_state (i,IRQCHIP_STATE_ACTIVE , false); - -if (ret &&irqd_irq_inprogress (&desc->irq_data) && - chip->irq_eoi) - chip->irq_eoi (&desc->irq_data); - -if (chip->irq_mask) - chip->irq_mask (&desc->irq_data); - -if (chip->irq_disable && !irqd_irq_disabled (&desc->irq_data)) - chip->irq_disable (&desc->irq_data); - } -} -/** * machine_crash_shutdown - shutdown non-crashing cpus and save registers */
arch/arm64/mm/contpte.c +49 -4
68 lines not on this page · raw message
arch/loongarch/include/asm/uaccess.h +12 -2
@@ -196,8 +196,13 @@ do { \ \__get_kernel_common (*((type *)(dst)),sizeof (type), \ (__force type *)(src)); \ -if (unlikely (__gu_err)) \ +if (unlikely (__gu_err)) { \ +pr_info ("%s: memory access failed, ecode 0x%x\n" , \ + __func__,read_csr_excode ()); \ +pr_info ("%s: the caller is %pS\n" , \ + __func__,__builtin_return_address (0 )); \ goto err_label; \ + } \ }while (0 ) #define __put_kernel_nofault(dst, src, type, err_label) \
@@ -207,8 +212,13 @@ do { \ \ __pu_val = *(__force type *)(src); \__put_kernel_common (((type *)(dst)),sizeof (type)); \ -if (unlikely (__pu_err)) \ +if (unlikely (__pu_err)) { \ +pr_info ("%s: memory access failed, ecode 0x%x\n" , \ + __func__,read_csr_excode ()); \ +pr_info ("%s: the caller is %pS\n" , \ + __func__,__builtin_return_address (0 )); \ goto err_label; \ + } \ }while (0 ) extern unsigned long __copy_user(void *to, const void *from, __kernel_size_t n);
arch/parisc/include/asm/pgtable.h +1 -1
@@ -85,7 +85,7 @@ extern void __update_cache(pte_t pte);printk ("%s:%d: bad pgd %08lx.\n" , __FILE__, __LINE__, (unsigned long )pgd_val (e)) /* This is the size of the initially mapped kernel memory */ -#if defined(CONFIG_64BIT ) +#if defined(CONFIG_64BIT ) || defined(CONFIG_KALLSYMS )#define KERNEL_INITIAL_ORDER 26/* 1<<26 = 64MB */ #else #define KERNEL_INITIAL_ORDER 25/* 1<<25 = 32MB */
arch/parisc/kernel/cache.c +2 -2
@@ -953,7 +953,7 @@ SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes,#else "1: cmpb,<<,n %0,%2,1b\n" #endif -" fic,m %3(%4,%0)\n" +" fdc,m %3(%4,%0)\n" "2: sync\n" ASM_EXCEPTIONTABLE_ENTRY_EFAULT (1b ,2b ,"%1" ) : "+r" (start), "+r" (error)
@@ -968,7 +968,7 @@ SYSCALL_DEFINE3(cacheflush, unsigned long, addr, unsigned long, bytes,#else "1: cmpb,<<,n %0,%2,1b\n" #endif -" fdc,m %3(%4,%0)\n" +" fic,m %3(%4,%0)\n" "2: sync\n" ASM_EXCEPTIONTABLE_ENTRY_EFAULT (1b ,2b ,"%1" ) : "+r" (start), "+r" (error)
arch/parisc/kernel/head.S +6 -1
@@ -56,6 +56,7 @@ ENTRY(parisc_kernel_start) .import __bss_start,data .import __bss_stop,data + .import __end,data load32 PA(__bss_start),%r3 load32 PA(__bss_stop),%r4
@@ -149,7 +150,11 @@ $cpu_ok: * everything ... it will get remapped correctly later */ ldo 0+_PAGE_KERNEL_RWX(%r0),%r3 /* Hardwired 0 phys addr start */ load32 (1<<(KERNEL_INITIAL_ORDER-PAGE_SHIFT)),%r11 /* PFN count */ - load32 PA(pg0),%r1 + load32 PA(_end),%r1 + SHRREG %r1,PAGE_SHIFT,%r1 /* %r1 is PFN count for _end symbol */ + cmpb,<<,n %r11,%r1,1f + copy %r1,%r11 /* %r1 PFN count smaller than %r11 */ +1: load32 PA(pg0),%r1 $pgt_fill_loop: STREGM %r3,ASM_PTE_ENTRY_SIZE(%r1)
arch/parisc/kernel/setup.c +12 -8
@@ -120,14 +120,6 @@ void __init setup_arch(char **cmdline_p)#endif printk (KERN_CONT ".\n" ); -/* -* Check if initial kernel page mappings are sufficient. -* panic early if not, else we may access kernel functions -* and variables which can't be reached. -*/ -if (__pa ((unsigned long ) &_end) >=KERNEL_INITIAL_SIZE ) -panic ("KERNEL_INITIAL_ORDER too small!" ); -#ifdef CONFIG_64BIT if (parisc_narrow_firmware) {printk (KERN_INFO "Kernel is using PDC in 32-bit mode.\n" );
@@ -279,6 +271,18 @@ void __init start_parisc(void)int ret, cpunum;struct pdc_coproc_cfg coproc_cfg; +/* +* Check if initial kernel page mapping is sufficient. +* Print warning if not, because we may access kernel functions and +* variables which can't be reached yet through the initial mappings. +* Note that the panic() and printk() functions are not functional +* yet, so we need to use direct iodc() firmware calls instead. +*/ +const char warn1[] ="CRITICAL: Kernel may crash because " +"KERNEL_INITIAL_ORDER is too small.\n" ; +if (__pa ((unsigned long ) &_end) >=KERNEL_INITIAL_SIZE ) +pdc_iodc_print (warn1,sizeof (warn1) -1 ); +/* check QEMU/SeaBIOS marker in PAGE0 */ running_on_qemu = (memcmp (&PAGE0 ->pad0,"SeaBIOS" ,8 ) ==0 );
arch/powerpc/include/asm/kexec.h +0 -1
@@ -61,7 +61,6 @@ struct pt_regs;extern void kexec_smp_wait (void );/* get and clear naca physid, wait for master to copy new code to 0 */ extern void default_machine_kexec (struct kimage *image); -extern void machine_kexec_mask_interrupts (void );void relocate_new_kernel (unsigned long indirection_page,unsigned long reboot_code_buffer,unsigned long start_address)__noreturn ;
arch/powerpc/include/asm/uaccess.h +1 -1
@@ -253,7 +253,7 @@ __gus_failed: \".section .fixup,\"ax\"\n" \"4: li %0,%3\n" \" li %1,0\n" \ -" li %1+1,0\n" \ +" li %L1,0\n" \" b 3b\n" \".previous\n" \EX_TABLE (1b ,4b ) \
arch/powerpc/kexec/core.c +21 -39
107 lines not on this page · raw message
arch/powerpc/kexec/core_32.c +1 -0
@@ -7,6 +7,7 @@* Copyright (C) 2005 IBM Corporation. */ +#include <linux/irq.h> #include <linux/kexec.h> #include <linux/mm.h> #include <linux/string.h>
arch/powerpc/kexec/file_load_64.c +13 -1
@@ -633,6 +633,11 @@ static int load_elfcorehdr_segment(struct kimage *image, struct kexec_buf *kbuf) kbuf->buffer = headers; kbuf->mem =KEXEC_BUF_MEM_UNKNOWN ; kbuf->bufsz = headers_sz; + +/* +* Account for extra space required to accommodate additional memory +* ranges in elfcorehdr due to memory hotplug events. +*/ kbuf->memsz = headers_sz +kdump_extra_elfcorehdr_size (cmem); kbuf->top_down = false;
@@ -643,7 +648,14 @@ static int load_elfcorehdr_segment(struct kimage *image, struct kexec_buf *kbuf) } image->elf_load_addr = kbuf->mem; - image->elf_headers_sz = headers_sz; + +/* +* If CONFIG_CRASH_HOTPLUG is enabled, the elfcorehdr kexec segment +* memsz can be larger than bufsz. Always initialize elf_headers_sz +* with memsz. This ensures the correct size is reserved for elfcorehdr +* memory in the FDT prepared for kdump. +*/ + image->elf_headers_sz = kbuf->memsz; image->elf_headers = headers; out:kfree (cmem);
arch/powerpc/net/bpf_jit_comp.c +1 -1
@@ -362,7 +362,7 @@ void bpf_jit_free(struct bpf_prog *fp)bool bpf_jit_supports_kfunc_call (void ) { -return true; +return IS_ENABLED (CONFIG_PPC64 ); }bool bpf_jit_supports_far_kfunc_call (void )
arch/powerpc/net/bpf_jit_comp64.c +103 -45
191 lines not on this page · raw message
arch/powerpc/platforms/83xx/km83xx.c +2 -2
@@ -155,8 +155,8 @@ machine_device_initcall(mpc83xx_km, mpc83xx_declare_of_platform_devices);/* list of the supported boards */ static char *board[]__initdata = { -"Keymile,KMETER1" , -"Keymile,kmpbec8321" , +"keymile,KMETER1" , +"keymile,kmpbec8321" ,NULL };
arch/riscv/kernel/machine_kexec.c +0 -23
@@ -114,29 +114,6 @@ void machine_shutdown(void)#endif } -static void machine_kexec_mask_interrupts (void ) -{ -unsigned int i; -struct irq_desc *desc; - -for_each_irq_desc (i, desc) { -struct irq_chip *chip; - - chip =irq_desc_get_chip (desc); -if (!chip) -continue ; - -if (chip->irq_eoi &&irqd_irq_inprogress (&desc->irq_data)) - chip->irq_eoi (&desc->irq_data); - -if (chip->irq_mask) - chip->irq_mask (&desc->irq_data); - -if (chip->irq_disable && !irqd_irq_disabled (&desc->irq_data)) - chip->irq_disable (&desc->irq_data); - } -} -/* * machine_crash_shutdown - Prepare to kexec after a kernel crash *
arch/s390/include/asm/processor.h +1 -1
@@ -168,7 +168,7 @@ static __always_inline void __stackleak_poison(unsigned long erase_low," j 4f\n" "3: mvc 8(1,%[addr]),0(%[addr])\n" "4:\n" - : [addr] "+&a" (erase_low), [count] "+&d" (count), [tmp] "=&a" (tmp) + : [addr] "+&a" (erase_low), [count] "+&a" (count), [tmp] "=&a" (tmp) : [poison] "d" (poison) : "memory", "cc" );
arch/s390/lib/xor.c +2 -2
@@ -29,8 +29,8 @@ static void xor_xc_2(unsigned long bytes, unsigned long * __restrict p1," j 3f\n" "2: xc 0(1,%1),0(%2)\n" "3:\n" - : : "d" (bytes), "a" (p1), "a" (p2) - : "0", "1", "cc", "memory"); + : "+d" (bytes), "+a" (p1), "+a" (p2) + : : "0", "1", "cc", "memory"); } static void xor_xc_3(unsigned long bytes, unsigned long * __restrict p1,
arch/s390/mm/pfault.c +2 -2
@@ -61,7 +61,7 @@ int __pfault_init(void)"0: nopr %%r7\n" EX_TABLE (0b ,0b ) : [rc] "+d" (rc) - : [refbk] "a" (&pfault_init_refbk), "m" (pfault_init_refbk) + : [refbk] "a" (virt_to_phys(&pfault_init_refbk)), "m" (pfault_init_refbk) : "cc"); return rc; }
@@ -83,7 +83,7 @@ void __pfault_fini(void)"0: nopr %%r7\n" EX_TABLE (0b ,0b ) : - : [refbk] "a" (&pfault_fini_refbk), "m" (pfault_fini_refbk) + : [refbk] "a" (virt_to_phys(&pfault_fini_refbk)), "m" (pfault_fini_refbk) : "cc"); }
arch/x86/boot/compressed/sev.c +1 -0
@@ -357,6 +357,7 @@ void do_boot_stage2_vc(struct pt_regs *regs, unsigned long exit_code)MSR_AMD64_SNP_VMSA_REG_PROT | \MSR_AMD64_SNP_RESERVED_BIT13 | \MSR_AMD64_SNP_RESERVED_BIT15 | \ +MSR_AMD64_SNP_RESERVED_BITS18_22 | \ MSR_AMD64_SNP_RESERVED_MASK)/*
arch/x86/coco/sev/core.c +1 -0
@@ -78,6 +78,7 @@ static const char * const sev_status_feat_names[] = { [MSR_AMD64_SNP_IBS_VIRT_BIT] = "IBSVirt", [MSR_AMD64_SNP_VMSA_REG_PROT_BIT] = "VMSARegProt", [MSR_AMD64_SNP_SMT_PROT_BIT] = "SMTProt", + [MSR_AMD64_SNP_IBPB_ON_ENTRY_BIT] = "IBPBOnEntry", };/* For early boot hypervisor communication in SEV-ES enabled guests */
arch/x86/events/intel/core.c +19 -6
@@ -4031,6 +4031,17 @@ static u64 intel_pmu_freq_start_period(struct perf_event *event)return start; } +static inline int intel_set_branch_counter_constr (struct perf_event *event, +int *num) +{ +if (branch_sample_call_stack (event)) +return -EINVAL ; +if (branch_sample_counters (event)) + (*num)++; + +return 0 ; +} +static int intel_pmu_hw_config (struct perf_event *event) {int ret =x86_pmu_hw_config (event);
@@ -4090,17 +4101,19 @@ static int intel_pmu_hw_config(struct perf_event *event)* group, which requires the extra space to store the counters. */ leader = event->group_leader; -if (branch_sample_call_stack (leader)) +if (intel_set_branch_counter_constr (leader, &num))return -EINVAL ; -if (branch_sample_counters (leader)) - num++; leader->hw.flags |=PERF_X86_EVENT_BRANCH_COUNTERS ;for_each_sibling_event (sibling, leader) { -if (branch_sample_call_stack (sibling)) +if (intel_set_branch_counter_constr (sibling, &num)) +return -EINVAL ; + } + +/* event isn't installed as a sibling yet. */ +if (event != leader) { +if (intel_set_branch_counter_constr (event, &num))return -EINVAL ; -if (branch_sample_counters (sibling)) - num++; }if (num >fls (x86_pmu.lbr_counters))
arch/x86/events/intel/uncore_snbep.c +59 -17
105 lines not on this page · raw message
arch/x86/include/asm/kvm_host.h +8 -1
@@ -2385,7 +2385,14 @@ int memslot_rmap_alloc(struct kvm_memory_slot *slot, unsigned long npages);KVM_X86_QUIRK_MISC_ENABLE_NO_MWAIT | \KVM_X86_QUIRK_FIX_HYPERCALL_INSN | \KVM_X86_QUIRK_MWAIT_NEVER_UD_FAULTS | \ - KVM_X86_QUIRK_SLOT_ZAP_ALL) +KVM_X86_QUIRK_SLOT_ZAP_ALL | \ +KVM_X86_QUIRK_STUFF_FEATURE_MSRS | \ +KVM_X86_QUIRK_IGNORE_GUEST_PAT | \ + KVM_X86_QUIRK_VMCS12_ALLOW_FREEZE_IN_SMM) + +#define KVM_X86_CONDITIONAL_QUIRKS \ + (KVM_X86_QUIRK_CD_NW_CLEARED | \ +KVM_X86_QUIRK_IGNORE_GUEST_PAT )/* * KVM previously used a u32 field in kvm_run to indicate the hypercall was
arch/x86/include/asm/msr-index.h +4 -1
@@ -691,7 +691,10 @@#define MSR_AMD64_SNP_VMSA_REG_PROT BIT_ULL(MSR_AMD64_SNP_VMSA_REG_PROT_BIT)#define MSR_AMD64_SNP_SMT_PROT_BIT 17#define MSR_AMD64_SNP_SMT_PROT BIT_ULL(MSR_AMD64_SNP_SMT_PROT_BIT) -#define MSR_AMD64_SNP_RESV_BIT 18 +#define MSR_AMD64_SNP_RESERVED_BITS18_22 GENMASK_ULL(22, 18) +#define MSR_AMD64_SNP_IBPB_ON_ENTRY_BIT 23 +#define MSR_AMD64_SNP_IBPB_ON_ENTRY BIT_ULL(MSR_AMD64_SNP_IBPB_ON_ENTRY_BIT) +#define MSR_AMD64_SNP_RESV_BIT 24#define MSR_AMD64_SNP_RESERVED_MASK GENMASK_ULL(63, MSR_AMD64_SNP_RESV_BIT)#define MSR_AMD64_VIRT_SPEC_CTRL 0xc001011f
arch/x86/include/uapi/asm/kvm.h +3 -0
@@ -440,6 +440,9 @@ struct kvm_sync_regs {#define KVM_X86_QUIRK_FIX_HYPERCALL_INSN (1 << 5)#define KVM_X86_QUIRK_MWAIT_NEVER_UD_FAULTS (1 << 6)#define KVM_X86_QUIRK_SLOT_ZAP_ALL (1 << 7) +#define KVM_X86_QUIRK_STUFF_FEATURE_MSRS (1 << 8) +#define KVM_X86_QUIRK_IGNORE_GUEST_PAT (1 << 9) +#define KVM_X86_QUIRK_VMCS12_ALLOW_FREEZE_IN_SMM (1 << 10)#define KVM_STATE_NESTED_FORMAT_VMX 0#define KVM_STATE_NESTED_FORMAT_SVM 1
arch/x86/kernel/apic/apic.c +6 -0
@@ -1887,6 +1887,7 @@ void __init check_x2apic(void)static inline void try_to_enable_x2apic (int remap_mode) { }static inline void __x2apic_enable (void ) { } +static inline void __x2apic_disable (void ) { }#endif /* !CONFIG_X86_X2APIC */ void __init enable_IR_x2apic (void )
@@ -2449,6 +2450,11 @@ static void lapic_resume(void)if (x2apic_mode) {__x2apic_enable (); }else { +if (x2apic_enabled ()) { +pr_warn_once ("x2apic: re-enabled by firmware during resume. Disabling\n" ); +__x2apic_disable (); + } +/* * Make sure the APICBASE points to the right address *
arch/x86/kernel/apic/x2apic_uv_x.c +16 -2
@@ -1708,8 +1708,22 @@ static void __init uv_system_init_hub(void)struct uv_hub_info_s *new_hub;/* Allocate & fill new per hub info list */ - new_hub = (bid ==0 ) ? &uv_hub_info_node0 - :kzalloc_node (bytes,GFP_KERNEL ,uv_blade_to_node (bid)); +if (bid ==0 ) { + new_hub = &uv_hub_info_node0; + }else { +int nid; + +/* +* Deconfigured sockets are mapped to SOCK_EMPTY. Use +* NUMA_NO_NODE to allocate on a valid node. +*/ + nid =uv_blade_to_node (bid); +if (nid ==SOCK_EMPTY ) + nid =NUMA_NO_NODE ; + + new_hub =kzalloc_node (bytes,GFP_KERNEL , nid); + } +if (WARN_ON_ONCE (!new_hub)) {/* do not kfree() bid 0, which is statically allocated */ while (--bid >0 )
arch/x86/kernel/uprobes.c +24 -0
@@ -1223,3 +1223,27 @@ bool arch_uretprobe_is_alive(struct return_instance *ret, enum rp_check ctx,else return regs->sp <= ret->stack; } + +#ifdef CONFIG_IA32_EMULATION +unsigned long arch_uprobe_get_xol_area (void ) +{ +struct thread_info *ti =current_thread_info (); +unsigned long vaddr; + +/* +* HACK: we are not in a syscall, but x86 get_unmapped_area() paths +* ignore TIF_ADDR32 and rely on in_32bit_syscall() to calculate +* vm_unmapped_area_info.high_limit. +* +* The #ifdef above doesn't cover the CONFIG_X86_X32_ABI=y case, +* but in this case in_32bit_syscall() -> in_x32_syscall() always +* (falsely) returns true because ->orig_ax == -1. +*/ +if (test_thread_flag (TIF_ADDR32 )) + ti->status |=TS_COMPAT ; + vaddr =get_unmapped_area (NULL ,TASK_SIZE -PAGE_SIZE ,PAGE_SIZE ,0 ,0 ); + ti->status &= ~TS_COMPAT ; + +return vaddr; +} +#endif
arch/x86/kvm/mmu.h +1 -1
@@ -222,7 +222,7 @@ static inline u8 permission_fault(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu,return -(u32 )fault & errcode; } -bool kvm_mmu_may_ignore_guest_pat (void ); +bool kvm_mmu_may_ignore_guest_pat (struct kvm *kvm);int kvm_mmu_post_init_vm (struct kvm *kvm);void kvm_mmu_pre_destroy_vm (struct kvm *kvm);
arch/x86/kvm/mmu/mmu.c +6 -4
@@ -4713,17 +4713,19 @@ static int kvm_tdp_mmu_page_fault(struct kvm_vcpu *vcpu, }#endif -bool kvm_mmu_may_ignore_guest_pat (void ) +bool kvm_mmu_may_ignore_guest_pat (struct kvm *kvm) {/* * When EPT is enabled (shadow_memtype_mask is non-zero), and the VM * has non-coherent DMA (DMA doesn't snoop CPU caches), KVM's ABI is to * honor the memtype from the guest's PAT so that guest accesses to * memory that is DMA'd aren't cached against the guest's wishes. As a -* result, KVM _may_ ignore guest PAT, whereas without non-coherent DMA, -* KVM _always_ ignores guest PAT (when EPT is enabled). +* result, KVM _may_ ignore guest PAT, whereas without non-coherent DMA. +* KVM _always_ ignores guest PAT, when EPT is enabled and when quirk +* KVM_X86_QUIRK_IGNORE_GUEST_PAT is enabled or the CPU lacks the +* ability to safely honor guest PAT. */ -return shadow_memtype_mask; +return kvm_check_has_quirk (kvm,KVM_X86_QUIRK_IGNORE_GUEST_PAT ); }int kvm_tdp_page_fault (struct kvm_vcpu *vcpu,struct kvm_page_fault *fault)
arch/x86/kvm/svm/avic.c +25 -5
@@ -82,15 +82,34 @@ struct amd_svm_iommu_ir {void *data;/* Storing pointer to struct amd_ir_data */ }; +static u32 avic_get_max_physical_id (struct kvm_vcpu *vcpu) +{ +u32 arch_max; + +if (x2avic_enabled &&apic_x2apic_mode (vcpu->arch.apic)) + arch_max =X2AVIC_MAX_PHYSICAL_ID ; +else + arch_max =AVIC_MAX_PHYSICAL_ID ; + +/* +* Despite its name, KVM_CAP_MAX_VCPU_ID represents the maximum APIC ID +* plus one, so the max possible APIC ID is one less than that. +*/ +return min (vcpu->kvm->arch.max_vcpu_ids -1 , arch_max); +} +static void avic_activate_vmcb (struct vcpu_svm *svm) {struct vmcb *vmcb = svm->vmcb01.ptr; +struct kvm_vcpu *vcpu = &svm->vcpu; vmcb->control.int_ctl &= ~(AVIC_ENABLE_MASK |X2APIC_MODE_MASK ); vmcb->control.avic_physical_id &= ~AVIC_PHYSICAL_MAX_INDEX_MASK ; - + vmcb->control.avic_physical_id |=avic_get_max_physical_id (vcpu); vmcb->control.int_ctl |=AVIC_ENABLE_MASK ; +svm_clr_intercept (svm,INTERCEPT_CR8_WRITE ); +/* * Note: KVM supports hybrid-AVIC mode, where KVM emulates x2APIC MSR * accesses, while interrupt injection to a running vCPU can be
@@ -100,7 +119,7 @@ static void avic_activate_vmcb(struct vcpu_svm *svm)*/ if (x2avic_enabled &&apic_x2apic_mode (svm->vcpu.arch.apic)) { vmcb->control.int_ctl |=X2APIC_MODE_MASK ; - vmcb->control.avic_physical_id |=X2AVIC_MAX_PHYSICAL_ID ; +/* Disabling MSR intercept for x2APIC registers */ svm_set_x2apic_msr_interception (svm, false); }else {
@@ -110,8 +129,6 @@ static void avic_activate_vmcb(struct vcpu_svm *svm)*/ kvm_make_request (KVM_REQ_TLB_FLUSH_CURRENT , &svm->vcpu); -/* For xAVIC and hybrid-xAVIC modes */ - vmcb->control.avic_physical_id |=AVIC_MAX_PHYSICAL_ID ;/* Enabling MSR intercept for x2APIC registers */ svm_set_x2apic_msr_interception (svm, true); }
@@ -124,6 +141,9 @@ static void avic_deactivate_vmcb(struct vcpu_svm *svm) vmcb->control.int_ctl &= ~(AVIC_ENABLE_MASK |X2APIC_MODE_MASK ); vmcb->control.avic_physical_id &= ~AVIC_PHYSICAL_MAX_INDEX_MASK ; +if (!sev_es_guest (svm->vcpu.kvm)) +svm_set_intercept (svm,INTERCEPT_CR8_WRITE ); +/* * If running nested and the guest uses its own MSR bitmap, there * is no need to update L0's msr bitmap
@@ -253,7 +273,7 @@ void avic_init_vmcb(struct vcpu_svm *svm, struct vmcb *vmcb) vmcb->control.avic_physical_id = ppa &AVIC_HPA_MASK ; vmcb->control.avic_vapic_bar =APIC_DEFAULT_PHYS_BASE &VMCB_AVIC_APIC_BAR_MASK ; -if (kvm_apicv_activated (svm->vcpu.kvm)) +if (kvm_vcpu_apicv_active (&svm->vcpu))avic_activate_vmcb (svm);else avic_deactivate_vmcb (svm);
arch/x86/kvm/svm/svm.c +9 -5
@@ -1246,8 +1246,7 @@ static void init_vmcb(struct kvm_vcpu *vcpu)svm_set_intercept (svm,INTERCEPT_CR0_WRITE );svm_set_intercept (svm,INTERCEPT_CR3_WRITE );svm_set_intercept (svm,INTERCEPT_CR4_WRITE ); -if (!kvm_vcpu_apicv_active (vcpu)) -svm_set_intercept (svm,INTERCEPT_CR8_WRITE ); +svm_set_intercept (svm,INTERCEPT_CR8_WRITE );set_dr_intercepts (svm);
@@ -1360,7 +1359,7 @@ static void init_vmcb(struct kvm_vcpu *vcpu)if (boot_cpu_has (X86_FEATURE_V_SPEC_CTRL ))set_msr_interception (vcpu, svm->msrpm,MSR_IA32_SPEC_CTRL ,1 ,1 ); -if (kvm_vcpu_apicv_active (vcpu)) +if (enable_apicv &&irqchip_in_kernel (vcpu->kvm))avic_init_vmcb (svm, vmcb);if (vnmi)
@@ -1390,7 +1389,9 @@ static void __svm_vcpu_reset(struct kvm_vcpu *vcpu)svm_vcpu_init_msrpm (vcpu, svm->msrpm);svm_init_osvw (vcpu); - vcpu->arch.microcode_version =0x01000065 ; + +if (kvm_check_has_quirk (vcpu->kvm,KVM_X86_QUIRK_STUFF_FEATURE_MSRS )) + vcpu->arch.microcode_version =0x01000065 ; svm->tsc_ratio_msr = kvm_caps.default_tsc_scaling_ratio; svm->nmi_masked = false;
@@ -2862,9 +2863,11 @@ static int dr_interception(struct kvm_vcpu *vcpu)static int cr8_write_interception (struct kvm_vcpu *vcpu) { +u8 cr8_prev =kvm_get_cr8 (vcpu);int r; -u8 cr8_prev =kvm_get_cr8 (vcpu); +WARN_ON_ONCE (kvm_vcpu_apicv_active (vcpu)); +/* instruction emulation calls kvm_set_cr8() */ r =cr_interception (vcpu);if (lapic_in_kernel (vcpu))
@@ -5560,6 +5563,7 @@ static __init int svm_hardware_setup(void)*/ allow_smaller_maxphyaddr = !npt_enabled; + kvm_caps.inapplicable_quirks &= ~KVM_X86_QUIRK_CD_NW_CLEARED ;return 0 ; err:
arch/x86/kvm/vmx/nested.c +23 -3
@@ -3022,6 +3022,9 @@ static int nested_vmx_check_host_state(struct kvm_vcpu *vcpu, CC(!kvm_vcpu_is_legal_cr3(vcpu, vmcs12->host_cr3)))return -EINVAL ; +if (CC (vmcs12->host_cr4 &X86_CR4_CET && !(vmcs12->host_cr0 &X86_CR0_WP ))) +return -EINVAL ; +if (CC (is_noncanonical_msr_address (vmcs12->host_ia32_sysenter_esp, vcpu)) ||CC (is_noncanonical_msr_address (vmcs12->host_ia32_sysenter_eip, vcpu)))return -EINVAL ;
@@ -3136,11 +3139,28 @@ static int nested_vmx_check_guest_state(struct kvm_vcpu *vcpu, CC(!nested_guest_cr4_valid(vcpu, vmcs12->guest_cr4)))return -EINVAL ; -if ((vmcs12->vm_entry_controls &VM_ENTRY_LOAD_DEBUG_CONTROLS ) && - (CC (!kvm_dr7_valid (vmcs12->guest_dr7)) || -CC (!vmx_is_valid_debugctl (vcpu, vmcs12->guest_ia32_debugctl, false)))) +if (CC (vmcs12->guest_cr4 &X86_CR4_CET && !(vmcs12->guest_cr0 &X86_CR0_WP )))return -EINVAL ; +if (vmcs12->vm_entry_controls &VM_ENTRY_LOAD_DEBUG_CONTROLS ) { +u64 debugctl = vmcs12->guest_ia32_debugctl; + +/* +* FREEZE_IN_SMM is not virtualized, but allow L1 to set it in +* vmcs12's DEBUGCTL under a quirk for backwards compatibility. +* Note that the quirk only relaxes the consistency check. The +* vmcc02 bit is still under the control of the host. In +* particular, if a host administrator decides to clear the bit, +* then L1 has no say in the matter. +*/ +if (kvm_check_has_quirk (vcpu->kvm,KVM_X86_QUIRK_VMCS12_ALLOW_FREEZE_IN_SMM )) + debugctl &= ~DEBUGCTLMSR_FREEZE_IN_SMM ; + +if (CC (!kvm_dr7_valid (vmcs12->guest_dr7)) || +CC (!vmx_is_valid_debugctl (vcpu, debugctl, false))) +return -EINVAL ; + } +if ((vmcs12->vm_entry_controls &VM_ENTRY_LOAD_IA32_PAT ) &&CC (!kvm_pat_valid (vmcs12->guest_ia32_pat)))return -EINVAL ;
arch/x86/kvm/vmx/vmx.c +40 -10
86 lines not on this page · raw message
arch/x86/kvm/x86.c +16 -7
@@ -4801,7 +4801,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) r = enable_pmu ?KVM_CAP_PMU_VALID_MASK :0 ;break ;case KVM_CAP_DISABLE_QUIRKS2 : - r =KVM_X86_VALID_QUIRKS ; + r = kvm_caps.supported_quirks;break ;case KVM_CAP_X86_NOTIFY_VMEXIT : r = kvm_caps.has_notify_vmexit;
@@ -6534,11 +6534,11 @@ int kvm_vm_ioctl_enable_cap(struct kvm *kvm,switch (cap->cap) {case KVM_CAP_DISABLE_QUIRKS2 : r = -EINVAL ; -if (cap->args[0 ] & ~KVM_X86_VALID_QUIRKS ) +if (cap->args[0 ] & ~kvm_caps.supported_quirks)break ; fallthrough;case KVM_CAP_DISABLE_QUIRKS : - kvm->arch.disabled_quirks = cap->args[0 ]; + kvm->arch.disabled_quirks |= cap->args[0 ] & kvm_caps.supported_quirks; r =0 ;break ;case KVM_CAP_SPLIT_IRQCHIP : {
@@ -9782,6 +9782,8 @@ int kvm_x86_vendor_init(struct kvm_x86_init_ops *ops) kvm_host.xcr0 =xgetbv (XCR_XFEATURE_ENABLED_MASK ); kvm_caps.supported_xcr0 = kvm_host.xcr0 &KVM_SUPPORTED_XCR0 ; } + kvm_caps.supported_quirks =KVM_X86_VALID_QUIRKS ; + kvm_caps.inapplicable_quirks =KVM_X86_CONDITIONAL_QUIRKS ;rdmsrl_safe (MSR_EFER , &kvm_host.efer);
@@ -9826,6 +9828,10 @@ int kvm_x86_vendor_init(struct kvm_x86_init_ops *ops)if (IS_ENABLED (CONFIG_KVM_SW_PROTECTED_VM ) && tdp_mmu_enabled) kvm_caps.supported_vm_types |=BIT (KVM_X86_SW_PROTECTED_VM ); +/* KVM always ignores guest PAT for shadow paging. */ +if (!tdp_enabled) + kvm_caps.supported_quirks &= ~KVM_X86_QUIRK_IGNORE_GUEST_PAT ; +if (!kvm_cpu_cap_has (X86_FEATURE_XSAVES )) kvm_caps.supported_xss =0 ;
@@ -12383,7 +12389,11 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu)kvm_async_pf_hash_reset (vcpu); - vcpu->arch.perf_capabilities = kvm_caps.supported_perf_cap; +if (kvm_check_has_quirk (vcpu->kvm,KVM_X86_QUIRK_STUFF_FEATURE_MSRS )) { + vcpu->arch.arch_capabilities =kvm_get_arch_capabilities (); + vcpu->arch.msr_platform_info =MSR_PLATFORM_INFO_CPUID_FAULT ; + vcpu->arch.perf_capabilities = kvm_caps.supported_perf_cap; + }kvm_pmu_init (vcpu); vcpu->arch.pending_external_vector =-1 ;
@@ -12397,8 +12407,6 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu)if (r) goto free_guest_fpu; - vcpu->arch.arch_capabilities =kvm_get_arch_capabilities (); - vcpu->arch.msr_platform_info =MSR_PLATFORM_INFO_CPUID_FAULT ;kvm_xen_init_vcpu (vcpu);vcpu_load (vcpu);kvm_set_tsc_khz (vcpu, vcpu->kvm->arch.default_tsc_khz);
@@ -12778,6 +12786,7 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)/* Decided by the vendor code for other VM types. */ kvm->arch.pre_fault_allowed = type ==KVM_X86_DEFAULT_VM || type ==KVM_X86_SW_PROTECTED_VM ; + kvm->arch.disabled_quirks = kvm_caps.inapplicable_quirks & kvm_caps.supported_quirks; ret =kvm_page_track_init (kvm);if (ret)
@@ -13596,7 +13605,7 @@ static void kvm_noncoherent_dma_assignment_start_or_stop(struct kvm *kvm)* (or last) non-coherent device is (un)registered to so that new SPTEs * with the correct "ignore guest PAT" setting are created. */ -if (kvm_mmu_may_ignore_guest_pat ()) +if (kvm_mmu_may_ignore_guest_pat (kvm))kvm_zap_gfn_range (kvm,gpa_to_gfn (0 ),gpa_to_gfn (~0ULL )); }
arch/x86/kvm/x86.h +3 -0
@@ -32,6 +32,9 @@ struct kvm_caps {u64 supported_xcr0;u64 supported_xss;u64 supported_perf_cap; + +u64 supported_quirks; +u64 inapplicable_quirks; };struct kvm_host_values {
block/blk-cgroup.c +0 -6
@@ -110,12 +110,6 @@ static struct cgroup_subsys_state *blkcg_css(void)return task_css (current, io_cgrp_id); } -static bool blkcg_policy_enabled (struct request_queue *q, -const struct blkcg_policy *pol) -{ -return pol &&test_bit (pol->plid, q->blkcg_pols); -} -static void blkg_free_workfn (struct work_struct *work) { struct blkcg_gq *blkg = container_of(work, struct blkcg_gq,
block/blk-cgroup.h +6 -0
@@ -455,6 +455,12 @@ static inline bool blk_cgroup_mergeable(struct request *rq, struct bio *bio) bio_issue_as_root_blkg(rq->bio) == bio_issue_as_root_blkg(bio); } +static inline bool blkcg_policy_enabled (struct request_queue *q, +const struct blkcg_policy *pol) +{ +return pol &&test_bit (pol->plid, q->blkcg_pols); +} +void blk_cgroup_bio_start (struct bio *bio);void blkcg_add_delay (struct blkcg_gq *blkg,u64 now,u64 delta);#else /* CONFIG_BLK_CGROUP */
block/blk-throttle.c +1 -5
@@ -1209,17 +1209,13 @@ static int blk_throtl_init(struct gendisk *disk)INIT_WORK (&td->dispatch_work, blk_throtl_dispatch_work_fn);throtl_service_queue_init (&td->service_queue); -/* -* Freeze queue before activating policy, to synchronize with IO path, -* which is protected by 'q_usage_counter'. -*/ blk_mq_freeze_queue (disk->queue);blk_mq_quiesce_queue (disk->queue); q->td = td; td->queue = q; -/* activate policy */ +/* activate policy, blk_throtl_activated() will return true */ ret =blkcg_activate_policy (disk, &blkcg_policy_throtl);if (ret) { q->td =NULL ;
block/blk-throttle.h +11 -7
@@ -154,7 +154,13 @@ void blk_throtl_cancel_bios(struct gendisk *disk);static inline bool blk_throtl_activated (struct request_queue *q) { -return q->td !=NULL ; +/* +* q->td guarantees that the blk-throttle module is already loaded, +* and the plid of blk-throttle is assigned. +* blkcg_policy_enabled() guarantees that the policy is activated +* in the request_queue. +*/ +return q->td !=NULL &&blkcg_policy_enabled (q, &blkcg_policy_throtl); }static inline bool blk_should_throtl (struct bio *bio)
@@ -162,11 +168,6 @@ static inline bool blk_should_throtl(struct bio *bio)struct throtl_grp *tg;int rw =bio_data_dir (bio); -/* -* This is called under bio_queue_enter(), and it's synchronized with -* the activation of blk-throtl, which is protected by -* blk_mq_freeze_queue(). -*/ if (!blk_throtl_activated (bio->bi_bdev->bd_queue))return false;
@@ -192,7 +193,10 @@ static inline bool blk_should_throtl(struct bio *bio)static inline bool blk_throtl_bio (struct bio *bio) { - +/* +* block throttling takes effect if the policy is activated +* in the bio's request_queue. +*/ if (!blk_should_throtl (bio))return false;
drivers/acpi/acpi_processor.c +8 -7
@@ -113,6 +113,10 @@ static int acpi_processor_errata_piix4(struct pci_dev *dev) PCI_ANY_ID, PCI_ANY_ID, NULL);if (ide_dev) { errata.piix4.bmisx =pci_resource_start (ide_dev,4 ); +if (errata.piix4.bmisx) +dev_dbg (&ide_dev->dev, +"Bus master activity detection (BM-IDE) erratum enabled\n" ); +pci_dev_put (ide_dev); }
@@ -131,20 +135,17 @@ static int acpi_processor_errata_piix4(struct pci_dev *dev)if (isa_dev) {pci_read_config_byte (isa_dev,0x76 , &value1);pci_read_config_byte (isa_dev,0x77 , &value2); -if ((value1 &0x80 ) || (value2 &0x80 )) +if ((value1 &0x80 ) || (value2 &0x80 )) { errata.piix4.fdma =1 ; +dev_dbg (&isa_dev->dev, +"Type-F DMA livelock erratum (C3 disabled)\n" ); + }pci_dev_put (isa_dev); }break ; } -if (ide_dev) -dev_dbg (&ide_dev->dev,"Bus master activity detection (BM-IDE) erratum enabled\n" ); - -if (isa_dev) -dev_dbg (&isa_dev->dev,"Type-F DMA livelock erratum (C3 disabled)\n" ); -return 0 ; }
drivers/acpi/osi.c +13 -0
@@ -389,6 +389,19 @@ static const struct dmi_system_id acpi_osi_dmi_table[] __initconst = { }, }, +/* +* The screen backlight turns off during udev device creation +* when returning true for _OSI("Windows 2009") +*/ + { + .callback = dmi_disable_osi_win7, + .ident = "Acer Aspire One D255", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "AOD255"), + }, + }, + /* * The wireless hotkey does not work on those machines when * returning true for _OSI("Windows 2012")
drivers/acpi/osl.c +1 -1
@@ -1649,7 +1649,7 @@ acpi_status __init acpi_os_initialize(void)* Use acpi_os_map_generic_address to pre-map the reset * register if it's in system memory. */ -void *rv; +void __iomem *rv; rv =acpi_os_map_generic_address (&acpi_gbl_FADT.reset_register); pr_debug("%s: Reset register mapping %s\n", __func__,
drivers/acpi/sleep.c +8 -0
@@ -386,6 +386,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] __initconst = { DMI_MATCH(DMI_PRODUCT_NAME, "80E1"), }, }, + { + .callback = init_nvs_save_s3, + .ident = "Lenovo G70-35", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "80Q5"), + }, + },/* * ThinkPad X1 Tablet(2016) cannot do suspend-to-idle using * the Low Power S0 Idle firmware interface (see
drivers/ata/libata-core.c +5 -0
@@ -4101,7 +4101,11 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = { {"ST3320[68]13AS" ,"SD1[5-9]" ,ATA_QUIRK_NONCQ | ATA_QUIRK_FIRMWARE_WARN }, +/* ADATA devices with LPM issues. */ + { "ADATA SU680", NULL, ATA_QUIRK_NOLPM }, +/* Seagate disks with LPM issues */ + { "ST1000DM010-2EP102", NULL, ATA_QUIRK_NOLPM }, { "ST2000DM008-2FR102", NULL, ATA_QUIRK_NOLPM },/* drives which fail FPDMA_AA activation (some may freeze afterwards)
@@ -4144,6 +4148,7 @@ static const struct ata_dev_quirks_entry __ata_dev_quirks[] = {/* Devices that do not need bridging limits applied */ { "MTRON MSP-SATA*", NULL, ATA_QUIRK_BRIDGE_OK }, { "BUFFALO HD-QSU2/R5", NULL, ATA_QUIRK_BRIDGE_OK }, + { "QEMU HARDDISK", "2.5+", ATA_QUIRK_BRIDGE_OK },/* Devices which aren't very happy with higher link speeds */ { "WD My Book", NULL, ATA_QUIRK_1_5_GBPS },
drivers/ata/libata-scsi.c +48 -35
235 lines not on this page · raw message
drivers/base/power/runtime.c +1 -0
@@ -1856,6 +1856,7 @@ void pm_runtime_reinit(struct device *dev)void pm_runtime_remove (struct device *dev) {__pm_runtime_disable (dev, false); +flush_work (&dev->power.work);pm_runtime_reinit (dev); }
drivers/base/property.c +13 -14
@@ -759,7 +759,18 @@ struct fwnode_handle * fwnode_get_next_child_node(const struct fwnode_handle *fwnode, struct fwnode_handle *child) { - return fwnode_call_ptr_op(fwnode, get_next_child_node, child); + struct fwnode_handle *next; + +if (IS_ERR_OR_NULL (fwnode)) +return NULL ; + +/* Try to find a child in primary fwnode */ + next =fwnode_call_ptr_op (fwnode, get_next_child_node, child); +if (next) +return next; + +/* When no more children in primary, continue with secondary */ +return fwnode_call_ptr_op (fwnode->secondary, get_next_child_node, child); }EXPORT_SYMBOL_GPL (fwnode_get_next_child_node);
@@ -803,19 +814,7 @@ EXPORT_SYMBOL_GPL(fwnode_get_next_available_child_node);struct fwnode_handle *device_get_next_child_node (const struct device *dev,struct fwnode_handle *child) { -const struct fwnode_handle *fwnode =dev_fwnode (dev); -struct fwnode_handle *next; - -if (IS_ERR_OR_NULL (fwnode)) -return NULL ; - -/* Try to find a child in primary fwnode */ - next =fwnode_get_next_child_node (fwnode, child); -if (next) -return next; - -/* When no more children in primary, continue with secondary */ -return fwnode_get_next_child_node (fwnode->secondary, child); +return fwnode_get_next_child_node (dev_fwnode (dev), child); }EXPORT_SYMBOL_GPL (device_get_next_child_node);
drivers/bluetooth/btqca.c +2 -0
@@ -804,6 +804,8 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,*/ if (soc_type ==QCA_WCN3988 ) rom_ver = ((soc_ver &0x00000f00 ) >>0x05 ) | (soc_ver &0x0000000f ); +else if (soc_type ==QCA_WCN3998 ) + rom_ver = ((soc_ver &0x0000f000 ) >>0x07 ) | (soc_ver &0x0000000f );else rom_ver = ((soc_ver &0x00000f00 ) >>0x04 ) | (soc_ver &0x0000000f );
drivers/cache/ax45mp_cache.c +2 -2
@@ -178,11 +178,11 @@ static const struct of_device_id ax45mp_cache_ids[] = {static int __init ax45mp_cache_init (void ) { -struct device_node *np;struct resource res;int ret; - np =of_find_matching_node (NULL , ax45mp_cache_ids); + struct device_node *np __free(device_node) = +of_find_matching_node (NULL , ax45mp_cache_ids);if (!of_device_is_available (np))return -ENODEV ;
drivers/cache/starfive_starlink_cache.c +2 -2
@@ -102,11 +102,11 @@ static const struct of_device_id starlink_cache_ids[] = {static int __init starlink_cache_init (void ) { -struct device_node *np;u32 block_size;int ret; - np =of_find_matching_node (NULL , starlink_cache_ids); + struct device_node *np __free(device_node) = +of_find_matching_node (NULL , starlink_cache_ids);if (!of_device_is_available (np))return -ENODEV ;
drivers/cpuidle/cpuidle.c +0 -10
@@ -353,16 +353,6 @@ noinstr int cpuidle_enter_state(struct cpuidle_device *dev,int cpuidle_select (struct cpuidle_driver *drv,struct cpuidle_device *dev,bool *stop_tick) { -/* -* If there is only a single idle state (or none), there is nothing -* meaningful for the governor to choose. Skip the governor and -* always use state 0 with the tick running. -*/ -if (drv->state_count <=1 ) { - *stop_tick = false; -return 0 ; - } -return cpuidle_curr_governor->select (drv, dev, stop_tick); }
drivers/crypto/atmel-sha204a.c +3 -2
@@ -52,9 +52,10 @@ static int atmel_sha204a_rng_read_nonblocking(struct hwrng *rng, void *data, rng->priv =0 ; }else { work_data =kmalloc (sizeof (*work_data),GFP_ATOMIC ); -if (!work_data) +if (!work_data) { +atomic_dec (&i2c_priv->tfm_count);return -ENOMEM ; - + } work_data->ctx = i2c_priv; work_data->client = i2c_priv->client;
drivers/dma/mmp_pdma.c +6 -0
@@ -763,6 +763,7 @@ static unsigned int mmp_pdma_residue(struct mmp_pdma_chan *chan, {struct mmp_pdma_desc_sw *sw;u32 curr, residue =0 ; +unsigned long flags;bool passed = false;bool cyclic = chan->cyclic_first !=NULL ;
@@ -778,6 +779,8 @@ static unsigned int mmp_pdma_residue(struct mmp_pdma_chan *chan,else curr =readl (chan->phy->base +DSADR (chan->phy->idx)); +spin_lock_irqsave (&chan->desc_lock, flags); +list_for_each_entry (sw, &chan->chain_running, node) {u32 start, end, len;
@@ -821,6 +824,7 @@ static unsigned int mmp_pdma_residue(struct mmp_pdma_chan *chan,continue ;if (sw->async_tx.cookie == cookie) { +spin_unlock_irqrestore (&chan->desc_lock, flags);return residue; }else { residue =0 ;
@@ -828,6 +832,8 @@ static unsigned int mmp_pdma_residue(struct mmp_pdma_chan *chan, } } +spin_unlock_irqrestore (&chan->desc_lock, flags); +/* We should only get here in case of cyclic transactions */ return residue; }
drivers/firewire/net.c +3 -2
@@ -257,9 +257,10 @@ static void fwnet_header_cache_update(struct hh_cache *hh,memcpy ((u8 *)hh->hh_data +HH_DATA_OFF (FWNET_HLEN ), haddr, net->addr_len); } -static int fwnet_header_parse (const struct sk_buff *skb,unsigned char *haddr) +static int fwnet_header_parse (const struct sk_buff *skb,const struct net_device *dev, +unsigned char *haddr) { -memcpy (haddr, skb->dev->dev_addr,FWNET_ALEN ); +memcpy (haddr, dev->dev_addr,FWNET_ALEN );return FWNET_ALEN ; }
drivers/firmware/arm_ffa/driver.c +4 -4
@@ -206,12 +206,12 @@ static int ffa_rxtx_map(phys_addr_t tx_buf, phys_addr_t rx_buf, u32 pg_cnt)return 0 ; } -static int ffa_rxtx_unmap (u16 vm_id) +static int ffa_rxtx_unmap (void ) {ffa_value_t ret;invoke_ffa_fn ((ffa_value_t ){ - .a0 =FFA_RXTX_UNMAP , .a1 =PACK_TARGET_INFO (vm_id,0 ), + .a0 =FFA_RXTX_UNMAP , }, &ret);if (ret.a0 ==FFA_ERROR )
@@ -1832,7 +1832,7 @@ static int __init ffa_init(void) cleanup_notifs:ffa_notifications_cleanup (); -ffa_rxtx_unmap (drv_info->vm_id); +ffa_rxtx_unmap (); free_pages:if (drv_info->tx_buffer)free_pages_exact (drv_info->tx_buffer, rxtx_bufsz);
@@ -1847,7 +1847,7 @@ static void __exit ffa_exit(void) {ffa_notifications_cleanup ();ffa_partitions_cleanup (); -ffa_rxtx_unmap (drv_info->vm_id); +ffa_rxtx_unmap ();free_pages_exact (drv_info->tx_buffer, drv_info->rxtx_bufsz);free_pages_exact (drv_info->rx_buffer, drv_info->rxtx_bufsz);kfree (drv_info);
drivers/firmware/arm_scpi.c +3 -2
@@ -18,6 +18,7 @@#include <linux/bitmap.h> #include <linux/bitfield.h> +#include <linux/cleanup.h> #include <linux/device.h> #include <linux/err.h> #include <linux/export.h>
@@ -940,13 +941,13 @@ static int scpi_probe(struct platform_device *pdev)int idx = scpi_drvinfo->num_chans;struct scpi_chan *pchan = scpi_drvinfo->channels + idx;struct mbox_client *cl = &pchan->cl; -struct device_node *shmem =of_parse_phandle (np,"shmem" , idx); + struct device_node *shmem __free(device_node) = +of_parse_phandle (np,"shmem" , idx);if (!of_match_node (shmem_of_match, shmem))return -ENXIO ; ret =of_address_to_resource (shmem,0 , &res); -of_node_put (shmem);if (ret) {dev_err (dev,"failed to get SCPI payload mem resource\n" );return ret;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +5 -1
@@ -1403,7 +1403,10 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info, *process_info = info; } - vm->process_info = *process_info; +if (cmpxchg (&vm->process_info,NULL , *process_info) !=NULL ) { + ret = -EINVAL ; + goto already_acquired; + }/* Validate page directory and attach eviction fence */ ret =amdgpu_bo_reserve (vm->root.bo, true);
@@ -1443,6 +1446,7 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info,amdgpu_bo_unreserve (vm->root.bo); reserve_pd_fail: vm->process_info =NULL ; +already_acquired:if (info) {dma_fence_put (&info->eviction_fence->base); *process_info =NULL ;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3 -1
@@ -2570,8 +2570,10 @@ static int amdgpu_device_ip_early_init(struct amdgpu_device *adev)break ;default : r =amdgpu_discovery_set_ip_blocks (adev); -if (r) +if (r) { + adev->num_ip_blocks =0 ;return r; + }break ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +1 -1
@@ -82,7 +82,7 @@ void amdgpu_driver_unload_kms(struct drm_device *dev) {struct amdgpu_device *adev =drm_to_adev (dev); -if (adev ==NULL ) +if (adev ==NULL || !adev->num_ip_blocks)return ;amdgpu_unregister_gpu_instance (adev);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +18 -2
@@ -1362,15 +1362,31 @@ int amdgpu_ras_eeprom_init(struct amdgpu_ras_eeprom_control *control)__decode_table_header_from_buf (hdr, buf); -if (hdr->version ==RAS_TABLE_VER_V2_1 ) { +switch (hdr->version) { +case RAS_TABLE_VER_V2_1 : control->ras_num_recs =RAS_NUM_RECS_V2_1 (hdr); control->ras_record_offset =RAS_RECORD_START_V2_1 ; control->ras_max_record_count =RAS_MAX_RECORD_COUNT_V2_1 ; - }else { +break ; +case RAS_TABLE_VER_V1 : control->ras_num_recs =RAS_NUM_RECS (hdr); control->ras_record_offset =RAS_RECORD_START ; control->ras_max_record_count =RAS_MAX_RECORD_COUNT ; +break ; +default : +dev_err (adev->dev, +"RAS header invalid, unsupported version: %u" , + hdr->version); +return -EINVAL ; } + +if (control->ras_num_recs > control->ras_max_record_count) { +dev_err (adev->dev, +"RAS header invalid, records in header: %u max allowed :%u" , + control->ras_num_recs, control->ras_max_record_count); +return -EINVAL ; + } + control->ras_fri =RAS_OFFSET_TO_INDEX (control, hdr->first_rec_offset);if (hdr->header ==RAS_TABLE_HDR_VAL ) {
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +14 -7
@@ -688,28 +688,35 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev, }else {switch (amdgpu_ip_version (adev,MMHUB_HWIP ,0 )) {case IP_VERSION (9 ,0 ,0 ): - mmhub_cid = mmhub_client_ids_vega10[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_vega10) ? + mmhub_client_ids_vega10[cid][rw] :NULL ;break ;case IP_VERSION (9 ,3 ,0 ): - mmhub_cid = mmhub_client_ids_vega12[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_vega12) ? + mmhub_client_ids_vega12[cid][rw] :NULL ;break ;case IP_VERSION (9 ,4 ,0 ): - mmhub_cid = mmhub_client_ids_vega20[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_vega20) ? + mmhub_client_ids_vega20[cid][rw] :NULL ;break ;case IP_VERSION (9 ,4 ,1 ): - mmhub_cid = mmhub_client_ids_arcturus[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_arcturus) ? + mmhub_client_ids_arcturus[cid][rw] :NULL ;break ;case IP_VERSION (9 ,1 ,0 ):case IP_VERSION (9 ,2 ,0 ): - mmhub_cid = mmhub_client_ids_raven[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_raven) ? + mmhub_client_ids_raven[cid][rw] :NULL ;break ;case IP_VERSION (1 ,5 ,0 ):case IP_VERSION (2 ,4 ,0 ): - mmhub_cid = mmhub_client_ids_renoir[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_renoir) ? + mmhub_client_ids_renoir[cid][rw] :NULL ;break ;case IP_VERSION (1 ,8 ,0 ):case IP_VERSION (9 ,4 ,2 ): - mmhub_cid = mmhub_client_ids_aldebaran[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_aldebaran) ? + mmhub_client_ids_aldebaran[cid][rw] :NULL ;break ;default : mmhub_cid =NULL ;
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +0 -5
@@ -677,11 +677,6 @@ static int mes_v11_0_set_hw_resources(struct amdgpu_mes *mes) mes_set_hw_res_pkt.enable_reg_active_poll =1 ; mes_set_hw_res_pkt.enable_level_process_quantum_check =1 ; mes_set_hw_res_pkt.oversubscription_timer =50 ; -if ((mes->adev->mes.sched_version &AMDGPU_MES_VERSION_MASK ) >=0x7f ) - mes_set_hw_res_pkt.enable_lr_compute_wa =1 ; -else -dev_info_once (mes->adev->dev, -"MES FW version must be >= 0x7f to enable LR compute workaround.\n" );if (amdgpu_mes_log_enable) { mes_set_hw_res_pkt.enable_mes_event_int_logging =1 ;
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +0 -5
@@ -615,11 +615,6 @@ static int mes_v12_0_set_hw_resources(struct amdgpu_mes *mes, int pipe) mes_set_hw_res_pkt.use_different_vmid_compute =1 ; mes_set_hw_res_pkt.enable_reg_active_poll =1 ; mes_set_hw_res_pkt.enable_level_process_quantum_check =1 ; -if ((mes->adev->mes.sched_version &AMDGPU_MES_VERSION_MASK ) >=0x82 ) - mes_set_hw_res_pkt.enable_lr_compute_wa =1 ; -else -dev_info_once (adev->dev, -"MES FW version must be >= 0x82 to enable LR compute workaround.\n" );/* * Keep oversubscribe timer for sdma . When we have unmapped doorbell
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c +6 -3
@@ -154,14 +154,17 @@ mmhub_v2_0_print_l2_protection_fault_status(struct amdgpu_device *adev,switch (amdgpu_ip_version (adev,MMHUB_HWIP ,0 )) {case IP_VERSION (2 ,0 ,0 ):case IP_VERSION (2 ,0 ,2 ): - mmhub_cid = mmhub_client_ids_navi1x[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_navi1x) ? + mmhub_client_ids_navi1x[cid][rw] :NULL ;break ;case IP_VERSION (2 ,1 ,0 ):case IP_VERSION (2 ,1 ,1 ): - mmhub_cid = mmhub_client_ids_sienna_cichlid[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_sienna_cichlid) ? + mmhub_client_ids_sienna_cichlid[cid][rw] :NULL ;break ;case IP_VERSION (2 ,1 ,2 ): - mmhub_cid = mmhub_client_ids_beige_goby[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_beige_goby) ? + mmhub_client_ids_beige_goby[cid][rw] :NULL ;break ;default : mmhub_cid =NULL ;
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c +2 -1
@@ -94,7 +94,8 @@ mmhub_v2_3_print_l2_protection_fault_status(struct amdgpu_device *adev,case IP_VERSION (2 ,3 ,0 ):case IP_VERSION (2 ,4 ,0 ):case IP_VERSION (2 ,4 ,1 ): - mmhub_cid = mmhub_client_ids_vangogh[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_vangogh) ? + mmhub_client_ids_vangogh[cid][rw] :NULL ;break ;default : mmhub_cid =NULL ;
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c +2 -1
@@ -110,7 +110,8 @@ mmhub_v3_0_print_l2_protection_fault_status(struct amdgpu_device *adev,switch (amdgpu_ip_version (adev,MMHUB_HWIP ,0 )) {case IP_VERSION (3 ,0 ,0 ):case IP_VERSION (3 ,0 ,1 ): - mmhub_cid = mmhub_client_ids_v3_0_0[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_v3_0_0) ? + mmhub_client_ids_v3_0_0[cid][rw] :NULL ;break ;default : mmhub_cid =NULL ;
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_1.c +2 -1
@@ -117,7 +117,8 @@ mmhub_v3_0_1_print_l2_protection_fault_status(struct amdgpu_device *adev,switch (amdgpu_ip_version (adev,MMHUB_HWIP ,0 )) {case IP_VERSION (3 ,0 ,1 ): - mmhub_cid = mmhub_client_ids_v3_0_1[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_v3_0_1) ? + mmhub_client_ids_v3_0_1[cid][rw] :NULL ;break ;default : mmhub_cid =NULL ;
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c +2 -1
@@ -108,7 +108,8 @@ mmhub_v3_0_2_print_l2_protection_fault_status(struct amdgpu_device *adev,"MMVM_L2_PROTECTION_FAULT_STATUS:0x%08X\n" , status); - mmhub_cid = mmhub_client_ids_v3_0_2[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_v3_0_2) ? + mmhub_client_ids_v3_0_2[cid][rw] :NULL ;dev_err (adev->dev,"\t Faulty UTCL2 client ID: %s (0x%x)\n" , mmhub_cid ? mmhub_cid :"unknown" , cid); dev_err(adev->dev, "\t MORE_FAULTS: 0x%lx\n",
drivers/gpu/drm/amd/amdgpu/mmhub_v4_1_0.c +2 -1
@@ -102,7 +102,8 @@ mmhub_v4_1_0_print_l2_protection_fault_status(struct amdgpu_device *adev, status);switch (amdgpu_ip_version (adev,MMHUB_HWIP ,0 )) {case IP_VERSION (4 ,1 ,0 ): - mmhub_cid = mmhub_client_ids_v4_1_0[cid][rw]; + mmhub_cid = cid <ARRAY_SIZE (mmhub_client_ids_v4_1_0) ? + mmhub_client_ids_v4_1_0[cid][rw] :NULL ;break ;default : mmhub_cid =NULL ;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c +4 -0
@@ -166,6 +166,10 @@ static int vcn_v5_0_0_sw_init(void *handle) fw_shared->present_flag_0 =cpu_to_le32 (AMDGPU_FW_SHARED_FLAG_0_UNIFIED_QUEUE ); fw_shared->sq.is_enabled =1 ; + fw_shared->present_flag_0 |=cpu_to_le32 (AMDGPU_VCN_SMU_DPM_INTERFACE_FLAG ); + fw_shared->smu_dpm_interface.smu_interface_type = (adev->flags &AMD_IS_APU ) ? +AMDGPU_VCN_SMU_DPM_INTERFACE_APU :AMDGPU_VCN_SMU_DPM_INTERFACE_DGPU ; +if (amdgpu_vcnfw_log)amdgpu_vcn_fwlog_init (&adev->vcn.inst[i]); }
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +1 -0
@@ -600,6 +600,7 @@ int pqm_update_queue_properties(struct process_queue_manager *pqm, p->queue_size)) {pr_debug ("ring buf 0x%llx size 0x%llx not mapped on GPU\n" , p->queue_address, p->queue_size); +amdgpu_bo_unreserve (vm->root.bo);return -EFAULT ; }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +2 -2
@@ -12318,7 +12318,7 @@ static void parse_edid_displayid_vrr(struct drm_connector *connector,u16 min_vfreq;u16 max_vfreq; -if (edid ==NULL || edid->extensions ==0 ) +if (!edid || !edid->extensions)return ;/* Find DisplayID extension */
@@ -12328,7 +12328,7 @@ static void parse_edid_displayid_vrr(struct drm_connector *connector,break ; } -if (edid_ext ==NULL ) +if (i == edid->extensions)return ;while (j <EDID_LENGTH ) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +1 -0
@@ -97,6 +97,7 @@ bool dm_pp_apply_display_requirements(const struct dm_pp_single_disp_config *dc_cfg = &pp_display_cfg->disp_configs[i]; adev->pm.pm_display_cfg.displays[i].controller_id = dc_cfg->pipe_idx +1 ; + adev->pm.pm_display_cfg.displays[i].pixel_clock = dc_cfg->pixel_clock; }amdgpu_dpm_display_configuration_change (adev, &adev->pm.pm_display_cfg);
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c +4 -4
@@ -255,6 +255,10 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *pBREAK_TO_DEBUGGER ();return NULL ; } +if (ctx->dce_version ==DCN_VERSION_2_01 ) { +dcn201_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg); +return &clk_mgr->base; + }if (ASICREV_IS_SIENNA_CICHLID_P (asic_id.hw_internal_rev)) {dcn3_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg);return &clk_mgr->base;
@@ -267,10 +271,6 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *pdcn3_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg);return &clk_mgr->base; } -if (ctx->dce_version ==DCN_VERSION_2_01 ) { -dcn201_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg); -return &clk_mgr->base; - }dcn20_clk_mgr_construct (ctx, clk_mgr, pp_smu, dccg);return &clk_mgr->base; }
drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/dce110_clk_mgr.c +1 -1
@@ -164,7 +164,7 @@ void dce110_fill_display_configs( stream->link->cur_link_settings.link_rate; cfg->link_settings.link_spread = stream->link->cur_link_settings.link_spread; - cfg->sym_clock = stream->phy_pix_clk; + cfg->pixel_clock = stream->phy_pix_clk;/* Round v_refresh*/ cfg->v_refresh = stream->timing.pix_clk_100hz *100 ; cfg->v_refresh /= stream->timing.h_total;
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +1 -1
@@ -167,7 +167,7 @@ struct dc_stream_state *dc_create_stream_for_sink(if (sink ==NULL )return NULL ; - stream =kzalloc (sizeof (struct dc_stream_state ),GFP_KERNEL ); + stream =kzalloc (sizeof (struct dc_stream_state ),GFP_ATOMIC );if (stream ==NULL ) goto alloc_fail;
drivers/gpu/drm/amd/display/dc/dm_services_types.h +1 -1
@@ -127,7 +127,7 @@ struct dm_pp_single_disp_config {uint32_t src_height;uint32_t src_width;uint32_t v_refresh; -uint32_t sym_clock;/* HDMI only */ +uint32_t pixel_clock;/* Pixel clock in KHz (for HDMI only: normalized) */ struct dc_link_settings link_settings;/* DP only */ };
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c +5 -1
@@ -65,7 +65,11 @@ static void dcn401_initialize_min_clocks(struct dc *dc)* audio corruption. Read current DISPCLK from DENTIST and request the same * freq to ensure that the timing is valid and unchanged. */ - clocks->dispclk_khz = dc->clk_mgr->funcs->get_dispclk_from_dentist (dc->clk_mgr); +if (dc->clk_mgr->funcs->get_dispclk_from_dentist) { + clocks->dispclk_khz = dc->clk_mgr->funcs->get_dispclk_from_dentist (dc->clk_mgr); + }else { + clocks->dispclk_khz = dc->clk_mgr->boot_snapshot.dispclk *1000 ; + } } clocks->ref_dtbclk_khz = dc->clk_mgr->bw_params->clk_table.entries[0 ].dtbclk_mhz *1000 ; clocks->fclk_p_state_change_support = true;
drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c +3 -0
@@ -1784,7 +1784,10 @@ static bool dml1_validate(struct dc *dc, struct dc_state *context, bool fast_val dc->res_pool->funcs->calculate_wm_and_dlg (dc, context, pipes, pipe_cnt, vlevel); +DC_FP_START ();dcn32_override_min_req_memclk (dc, context); +DC_FP_END (); +dcn32_override_min_req_dcfclk (dc, context);BW_VAL_TRACE_END_WATERMARKS ();
drivers/gpu/drm/amd/include/dm_pp_interface.h +1 -0
@@ -65,6 +65,7 @@ struct single_display_configuration {uint32_t view_resolution_cy;enum amd_pp_display_config_type displayconfigtype;uint32_t vertical_refresh;/* for active display */ +uint32_t pixel_clock;/* Pixel clock in KHz (for HDMI only: normalized) */ };#define MAX_NUM_DISPLAY 32
drivers/gpu/drm/amd/pm/amdgpu_dpm_internal.c +67 -0
70 lines not on this page · raw message
drivers/gpu/drm/amd/pm/inc/amdgpu_dpm_internal.h +2 -0
@@ -29,4 +29,6 @@ u32 amdgpu_dpm_get_vblank_time(struct amdgpu_device *adev);u32 amdgpu_dpm_get_vrefresh (struct amdgpu_device *adev); +void amdgpu_dpm_get_display_cfg (struct amdgpu_device *adev); +#endif
drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c +2 -2
@@ -2299,7 +2299,7 @@ static void kv_apply_state_adjust_rules(struct amdgpu_device *adev,if (pi->sys_info.nb_dpm_enable) { force_high = (mclk >= pi->sys_info.nbp_memory_clock[3 ]) || - pi->video_start || (adev->pm.dpm.new_active_crtc_count >=3 ) || + pi->video_start || (adev->pm.pm_display_cfg.num_display >=3 ) || pi->disable_nb_ps3_in_battery; ps->dpm0_pg_nb_ps_lo = force_high ?0x2 :0x3 ; ps->dpm0_pg_nb_ps_hi =0x2 ;
@@ -2358,7 +2358,7 @@ static int kv_calculate_nbps_level_settings(struct amdgpu_device *adev)return 0 ; force_high = ((mclk >= pi->sys_info.nbp_memory_clock[3 ]) || - (adev->pm.dpm.new_active_crtc_count >=3 ) || pi->video_start); + (adev->pm.pm_display_cfg.num_display >=3 ) || pi->video_start);if (force_high) {for (i = pi->lowest_valid; i <= pi->highest_valid; i++)
drivers/gpu/drm/amd/pm/legacy-dpm/legacy_dpm.c +3 -3
@@ -797,8 +797,7 @@ static struct amdgpu_ps *amdgpu_dpm_pick_power_state(struct amdgpu_device *adev,int i;struct amdgpu_ps *ps;u32 ui_class; -bool single_display = (adev->pm.dpm.new_active_crtc_count <2 ) ? - true : false; +bool single_display = adev->pm.pm_display_cfg.num_display <2 ;/* check if the vblank period is too short to adjust the mclk */ if (single_display && adev->powerplay.pp_funcs->vblank_too_short) {
@@ -994,7 +993,8 @@ void amdgpu_legacy_dpm_compute_clocks(void *handle) {struct amdgpu_device *adev = (struct amdgpu_device *)handle; -amdgpu_dpm_get_active_displays (adev); +if (!adev->dc_enabled) +amdgpu_dpm_get_display_cfg (adev);amdgpu_dpm_change_power_state_locked (adev); }
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +25 -44
162 lines not on this page · raw message
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c +1 -10
@@ -1569,16 +1569,7 @@ static void pp_pm_compute_clocks(void *handle)struct amdgpu_device *adev = hwmgr->adev;if (!adev->dc_enabled) { -amdgpu_dpm_get_active_displays (adev); - adev->pm.pm_display_cfg.num_display = adev->pm.dpm.new_active_crtc_count; - adev->pm.pm_display_cfg.vrefresh =amdgpu_dpm_get_vrefresh (adev); - adev->pm.pm_display_cfg.min_vblank_time =amdgpu_dpm_get_vblank_time (adev); -/* we have issues with mclk switching with -* refresh rates over 120 hz on the non-DC code. -*/ -if (adev->pm.pm_display_cfg.vrefresh >120 ) - adev->pm.pm_display_cfg.min_vblank_time =0 ; - +amdgpu_dpm_get_display_cfg (adev);pp_display_configuration_change (handle, &adev->pm.pm_display_cfg); }
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c +7 -1
@@ -2033,6 +2033,7 @@ static ssize_t smu_v13_0_0_get_gpu_metrics(struct smu_context *smu, (struct gpu_metrics_v1_3 *)smu_table->gpu_metrics_table;SmuMetricsExternal_t metrics_ext;SmuMetrics_t *metrics = &metrics_ext.SmuMetrics; +uint32_t mp1_ver =amdgpu_ip_version (smu->adev,MP1_HWIP ,0 );int ret =0 ; ret = smu_cmn_get_metrics_table(smu,
@@ -2057,7 +2058,12 @@ static ssize_t smu_v13_0_0_get_gpu_metrics(struct smu_context *smu, metrics->Vcn1ActivityPercentage); gpu_metrics->average_socket_power = metrics->AverageSocketPower; - gpu_metrics->energy_accumulator = metrics->EnergyAccumulator; + +if ((mp1_ver ==IP_VERSION (13 ,0 ,0 ) && smu->smc_fw_version <=0x004e1e00 ) || + (mp1_ver ==IP_VERSION (13 ,0 ,10 ) && smu->smc_fw_version <=0x00500800 )) + gpu_metrics->energy_accumulator = metrics->EnergyAccumulator; +else + gpu_metrics->energy_accumulator =UINT_MAX ;if (metrics->AverageGfxActivity <=SMU_13_0_0_BUSY_THRESHOLD ) gpu_metrics->average_gfxclk_frequency = metrics->AverageGfxclkFrequencyPostDs;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +2 -1
@@ -2043,7 +2043,8 @@ static ssize_t smu_v13_0_7_get_gpu_metrics(struct smu_context *smu, metrics->Vcn1ActivityPercentage); gpu_metrics->average_socket_power = metrics->AverageSocketPower; - gpu_metrics->energy_accumulator = metrics->EnergyAccumulator; + gpu_metrics->energy_accumulator = smu->smc_fw_version <=0x00521400 ? + metrics->EnergyAccumulator :UINT_MAX ;if (metrics->AverageGfxActivity <=SMU_13_0_7_BUSY_THRESHOLD ) gpu_metrics->average_gfxclk_frequency = metrics->AverageGfxclkFrequencyPostDs;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c +2 -1
@@ -2394,7 +2394,8 @@ static int smu_v14_0_2_restore_user_od_settings(struct smu_context *smu) user_od_table->OverDriveTable.FeatureCtrlMask =BIT (PP_OD_FEATURE_GFXCLK_BIT ) |BIT (PP_OD_FEATURE_UCLK_BIT ) |BIT (PP_OD_FEATURE_GFX_VF_CURVE_BIT ) | -BIT (PP_OD_FEATURE_FAN_CURVE_BIT ); +BIT (PP_OD_FEATURE_FAN_CURVE_BIT ) | +BIT (PP_OD_FEATURE_ZERO_FAN_BIT ); res =smu_v14_0_2_upload_overdrive_table (smu, user_od_table); user_od_table->OverDriveTable.FeatureCtrlMask =0 ;if (res ==0 )
drivers/gpu/drm/bridge/samsung-dsim.c +16 -9
@@ -1697,6 +1697,14 @@ static int samsung_dsim_register_te_irq(struct samsung_dsim *dsi, struct devicereturn 0 ; } +static void samsung_dsim_unregister_te_irq (struct samsung_dsim *dsi) +{ +if (dsi->te_gpio) { +free_irq (gpiod_to_irq (dsi->te_gpio), dsi); +gpiod_put (dsi->te_gpio); + } +} +static int samsung_dsim_host_attach (struct mipi_dsi_host *host,struct mipi_dsi_device *device) {
@@ -1771,13 +1779,13 @@ static int samsung_dsim_host_attach(struct mipi_dsi_host *host,if (!(device->mode_flags &MIPI_DSI_MODE_VIDEO )) { ret =samsung_dsim_register_te_irq (dsi, &device->dev);if (ret) -return ret; + goto err_remove_bridge; }if (pdata->host_ops && pdata->host_ops->attach) { ret = pdata->host_ops->attach (dsi, device);if (ret) -return ret; + goto err_unregister_te_irq; } dsi->lanes = device->lanes;
@@ -1785,14 +1793,13 @@ static int samsung_dsim_host_attach(struct mipi_dsi_host *host, dsi->mode_flags = device->mode_flags;return 0 ; -} -static void samsung_dsim_unregister_te_irq (struct samsung_dsim *dsi) -{ -if (dsi->te_gpio) { -free_irq (gpiod_to_irq (dsi->te_gpio), dsi); -gpiod_put (dsi->te_gpio); - } +err_unregister_te_irq: +if (!(device->mode_flags &MIPI_DSI_MODE_VIDEO )) +samsung_dsim_unregister_te_irq (dsi); +err_remove_bridge: +drm_bridge_remove (&dsi->bridge); +return ret; } static int samsung_dsim_host_detach(struct mipi_dsi_host *host,
drivers/gpu/drm/bridge/ti-sn65dsi83.c +7 -6
@@ -303,9 +303,9 @@ static u8 sn65dsi83_get_dsi_range(struct sn65dsi83 *ctx,* DSI_CLK = mode clock * bpp / dsi_data_lanes / 2 * the 2 is there because the bus is DDR. */ -return DIV_ROUND_UP (clamp ((unsigned int )mode->clock * -mipi_dsi_pixel_format_to_bpp (ctx->dsi->format) / - ctx->dsi->lanes /2 ,40000U ,500000U ),5000U ); +return clamp ((unsigned int )mode->clock * +mipi_dsi_pixel_format_to_bpp (ctx->dsi->format) / + ctx->dsi->lanes /2 ,40000U ,500000U ) /5000U ; }static u8 sn65dsi83_get_dsi_div (struct sn65dsi83 *ctx)
@@ -325,6 +325,7 @@ static void sn65dsi83_atomic_pre_enable(struct drm_bridge *bridge, struct drm_bridge_state *old_bridge_state) {struct sn65dsi83 *ctx =bridge_to_sn65dsi83 (bridge); +const unsigned int dual_factor = ctx->lvds_dual_link ?2 :1 ;struct drm_atomic_state *state = old_bridge_state->base.state;const struct drm_bridge_state *bridge_state;const struct drm_crtc_state *crtc_state;
@@ -452,18 +453,18 @@ static void sn65dsi83_atomic_pre_enable(struct drm_bridge *bridge,/* 32 + 1 pixel clock to ensure proper operation */ le16val =cpu_to_le16 (32 +1 );regmap_bulk_write (ctx->regmap,REG_VID_CHA_SYNC_DELAY_LOW , &le16val,2 ); - le16val =cpu_to_le16 (mode->hsync_end - mode->hsync_start); + le16val =cpu_to_le16 ((mode->hsync_end - mode->hsync_start) / dual_factor);regmap_bulk_write (ctx->regmap,REG_VID_CHA_HSYNC_PULSE_WIDTH_LOW , &le16val,2 ); le16val =cpu_to_le16 (mode->vsync_end - mode->vsync_start);regmap_bulk_write (ctx->regmap,REG_VID_CHA_VSYNC_PULSE_WIDTH_LOW , &le16val,2 );regmap_write (ctx->regmap,REG_VID_CHA_HORIZONTAL_BACK_PORCH , - mode->htotal - mode->hsync_end); + (mode->htotal - mode->hsync_end) / dual_factor);regmap_write (ctx->regmap,REG_VID_CHA_VERTICAL_BACK_PORCH , mode->vtotal - mode->vsync_end);regmap_write (ctx->regmap,REG_VID_CHA_HORIZONTAL_FRONT_PORCH , - mode->hsync_start - mode->hdisplay); + (mode->hsync_start - mode->hdisplay) / dual_factor);regmap_write (ctx->regmap,REG_VID_CHA_VERTICAL_FRONT_PORCH , mode->vsync_start - mode->vdisplay);regmap_write (ctx->regmap,REG_VID_CHA_TEST_PATTERN ,0x00 );
drivers/gpu/drm/bridge/ti-sn65dsi86.c +116 -2
204 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_psr.c +52 -19
71 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_vdsc.c +23 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_vdsc.h +3 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/display/intel_vdsc_regs.h +12 -0
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/gem/i915_gem_shmem.c +9 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/i915/gt/intel_engine_cs.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/imagination/pvr_power.c +10 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/adreno/a2xx_gpummu.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/msm/dsi/dsi_host.c +31 -12
43 lines not on this page · raw message
drivers/gpu/drm/nouveau/nouveau_connector.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/i3c/master/mipi-i3c-hci/cmd_v1.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/i3c/master/mipi-i3c-hci/cmd_v2.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +2 -0
Lines of this file are not shown. View the raw message.
drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/mmc/host/dw_mmc-rockchip.c +45 -6
51 lines not on this page · raw message
drivers/mtd/nand/raw/brcmnand/brcmnand.c +2 -4
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/cadence-nand-controller.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/mtd/nand/raw/pl35x-nand-controller.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/mtd/spi-nor/core.c +143 -2
145 lines not on this page · raw message
drivers/net/bonding/bond_main.c +53 -81
134 lines not on this page · raw message
drivers/net/dsa/realtek/rtl8366rb-leds.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amd/xgbe/xgbe-drv.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c +75 -7
82 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/genet/bcmgenet.c +12 -19
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/genet/bcmgenet.h +1 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/genet/bcmgenet_wol.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/genet/bcmmii.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cadence/macb_main.c +117 -7
124 lines not on this page · raw message
drivers/net/ethernet/cadence/macb_ptp.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/google/gve/gve_tx_dqo.c +24 -30
54 lines not on this page · raw message
drivers/net/ethernet/intel/e1000/e1000_main.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/e1000e/netdev.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/iavf/iavf_main.c +6 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_common.c +10 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool.c +14 -21
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_main.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_main.c +9 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_ptp.c +33 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbevf/vf.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_devlink.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_sdp.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/airoha_eth.c +27 -25
52 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c +22 -28
50 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/esw/qos.c +9 -14
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +27 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +13 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/hw_channel.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/mana_en.c +18 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/common.h +0 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +0 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +0 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac.h +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +0 -36
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +0 -8
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/libertas/main.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c +6 -3
Lines of this file are not shown. View the raw message.
drivers/scsi/hisi_sas/hisi_sas.h +32 -11
43 lines not on this page · raw message
drivers/scsi/hisi_sas/hisi_sas_main.c +29 -13
42 lines not on this page · raw message
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +154 -92
246 lines not on this page · raw message
drivers/soc/microchip/mpfs-sys-controller.c +9 -4
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +10 -5
Lines of this file are not shown. View the raw message.
drivers/staging/rtl8723bs/core/rtw_mlme.c +4 -1
Lines of this file are not shown. View the raw message.
drivers/usb/core/message.c +79 -21
100 lines not on this page · raw message
drivers/usb/gadget/function/f_mass_storage.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/usb/serial/f81232.c +47 -30
77 lines not on this page · raw message
drivers/usb/typec/altmodes/displayport.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/xen/privcmd.c +70 -3
73 lines not on this page · raw message
fs/f2fs/compress.c +37 -37
74 lines not on this page · raw message
fs/smb/client/misc.c +42 -0
42 lines not on this page · raw message
kernel/kprobes.c +26 -25
51 lines not on this page · raw message
kernel/sched/ext.c +74 -15
89 lines not on this page · raw message
kernel/sched/fair.c +57 -27
84 lines not on this page · raw message
kernel/trace/trace_events.c +42 -16
58 lines not on this page · raw message
mm/page_alloc.c +51 -8
59 lines not on this page · raw message
mm/shmem.c +80 -17
97 lines not on this page · raw message
net/bluetooth/l2cap_core.c +31 -20
51 lines not on this page · raw message
net/core/dev.c +97 -1
98 lines not on this page · raw message
net/core/xdp.c +56 -0
56 lines not on this page · raw message
net/dsa/dsa.c +34 -25
59 lines not on this page · raw message
net/mptcp/pm_netlink.c +55 -17
72 lines not on this page · raw message
net/netfilter/nf_conntrack_netlink.c +42 -25
67 lines not on this page · raw message
net/sched/act_gate.c +184 -78
262 lines not on this page · raw message
sound/soc/generic/simple-card-utils.c +18 -30
48 lines not on this page · raw message
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/hid/progs/hid_bpf_helpers.h +12 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/mptcp/mptcp_join.sh +43 -0
43 lines not on this page · 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.