Skip to contentSkip to conversation

Linux 6.12.25

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Apr 25, 2025 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.12.25 kernel.

All users of the 6.12 kernel series must upgrade.

The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/arch/arm64/booting.rst                             |   22 +
 Documentation/devicetree/bindings/soc/fsl/fsl,ls1028a-reset.yaml |    2 
 Documentation/netlink/specs/ovs_vport.yaml                       |    4 
 Documentation/netlink/specs/rt_link.yaml                         |   14 
 Documentation/wmi/devices/msi-wmi-platform.rst                   |    4 
 Makefile                                                         |    6 
 arch/arm64/include/asm/el2_setup.h                               |   25 +
 arch/arm64/tools/sysreg                                          |  104 ++++++
 arch/loongarch/kernel/acpi.c                                     |   12 
 arch/mips/dec/prom/init.c                                        |    2 
 arch/mips/include/asm/ds1287.h                                   |    2 
 arch/mips/kernel/cevt-ds1287.c                                   |    1 
 arch/riscv/include/asm/kgdb.h                                    |    9 
 arch/riscv/include/asm/syscall.h                                 |    7 
 arch/riscv/kernel/kgdb.c                                         |    6 
 arch/riscv/kernel/module-sections.c                              |   13 
 arch/riscv/kernel/module.c                                       |   11 
 arch/riscv/kernel/setup.c                                        |   36 ++
 arch/x86/boot/compressed/mem.c                                   |    5 
 arch/x86/boot/compressed/sev.c                                   |   67 ----
 arch/x86/boot/compressed/sev.h                                   |    2 
 arch/x86/events/intel/ds.c                                       |    8 
 arch/x86/events/intel/uncore_snbep.c                             |  107 ------
 arch/x86/kernel/cpu/amd.c                                        |   19 -
 arch/x86/kernel/cpu/microcode/amd.c                              |    9 
 arch/x86/xen/multicalls.c                                        |   26 -
 arch/x86/xen/smp_pv.c                                            |    1 
 arch/x86/xen/xen-ops.h                                           |    3 
 block/bio-integrity.c                                            |   17 -
 block/blk-core.c                                                 |    6 
 block/blk-merge.c                                                |    2 
 block/blk-mq-cpumap.c                                            |   37 ++
 block/blk-mq.c                                                   |   42 +-
 block/blk-mq.h                                                   |    2 
 block/blk-sysfs.c                                                |    2 
 drivers/ata/libata-sata.c                                        |   15 
 drivers/block/loop.c                                             |  121 +------
 drivers/block/null_blk/main.c                                    |    9 
 drivers/block/virtio_blk.c                                       |   13 
 drivers/bluetooth/btrtl.c                                        |    2 
 drivers/bluetooth/hci_vhci.c                                     |   10 
 drivers/cpufreq/cpufreq.c                                        |    8 
 drivers/crypto/caam/qi.c                                         |    6 
 drivers/crypto/tegra/tegra-se-aes.c                              |  131 ++++----
 drivers/crypto/tegra/tegra-se-hash.c                             |   38 +-
 drivers/crypto/tegra/tegra-se.h                                  |    2 
 drivers/dma-buf/sw_sync.c                                        |   19 -
 drivers/firmware/efi/libstub/efistub.h                           |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c                         |   34 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                       |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c                      |    2 
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c                          |   44 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c                       |    4 
 drivers/gpu/drm/amd/amdgpu/mes_v11_0.c                           |    4 
 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c                           |   21 -
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c                |   64 +++-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c           |    6 
 drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c        |   17 -
 drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c               |    9 
 drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c          |    6 
 drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c        |    7 
 drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c   |    2 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c            |    4 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c          |    4 
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c          |    2 
 drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c                |    3 
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c                   |    2 
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c                   |    2 
 drivers/gpu/drm/ast/ast_dp.c                                     |    6 
 drivers/gpu/drm/i915/display/intel_display.c                     |    4 
 drivers/gpu/drm/i915/gvt/opregion.c                              |    7 
 drivers/gpu/drm/imagination/pvr_fw.c                             |   27 +
 drivers/gpu/drm/imagination/pvr_job.c                            |    7 
 drivers/gpu/drm/imagination/pvr_queue.c                          |    4 
 drivers/gpu/drm/mgag200/mgag200_mode.c                           |    2 
 drivers/gpu/drm/msm/adreno/a6xx_gmu.c                            |   72 ++--
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c                            |    8 
 drivers/gpu/drm/msm/dsi/dsi_host.c                               |    9 
 drivers/gpu/drm/msm/registers/adreno/adreno_pm4.xml              |    7 
 drivers/gpu/drm/nouveau/nouveau_bo.c                             |    3 
 drivers/gpu/drm/nouveau/nouveau_gem.c                            |    3 
 drivers/gpu/drm/sti/Makefile                                     |    2 
 drivers/gpu/drm/tiny/repaper.c                                   |    4 
 drivers/gpu/drm/v3d/v3d_sched.c                                  |   16 -
 drivers/gpu/drm/xe/xe_dma_buf.c                                  |    5 
 drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c                      |   12 
 drivers/gpu/drm/xe/xe_guc_ads.c                                  |   75 ++--
 drivers/gpu/drm/xe/xe_hmm.c                                      |   24 -
 drivers/gpu/drm/xe/xe_migrate.c                                  |    2 
 drivers/i2c/busses/i2c-cros-ec-tunnel.c                          |    3 
 drivers/i2c/i2c-atr.c                                            |    2 
 drivers/infiniband/core/cma.c                                    |    4 
 drivers/infiniband/core/umem_odp.c                               |    6 
 drivers/infiniband/hw/hns/hns_roce_main.c                        |    2 
 drivers/infiniband/hw/usnic/usnic_ib_main.c                      |   14 
 drivers/md/md-bitmap.c                                           |    5 
 drivers/md/md.c                                                  |   22 -
 drivers/md/raid10.c                                              |    1 
 drivers/misc/pci_endpoint_test.c                                 |    4 
 drivers/net/can/rockchip/rockchip_canfd-core.c                   |    7 
 drivers/net/dsa/b53/b53_common.c                                 |   10 
 drivers/net/dsa/mv88e6xxx/chip.c                                 |   13 
 drivers/net/dsa/mv88e6xxx/devlink.c                              |    3 
 drivers/net/ethernet/amd/pds_core/debugfs.c                      |    5 
 drivers/net/ethernet/broadcom/bnxt/bnxt.c                        |    4 
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c               |    1 
 drivers/net/ethernet/intel/igc/igc.h                             |    1 
 drivers/net/ethernet/intel/igc/igc_defines.h                     |    6 
 drivers/net/ethernet/intel/igc/igc_main.c                        |    1 
 drivers/net/ethernet/intel/igc/igc_ptp.c                         |  113 ++++---
 drivers/net/ethernet/mediatek/mtk_eth_soc.c                      |   49 +--
 drivers/net/ethernet/mediatek/mtk_eth_soc.h                      |    1 
 drivers/net/ethernet/ti/am65-cpsw-nuss.c                         |   15 
 drivers/net/ethernet/ti/icssg/icss_iep.c                         |  154 ++++++----
 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c                    |    3 
 drivers/net/ethernet/wangxun/txgbe/txgbe_main.c                  |    3 
 drivers/net/wireless/ath/ath12k/dp_mon.c                         |    4 
 drivers/net/wireless/atmel/at76c50x-usb.c                        |    2 
 drivers/net/wireless/ti/wl1251/tx.c                              |    4 
 drivers/nvme/host/apple.c                                        |    2 
 drivers/nvme/host/pci.c                                          |   15 
 drivers/nvme/target/fc.c                                         |   14 
 drivers/pci/pci.c                                                |    4 
 drivers/platform/x86/amd/pmf/auto-mode.c                         |    4 
 drivers/platform/x86/amd/pmf/cnqf.c                              |    8 
 drivers/platform/x86/amd/pmf/core.c                              |   14 
 drivers/platform/x86/amd/pmf/pmf.h                               |    1 
 drivers/platform/x86/amd/pmf/sps.c                               |   12 
 drivers/platform/x86/amd/pmf/tee-if.c                            |    6 
 drivers/platform/x86/asus-laptop.c                               |    9 
 drivers/platform/x86/msi-wmi-platform.c                          |   99 ++++--
 drivers/ptp/ptp_ocp.c                                            |    1 
 drivers/ras/amd/atl/internal.h                                   |    3 
 drivers/ras/amd/atl/umc.c                                        |   19 +
 drivers/ras/amd/fmpm.c                                           |    9 
 drivers/scsi/fnic/fnic_main.c                                    |    3 
 drivers/scsi/hisi_sas/hisi_sas.h                                 |    1 
 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c                           |    9 
 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c                           |   18 -
 drivers/scsi/megaraid/megaraid_sas_base.c                        |   12 
 drivers/scsi/megaraid/megaraid_sas_fusion.c                      |    5 
 drivers/scsi/mpi3mr/mpi3mr.h                                     |    1 
 drivers/scsi/mpi3mr/mpi3mr_os.c                                  |    2 
 drivers/scsi/mpt3sas/mpt3sas_scsih.c                             |    3 
 drivers/scsi/pm8001/pm8001_init.c                                |    2 
 drivers/scsi/pm8001/pm8001_sas.h                                 |    1 
 drivers/scsi/qla2xxx/qla_nvme.c                                  |    3 
 drivers/scsi/qla2xxx/qla_os.c                                    |    4 
 drivers/scsi/scsi_transport_iscsi.c                              |    7 
 drivers/scsi/smartpqi/smartpqi_init.c                            |   20 -
 drivers/ufs/host/ufs-exynos.c                                    |    6 
 fs/Kconfig                                                       |    1 
 fs/btrfs/super.c                                                 |    3 
 fs/fuse/virtio_fs.c                                              |    3 
 fs/hfs/bnode.c                                                   |    6 
 fs/hfsplus/bnode.c                                               |    6 
 fs/isofs/export.c                                                |    2 
 fs/nfs/Kconfig                                                   |    2 
 fs/nfs/internal.h                                                |    7 
 fs/nfs/nfs4session.h                                             |    4 
 fs/nfsd/Kconfig                                                  |    1 
 fs/nfsd/nfs4state.c                                              |    2 
 fs/nfsd/nfsfh.h                                                  |    7 
 fs/overlayfs/overlayfs.h                                         |    2 
 fs/overlayfs/super.c                                             |    5 
 fs/smb/client/cifsproto.h                                        |    2 
 fs/smb/client/connect.c                                          |   34 --
 fs/smb/client/file.c                                             |   28 +
 fs/smb/server/oplock.c                                           |   29 -
 fs/smb/server/oplock.h                                           |    1 
 fs/smb/server/smb2pdu.c                                          |    4 
 fs/smb/server/transport_ipc.c                                    |    7 
 fs/smb/server/vfs.c                                              |    3 
 include/linux/backing-dev.h                                      |    1 
 include/linux/blk-mq.h                                           |  101 +++---
 include/linux/blkdev.h                                           |   11 
 include/linux/bpf.h                                              |    1 
 include/linux/bpf_verifier.h                                     |    1 
 include/linux/device/bus.h                                       |    3 
 include/linux/nfs.h                                              |    7 
 io_uring/rw.c                                                    |    4 
 kernel/bpf/verifier.c                                            |   79 ++++-
 kernel/sched/cpufreq_schedutil.c                                 |   46 ++
 kernel/trace/ftrace.c                                            |    7 
 kernel/trace/trace_events_filter.c                               |    4 
 lib/string.c                                                     |   13 
 mm/compaction.c                                                  |    6 
 mm/filemap.c                                                     |    1 
 mm/gup.c                                                         |    4 
 mm/memory.c                                                      |    4 
 mm/slub.c                                                        |   10 
 mm/userfaultfd.c                                                 |   13 
 mm/vma.c                                                         |   38 ++
 mm/vma.h                                                         |    9 
 net/bluetooth/hci_event.c                                        |    5 
 net/bluetooth/l2cap_core.c                                       |   21 +
 net/bridge/br_vlan.c                                             |    4 
 net/dsa/dsa.c                                                    |   59 +++
 net/dsa/tag_8021q.c                                              |    2 
 net/ethtool/cmis_cdb.c                                           |    2 
 net/ipv6/route.c                                                 |    1 
 net/mac80211/iface.c                                             |    3 
 net/mctp/af_mctp.c                                               |    3 
 net/openvswitch/flow_netlink.c                                   |    3 
 net/smc/af_smc.c                                                 |    5 
 scripts/Makefile.compiler                                        |    4 
 scripts/generate_rust_analyzer.py                                |   12 
 sound/pci/hda/Kconfig                                            |    4 
 sound/pci/hda/patch_realtek.c                                    |   55 +++
 sound/soc/codecs/cs42l43-jack.c                                  |    3 
 sound/soc/codecs/lpass-wsa-macro.c                               |  117 +++++--
 sound/soc/dwc/dwc-i2s.c                                          |   13 
 sound/soc/fsl/fsl_qmc_audio.c                                    |    3 
 sound/soc/intel/avs/pcm.c                                        |    3 
 sound/soc/intel/boards/sof_sdw.c                                 |    1 
 sound/soc/qcom/lpass.h                                           |    3 
 tools/objtool/check.c                                            |    1 
 tools/testing/kunit/qemu_configs/sh.py                           |    4 
 tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c        |  107 ++++++
 tools/testing/selftests/bpf/progs/changes_pkt_data.c             |   39 ++
 tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c    |   18 +
 tools/testing/selftests/bpf/progs/raw_tp_null.c                  |   19 -
 tools/testing/selftests/bpf/progs/verifier_sock.c                |   56 +++
 tools/testing/selftests/mm/charge_reserved_hugetlb.sh            |    4 
 tools/testing/selftests/mm/hugetlb_reparenting_test.sh           |    2 
 tools/testing/shared/linux.c                                     |    4 
 226 files changed, 2243 insertions(+), 1187 deletions(-)

Abdun Nihaal (6):
wifi: at76c50x: fix use after free access in at76_disconnect
wifi: wl1251: fix memory leak in wl1251_tx_work
pds_core: fix memory leak in pdsc_debugfs_add_qcq()
net: ngbe: fix memory leak in ngbe_probe() error path
cxgb4: fix memory leak in cxgb4_init_ethtool_filters() error path
net: txgbe: fix memory leak in txgbe_probe() error path

Akhil P Oommen (1):
drm/msm/a6xx: Fix stale rpmh votes from GPU

Akhil R (2):
crypto: tegra - Do not use fixed size buffers
crypto: tegra - Fix IV usage for AES ECB

Alex Deucher (2):
drm/amdgpu/mes12: optimize MES pipe FW version fetching drm/amdgpu/mes11: optimize MES pipe FW version fetching

Alex Williamson (1):
Revert "PCI: Avoid reset when disabled via sysfs"

Alexander Tsoy (1):
Revert "wifi: ath12k: Fix invalid entry fetch in ath12k_dp_mon_srng_process"

Andreas Gruenbacher (1):
writeback: fix false warning in inode_to_wb()

Andy Shevchenko (1):
i2c: atr: Fix wrong include

Ankit Nautiyal (1):
drm/i915/vrr: Add vrr.vsync_{start, end} in vrr_params_changed

Anshuman Khandual (7):
arm64/sysreg: Update register fields for ID_AA64MMFR0_EL1 arm64/sysreg: Add register fields for HDFGRTR2_EL2 arm64/sysreg: Add register fields for HDFGWTR2_EL2 arm64/sysreg: Add register fields for HFGITR2_EL2 arm64/sysreg: Add register fields for HFGRTR2_EL2 arm64/sysreg: Add register fields for HFGWTR2_EL2 arm64/boot: Enable EL2 requirements for FEAT_PMUv3p9

Ard Biesheuvel (1):
x86/boot/sev: Avoid shared GHCB page for early memory acceptance

Armin Wolf (2):
platform/x86: msi-wmi-platform: Rename "data" variable platform/x86: msi-wmi-platform: Workaround a ACPI firmware bug

Aurabindo Pillai (1):
drm/amd/display: Temporarily disable hostvm on DCN31

Baoquan He (1):
mm/gup: fix wrongly calculated returned value in fault_in_safe_writeable()

Björn Töpel (1):
riscv: Properly export reserved regions in /proc/iomem

Bo-Cun Chen (3):
net: ethernet: mtk_eth_soc: reapply mdc divider on reset
net: ethernet: mtk_eth_soc: correct the max weight of the queue limit for 100Mbps
net: ethernet: mtk_eth_soc: revise QDMA packet scheduler settings

