Linux 6.12.80
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.12.80 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/admin-guide/kernel-parameters.txt | 3 Documentation/filesystems/overlayfs.rst | 50 ++ Documentation/hwmon/adm1177.rst | 8 Documentation/hwmon/peci-cputemp.rst | 10 Makefile | 2 arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dts | 13 arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi | 22 + arch/arm64/kvm/reset.c | 14 arch/loongarch/include/asm/linkage.h | 36 + arch/loongarch/include/asm/sigframe.h | 9 arch/loongarch/kernel/asm-offsets.c | 2 arch/loongarch/kernel/env.c | 7 arch/loongarch/kernel/signal.c | 6 arch/loongarch/kvm/vcpu.c | 3 arch/loongarch/pci/pci.c | 80 ++++ arch/loongarch/vdso/Makefile | 4 arch/loongarch/vdso/sigreturn.S | 6 arch/powerpc/net/bpf_jit_comp64.c | 23 - arch/s390/include/asm/barrier.h | 4 arch/s390/kernel/entry.S | 3 arch/s390/kernel/syscall.c | 2 arch/sh/drivers/platform_early.c | 4 arch/x86/kernel/cpu/common.c | 20 - arch/x86/kvm/mmu/mmu.c | 14 arch/x86/platform/efi/quirks.c | 2 drivers/acpi/ec.c | 2 drivers/base/bus.c | 43 ++ drivers/base/core.c | 2 drivers/base/dd.c | 60 +++ drivers/base/platform.c | 37 - drivers/base/regmap/regmap.c | 30 + drivers/bluetooth/btintel.c | 11 drivers/bluetooth/btusb.c | 5 drivers/bluetooth/hci_ll.c | 2 drivers/bus/simple-pm-bus.c | 4 drivers/clk/imx/clk-scu.c | 3 drivers/cpufreq/cpufreq_conservative.c | 12 drivers/cpufreq/cpufreq_governor.c | 3 drivers/cpufreq/cpufreq_governor.h | 1 drivers/cxl/core/hdm.c | 25 - drivers/cxl/core/port.c | 8 drivers/dma/dw-edma/dw-hdma-v0-core.c | 6 drivers/dma/fsl-edma-main.c | 26 - drivers/dma/idxd/cdev.c | 8 drivers/dma/idxd/device.c | 7 drivers/dma/idxd/submit.c | 2 drivers/dma/idxd/sysfs.c | 1 drivers/dma/sh/rz-dmac.c | 66 +-- drivers/dma/xilinx/xdma.c | 4 drivers/dma/xilinx/xilinx_dma.c | 46 +- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 4 drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 45 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 5 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 1 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 4 drivers/gpu/drm/i915/display/intel_display.c | 8 drivers/gpu/drm/i915/display/intel_dp_tunnel.c | 20 - drivers/gpu/drm/i915/display/intel_dp_tunnel.h | 11 drivers/gpu/drm/i915/display/intel_gmbus.c | 4 drivers/gpu/drm/ttm/tests/ttm_bo_test.c | 4 drivers/gpu/drm/xe/xe_pt.c | 12 drivers/gpu/drm/xe/xe_vm.c | 22 - drivers/gpu/drm/xe/xe_vm_types.h | 4 drivers/hid/hid-apple.c | 7 drivers/hid/hid-asus.c | 18 drivers/hid/hid-ids.h | 1 drivers/hid/hid-magicmouse.c | 6 drivers/hid/hid-mcp2221.c | 2 drivers/hwmon/adm1177.c | 54 +- drivers/hwmon/axi-fan-control.c | 2 drivers/hwmon/peci/cputemp.c | 4 drivers/hwmon/pmbus/isl68137.c | 21 - drivers/hwmon/pmbus/pmbus_core.c | 117 ++++-- drivers/i3c/master/dw-i3c-master.c | 2 drivers/infiniband/core/rw.c | 21 - drivers/infiniband/hw/irdma/cm.c | 29 - drivers/infiniband/hw/irdma/utils.c | 2 drivers/infiniband/hw/irdma/verbs.c | 9 drivers/irqchip/irq-qcom-mpm.c | 3 drivers/media/mc/mc-request.c | 5 drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c | 156 ++------ drivers/media/v4l2-core/v4l2-ioctl.c | 5 drivers/net/ethernet/broadcom/asp2/bcmasp.c | 231 ++++------- drivers/net/ethernet/broadcom/asp2/bcmasp.h | 82 ++-- drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 75 --- drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 38 + drivers/net/ethernet/broadcom/asp2/bcmasp_intf_defs.h | 3 drivers/net/ethernet/cadence/macb_main.c | 41 +- drivers/net/ethernet/freescale/enetc/enetc_ethtool.c | 2 drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 31 - drivers/net/ethernet/intel/ice/ice_ethtool.c | 14 drivers/net/ethernet/intel/ice/ice_main.c | 3 drivers/net/ethernet/intel/ice/ice_ptp.c | 17 drivers/net/ethernet/intel/ice/ice_ptp.h | 5 drivers/net/ethernet/intel/ice/ice_repr.c | 5 drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c | 24 - drivers/net/ethernet/intel/idpf/idpf.h | 2 drivers/net/ethernet/intel/idpf/idpf_lib.c | 233 ++++++------ drivers/net/ethernet/intel/idpf/idpf_txrx.c | 38 - drivers/net/ethernet/intel/idpf/idpf_txrx.h | 5 drivers/net/ethernet/intel/idpf/idpf_virtchnl.c | 9 drivers/net/ethernet/microchip/lan743x_main.c | 5 drivers/net/ethernet/pensando/ionic/ionic_lif.c | 17 drivers/net/team/team_core.c | 65 +++ drivers/net/usb/r8152.c | 1 drivers/net/virtio_net.c | 1 drivers/nvme/host/fabrics.c | 4 drivers/nvme/host/pci.c | 11 drivers/nvme/target/admin-cmd.c | 2 drivers/nvme/target/core.c | 14 drivers/nvme/target/nvmet.h | 1 drivers/nvme/target/rdma.c | 1 drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 3 drivers/phy/ti/phy-j721e-wiz.c | 2 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 9 drivers/platform/olpc/olpc-xo175-ec.c | 2 drivers/platform/x86/intel/hid.c | 23 + drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 2 drivers/platform/x86/touchscreen_dmi.c | 18 drivers/scsi/ibmvscsi/ibmvfc.c | 3 drivers/scsi/mpi3mr/mpi3mr_fw.c | 10 drivers/scsi/scsi_devinfo.c | 2 drivers/scsi/scsi_transport_sas.c | 2 drivers/scsi/ses.c | 2 drivers/slimbus/qcom-ngd-ctrl.c | 6 drivers/spi/spi-fsl-lpspi.c | 3 drivers/spi/spi-intel-pci.c | 1 drivers/spi/spi-meson-spicc.c | 2 drivers/spi/spi-sn-f-ospi.c | 17 drivers/spi/spi-tegra210-quad.c | 20 + drivers/spi/spi.c | 19 drivers/usb/core/config.c | 6 drivers/usb/core/quirks.c | 5 drivers/virt/coco/tdx-guest/tdx-guest.c | 14 drivers/xen/privcmd.c | 3 fs/btrfs/block-group.c | 2 fs/btrfs/disk-io.c | 4 fs/btrfs/ioctl.c | 7 fs/btrfs/volumes.c | 5 fs/erofs/fileio.c | 6 fs/erofs/zdata.c | 3 fs/ext4/crypto.c | 9 fs/ext4/ext4.h | 1 fs/ext4/extents.c | 23 + fs/ext4/fast_commit.c | 13 fs/ext4/fsync.c | 16 fs/ext4/ialloc.c | 6 fs/ext4/inline.c | 10 fs/ext4/inode.c | 12 fs/ext4/mballoc.c | 30 - fs/ext4/page-io.c | 10 fs/ext4/super.c | 16 fs/ext4/sysfs.c | 10 fs/jbd2/checkpoint.c | 15 fs/netfs/iterator.c | 43 ++ fs/overlayfs/copy_up.c | 6 fs/overlayfs/overlayfs.h | 21 + fs/overlayfs/ovl_entry.h | 7 fs/overlayfs/params.c | 42 +- fs/overlayfs/super.c | 2 fs/overlayfs/util.c | 5 fs/smb/server/oplock.c | 72 ++- fs/smb/server/smb2pdu.c | 73 ++- fs/xfs/scrub/quota.c | 4 fs/xfs/scrub/trace.h | 12 fs/xfs/xfs_attr_item.c | 5 fs/xfs/xfs_dquot_item.c | 9 fs/xfs/xfs_inode_item.c | 9 fs/xfs/xfs_mount.c | 7 fs/xfs/xfs_trace.h | 47 +- fs/xfs/xfs_trans_ail.c | 26 - include/linux/device.h | 54 ++ include/linux/device/bus.h | 4 include/linux/dma-mapping.h | 4 include/linux/platform_device.h | 5 include/linux/spi/spi.h | 42 +- include/linux/usb/quirks.h | 3 include/linux/usb/r8152.h | 1 include/net/inet_hashtables.h | 14 include/net/ip6_fib.h | 21 + include/uapi/linux/dma-buf.h | 1 include/uapi/linux/netfilter/nf_conntrack_common.h | 4 kernel/bpf/btf.c | 24 + kernel/bpf/core.c | 43 +- kernel/bpf/verifier.c | 2 kernel/dma/swiotlb.c | 21 - kernel/events/core.c | 19 kernel/futex/pi.c | 3 kernel/futex/syscalls.c | 8 kernel/module/main.c | 7 kernel/power/snapshot.c | 11 kernel/sched/ext.c | 2 kernel/sysctl.c | 2 kernel/time/alarmtimer.c | 2 kernel/trace/trace_osnoise.c | 48 -- mm/damon/sysfs.c | 3 net/bluetooth/l2cap_core.c | 34 + net/bluetooth/l2cap_sock.c | 3 net/bluetooth/mgmt.c | 2 net/bluetooth/sco.c | 10 net/can/af_can.c | 4 net/can/af_can.h | 2 net/can/gw.c | 6 net/can/isotp.c | 24 - net/can/proc.c | 3 net/core/net-procfs.c | 49 +- net/core/rtnetlink.c | 9 net/ipv4/esp4.c | 11 net/ipv4/inet_connection_sock.c | 22 - net/ipv4/udp.c | 2 net/ipv6/addrconf.c | 4 net/ipv6/esp6.c | 11 net/ipv6/ip6_fib.c | 15 net/ipv6/netfilter/ip6t_rt.c | 4 net/ipv6/route.c | 2 net/ipv6/xfrm6_output.c | 4 net/key/af_key.c | 19 net/netfilter/nf_conntrack_expect.c | 4 net/netfilter/nf_conntrack_netlink.c | 16 net/netfilter/nf_conntrack_proto_tcp.c | 10 net/netfilter/nf_conntrack_sip.c | 14 net/netfilter/nfnetlink_log.c | 8 net/nfc/nci/core.c | 10 net/openvswitch/flow_netlink.c | 2 net/openvswitch/vport-netdev.c | 11 net/packet/af_packet.c | 1 net/smc/smc_rx.c | 9 net/tls/tls_sw.c | 2 net/xfrm/xfrm_interface_core.c | 2 net/xfrm/xfrm_nat_keepalive.c | 2 net/xfrm/xfrm_output.c | 7 net/xfrm/xfrm_policy.c | 4 net/xfrm/xfrm_state.c | 1 net/xfrm/xfrm_user.c | 7 rust/kernel/init/macros.rs | 165 ++++++-- scripts/package/install-extmod-build | 4 security/landlock/errata/abi-1.h | 16 security/landlock/fs.c | 78 ++-- sound/firewire/amdtp-stream.c | 2 sound/pci/hda/patch_realtek.c | 41 +- sound/pci/hda/patch_senarytech.c | 5 sound/soc/codecs/adau1372.c | 34 + sound/soc/codecs/ak4458.c | 13 sound/soc/fsl/fsl_easrc.c | 14 sound/soc/intel/catpt/device.c | 10 sound/soc/intel/catpt/dsp.c | 3 sound/soc/samsung/i2s.c | 6 sound/soc/sof/ipc4-topology.c | 2 tools/objtool/arch/x86/decode.c | 62 +-- tools/objtool/check.c | 14 253 files changed, 2821 insertions(+), 1464 deletions(-)
Aaron Ma (1):
ice: Fix PTP NULL pointer dereference during VSI rebuild
Abel Vesa (1):
phy: qcom: qmp-ufs: Fix SM8650 PCS table for Gear 4
Alan Borzeszkowski (1):
spi: intel-pci: Add support for Nova Lake mobile SPI flash
Alberto Garcia (1):
PM: hibernate: Drain trailing zero pages on userspace restore
Alexander Stein (1):
dmaengine: xilinx: xdma: Fix regmap init error handling
Alexey Nepomnyashih (1):
ALSA: firewire-lib: fix uninitialized local variable
Ali Norouzi (1):
can: gw: fix OOB heap access in cgw_csum_crc8_rel()
Alison Schofield (1):
cxl/port: Fix use after free of parent_port in cxl_detach_ep()
Alok Tiwari (1):
platform/olpc: olpc-xo175-ec: Fix overflow error message to print inlen
Amir Goldstein (1):
ovl: fix wrong detection of 32bit inode numbers
Anas Iqbal (1):
Bluetooth: hci_ll: Fix firmware leak on error path
Andy Shevchenko (2):
regmap: Synchronize cache for the page selector
spi: Group CS related fields in struct spi_device
Anil Samal (1):
RDMA/irdma: Fix deadlock during netdev reset with active connections
Baokun Li (1):
ext4: fix iloc.bh leak in ext4_fc_replay_inode() error paths
Benno Lossin (2):
rust: pin-init: add references to previously initialized fields
rust: pin-init: internal: init: document load-bearing fact of field accessors
Boris Burkov (1):
btrfs: set BTRFS_ROOT_ORPHAN_CLEANUP during subvol create
Borislav Petkov (AMD) (1):
x86/cpu: Remove X86_CR4_FRED from the CR4 pinned bits mask
Breno Leitao (1):
spi: tegra210-quad: Protect curr_xfer check in IRQ handler
Cen Zhang (1):
Bluetooth: btintel: serialize btintel_hw_error() with hci_req_sync_lock
Cezary Rojewski (1):
ASoC: Intel: catpt: Fix the device initialization
Chaitanya Kulkarni (1):
nvmet: move async event work off nvmet-wq
Chuck Lever (2):
tls: Purge async_hold in tls_decrypt_async_wait() RDMA/rw: Fall back to direct SGE on MR pool exhaustion
Claudiu Beznea (2):
dmaengine: sh: rz-dmac: Protect the driver specific lists
dmaengine: sh: rz-dmac: Move CHCTRL updates under spinlock
Daniel Hodges (1):
nvme-fabrics: use kfree_sensitive() for DHCHAP secrets
Daniel Wade (1):
bpf: Fix unsound scalar forking in maybe_fork_scalars() for BPF_OR
Danilo Krummrich (5):
hwmon: axi-fan: don't use driver_override as IRQ name
sh: platform_early: remove pdev->driver_override check driver core: generalize driver_override in struct device driver core: platform: use generic driver_override infrastructure
spi: use generic driver_override infrastructure
Darrick J. Wong (2):
xfs: don't irele after failing to iget in xfs_attri_recover_work
xfs: remove file_path tracepoint data
David Carlier (1):
netfilter: ctnetlink: use netlink policy range checks
David McFarland (1):
platform/x86: intel-hid: disable wakeup_mode during hibernation
Davidlohr Bueso (1):
futex: Clear stale exiting pointer in futex_lock_pi() retry path
Deepanshu Kartikey (2):
ext4: convert inline data to extents when truncate exceeds inline size
netfs: Fix kernel BUG in netfs_limit_iter() for ITER_KVEC iterators
Denis Benato (1):
HID: asus: add xg mobile 2023 external hardware support
Edward Adam Davis (1):
ext4: avoid infinite loops caused by residual data
Emil Tantilov (2):
idpf: check error for register_netdev() on init
idpf: detach and close netdevs while handling a reset
Eric Dumazet (3):
af_key: validate families in pfkey_send_migrate()
tcp: optimize inet_use_bhash2_on_bind()
net: add proper RCU protection to /proc/net/ptype
Eric Huang (1):
drm/amdgpu: prevent immediate PASID reuse case
Fei Lv (1):
ovl: make fsync after metadata copy-up opt-in mount option
Felix Gu (3):
spi: sn-f-ospi: Fix resource leak in f_ospi_probe()
spi: meson-spicc: Fix double-put in remove path
phy: ti: j721e-wiz: Fix device node reference leak in wiz_get_lane_phy_types()
Filipe Manana (1):
btrfs: fix lost error when running device stats on multiple devices fs
Florian Fainelli (1):
net: bcmasp: Restore programming of TX map vector register
Florian Fuchs (1):
scsi: devinfo: Add BLIST_SKIP_IO_HINTS for Iomega ZIP
Greg Kroah-Hartman (3):
s390/syscalls: Add spectre boundary for syscall dispatch table
scsi: ses: Handle positive SCSI error from ses_recv_diag() Linux 6.12.80
Guenter Roeck (3):
hwmon: (pmbus/core) Fix various coding style issues
hwmon: (pmbus) Mark lowest/average/highest/rated attributes as read-only
hwmon: (pmbus) Introduce the concept of "write-only" attributes
GuoHan Zhao (1):
xen/privcmd: unregister xenstore notifier on module exit
Günther Noack (3):
HID: asus: avoid memory leak in asus_report_fixup()
HID: magicmouse: avoid memory leak in magicmouse_report_fixup()
HID: apple: avoid memory leak in apple_report_fixup()
Hans de Goede (1):
platform/x86: touchscreen_dmi: Add quirk for y-inverted Goodix touchscreen on SUPI S10
Hari Bathini (1):
powerpc64/bpf: do not increment tailcall count when prog is NULL
Helen Koike (2):
Bluetooth: L2CAP: Fix null-ptr-deref on l2cap_sock_ready_cb
ext4: reject mount if bigalloc with s_first_data_block != 0
Huacai Chen (2):
LoongArch: Workaround LS2K/LS7A GPU DMA hang bug
LoongArch: KVM: Make kvm_get_vcpu_by_cpuid() more robust
Hyunwoo Kim (5):
xfrm: Fix work re-schedule after cancel in xfrm_nat_keepalive_net_fini()
Bluetooth: L2CAP: Validate PDU length before reading SDU length in l2cap_ecred_data_rcv()
Bluetooth: SCO: Fix use-after-free in sco_recv_frame() due to missing sock_hold
Bluetooth: L2CAP: Fix ERTM re-init and zero pdu_len infinite loop
ksmbd: do not expire session on binding failure
Ihor Solodrai (1):
module: Fix kernel panic when a symbol st_shndx is out of bounds
Imre Deak (1):
drm/i915/dp_tunnel: Fix error handling when clearing stream BW in atomic state
Isaac J. Manjarres (1):
dma-buf: Include ioctl.h in UAPI header
Ivan Barrera (1):
RDMA/irdma: Clean up unnecessary dereference of event->cm_node
Jacob Moroni (1):
RDMA/irdma: Initialize free_qp completion before using it
Jakub Kicinski (1):
nfc: nci: fix circular locking dependency in nci_close_device
Jan Kara (3):
ext4: fix stale xarray tags after writeback
ext4: fix fsync(2) for nojournal mode
ext4: make recently_deleted() properly work with lazy itable initialization
Jassi Brar (1):
irqchip/qcom-mpm: Add missing mailbox TX done acknowledgment
Jenny Guanni Qu (1):
bpf: Fix undefined behavior in interpreter sdiv/smod for INT_MIN
Jiayuan Chen (2):
team: fix header_ops type confusion with non-Ethernet ports
ext4: fix use-after-free in update_super_work when racing with umount
Jie Deng (1):
usb: core: new quirk to handle devices with zero configurations
Jihed Chaibi (2):
ASoC: adau1372: Fix unchecked clk_prepare_enable() return value
ASoC: adau1372: Fix clock leak on PLL lock failure
Jiucheng Xu (1):
erofs: add GFP_NOIO in the bio completion if needed
Josh Law (1):
mm/damon/sysfs: check contexts->nr before accessing contexts_arr[0]
Josh Poimboeuf (1):
objtool: Handle Clang RSP musical chairs
Joy Zou (1):
dmaengine: fsl-edma: fix channel parameter config for fixed channel requests
Julius Lehmann (1):
HID: magicmouse: fix battery reporting for Apple Magic Trackpad 2
Justin Chen (6):
net: bcmasp: Remove support for asp-v2.0
net: bcmasp: streamline early exit in probe
net: bcmasp: fix double free of WoL irq
net: bcmasp: Add support for asp-v3.0
net: bcmasp: fix double disable of clk
net: bcmasp: Fix network filter wake for asp-3.0
Keith Busch (2):
nvme-pci: cap queue creation to used queues
nvme-pci: ensure we're polling a polled queue
Kevin Hao (3):
net: macb: Move devm_{free,request}_irq() out of spin lock area
net: macb: Protect access to net_device::ip_ptr with RCU lock
net: macb: Use dev_consume_skb_any() to free TX SKBs
Kohei Enju (1):
iavf: fix out-of-bounds writes in iavf_get_ethtool_stats()
Kumar Kartikeya Dwivedi (1):
bpf: Release module BTF IDR before module unload
Kuniyuki Iwashima (2):
ipv6: Remove permanent routes from tb6_gc_hlist when all exceptions expire.
ipv6: Don't remove permanent routes with exceptions from tb6_gc_hlist.
LUO Haowen (1):
dmaengine: dw-edma: Fix multiple times setting of the CYCLE_STATE and CYCLE_BIT bits for HDMA.
Leif Skunberg (1):
platform/x86: intel-hid: Enable 5-button array on ThinkPad X1 Fold 16 Gen 1
Li Jun (1):
LoongArch: Fix missing NULL checks for kstrdup()
Li Li (1):
idpf: nullify pointers after they are freed
Liucheng Lu (1):
ALSA: hda/realtek: add HP Laptop 14s-dr5xxx mute LED quirk
Long Li (1):
xfs: fix ri_total validation in xlog_recover_attri_commit_pass2
Luca Leonardo Scorcia (1):
pinctrl: mediatek: common: Fix probe failure for devices without EINT
Luiz Augusto von Dentz (1):
Bluetooth: MGMT: Fix dangling pointer on mgmt_add_adv_patterns_monitor_complete
Luo Haiyang (1):
tracing: Fix potential deadlock in cpu hotplug with osnoise
Maarten Lankhorst (1):
drm/ttm/tests: Fix build failure on PREEMPT_RT
Marc Buerg (1):
sysctl: fix uninitialized variable in proc_do_large_bitmap
Marc Kleine-Budde (1):
spi: spi-fsl-lpspi: fix teardown order issue (UAF)
Marc Zyngier (1):
KVM: arm64: Discard PC update state on vcpu reset
Marek Vasut (3):
dmaengine: xilinx: xilinx_dma: Fix dma_device directions
dmaengine: xilinx: xilinx_dma: Fix residue calculation for cyclic DMA
dmaengine: xilinx: xilinx_dma: Fix unmasked residue subtraction
Mark Brown (2):
ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_set_reg()
ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_put_bits()
Mark Harmstone (1):
btrfs: fix super block offset in error message in btrfs_validate_super()
Markus Niebel (1):
arm64: dts: imx8mn-tqma8mqnl: fix LDO5 power off
Martin KaFai Lau (1):
udp: Fix wildcard bind conflict check when using hash2
Mateusz Polchlopek (1):
ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()
Matthew Auld (1):
drm/xe: always keep track of remap prev/next
Mickaël Salaün (2):
landlock: Optimize file path walks and prepare for audit support
landlock: Fix handling of disconnected directories
Miguel Ojeda (1):
dma-mapping: add missing inline for dma_free_attrs
Mike Rapoport (Microsoft) (1):
x86/efi: efi_unmap_boot_services: fix calculation of ranges_to_free size
Milos Nikic (1):
jbd2: gracefully abort on checkpointing state corruptions
Minseo Park (1):
Bluetooth: L2CAP: Fix stack-out-of-bounds read in l2cap_ecred_conn_req
Minwoo Ra (1):
xfrm: prevent policy_hthresh.work from racing with netns teardown
Mohammad Heib (1):
ionic: fix persistent MAC address override on PF
Namjae Jeon (2):
ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()
ksmbd: fix potencial OOB in get_file_all_info() for compound requests
Nikunj A Dadhania (1):
x86/cpu: Enable FSGSBASE early in cpu_init_exception_handling()
Oliver Hartkopp (2):
can: statistics: add missing atomic access in hot path
can: isotp: fix tx.buf use-after-free in isotp_sendmsg()
Pablo Neira Ayuso (1):
netfilter: nf_conntrack_expect: skip expectations in other netns via proc
Paolo Valerio (1):
net: macb: use the current queue number for stats
Pengpeng Hou (1):
Bluetooth: btusb: clamp SCO altsetting table indices
Peter Metz (1):
platform/x86: intel-hid: Add Dell 14 Plus 2-in-1 to dmi_vgbs_allow_list
Peter Ujfalusi (1):
ASoC: SOF: ipc4-topology: Allow bytes controls without initial payload
Peter Yin (1):
i3c: master: dw-i3c: Fix missing of_node for virtual I2C adapter
Peter Zijlstra (2):
perf: Make sure to use pmu_ctx->pmu for groups
futex: Require sys_futex_requeue() to have identical flags
Petr Oros (2):
ice: fix inverted ready check for VF representors
ice: use ice_update_eth_stats() for representor stats
Qi Tang (1):
net/smc: fix double-free of smc_spd_priv when tee() duplicates splice pipe buffer
Ranjan Kumar (1):
scsi: mpi3mr: Clear reset history on ready and recheck state after timeout
Ren Wei (1):
netfilter: ip6t_rt: reject oversized addrnr in rt_mt6_check()
Richard Leitner (1):
media: nxp: imx8-isi: Fix streaming cleanup on release
Romain Sioen (1):
HID: mcp2221: cancel last I2C command on read error
Russell King (Oracle) (3):
net: bcm: asp2: fix LPI timer handling
net: bcm: asp2: remove tx_lpi_enabled
net: bcm: asp2: convert to phylib managed EEE
Sabrina Dubroca (5):
xfrm: add missing extack for XFRMA_SA_PCPU in add_acquire and allocspi
xfrm: fix the condition on x->pcpu_num in xfrm_sa_len
xfrm: call xdo_dev_state_delete during state update
esp: fix skb leak with espintcp and async crypto
rtnetlink: count IFLA_INFO_SLAVE_KIND in if_nlmsg_size
Sachin Kumar (1):
bpf: Fix constant blinding for PROBE_MEM32 stores
Samasth Norway Ananda (1):
drm/i915/gmbus: fix spurious timeout on 512-byte burst reads
Sanman Pradhan (4):
hwmon: (adm1177) fix sysfs ABI violation and current unit conversion
hwmon: (pmbus/isl68137) Add mutex protection for AVS enable sysfs attributes
hwmon: (peci/cputemp) Fix crit_hyst returning delta instead of absolute temperature
hwmon: (peci/cputemp) Fix off-by-one in cputemp_is_visible()
Sean Christopherson (1):
KVM: x86/mmu: Drop/zap existing present SPTE even when creating an MMIO SPTE
Sean Rhodes (1):
ALSA: hda/realtek: Sequence GPIO2 on Star Labs StarFighter
Sheng Yong (1):
erofs: set fileio bio failed in short read case
Shigeru Yoshida (1):
dma: swiotlb: add KMSAN annotations to swiotlb_bounce()
Shin'ichiro Kawasaki (1):
btrfs: fix leak of kobject name for sub-group space_info
Simon Weber (1):
ext4: fix journal credit check when setting fscrypt context
Smita Koralahalli (1):
cxl/hdm: Avoid incorrect DVSEC fallback when HDM decoders are enabled
Sreedevi Joshi (2):
idpf: Fix RSS LUT NULL pointer crash on early ethtool operations
idpf: Fix RSS LUT NULL ptr issue after soft reset
Srinivas Pandruvada (1):
platform/x86: ISST: Correct locked bit width
Srinivasan Shanmugam (1):
drm/amdgpu: Fix fence put before wait in amdgpu_amdkfd_submit_ib
Steffen Klassert (1):
xfrm: Fix the usage of skb->sk
Steven Rostedt (1):
tracing: Switch trace_osnoise.c code over to use guard() and __free()
Takashi Iwai (2):
HID: apple: Add EPOMAKER TH87 to the non-apple keyboards list
ASoC: ak4458: Convert to RUNTIME_PM_OPS() & co
Tatyana Nikolova (4):
RDMA/irdma: Update ibqp state to error if QP is already in error state RDMA/irdma: Remove a NOP wait_event() in irdma_modify_qp_roce() RDMA/irdma: Remove reset check from irdma_modify_qp_to_err() RDMA/irdma: Return EINVAL for invalid arp index error
Tejas Bharambe (1):
ext4: validate p_idx bounds in ext4_ext_correct_indexes
Thangaraj Samynathan (1):
net: lan743x: fix duplex configuration in mac_link_up
Theodore Ts'o (2):
ext4: handle wraparound when searching for blocks for indirect mapped blocks
ext4: always drain queued discard work in ext4_mb_release()
Thomas Weißschuh (1):
kbuild: install-extmod-build: Package resolve_btfids if necessary
Thorsten Blum (1):
ovl: Use str_on_off() helper in ovl_show_options()
Toke Høiland-Jørgensen (1):
net: openvswitch: Avoid releasing netdev before teardown completes
Tomi Valkeinen (1):
dmaengine: xilinx_dma: Fix reset related timeout with two-channel AXIDMA
Tuo Li (1):
dmaengine: idxd: fix possible wrong descriptor completion in llist_abort_desc()
Tyllis Xu (1):
scsi: ibmvfc: Fix OOB access in ibmvfc_discover_targets_done()
Uzair Mughal (1):
ALSA: hda/realtek: Add headset jack quirk for Thinkpad X390
Valentin Spreckels (1):
net: usb: r8152: add TRENDnet TUC-ET2G
Vasily Gorbik (2):
s390/barrier: Make array_index_mask_nospec() __always_inline s390/entry: Scrub r12 register on kernel entry
Vinicius Costa Gomes (4):
dmaengine: idxd: Fix not releasing workqueue on .release()
dmaengine: idxd: Fix memory leak when a wq is reset
dmaengine: idxd: Fix freeing the allocated ida too late
dmaengine: idxd: Fix leaking event log memory
Viresh Kumar (1):
cpufreq: conservative: Reset requested_freq on limits change
Wei Fang (1):
net: enetc: fix the output issue of 'ethtool --show-ring'
Weiming Shi (3):
netfilter: nfnetlink_log: fix uninitialized padding leak in NFULA_PAYLOAD
netfilter: nf_conntrack_sip: fix use of uninitialized rtp_addr in process_sdp
ACPI: EC: clean up handlers on probe failure in acpi_ec_setup()
Werner Kasselman (2):
ksmbd: fix memory leaks and NULL deref in smb2_lock()
ksmbd: fix use-after-free and NULL deref in smb_grant_oplock()
Xi Ruoyao (1):
LoongArch: vDSO: Emit GNU_EH_FRAME correctly
Yang Wang (1):
drm/amdgpu: fix gpu idle power consumption issue for gfx v12
Yang Yang (2):
openvswitch: defer tunnel netdev_put to RCU release
openvswitch: validate MPLS set/set_masked payload length
Ye Bin (1):
ext4: avoid allocate block from corrupted group in ext4_mb_find_by_goal()
Yihang Li (1):
scsi: scsi_transport_sas: Fix the maximum channel scanning issue
Yochai Eisenrich (1):
net: fix fanout UAF in packet_release() via NETDEV_UP race
Yuchan Nam (1):
media: mc, v4l2: serialize REINIT and REQBUFS with req_queue_mutex
Yussuf Khalil (1):
drm/amd/display: Do not skip unrelated mode changes in DSC validation
Yuto Ohnuki (4):
xfs: stop reclaim before pushing AIL during unmount
xfs: save ailp before dropping the AIL lock in push callbacks
ext4: replace BUG_ON with proper error handling in ext4_read_inline_folio
xfs: avoid dereferencing log items after push callbacks
Zhan Xusheng (1):
alarmtimer: Fix argument order in alarm_timer_forward()
Zhang Chen (1):
Bluetooth: L2CAP: Fix send LE flow credits in ACL link
Zhang Heng (1):
ALSA: hda/realtek: add quirk for ASUS UM6702RC
Zqiang (1):
ext4: fix the might_sleep() warnings in kvfree()
Zubin Mithra (1):
virt: tdx-guest: Fix handling of host controlled 'quote' buffer length
hongao (1):
xfs: scrub: unlock dquot before early return in quota scrub
wangdicheng (1):
ALSA: hda/senary: Ensure EAPD is enabled during init
xietangxin (1):
virtio_net: Fix UAF on dst_ops when IFF_XMIT_DST_RELEASE is cleared and napi_tx is false
zhidao su (1):
sched_ext: Use WRITE_ONCE() for the write side of dsq->seq update
Greg Kroah-Hartman
maintainerDocumentation/admin-guide/kernel-parameters.txt +3 -0
@@ -7249,6 +7249,9 @@ p = USB_QUIRK_SHORT_SET_ADDRESS_REQ_TIMEOUT (Reduce timeout of the SET_ADDRESS request from 5000 ms to 500 ms); + q = USB_QUIRK_FORCE_ONE_CONFIG (Device + claims zero configurations, + forcing to 1); Example: quirks=0781:5580:bk,0a5c:5834:gij usbhid.mousepoll=
Documentation/filesystems/overlayfs.rst +50 -0
56 lines not on this page · raw message
Documentation/hwmon/adm1177.rst +4 -4
@@ -27,10 +27,10 @@ for details. Sysfs entries ------------- -The following attributes are supported. Current maxim attribute +The following attributes are supported. Current maximum attribute is read-write, all other attributes are read-only. -in0_input Measured voltage in microvolts. +in0_input Measured voltage in millivolts. -curr1_input Measured current in microamperes. -curr1_max_alarm Overcurrent alarm in microamperes. +curr1_input Measured current in milliamperes. +curr1_max Overcurrent shutdown threshold in milliamperes.
Documentation/hwmon/peci-cputemp.rst +6 -4
@@ -51,8 +51,9 @@ temp1_max Provides thermal control temperature of the CPU package temp1_crit Provides shutdown temperature of the CPU package which is also known as the maximum processor junction temperature, Tjmax or Tprochot. -temp1_crit_hyst Provides the hysteresis value from Tcontrol to Tjmax of - the CPU package. +temp1_crit_hyst Provides the hysteresis temperature of the CPU + package. Returns Tcontrol, the temperature at which + the critical condition clears. temp2_label "DTS" temp2_input Provides current temperature of the CPU package scaled
@@ -62,8 +63,9 @@ temp2_max Provides thermal control temperature of the CPU package temp2_crit Provides shutdown temperature of the CPU package which is also known as the maximum processor junction temperature, Tjmax or Tprochot. -temp2_crit_hyst Provides the hysteresis value from Tcontrol to Tjmax of - the CPU package. +temp2_crit_hyst Provides the hysteresis temperature of the CPU + package. Returns Tcontrol, the temperature at which + the critical condition clears. temp3_label "Tcontrol" temp3_input Provides current Tcontrol temperature of the CPU
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 12 -SUBLEVEL = 79 +SUBLEVEL = 80 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl-mba8mx.dts +7 -6
@@ -64,6 +64,10 @@ expander2: gpio@27 { }; }; +®_usdhc2_vqmmc { + status = "okay"; +}; + &sai3 { assigned-clocks = <&clk IMX8MN_CLK_SAI3>; assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>;
@@ -207,8 +211,7 @@ pinctrl_usdhc2: usdhc2grp { <MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4>, <MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4>, <MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4>, - <MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4>, - <MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x84>; + <MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
@@ -217,8 +220,7 @@ pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { <MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4>, <MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4>, <MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4>, - <MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4>, - <MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x84>; + <MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
@@ -227,8 +229,7 @@ pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { <MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4>, <MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4>, <MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4>, - <MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4>, - <MX8MN_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x84>; + <MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_gpio: usdhc2-gpiogrp {
arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi +22 -0
@@ -30,6 +30,20 @@ reg_vcc3v3: regulator-vcc3v3 { regulator-max-microvolt = <3300000>; }; + reg_usdhc2_vqmmc: regulator-usdhc2-vqmmc { + compatible = "regulator-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vqmmc>; + regulator-name = "V_SD2"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + states = <1800000 0x1>, + <3300000 0x0>; + vin-supply = <&ldo5_reg>; + status = "disabled"; + }; + reserved-memory { #address-cells = <2>; #size-cells = <2>;
@@ -228,6 +242,10 @@ &mipi_dsi { vddio-supply = <&ldo3_reg>; }; +&usdhc2 { + vqmmc-supply = <®_usdhc2_vqmmc>; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>;
@@ -282,6 +300,10 @@ pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { fsl,pins = <MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x84>; }; + pinctrl_reg_usdhc2_vqmmc: regusdhc2vqmmcgrp { + fsl,pins = <MX8MN_IOMUXC_GPIO1_IO04_GPIO1_IO4 0xc0>; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = <MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x1d4>, <MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d2>,
arch/arm64/kvm/reset.c +14 -0
@@ -257,6 +257,20 @@ void kvm_reset_vcpu(struct kvm_vcpu *vcpu)kvm_vcpu_set_be (vcpu); *vcpu_pc (vcpu) = target_pc; + +/* +* We may come from a state where either a PC update was +* pending (SMC call resulting in PC being increpented to +* skip the SMC) or a pending exception. Make sure we get +* rid of all that, as this cannot be valid out of reset. +* +* Note that clearing the exception mask also clears PC +* updates, but that's an implementation detail, and we +* really want to make it explicit. +*/ +vcpu_clear_flag (vcpu,PENDING_EXCEPTION ); +vcpu_clear_flag (vcpu,EXCEPT_MASK ); +vcpu_clear_flag (vcpu,INCREMENT_PC );vcpu_set_reg (vcpu,0 , reset_state.r0); }
arch/loongarch/include/asm/linkage.h +36 -0
@@ -41,4 +41,40 @@ .cfi_endproc; \SYM_END (name,SYM_T_NONE ) +/* +* This is for the signal handler trampoline, which is used as the return +* address of the signal handlers in userspace instead of called normally. +* The long standing libgcc bug https://gcc.gnu.org/PR124050 requires a +* nop between .cfi_startproc and the actual address of the trampoline, so +* we cannot simply use SYM_FUNC_START. +* +* This wrapper also contains all the .cfi_* directives for recovering +* the content of the GPRs and the "return address" (where the rt_sigreturn +* syscall will jump to), assuming there is a struct rt_sigframe (where +* a struct sigcontext containing those information we need to recover) at +* $sp. The "DWARF for the LoongArch(TM) Architecture" manual states +* column 0 is for $zero, but it does not make too much sense to +* save/restore the hardware zero register. Repurpose this column here +* for the return address (here it's not the content of $ra we cannot use +* the default column 3). + */ +#define SYM_SIGFUNC_START (name) \ + .cfi_startproc; \ + .cfi_signal_frame; \ + .cfi_def_cfa 3, RT_SIGFRAME_SC; \ + .cfi_return_column 0; \ + .cfi_offset 0, SC_PC; \ + \ + .irp num, 1, 2, 3, 4, 5, 6, 7, 8, \ + 9, 10, 11, 12, 13, 14, 15, 16, \ + 17, 18, 19, 20, 21, 22, 23, 24, \ + 25, 26, 27, 28, 29, 30, 31; \ + .cfi_offset \num, SC_REGS + \num * SZREG; \ + .endr; \ + \ + nop; \ + SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN) + +#define SYM_SIGFUNC_END (name) SYM_FUNC_END(name) +#endif
arch/loongarch/include/asm/sigframe.h new file +9 -0
@@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#include <asm/siginfo.h> +#include <asm/ucontext.h> + +struct rt_sigframe { +struct siginfo rs_info; +struct ucontext rs_uctx; +};
arch/loongarch/kernel/asm-offsets.c +2 -0
@@ -16,6 +16,7 @@#include <asm/ptrace.h> #include <asm/processor.h> #include <asm/ftrace.h> +#include <asm/sigframe.h> static void __used output_ptreg_defines (void ) {
@@ -219,6 +220,7 @@ static void __used output_sc_defines(void)COMMENT ("Linux sigcontext offsets." );OFFSET (SC_REGS , sigcontext, sc_regs);OFFSET (SC_PC , sigcontext, sc_pc); +OFFSET (RT_SIGFRAME_SC , rt_sigframe, rs_uctx.uc_mcontext);BLANK (); }
arch/loongarch/kernel/env.c +3 -4
@@ -42,16 +42,15 @@ static int __init init_cpu_fullname(void)int cpu, ret;char *cpuname;const char *model; -struct device_node *root;/* Parsing cpuname from DTS model property */ - root =of_find_node_by_path ("/" ); - ret =of_property_read_string (root,"model" , &model); + ret =of_property_read_string (of_root,"model" , &model);if (ret ==0 ) { cpuname =kstrdup (model,GFP_KERNEL ); +if (!cpuname) +return -ENOMEM ; loongson_sysconf.cpuname =strsep (&cpuname," " ); } -of_node_put (root);if (loongson_sysconf.cpuname && !strncmp (loongson_sysconf.cpuname,"Loongson" ,8 )) {for (cpu =0 ; cpu <NR_CPUS ; cpu++)
arch/loongarch/kernel/signal.c +1 -5
@@ -35,6 +35,7 @@#include <asm/cpu-features.h> #include <asm/fpu.h> #include <asm/lbt.h> +#include <asm/sigframe.h> #include <asm/ucontext.h> #include <asm/vdso.h>
@@ -51,11 +52,6 @@#define lock_lbt_owner () ({ preempt_disable(); pagefault_disable(); })#define unlock_lbt_owner () ({ pagefault_enable(); preempt_enable(); }) -struct rt_sigframe { -struct siginfo rs_info; -struct ucontext rs_uctx; -}; -struct _ctx_layout {struct sctx_info *addr;unsigned int size;
arch/loongarch/kvm/vcpu.c +3 -0
@@ -531,6 +531,9 @@ struct kvm_vcpu *kvm_get_vcpu_by_cpuid(struct kvm *kvm, int cpuid) {struct kvm_phyid_map *map; +if (cpuid <0 ) +return NULL ; +if (cpuid >=KVM_MAX_PHYID )return NULL ;
arch/loongarch/pci/pci.c +80 -0
98 lines not on this page · raw message
arch/loongarch/vdso/Makefile +2 -2
@@ -21,7 +21,7 @@ cflags-vdso := $(ccflags-vdso) \ $(filter -W%,$(filter-out -Wa$(comma)%,$(KBUILD_CFLAGS))) \ -std=gnu11 -O2 -g -fno-strict-aliasing -fno-common -fno-builtin \ -fno-stack-protector -fno-jump-tables -DDISABLE_BRANCH_PROFILING \ - $(call cc-option, -fno-asynchronous-unwind-tables) \ + $(call cc-option, -fasynchronous-unwind-tables) \ $(call cc-option, -fno-stack-protector) aflags-vdso := $(ccflags-vdso) \ -D__ASSEMBLY__ -Wa,-gdwarf-2
@@ -36,7 +36,7 @@ endif # VDSO linker flags. ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ - $(filter -E%,$(KBUILD_CFLAGS)) -shared --build-id -T + $(filter -E%,$(KBUILD_CFLAGS)) -shared --build-id --eh-frame-hdr -T # # Shared build commands.
arch/loongarch/vdso/sigreturn.S +3 -3
@@ -12,13 +12,13 @@ #include <asm/regdef.h> #include <asm/asm.h> +#include <asm/asm-offsets.h> .section .text - .cfi_sections .debug_frame -SYM_FUNC_START(__vdso_rt_sigreturn) +SYM_SIGFUNC_START(__vdso_rt_sigreturn) li.w a7, __NR_rt_sigreturn syscall 0 -SYM_FUNC_END(__vdso_rt_sigreturn) +SYM_SIGFUNC_END(__vdso_rt_sigreturn)
arch/powerpc/net/bpf_jit_comp64.c +14 -9
@@ -404,27 +404,32 @@ static int bpf_jit_emit_tail_call(u32 *image, struct codegen_context *ctx, u32 o/* * tail_call_cnt++; +* Writeback this updated value only if tailcall succeeds. */ EMIT (PPC_RAW_ADDI (bpf_to_ppc (TMP_REG_1 ),bpf_to_ppc (TMP_REG_1 ),1 )); -EMIT (PPC_RAW_STD (bpf_to_ppc (TMP_REG_1 ), _R1,bpf_jit_stack_tailcallcnt (ctx)));/* prog = array->ptrs[index]; */ -EMIT (PPC_RAW_MULI (bpf_to_ppc (TMP_REG_1 ), b2p_index,8 )); -EMIT (PPC_RAW_ADD (bpf_to_ppc (TMP_REG_1 ),bpf_to_ppc (TMP_REG_1 ), b2p_bpf_array)); -EMIT (PPC_RAW_LD (bpf_to_ppc (TMP_REG_1 ),bpf_to_ppc (TMP_REG_1 ), offsetof(struct bpf_array , ptrs))); +EMIT (PPC_RAW_MULI (bpf_to_ppc (TMP_REG_2 ), b2p_index,8 )); +EMIT (PPC_RAW_ADD (bpf_to_ppc (TMP_REG_2 ),bpf_to_ppc (TMP_REG_2 ), b2p_bpf_array)); +EMIT (PPC_RAW_LD (bpf_to_ppc (TMP_REG_2 ),bpf_to_ppc (TMP_REG_2 ), + offsetof(struct bpf_array , ptrs)));/* * if (prog == NULL) * goto out; */ -EMIT (PPC_RAW_CMPLDI (bpf_to_ppc (TMP_REG_1 ),0 )); +EMIT (PPC_RAW_CMPLDI (bpf_to_ppc (TMP_REG_2 ),0 ));PPC_BCC_SHORT (COND_EQ , out);/* goto *(prog->bpf_func + prologue_size); */ -EMIT (PPC_RAW_LD (bpf_to_ppc (TMP_REG_1 ),bpf_to_ppc (TMP_REG_1 ), offsetof(struct bpf_prog , bpf_func))); -EMIT (PPC_RAW_ADDI (bpf_to_ppc (TMP_REG_1 ),bpf_to_ppc (TMP_REG_1 ), -FUNCTION_DESCR_SIZE + bpf_tailcall_prologue_size)); -EMIT (PPC_RAW_MTCTR (bpf_to_ppc (TMP_REG_1 ))); +EMIT (PPC_RAW_LD (bpf_to_ppc (TMP_REG_2 ),bpf_to_ppc (TMP_REG_2 ), + offsetof(struct bpf_prog , bpf_func))); +EMIT (PPC_RAW_ADDI (bpf_to_ppc (TMP_REG_2 ),bpf_to_ppc (TMP_REG_2 ), +FUNCTION_DESCR_SIZE + bpf_tailcall_prologue_size)); +EMIT (PPC_RAW_MTCTR (bpf_to_ppc (TMP_REG_2 ))); + +/* Writeback updated tailcall count */ +EMIT (PPC_RAW_STD (bpf_to_ppc (TMP_REG_1 ), _R1,bpf_jit_stack_tailcallcnt (ctx)));/* tear down stack, restore NVRs, ... */ bpf_jit_emit_common_epilogue (image, ctx);
arch/s390/include/asm/barrier.h +2 -2
@@ -62,8 +62,8 @@ do { \* @size: number of elements in array */ #define array_index_mask_nospec array_index_mask_nospec -static inline unsigned long array_index_mask_nospec (unsigned long index, -unsigned long size) +static __always_inline unsigned long array_index_mask_nospec (unsigned long index, +unsigned long size) {unsigned long mask;
arch/s390/kernel/entry.S +3 -0
@@ -286,6 +286,7 @@ SYM_CODE_START(system_call) xgr %r9,%r9 xgr %r10,%r10 xgr %r11,%r11 + xgr %r12,%r12 la %r2,STACK_FRAME_OVERHEAD(%r15) # pointer to pt_regs mvc __PT_R8(64,%r2),__LC_SAVE_AREA(%r13) MBEAR %r2,%r13
@@ -431,6 +432,7 @@ SYM_CODE_START(\name) xgr %r6,%r6 xgr %r7,%r7 xgr %r10,%r10 + xgr %r12,%r12 xc __PT_FLAGS(8,%r11),__PT_FLAGS(%r11) mvc __PT_R8(64,%r11),__LC_SAVE_AREA(%r13) MBEAR %r11,%r13
@@ -523,6 +525,7 @@ SYM_CODE_START(mcck_int_handler) xgr %r6,%r6 xgr %r7,%r7 xgr %r10,%r10 + xgr %r12,%r12 stmg %r8,%r9,__PT_PSW(%r11) xc __PT_FLAGS(8,%r11),__PT_FLAGS(%r11) xc __SF_BACKCHAIN(8,%r15),__SF_BACKCHAIN(%r15)
arch/s390/kernel/syscall.c +2 -0
@@ -13,6 +13,7 @@*/ #include <linux/errno.h> +#include <linux/nospec.h> #include <linux/sched.h> #include <linux/mm.h> #include <linux/fs.h>
@@ -114,6 +115,7 @@ static void do_syscall(struct pt_regs *regs)if (likely (nr >= NR_syscalls)) goto out;do { + nr =array_index_nospec (nr, NR_syscalls); regs->gprs[2 ] = current->thread.sys_call_table[nr](regs); }while (test_and_clear_pt_regs_flag (regs,PIF_EXECVE_PGSTE_RESTART )); out:
arch/sh/drivers/platform_early.c +0 -4
@@ -26,10 +26,6 @@ static int platform_match(struct device *dev, struct device_driver *drv)struct platform_device *pdev =to_platform_device (dev);struct platform_driver *pdrv =to_platform_driver (drv); -/* When driver_override is set, only bind to the matching driver */ -if (pdev->driver_override) -return !strcmp (pdev->driver_override, drv->name); -/* Then try to match against the id table */ if (pdrv->id_table)return platform_match_id (pdrv->id_table, pdev) !=NULL ;
arch/x86/kernel/cpu/common.c +13 -7
@@ -405,7 +405,7 @@ static __always_inline void setup_umip(struct cpuinfo_x86 *c)/* These bits should not change their value after CPU init is finished. */ static const unsigned long cr4_pinned_mask =X86_CR4_SMEP |X86_CR4_SMAP |X86_CR4_UMIP | -X86_CR4_FSGSBASE |X86_CR4_CET |X86_CR4_FRED ; +X86_CR4_FSGSBASE |X86_CR4_CET ;static DEFINE_STATIC_KEY_FALSE_RO (cr_pinning);static unsigned long cr4_pinned_bits__ro_after_init ;
@@ -1938,12 +1938,6 @@ static void identify_cpu(struct cpuinfo_x86 *c)setup_smap (c);setup_umip (c); -/* Enable FSGSBASE instructions if available. */ -if (cpu_has (c,X86_FEATURE_FSGSBASE )) { -cr4_set_bits (X86_CR4_FSGSBASE ); - elf_hwcap2 |=HWCAP2_FSGSBASE ; - } -/* * The vendor-specific functions might have changed features. * Now we do "generic changes."
@@ -2286,6 +2280,18 @@ void cpu_init_exception_handling(bool boot_cpu)/* GHCB needs to be setup to handle #VC. */ setup_ghcb (); +/* +* On CPUs with FSGSBASE support, paranoid_entry() uses +* ALTERNATIVE-patched RDGSBASE/WRGSBASE instructions. Secondary CPUs +* boot after alternatives are patched globally, so early exceptions +* execute patched code that depends on FSGSBASE. Enable the feature +* before any exceptions occur. +*/ +if (cpu_feature_enabled (X86_FEATURE_FSGSBASE )) { +cr4_set_bits (X86_CR4_FSGSBASE ); + elf_hwcap2 |=HWCAP2_FSGSBASE ; + } +if (cpu_feature_enabled (X86_FEATURE_FRED )) {/* The boot CPU has enabled FRED during early boot */ if (!boot_cpu)
arch/x86/kvm/mmu/mmu.c +8 -6
@@ -2919,12 +2919,6 @@ static int mmu_set_spte(struct kvm_vcpu *vcpu, struct kvm_memory_slot *slot,bool prefetch = !fault || fault->prefetch;bool write_fault = fault && fault->write; -if (unlikely (is_noslot_pfn (pfn))) { - vcpu->stat.pf_mmio_spte_created++; -mark_mmio_spte (vcpu, sptep, gfn, pte_access); -return RET_PF_EMULATE ; - } -if (is_shadow_present_pte (*sptep)) {/* * If we overwrite a PTE page pointer with a 2MB PMD, unlink
@@ -2944,6 +2938,14 @@ static int mmu_set_spte(struct kvm_vcpu *vcpu, struct kvm_memory_slot *slot, was_rmapped =1 ; } +if (unlikely (is_noslot_pfn (pfn))) { + vcpu->stat.pf_mmio_spte_created++; +mark_mmio_spte (vcpu, sptep, gfn, pte_access); +if (flush) +kvm_flush_remote_tlbs_gfn (vcpu->kvm, gfn, level); +return RET_PF_EMULATE ; + } + wrprot =make_spte (vcpu, sp, slot, pte_access, gfn, pfn, *sptep, prefetch, true, host_writable, &spte);
arch/x86/platform/efi/quirks.c +1 -1
@@ -424,7 +424,7 @@ void __init efi_unmap_boot_services(void)if (efi_enabled (EFI_DBG ))return ; - sz =sizeof (*ranges_to_free) * efi.memmap.nr_map +1 ; + sz =sizeof (*ranges_to_free) * (efi.memmap.nr_map +1 ); ranges_to_free =kzalloc (sz,GFP_KERNEL );if (!ranges_to_free) {pr_err ("Failed to allocate storage for freeable EFI regions\n" );
drivers/acpi/ec.c +2 -0
@@ -1653,6 +1653,8 @@ static int acpi_ec_setup(struct acpi_ec *ec, struct acpi_device *device, bool ca ret =ec_install_handlers (ec, device, call_reg);if (ret) { +ec_remove_handlers (ec); +if (ec == first_ec) first_ec =NULL ;
drivers/base/bus.c +42 -1
69 lines not on this page · raw message
drivers/base/core.c +2 -0
@@ -2559,6 +2559,7 @@ static void device_release(struct kobject *kobj)devres_release_all (dev);kfree (dev->dma_range_map); +kfree (dev->driver_override.name);if (dev->release) dev->release (dev);
@@ -3162,6 +3163,7 @@ void device_initialize(struct device *dev)kobject_init (&dev->kobj, &device_ktype);INIT_LIST_HEAD (&dev->dma_pools);mutex_init (&dev->mutex); +spin_lock_init (&dev->driver_override.lock);lockdep_set_novalidate_class (&dev->mutex);spin_lock_init (&dev->devres_lock);INIT_LIST_HEAD (&dev->devres_head);
drivers/base/dd.c +60 -0
66 lines not on this page · raw message
drivers/base/platform.c +5 -32
@@ -562,7 +562,6 @@ static void platform_device_release(struct device *dev)kfree (pa->pdev.dev.platform_data);kfree (pa->pdev.mfd_cell);kfree (pa->pdev.resource); -kfree (pa->pdev.driver_override);kfree (pa); }
@@ -1265,38 +1264,9 @@ static ssize_t numa_node_show(struct device *dev, }static DEVICE_ATTR_RO (numa_node); -static ssize_t driver_override_show (struct device *dev, -struct device_attribute *attr,char *buf) -{ -struct platform_device *pdev =to_platform_device (dev); -ssize_t len; - -device_lock (dev); - len =sysfs_emit (buf,"%s\n" , pdev->driver_override); -device_unlock (dev); - -return len; -} - -static ssize_t driver_override_store (struct device *dev, -struct device_attribute *attr, -const char *buf,size_t count) -{ -struct platform_device *pdev =to_platform_device (dev); -int ret; - - ret =driver_set_override (dev, &pdev->driver_override, buf, count); -if (ret) -return ret; - -return count; -} -static DEVICE_ATTR_RW (driver_override); -static struct attribute *platform_dev_attrs[] = { &dev_attr_modalias.attr, &dev_attr_numa_node.attr, - &dev_attr_driver_override.attr,NULL , };
@@ -1336,10 +1306,12 @@ static int platform_match(struct device *dev, const struct device_driver *drv) {struct platform_device *pdev =to_platform_device (dev);struct platform_driver *pdrv =to_platform_driver (drv); +int ret;/* When driver_override is set, only bind to the matching driver */ -if (pdev->driver_override) -return !strcmp (pdev->driver_override, drv->name); + ret =device_match_driver_override (dev, drv); +if (ret >=0 ) +return ret;/* Attempt an OF style match first */ if (of_driver_match_device (dev, drv))
@@ -1477,6 +1449,7 @@ static const struct dev_pm_ops platform_dev_pm_ops = {const struct bus_type platform_bus_type = { .name ="platform" , .dev_groups = platform_dev_groups, + .driver_override = true, .match = platform_match, .uevent = platform_uevent, .probe = platform_probe,
drivers/base/regmap/regmap.c +26 -4
@@ -1544,6 +1544,7 @@ static int _regmap_select_page(struct regmap *map, unsigned int *reg, unsigned int val_num) {void *orig_work_buf; +unsigned int selector_reg;unsigned int win_offset;unsigned int win_page;bool page_chg;
@@ -1562,10 +1563,31 @@ static int _regmap_select_page(struct regmap *map, unsigned int *reg,return -EINVAL ; } -/* It is possible to have selector register inside data window. -In that case, selector register is located on every page and -it needs no page switching, when accessed alone. */ +/* +* Calculate the address of the selector register in the corresponding +* data window if it is located on every page. +*/ + page_chg =in_range (range->selector_reg, range->window_start, range->window_len); +if (page_chg) + selector_reg = range->range_min + win_page * range->window_len + + range->selector_reg - range->window_start; + +/* +* It is possible to have selector register inside data window. +* In that case, selector register is located on every page and it +* needs no page switching, when accessed alone. +* +* Nevertheless we should synchronize the cache values for it. +* This can't be properly achieved if the selector register is +* the first and the only one to be read inside the data window. +* That's why we update it in that case as well. +* +* However, we specifically avoid updating it for the default page, +* when it's overlapped with the real data window, to prevent from +* infinite looping. +*/ if (val_num >1 || + (page_chg && selector_reg != range->selector_reg) || range->window_start + win_offset != range->selector_reg) {/* Use separate work_buf during page switching */ orig_work_buf = map->work_buf;
@@ -1574,7 +1596,7 @@ static int _regmap_select_page(struct regmap *map, unsigned int *reg, ret =_regmap_update_bits (map, range->selector_reg, range->selector_mask, win_page << range->selector_shift, - &page_chg, false); +NULL , false); map->work_buf = orig_work_buf;
drivers/bluetooth/btintel.c +8 -3
@@ -245,11 +245,13 @@ void btintel_hw_error(struct hci_dev *hdev, u8 code)bt_dev_err (hdev,"Hardware error 0x%2.2x" , code); +hci_req_sync_lock (hdev); + skb =__hci_cmd_sync (hdev,HCI_OP_RESET ,0 ,NULL ,HCI_INIT_TIMEOUT );if (IS_ERR (skb)) {bt_dev_err (hdev,"Reset after hardware error failed (%ld)" ,PTR_ERR (skb)); -return ; + goto unlock; }kfree_skb (skb);
@@ -257,18 +259,21 @@ void btintel_hw_error(struct hci_dev *hdev, u8 code)if (IS_ERR (skb)) {bt_dev_err (hdev,"Retrieving Intel exception info failed (%ld)" ,PTR_ERR (skb)); -return ; + goto unlock; }if (skb->len !=13 ) {bt_dev_err (hdev,"Exception info size mismatch" );kfree_skb (skb); -return ; + goto unlock; }bt_dev_err (hdev,"Exception info %s" , (char *)(skb->data +1 ));kfree_skb (skb); + +unlock: +hci_req_sync_unlock (hdev); }EXPORT_SYMBOL_GPL (btintel_hw_error);
drivers/bluetooth/btusb.c +4 -1
@@ -2350,8 +2350,11 @@ static void btusb_work(struct work_struct *work)if (data->air_mode ==HCI_NOTIFY_ENABLE_SCO_CVSD ) {if (hdev->voice_setting &0x0020 ) {static const int alts[3 ] = {2 ,4 ,5 }; +unsigned int sco_idx; - new_alts = alts[data->sco_num -1 ]; + sco_idx = min_t(unsigned int, data->sco_num - 1, +ARRAY_SIZE (alts) -1 ); + new_alts = alts[sco_idx]; }else { new_alts = data->sco_num; }
drivers/bluetooth/hci_ll.c +2 -0
@@ -541,6 +541,8 @@ static int download_firmware(struct ll_device *lldev)if (err || !fw->data || !fw->size) {bt_dev_err (lldev->hu.hdev,"request_firmware failed(errno %d) for %s" , err, bts_scr_name); +if (!err) +release_firmware (fw);return -EINVAL ; } ptr = (void *)fw->data;
drivers/bus/simple-pm-bus.c +2 -2
@@ -36,7 +36,7 @@ static int simple_pm_bus_probe(struct platform_device *pdev)* that's not listed in simple_pm_bus_of_match. We don't want to do any * of the simple-pm-bus tasks for these devices, so return early. */ -if (pdev->driver_override) +if (device_has_driver_override (&pdev->dev))return 0 ; match =of_match_device (dev->driver->of_match_table, dev);
@@ -78,7 +78,7 @@ static void simple_pm_bus_remove(struct platform_device *pdev) {const void *data =of_device_get_match_data (&pdev->dev); -if (pdev->driver_override || data) +if (device_has_driver_override (&pdev->dev) || data)return ;dev_dbg (&pdev->dev,"%s\n" , __func__);
drivers/clk/imx/clk-scu.c +1 -2
@@ -715,8 +715,7 @@ struct clk_hw *imx_clk_scu_alloc_dev(const char *name,if (ret) goto put_device; - ret =driver_set_override (&pdev->dev, &pdev->driver_override, -"imx-scu-clk" ,strlen ("imx-scu-clk" )); + ret =device_set_driver_override (&pdev->dev,"imx-scu-clk" );if (ret) goto put_device;
drivers/cpufreq/cpufreq_conservative.c +12 -0
@@ -313,6 +313,17 @@ static void cs_start(struct cpufreq_policy *policy) dbs_info->requested_freq = policy->cur; } +static void cs_limits (struct cpufreq_policy *policy) +{ +struct cs_policy_dbs_info *dbs_info =to_dbs_info (policy->governor_data); + +/* +* The limits have changed, so may have the current frequency. Reset +* requested_freq to avoid any unintended outcomes due to the mismatch. +*/ + dbs_info->requested_freq = policy->cur; +} +static struct dbs_governor cs_governor = { .gov =CPUFREQ_DBS_GOVERNOR_INITIALIZER ("conservative" ), .kobj_type = { .default_groups = cs_groups },
@@ -322,6 +333,7 @@ static struct dbs_governor cs_governor = { .init = cs_init, .exit = cs_exit, .start = cs_start, + .limits = cs_limits, };#define CPU_FREQ_GOV_CONSERVATIVE (cs_governor.gov)
drivers/cpufreq/cpufreq_governor.c +3 -0
@@ -563,6 +563,7 @@ EXPORT_SYMBOL_GPL(cpufreq_dbs_governor_stop);void cpufreq_dbs_governor_limits (struct cpufreq_policy *policy) { +struct dbs_governor *gov =dbs_governor_of (policy);struct policy_dbs_info *policy_dbs;/* Protect gov->gdbs_data against cpufreq_dbs_governor_exit() */
@@ -574,6 +575,8 @@ void cpufreq_dbs_governor_limits(struct cpufreq_policy *policy)mutex_lock (&policy_dbs->update_mutex);cpufreq_policy_apply_limits (policy);gov_update_sample_delay (policy_dbs,0 ); +if (gov->limits) + gov->limits (policy);mutex_unlock (&policy_dbs->update_mutex); out:
drivers/cpufreq/cpufreq_governor.h +1 -0
@@ -138,6 +138,7 @@ struct dbs_governor {int (*init)(struct dbs_data *dbs_data);void (*exit)(struct dbs_data *dbs_data);void (*start)(struct cpufreq_policy *policy); +void (*limits)(struct cpufreq_policy *policy); };static inline struct dbs_governor *dbs_governor_of (struct cpufreq_policy *policy)
drivers/cxl/core/hdm.c +9 -16
@@ -99,7 +99,6 @@ static bool should_emulate_decoders(struct cxl_endpoint_dvsec_info *info)struct cxl_hdm *cxlhdm;void __iomem *hdm;u32 ctrl; -int i;if (!info)return false;
@@ -118,22 +117,16 @@ static bool should_emulate_decoders(struct cxl_endpoint_dvsec_info *info)return false;/* -* If any decoders are committed already, there should not be any -* emulated DVSEC decoders. +* If HDM decoders are globally enabled, do not fall back to DVSEC +* range emulation. Zeroed decoder registers after region teardown +* do not imply absence of HDM capability. +* +* Falling back to DVSEC here would treat the decoder as AUTO and +* may incorrectly latch default interleave settings. */ -for (i =0 ; i < cxlhdm->decoder_count; i++) { - ctrl =readl (hdm +CXL_HDM_DECODER0_CTRL_OFFSET (i)); -dev_dbg (&info->port->dev, -"decoder%d.%d: committed: %ld base: %#x_%.8x size: %#x_%.8x\n" , - info->port->id, i, -FIELD_GET (CXL_HDM_DECODER0_CTRL_COMMITTED , ctrl), -readl (hdm +CXL_HDM_DECODER0_BASE_HIGH_OFFSET (i)), -readl (hdm +CXL_HDM_DECODER0_BASE_LOW_OFFSET (i)), -readl (hdm +CXL_HDM_DECODER0_SIZE_HIGH_OFFSET (i)), -readl (hdm +CXL_HDM_DECODER0_SIZE_LOW_OFFSET (i))); -if (FIELD_GET (CXL_HDM_DECODER0_CTRL_COMMITTED , ctrl)) -return false; - } + ctrl =readl (hdm +CXL_HDM_DECODER_CTRL_OFFSET ); +if (ctrl &CXL_HDM_DECODER_ENABLE ) +return false;return true; }
drivers/cxl/core/port.c +6 -2
@@ -539,10 +539,13 @@ static void cxl_port_release(struct device *dev)xa_destroy (&port->dports);xa_destroy (&port->regions);ida_free (&cxl_port_ida, port->id); -if (is_cxl_root (port)) + +if (is_cxl_root (port)) {kfree (to_cxl_root (port)); -else + }else { +put_device (dev->parent);kfree (port); + } } static ssize_t decoders_committed_show(struct device *dev,
@@ -710,6 +713,7 @@ static struct cxl_port *cxl_port_alloc(struct device *uport_dev,struct cxl_port *iter; dev->parent = &parent_port->dev; +get_device (dev->parent); port->depth = parent_port->depth +1 ; port->parent_dport = parent_dport;
drivers/dma/dw-edma/dw-hdma-v0-core.c +3 -3
@@ -252,10 +252,10 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) lower_32_bits(chunk->ll_region.paddr));SET_CH_32 (dw, chan->dir, chan->id, llp.msb,upper_32_bits (chunk->ll_region.paddr)); +/* Set consumer cycle */ +SET_CH_32 (dw, chan->dir, chan->id, cycle_sync, +HDMA_V0_CONSUMER_CYCLE_STAT |HDMA_V0_CONSUMER_CYCLE_BIT ); } -/* Set consumer cycle */ -SET_CH_32 (dw, chan->dir, chan->id, cycle_sync, -HDMA_V0_CONSUMER_CYCLE_STAT |HDMA_V0_CONSUMER_CYCLE_BIT );dw_hdma_v0_sync_ll_data (chunk);
drivers/dma/fsl-edma-main.c +11 -15
@@ -185,10 +185,8 @@ static struct dma_chan *fsl_edma3_xlate(struct of_phandle_args *dma_spec,return NULL ; i = fsl_chan - fsl_edma->chans; - fsl_chan->priority = dma_spec->args[1 ]; - fsl_chan->is_rxchan = dma_spec->args[2 ] &FSL_EDMA_RX ; - fsl_chan->is_remote = dma_spec->args[2 ] &FSL_EDMA_REMOTE ; - fsl_chan->is_multi_fifo = dma_spec->args[2 ] &FSL_EDMA_MULTI_FIFO ; +if (!b_chmux && i != dma_spec->args[0 ]) +continue ;if ((dma_spec->args[2 ] &FSL_EDMA_EVEN_CH ) && (i &0x1 ))continue ;
@@ -196,17 +194,15 @@ static struct dma_chan *fsl_edma3_xlate(struct of_phandle_args *dma_spec,if ((dma_spec->args[2 ] &FSL_EDMA_ODD_CH ) && !(i &0x1 ))continue ; -if (!b_chmux && i == dma_spec->args[0 ]) { - chan =dma_get_slave_channel (chan); - chan->device->privatecnt++; -return chan; - }else if (b_chmux && !fsl_chan->srcid) { -/* if controller support channel mux, choose a free channel */ - chan =dma_get_slave_channel (chan); - chan->device->privatecnt++; - fsl_chan->srcid = dma_spec->args[0 ]; -return chan; - } + fsl_chan->srcid = dma_spec->args[0 ]; + fsl_chan->priority = dma_spec->args[1 ]; + fsl_chan->is_rxchan = dma_spec->args[2 ] &FSL_EDMA_RX ; + fsl_chan->is_remote = dma_spec->args[2 ] &FSL_EDMA_REMOTE ; + fsl_chan->is_multi_fifo = dma_spec->args[2 ] &FSL_EDMA_MULTI_FIFO ; + + chan =dma_get_slave_channel (chan); + chan->device->privatecnt++; +return chan; }return NULL ; }
drivers/dma/idxd/cdev.c +4 -4
@@ -161,11 +161,7 @@ static const struct device_type idxd_cdev_file_type = {static void idxd_cdev_dev_release (struct device *dev) {struct idxd_cdev *idxd_cdev =dev_to_cdev (dev); -struct idxd_cdev_context *cdev_ctx; -struct idxd_wq *wq = idxd_cdev->wq; - cdev_ctx = &ictx[wq->idxd->data->type]; -ida_free (&cdev_ctx->minor_ida, idxd_cdev->minor);kfree (idxd_cdev); }
@@ -585,11 +581,15 @@ int idxd_wq_add_cdev(struct idxd_wq *wq)void idxd_wq_del_cdev (struct idxd_wq *wq) { +struct idxd_cdev_context *cdev_ctx;struct idxd_cdev *idxd_cdev; idxd_cdev = wq->idxd_cdev; wq->idxd_cdev =NULL ;cdev_device_del (&idxd_cdev->cdev,cdev_dev (idxd_cdev)); + + cdev_ctx = &ictx[wq->idxd->data->type]; +ida_free (&cdev_ctx->minor_ida, idxd_cdev->minor);put_device (cdev_dev (idxd_cdev)); }
drivers/dma/idxd/device.c +1 -6
@@ -174,6 +174,7 @@ void idxd_wq_free_resources(struct idxd_wq *wq)free_descs (wq);dma_free_coherent (dev, wq->compls_size, wq->compls, wq->compls_addr);sbitmap_queue_free (&wq->sbq); + wq->type =IDXD_WQT_NONE ; }EXPORT_SYMBOL_NS_GPL (idxd_wq_free_resources,IDXD );
@@ -367,7 +368,6 @@ static void idxd_wq_disable_cleanup(struct idxd_wq *wq)lockdep_assert_held (&wq->wq_lock); wq->state =IDXD_WQ_DISABLED ;memset (wq->wqcfg,0 , idxd->wqcfg_size); - wq->type =IDXD_WQT_NONE ; wq->threshold =0 ; wq->priority =0 ; wq->enqcmds_retries =IDXD_ENQCMDS_RETRIES ;
@@ -815,10 +815,6 @@ static void idxd_device_evl_free(struct idxd_device *idxd)struct device *dev = &idxd->pdev->dev;struct idxd_evl *evl = idxd->evl; - gencfg.bits =ioread32 (idxd->reg_base +IDXD_GENCFG_OFFSET ); -if (!gencfg.evl_en) -return ; -mutex_lock (&evl->lock); gencfg.evl_en =0 ;iowrite32 (gencfg.bits, idxd->reg_base +IDXD_GENCFG_OFFSET );
@@ -1513,7 +1509,6 @@ void idxd_drv_disable_wq(struct idxd_wq *wq)idxd_wq_reset (wq);idxd_wq_free_resources (wq);percpu_ref_exit (&wq->wq_active); - wq->type =IDXD_WQT_NONE ; wq->client_count =0 ; }EXPORT_SYMBOL_NS_GPL (idxd_drv_disable_wq,IDXD );
drivers/dma/idxd/submit.c +1 -1
@@ -138,7 +138,7 @@ static void llist_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie,*/ list_for_each_entry_safe (d, t, &flist, list) {list_del_init (&d->list); -idxd_dma_complete_txd (found,IDXD_COMPLETE_ABORT , true, +idxd_dma_complete_txd (d,IDXD_COMPLETE_ABORT , true,NULL ,NULL ); } }
drivers/dma/idxd/sysfs.c +1 -0
@@ -1810,6 +1810,7 @@ static void idxd_conf_device_release(struct device *dev) {struct idxd_device *idxd =confdev_to_idxd (dev); +destroy_workqueue (idxd->wq);kfree (idxd->groups);bitmap_free (idxd->wq_enable_map);kfree (idxd->wqs);
drivers/dma/sh/rz-dmac.c +36 -30
121 lines not on this page · raw message
drivers/dma/xilinx/xdma.c +2 -2
@@ -1240,8 +1240,8 @@ static int xdma_probe(struct platform_device *pdev) xdev->rmap =devm_regmap_init_mmio (&pdev->dev, reg_base, &xdma_regmap_config); -if (!xdev->rmap) { -xdma_err (xdev,"config regmap failed: %d" , ret); +if (IS_ERR (xdev->rmap)) { +xdma_err (xdev,"config regmap failed: %pe" , xdev->rmap); goto failed; }INIT_LIST_HEAD (&xdev->dma_dev.channels);
drivers/dma/xilinx/xilinx_dma.c +30 -16
89 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c +2 -2
@@ -702,9 +702,9 @@ int amdgpu_amdkfd_submit_ib(struct amdgpu_device *adev, goto err_ib_sched; } -/* Drop the initial kref_init count (see drm_sched_main as example) */ -dma_fence_put (f); ret =dma_fence_wait (f, false); +/* Drop the returned fence reference after the wait completes */ +dma_fence_put (f); err_ib_sched:amdgpu_job_free (job);
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +32 -13
74 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.h +1 -0
@@ -75,6 +75,7 @@ int amdgpu_pasid_alloc(unsigned int bits);void amdgpu_pasid_free (u32 pasid);void amdgpu_pasid_free_delayed (struct dma_resv *resv,u32 pasid); +void amdgpu_pasid_mgr_cleanup (void );bool amdgpu_vmid_had_gpu_reset (struct amdgpu_device *adev,struct amdgpu_vmid *id);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 -0
@@ -2721,6 +2721,7 @@ void amdgpu_vm_manager_fini(struct amdgpu_device *adev)xa_destroy (&adev->vm_manager.pasids);amdgpu_vmid_mgr_fini (adev); +amdgpu_pasid_mgr_cleanup (); }/**
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +4 -1
@@ -567,6 +567,9 @@ static int mes_v12_0_set_hw_resources(struct amdgpu_mes *mes, int pipe)int i;struct amdgpu_device *adev = mes->adev;union MESAPI_SET_HW_RESOURCES mes_set_hw_res_pkt; +uint32_t mes_rev = (pipe ==AMDGPU_MES_SCHED_PIPE ) ? + (mes->sched_version &AMDGPU_MES_VERSION_MASK ) : + (mes->kiq_version &AMDGPU_MES_VERSION_MASK );memset (&mes_set_hw_res_pkt,0 ,sizeof (mes_set_hw_res_pkt));
@@ -621,7 +624,7 @@ static int mes_v12_0_set_hw_resources(struct amdgpu_mes *mes, int pipe)* handling support, other queue will not use the oversubscribe timer. * handling mode - 0: disabled; 1: basic version; 2: basic+ version */ - mes_set_hw_res_pkt.oversubscription_timer =50 ; + mes_set_hw_res_pkt.oversubscription_timer = mes_rev <0x8b ?0 :50 ; mes_set_hw_res_pkt.unmapped_doorbell_handling =1 ;if (amdgpu_mes_log_enable) {
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -0
@@ -11722,6 +11722,11 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, }if (dc_resource_is_dsc_encoding_supported (dc)) { +for_each_oldnew_crtc_in_state (state, crtc, old_crtc_state, new_crtc_state, i) { + dm_new_crtc_state =to_dm_crtc_state (new_crtc_state); + dm_new_crtc_state->mode_changed_independent_from_dsc = new_crtc_state->mode_changed; + } +for_each_oldnew_crtc_in_state (state, crtc, old_crtc_state, new_crtc_state, i) {if (drm_atomic_crtc_needs_modeset (new_crtc_state)) { ret =add_affected_mst_dsc_crtcs (state, crtc);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +1 -0
@@ -881,6 +881,7 @@ struct dm_crtc_state {bool freesync_vrr_info_changed; +bool mode_changed_independent_from_dsc;bool dsc_force_changed;bool vrr_supported;struct mod_freesync_config freesync_config;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +3 -1
@@ -1703,9 +1703,11 @@ int pre_validate_dsc(struct drm_atomic_state *state,int ind =find_crtc_index_in_state_by_stream (state, stream);if (ind >=0 ) { +struct dm_crtc_state *dm_new_crtc_state =to_dm_crtc_state (state->crtcs[ind].new_state); +DRM_INFO_ONCE ("%s:%d MST_DSC no mode changed for stream 0x%p\n" , __func__, __LINE__, stream); - state->crtcs[ind].new_state->mode_changed =0 ; + dm_new_crtc_state->base.mode_changed = dm_new_crtc_state->mode_changed_independent_from_dsc; } } }
drivers/gpu/drm/i915/display/intel_display.c +7 -1
@@ -4588,6 +4588,7 @@ intel_crtc_prepare_cleared_state(struct intel_atomic_state *state,intel_atomic_get_new_crtc_state (state, crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_crtc_state *saved_state; +int err; saved_state =intel_crtc_state_alloc (crtc);if (!saved_state)
@@ -4596,7 +4597,12 @@ intel_crtc_prepare_cleared_state(struct intel_atomic_state *state,/* free the old crtc_state->hw members */ intel_crtc_free_hw_state (crtc_state); -intel_dp_tunnel_atomic_clear_stream_bw (state, crtc_state); + err =intel_dp_tunnel_atomic_clear_stream_bw (state, crtc_state); +if (err) { +kfree (saved_state); + +return err; + }/* FIXME: before the switch to atomic started, a new pipe_config was * kzalloc'd. Code that depends on any field being zero should be
drivers/gpu/drm/i915/display/intel_dp_tunnel.c +14 -6
@@ -622,19 +622,27 @@ int intel_dp_tunnel_atomic_compute_stream_bw(struct intel_atomic_state *state,* * Clear any DP tunnel stream BW requirement set by * intel_dp_tunnel_atomic_compute_stream_bw(). +* +* Returns 0 in case of success, a negative error code otherwise. */ -void intel_dp_tunnel_atomic_clear_stream_bw (struct intel_atomic_state *state, -struct intel_crtc_state *crtc_state) +int intel_dp_tunnel_atomic_clear_stream_bw (struct intel_atomic_state *state, +struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +int err;if (!crtc_state->dp_tunnel_ref.tunnel) -return ; +return 0 ; + + err =drm_dp_tunnel_atomic_set_stream_bw (&state->base, + crtc_state->dp_tunnel_ref.tunnel, + crtc->pipe,0 ); +if (err) +return err; -drm_dp_tunnel_atomic_set_stream_bw (&state->base, - crtc_state->dp_tunnel_ref.tunnel, - crtc->pipe,0 );drm_dp_tunnel_ref_put (&crtc_state->dp_tunnel_ref); + +return 0 ; }/**
drivers/gpu/drm/i915/display/intel_dp_tunnel.h +7 -4
@@ -39,8 +39,8 @@ int intel_dp_tunnel_atomic_compute_stream_bw(struct intel_atomic_state *state,struct intel_dp *intel_dp, const struct intel_connector *connector, struct intel_crtc_state *crtc_state); -void intel_dp_tunnel_atomic_clear_stream_bw (struct intel_atomic_state *state, -struct intel_crtc_state *crtc_state); +int intel_dp_tunnel_atomic_clear_stream_bw (struct intel_atomic_state *state, +struct intel_crtc_state *crtc_state);int intel_dp_tunnel_atomic_add_state_for_crtc (struct intel_atomic_state *state,struct intel_crtc *crtc);
@@ -87,9 +87,12 @@ intel_dp_tunnel_atomic_compute_stream_bw(struct intel_atomic_state *state,return 0 ; } -static inline void +static inline int intel_dp_tunnel_atomic_clear_stream_bw (struct intel_atomic_state *state, -struct intel_crtc_state *crtc_state) {} +struct intel_crtc_state *crtc_state) +{ +return 0 ; +} static inline int intel_dp_tunnel_atomic_add_state_for_crtc(struct intel_atomic_state *state,
drivers/gpu/drm/i915/display/intel_gmbus.c +3 -1
@@ -460,8 +460,10 @@ gmbus_xfer_read_chunk(struct drm_i915_private *i915, val =intel_de_read_fw (i915,GMBUS3 (i915)); do { - if (extra_byte_added && len == 1) + if (extra_byte_added && len == 1) { + len--; break; + } *buf++ = val & 0xff; val >>= 8;
drivers/gpu/drm/ttm/tests/ttm_bo_test.c +2 -2
@@ -222,13 +222,13 @@ static void ttm_bo_reserve_interrupted(struct kunit *test)KUNIT_FAIL (test,"Couldn't create ttm bo reserve task\n" );/* Take a lock so the threaded reserve has to wait */ -mutex_lock (&bo->base.resv->lock.base); +dma_resv_lock (bo->base.resv,NULL );wake_up_process (task);msleep (20 ); err =kthread_stop (task); -mutex_unlock (&bo->base.resv->lock.base); +dma_resv_unlock (bo->base.resv);KUNIT_ASSERT_EQ (test, err, -ERESTARTSYS ); }
drivers/gpu/drm/xe/xe_pt.c +6 -6
@@ -1281,9 +1281,9 @@ static int op_check_userptr(struct xe_vm *vm, struct xe_vma_op *op, err =vma_check_userptr (vm, op->map.vma, pt_update);break ;case DRM_GPUVA_OP_REMAP : -if (op->remap.prev) +if (op->remap.prev && !op->remap.skip_prev) err =vma_check_userptr (vm, op->remap.prev, pt_update); -if (!err && op->remap.next) +if (!err && op->remap.next && !op->remap.skip_next) err =vma_check_userptr (vm, op->remap.next, pt_update);break ;case DRM_GPUVA_OP_UNMAP :
@@ -1784,12 +1784,12 @@ static int op_prepare(struct xe_vm *vm, err =unbind_op_prepare (tile, pt_update_ops,gpuva_to_vma (op->base.remap.unmap->va)); -if (!err && op->remap.prev) { +if (!err && op->remap.prev && !op->remap.skip_prev) { err =bind_op_prepare (vm, tile, pt_update_ops, op->remap.prev); pt_update_ops->wait_vm_bookkeep = true; } -if (!err && op->remap.next) { +if (!err && op->remap.next && !op->remap.skip_next) { err =bind_op_prepare (vm, tile, pt_update_ops, op->remap.next); pt_update_ops->wait_vm_bookkeep = true;
@@ -1950,10 +1950,10 @@ static void op_commit(struct xe_vm *vm,gpuva_to_vma (op->base.remap.unmap->va), fence, fence2); -if (op->remap.prev) +if (op->remap.prev && !op->remap.skip_prev)bind_op_commit (vm, tile, pt_update_ops, op->remap.prev, fence, fence2); -if (op->remap.next) +if (op->remap.next && !op->remap.skip_next)bind_op_commit (vm, tile, pt_update_ops, op->remap.next, fence, fence2);break ;
drivers/gpu/drm/xe/xe_vm.c +18 -4
@@ -2187,7 +2187,6 @@ static int xe_vma_op_commit(struct xe_vm *vm, struct xe_vma_op *op)if (!err && op->remap.skip_prev) { op->remap.prev->tile_present = tile_present; - op->remap.prev =NULL ; } }if (op->remap.next) {
@@ -2197,11 +2196,13 @@ static int xe_vma_op_commit(struct xe_vm *vm, struct xe_vma_op *op)if (!err && op->remap.skip_next) { op->remap.next->tile_present = tile_present; - op->remap.next =NULL ; } } -/* Adjust for partial unbind after removin VMA from VM */ +/* +* Adjust for partial unbind after removing VMA from VM. In case +* of unwind we might need to undo this later. +*/ if (!err) { op->base.remap.unmap->va->va.addr = op->remap.start; op->base.remap.unmap->va->va.range = op->remap.range;
@@ -2273,6 +2274,8 @@ static int vm_bind_ioctl_ops_parse(struct xe_vm *vm, struct drm_gpuva_ops *ops, op->remap.start =xe_vma_start (old); op->remap.range =xe_vma_size (old); + op->remap.old_start = op->remap.start; + op->remap.old_range = op->remap.range;if (op->base.remap.prev) { flags |= op->base.remap.unmap->va->flags &
@@ -2421,8 +2424,19 @@ static void xe_vma_op_unwind(struct xe_vm *vm, struct xe_vma_op *op,down_read (&vm->userptr.notifier_lock); vma->gpuva.flags &= ~XE_VMA_DESTROYED ;up_read (&vm->userptr.notifier_lock); -if (post_commit) +if (post_commit) { +/* +* Restore the old va range, in case of the +* prev/next skip optimisation. Otherwise what +* we re-insert here could be smaller than the +* original range. +*/ + op->base.remap.unmap->va->va.addr = + op->remap.old_start; + op->base.remap.unmap->va->va.range = + op->remap.old_range;xe_vm_insert_vma (vm, vma); + } }break ; }
drivers/gpu/drm/xe/xe_vm_types.h +4 -0
@@ -314,6 +314,10 @@ struct xe_vma_op_remap {u64 start;/** @range: range of the VMA unmap */ u64 range; +/** @old_start: Original start of the VMA we unmap */ +u64 old_start; +/** @old_range: Original range of the VMA we unmap */ +u64 old_range;/** @skip_prev: skip prev rebind */ bool skip_prev;/** @skip_next: skip next rebind */
drivers/hid/hid-apple.c +4 -3
@@ -364,6 +364,9 @@ static const struct apple_non_apple_keyboard non_apple_keyboards[] = { { "A3R" }, { "hfd.cn" }, { "WKB603" }, + { "TH87" }, /* EPOMAKER TH87 BT mode */ + { "HFD Epomaker TH87" }, /* EPOMAKER TH87 USB mode */ + { "2.4G Wireless Receiver" }, /* EPOMAKER TH87 dongle */ };static bool apple_is_non_apple_keyboard (struct hid_device *hdev)
@@ -660,9 +663,7 @@ static const __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc,hid_info (hdev,"fixing up Magic Keyboard battery report descriptor\n" ); *rsize = *rsize -1 ; - rdesc =kmemdup (rdesc +1 , *rsize,GFP_KERNEL ); -if (!rdesc) -return NULL ; + rdesc = rdesc +1 ; rdesc[0 ] =0x05 ; rdesc[1 ] =0x01 ;
drivers/hid/hid-asus.c +14 -4
@@ -1302,14 +1302,21 @@ static const __u8 *asus_report_fixup(struct hid_device *hdev, __u8 *rdesc,*/ if (*rsize == rsize_orig && rdesc[offs] ==0x09 && rdesc[offs +1 ] ==0x76 ) { - *rsize = rsize_orig +1 ; - rdesc =kmemdup (rdesc, *rsize,GFP_KERNEL ); -if (!rdesc) -return NULL ; +__u8 *new_rdesc; + + new_rdesc =devm_kzalloc (&hdev->dev, rsize_orig +1 , +GFP_KERNEL ); +if (!new_rdesc) +return rdesc;hid_info (hdev,"Fixing up %s keyb report descriptor\n" , drvdata->quirks &QUIRK_T100CHI ?"T100CHI" :"T90CHI" ); + +memcpy (new_rdesc, rdesc, rsize_orig); + *rsize = rsize_orig +1 ; + rdesc = new_rdesc; +memmove (rdesc + offs +4 , rdesc + offs +2 ,12 ); rdesc[offs] =0x19 ; rdesc[offs +1 ] =0x00 ;
@@ -1393,6 +1400,9 @@ static const struct hid_device_id asus_devices[] = { {HID_USB_DEVICE (USB_VENDOR_ID_ASUSTEK ,USB_DEVICE_ID_ASUSTEK_ROG_NKEY_ALLY_X ), QUIRK_USE_KBD_BACKLIGHT | QUIRK_ROG_NKEY_KEYBOARD | QUIRK_ROG_ALLY_XPAD }, + { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, +USB_DEVICE_ID_ASUSTEK_XGM_2023 ), + }, { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK,USB_DEVICE_ID_ASUSTEK_ROG_CLAYMORE_II_KEYBOARD ), QUIRK_ROG_CLAYMORE_II_KEYBOARD },
drivers/hid/hid-ids.h +1 -0
@@ -225,6 +225,7 @@#define USB_DEVICE_ID_ASUSTEK_ROG_NKEY_ALLY_X 0x1b4c#define USB_DEVICE_ID_ASUSTEK_ROG_CLAYMORE_II_KEYBOARD 0x196b#define USB_DEVICE_ID_ASUSTEK_FX503VD_KEYBOARD 0x1869 +#define USB_DEVICE_ID_ASUSTEK_XGM_2023 0x1a9a#define USB_VENDOR_ID_ATEN 0x0557#define USB_DEVICE_ID_ATEN_UC100KM 0x2004
drivers/hid/hid-magicmouse.c +2 -4
@@ -966,13 +966,11 @@ static const __u8 *magicmouse_report_fixup(struct hid_device *hdev, __u8 *rdesc,*/ if ((is_usb_magicmouse2 (hdev->vendor, hdev->product) ||is_usb_magictrackpad2 (hdev->vendor, hdev->product)) && - *rsize ==83 && rdesc[46 ] ==0x84 && rdesc[58 ] ==0x85 ) { + *rsize >=83 && rdesc[46 ] ==0x84 && rdesc[58 ] ==0x85 ) {hid_info (hdev,"fixing up magicmouse battery report descriptor\n" ); *rsize = *rsize -1 ; - rdesc =kmemdup (rdesc +1 , *rsize,GFP_KERNEL ); -if (!rdesc) -return NULL ; + rdesc = rdesc +1 ; rdesc[0 ] =0x05 ; rdesc[1 ] =0x01 ;
drivers/hid/hid-mcp2221.c +2 -0
@@ -337,6 +337,8 @@ static int mcp_i2c_smbus_read(struct mcp2221 *mcp,usleep_range (90 ,100 ); retries++; }else { +usleep_range (980 ,1000 ); +mcp_cancel_last_cmd (mcp);return ret; } }else {
drivers/hwmon/adm1177.c +31 -23
111 lines not on this page · raw message
drivers/hwmon/axi-fan-control.c +1 -1
@@ -507,7 +507,7 @@ static int axi_fan_control_probe(struct platform_device *pdev) ret =devm_request_threaded_irq (&pdev->dev, ctl->irq,NULL , axi_fan_control_irq_handler,IRQF_ONESHOT |IRQF_TRIGGER_HIGH , - pdev->driver_override, ctl); +NULL , ctl);if (ret)return dev_err_probe (&pdev->dev, ret,"failed to request an irq\n" );
drivers/hwmon/peci/cputemp.c +2 -2
@@ -133,7 +133,7 @@ static int get_temp_target(struct peci_cputemp *priv, enum peci_temp_target_type *val = priv->temp.target.tjmax;break ;case crit_hyst_type: - *val = priv->temp.target.tjmax - priv->temp.target.tcontrol; + *val = priv->temp.target.tcontrol;break ;default : ret = -EOPNOTSUPP ;
@@ -339,7 +339,7 @@ static umode_t cputemp_is_visible(const void *data, enum hwmon_sensor_types type {const struct peci_cputemp *priv = data; -if (channel >CPUTEMP_CHANNEL_NUMS ) +if (channel >=CPUTEMP_CHANNEL_NUMS )return 0 ;if (channel < channel_core)
drivers/hwmon/pmbus/isl68137.c +18 -3
@@ -78,7 +78,15 @@ static ssize_t isl68137_avs_enable_show_page(struct i2c_client *client,int page, char *buf) { - int val = pmbus_read_byte_data(client, page, PMBUS_OPERATION); + int val; + + val =pmbus_lock_interruptible (client); +if (val) +return val; + + val =pmbus_read_byte_data (client, page,PMBUS_OPERATION ); + +pmbus_unlock (client);if (val <0 )return val;
@@ -100,6 +108,10 @@ static ssize_t isl68137_avs_enable_store_page(struct i2c_client *client, op_val = result ?ISL68137_VOUT_AVS :0 ; + rc =pmbus_lock_interruptible (client); +if (rc) +return rc; +/* * Writes to VOUT setpoint over AVSBus will persist after the VRM is * switched to PMBus control. Switching back to AVSBus control
@@ -111,17 +123,20 @@ static ssize_t isl68137_avs_enable_store_page(struct i2c_client *client, rc =pmbus_read_word_data (client, page,0xff ,PMBUS_VOUT_COMMAND );if (rc <0 ) -return rc; + goto unlock; rc =pmbus_write_word_data (client, page,PMBUS_VOUT_COMMAND , rc);if (rc <0 ) -return rc; + goto unlock; } rc =pmbus_update_byte_data (client, page,PMBUS_OPERATION ,ISL68137_VOUT_AVS , op_val); +unlock: +pmbus_unlock (client); +return (rc <0 ) ? rc : count; }
drivers/hwmon/pmbus/pmbus_core.c +81 -36
452 lines not on this page · raw message
drivers/i3c/master/dw-i3c-master.c +2 -0
@@ -1606,6 +1606,8 @@ int dw_i3c_common_probe(struct dw_i3c_master *master, master->free_pos =GENMASK (master->maxdevs -1 ,0 );INIT_WORK (&master->hj_work, dw_i3c_hj_work); + +device_set_of_node_from_dev (&master->base.i2c.dev, &pdev->dev); ret =i3c_master_register (&master->base, &pdev->dev, &dw_mipi_i3c_ops, false);if (ret)
drivers/infiniband/core/rw.c +18 -3
@@ -326,14 +326,29 @@ int rdma_rw_ctx_init(struct rdma_rw_ctx *ctx, struct ib_qp *qp, u32 port_num,if (rdma_rw_io_needs_mr (qp->device, port_num, dir, sg_cnt)) { ret =rdma_rw_init_mr_wrs (ctx, qp, port_num, sg, sg_cnt, sg_offset, remote_addr, rkey, dir); - }else if (sg_cnt >1 ) { +/* +* If MR init succeeded or failed for a reason other +* than pool exhaustion, that result is final. +* +* Pool exhaustion (-EAGAIN) from the max_sgl_rd +* optimization is recoverable: fall back to +* direct SGE posting. iWARP and force_mr require +* MRs unconditionally, so -EAGAIN is terminal. +*/ +if (ret != -EAGAIN || +rdma_protocol_iwarp (qp->device, port_num) || +unlikely (rdma_rw_force_mr)) + goto out; + } + +if (sg_cnt >1 ) ret =rdma_rw_init_map_wrs (ctx, qp, sg, sg_cnt, sg_offset, remote_addr, rkey, dir); - }else { +else ret =rdma_rw_init_single_wr (ctx, qp, sg, sg_offset, remote_addr, rkey, dir); - } +out:if (ret <0 ) goto out_unmap_sg;return ret;
drivers/infiniband/hw/irdma/cm.c +16 -13
@@ -2240,11 +2240,12 @@ irdma_make_cm_node(struct irdma_cm_core *cm_core, struct irdma_device *iwdev,int oldarpindex;int arpindex;struct net_device *netdev = iwdev->netdev; +int ret;/* create an hte and cm_node for this instance */ cm_node =kzalloc (sizeof (*cm_node),GFP_ATOMIC );if (!cm_node) -return NULL ; +return ERR_PTR (-ENOMEM );/* set our node specific transport info */ cm_node->ipv4 = cm_info->ipv4;
@@ -2347,8 +2348,10 @@ irdma_make_cm_node(struct irdma_cm_core *cm_core, struct irdma_device *iwdev, arpindex = -EINVAL ; } -if (arpindex <0 ) +if (arpindex <0 ) { + ret = -EINVAL ; goto err; + }ether_addr_copy (cm_node->rem_mac, iwdev->rf->arp_table[arpindex].mac_addr);
@@ -2359,7 +2362,7 @@ irdma_make_cm_node(struct irdma_cm_core *cm_core, struct irdma_device *iwdev, err:kfree (cm_node); -return NULL ; +return ERR_PTR (ret); }static void irdma_destroy_connection (struct irdma_cm_node *cm_node)
@@ -3020,8 +3023,8 @@ static int irdma_create_cm_node(struct irdma_cm_core *cm_core,/* create a CM connection node */ cm_node =irdma_make_cm_node (cm_core, iwdev, cm_info,NULL ); -if (!cm_node) -return -ENOMEM ; +if (IS_ERR (cm_node)) +return PTR_ERR (cm_node);/* set our node side to client (active) side */ cm_node->tcp_cntxt.client =1 ;
@@ -3218,9 +3221,9 @@ void irdma_receive_ilq(struct irdma_sc_vsi *vsi, struct irdma_puda_buf *rbuf) cm_info.cm_id = listener->cm_id; cm_node =irdma_make_cm_node (cm_core, iwdev, &cm_info, listener); -if (!cm_node) { +if (IS_ERR (cm_node)) {ibdev_dbg (&cm_core->iwdev->ibdev, -"CM: allocate node failed\n" ); +"CM: allocate node failed ret=%ld\n" ,PTR_ERR (cm_node));refcount_dec (&listener->refcnt);return ; }
@@ -4238,21 +4241,21 @@ static void irdma_cm_event_handler(struct work_struct *work)irdma_cm_event_reset (event);break ;case IRDMA_CM_EVENT_CONNECTED : -if (!event->cm_node->cm_id || - event->cm_node->state !=IRDMA_CM_STATE_OFFLOADED ) +if (!cm_node->cm_id || + cm_node->state !=IRDMA_CM_STATE_OFFLOADED )break ;irdma_cm_event_connected (event);break ;case IRDMA_CM_EVENT_MPA_REJECT : -if (!event->cm_node->cm_id || +if (!cm_node->cm_id || cm_node->state ==IRDMA_CM_STATE_OFFLOADED )break ;irdma_send_cm_event (cm_node, cm_node->cm_id,IW_CM_EVENT_CONNECT_REPLY , -ECONNREFUSED );break ;case IRDMA_CM_EVENT_ABORTED : -if (!event->cm_node->cm_id || - event->cm_node->state ==IRDMA_CM_STATE_OFFLOADED ) +if (!cm_node->cm_id || + cm_node->state ==IRDMA_CM_STATE_OFFLOADED )break ;irdma_event_connect_error (event);break ;
@@ -4262,7 +4265,7 @@ static void irdma_cm_event_handler(struct work_struct *work)break ; } -irdma_rem_ref_cm_node (event->cm_node); +irdma_rem_ref_cm_node (cm_node);kfree (event); }
drivers/infiniband/hw/irdma/utils.c +0 -2
@@ -2340,8 +2340,6 @@ void irdma_modify_qp_to_err(struct irdma_sc_qp *sc_qp)struct irdma_qp *qp = sc_qp->qp_uk.back_qp;struct ib_qp_attr attr; -if (qp->iwdev->rf->reset) -return ; attr.qp_state =IB_QPS_ERR ;if (rdma_protocol_roce (qp->ibqp.device,1 ))
drivers/infiniband/hw/irdma/verbs.c +5 -4
@@ -536,7 +536,8 @@ static int irdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata) }irdma_qp_rem_ref (&iwqp->ibqp); -wait_for_completion (&iwqp->free_qp); +if (!iwdev->rf->reset) +wait_for_completion (&iwqp->free_qp);irdma_free_lsmm_rsrc (iwqp);irdma_cqp_qp_destroy_cmd (&iwdev->rf->sc_dev, &iwqp->sc_qp);
@@ -1008,6 +1009,7 @@ static int irdma_create_qp(struct ib_qp *ibqp,spin_lock_init (&iwqp->sc_qp.pfpdu.lock); iwqp->sig_all = init_attr->sq_sig_type ==IB_SIGNAL_ALL_WR ; rf->qp_table[qp_num] = iwqp; +init_completion (&iwqp->free_qp);if (rdma_protocol_roce (&iwdev->ibdev,1 )) {if (dev->ws_add (&iwdev->vsi,0 )) {
@@ -1042,7 +1044,6 @@ static int irdma_create_qp(struct ib_qp *ibqp, } } -init_completion (&iwqp->free_qp);return 0 ; error:
@@ -1364,8 +1365,6 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr, roce_info->rd_en = true; } -wait_event (iwqp->mod_qp_waitq, !atomic_read (&iwqp->hw_mod_qp_pend)); - ibdev_dbg(&iwdev->ibdev, "VERBS: caller: %pS qp_id=%d to_ibqpstate=%d ibqpstate=%d irdma_qpstate=%d attr_mask=0x%x\n", __builtin_return_address(0), ibqp->qp_num, attr->qp_state,
@@ -1442,6 +1441,7 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,case IB_QPS_ERR :case IB_QPS_RESET :if (iwqp->iwarp_state ==IRDMA_QP_STATE_ERROR ) { + iwqp->ibqp_state = attr->qp_state;spin_unlock_irqrestore (&iwqp->lock, flags);if (udata && udata->inlen) { if (ib_copy_from_udata(&ureq, udata,
@@ -1647,6 +1647,7 @@ int irdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask,case IB_QPS_ERR :case IB_QPS_RESET :if (iwqp->iwarp_state ==IRDMA_QP_STATE_ERROR ) { + iwqp->ibqp_state = attr->qp_state;spin_unlock_irqrestore (&iwqp->lock, flags);if (udata && udata->inlen) { if (ib_copy_from_udata(&ureq, udata,
drivers/irqchip/irq-qcom-mpm.c +3 -0
@@ -306,6 +306,8 @@ static int mpm_pd_power_off(struct generic_pm_domain *genpd)if (ret <0 )return ret; +mbox_client_txdone (priv->mbox_chan,0 ); +return 0 ; }
@@ -434,6 +436,7 @@ static int qcom_mpm_init(struct device_node *np, struct device_node *parent) } priv->mbox_client.dev = dev; + priv->mbox_client.knows_txdone = true; priv->mbox_chan =mbox_request_channel (&priv->mbox_client,0 );if (IS_ERR (priv->mbox_chan)) { ret =PTR_ERR (priv->mbox_chan);
drivers/media/mc/mc-request.c +5 -0
@@ -190,6 +190,8 @@ static long media_request_ioctl_reinit(struct media_request *req)struct media_device *mdev = req->mdev;unsigned long flags; +mutex_lock (&mdev->req_queue_mutex); +spin_lock_irqsave (&req->lock, flags);if (req->state !=MEDIA_REQUEST_STATE_IDLE && req->state !=MEDIA_REQUEST_STATE_COMPLETE ) {
@@ -197,6 +199,7 @@ static long media_request_ioctl_reinit(struct media_request *req)"request: %s not in idle or complete state, cannot reinit\n" , req->debug_str);spin_unlock_irqrestore (&req->lock, flags); +mutex_unlock (&mdev->req_queue_mutex);return -EBUSY ; }if (req->access_count) {
@@ -204,6 +207,7 @@ static long media_request_ioctl_reinit(struct media_request *req)"request: %s is being accessed, cannot reinit\n" , req->debug_str);spin_unlock_irqrestore (&req->lock, flags); +mutex_unlock (&mdev->req_queue_mutex);return -EBUSY ; } req->state =MEDIA_REQUEST_STATE_CLEANING ;
@@ -214,6 +218,7 @@ static long media_request_ioctl_reinit(struct media_request *req)spin_lock_irqsave (&req->lock, flags); req->state =MEDIA_REQUEST_STATE_IDLE ;spin_unlock_irqrestore (&req->lock, flags); +mutex_unlock (&mdev->req_queue_mutex);return 0 ; }
drivers/media/platform/nxp/imx8-isi/imx8-isi-video.c +58 -98
194 lines not on this page · raw message
drivers/media/v4l2-core/v4l2-ioctl.c +3 -2
@@ -3069,13 +3069,14 @@ static long __video_do_ioctl(struct file *file, vfh = file->private_data;/* -* We need to serialize streamon/off with queueing new requests. +* We need to serialize streamon/off/reqbufs with queueing new requests. * These ioctls may trigger the cancellation of a streaming * operation, and that should not be mixed with queueing a new * request at the same time. */ if (v4l2_device_supports_requests (vfd->v4l2_dev) && - (cmd ==VIDIOC_STREAMON || cmd ==VIDIOC_STREAMOFF )) { + (cmd ==VIDIOC_STREAMON || cmd ==VIDIOC_STREAMOFF || + cmd ==VIDIOC_REQBUFS )) { req_queue_lock = &vfd->v4l2_dev->mdev->req_queue_mutex;if (mutex_lock_interruptible (req_queue_lock))
drivers/net/ethernet/broadcom/asp2/bcmasp.c +96 -135
86 lines not on this page · raw message
drivers/net/ethernet/broadcom/asp2/bcmasp.h +39 -43
82 lines not on this page · raw message
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c +4 -71
75 lines not on this page · raw message
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c +22 -16
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/broadcom/asp2/bcmasp_intf_defs.h +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/cadence/macb_main.c +25 -16
41 lines not on this page · raw message
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/iavf/iavf_ethtool.c +15 -16
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool.c +11 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_main.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ptp.c +14 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ptp.h +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_repr.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c +15 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_lib.c +126 -107
233 lines not on this page · raw message
drivers/net/ethernet/intel/idpf/idpf_txrx.c +14 -24
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_txrx.h +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c +8 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microchip/lan743x_main.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/pensando/ionic/ionic_lif.c +11 -6
Lines of this file are not shown. View the raw message.
drivers/net/team/team_core.c +64 -1
65 lines not on this page · raw message
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-mtk-common.c +6 -3
Lines of this file are not shown. View the raw message.
drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/platform/x86/touchscreen_dmi.c +18 -0
Lines of this file are not shown. View the raw message.
drivers/virt/coco/tdx-guest/tdx-guest.c +12 -2
Lines of this file are not shown. View the raw message.
fs/netfs/iterator.c +43 -0
43 lines not on this page · raw message
fs/overlayfs/params.c +32 -10
42 lines not on this page · raw message
fs/smb/server/oplock.c +45 -27
72 lines not on this page · raw message
fs/smb/server/smb2pdu.c +52 -21
73 lines not on this page · raw message
fs/xfs/xfs_trace.h +34 -13
47 lines not on this page · raw message
include/linux/device.h +54 -0
54 lines not on this page · raw message
include/linux/spi/spi.h +21 -21
42 lines not on this page · raw message
include/uapi/linux/netfilter/nf_conntrack_common.h +4 -0
Lines of this file are not shown. View the raw message.
kernel/bpf/core.c +35 -8
43 lines not on this page · raw message
kernel/trace/trace_osnoise.c +17 -31
48 lines not on this page · raw message
net/core/net-procfs.c +33 -16
49 lines not on this page · raw message
rust/kernel/init/macros.rs +131 -34
165 lines not on this page · raw message
security/landlock/errata/abi-1.h new file +16 -0
Lines of this file are not shown. View the raw message.
security/landlock/fs.c +52 -26
78 lines not on this page · raw message
sound/pci/hda/patch_realtek.c +35 -6
41 lines not on this page · raw message
tools/objtool/arch/x86/decode.c +23 -39
62 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.