Borislav Petkov (AMD) (1):
x86/microcode/AMD: Extend the SHA check to Zen5, block loading of any unreleased standalone Zen5 microcode patches

Brady Norander (1):
ASoC: dwc: always enable/disable i2s irqs

Brendan King (2):
drm/imagination: fix firmware memory leaks
drm/imagination: take paired job reference

Brendan Tam (1):
drm/amd/display: prevent hang on link training fail

Chandrakanth Patil (1):
scsi: megaraid_sas: Block zero-length ATA VPD inquiry

Charles Keepax (1):
ASoC: cs42l43: Reset clamp override on jack removal

Chengchang Tang (1):
RDMA/hns: Fix wrong maximum DMA segment size

Chris Bainbridge (1):
drm/nouveau: prime: fix ttm_bo_delayed_delete oops

Christian König (1):
drm/amdgpu: immediately use GTT for new allocations

Christoph Hellwig (4):
loop: stop using vfs_iter_{read,write} for buffered I/O
block: remove rq_list_move
block: add a rq_list type
block: don't reorder requests in blk_add_rq_to_plug

Christopher S M Hall (6):
igc: fix PTM cycle trigger logic
igc: increase wait time before retrying PTM
igc: move ktime snapshot into PTM retry loop
igc: handle the IGC_PTP_ENABLED flag correctly
igc: cleanup PTP module if probe fails
igc: add lock preventing multiple simultaneous PTM transactions

Chunjie Zhu (1):
smb3 client: fix open hardlink on deferred close file error

Colin Ian King (1):
crypto: tegra - remove redundant error check on ret

Damodharam Ammepalli (1):
ethtool: cmis_cdb: use correct rpl size in ethtool_cmis_module_poll()

Dan Carpenter (2):
Bluetooth: btrtl: Prevent potential NULL dereference dma-buf/sw_sync: Decrement refcount on error in sw_sync_ioctl_get_deadline()

Daniel Wagner (3):
driver core: bus: add irq_get_affinity callback to bus_type
blk-mq: introduce blk_mq_map_hw_queues
scsi: replace blk_mq_pci_map_queues with blk_mq_map_hw_queues

Dapeng Mi (1):
perf/x86/intel: Allow to update user space GPRs from PEBS records

Denis Arefev (8):
asus-laptop: Fix an uninitialized variable
ksmbd: Prevent integer overflow in calculation of deadtime drm/amd/pm: Prevent division by zero drm/amd/pm/powerplay: Prevent division by zero drm/amd/pm/smu11: Prevent division by zero drm/amd/pm/powerplay/hwmgr/smu7_thermal: Prevent division by zero drm/amd/pm/swsmu/smu13/smu_v13_0: Prevent division by zero drm/amd/pm/powerplay/hwmgr/vega20_thermal: Prevent division by zero

Eduard Zingerman (8):
bpf: add find_containing_subprog() utility function
bpf: track changes_pkt_data property for global functions selftests/bpf: test for changing packet data from global functions
bpf: check changes_pkt_data property for extension programs selftests/bpf: freplace tests for tracking of changes_packet_data selftests/bpf: validate that tail call invalidates packet pointers
bpf: fix null dereference when computing changes_pkt_data of prog w/o subprogs selftests/bpf: extend changes_pkt_data with cases w/o subprograms

Edward Adam Davis (1):
isofs: Prevent the use of too small fid

Eric Biggers (1):
nfs: add missing selections of CONFIG_CRC32

Evgeny Pimenov (1):
ASoC: qcom: Fix sc7280 lpass potential buffer overflow

Frédéric Danis (2):
Bluetooth: l2cap: Check encryption key size on incoming connection
Bluetooth: l2cap: Process valid commands in too long frame

Geert Uytterhoeven (1):
dt-bindings: soc: fsl: fsl,ls1028a-reset: Fix maintainer entry

Giuseppe Scrivano (1):
ovl: remove unused forward declaration

Greg Kroah-Hartman (1):

      Linux 6.12.25

Hamza Mahfooz (1):
efi/libstub: Bump up EFI_MMAP_NR_SLACK_SLOTS to 32

Haoxiang Li (1):
drm/msm/dsi: Add check for devm_kstrdup()

Henry Martin (1):
ASoC: Intel: avs: Fix null-ptr-deref in avs_component_probe()

Herbert Xu (1):
crypto: caam/qi - Fix drv_ctx refcount bug

Herve Codina (1):
ASoC: fsl: fsl_qmc_audio: Reset audio data pointers on TRIGGER_START event

Huacai Chen (3):
drm/amd/display: Protect FPU in dml2_validate()/dml21_validate() drm/amd/display: Protect FPU in dml21_copy() drm/amd/display: Protect FPU in dml2_init()/dml21_init()

Ilya Maximets (1):
net: openvswitch: fix nested key length validation in the set() action

Jakub Kicinski (4):
netlink: specs: ovs_vport: align with C codegen capabilities
eth: bnxt: fix missing ring index trim on error path
netlink: specs: rt-link: add an attr layer around alt-ifname
netlink: specs: rt-link: adjust mctp attribute naming

Jani Nikula (1):
drm/i915/gvt: fix unterminated-string-initialization warning

Jaroslav Kysela (1):
ALSA: hda: improve bass speaker support for ASUS Zenbook UM5606WA

Jens Axboe (1):
block: make struct rq_list available for !CONFIG_BLOCK

Jocelyn Falempe (1):
drm/ast: Fix ast_dp connection status

Johannes Berg (1):
Revert "wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()"

Johannes Kimmel (1):
btrfs: correctly escape subvol in btrfs_show_options()

Jonas Gorski (2):
net: b53: enable BPDU reception for management port
net: bridge: switchdev: do not notify new brentries as changed

Juergen Gross (1):
xen: fix multicall debug feature

Kailang Yang (1):
ALSA: hda/realtek - Fixed ASUS platform headset Mic issue

Kan Liang (3):
perf/x86/intel/uncore: Fix the scale of IIO free running counters on SNR perf/x86/intel/uncore: Fix the scale of IIO free running counters on ICX perf/x86/intel/uncore: Fix the scale of IIO free running counters on SPR

Kees Cook (1):
Bluetooth: vhci: Avoid needless snprintf() calls

Kirill A. Shutemov (1):
mm: fix apply_to_existing_page_range()

Kunihiko Hayashi (2):
misc: pci_endpoint_test: Avoid issue of interrupts remaining after request_irq error
misc: pci_endpoint_test: Fix 'irq_type' to convey the correct type

Kuniyuki Iwashima (3):
smc: Fix lockdep false-positive for IPPROTO_SMC.
Revert "smb: client: Fix netns refcount imbalance causing leaks and use-after-free" Revert "smb: client: fix TCP timers deadlock after rmmod"

Leo Li (2):
drm/amd/display: Actually do immediate vblank disable drm/amd/display: Increase vblank offdelay for PSR panels

Li Lingfeng (1):
nfsd: decrease sc_count directly if fail to queue dl_recall

Lijo Lazar (1):
drm/amdgpu: Prefer shadow rom when available

Lorenzo Stoakes (1):
mm/vma: add give_up_on_oom option on modify/merge, use in uffd release

Lucas De Marchi (1):
drm/xe: Set LRC addresses before guc load

Luiz Augusto von Dentz (1):
Bluetooth: hci_event: Fix sending MGMT_EV_DEVICE_FOUND for invalid address

Lukas Fischer (1):
scripts: generate_rust_analyzer: Add ffi crate

Mario Limonciello (4):
platform/x86: amd: pmf: Fix STT limits
drm/amd: Handle being compiled without SI or CIK support better drm/amd/display: Add HP Elitebook 645 to the quirk list for eDP on DP1 drm/amd/display: Add HP Probook 445 and 465 to the quirk list for eDP on DP1

Mark Brown (1):
selftests/mm: generate a temporary mountpoint for cgroup filesystem

Martin K. Petersen (1):
block: integrity: Do not call set_page_dirty_lock()

Martin Wilck (1):
scsi: smartpqi: Use is_kdump_kernel() to check for kdump

Matt Johnston (1):
net: mctp: Set SOCK_RCU_FREE

Matthew Auld (3):
drm/amdgpu/dma_buf: fix page_link check drm/xe/dma_buf: stop relying on placement in unmap drm/xe/userptr: fix notifier vs folio deadlock

Matthew Brost (1):
drm/xe: Use local fence in error path of xe_migrate_clear

Matthew Wilcox (Oracle) (1):
test suite: use %zu to print size_t

Maíra Canal (1):
drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later

Meghana Malladi (3):
net: ti: icss-iep: Add pwidth configuration for perout signal
net: ti: icss-iep: Add phase offset configuration for perout signal
net: ti: icss-iep: Fix possible NULL pointer dereference for perout request

Menglong Dong (1):
ftrace: fix incorrect hash size in register_ftrace_direct()

Miaoqian Lin (1):
scsi: iscsi: Fix missing scsi_host_put() in error path

Michael Walle (1):
net: ethernet: ti: am65-cpsw: fix port_np reference counting

Miguel Ojeda (4):
objtool/rust: add one more noreturn Rust function for Rust 1.86.0
rust: kasan/kbuild: fix missing flags on first build
rust: disable clippy::needless_continue
rust: kbuild: use pound to support GNU Make < 4.3

Miklos Szeredi (1):
ovl: don't allow datadir only

Namjae Jeon (2):
ksmbd: fix use-after-free in smb_break_all_levII_oplock()
ksmbd: fix the warning from __kernel_write_iter

Nathan Chancellor (2):
riscv: Avoid fortify warning in syscall_get_arguments()
kbuild: Add '-fno-builtin-wcslen'

Nikita Zhandarovich (1):
drm/repaper: fix integer overflows in repeat functions

Niklas Cassel (1):
ata: libata-sata: Save all fields from sense data descriptor

P Praneesh (1):
wifi: ath12k: Fix invalid entry fetch in ath12k_dp_mon_srng_process

Peter Collingbourne (1):
string: Add load_unaligned_zeropad() code path to sized_strscpy()

Peter Griffin (1):
scsi: ufs: exynos: Ensure consistent phy reference counts

Peter Ujfalusi (1):
ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S16

Rafael J. Wysocki (3):
cpufreq/sched: Fix the usage of CPUFREQ_NEED_UPDATE_LIMITS cpufreq/sched: Explicitly synchronize limits_changed flag handling
cpufreq: Reference count policy in cpufreq_update_limits()

Remi Pommarel (2):
wifi: mac80211: Update skb's control block key in ieee80211_tx_dequeue()
wifi: mac80211: Purge vif txq in ieee80211_do_stop()

Richard Fitzgerald (1):
ALSA: hda/cirrus_scodec_test: Don't select dependencies

Rob Clark (1):
drm/msm/a6xx+: Don't let IB_SIZE overflow

Rolf Eike Beer (1):
drm/sti: remove duplicate object names

Sagi Maimon (1):
ptp: ocp: fix start time alignment in ptp_ocp_signal_set

Samuel Holland (2):
riscv: module: Fix out-of-bounds relocation access
riscv: module: Allocate PLT entries for R_RISCV_PLT32

Sandipan Das (1):
x86/cpu/amd: Fix workaround for erratum 1054

Sean Heelan (1):
ksmbd: Fix dangling pointer in krb_authenticate

Sharath Srinivasan (1):
RDMA/cma: Fix workqueue crash in cma_netevent_work_handler

Shay Drory (1):
RDMA/core: Silence oversized kvmalloc() warning

Shung-Hsi Yu (1):
selftests/bpf: Fix raw_tp null handling test

Srinivas Kandagatla (2):
ASoC: codecs:lpass-wsa-macro: Fix vi feedback rate
ASoC: codecs:lpass-wsa-macro: Fix logic of enabling vi channels

Steven Rostedt (1):
tracing: Fix filter string testing

Suren Baghdasaryan (1):

      slab: ensure slab->obj_exts is clear in a newly allocated slab page

Takashi Iwai (1):
ALSA: hda/realtek: Workaround for resume on Dell Venue 11 Pro 7130

Thadeu Lima de Souza Cascardo (1):
i2c: cros-ec-tunnel: defer probe if parent EC is not present

Thomas Hellström (1):
drm/xe: Fix an out-of-bounds shift when invalidating TLB

Thomas Weißschuh (3):
kunit: qemu_configs: SH: Respect kunit cmdline
loop: properly send KOBJ_CHANGED uevent for disk device
loop: LOOP_SET_FD: send uevents for partitions

Thomas Zimmermann (1):
drm/mgag200: Fix value in <VBLKSTR> register

Tom Chung (1):
drm/amd/display: Do not enable Replay and PSR while VRR is on in amdgpu_dm_commit_planes()

Vasiliy Kovalev (1):
hfs/hfsplus: fix slab-out-of-bounds in hfs_bnode_read_key

Vishal Moola (Oracle) (2):
mm/compaction: fix bug in hugetlb handling pathway
mm: fix filemap_get_folios_contig returning batches of identical folios

Vladimir Oltean (5):
net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered
net: dsa: mv88e6xxx: fix -ENOENT when deleting VLANs and MST is unsupported
net: dsa: clean up FDB, MDB, VLAN entries on unbind
net: dsa: free routing table on probe failure
net: dsa: avoid refcount warnings when ds->ops->tag_8021q_vlan_del() fails

WangYuli (6):
riscv: KGDB: Do not inline arch_kgdb_breakpoint()
riscv: KGDB: Remove ".option norvc/.option rvc" for kgdb_compiled_break
nvmet-fc: Remove unused functions
MIPS: dec: Declare which_prom() as static
MIPS: cevt-ds1287: Add missing ds1287.h include
MIPS: ds1287: Match ds1287_set_base_clock() function types

Weizhao Ouyang (1):
can: rockchip_canfd: fix broken quirks checks

Will Pierce (1):
riscv: Use kvmalloc_array on relocation_hashtable

Xiangsheng Hou (1):
virtiofs: add filesystem context source name check

Xin Long (1):
ipv6: add exception routes to GC list in rt6_insert_exception

Xingui Yang (1):
scsi: hisi_sas: Enable force phy when SATA disk directly connected

Yazen Ghannam (2):
RAS/AMD/ATL: Include row[13] bit in row retirement RAS/AMD/FMPM: Get masked address

Yu Kuai (2):
md/raid10: fix missing discard IO accounting
md: fix mddev uaf while iterating all_mddevs list

Yue Haibing (1):
RDMA/usnic: Fix passing zero to PTR_ERR in usnic_ib_pci_probe()

Yuli Wang (1):
LoongArch: Eliminate superfluous get_numa_distances_cnt()

Yunlong Xing (1):
loop: aio inherit the ioprio of original request

ZhenGuo Yin (1):
drm/amdgpu: fix warning of drm_mm_clean

Zheng Qixing (2):
md/md-bitmap: fix stats collection for external bitmaps
block: fix resource leak in blk_register_queue() error path

author maintainer
#1 lore raw
Documentation/arch/arm64/booting.rst +22 -0
index b57776a68f15..15bcd1b4003a 100644
@@ -285,6 +285,12 @@ Before jumping into the kernel, the following conditions must be met:
 
     - SCR_EL3.FGTEn (bit 27) must be initialised to 0b1.
 
+  For CPUs with the Fine Grained Traps 2 (FEAT_FGT2) extension present:
+
+  - If EL3 is present and the kernel is entered at EL2:
+
+    - SCR_EL3.FGTEn2 (bit 59) must be initialised to 0b1.
+
   For CPUs with support for HCRX_EL2 (FEAT_HCX) present:
 
   - If EL3 is present and the kernel is entered at EL2:
@@ -379,6 +385,22 @@ Before jumping into the kernel, the following conditions must be met:
 
     - SMCR_EL2.EZT0 (bit 30) must be initialised to 0b1.
 
+  For CPUs with the Performance Monitors Extension (FEAT_PMUv3p9):
+
+ - If EL3 is present:
+
+    - MDCR_EL3.EnPM2 (bit 7) must be initialised to 0b1.
+
+ - If the kernel is entered at EL1 and EL2 is present:
+
+    - HDFGRTR2_EL2.nPMICNTR_EL0 (bit 2) must be initialised to 0b1.
+    - HDFGRTR2_EL2.nPMICFILTR_EL0 (bit 3) must be initialised to 0b1.
+    - HDFGRTR2_EL2.nPMUACR_EL1 (bit 4) must be initialised to 0b1.
+
+    - HDFGWTR2_EL2.nPMICNTR_EL0 (bit 2) must be initialised to 0b1.
+    - HDFGWTR2_EL2.nPMICFILTR_EL0 (bit 3) must be initialised to 0b1.
+    - HDFGWTR2_EL2.nPMUACR_EL1 (bit 4) must be initialised to 0b1.
+
   For CPUs with Memory Copy and Memory Set instructions (FEAT_MOPS):
 
   - If the kernel is entered at EL1 and EL2 is present:
Documentation/devicetree/bindings/soc/fsl/fsl,ls1028a-reset.yaml +1 -1
index 31295be91013..234089b5954d 100644
@@ -7,7 +7,7 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
 title: Freescale Layerscape Reset Registers Module
 
 maintainers:
-  - Frank Li
+  - Frank Li <[email protected]>
 
 description:
   Reset Module includes chip reset, service processor control and Reset Control
Documentation/netlink/specs/ovs_vport.yaml +1 -3
index 86ba9ac2a521..b538bb99ee9b 100644
@@ -123,12 +123,12 @@ attribute-sets:
 
 operations:
   name-prefix: ovs-vport-cmd-
+  fixed-header: ovs-header
   list:
     -
       name: new
       doc: Create a new OVS vport
       attribute-set: vport
-      fixed-header: ovs-header
       do:
         request:
           attributes:
@@ -141,7 +141,6 @@ operations:
       name: del
       doc: Delete existing OVS vport from a data path
       attribute-set: vport
-      fixed-header: ovs-header
       do:
         request:
           attributes:
@@ -152,7 +151,6 @@ operations:
       name: get
       doc: Get / dump OVS vport configuration and state
       attribute-set: vport
-      fixed-header: ovs-header
       do: &vport-get-op
         request:
           attributes:
Documentation/netlink/specs/rt_link.yaml +10 -4
index 0c4d5d40cae9..a048fc30389d 100644
@@ -1094,11 +1094,10 @@ attribute-sets:
       -
         name: prop-list
         type: nest
-        nested-attributes: link-attrs
+        nested-attributes: prop-list-link-attrs
       -
         name: alt-ifname
         type: string
-        multi-attr: true
       -
         name: perm-address
         type: binary
@@ -1137,6 +1136,13 @@ attribute-sets:
         name: dpll-pin
         type: nest
         nested-attributes: link-dpll-pin-attrs
+  -
+    name: prop-list-link-attrs
+    subset-of: link-attrs
+    attributes:
+      -
+        name: alt-ifname
+        multi-attr: true
   -
     name: af-spec-attrs
     attributes:
@@ -2071,9 +2077,10 @@ attribute-sets:
         type: u32
   -
     name: mctp-attrs
+    name-prefix: ifla-mctp-
     attributes:
       -
-        name: mctp-net
+        name: net
         type: u32
   -
     name: stats-attrs
@@ -2319,7 +2326,6 @@ operations:
             - min-mtu
             - max-mtu
             - prop-list
-            - alt-ifname
             - perm-address
             - proto-down-reason
             - parent-dev-name
Documentation/wmi/devices/msi-wmi-platform.rst +4 -0
index 31a136942892..73197b31926a 100644
@@ -138,6 +138,10 @@ input data, the meaning of which depends on the subfeature being accessed.
 The output buffer contains a single byte which signals success or failure (``0x00`` on failure)
 and 31 bytes of output data, the meaning if which depends on the subfeature being accessed.
 
+.. note::
+   The ACPI control method responsible for handling the WMI method calls is not thread-safe.
+   This is a firmware bug that needs to be handled inside the driver itself.
+
 WMI method Get_EC()
 -------------------
 
Makefile +4 -2
index e1fa425089c2..93f4ba25a453 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 12
-SUBLEVEL = 24
+SUBLEVEL = 25
 EXTRAVERSION =
 NAME = Baby Opossum Posse
 
@@ -455,7 +455,6 @@ export rust_common_flags := --edition=2021 \
 			    -Wclippy::ignored_unit_patterns \
 			    -Wclippy::mut_mut \
 			    -Wclippy::needless_bitwise_bool \
-			    -Wclippy::needless_continue \
 			    -Aclippy::needless_lifetimes \
 			    -Wclippy::no_mangle_with_rust_abi \
 			    -Wclippy::undocumented_unsafe_blocks \
@@ -1016,6 +1015,9 @@ endif
 # Ensure compilers do not transform certain loops into calls to wcslen()
 KBUILD_CFLAGS += -fno-builtin-wcslen
 
+# Ensure compilers do not transform certain loops into calls to wcslen()
+KBUILD_CFLAGS += -fno-builtin-wcslen
+
 # change __FILE__ to the relative path from the srctree
 KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
 
arch/arm64/include/asm/el2_setup.h +25 -0
index e0ffdf13a18b..bdbe9e08664a 100644
@@ -215,6 +215,30 @@
 .Lskip_fgt_\@:
 .endm
 
+.macro __init_el2_fgt2
+	mrs	x1, id_aa64mmfr0_el1
+	ubfx	x1, x1, #ID_AA64MMFR0_EL1_FGT_SHIFT, #4
+	cmp	x1, #ID_AA64MMFR0_EL1_FGT_FGT2
+	b.lt	.Lskip_fgt2_\@
+
+	mov	x0, xzr
+	mrs	x1, id_aa64dfr0_el1
+	ubfx	x1, x1, #ID_AA64DFR0_EL1_PMUVer_SHIFT, #4
+	cmp	x1, #ID_AA64DFR0_EL1_PMUVer_V3P9
+	b.lt	.Lskip_pmuv3p9_\@
+
+	orr	x0, x0, #HDFGRTR2_EL2_nPMICNTR_EL0
+	orr	x0, x0, #HDFGRTR2_EL2_nPMICFILTR_EL0
+	orr	x0, x0, #HDFGRTR2_EL2_nPMUACR_EL1
+.Lskip_pmuv3p9_\@:
+	msr_s   SYS_HDFGRTR2_EL2, x0
+	msr_s   SYS_HDFGWTR2_EL2, x0
+	msr_s   SYS_HFGRTR2_EL2, xzr
+	msr_s   SYS_HFGWTR2_EL2, xzr
+	msr_s   SYS_HFGITR2_EL2, xzr
+.Lskip_fgt2_\@:
+.endm
+
 .macro __init_el2_nvhe_prepare_eret
 	mov	x0, #INIT_PSTATE_EL1
 	msr	spsr_el2, x0
@@ -240,6 +264,7 @@
 	__init_el2_nvhe_idregs
 	__init_el2_cptr
 	__init_el2_fgt
+	__init_el2_fgt2
 .endm
 
 #ifndef __KVM_NVHE_HYPERVISOR__
arch/arm64/tools/sysreg +104 -0

134 lines not on this page · raw message

arch/loongarch/kernel/acpi.c +0 -12
index 382a09a7152c..1120ac2824f6 100644
@@ -249,18 +249,6 @@ static __init int setup_node(int pxm)
 	return acpi_map_pxm_to_node(pxm);
 }
 
-/*
- * Callback for SLIT parsing.  pxm_to_node() returns NUMA_NO_NODE for
- * I/O localities since SRAT does not list them.  I/O localities are
- * not supported at this point.
- */
-unsigned int numa_distance_cnt;
-
-static inline unsigned int get_numa_distances_cnt(struct acpi_table_slit *slit)
-{
-	return slit->locality_count;
-}
-
 void __init numa_set_distance(int from, int to, int distance)
 {
 	if ((u8)distance != distance || (from == to && distance != LOCAL_DISTANCE)) {
arch/mips/dec/prom/init.c +1 -1
index cb12eb211a49..8d74d7d6c05b 100644
@@ -42,7 +42,7 @@ int (*__pmax_close)(int);
  * Detect which PROM the DECSTATION has, and set the callback vectors
  * appropriately.
  */
-void __init which_prom(s32 magic, s32 *prom_vec)
+static void __init which_prom(s32 magic, s32 *prom_vec)
 {
 	/*
 	 * No sign of the REX PROM's magic number means we assume a non-REX
arch/mips/include/asm/ds1287.h +1 -1
index 46cfb01f9a14..51cb61fd4c03 100644
@@ -8,7 +8,7 @@
 #define __ASM_DS1287_H
 
 extern int ds1287_timer_state(void);
-extern void ds1287_set_base_clock(unsigned int clock);
+extern int ds1287_set_base_clock(unsigned int hz);
 extern int ds1287_clockevent_init(int irq);
 
 #endif
arch/mips/kernel/cevt-ds1287.c +1 -0
index 9a47fbcd4638..de64d6bb7ba3 100644
@@ -10,6 +10,7 @@
 #include <linux/mc146818rtc.h>
 #include <linux/irq.h>
 
+#include <asm/ds1287.h>
 #include <asm/time.h>
 
 int ds1287_timer_state(void)
arch/riscv/include/asm/kgdb.h +1 -8
index 46677daf708b..cc11c4544cff 100644
@@ -19,16 +19,9 @@
 
 #ifndef	__ASSEMBLY__
 
+void arch_kgdb_breakpoint(void);
 extern unsigned long kgdb_compiled_break;
 
-static inline void arch_kgdb_breakpoint(void)
-{
-	asm(".global kgdb_compiled_break\n"
-	    ".option norvc\n"
-	    "kgdb_compiled_break: ebreak\n"
-	    ".option rvc\n");
-}
-
 #endif /* !__ASSEMBLY__ */
 
 #define DBG_REG_ZERO "zero"
arch/riscv/include/asm/syscall.h +5 -2
index 121fff429dce..eceabf59ae48 100644
@@ -62,8 +62,11 @@ static inline void syscall_get_arguments(struct task_struct *task,
 					 unsigned long *args)
 {
 	args[0] = regs->orig_a0;
-	args++;
-	memcpy(args, &regs->a1, 5 * sizeof(args[0]));
+	args[1] = regs->a1;
+	args[2] = regs->a2;
+	args[3] = regs->a3;
+	args[4] = regs->a4;
+	args[5] = regs->a5;
 }
 
 static inline int syscall_get_arch(struct task_struct *task)
arch/riscv/kernel/kgdb.c +6 -0
index 2e0266ae6bd7..9f3db3503dab 100644
@@ -254,6 +254,12 @@ void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long pc)
 	regs->epc = pc;
 }
 
+noinline void arch_kgdb_breakpoint(void)
+{
+	asm(".global kgdb_compiled_break\n"
+	    "kgdb_compiled_break: ebreak\n");
+}
+
 void kgdb_arch_handle_qxfer_pkt(char *remcom_in_buffer,
 				char *remcom_out_buffer)
 {
arch/riscv/kernel/module-sections.c +7 -6
index e264e59e596e..91d0b355ceef 100644
@@ -73,16 +73,17 @@ static bool duplicate_rela(const Elf_Rela *rela, int idx)
 static void count_max_entries(Elf_Rela *relas, int num,
 			      unsigned int *plts, unsigned int *gots)
 {
-	unsigned int type, i;
-
-	for (i = 0; i < num; i++) {
-		type = ELF_RISCV_R_TYPE(relas[i].r_info);
-		if (type == R_RISCV_CALL_PLT) {
+	for (int i = 0; i < num; i++) {
+		switch (ELF_R_TYPE(relas[i].r_info)) {
+		case R_RISCV_CALL_PLT:
+		case R_RISCV_PLT32:
 			if (!duplicate_rela(relas, i))
 				(*plts)++;
-		} else if (type == R_RISCV_GOT_HI20) {
+			break;
+		case R_RISCV_GOT_HI20:
 			if (!duplicate_rela(relas, i))
 				(*gots)++;
+			break;
 		}
 	}
 }
arch/riscv/kernel/module.c +6 -5
index 47d0ebeec93c..7f6147c18033 100644
@@ -648,7 +648,7 @@ process_accumulated_relocations(struct module *me,
 		kfree(bucket_iter);
 	}
 
-	kfree(*relocation_hashtable);
+	kvfree(*relocation_hashtable);
 }
 
 static int add_relocation_to_accumulate(struct module *me, int type,
@@ -752,9 +752,10 @@ initialize_relocation_hashtable(unsigned int num_relocations,
 
 	hashtable_size <<= should_double_size;
 
-	*relocation_hashtable = kmalloc_array(hashtable_size,
-					      sizeof(**relocation_hashtable),
-					      GFP_KERNEL);
+	/* Number of relocations may be large, so kvmalloc it */
+	*relocation_hashtable = kvmalloc_array(hashtable_size,
+					       sizeof(**relocation_hashtable),
+					       GFP_KERNEL);
 	if (!*relocation_hashtable)
 		return 0;
 
@@ -859,7 +860,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs, const char *strtab,
 				}
 
 				j++;
-				if (j > sechdrs[relsec].sh_size / sizeof(*rel))
+				if (j == num_relocations)
 					j = 0;
 
 			} while (j_idx != j);
arch/riscv/kernel/setup.c +35 -1
index 7934613a98c8..194bda6d74ce 100644
@@ -66,6 +66,9 @@ static struct resource bss_res = { .name = "Kernel bss", };
 static struct resource elfcorehdr_res = { .name = "ELF Core hdr", };
 #endif
 
+static int num_standard_resources;
+static struct resource *standard_resources;
+
 static int __init add_resource(struct resource *parent,
 				struct resource *res)
 {
@@ -139,7 +142,7 @@ static void __init init_resources(void)
 	struct resource *res = NULL;
 	struct resource *mem_res = NULL;
 	size_t mem_res_sz = 0;
-	int num_resources = 0, res_idx = 0;
+	int num_resources = 0, res_idx = 0, non_resv_res = 0;
 	int ret = 0;
 
 	/* + 1 as memblock_alloc() might increase memblock.reserved.cnt */
@@ -195,6 +198,7 @@ static void __init init_resources(void)
 	/* Add /memory regions to the resource tree */
 	for_each_mem_region(region) {
 		res = &mem_res[res_idx--];
+		non_resv_res++;
 
 		if (unlikely(memblock_is_nomap(region))) {
 			res->name = "Reserved";
@@ -212,6 +216,9 @@ static void __init init_resources(void)
 			goto error;
 	}
 
+	num_standard_resources = non_resv_res;
+	standard_resources = &mem_res[res_idx + 1];
+
 	/* Clean-up any unused pre-allocated resources */
 	if (res_idx >= 0)
 		memblock_free(mem_res, (res_idx + 1) * sizeof(*mem_res));
@@ -223,6 +230,33 @@ static void __init init_resources(void)
 	memblock_free(mem_res, mem_res_sz);
 }
 
+static int __init reserve_memblock_reserved_regions(void)
+{
+	u64 i, j;
+
+	for (i = 0; i < num_standard_resources; i++) {
+		struct resource *mem = &standard_resources[i];
+		phys_addr_t r_start, r_end, mem_size = resource_size(mem);
+
+		if (!memblock_is_region_reserved(mem->start, mem_size))
+			continue;
+
+		for_each_reserved_mem_range(j, &r_start, &r_end) {
+			resource_size_t start, end;
+
+			start = max(PFN_PHYS(PFN_DOWN(r_start)), mem->start);
+			end = min(PFN_PHYS(PFN_UP(r_end)) - 1, mem->end);
+
+			if (start > mem->end || end < mem->start)
+				continue;
+
+			reserve_region_with_split(mem, start, end, "Reserved");
+		}
+	}
+
+	return 0;
+}
+arch_initcall(reserve_memblock_reserved_regions);
 
 static void __init parse_dtb(void)
 {
arch/x86/boot/compressed/mem.c +4 -1
index dbba332e4a12..f676156d9f3d 100644
@@ -34,11 +34,14 @@ static bool early_is_tdx_guest(void)
 
 void arch_accept_memory(phys_addr_t start, phys_addr_t end)
 {
+	static bool sevsnp;
+
 	/* Platform-specific memory-acceptance call goes here */
 	if (early_is_tdx_guest()) {
 		if (!tdx_accept_memory(start, end))
 			panic("TDX: Failed to accept memory\n");
-	} else if (sev_snp_enabled()) {
+	} else if (sevsnp || (sev_get_status() & MSR_AMD64_SEV_SNP_ENABLED)) {
+		sevsnp = true;
 		snp_accept_memory(start, end);
 	} else {
 		error("Cannot accept memory: unknown platform\n");
arch/x86/boot/compressed/sev.c +15 -52

104 lines not on this page · raw message

arch/x86/boot/compressed/sev.h +2 -0
index fc725a981b09..4e463f33186d 100644
@@ -12,11 +12,13 @@
 
 bool sev_snp_enabled(void);
 void snp_accept_memory(phys_addr_t start, phys_addr_t end);
+u64 sev_get_status(void);
 
 #else
 
 static inline bool sev_snp_enabled(void) { return false; }
 static inline void snp_accept_memory(phys_addr_t start, phys_addr_t end) { }
+static inline u64 sev_get_status(void) { return 0; }
 
 #endif
 
arch/x86/events/intel/ds.c +5 -3
index 1617aa3efd68..1b82bcc6fa55 100644
@@ -1317,8 +1317,10 @@ static u64 pebs_update_adaptive_cfg(struct perf_event *event)
 	 * + precise_ip < 2 for the non event IP
 	 * + For RTM TSX weight we need GPRs for the abort code.
 	 */
-	gprs = (sample_type & PERF_SAMPLE_REGS_INTR) &&
-	       (attr->sample_regs_intr & PEBS_GP_REGS);
+	gprs = ((sample_type & PERF_SAMPLE_REGS_INTR) &&
+		(attr->sample_regs_intr & PEBS_GP_REGS)) ||
+	       ((sample_type & PERF_SAMPLE_REGS_USER) &&
+		(attr->sample_regs_user & PEBS_GP_REGS));
 
 	tsx_weight = (sample_type & PERF_SAMPLE_WEIGHT_TYPE) &&
 		     ((attr->config & INTEL_ARCH_EVENT_MASK) ==
@@ -1970,7 +1972,7 @@ static void setup_pebs_adaptive_sample_data(struct perf_event *event,
 			regs->flags &= ~PERF_EFLAGS_EXACT;
 		}
 
-		if (sample_type & PERF_SAMPLE_REGS_INTR)
+		if (sample_type & (PERF_SAMPLE_REGS_INTR | PERF_SAMPLE_REGS_USER))
 			adaptive_pebs_save_regs(regs, gprs);
 	}
 
arch/x86/events/intel/uncore_snbep.c +10 -97

151 lines not on this page · raw message

arch/x86/kernel/cpu/amd.c +12 -7
index 425bed00b2e0..e432910859cb 100644
@@ -862,6 +862,16 @@ static void init_amd_zen1(struct cpuinfo_x86 *c)
 
 	pr_notice_once("AMD Zen1 DIV0 bug detected. Disable SMT for full protection.\n");
 	setup_force_cpu_bug(X86_BUG_DIV0);
+
+	/*
+	 * Turn off the Instructions Retired free counter on machines that are
+	 * susceptible to erratum #1054 "Instructions Retired Performance
+	 * Counter May Be Inaccurate".
+	 */
+	if (c->x86_model < 0x30) {
+		msr_clear_bit(MSR_K7_HWCR, MSR_K7_HWCR_IRPERF_EN_BIT);
+		clear_cpu_cap(c, X86_FEATURE_IRPERF);
+	}
 }
 
 static bool cpu_has_zenbleed_microcode(void)
@@ -1045,13 +1055,8 @@ static void init_amd(struct cpuinfo_x86 *c)
 	if (!cpu_feature_enabled(X86_FEATURE_XENPV))
 		set_cpu_bug(c, X86_BUG_SYSRET_SS_ATTRS);
 
-	/*
-	 * Turn on the Instructions Retired free counter on machines not
-	 * susceptible to erratum #1054 "Instructions Retired Performance
-	 * Counter May Be Inaccurate".
-	 */
-	if (cpu_has(c, X86_FEATURE_IRPERF) &&
-	    (boot_cpu_has(X86_FEATURE_ZEN1) && c->x86_model > 0x2f))
+	/* Enable the Instructions Retired free counter */
+	if (cpu_has(c, X86_FEATURE_IRPERF))
 		msr_set_bit(MSR_K7_HWCR, MSR_K7_HWCR_IRPERF_EN_BIT);
 
 	check_null_seg_clears_base(c);
arch/x86/kernel/cpu/microcode/amd.c +7 -2
index 5cd735728fa0..093d3ca43c46 100644
@@ -199,6 +199,12 @@ static bool need_sha_check(u32 cur_rev)
 	case 0xa70c0: return cur_rev <= 0xa70C009; break;
 	case 0xaa001: return cur_rev <= 0xaa00116; break;
 	case 0xaa002: return cur_rev <= 0xaa00218; break;
+	case 0xb0021: return cur_rev <= 0xb002146; break;
+	case 0xb1010: return cur_rev <= 0xb101046; break;
+	case 0xb2040: return cur_rev <= 0xb204031; break;
+	case 0xb4040: return cur_rev <= 0xb404031; break;
+	case 0xb6000: return cur_rev <= 0xb600031; break;
+	case 0xb7000: return cur_rev <= 0xb700031; break;
 	default: break;
 	}
 
@@ -214,8 +220,7 @@ static bool verify_sha256_digest(u32 patch_id, u32 cur_rev, const u8 *data, unsi
 	struct sha256_state s;
 	int i;
 
-	if (x86_family(bsp_cpuid_1_eax) < 0x17 ||
-	    x86_family(bsp_cpuid_1_eax) > 0x19)
+	if (x86_family(bsp_cpuid_1_eax) < 0x17)
 		return true;
 
 	if (!need_sha_check(cur_rev))
arch/x86/xen/multicalls.c +14 -12
index 10c660fae8b3..7237d56a9d3f 100644
@@ -54,14 +54,20 @@ struct mc_debug_data {
 
 static DEFINE_PER_CPU(struct mc_buffer, mc_buffer);
 static struct mc_debug_data mc_debug_data_early __initdata;
-static DEFINE_PER_CPU(struct mc_debug_data *, mc_debug_data) =
-	&mc_debug_data_early;
 static struct mc_debug_data __percpu *mc_debug_data_ptr;
 DEFINE_PER_CPU(unsigned long, xen_mc_irq_flags);
 
 static struct static_key mc_debug __ro_after_init;
 static bool mc_debug_enabled __initdata;
 
+static struct mc_debug_data * __ref get_mc_debug(void)
+{
+	if (!mc_debug_data_ptr)
+		return &mc_debug_data_early;
+
+	return this_cpu_ptr(mc_debug_data_ptr);
+}
+
 static int __init xen_parse_mc_debug(char *arg)
 {
 	mc_debug_enabled = true;
@@ -71,20 +77,16 @@ static int __init xen_parse_mc_debug(char *arg)
 }
 early_param("xen_mc_debug", xen_parse_mc_debug);
 
-void mc_percpu_init(unsigned int cpu)
-{
-	per_cpu(mc_debug_data, cpu) = per_cpu_ptr(mc_debug_data_ptr, cpu);
-}
-
 static int __init mc_debug_enable(void)
 {
 	unsigned long flags;
+	struct mc_debug_data __percpu *mcdb;
 
 	if (!mc_debug_enabled)
 		return 0;
 
-	mc_debug_data_ptr = alloc_percpu(struct mc_debug_data);
-	if (!mc_debug_data_ptr) {
+	mcdb = alloc_percpu(struct mc_debug_data);
+	if (!mcdb) {
 		pr_err("xen_mc_debug inactive\n");
 		static_key_slow_dec(&mc_debug);
 		return -ENOMEM;
@@ -93,7 +95,7 @@ static int __init mc_debug_enable(void)
 	/* Be careful when switching to percpu debug data. */
 	local_irq_save(flags);
 	xen_mc_flush();
-	mc_percpu_init(0);
+	mc_debug_data_ptr = mcdb;
 	local_irq_restore(flags);
 
 	pr_info("xen_mc_debug active\n");
@@ -155,7 +157,7 @@ void xen_mc_flush(void)
 	trace_xen_mc_flush(b->mcidx, b->argidx, b->cbidx);
 
 	if (static_key_false(&mc_debug)) {
-		mcdb = __this_cpu_read(mc_debug_data);
+		mcdb = get_mc_debug();
 		memcpy(mcdb->entries, b->entries,
 		       b->mcidx * sizeof(struct multicall_entry));
 	}
@@ -235,7 +237,7 @@ struct multicall_space __xen_mc_entry(size_t args)
 
 	ret.mc = &b->entries[b->mcidx];
 	if (static_key_false(&mc_debug)) {
-		struct mc_debug_data *mcdb = __this_cpu_read(mc_debug_data);
+		struct mc_debug_data *mcdb = get_mc_debug();
 
 		mcdb->caller[b->mcidx] = __builtin_return_address(0);
 		mcdb->argsz[b->mcidx] = args;
arch/x86/xen/smp_pv.c +0 -1
index 6863d3da7dec..7ea57f728b89 100644
@@ -305,7 +305,6 @@ static int xen_pv_kick_ap(unsigned int cpu, struct task_struct *idle)
 		return rc;
 
 	xen_pmu_init(cpu);
-	mc_percpu_init(cpu);
 
 	/*
 	 * Why is this a BUG? If the hypercall fails then everything can be
arch/x86/xen/xen-ops.h +0 -3
index 63c13a2ccf55..25e318ef27d6 100644
@@ -261,9 +261,6 @@ void xen_mc_callback(void (*fn)(void *), void *data);
  */
 struct multicall_space xen_mc_extend_args(unsigned long op, size_t arg_size);
 
-/* Do percpu data initialization for multicalls. */
-void mc_percpu_init(unsigned int cpu);
-
 extern bool is_xen_pmu;
 
 irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id);
block/bio-integrity.c +6 -11
index 9aed61fcd0bf..456026c4a3c9 100644
@@ -104,16 +104,12 @@ struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio,
 }
 EXPORT_SYMBOL(bio_integrity_alloc);
 
-static void bio_integrity_unpin_bvec(struct bio_vec *bv, int nr_vecs,
-				     bool dirty)
+static void bio_integrity_unpin_bvec(struct bio_vec *bv, int nr_vecs)
 {
 	int i;
 
-	for (i = 0; i < nr_vecs; i++) {
-		if (dirty && !PageCompound(bv[i].bv_page))
-			set_page_dirty_lock(bv[i].bv_page);
+	for (i = 0; i < nr_vecs; i++)
 		unpin_user_page(bv[i].bv_page);
-	}
 }
 
 static void bio_integrity_uncopy_user(struct bio_integrity_payload *bip)
@@ -129,7 +125,7 @@ static void bio_integrity_uncopy_user(struct bio_integrity_payload *bip)
 	ret = copy_to_iter(bvec_virt(bounce_bvec), bytes, &orig_iter);
 	WARN_ON_ONCE(ret != bytes);
 
-	bio_integrity_unpin_bvec(orig_bvecs, orig_nr_vecs, true);
+	bio_integrity_unpin_bvec(orig_bvecs, orig_nr_vecs);
 }
 
 /**
@@ -149,8 +145,7 @@ void bio_integrity_unmap_user(struct bio *bio)
 		return;
 	}
 
-	bio_integrity_unpin_bvec(bip->bip_vec, bip->bip_max_vcnt,
-			bio_data_dir(bio) == READ);
+	bio_integrity_unpin_bvec(bip->bip_vec, bip->bip_max_vcnt);
 }
 
 /**
@@ -236,7 +231,7 @@ static int bio_integrity_copy_user(struct bio *bio, struct bio_vec *bvec,
 	}
 
 	if (write)
-		bio_integrity_unpin_bvec(bvec, nr_vecs, false);
+		bio_integrity_unpin_bvec(bvec, nr_vecs);
 	else
 		memcpy(&bip->bip_vec[1], bvec, nr_vecs * sizeof(*bvec));
 
@@ -362,7 +357,7 @@ int bio_integrity_map_user(struct bio *bio, void __user *ubuf, ssize_t bytes,
 	return 0;
 
 release_pages:
-	bio_integrity_unpin_bvec(bvec, nr_bvecs, false);
+	bio_integrity_unpin_bvec(bvec, nr_bvecs);
 free_bvec:
 	if (bvec != stack_vec)
 		kfree(bvec);
block/blk-core.c +3 -3
index 42023addf9cd..c7b6c1f76359 100644
@@ -1121,8 +1121,8 @@ void blk_start_plug_nr_ios(struct blk_plug *plug, unsigned short nr_ios)
 		return;
 
 	plug->cur_ktime = 0;
-	plug->mq_list = NULL;
-	plug->cached_rq = NULL;
+	rq_list_init(&plug->mq_list);
+	rq_list_init(&plug->cached_rqs);
 	plug->nr_ios = min_t(unsigned short, nr_ios, BLK_MAX_REQUEST_COUNT);
 	plug->rq_count = 0;
 	plug->multiple_queues = false;
@@ -1218,7 +1218,7 @@ void __blk_flush_plug(struct blk_plug *plug, bool from_schedule)
 	 * queue for cached requests, we don't want a blocked task holding
 	 * up a queue freeze/quiesce event.
 	 */
-	if (unlikely(!rq_list_empty(plug->cached_rq)))
+	if (unlikely(!rq_list_empty(&plug->cached_rqs)))
 		blk_mq_free_plug_rqs(plug);
 
 	plug->cur_ktime = 0;
block/blk-merge.c +1 -1
index 5baa950f34fe..ceac64e796ea 100644
@@ -1175,7 +1175,7 @@ bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio,
 	struct blk_plug *plug = current->plug;
 	struct request *rq;
 
-	if (!plug || rq_list_empty(plug->mq_list))
+	if (!plug || rq_list_empty(&plug->mq_list))
 		return false;
 
 	rq_list_for_each(&plug->mq_list, rq) {
block/blk-mq-cpumap.c +37 -0
index 9638b25fd521..ad8d6a363f24 100644
@@ -11,6 +11,7 @@
 #include <linux/smp.h>
 #include <linux/cpu.h>
 #include <linux/group_cpus.h>
+#include <linux/device/bus.h>
 
 #include "blk.h"
 #include "blk-mq.h"
@@ -54,3 +55,39 @@ int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int index)
 
 	return NUMA_NO_NODE;
 }
+
+/**
+ * blk_mq_map_hw_queues - Create CPU to hardware queue mapping
+ * @qmap:	CPU to hardware queue map
+ * @dev:	The device to map queues
+ * @offset:	Queue offset to use for the device
+ *
+ * Create a CPU to hardware queue mapping in @qmap. The struct bus_type
+ * irq_get_affinity callback will be used to retrieve the affinity.
+ */
+void blk_mq_map_hw_queues(struct blk_mq_queue_map *qmap,
+			  struct device *dev, unsigned int offset)
+
+{
+	const struct cpumask *mask;
+	unsigned int queue, cpu;
+
+	if (!dev->bus->irq_get_affinity)
+		goto fallback;
+
+	for (queue = 0; queue < qmap->nr_queues; queue++) {
+		mask = dev->bus->irq_get_affinity(dev, queue + offset);
+		if (!mask)
+			goto fallback;
+
+		for_each_cpu(cpu, mask)
+			qmap->mq_map[cpu] = qmap->queue_offset + queue;
+	}
+
+	return;
+
+fallback:
+	WARN_ON_ONCE(qmap->nr_queues > 1);
+	blk_mq_clear_mq_map(qmap);
+}
+EXPORT_SYMBOL_GPL(blk_mq_map_hw_queues);
block/blk-mq.c +20 -22

151 lines not on this page · raw message

block/blk-mq.h +1 -1
index 364c0415293c..a80d3b3105f9 100644
@@ -155,7 +155,7 @@ struct blk_mq_alloc_data {
 
 	/* allocate multiple requests/tags in one go */
 	unsigned int nr_tags;
-	struct request **cached_rq;
+	struct rq_list *cached_rqs;
 
 	/* input & output parameter */
 	struct blk_mq_ctx *ctx;
block/blk-sysfs.c +2 -0
index 692b27266220..0e2520d929e1 100644
@@ -813,6 +813,8 @@ int blk_register_queue(struct gendisk *disk)
 out_debugfs_remove:
 	blk_debugfs_remove(disk);
 	mutex_unlock(&q->sysfs_lock);
+	if (queue_is_mq(q))
+		blk_mq_sysfs_unregister(disk);
 out_put_queue_kobj:
 	kobject_put(&disk->queue_kobj);
 	mutex_unlock(&q->sysfs_dir_lock);
drivers/ata/libata-sata.c +15 -0
index 9c76fb1ad2ec..a7442dc0bd8e 100644
@@ -1510,6 +1510,8 @@ int ata_eh_get_ncq_success_sense(struct ata_link *link)
 	unsigned int err_mask, tag;
 	u8 *sense, sk = 0, asc = 0, ascq = 0;
 	u64 sense_valid, val;
+	u16 extended_sense;
+	bool aux_icc_valid;
 	int ret = 0;
 
 	err_mask = ata_read_log_page(dev, ATA_LOG_SENSE_NCQ, 0, buf, 2);
@@ -1529,6 +1531,8 @@ int ata_eh_get_ncq_success_sense(struct ata_link *link)
 
 	sense_valid = (u64)buf[8] | ((u64)buf[9] << 8) |
 		((u64)buf[10] << 16) | ((u64)buf[11] << 24);
+	extended_sense = get_unaligned_le16(&buf[14]);
+	aux_icc_valid = extended_sense & BIT(15);
 
 	ata_qc_for_each_raw(ap, qc, tag) {
 		if (!(qc->flags & ATA_QCFLAG_EH) ||
@@ -1556,6 +1560,17 @@ int ata_eh_get_ncq_success_sense(struct ata_link *link)
 			continue;
 		}
 
+		qc->result_tf.nsect = sense[6];
+		qc->result_tf.hob_nsect = sense[7];
+		qc->result_tf.lbal = sense[8];
+		qc->result_tf.lbam = sense[9];
+		qc->result_tf.lbah = sense[10];
+		qc->result_tf.hob_lbal = sense[11];
+		qc->result_tf.hob_lbam = sense[12];
+		qc->result_tf.hob_lbah = sense[13];
+		if (aux_icc_valid)
+			qc->result_tf.auxiliary = get_unaligned_le32(&sense[16]);
+
 		/* Set sense without also setting scsicmd->result */
 		scsi_build_sense_buffer(dev->flags & ATA_DFLAG_D_SENSE,
 					qc->scsicmd->sense_buffer, sk,
drivers/block/loop.c +22 -99

202 lines not on this page · raw message

drivers/block/null_blk/main.c +4 -5
index c479348ce8ff..f10369ad90f7 100644
@@ -1638,10 +1638,9 @@ static blk_status_t null_queue_rq(struct blk_mq_hw_ctx *hctx,
 	return BLK_STS_OK;
 }
 
-static void null_queue_rqs(struct request **rqlist)
+static void null_queue_rqs(struct rq_list *rqlist)
 {
-	struct request *requeue_list = NULL;
-	struct request **requeue_lastp = &requeue_list;
+	struct rq_list requeue_list = {};
 	struct blk_mq_queue_data bd = { };
 	blk_status_t ret;
 
@@ -1651,8 +1650,8 @@ static void null_queue_rqs(struct request **rqlist)
 		bd.rq = rq;
 		ret = null_queue_rq(rq->mq_hctx, &bd);
 		if (ret != BLK_STS_OK)
-			rq_list_add_tail(&requeue_lastp, rq);
-	} while (!rq_list_empty(*rqlist));
+			rq_list_add_tail(&requeue_list, rq);
+	} while (!rq_list_empty(rqlist));
 
 	*rqlist = requeue_list;
 }
drivers/block/virtio_blk.c +6 -7
index 44a6937a4b65..fd6c565f8a50 100644
@@ -472,7 +472,7 @@ static bool virtblk_prep_rq_batch(struct request *req)
 }
 
 static void virtblk_add_req_batch(struct virtio_blk_vq *vq,
-					struct request **rqlist)
+		struct rq_list *rqlist)
 {
 	struct request *req;
 	unsigned long flags;
@@ -499,11 +499,10 @@ static void virtblk_add_req_batch(struct virtio_blk_vq *vq,
 		virtqueue_notify(vq->vq);
 }
 
-static void virtio_queue_rqs(struct request **rqlist)
+static void virtio_queue_rqs(struct rq_list *rqlist)
 {
-	struct request *submit_list = NULL;
-	struct request *requeue_list = NULL;
-	struct request **requeue_lastp = &requeue_list;
+	struct rq_list submit_list = { };
+	struct rq_list requeue_list = { };
 	struct virtio_blk_vq *vq = NULL;
 	struct request *req;
 
@@ -515,9 +514,9 @@ static void virtio_queue_rqs(struct request **rqlist)
 		vq = this_vq;
 
 		if (virtblk_prep_rq_batch(req))
-			rq_list_add(&submit_list, req); /* reverse order */
+			rq_list_add_tail(&submit_list, req);
 		else
-			rq_list_add_tail(&requeue_lastp, req);
+			rq_list_add_tail(&requeue_list, req);
 	}
 
 	if (vq)
drivers/bluetooth/btrtl.c +2 -0
index 0a6ca6dfb948..59eb94866422 100644
@@ -1215,6 +1215,8 @@ struct btrtl_device_info *btrtl_initialize(struct hci_dev *hdev,
 			rtl_dev_err(hdev, "mandatory config file %s not found",
 				    btrtl_dev->ic_info->cfg_name);
 			ret = btrtl_dev->cfg_len;
+			if (!ret)
+				ret = -EINVAL;
 			goto err_free;
 		}
 	}
drivers/bluetooth/hci_vhci.c +5 -5
index 7651321d351c..9ac22e4a070b 100644
@@ -289,18 +289,18 @@ static void vhci_coredump(struct hci_dev *hdev)
 
 static void vhci_coredump_hdr(struct hci_dev *hdev, struct sk_buff *skb)
 {
-	char buf[80];
+	const char *buf;
 
-	snprintf(buf, sizeof(buf), "Controller Name: vhci_ctrl\n");
+	buf = "Controller Name: vhci_ctrl\n";
 	skb_put_data(skb, buf, strlen(buf));
 
-	snprintf(buf, sizeof(buf), "Firmware Version: vhci_fw\n");
+	buf = "Firmware Version: vhci_fw\n";
 	skb_put_data(skb, buf, strlen(buf));
 
-	snprintf(buf, sizeof(buf), "Driver: vhci_drv\n");
+	buf = "Driver: vhci_drv\n";
 	skb_put_data(skb, buf, strlen(buf));
 
-	snprintf(buf, sizeof(buf), "Vendor: vhci\n");
+	buf = "Vendor: vhci\n";
 	skb_put_data(skb, buf, strlen(buf));
 }
 
drivers/cpufreq/cpufreq.c +8 -0
index f98c9438760c..67b4e3d18ffe 100644
@@ -2748,10 +2748,18 @@ EXPORT_SYMBOL(cpufreq_update_policy);
  */
 void cpufreq_update_limits(unsigned int cpu)
 {
+	struct cpufreq_policy *policy;
+
+	policy = cpufreq_cpu_get(cpu);
+	if (!policy)
+		return;
+
 	if (cpufreq_driver->update_limits)
 		cpufreq_driver->update_limits(cpu);
 	else
 		cpufreq_update_policy(cpu);
+
+	cpufreq_cpu_put(policy);
 }
 EXPORT_SYMBOL_GPL(cpufreq_update_limits);
 
drivers/crypto/caam/qi.c +3 -3
index 8ed2bb01a619..448606300500 100644
@@ -122,12 +122,12 @@ int caam_qi_enqueue(struct device *qidev, struct caam_drv_req *req)
 	qm_fd_addr_set64(&fd, addr);
 
 	do {
+		refcount_inc(&req->drv_ctx->refcnt);
 		ret = qman_enqueue(req->drv_ctx->req_fq, &fd);
-		if (likely(!ret)) {
-			refcount_inc(&req->drv_ctx->refcnt);
+		if (likely(!ret))
 			return 0;
-		}
 
+		refcount_dec(&req->drv_ctx->refcnt);
 		if (ret != -EBUSY)
 			break;
 		num_retries++;
drivers/crypto/tegra/tegra-se-aes.c +65 -66

255 lines not on this page · raw message

drivers/crypto/tegra/tegra-se-hash.c +25 -13
index 726e30c0e63e..451b8eaab16a 100644
@@ -332,6 +332,11 @@ static int tegra_sha_do_update(struct ahash_request *req)
 		return 0;
 	}
 
+	rctx->datbuf.buf = dma_alloc_coherent(ctx->se->dev, rctx->datbuf.size,
+					      &rctx->datbuf.addr, GFP_KERNEL);
+	if (!rctx->datbuf.buf)
+		return -ENOMEM;
+
 	/* Copy the previous residue first */
 	if (rctx->residue.size)
 		memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size);
@@ -368,6 +373,9 @@ static int tegra_sha_do_update(struct ahash_request *req)
 	if (!(rctx->task & SHA_FINAL))
 		tegra_sha_copy_hash_result(se, rctx);
 
+	dma_free_coherent(ctx->se->dev, rctx->datbuf.size,
+			  rctx->datbuf.buf, rctx->datbuf.addr);
+
 	return ret;
 }
 
@@ -380,7 +388,17 @@ static int tegra_sha_do_final(struct ahash_request *req)
 	u32 *cpuvaddr = se->cmdbuf->addr;
 	int size, ret = 0;
 
-	memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size);
+	if (rctx->residue.size) {
+		rctx->datbuf.buf = dma_alloc_coherent(se->dev, rctx->residue.size,
+						      &rctx->datbuf.addr, GFP_KERNEL);
+		if (!rctx->datbuf.buf) {
+			ret = -ENOMEM;
+			goto out_free;
+		}
+
+		memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size);
+	}
+
 	rctx->datbuf.size = rctx->residue.size;
 	rctx->total_len += rctx->residue.size;
 
@@ -397,8 +415,10 @@ static int tegra_sha_do_final(struct ahash_request *req)
 	memcpy(req->result, rctx->digest.buf, rctx->digest.size);
 
 out:
-	dma_free_coherent(se->dev, SE_SHA_BUFLEN,
-			  rctx->datbuf.buf, rctx->datbuf.addr);
+	if (rctx->residue.size)
+		dma_free_coherent(se->dev, rctx->datbuf.size,
+				  rctx->datbuf.buf, rctx->datbuf.addr);
+out_free:
 	dma_free_coherent(se->dev, crypto_ahash_blocksize(tfm),
 			  rctx->residue.buf, rctx->residue.addr);
 	dma_free_coherent(se->dev, rctx->digest.size, rctx->digest.buf,
@@ -534,19 +554,11 @@ static int tegra_sha_init(struct ahash_request *req)
 	if (!rctx->residue.buf)
 		goto resbuf_fail;
 
-	rctx->datbuf.buf = dma_alloc_coherent(se->dev, SE_SHA_BUFLEN,
-					      &rctx->datbuf.addr, GFP_KERNEL);
-	if (!rctx->datbuf.buf)
-		goto datbuf_fail;
-
 	return 0;
 
-datbuf_fail:
-	dma_free_coherent(se->dev, rctx->blk_size, rctx->residue.buf,
-			  rctx->residue.addr);
 resbuf_fail:
-	dma_free_coherent(se->dev, SE_SHA_BUFLEN, rctx->datbuf.buf,
-			  rctx->datbuf.addr);
+	dma_free_coherent(se->dev, rctx->digest.size, rctx->digest.buf,
+			  rctx->digest.addr);
 digbuf_fail:
 	return -ENOMEM;
 }
drivers/crypto/tegra/tegra-se.h +0 -2
index b54aefe717a1..e196a90eedb9 100644
@@ -340,8 +340,6 @@
 #define SE_CRYPTO_CTR_REG_COUNT			4
 #define SE_MAX_KEYSLOT				15
 #define SE_MAX_MEM_ALLOC			SZ_4M
-#define SE_AES_BUFLEN				0x8000
-#define SE_SHA_BUFLEN				0x2000
 
 #define SHA_FIRST	BIT(0)
 #define SHA_UPDATE	BIT(1)
drivers/dma-buf/sw_sync.c +14 -5
index c353029789cf..1290886f065e 100644
@@ -444,15 +444,17 @@ static int sw_sync_ioctl_get_deadline(struct sync_timeline *obj, unsigned long a
 		return -EINVAL;
 
 	pt = dma_fence_to_sync_pt(fence);
-	if (!pt)
-		return -EINVAL;
+	if (!pt) {
+		ret = -EINVAL;
+		goto put_fence;
+	}
 
 	spin_lock_irqsave(fence->lock, flags);
-	if (test_bit(SW_SYNC_HAS_DEADLINE_BIT, &fence->flags)) {
-		data.deadline_ns = ktime_to_ns(pt->deadline);
-	} else {
+	if (!test_bit(SW_SYNC_HAS_DEADLINE_BIT, &fence->flags)) {
 		ret = -ENOENT;
+		goto unlock;
 	}
+	data.deadline_ns = ktime_to_ns(pt->deadline);
 	spin_unlock_irqrestore(fence->lock, flags);
 
 	dma_fence_put(fence);
@@ -464,6 +466,13 @@ static int sw_sync_ioctl_get_deadline(struct sync_timeline *obj, unsigned long a
 		return -EFAULT;
 
 	return 0;
+
+unlock:
+	spin_unlock_irqrestore(fence->lock, flags);
+put_fence:
+	dma_fence_put(fence);
+
+	return ret;
 }
 
 static long sw_sync_ioctl(struct file *file, unsigned int cmd,
drivers/firmware/efi/libstub/efistub.h +1 -1
index 685098f9626f..eebcdf653d07 100644
@@ -171,7 +171,7 @@ void efi_set_u64_split(u64 data, u32 *lo, u32 *hi)
  * the EFI memory map. Other related structures, e.g. x86 e820ext, need
  * to factor in this headroom requirement as well.
  */
-#define EFI_MMAP_NR_SLACK_SLOTS	8
+#define EFI_MMAP_NR_SLACK_SLOTS	32
 
 typedef struct efi_generic_dev_path efi_device_path_protocol_t;
 
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +27 -7
index 45affc02548c..a3a7d20ab4fe 100644
@@ -437,6 +437,13 @@ static bool amdgpu_get_bios_apu(struct amdgpu_device *adev)
 	return true;
 }
 
+static bool amdgpu_prefer_rom_resource(struct amdgpu_device *adev)
+{
+	struct resource *res = &adev->pdev->resource[PCI_ROM_RESOURCE];
+
+	return (res->flags & IORESOURCE_ROM_SHADOW);
+}
+
 static bool amdgpu_get_bios_dgpu(struct amdgpu_device *adev)
 {
 	if (amdgpu_atrm_get_bios(adev)) {
@@ -455,14 +462,27 @@ static bool amdgpu_get_bios_dgpu(struct amdgpu_device *adev)
 		goto success;
 	}
 
-	if (amdgpu_read_platform_bios(adev)) {
-		dev_info(adev->dev, "Fetched VBIOS from platform\n");
-		goto success;
-	}
+	if (amdgpu_prefer_rom_resource(adev)) {
+		if (amdgpu_read_bios(adev)) {
+			dev_info(adev->dev, "Fetched VBIOS from ROM BAR\n");
+			goto success;
+		}
 
-	if (amdgpu_read_bios(adev)) {
-		dev_info(adev->dev, "Fetched VBIOS from ROM BAR\n");
-		goto success;
+		if (amdgpu_read_platform_bios(adev)) {
+			dev_info(adev->dev, "Fetched VBIOS from platform\n");
+			goto success;
+		}
+
+	} else {
+		if (amdgpu_read_platform_bios(adev)) {
+			dev_info(adev->dev, "Fetched VBIOS from platform\n");
+			goto success;
+		}
+
+		if (amdgpu_read_bios(adev)) {
+			dev_info(adev->dev, "Fetched VBIOS from ROM BAR\n");
+			goto success;
+		}
 	}
 
 	if (amdgpu_read_bios_from_rom(adev)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
index 31d4df968898..24d007715a14 100644
@@ -3322,6 +3322,7 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev)
 			amdgpu_device_mem_scratch_fini(adev);
 			amdgpu_ib_pool_fini(adev);
 			amdgpu_seq64_fini(adev);
+			amdgpu_doorbell_fini(adev);
 		}
 
 		r = adev->ip_blocks[i].version->funcs->sw_fini((void *)adev);
@@ -4670,7 +4671,6 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev)
 
 		iounmap(adev->rmmio);
 		adev->rmmio = NULL;
-		amdgpu_doorbell_fini(adev);
 		drm_dev_exit(idx);
 	}
 
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c +1 -1
index 8e81a83d37d8..2f90fff1b9dd 100644
@@ -181,7 +181,7 @@ static void amdgpu_dma_buf_unmap(struct dma_buf_attachment *attach,
 				 struct sg_table *sgt,
 				 enum dma_data_direction dir)
 {
-	if (sgt->sgl->page_link) {
+	if (sg_page(sgt->sgl)) {
 		dma_unmap_sgtable(attach->dev, sgt, dir, 0);
 		sg_free_table(sgt);
 		kfree(sgt);
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +24 -20

84 lines not on this page · raw message

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +2 -2
index 971419e3a9bb..4c4bdc4f51b2 100644
@@ -161,8 +161,8 @@ void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain)
 		 * When GTT is just an alternative to VRAM make sure that we
 		 * only use it as fallback and still try to fill up VRAM first.
 		 */
-		if (domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM &&
-		    !(adev->flags & AMD_IS_APU))
+		if (abo->tbo.resource && !(adev->flags & AMD_IS_APU) &&
+		    domain & abo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM)
 			places[c].flags |= TTM_PL_FLAG_FALLBACK;
 		c++;
 	}
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +4 -0
index 231a3d490ea8..7a773fcd7752 100644
@@ -859,6 +859,10 @@ static void mes_v11_0_get_fw_version(struct amdgpu_device *adev)
 {
 	int pipe;
 
+	/* return early if we have already fetched these */
+	if (adev->mes.sched_version && adev->mes.kiq_version)
+		return;
+
 	/* get MES scheduler/KIQ versions */
 	mutex_lock(&adev->srbm_mutex);
 
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +12 -9
index b3175ff676f3..459f7b8d72b4 100644
@@ -1225,17 +1225,20 @@ static int mes_v12_0_queue_init(struct amdgpu_device *adev,
 		mes_v12_0_queue_init_register(ring);
 	}
 
-	/* get MES scheduler/KIQ versions */
-	mutex_lock(&adev->srbm_mutex);
-	soc21_grbm_select(adev, 3, pipe, 0, 0);
+	if (((pipe == AMDGPU_MES_SCHED_PIPE) && !adev->mes.sched_version) ||
+	    ((pipe == AMDGPU_MES_KIQ_PIPE) && !adev->mes.kiq_version)) {
+		/* get MES scheduler/KIQ versions */
+		mutex_lock(&adev->srbm_mutex);
+		soc21_grbm_select(adev, 3, pipe, 0, 0);
 
-	if (pipe == AMDGPU_MES_SCHED_PIPE)
-		adev->mes.sched_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO);
-	else if (pipe == AMDGPU_MES_KIQ_PIPE && adev->enable_mes_kiq)
-		adev->mes.kiq_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO);
+		if (pipe == AMDGPU_MES_SCHED_PIPE)
+			adev->mes.sched_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO);
+		else if (pipe == AMDGPU_MES_KIQ_PIPE && adev->enable_mes_kiq)
+			adev->mes.kiq_version = RREG32_SOC15(GC, 0, regCP_MES_GP3_LO);
 
-	soc21_grbm_select(adev, 0, 0, 0, 0);
-	mutex_unlock(&adev->srbm_mutex);
+		soc21_grbm_select(adev, 0, 0, 0, 0);
+		mutex_unlock(&adev->srbm_mutex);
+	}
 
 	return 0;
 }
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +56 -8

88 lines not on this page · raw message

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +4 -2
index 70fcfae8e4c5..2ac56e79df05 100644
@@ -113,6 +113,7 @@ bool amdgpu_dm_crtc_vrr_active(const struct dm_crtc_state *dm_state)
  *
  * Panel Replay and PSR SU
  * - Enable when:
+ *      - VRR is disabled
  *      - vblank counter is disabled
  *      - entry is allowed: usermode demonstrates an adequate number of fast
  *        commits)
@@ -131,19 +132,20 @@ static void amdgpu_dm_crtc_set_panel_sr_feature(
 	bool is_sr_active = (link->replay_settings.replay_allow_active ||
 				 link->psr_settings.psr_allow_active);
 	bool is_crc_window_active = false;
+	bool vrr_active = amdgpu_dm_crtc_vrr_active_irq(vblank_work->acrtc);
 
 #ifdef CONFIG_DRM_AMD_SECURE_DISPLAY
 	is_crc_window_active =
 		amdgpu_dm_crc_window_is_activated(&vblank_work->acrtc->base);
 #endif
 
-	if (link->replay_settings.replay_feature_enabled &&
+	if (link->replay_settings.replay_feature_enabled && !vrr_active &&
 		allow_sr_entry && !is_sr_active && !is_crc_window_active) {
 		amdgpu_dm_replay_enable(vblank_work->stream, true);
 	} else if (vblank_enabled) {
 		if (link->psr_settings.psr_version < DC_PSR_VERSION_SU_1 && is_sr_active)
 			amdgpu_dm_psr_disable(vblank_work->stream, false);
-	} else if (link->psr_settings.psr_feature_enabled &&
+	} else if (link->psr_settings.psr_feature_enabled && !vrr_active &&
 		allow_sr_entry && !is_sr_active && !is_crc_window_active) {
 
 		struct amdgpu_dm_connector *aconn =
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_wrapper.c +15 -2
index d35dd507cb9f..cb187604744e 100644
@@ -87,6 +87,8 @@ static void dml21_init(const struct dc *in_dc, struct dml2_context **dml_ctx, co
 	/* Store configuration options */
 	(*dml_ctx)->config = *config;
 
+	DC_FP_START();
+
 	/*Initialize SOCBB and DCNIP params */
 	dml21_initialize_soc_bb_params(&(*dml_ctx)->v21.dml_init, config, in_dc);
 	dml21_initialize_ip_params(&(*dml_ctx)->v21.dml_init, config, in_dc);
@@ -97,6 +99,8 @@ static void dml21_init(const struct dc *in_dc, struct dml2_context **dml_ctx, co
 
 	/*Initialize DML21 instance */
 	dml2_initialize_instance(&(*dml_ctx)->v21.dml_init);
+
+	DC_FP_END();
 }
 
 bool dml21_create(const struct dc *in_dc, struct dml2_context **dml_ctx, const struct dml2_configuration_options *config)
@@ -277,11 +281,16 @@ bool dml21_validate(const struct dc *in_dc, struct dc_state *context, struct dml
 {
 	bool out = false;
 
+	DC_FP_START();
+
 	/* Use dml_validate_only for fast_validate path */
-	if (fast_validate) {
+	if (fast_validate)
 		out = dml21_check_mode_support(in_dc, context, dml_ctx);
-	} else
+	else
 		out = dml21_mode_check_and_programming(in_dc, context, dml_ctx);
+
+	DC_FP_END();
+
 	return out;
 }
 
@@ -420,8 +429,12 @@ void dml21_copy(struct dml2_context *dst_dml_ctx,
 
 	dst_dml_ctx->v21.mode_programming.programming = dst_dml2_programming;
 
+	DC_FP_START();
+
 	/* need to initialize copied instance for internal references to be correct */
 	dml2_initialize_instance(&dst_dml_ctx->v21.dml_init);
+
+	DC_FP_END();
 }
 
 bool dml21_create_copy(struct dml2_context **dst_dml_ctx,
drivers/gpu/drm/amd/display/dc/dml2/dml2_wrapper.c +9 -0
index 4d64c45930da..cb2cb89dfecb 100644
@@ -734,11 +734,16 @@ bool dml2_validate(const struct dc *in_dc, struct dc_state *context, struct dml2
 		return out;
 	}
 
+	DC_FP_START();
+
 	/* Use dml_validate_only for fast_validate path */
 	if (fast_validate)
 		out = dml2_validate_only(context);
 	else
 		out = dml2_validate_and_build_resource(in_dc, context);
+
+	DC_FP_END();
+
 	return out;
 }
 
@@ -779,11 +784,15 @@ static void dml2_init(const struct dc *in_dc, const struct dml2_configuration_op
 		break;
 	}
 
+	DC_FP_START();
+
 	initialize_dml2_ip_params(*dml2, in_dc, &(*dml2)->v20.dml_core_ctx.ip);
 
 	initialize_dml2_soc_bbox(*dml2, in_dc, &(*dml2)->v20.dml_core_ctx.soc);
 
 	initialize_dml2_soc_states(*dml2, in_dc, &(*dml2)->v20.dml_core_ctx.soc, &(*dml2)->v20.dml_core_ctx.states);
+
+	DC_FP_END();
 }
 
 bool dml2_create(const struct dc *in_dc, const struct dml2_configuration_options *config, struct dml2_context **dml2)
drivers/gpu/drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c +5 -1
index 36d12db8d022..f5f1ccd8303c 100644
@@ -3003,7 +3003,11 @@ void dcn20_enable_stream(struct pipe_ctx *pipe_ctx)
 		dccg->funcs->set_dpstreamclk(dccg, DTBCLK0, tg->inst, dp_hpo_inst);
 
 		phyd32clk = get_phyd32clk_src(link);
-		dccg->funcs->enable_symclk32_se(dccg, dp_hpo_inst, phyd32clk);
+		if (link->cur_link_settings.link_rate == LINK_RATE_UNKNOWN) {
+			dccg->funcs->disable_symclk32_se(dccg, dp_hpo_inst);
+		} else {
+			dccg->funcs->enable_symclk32_se(dccg, dp_hpo_inst, phyd32clk);
+		}
 	} else {
 		if (dccg->funcs->enable_symclk_se)
 			dccg->funcs->enable_symclk_se(dccg, stream_enc->stream_enc_inst,
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c +5 -2
index 0b743669f23b..62f1e597787e 100644
@@ -1001,8 +1001,11 @@ void dcn401_enable_stream(struct pipe_ctx *pipe_ctx)
 	if (dc_is_dp_signal(pipe_ctx->stream->signal) || dc_is_virtual_signal(pipe_ctx->stream->signal)) {
 		if (dc->link_srv->dp_is_128b_132b_signal(pipe_ctx)) {
 			dccg->funcs->set_dpstreamclk(dccg, DPREFCLK, tg->inst, dp_hpo_inst);
-
-			dccg->funcs->enable_symclk32_se(dccg, dp_hpo_inst, phyd32clk);
+			if (link->cur_link_settings.link_rate == LINK_RATE_UNKNOWN) {
+				dccg->funcs->disable_symclk32_se(dccg, dp_hpo_inst);
+			} else {
+				dccg->funcs->enable_symclk32_se(dccg, dp_hpo_inst, phyd32clk);
+			}
 		} else {
 			/* need to set DTBCLK_P source to DPREFCLK for DP8B10B */
 			dccg->funcs->set_dtbclk_p_src(dccg, DPREFCLK, tg->inst);
drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c +1 -1
index 80386f698ae4..0ca6358a9782 100644
@@ -891,7 +891,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 	.disable_z10 = true,
 	.enable_legacy_fast_update = true,
 	.enable_z9_disable_interface = true, /* Allow support for the PMFW interface for disable Z9*/
-	.dml_hostvm_override = DML_HOSTVM_NO_OVERRIDE,
+	.dml_hostvm_override = DML_HOSTVM_OVERRIDE_FALSE,
 	.using_dml2 = false,
 };
 
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c +2 -2
index a8fc0fa44db6..ba5c1237fcfe 100644
@@ -267,10 +267,10 @@ int smu7_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed)
 	if (hwmgr->thermal_controller.fanInfo.bNoFan ||
 			(hwmgr->thermal_controller.fanInfo.
 			ucTachometerPulsesPerRevolution == 0) ||
-			speed == 0 ||
+			(!speed || speed > UINT_MAX/8) ||
 			(speed < hwmgr->thermal_controller.fanInfo.ulMinRPM) ||
 			(speed > hwmgr->thermal_controller.fanInfo.ulMaxRPM))
-		return 0;
+		return -EINVAL;
 
 	if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl))
 		smu7_fan_ctrl_stop_smc_fan_control(hwmgr);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c +2 -2
index 379012494da5..56423aedf3fa 100644
@@ -307,10 +307,10 @@ int vega10_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed)
 	int result = 0;
 
 	if (hwmgr->thermal_controller.fanInfo.bNoFan ||
-	    speed == 0 ||
+	    (!speed || speed > UINT_MAX/8) ||
 	    (speed < hwmgr->thermal_controller.fanInfo.ulMinRPM) ||
 	    (speed > hwmgr->thermal_controller.fanInfo.ulMaxRPM))
-		return -1;
+		return -EINVAL;
 
 	if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl))
 		result = vega10_fan_ctrl_stop_smc_fan_control(hwmgr);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c +1 -1
index a3331ffb2daf..1b1c88590156 100644
@@ -191,7 +191,7 @@ int vega20_fan_ctrl_set_fan_speed_rpm(struct pp_hwmgr *hwmgr, uint32_t speed)
 	uint32_t tach_period, crystal_clock_freq;
 	int result = 0;
 
-	if (!speed)
+	if (!speed || speed > UINT_MAX/8)
 		return -EINVAL;
 
 	if (PP_CAP(PHM_PlatformCaps_MicrocodeFanControl)) {
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c +3 -0
index fc1297fecc62..d4b954b22441 100644
@@ -1267,6 +1267,9 @@ static int arcturus_set_fan_speed_rpm(struct smu_context *smu,
 	uint32_t crystal_clock_freq = 2500;
 	uint32_t tach_period;
 
+	if (!speed || speed > UINT_MAX/8)
+		return -EINVAL;
+
 	tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed);
 	WREG32_SOC15(THM, 0, mmCG_TACH_CTRL_ARCT,
 		     REG_SET_FIELD(RREG32_SOC15(THM, 0, mmCG_TACH_CTRL_ARCT),
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c +1 -1
index 16fcd9dcd202..6c61e87359dd 100644
@@ -1199,7 +1199,7 @@ int smu_v11_0_set_fan_speed_rpm(struct smu_context *smu,
 	uint32_t crystal_clock_freq = 2500;
 	uint32_t tach_period;
 
-	if (speed == 0)
+	if (!speed || speed > UINT_MAX/8)
 		return -EINVAL;
 	/*
 	 * To prevent from possible overheat, some ASICs may have requirement
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1 -1
index 2024a85fa11b..4f78c84da780 100644
@@ -1228,7 +1228,7 @@ int smu_v13_0_set_fan_speed_rpm(struct smu_context *smu,
 	uint32_t tach_period;
 	int ret;
 
-	if (!speed)
+	if (!speed || speed > UINT_MAX/8)
 		return -EINVAL;
 
 	ret = smu_v13_0_auto_fan_control(smu, 0);
drivers/gpu/drm/ast/ast_dp.c +6 -0
index 00b364f9a71e..5dadc895e7f2 100644
@@ -17,6 +17,12 @@ static bool ast_astdp_is_connected(struct ast_device *ast)
 {
 	if (!ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xDF, AST_IO_VGACRDF_HPD))
 		return false;
+	/*
+	 * HPD might be set even if no monitor is connected, so also check that
+	 * the link training was successful.
+	 */
+	if (!ast_get_index_reg_mask(ast, AST_IO_VGACRI, 0xDC, AST_IO_VGACRDC_LINK_SUCCESS))
+		return false;
 	return true;
 }
 
drivers/gpu/drm/i915/display/intel_display.c +3 -1
index d5eb8de645a9..4f8899cd125d 100644
@@ -1006,7 +1006,9 @@ static bool vrr_params_changed(const struct intel_crtc_state *old_crtc_state,
 		old_crtc_state->vrr.vmin != new_crtc_state->vrr.vmin ||
 		old_crtc_state->vrr.vmax != new_crtc_state->vrr.vmax ||
 		old_crtc_state->vrr.guardband != new_crtc_state->vrr.guardband ||
-		old_crtc_state->vrr.pipeline_full != new_crtc_state->vrr.pipeline_full;
+		old_crtc_state->vrr.pipeline_full != new_crtc_state->vrr.pipeline_full ||
+		old_crtc_state->vrr.vsync_start != new_crtc_state->vrr.vsync_start ||
+		old_crtc_state->vrr.vsync_end != new_crtc_state->vrr.vsync_end;
 }
 
 static bool cmrr_params_changed(const struct intel_crtc_state *old_crtc_state,
drivers/gpu/drm/i915/gvt/opregion.c +4 -3
index 908f910420c2..4ef45520e199 100644
@@ -222,7 +222,6 @@ int intel_vgpu_init_opregion(struct intel_vgpu *vgpu)
 	u8 *buf;
 	struct opregion_header *header;
 	struct vbt v;
-	const char opregion_signature[16] = OPREGION_SIGNATURE;
 
 	gvt_dbg_core("init vgpu%d opregion\n", vgpu->id);
 	vgpu_opregion(vgpu)->va = (void *)__get_free_pages(GFP_KERNEL |
@@ -236,8 +235,10 @@ int intel_vgpu_init_opregion(struct intel_vgpu *vgpu)
 	/* emulated opregion with VBT mailbox only */
 	buf = (u8 *)vgpu_opregion(vgpu)->va;
 	header = (struct opregion_header *)buf;
-	memcpy(header->signature, opregion_signature,
-	       sizeof(opregion_signature));
+
+	static_assert(sizeof(header->signature) == sizeof(OPREGION_SIGNATURE) - 1);
+	memcpy(header->signature, OPREGION_SIGNATURE, sizeof(header->signature));
+
 	header->size = 0x8;
 	header->opregion_ver = 0x02000000;
 	header->mboxes = MBOX_VBT;
drivers/gpu/drm/imagination/pvr_fw.c +20 -7
index 3debc9870a82..d09c4c684116 100644
@@ -732,7 +732,7 @@ pvr_fw_process(struct pvr_device *pvr_dev)
 					       fw_mem->core_data, fw_mem->core_code_alloc_size);
 
 	if (err)
-		goto err_free_fw_core_data_obj;
+		goto err_free_kdata;
 
 	memcpy(fw_code_ptr, fw_mem->code, fw_mem->code_alloc_size);
 	memcpy(fw_data_ptr, fw_mem->data, fw_mem->data_alloc_size);
@@ -742,10 +742,14 @@ pvr_fw_process(struct pvr_device *pvr_dev)
 		memcpy(fw_core_data_ptr, fw_mem->core_data, fw_mem->core_data_alloc_size);
 
 	/* We're finished with the firmware section memory on the CPU, unmap. */
-	if (fw_core_data_ptr)
+	if (fw_core_data_ptr) {
 		pvr_fw_object_vunmap(fw_mem->core_data_obj);
-	if (fw_core_code_ptr)
+		fw_core_data_ptr = NULL;
+	}
+	if (fw_core_code_ptr) {
 		pvr_fw_object_vunmap(fw_mem->core_code_obj);
+		fw_core_code_ptr = NULL;
+	}
 	pvr_fw_object_vunmap(fw_mem->data_obj);
 	fw_data_ptr = NULL;
 	pvr_fw_object_vunmap(fw_mem->code_obj);
@@ -753,7 +757,7 @@ pvr_fw_process(struct pvr_device *pvr_dev)
 
 	err = pvr_fw_create_fwif_connection_ctl(pvr_dev);
 	if (err)
-		goto err_free_fw_core_data_obj;
+		goto err_free_kdata;
 
 	return 0;
 
@@ -763,13 +767,16 @@ pvr_fw_process(struct pvr_device *pvr_dev)
 	kfree(fw_mem->data);
 	kfree(fw_mem->code);
 
-err_free_fw_core_data_obj:
 	if (fw_core_data_ptr)
-		pvr_fw_object_unmap_and_destroy(fw_mem->core_data_obj);
+		pvr_fw_object_vunmap(fw_mem->core_data_obj);
+	if (fw_mem->core_data_obj)
+		pvr_fw_object_destroy(fw_mem->core_data_obj);
 
 err_free_fw_core_code_obj:
 	if (fw_core_code_ptr)
-		pvr_fw_object_unmap_and_destroy(fw_mem->core_code_obj);
+		pvr_fw_object_vunmap(fw_mem->core_code_obj);
+	if (fw_mem->core_code_obj)
+		pvr_fw_object_destroy(fw_mem->core_code_obj);
 
 err_free_fw_data_obj:
 	if (fw_data_ptr)
@@ -836,6 +843,12 @@ pvr_fw_cleanup(struct pvr_device *pvr_dev)
 	struct pvr_fw_mem *fw_mem = &pvr_dev->fw_dev.mem;
 
 	pvr_fw_fini_fwif_connection_ctl(pvr_dev);
+
+	kfree(fw_mem->core_data);
+	kfree(fw_mem->core_code);
+	kfree(fw_mem->data);
+	kfree(fw_mem->code);
+
 	if (fw_mem->core_code_obj)
 		pvr_fw_object_destroy(fw_mem->core_code_obj);
 	if (fw_mem->core_data_obj)
drivers/gpu/drm/imagination/pvr_job.c +7 -0
index 78c2f3c6dce0..6a15c1d2d871 100644
@@ -684,6 +684,13 @@ pvr_jobs_link_geom_frag(struct pvr_job_data *job_data, u32 *job_count)
 		geom_job->paired_job = frag_job;
 		frag_job->paired_job = geom_job;
 
+		/* The geometry job pvr_job structure is used when the fragment
+		 * job is being prepared by the GPU scheduler. Have the fragment
+		 * job hold a reference on the geometry job to prevent it being
+		 * freed until the fragment job has finished with it.
+		 */
+		pvr_job_get(geom_job);
+
 		/* Skip the fragment job we just paired to the geometry job. */
 		i++;
 	}
drivers/gpu/drm/imagination/pvr_queue.c +4 -0
index 87780cc7c0c3..130473cfdfc9 100644
@@ -866,6 +866,10 @@ static void pvr_queue_free_job(struct drm_sched_job *sched_job)
 	struct pvr_job *job = container_of(sched_job, struct pvr_job, base);
 
 	drm_sched_job_cleanup(sched_job);
+
+	if (job->type == DRM_PVR_JOB_TYPE_FRAGMENT && job->paired_job)
+		pvr_job_put(job->paired_job);
+
 	job->paired_job = NULL;
 	pvr_job_put(job);
 }
drivers/gpu/drm/mgag200/mgag200_mode.c +1 -1
index fb71658c3117..6067d08aeee3 100644
@@ -223,7 +223,7 @@ void mgag200_set_mode_regs(struct mga_device *mdev, const struct drm_display_mod
 	vsyncstr = mode->crtc_vsync_start - 1;
 	vsyncend = mode->crtc_vsync_end - 1;
 	vtotal = mode->crtc_vtotal - 2;
-	vblkstr = mode->crtc_vblank_start;
+	vblkstr = mode->crtc_vblank_start - 1;
 	vblkend = vtotal + 1;
 
 	linecomp = vdispend;
drivers/gpu/drm/msm/adreno/a6xx_gmu.c +39 -33

94 lines not on this page · raw message

drivers/gpu/drm/msm/adreno/a6xx_gpu.c +4 -4
index 702b8d4b3497..d903ad9c0b5f 100644
@@ -233,10 +233,10 @@ static void a6xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
 				break;
 			fallthrough;
 		case MSM_SUBMIT_CMD_BUF:
-			OUT_PKT7(ring, CP_INDIRECT_BUFFER_PFE, 3);
+			OUT_PKT7(ring, CP_INDIRECT_BUFFER, 3);
 			OUT_RING(ring, lower_32_bits(submit->cmd[i].iova));
 			OUT_RING(ring, upper_32_bits(submit->cmd[i].iova));
-			OUT_RING(ring, submit->cmd[i].size);
+			OUT_RING(ring, A5XX_CP_INDIRECT_BUFFER_2_IB_SIZE(submit->cmd[i].size));
 			ibs++;
 			break;
 		}
@@ -319,10 +319,10 @@ static void a7xx_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit)
 				break;
 			fallthrough;
 		case MSM_SUBMIT_CMD_BUF:
-			OUT_PKT7(ring, CP_INDIRECT_BUFFER_PFE, 3);
+			OUT_PKT7(ring, CP_INDIRECT_BUFFER, 3);
 			OUT_RING(ring, lower_32_bits(submit->cmd[i].iova));
 			OUT_RING(ring, upper_32_bits(submit->cmd[i].iova));
-			OUT_RING(ring, submit->cmd[i].size);
+			OUT_RING(ring, A5XX_CP_INDIRECT_BUFFER_2_IB_SIZE(submit->cmd[i].size));
 			ibs++;
 			break;
 		}
drivers/gpu/drm/msm/dsi/dsi_host.c +8 -1
index 7459fb8c5177..d22e01751f5e 100644
@@ -1827,8 +1827,15 @@ static int dsi_host_parse_dt(struct msm_dsi_host *msm_host)
 			__func__, ret);
 		goto err;
 	}
-	if (!ret)
+	if (!ret) {
 		msm_dsi->te_source = devm_kstrdup(dev, te_source, GFP_KERNEL);
+		if (!msm_dsi->te_source) {
+			DRM_DEV_ERROR(dev, "%s: failed to allocate te_source\n",
+				__func__);
+			ret = -ENOMEM;
+			goto err;
+		}
+	}
 	ret = 0;
 
 	if (of_property_read_bool(np, "syscon-sfpb")) {
drivers/gpu/drm/msm/registers/adreno/adreno_pm4.xml +7 -0
index cab01af55d22..c6cdc5c003dc 100644
@@ -2264,5 +2264,12 @@ opcode: CP_LOAD_STATE4 (30) (4 dwords)
 	</reg32>
 </domain>
 
+<domain name="CP_INDIRECT_BUFFER" width="32" varset="chip" prefix="chip" variants="A5XX-">
+	<reg64 offset="0" name="IB_BASE" type="address"/>
+	<reg32 offset="2" name="2">
+		<bitfield name="IB_SIZE" low="0" high="19"/>
+	</reg32>
+</domain>
+
 </database>
 
drivers/gpu/drm/nouveau/nouveau_bo.c +3 -0
index db961eade225..2016c1e7242f 100644
@@ -144,6 +144,9 @@ nouveau_bo_del_ttm(struct ttm_buffer_object *bo)
 	nouveau_bo_del_io_reserve_lru(bo);
 	nv10_bo_put_tile_region(dev, nvbo->tile, NULL);
 
+	if (bo->base.import_attach)
+		drm_prime_gem_destroy(&bo->base, bo->sg);
+
 	/*
 	 * If nouveau_bo_new() allocated this buffer, the GEM object was never
 	 * initialized, so don't attempt to release it.
drivers/gpu/drm/nouveau/nouveau_gem.c +0 -3
index 9ae2cee1c7c5..67e3c99de73a 100644
@@ -87,9 +87,6 @@ nouveau_gem_object_del(struct drm_gem_object *gem)
 		return;
 	}
 
-	if (gem->import_attach)
-		drm_prime_gem_destroy(gem, nvbo->bo.sg);
-
 	ttm_bo_put(&nvbo->bo);
 
 	pm_runtime_mark_last_busy(dev);
drivers/gpu/drm/sti/Makefile +0 -2
index f203ac5514ae..f778a4eee7c9 100644
@@ -7,8 +7,6 @@ sti-drm-y := \
 	sti_compositor.o \
 	sti_crtc.o \
 	sti_plane.o \
-	sti_crtc.o \
-	sti_plane.o \
 	sti_hdmi.o \
 	sti_hdmi_tx3g4c28phy.o \
 	sti_dvo.o \
drivers/gpu/drm/tiny/repaper.c +2 -2
index 1f78aa3d26bb..768dfea15aec 100644
@@ -455,7 +455,7 @@ static void repaper_frame_fixed_repeat(struct repaper_epd *epd, u8 fixed_value,
 				       enum repaper_stage stage)
 {
 	u64 start = local_clock();
-	u64 end = start + (epd->factored_stage_time * 1000 * 1000);
+	u64 end = start + ((u64)epd->factored_stage_time * 1000 * 1000);
 
 	do {
 		repaper_frame_fixed(epd, fixed_value, stage);
@@ -466,7 +466,7 @@ static void repaper_frame_data_repeat(struct repaper_epd *epd, const u8 *image,
 				      const u8 *mask, enum repaper_stage stage)
 {
 	u64 start = local_clock();
-	u64 end = start + (epd->factored_stage_time * 1000 * 1000);
+	u64 end = start + ((u64)epd->factored_stage_time * 1000 * 1000);
 
 	do {
 		repaper_frame_data(epd, image, mask, stage);
drivers/gpu/drm/v3d/v3d_sched.c +13 -3
index 3066cfdb054c..4a6aa36619fe 100644
@@ -410,7 +410,8 @@ v3d_rewrite_csd_job_wg_counts_from_indirect(struct v3d_cpu_job *job)
 	struct v3d_bo *bo = to_v3d_bo(job->base.bo[0]);
 	struct v3d_bo *indirect = to_v3d_bo(indirect_csd->indirect);
 	struct drm_v3d_submit_csd *args = &indirect_csd->job->args;
-	u32 *wg_counts;
+	struct v3d_dev *v3d = job->base.v3d;
+	u32 num_batches, *wg_counts;
 
 	v3d_get_bo_vaddr(bo);
 	v3d_get_bo_vaddr(indirect);
@@ -423,8 +424,17 @@ v3d_rewrite_csd_job_wg_counts_from_indirect(struct v3d_cpu_job *job)
 	args->cfg[0] = wg_counts[0] << V3D_CSD_CFG012_WG_COUNT_SHIFT;
 	args->cfg[1] = wg_counts[1] << V3D_CSD_CFG012_WG_COUNT_SHIFT;
 	args->cfg[2] = wg_counts[2] << V3D_CSD_CFG012_WG_COUNT_SHIFT;
-	args->cfg[4] = DIV_ROUND_UP(indirect_csd->wg_size, 16) *
-		       (wg_counts[0] * wg_counts[1] * wg_counts[2]) - 1;
+
+	num_batches = DIV_ROUND_UP(indirect_csd->wg_size, 16) *
+		      (wg_counts[0] * wg_counts[1] * wg_counts[2]);
+
+	/* V3D 7.1.6 and later don't subtract 1 from the number of batches */
+	if (v3d->ver < 71 || (v3d->ver == 71 && v3d->rev < 6))
+		args->cfg[4] = num_batches - 1;
+	else
+		args->cfg[4] = num_batches;
+
+	WARN_ON(args->cfg[4] == ~0);
 
 	for (int i = 0; i < 3; i++) {
 		/* 0xffffffff indicates that the uniform rewrite is not needed */
drivers/gpu/drm/xe/xe_dma_buf.c +1 -4
index f3bf7d3157b4..78204578443f 100644
@@ -145,10 +145,7 @@ static void xe_dma_buf_unmap(struct dma_buf_attachment *attach,
 			     struct sg_table *sgt,
 			     enum dma_data_direction dir)
 {
-	struct dma_buf *dma_buf = attach->dmabuf;
-	struct xe_bo *bo = gem_to_xe_bo(dma_buf->priv);
-
-	if (!xe_bo_is_vram(bo)) {
+	if (sg_page(sgt->sgl)) {
 		dma_unmap_sgtable(attach->dev, sgt, dir, 0);
 		sg_free_table(sgt);
 		kfree(sgt);
drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c +10 -2
index ace1fe831a7b..98a450271f5c 100644
@@ -310,6 +310,13 @@ int xe_gt_tlb_invalidation_ggtt(struct xe_gt *gt)
 	return 0;
 }
 
+/*
+ * Ensure that roundup_pow_of_two(length) doesn't overflow.
+ * Note that roundup_pow_of_two() operates on unsigned long,
+ * not on u64.
+ */
+#define MAX_RANGE_TLB_INVALIDATION_LENGTH (rounddown_pow_of_two(ULONG_MAX))
+
 /**
  * xe_gt_tlb_invalidation_range - Issue a TLB invalidation on this GT for an
  * address range
@@ -334,6 +341,7 @@ int xe_gt_tlb_invalidation_range(struct xe_gt *gt,
 	struct xe_device *xe = gt_to_xe(gt);
 #define MAX_TLB_INVALIDATION_LEN	7
 	u32 action[MAX_TLB_INVALIDATION_LEN];
+	u64 length = end - start;
 	int len = 0;
 
 	xe_gt_assert(gt, fence);
@@ -346,11 +354,11 @@ int xe_gt_tlb_invalidation_range(struct xe_gt *gt,
 
 	action[len++] = XE_GUC_ACTION_TLB_INVALIDATION;
 	action[len++] = 0; /* seqno, replaced in send_tlb_invalidation */
-	if (!xe->info.has_range_tlb_invalidation) {
+	if (!xe->info.has_range_tlb_invalidation ||
+	    length > MAX_RANGE_TLB_INVALIDATION_LENGTH) {
 		action[len++] = MAKE_INVAL_OP(XE_GUC_TLB_INVAL_FULL);
 	} else {
 		u64 orig_start = start;
-		u64 length = end - start;
 		u64 align;
 
 		if (length < SZ_4K)
drivers/gpu/drm/xe/xe_guc_ads.c +45 -30

134 lines not on this page · raw message

drivers/gpu/drm/xe/xe_hmm.c +0 -24
index f6bc4f29d753..3d0278c3db93 100644
@@ -19,29 +19,6 @@ static u64 xe_npages_in_range(unsigned long start, unsigned long end)
 	return (end - start) >> PAGE_SHIFT;
 }
 
-/**
- * xe_mark_range_accessed() - mark a range is accessed, so core mm
- * have such information for memory eviction or write back to
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_migrate.c +1 -1
index 1b97d90aadda..6431697c6169 100644

Lines of this file are not shown. View the raw message.

drivers/i2c/busses/i2c-cros-ec-tunnel.c +3 -0
index ab2688bd4d33..e19cb62d6796 100644

Lines of this file are not shown. View the raw message.

drivers/i2c/i2c-atr.c +1 -1
index 0d54d0b5e327..5342e934aa5e 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/core/cma.c +3 -1
index 91db10515d74..176d0b3e4488 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/core/umem_odp.c +4 -2
index e9fa22d31c23..c48ef6083020 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/hns/hns_roce_main.c +1 -1
index cf89a8db4f64..8d0b63d4b50a 100644

Lines of this file are not shown. View the raw message.

drivers/infiniband/hw/usnic/usnic_ib_main.c +7 -7
index 13b654ddd3cc..bcf7d8607d56 100644

Lines of this file are not shown. View the raw message.

drivers/md/md-bitmap.c +2 -3
index 2e3087556adb..fbb4f57010da 100644

Lines of this file are not shown. View the raw message.

drivers/md/md.c +13 -9
index fff28aea23c8..7809b951e09a 100644

Lines of this file are not shown. View the raw message.

drivers/md/raid10.c +1 -0
index a214fed4f162..cc194f6ec18d 100644

Lines of this file are not shown. View the raw message.

drivers/misc/pci_endpoint_test.c +4 -0
index 8dea2b44fd8b..e22afb420d09 100644

Lines of this file are not shown. View the raw message.

drivers/net/can/rockchip/rockchip_canfd-core.c +4 -3
index d9a937ba126c..ac514766d431 100644

Lines of this file are not shown. View the raw message.

drivers/net/dsa/b53/b53_common.c +10 -0
index c39cb119e760..d4600ab0b70b 100644

Lines of this file are not shown. View the raw message.

drivers/net/dsa/mv88e6xxx/chip.c +12 -1
index e20d9d62032e..df1df6015412 100644

Lines of this file are not shown. View the raw message.

drivers/net/dsa/mv88e6xxx/devlink.c +2 -1
index a08dab75e0c0..f57fde02077d 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/amd/pds_core/debugfs.c +3 -2
index ac37a4e738ae..04c5e3abd8d7 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -2
index e7580df13229..016dcfec8d49 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c +1 -0
index 7f3f5afa864f..1546c3db08f0 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igc/igc.h +1 -0
index eac0f966e0e4..323db1e2be38 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igc/igc_defines.h +5 -1
index 8e449904aa7d..d19325b0e6e0 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igc/igc_main.c +1 -0
index 1ec9e8cc99d9..082b0baf5d37 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igc/igc_ptp.c +74 -39

113 lines not on this page · raw message

drivers/net/ethernet/mediatek/mtk_eth_soc.c +29 -20

49 lines not on this page · raw message

drivers/net/ethernet/mediatek/mtk_eth_soc.h +1 -0
index 0d5225f1d3ee..8d7b6818d860 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/ti/am65-cpsw-nuss.c +14 -1
index 308a2b72a65d..a21e7c0afbfd 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/ti/icssg/icss_iep.c +102 -52

154 lines not on this page · raw message

drivers/net/ethernet/wangxun/ngbe/ngbe_main.c +2 -1
index 53aeae2f884b..1be2a5cc4a83 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/txgbe/txgbe_main.c +2 -1
index f77450268036..7e352837184f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath/ath12k/dp_mon.c +2 -2
index 1706ec27eb9c..4c98b9de1e58 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/atmel/at76c50x-usb.c +1 -1
index 504e05ea30f2..97ea7ab0f491 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ti/wl1251/tx.c +3 -1
index 474b603c121c..adb4840b0489 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/apple.c +1 -1
index e79a0adf1395..328f5a103628 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/host/pci.c +7 -8
index af45a1b865ee..e70618e8d35e 100644

Lines of this file are not shown. View the raw message.

drivers/nvme/target/fc.c +0 -14
index 3ef4beacde32..7318b736d414 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pci.c +0 -4
index be61fa93d397..25c07af1686b 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/amd/pmf/auto-mode.c +2 -2
index 02ff68be10d0..a184922bba8d 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/amd/pmf/cnqf.c +4 -4
index bc8899e15c91..207a0b33d8d3 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/amd/pmf/core.c +14 -0
index 347bb43a5f2b..719caa2a00f0 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/amd/pmf/pmf.h +1 -0
index 43ba1b9aa181..34ba0309a33a 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/amd/pmf/sps.c +8 -4
index 92f7fb22277d..3a24209f7df0 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/amd/pmf/tee-if.c +4 -2
index 09131507d7a9..cb5abab2210a 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/asus-laptop.c +6 -3
index 9d7e6b712abf..8d2e6d8be9e5 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/msi-wmi-platform.c +63 -36

99 lines not on this page · raw message

drivers/ptp/ptp_ocp.c +1 -0
index 120db96d9e95..0eeb503e06c2 100644

Lines of this file are not shown. View the raw message.

drivers/ras/amd/atl/internal.h +3 -0
index 143d04c779a8..b7c7d5ba4d9d 100644

Lines of this file are not shown. View the raw message.

drivers/ras/amd/atl/umc.c +17 -2
index dc8aa12f63c8..6e072b7667e9 100644

Lines of this file are not shown. View the raw message.

drivers/ras/amd/fmpm.c +8 -1
index 90de737fbc90..8877c6ff64c4 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/fnic/fnic_main.c +1 -2
index adec0df24bc4..1cb517f731f4 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/hisi_sas/hisi_sas.h +0 -1
index d223f482488f..010479a354ee 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/hisi_sas/hisi_sas_v2_hw.c +7 -2
index 342d75f12051..89ff33daba40 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +14 -4
index cd394d8c9f07..2b04556681a1 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/megaraid/megaraid_sas_base.c +8 -4
index 50f1dcb6d584..21f22e913cd0 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/megaraid/megaraid_sas_fusion.c +4 -1
index 1eec23da28e2..1eea4df9e47d 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/mpi3mr/mpi3mr.h +0 -1
index ee5a75a4b3bb..ab7c5f1fc041 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/mpi3mr/mpi3mr_os.c +1 -1
index 1bef88130d0c..1e8735538b23 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/mpt3sas/mpt3sas_scsih.c +1 -2
index f2a55aa5fe65..9599d7a50028 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/pm8001/pm8001_init.c +1 -1
index 33e1eba62ca1..b53b1ae5b74c 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/pm8001/pm8001_sas.h +0 -1
index ced6721380a8..c46470e0cf63 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_nvme.c +1 -2
index 8f4cc136a9c9..8ee2e337c9e1 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_os.c +2 -2
index 7ab717ed7232..31535beaaa16 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/scsi_transport_iscsi.c +5 -2
index 9b47f91c5b97..8274fe0ec714 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/smartpqi/smartpqi_init.c +10 -10
index 870f37b70546..d919a74746a0 100644

Lines of this file are not shown. View the raw message.

drivers/ufs/host/ufs-exynos.c +6 -0
index 98505c68103d..f2cbfc2d399c 100644

Lines of this file are not shown. View the raw message.

fs/Kconfig +1 -0
index aae170fc2795..311730467633 100644

Lines of this file are not shown. View the raw message.

fs/btrfs/super.c +1 -2
index 73343503ea60..08ccf5d5e144 100644

Lines of this file are not shown. View the raw message.

fs/fuse/virtio_fs.c +3 -0
index d220e28e755f..749c9f66d74c 100644

Lines of this file are not shown. View the raw message.

fs/hfs/bnode.c +6 -0
index 6add6ebfef89..cb823a8a6ba9 100644

Lines of this file are not shown. View the raw message.

fs/hfsplus/bnode.c +6 -0
index 87974d5e6791..079ea80534f7 100644

Lines of this file are not shown. View the raw message.

fs/isofs/export.c +1 -1
index 35768a63fb1d..421d247fae52 100644

Lines of this file are not shown. View the raw message.

fs/nfs/Kconfig +1 -1
index d3f76101ad4b..07932ce9246c 100644

Lines of this file are not shown. View the raw message.

fs/nfs/internal.h +0 -7
index 6bcc4b0e00ab..8b568a514fd1 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4session.h +0 -4
index 351616c61df5..f9c291e2165c 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/Kconfig +1 -0
index c0bd1509ccd4..9eb2e795c43c 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4state.c +1 -1
index 5e81c819c384..c50839a015e9 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfsfh.h +0 -7
index 876152a91f12..5103c2f4d225 100644

Lines of this file are not shown. View the raw message.

fs/overlayfs/overlayfs.h +0 -2
index 844874b4a91a..500a9634ad53 100644

Lines of this file are not shown. View the raw message.

fs/overlayfs/super.c +5 -0
index fe511192f83c..87a36c6eea5f 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifsproto.h +2 -0
index 907af3cbffd1..90b7b30abfbd 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/connect.c +9 -25
index 3aaf5cdce1b7..d5549e06a533 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/file.c +28 -0
index 313c851fc1c1..0f6fec042f6a 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/oplock.c +9 -20
index deacf78b4400..e2ba0dadb5fb 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/oplock.h +0 -1
index 3f64f0787263..9a56eaadd0dd 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/smb2pdu.c +3 -1
index 7fea86edc717..129517a0c5c7 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/transport_ipc.c +6 -1
index 87af57cf35a1..9b3c68014aee 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/vfs.c +2 -1
index ee825971abd9..8fd070e31fa7 100644

Lines of this file are not shown. View the raw message.

include/linux/backing-dev.h +1 -0
index 8e7af9a03b41..e721148c95d0 100644

Lines of this file are not shown. View the raw message.

include/linux/blk-mq.h +51 -50

101 lines not on this page · raw message

include/linux/blkdev.h +8 -3
index 8f37c5dd52b2..b94dc4b796f5 100644

Lines of this file are not shown. View the raw message.

include/linux/bpf.h +1 -0
index a7af13f550e0..1150a595aa54 100644

Lines of this file are not shown. View the raw message.

include/linux/bpf_verifier.h +1 -0
index 4513372c5bc8..50eeb5b86ed7 100644

Lines of this file are not shown. View the raw message.

include/linux/device/bus.h +3 -0
index cdc4757217f9..b18658bce2c3 100644

Lines of this file are not shown. View the raw message.

include/linux/nfs.h +0 -7
index 9ad727ddfedb..0906a0b40c6a 100644

Lines of this file are not shown. View the raw message.

io_uring/rw.c +2 -2
index 6abc495602a4..a1ed64760eba 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/verifier.c +70 -9

79 lines not on this page · raw message

kernel/sched/cpufreq_schedutil.c +39 -7

46 lines not on this page · raw message

kernel/trace/ftrace.c +4 -3
index 90b59c627bb8..e67d67f7b906 100644

Lines of this file are not shown. View the raw message.

kernel/trace/trace_events_filter.c +2 -2
index 0c611b281a5b..f50c2ad43f3d 100644

Lines of this file are not shown. View the raw message.

lib/string.c +10 -3
index 76327b51e36f..e657809fa718 100644

Lines of this file are not shown. View the raw message.

mm/compaction.c +3 -3
index 77dbb9022b47..eb5474dea04d 100644

Lines of this file are not shown. View the raw message.

mm/filemap.c +1 -0
index 3c37ad6c598b..fa18e71f9c88 100644

Lines of this file are not shown. View the raw message.

mm/gup.c +2 -2
index d27e7c9e2596..90866b827b60 100644

Lines of this file are not shown. View the raw message.

mm/memory.c +2 -2
index 99dceaf6a105..b6daa0e673a5 100644

Lines of this file are not shown. View the raw message.

mm/slub.c +10 -0
index b9447a955f61..c26d9cd107cc 100644

Lines of this file are not shown. View the raw message.

mm/userfaultfd.c +11 -2
index 080a00d916f6..748b52ce8567 100644

Lines of this file are not shown. View the raw message.

mm/vma.c +34 -4
index c9ddc06b672a..9b4517944901 100644

Lines of this file are not shown. View the raw message.

mm/vma.h +8 -1
index d58068c0ff2e..729fe3741e89 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_event.c +3 -2
index d64117be62cc..96ad1b75d1c4 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/l2cap_core.c +19 -2
index c27ea70f71e1..a55388fbf07c 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_vlan.c +3 -1
index 89f51ea4cabe..f2efb58d152b 100644

Lines of this file are not shown. View the raw message.

net/dsa/dsa.c +49 -10

59 lines not on this page · raw message

net/dsa/tag_8021q.c +1 -1
index 3ee53e28ec2e..53e03fd8071b 100644

Lines of this file are not shown. View the raw message.

net/ethtool/cmis_cdb.c +1 -1
index 4d5581147952..8bf99295bfbe 100644

Lines of this file are not shown. View the raw message.

net/ipv6/route.c +1 -0
index bae8ece3e881..d9ab070e78e0 100644

Lines of this file are not shown. View the raw message.

net/mac80211/iface.c +3 -0
index dbcd75c5d778..7e1e561ef76c 100644

Lines of this file are not shown. View the raw message.

net/mctp/af_mctp.c +3 -0
index f6de136008f6..57850d4dac5d 100644

Lines of this file are not shown. View the raw message.

net/openvswitch/flow_netlink.c +2 -1
index 0df89240b733..305daf57a4f9 100644

Lines of this file are not shown. View the raw message.

net/smc/af_smc.c +5 -0
index ebc41a7b13db..78b0e6dba0a2 100644

Lines of this file are not shown. View the raw message.

scripts/Makefile.compiler +2 -2
index e0842496d26e..c6cd729b65cb 100644

Lines of this file are not shown. View the raw message.

scripts/generate_rust_analyzer.py +9 -3
index d1f5adbf33f9..690f9830f064 100755

Lines of this file are not shown. View the raw message.

sound/pci/hda/Kconfig +1 -3
index dbf933c18a82..fd9391e61b3d 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +47 -8

55 lines not on this page · raw message

sound/soc/codecs/cs42l43-jack.c +3 -0
index d9ab003e166b..73d764fc8539 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/lpass-wsa-macro.c +84 -33

117 lines not on this page · raw message

sound/soc/dwc/dwc-i2s.c +6 -7
index 57b789d7fbed..5b4f20dbf7bb 100644

Lines of this file are not shown. View the raw message.

sound/soc/fsl/fsl_qmc_audio.c +3 -0
index 8668abd35208..d41cb6f3efca 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/avs/pcm.c +2 -1
index 945f9c0a6a54..15defce0f3eb 100644

Lines of this file are not shown. View the raw message.

sound/soc/intel/boards/sof_sdw.c +1 -0
index 380fc3be8c93..5911a0558651 100644

Lines of this file are not shown. View the raw message.

sound/soc/qcom/lpass.h +2 -1
index 27a2bf9a6613..de3ec6f594c1 100644

Lines of this file are not shown. View the raw message.

tools/objtool/check.c +1 -0
index 127862fa05c6..ce3ea0c2de04 100644

Lines of this file are not shown. View the raw message.

tools/testing/kunit/qemu_configs/sh.py +3 -1
index 78a474a5b95f..f00cb89fdef6 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c new file +107 -0

107 lines not on this page · raw message

tools/testing/selftests/bpf/progs/changes_pkt_data.c new file +39 -0
new file mode 100644
index 000000000000..43cada48b28a

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c new file +18 -0
new file mode 100644
index 000000000000..f9a622705f1b

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/progs/raw_tp_null.c +9 -10
index 457f34c151e3..5927054b6dd9 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/bpf/progs/verifier_sock.c +56 -0

56 lines not on this page · raw message

tools/testing/selftests/mm/charge_reserved_hugetlb.sh +2 -2
index 67df7b47087f..e1fe16bcbbe8 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/mm/hugetlb_reparenting_test.sh +1 -1
index 11f9bbe7dc22..0b0d4ba1af27 100755

Lines of this file are not shown. View the raw message.

tools/testing/shared/linux.c +2 -2
index 17263696b5d8..61b3f571f7a7 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.