Linux 7.0.12
Greg Kroah-Hartman
maintainerI'm announcing the release of the 7.0.12 kernel.
All users of the 7.0 kernel series must upgrade.
The updated 7.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-7.0.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/devicetree/bindings/usb/eswin,eic7700-usb.yaml | 7 Documentation/netlink/genetlink-c.yaml | 9 Documentation/netlink/genetlink-legacy.yaml | 9 Documentation/netlink/genetlink.yaml | 9 Documentation/netlink/netlink-raw.yaml | 9 Documentation/netlink/specs/handshake.yaml | 8 Makefile | 2 arch/arm64/include/asm/kvm_host.h | 2 arch/arm64/include/asm/tlb.h | 2 arch/arm64/kvm/hyp/include/hyp/switch.h | 16 arch/arm64/kvm/nested.c | 38 + arch/arm64/kvm/pmu-emul.c | 4 arch/arm64/kvm/sys_regs.c | 11 arch/arm64/kvm/vgic/vgic-its.c | 6 arch/mips/dec/platform.c | 109 ++++ arch/riscv/include/asm/syscall_wrapper.h | 4 arch/x86/kernel/fpu/signal.c | 11 arch/x86/kernel/ftrace.c | 7 arch/x86/kvm/svm/avic.c | 35 + arch/x86/kvm/svm/sev.c | 76 ++- block/blk-mq.c | 2 drivers/accel/ivpu/ivpu_debugfs.c | 2 drivers/accel/rocket/rocket_gem.c | 17 drivers/acpi/acpica/evxfgpe.c | 50 +- drivers/acpi/button.c | 24 + drivers/android/binder/allocation.rs | 8 drivers/android/binder/process.rs | 7 drivers/android/binder/transaction.rs | 11 drivers/auxdisplay/line-display.c | 2 drivers/block/zram/zram_drv.c | 6 drivers/bluetooth/btusb.c | 8 drivers/bluetooth/hci_qca.c | 4 drivers/comedi/drivers/comedi_test.c | 5 drivers/counter/counter-core.c | 3 drivers/dma-buf/dma-buf.c | 6 drivers/dpll/dpll_netlink.c | 13 drivers/dpll/zl3073x/core.c | 118 +---- drivers/dpll/zl3073x/core.h | 59 +- drivers/dpll/zl3073x/dpll.c | 52 +- drivers/dpll/zl3073x/dpll.h | 4 drivers/dpll/zl3073x/i2c.c | 37 - drivers/dpll/zl3073x/regs.h | 2 drivers/dpll/zl3073x/spi.c | 37 - drivers/gpio/gpio-adnp.c | 4 drivers/gpio/gpio-mxc.c | 2 drivers/gpio/gpio-rockchip.c | 23 - drivers/gpio/gpio-shared-proxy.c | 9 drivers/gpio/gpio-virtuser.c | 4 drivers/gpio/gpiolib-shared.c | 9 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 11 drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c | 17 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 7 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 10 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 8 drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 3 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 4 drivers/gpu/drm/drm_gem.c | 2 drivers/gpu/drm/hyperv/hyperv_drm_proto.c | 113 ++++- drivers/gpu/drm/i915/display/intel_color.c | 2 drivers/gpu/drm/i915/display/intel_display_core.h | 1 drivers/gpu/drm/i915/display/intel_display_irq.c | 8 drivers/gpu/drm/i915/display/intel_display_types.h | 3 drivers/gpu/drm/i915/display/intel_dp_aux.c | 20 drivers/gpu/drm/i915/display/intel_dpcd.h | 15 drivers/gpu/drm/i915/display/intel_psr.c | 69 ++- drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 28 - drivers/gpu/drm/xe/xe_guc_ads.c | 5 drivers/hid/hid-ids.h | 1 drivers/hid/hid-quirks.c | 1 drivers/hid/wacom_sys.c | 13 drivers/hid/wacom_wac.h | 1 drivers/hwmon/pmbus/adm1266.c | 7 drivers/hwmon/pmbus/pmbus.h | 5 drivers/hwmon/pmbus/pmbus_core.c | 8 drivers/i2c/busses/i2c-davinci.c | 2 drivers/i2c/busses/i2c-tegra.c | 15 drivers/iio/adc/ad4695.c | 23 - drivers/iio/adc/mt6359-auxadc.c | 1 drivers/iio/adc/npcm_adc.c | 25 - drivers/iio/adc/nxp-sar-adc.c | 24 - drivers/iio/adc/viperboard_adc.c | 4 drivers/iio/adc/xilinx-xadc-core.c | 11 drivers/iio/buffer/industrialio-hw-consumer.c | 4 drivers/iio/chemical/mhz19b.c | 17 drivers/iio/chemical/scd30_core.c | 2 drivers/iio/common/ssp_sensors/ssp_dev.c | 1 drivers/iio/dac/ad3530r.c | 54 +- drivers/iio/dac/ad5686.c | 56 +- drivers/iio/dac/ad5686.h | 1 drivers/iio/dac/max5821.c | 9 drivers/iio/gyro/adis16260.c | 3 drivers/iio/gyro/itg3200_buffer.c | 2 drivers/iio/imu/adis16550.c | 2 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 2 drivers/iio/industrialio-buffer.c | 1 drivers/iio/inkern.c | 6 drivers/iio/light/cm3323.c | 5 drivers/iio/light/veml6070.c | 14 drivers/iio/magnetometer/st_magn_core.c | 13 drivers/iio/pressure/bmp280-core.c | 2 drivers/iio/temperature/tsys01.c | 2 drivers/input/joystick/xpad.c | 14 drivers/input/misc/ims-pcu.c | 2 drivers/input/mouse/elan_i2c_core.c | 5 drivers/input/mouse/synaptics.c | 1 drivers/input/touchscreen/atmel_mxt_ts.c | 2 drivers/input/touchscreen/usbtouchscreen.c | 5 drivers/iommu/io-pgtable-arm-v7s.c | 18 drivers/mailbox/mailbox.c | 15 drivers/mailbox/tegra-hsp.c | 2 drivers/md/bcache/super.c | 3 drivers/media/rc/igorplugusb.c | 2 drivers/misc/rp1/rp1_pci.c | 1 drivers/net/bonding/bond_main.c | 6 drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c | 3 drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c | 6 drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 1 drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c | 8 drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c | 4 drivers/net/ethernet/microsoft/mana/mana_en.c | 76 ++- drivers/net/macsec.c | 3 drivers/net/pcs/pcs-mtk-lynxi.c | 3 drivers/net/phy/micrel.c | 15 drivers/net/tap.c | 2 drivers/net/tun.c | 5 drivers/net/vxlan/vxlan_core.c | 4 drivers/net/wireguard/send.c | 20 drivers/nfc/nxp-nci/i2c.c | 21 drivers/nvme/host/tcp.c | 2 drivers/parport/share.c | 11 drivers/platform/x86/intel/vsec.c | 91 ++-- drivers/scsi/fcoe/fcoe_ctlr.c | 2 drivers/scsi/scsi_debug.c | 2 drivers/scsi/scsi_lib.c | 27 + drivers/scsi/scsi_transport_fc.c | 77 +-- drivers/spi/spi-mem.c | 15 drivers/target/iscsi/iscsi_target.c | 5 drivers/target/iscsi/iscsi_target_auth.c | 19 drivers/target/iscsi/iscsi_target_nego.c | 7 drivers/target/iscsi/iscsi_target_parameters.c | 62 ++ drivers/target/iscsi/iscsi_target_parameters.h | 2 drivers/thunderbolt/property.c | 32 + drivers/tty/serial/8250/8250_dw.c | 2 drivers/tty/serial/8250/8250_port.c | 7 drivers/tty/serial/altera_jtaguart.c | 7 drivers/tty/serial/dz.c | 171 +++---- drivers/tty/serial/fsl_lpuart.c | 15 drivers/tty/serial/pch_uart.c | 19 drivers/tty/serial/qcom_geni_serial.c | 16 drivers/tty/serial/samsung_tty.c | 8 drivers/tty/serial/sh-sci.c | 2 drivers/tty/serial/zs.c | 226 +++------- drivers/tty/serial/zs.h | 1 drivers/uio/uio_pci_generic_sva.c | 7 drivers/usb/cdns3/cdns3-gadget.c | 12 drivers/usb/cdns3/cdns3-plat.c | 11 drivers/usb/chipidea/core.c | 16 drivers/usb/class/cdc-acm.c | 2 drivers/usb/class/cdc-acm.h | 2 drivers/usb/class/usbtmc.c | 14 drivers/usb/core/config.c | 9 drivers/usb/core/hcd.c | 4 drivers/usb/core/quirks.c | 4 drivers/usb/dwc2/hcd.c | 4 drivers/usb/dwc3/dwc3-xilinx.c | 27 - drivers/usb/gadget/composite.c | 5 drivers/usb/gadget/function/f_fs.c | 26 + drivers/usb/gadget/function/f_hid.c | 3 drivers/usb/gadget/function/f_uvc.c | 28 - drivers/usb/gadget/udc/dummy_hcd.c | 4 drivers/usb/gadget/udc/net2280.c | 4 drivers/usb/host/xhci-tegra.c | 77 +-- drivers/usb/musb/omap2430.c | 3 drivers/usb/serial/belkin_sa.c | 3 drivers/usb/serial/cypress_m8.c | 20 drivers/usb/serial/digi_acceleport.c | 23 - drivers/usb/serial/keyspan.c | 4 drivers/usb/serial/mct_u232.c | 26 - drivers/usb/serial/mxuport.c | 8 drivers/usb/serial/omninet.c | 9 drivers/usb/serial/option.c | 9 drivers/usb/serial/safe_serial.c | 11 drivers/usb/storage/unusual_uas.h | 7 drivers/usb/typec/altmodes/displayport.c | 2 drivers/usb/typec/tcpm/tcpci_maxim_core.c | 9 drivers/usb/typec/tcpm/tcpm.c | 117 +++-- drivers/usb/typec/tcpm/wcove.c | 13 drivers/usb/typec/tipd/core.c | 1 drivers/usb/typec/ucsi/displayport.c | 4 drivers/usb/typec/ucsi/ucsi.c | 24 - drivers/usb/typec/ucsi/ucsi_ccg.c | 5 drivers/usb/usbip/vudc_dev.c | 1 drivers/usb/usbip/vudc_transfer.c | 3 fs/hpfs/alloc.c | 2 fs/hugetlbfs/inode.c | 46 -- fs/smb/client/smb2pdu.c | 2 fs/smb/server/smb2pdu.c | 11 fs/smb/server/smbacl.c | 8 include/acpi/acpixf.h | 5 include/kunit/test.h | 1 include/linux/compat.h | 4 include/linux/compiler-clang.h | 6 include/linux/compiler_attributes.h | 11 include/linux/compiler_types.h | 4 include/linux/dpll.h | 1 include/linux/hid.h | 2 include/linux/hugetlb.h | 8 include/linux/hugetlb_inline.h | 12 include/linux/intel_vsec.h | 4 include/linux/mailbox_controller.h | 3 include/linux/parport.h | 1 include/linux/serial_core.h | 12 include/linux/skbuff.h | 2 include/linux/syscalls.h | 4 include/net/netfilter/nf_tables.h | 7 include/net/xfrm.h | 3 ipc/util.c | 2 lib/debugobjects.c | 2 lib/kunit/executor.c | 19 lib/kunit/test.c | 1 mm/damon/sysfs-schemes.c | 8 mm/hugetlb.c | 71 +-- mm/memcontrol.c | 6 mm/memfd.c | 12 mm/migrate_device.c | 4 mm/rmap.c | 2 mm/vmalloc.c | 2 net/bluetooth/6lowpan.c | 2 net/bluetooth/hci_conn.c | 4 net/bluetooth/hci_sync.c | 16 net/bluetooth/hidp/core.c | 23 - net/bluetooth/iso.c | 12 net/bluetooth/l2cap_core.c | 41 + net/bluetooth/l2cap_sock.c | 16 net/bridge/br_netlink.c | 17 net/bridge/br_switchdev.c | 1 net/bridge/br_sysfs_if.c | 30 - net/bridge/netfilter/ebtables.c | 30 + net/core/filter.c | 2 net/core/skbuff.c | 45 + net/ethtool/cmis.h | 4 net/ethtool/cmis_cdb.c | 9 net/ethtool/cmis_fw_update.c | 44 + net/ethtool/coalesce.c | 6 net/ethtool/eeprom.c | 10 net/ethtool/linkstate.c | 6 net/ethtool/module.c | 41 + net/ethtool/netlink.c | 4 net/ethtool/netlink.h | 4 net/ethtool/pse-pd.c | 10 net/ethtool/rss.c | 37 + net/ethtool/strset.c | 2 net/ethtool/tsconfig.c | 15 net/ethtool/tsinfo.c | 19 net/handshake/genl.c | 3 net/handshake/genl.h | 1 net/handshake/handshake-test.c | 10 net/handshake/handshake.h | 6 net/handshake/netlink.c | 29 - net/handshake/request.c | 81 ++- net/handshake/tlshd.c | 6 net/hsr/hsr_forward.c | 4 net/ipv4/ah4.c | 2 net/ipv4/esp4.c | 4 net/ipv4/ip_tunnel_core.c | 22 net/ipv4/sysctl_net_ipv4.c | 2 net/ipv6/addrconf.c | 2 net/ipv6/ah6.c | 2 net/ipv6/datagram.c | 54 ++ net/ipv6/esp6.c | 4 net/ipv6/exthdrs.c | 6 net/ipv6/ip6_vti.c | 23 - net/ipv6/route.c | 5 net/iucv/af_iucv.c | 20 net/key/af_key.c | 6 net/l2tp/l2tp_core.c | 11 net/netfilter/nf_conntrack_proto_tcp.c | 3 net/netfilter/nf_synproxy_core.c | 2 net/netfilter/nft_bitwise.c | 18 net/netfilter/nft_byteorder.c | 13 net/netfilter/xt_cpu.c | 2 net/netlink/af_netlink.c | 11 net/nfc/hci/core.c | 10 net/nfc/llcp_core.c | 11 net/nfc/llcp_sock.c | 2 net/nfc/nci/hci.c | 10 net/rxrpc/ar-internal.h | 7 net/rxrpc/conn_event.c | 32 - net/rxrpc/insecure.c | 5 net/rxrpc/rxgk.c | 96 +--- net/rxrpc/rxgk_app.c | 46 -- net/rxrpc/rxgk_common.h | 92 ---- net/rxrpc/rxkad.c | 29 - net/sched/act_mirred.c | 77 ++- net/sched/sch_netem.c | 47 -- net/sched/sch_sfb.c | 2 net/sctp/socket.c | 2 net/smc/af_smc.c | 4 net/vmw_vsock/af_vsock.c | 49 +- net/vmw_vsock/hyperv_transport.c | 9 net/vmw_vsock/virtio_transport_common.c | 26 - net/vmw_vsock/vmci_transport.c | 8 net/xfrm/xfrm_input.c | 16 net/xfrm/xfrm_ipcomp.c | 12 net/xfrm/xfrm_iptfs.c | 28 + net/xfrm/xfrm_policy.c | 17 net/xfrm/xfrm_state.c | 23 - net/xfrm/xfrm_user.c | 5 sound/core/oss/pcm_oss.c | 18 sound/firewire/motu/motu-register-dsp-message-parser.c | 11 sound/hda/codecs/realtek/alc269.c | 12 sound/hda/codecs/side-codecs/cs35l56_hda.c | 17 sound/soc/codecs/simple-mux.c | 2 sound/soc/intel/boards/bytcht_es8316.c | 29 + sound/soc/qcom/qdsp6/q6asm-dai.c | 43 + sound/usb/mixer_scarlett2.c | 33 + tools/bootconfig/main.c | 4 tools/net/ynl/pyynl/ynl_gen_c.py | 31 + tools/testing/cxl/test/cxl.c | 105 +--- tools/testing/selftests/net/ioam6.sh | 2 321 files changed, 3354 insertions(+), 1911 deletions(-)
Abdurrahman Hussain (2):
hwmon: (pmbus/adm1266) serialize sequencer_state debugfs read with pmbus_lock
hwmon: (pmbus/adm1266) serialize GPIO PMBus accesses with pmbus_lock
Advait Dhamorikar (1):
iio: magnetometer: st_magn: fix default DRDY pin selection for LIS2MDL
Aldo Conte (1):
iio: light: cm3323: fix reg_conf not being initialized correctly
Alexander Stein (1):
gpio: mxc: fix irq_high handling
Alexandra Winter (1):
net/smc: Do not re-initialize smc hashtables
Alexandre Ghiti (1):
mm: memcontrol: propagate NMI slab stats to memcg vmstats
Alexandru Hossu (1):
scsi: target: iscsi: Validate CHAP_R length before base64 decode
Alexis Lothoré (eBPF Foundation) (1):
x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines
Ali Ganiyev (1):
ksmbd: OOB read regression in smb_check_perm_dacl() ACE-walk loops
Alice Ryhl (1):
rust_binder: avoid calling pending_oneway_finished() on TF_UPDATE_TXN
Andrei Vagin (1):
Revert "x86/fpu: Refine and simplify the magic number check during signal return"
Andy Shevchenko (1):
iio: adc: nxp-sar-adc: Avoid division by zero
Antoniu Miclaus (3):
iio: adc: nxp-sar-adc: fix division by zero in write_raw
iio: gyro: adis16260: fix division by zero in write_raw
iio: chemical: scd30: fix division by zero in write_raw
Arnd Bergmann (1):
iommu, debugobjects: avoid gcc-16.1 section mismatch warnings
Ashutosh Desai (1):
nfc: hci: fix out-of-bounds read in HCP header parsing
Balasubramani Vivekanandan (1):
drm/xe: Restore IDLEDLY regiter on engine reset
Bartosz Golaszewski (4):
gpio: adnp: fix flow control regression caused by scoped_guard()
gpio: shared: undo the vote of the proxy on GPIO free
gpio: shared: fix deadlock on shared proxy's parent removal
gpio: shared: fix lockdep false positive by removing unneeded lock
Ben Hutchings (1):
parport: Fix race between port and client registration
Benoît Monin (1):
iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf()
Berkant Koc (2):
drm/hyperv: validate resolution_count and fix WIN8 fallback drm/hyperv: validate VMBus packet size in receive callback
Björn Töpel (1):
net: Avoid checksumming unreadable skb tail on trim
Breno Leitao (1):
net/iucv: fix locking in .getsockopt
Carl Lee (1):
nfc: nxp-nci: i2c: use rising-edge IRQ on ACPI systems
Chaitanya Sabnis (1):
i2c: davinci: fix division by zero on missing clock-frequency
Chris Mason (1):
netfilter: synproxy: refresh tcphdr after skb_ensure_writable
Christian König (2):
drm/amdgpu: fix calling VM invalidation in amdgpu_hmm_invalidate_gfx drm/amdgpu: fix amdgpu_hmm_range_get_pages
Christofer Jonason (1):
iio: adc: xilinx-xadc: Fix sequencer mode in postdisable for dual mux
Chuck Lever (6):
net/handshake: Use spin_lock_bh for hn_lock
nvme-tcp: store negative errno in queue->tls_err net/handshake: Pass negative errno through handshake_complete() net/handshake: hand off the pinned file reference to accept_doit net/handshake: Take a long-lived file reference at submit net/handshake: Drain pending requests at net namespace exit
Cássio Gabriel (5):
ALSA: hda: cs35l56: Fix system name string leaks
ALSA: pcm: oss: Fix setup list UAF on proc write error
ASoC: Intel: bytcht_es8316: Fix MCLK leak on init errors
ASoC: codecs: simple-mux: Fix enum control bounds check
ALSA: firewire-motu: Protect register DSP event queue positions
Dan Carpenter (4):
accel/ivpu: prevent uninitialized data bug in debugfs
gpio: virtuser: Fix uninitialized data bug in gpio_virtuser_direction_do_write()
usb: dwc2: Fix use after free in debug code
usb: typec: tipd: Fix error code in tps6598x_probe()
David Ahern (1):
xfrm: Check for underflow in xfrm_state_mtu
David Carlier (3):
iio: adc: npcm: fix unbalanced clk_disable_unprepare()
iio: gyro: itg3200: fix i2c read into the wrong stack location
dma-buf: fix UAF in dma_buf_fd() tracepoint
David E. Box (2):
platform/x86/intel/vsec: Refactor base_addr handling platform/x86/intel/vsec: Make driver_data info const
David Francis (1):
drm/amdkfd: Check for pdd drm file first in CRIU restore path
David Howells (1):
rxrpc: Fix RESPONSE packet verification to extract skb to a linear buffer
David Jeffery (1):
scsi: core: Run queues for all non-SDEV_DEL devices from scsi_run_host_queues
Dev Jain (1):
mm/rmap: initialize nr_pages to 1 at loop start in try_to_unmap_one
Dhabaleshwar Das (1):
accel/rocket: fix UAF via dangling GEM handle in create_bo
Dipayaan Roy (2):
net: mana: Add NULL guards in teardown path to prevent panic on attach failure
net: mana: Skip redundant detach on already-detached port
Dmitriy Zharov (1):
Input: xpad - add support for ASUS ROG RAIKIRI II
Dmitry Torokhov (3):
Input: xpad - fix out-of-bounds access for Share button
Input: elan_i2c - validate firmware size before use
Input: atmel_mxt_ts - fix boundary check in mxt_prepare_cfg_mem
Doruk Tan Ozturk (1):
Bluetooth: hci_sync: fix UAF in hci_le_create_cis_sync
Eric Dumazet (4):
ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()
tunnels: load network headers after skb_cow() in iptunnel_pmtud_build_icmp[v6]()
vxlan: do not reuse cached ip_hdr() value after skb_tunnel_check_pmtu()
tunnels: do not assume transport header in iptunnel_pmtud_check_icmp()
Eric Huang (2):
drm/amdkfd: fix NULL pointer bug in svm_range_set_attr drm/amdkfd: fix a vulnerability of integer overflow in kfd debugger
Ewan D. Milne (1):
scsi: scsi_debug: Add missing newline in scsi_debug_device_reset()
Felix Gu (2):
iio: light: veml6070: Fix resource leak in probe error path
iio: buffer: hw-consumer: fix use-after-free in error path
Fernando Antunez Antonio (1):
ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP Envy X360 15-fh0xxx
Fernando Fernandez Mancera (2):
netfilter: nf_tables: fix dst corruption in same register operation Revert "ipv6: preserve insertion order for same-scope addresses"
Florian Schmaus (1):
kunit: fix use-after-free in debugfs when using kunit.filter
Florian Westphal (2):
netfilter: xt_cpu: prefer raw_smp_processor_id
netfilter: ebtables: fix OOB read in compat_mtw_from_user
Frank Wunderlich (1):
net: pcs: pcs-mtk-lynxi: fix bpi-r3 serdes configuration
Geoffrey D. Bennett (1):
ALSA: scarlett2: Fix 2i2 Gen 4 direct monitor gain on firmware 2417
Greg Kroah-Hartman (13):
Input: usbtouchscreen - clamp NEXIO data_len/x_len to URB buffer size
iio: imu: st_lsm6dsx: fix stack leak in tagged FIFO buffer
iio: imu: adis16550: fix stack leak in trigger handler
iio: pressure: bmp280: fix stack leak in bmp580 trigger handler
usb: typec: ucsi: ccg: reject firmware images without a ':' record header
usb: typec: tcpm: validate VDO count in Discover Identity ACK handlers
usb: typec: tcpm: bound altmode_desc[] per iteration in svdm_consume_modes()
usb: typec: ucsi: displayport: NAK DP_CMD_CONFIGURE without a payload VDO
usb: typec: altmodes/displayport: validate count before reading Status Update VDO
usb: typec: wcove: don't write past struct pd_message in wcove_read_rx_buffer()
usb: typec: tcpm/tcpci_maxim: validate header NDO against RX_BYTE_CNT
usb: typec: ucsi: validate connector number in ucsi_connector_change() Linux 7.0.12
Guangshuo Li (4):
counter: Fix refcount leak in counter_alloc() error path
uio: uio_pci_generic_sva: fix double free of devm_kzalloc() memory
usb: gadget: net2280: Fix double free in probe error path
usb: gadget: f_hid: fix device reference leak in hidg_alloc()
Guenter Roeck (1):
hwmon: (pmbus) Add support for guarded PMBus lock
Hamza Mahfooz (1):
netfilter: conntrack: tcp: do not force CLOSE on invalid-seq RST without direction check
Hang Cao (1):
dt-bindings: usb: Fix EIC7700 USB reset's issue
Heitor Alves de Siqueira (4):
Bluetooth: hci_sync: Set HCI_CMD_DRAIN_WORKQUEUE during device close
Bluetooth: hci_sync: Reset device counters in hci_dev_close_sync()
usb: usbtmc: check URB actual_length for interrupt-IN notifications
usb: usbtmc: reject interrupt endpoints with small wMaxPacketSize
Henri A (1):
media: rc: igorplugusb: fix control request setup packet
Herbert Xu (1):
xfrm: ipcomp: Free destination pages on acomp errors
Hongling Zeng (1):
serial: sh-sci: fix memory region release in error path
Hongtao Lee (1):
tools/bootconfig: Fix buf leaks in apply_xbc
Hyunwoo Kim (2):
KVM: arm64: vgic-its: Drop the translation cache reference only for the erased entry
KVM: arm64: Reassign nested_mmus array behind mmu_lock
Ian Abbott (2):
comedi: comedi_test: fix check for valid scan_begin_src in waveform_ai_cmdtest()
comedi: comedi_test: Fix limiting of convert_arg in waveform_ai_cmdtest()
Ido Schimmel (2):
bridge: Fix sleep in atomic context in netlink path
bridge: Fix sleep in atomic context in sysfs path
Ilya Maximets (2):
net: netlink: fix sending unassigned nsid after assigned one
net: netlink: don't set nsid on local notifications
Ivan Vecera (4):
dpll: zl3073x: detect DPLL channel count from chip ID at runtime
dpll: zl3073x: add die temperature reporting for supported chips
dpll: export __dpll_device_change_ntf() for use under dpll_lock
dpll: zl3073x: use __dpll_device_change_ntf() and remove change_work
Jacques Nilo (3):
serial: core: introduce guard(uart_port_lock_check_sysrq_irqsave)
serial: 8250: dispatch SysRq character in serial8250_handle_irq()
serial: 8250_dw: dispatch SysRq character in dw8250_handle_irq()
Jakub Kicinski (26):
ethtool: rss: avoid modifying the RSS context response
ethtool: rss: add missing errno on RSS context delete
ethtool: rss: fix falsely ignoring indir table updates
ethtool: rss: fix indir_table and hkey leak on get_rxfh failure
ethtool: rss: fix hkey leak when indir_size is 0
ethtool: rss: avoid device context leak on reply-build failure
ethtool: module: call ethnl_ops_complete() on module flash errors
ethtool: module: avoid leaking a netdev ref on module flash errors
ethtool: module: avoid racy updates to dev->ethtool bitfield
ethtool: module: check fw_flash_in_progress under rtnl_lock
ethtool: module: fix cleanup if socket used for flashing multiple devices
ethtool: cmis: require exact CDB reply length
ethtool: cmis: fix u16-to-u8 truncation of msleep_pre_rpl
ethtool: cmis: validate start_cmd_payload_size from module
ethtool: cmis: validate fw->size against start_cmd_payload_size
ethtool: coalesce: cap profile updates at NET_DIM_PARAMS_NUM_PROFILES
ethtool: tsconfig: fix reply error handling
ethtool: linkstate: fix unbalanced ethnl_ops_complete() on PHY lookup error
ethtool: pse-pd: fix missing ethnl_ops_complete()
ethtool: tsconfig: fix missing ethnl_ops_complete()
ethtool: tsinfo: fix uninitialized stats on the by-PHC path
ethtool: tsinfo: don't pass ERR_PTR to genlmsg_cancel on prepare failure
ethtool: strset: fix header attribute index in ethnl_req_get_phydev()
ethtool: eeprom: add missing ethnl_ops_begin() / _complete() during fallback
ethtool: eeprom: add more safeties to EEPROM Netlink fallback
tools: ynl: add scope qualifier for definitions
Jamal Hadi Salim (4):
net/sched: Revert "net/sched: Restrict conditions for adding duplicating netems to qdisc tree" net/sched: fix packet loop on netem when duplicate is on
net: Introduce skb tc depth field to track packet loops
net/sched: Fix ethx:ingress -> ethy:egress -> ethx:ingress mirred loop
Jan Volckaert (1):
USB: serial: option: add MeiG SRM813Q
Janusz Krzysztofik (1):
drm/i915: Fix potential UAF in TTM object purge
Jason A. Donenfeld (1):
wireguard: send: append trailer after expanding head
Jassi Brar (1):
mailbox: Fix NULL message support in mbox_send_message()
Jeremy Erazo (1):
usb: gadget: composite: fix integer underflow in WebUSB GET_URL handling
Jiayuan Chen (2):
ipv6: fix possible infinite loop in rt6_fill_node()
ipv6: fix possible infinite loop in fib6_select_path()
Jijie Shao (2):
net: hibmcge: disable Relaxed Ordering to fix RX packet corruption
net: hibmcge: move dma_rmb() after dma_sync_single_for_cpu() in RX path
Jingguo Tan (2):
vsock/virtio: bind uarg before filling zerocopy skb
xfrm: esp: restore combined single-frag length gate
Johan Hovold (8):
USB: serial: safe_serial: fix memory corruption with small endpoint
USB: serial: cypress_m8: fix memory corruption with small endpoint
USB: serial: omninet: fix memory corruption with small endpoint
USB: serial: digi_acceleport: fix memory corruption with small endpoints
USB: serial: keyspan: fix missing indat transfer sanity check
USB: serial: mxuport: fix memory corruption with small endpoint
USB: serial: mct_u232: fix memory corruption with small endpoint
USB: serial: mct_u232: fix missing interrupt-in transfer sanity check
Jouni Högander (5):
drm/i915/psr: Add defininitions for INTEL_WA_REGISTER_CAPS DPCD register drm/i915/psr: Read Intel DPCD workaround register drm/i915/psr: Apply Intel DPCD workaround when SDP on prior line used drm/i915/psr: Block DC states on vblank enable when Panel Replay supported drm/i915/psr: Use DC_OFF wake reference to block DC6 on vblank enable
Junrui Luo (1):
macsec: fix replay protection at XPN lower-PN wrap
Justin Iurman (1):
ipv6: exthdrs: refresh nh pointer after ipv6_hop_jumbo()
Kai Aizen (1):
usb: gadget: uvc: hold opts->lock across XU walks in uvc_function_bind
Keith Busch (1):
blk-mq: reinsert cached request to the list
Kim Seer Paller (1):
iio: dac: ad3530r: Fix AD3531/AD3531R powerdown mode strings
Kito Xu (veritas501) (1):
net/sched: act_mirred: Fix blockcast recursion bypass leading to stack overflow
Kuniyuki Iwashima (1):
ip6: vti: Use ip6_tnl.net in vti6_changelink().
Lee Jones (3):
nfc: llcp: Fix use-after-free in llcp_sock_release()
nfc: llcp: Fix use-after-free race in nfc_llcp_recv_cc()
HID: wacom: Fix OOB write in wacom_hid_set_device_mode()
Li Ming (1):
cxl/test: Update mock dev array before calling platform_device_add()
Linpu Yu (1):
ipc: limit next_id allocation to the valid ID range
Liu Kai (1):
HID: remove duplicate hid_warn_ratelimited definition
Lorenzo Stoakes (1):
Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare"
Luiz Augusto von Dentz (1):
Bluetooth: L2CAP: Fix possible crash on l2cap_ecred_conn_rsp
Luka Gejak (1):
net: hsr: fix potential OOB access in supervision frame handling
Lukas Wunner (1):
platform/x86/intel/vsec: Fix enable_cnt imbalance on PCIe error recovery
Maciej W. Rozycki (7):
serial: zs: Fix swapped RI/DSR modem line transition counting
serial: dz: Fix bootconsole message clobbering at chip reset
serial: dz: Fix bootconsole handover lockup
serial: dz: Convert to use a platform device
serial: zs: Fix bootconsole handover lockup
serial: zs: Switch to using channel reset
serial: zs: Convert to use a platform device
Maoyi Xie (2):
ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate().
xfrm: route MIGRATE notifications to caller's netns
Marco Scardovi (2):
gpio: rockchip: convert bank->clk to devm_clk_get_enabled()
gpio: rockchip: teardown bugs and resource leaks
Mark Brown (1):
KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor
Matthew Maurer (1):
rust_binder: Avoid holding lock when dropping delivered_death
Michael Bommarito (14):
octeontx2-af: validate body pcifunc in rvu_mbox_handler_rep_event_notify
l2tp: use refcount_inc_not_zero in l2tp_session_get_by_ifname
xfrm: ah: use skb_to_full_sk in async output callbacks
usbip: vudc: Fix use after free bug in vudc_remove due to race condition
usb: gadget: f_fs: copy only received bytes on short ep0 read
usb: gadget: f_fs: serialize DMABUF cancel against request completion
thunderbolt: property: Reject u32 wrap in tb_property_entry_valid()
thunderbolt: property: Reject dir_len < 4 to prevent size_t underflow
thunderbolt: property: Cap recursion depth in __tb_property_parse_dir()
scsi: fcoe: Reject FIP descriptors with zero fip_dlen in CVL walker
scsi: scsi_transport_fc: Widen FPIN pname walker counter to u32
scsi: target: iscsi: Fix CRC overread and double-free in iscsit_handle_text_cmd()
scsi: target: iscsi: Bound iscsi_encode_text_output() appends to rsp_buf drm/amdgpu: fix lock leak on ENOMEM in AMDGPU_GEM_OP_GET_MAPPING_INFO
Michael Roth (1):
KVM: SEV: Require in-GHCB scratch area if GHCB v2+ is in use
Michal Pecio (2):
usb: core: Fix up Interrupt IN endpoints with bogus wBytesPerInterval
usb: core: Fix SuperSpeed root hub wMaxPacketSize
Michał Grzelak (1):
drm/i915/aux: use polling when irqs are unavailable
Mikulas Patocka (1):
hpfs: fix a crash if hpfs_map_dnode_bitmap fails
Mingzhe Zou (1):
bcache: fix uninitialized closure object
Minh Nguyen (1):
net: skbuff: fix missing zerocopy reference in pskb_carve helpers
Muhammad Bilal (3):
Bluetooth: HIDP: fix missing length checks in hidp_input_report()
Bluetooth: ISO: fix UAF in iso_recv_frame
Bluetooth: ISO: serialize iso_sock_clear_timer with socket lock
Myeonghun Pak (1):
serial: altera_jtaguart: handle uart_add_one_port() failures
Myrrh Periwinkle (2):
usb: typec: ucsi: Check if power role change actually happened before handling
usb: typec: ucsi: Don't update power_supply on power role change if not connected
Nathan Chancellor (1):
Disable -Wattribute-alias for clang-23 and newer
Nicolás Bazaes (1):
Input: synaptics - add LEN2058 to SMBus passlist for ThinkPad E490
Oliver Hartkopp (1):
bonding: refuse to enslave CAN devices
Pavel Begunkov (1):
net: skbuff: fix pskb_carve leaking zcopy pages
Pavitra Jha (1):
Bluetooth: hci_conn: Fix memory leak in hci_le_big_terminate()
Pengpeng Hou (1):
iio: chemical: mhz19b: reject oversized serial replies
Peter Chen (2):
usb: cdns3: plat: fix leaked usb2_phy initialization on usb3_phy acquisition failure
usb: cdns3: plat: fix unbalanced pm_runtime_forbid() call permanently leaks the runtime PM usage counter across bind/unbind cycles
Pranay Samala (1):
drm/i915/color: Fix HDR pre-CSC LUT programming loop
Prasanna S (1):
serial: qcom-geni: fix UART_RX_PAR_EN bit position
Prathamesh Deshpande (1):
net/mlx5: HWS: Reject unsupported remove-header action
Pratyush Yadav (Google) (1):
memfd: deny writeable mappings when implying SEAL_WRITE
Qbeliw Tanaka (1):
Input: xpad - add "Nova 2 Lite" from GameSir
Qi Tang (1):
ipv6: validate extension header length before copying to cmsg
Qiang Ma (1):
KVM: arm64: PMU: Preserve AArch32 counter low bits
Radhey Shyam Pandey (1):
usb: dwc3: xilinx: fix error handling in zynqmp init error paths
Radu Sabau (1):
iio: adc: ad4695: Fix call ordering in offload buffer postenable
Rafael J. Wysocki (2):
ACPI: button: Fix ACPI GPE handler leak during removal
ACPI: button: Enable wakeup GPEs for ACPI buttons at probe time
Rahul Chandelkar (1):
ipv6: rpl: fix hdrlen overflow in ipv6_rpl_srh_decompress()
Richard Chang (1):
zram: fix use-after-free in zram_writeback_endio
Robert Marko (1):
net: phy: micrel: fix LAN8814 QSGMII soft reset
Rodrigo Alencar (4):
iio: dac: ad5686: fix ref bit initialization for single-channel parts
iio: dac: ad5686: fix input raw value check
iio: dac: ad5686: acquire lock when doing powerdown control
iio: dac: ad5686: fix powerdown control on dual-channel devices
Salah Triki (4):
iio: dac: max5821: fix return value check in powerdown sync
iio: adc: mt6359: fix unchecked return value in mt6358_read_imp
iio: adc: viperboard: Fix error handling in vprbrd_iio_read_raw
iio: temperature: tsys01: fix broken PROM checksum validation
Sam Burkels (1):
usb: storage: Add quirks for PNY Elite Portable SSD
Sanjay Chitroda (1):
iio: ssp_sensors: cancel delayed work_refresh on remove
Santhosh Kumar K (1):
spi: spi-mem: avoid mutating op template in spi_mem_supports_op()
Saurav Sachidanand (1):
i2c: tegra: make tegra_i2c_mutex_unlock() return void
Sean Christopherson (8):
KVM: SVM: Flush the current TLB when transitioning from xAVIC => x2AVIC
KVM: SEV: Ignore Port I/O requests of length '0'
KVM: SEV: Use the size of the PSC header as the minimum size for PSC requests
KVM: SEV: WARN if KVM attempts to setup scratch area with min_len==0
KVM: SEV: Compute the correct max length of the in-GHCB scratch area
KVM: SEV: Check PSC request indices against the actual size of the buffer
KVM: SEV: Use READ_ONCE() when reading entries/indices from PSC buffer
KVM: SEV: Don't explicitly pass PSC buffer to snp_begin_psc()
Sean Shen (1):
ksmbd: fix FSCTL permission bypass by adding a permission check for FSCTL_SET_SPARSE
Sebastian Reichel (1):
usb: typec: tcpm: improve handling of DISCOVER_MODES failures
SeongJae Park (1):
mm/damon/sysfs-schemes: delete tried region in regions_rmdirs()
Seungjin Bae (1):
usb: gadget: dummy_hcd: Reject hub port requests for non-existent ports
Shaomin Chen (1):
xfrm: iptfs: reset runtime state when cloning SAs
Shitalkumar Gandhi (1):
serial: fsl_lpuart: fix rx buffer and DMA map leaks in start_rx_dma
Shuai Zhang (2):
Bluetooth: btusb: Allow firmware re-download when version matches
Bluetooth: hci_qca: Use 100 ms SSR delay for rampatch and NVM loading
Shuvam Pandey (1):
iio: adc: nxp-sar-adc: zero-initialize dma_slave_config
Siwei Zhang (2):
Bluetooth: L2CAP: use chan timer to close channels in cleanup_listen()
Bluetooth: L2CAP: fix chan ref leak in l2cap_chan_timeout() on !conn
Srinivas Kandagatla (3):
ASoC: qcom: q6asm-dai: fix error handling in prepare and set_params
ASoC: qcom: q6asm-dai: close stream only when running
ASoC: qcom: q6asm-dai: do not set stream state in event and trigger callbacks
Stepan Ionichev (1):
auxdisplay: line-display: fix OOB read on zero-length message_store()
Stephen J. Fuhry (1):
USB: quirks: add NO_LPM for Lenovo ThinkPad USB-C Dock Gen2 hub controllers
Steve French (1):
smb: client: fix uninitialized variable in smb2_writev_callback
Sunny Patel (1):
mm/migrate_device: fix pgtable leak in migrate_vma_insert_huge_pmd_page
Svyatoslav Ryhel (1):
iio: Fix iio_multiply_value use in iio_read_channel_processed_scale
Thomas Fourier (1):
Input: ims-pcu - fix usb_free_coherent() size in ims_pcu_buffers_free()
Timur Kristóf (1):
drm/amd/pm/si: Disregard vblank time when no displays are connected
Tudor Ambarus (1):
tty: serial: samsung: Remove redundant port lock acquisition in rx helpers
Uladzislau Rezki (Sony) (1):
mm/vmalloc: do not trigger BUG() on BH disabled context
Usama Arif (1):
xfrm: move policy_bydst RCU sync from per-netns .exit to .pre_exit
Victor Nogueira (1):
net/sched: act_mirred: Fix return code in early mirred redirect error paths
Victor Nogueria (1):
net/sched: sch_sfb: Replace direct dequeue call with peek and qdisc_dequeue_peeked
Viken Dadhaniya (1):
serial: qcom_geni: fix kfifo underflow when flush precedes DMA completion IRQ
Wanquan Zhong (1):
USB: serial: option: add missing RSVD(5) flag for Rolling RW135R-GL
Wei-Cheng Chen (1):
xhci: tegra: Fix ghost USB device on dual-role port unplug
Weiming Shi (3):
tun: free page on short-frame rejection in tun_xdp_one()
tap: free page on error paths in tap_get_user_xdp()
tun: free page on build_skb failure in tun_xdp_one()
Wentao Guan (1):
USB: cdc-acm: Fix bit overlap and move quirk definitions to header
Wentao Liang (1):
usb: musb: omap2430: Fix use-after-free in omap2430_probe()
Xiaolei Wang (1):
misc: rp1: Send IACK on IRQ activate to fix kdump/kexec
Xu Yang (1):
usb: chipidea: core: convert ci_role_switch to local variable
Yongchao Wu (1):
usb: cdns3: gadget: fix request skipping after clearing halt
Yuqi Xu (1):
bpf: sockmap: fix tail fragment offset in bpf_msg_push_data
Zeng Heng (1):
arm64: tlb: Flush walk cache when unsharing PMD tables
Zhang Cen (2):
USB: serial: belkin_sa: validate interrupt status length
USB: serial: cypress_m8: validate interrupt packet headers
Zhang Heng (2):
ALSA: hda/realtek: Fix speaker output on ASUS ROG Strix G615LP
ALSA: hda/realtek: Fix mute and mic-mute LEDs for HP 16 Piston OmniBook X
Zhao Dongdong (1):
Bluetooth: 6lowpan: check skb_clone() return value in send_mcast_pkt()
Zhaoyang Yu (1):
tty: serial: pch_uart: add check for dma_alloc_coherent()
Zhengchuan Liang (2):
ipv6: exthdrs: refresh nh after handling HAO option
xfrm: input: hold netns during deferred transport reinjection
Zhenghang Xiao (3):
Bluetooth: l2cap: clear chan->ident on ECRED reconfiguration success
sctp: fix race between sctp_wait_for_connect and peeloff drm/gem: fix race between change_handle and handle_delete
Ziyi Guo (1):
drm/amdgpu: check num_entries in GEM_OP GET_MAPPING_INFO
Ziyu Zhang (1):
vsock: keep poll shutdown state consistent
hlleng (1):
HID: quirks: Add ALWAYS_POLL quirk for SIGMACHIP USB mouse
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/usb/eswin,eic7700-usb.yaml +4 -3
@@ -41,12 +41,13 @@ properties: - const: usb_en resets: - maxItems: 2 + maxItems: 3 reset-names: items: - const: vaux - const: usb_rst + - const: usb_phy eswin,hsp-sp-csr: description:
@@ -85,8 +86,8 @@ examples: interrupt-parent = <&plic>; interrupts = <85>; interrupt-names = "peripheral"; - resets = <&reset 84>, <&hspcrg 2>; - reset-names = "vaux", "usb_rst"; + resets = <&reset 84>, <&hspcrg 2>, <&hspcrg 4>; + reset-names = "vaux", "usb_rst", "usb_phy"; dr_mode = "peripheral"; maximum-speed = "high-speed"; phy_type = "utmi";
Documentation/netlink/genetlink-c.yaml +9 -0
@@ -69,6 +69,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags ] doc:
Documentation/netlink/genetlink-legacy.yaml +9 -0
@@ -83,6 +83,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags, struct ] # Trim doc:
Documentation/netlink/genetlink.yaml +9 -0
@@ -55,6 +55,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags ] doc:
Documentation/netlink/netlink-raw.yaml +9 -0
@@ -81,6 +81,15 @@ properties: header: description: For C-compatible languages, header which already defines this value. type: string + scope: + description: | + Visibility of this definition. "uapi" (default) renders into + the uAPI header, "kernel" renders into the kernel-side + generated header, "user" renders into the user-side + generated header. When combined with `header:`, the + definition is not rendered, and the named header is + included only by code matching the scope. + enum: [ uapi, kernel, user ] type: enum: [ const, enum, flags, struct ] # Trim doc:
Documentation/netlink/specs/handshake.yaml +8 -0
@@ -12,6 +12,12 @@ protocol: genetlink doc: Netlink protocol to request a transport layer security handshake. definitions: + - + type: const + name: max-errno + value: 4095 + header: linux/err.h + scope: kernel - type: enum name: handler-class
@@ -80,6 +86,8 @@ attribute-sets: - name: status type: u32 + checks: + max: max-errno - name: sockfd type: s32
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 7 PATCHLEVEL = 0 -SUBLEVEL = 11 +SUBLEVEL = 12 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/include/asm/kvm_host.h +1 -1
@@ -495,7 +495,6 @@ enum vcpu_sysreg {ACTLR_EL2 ,/* Auxiliary Control Register (EL2) */ CPTR_EL2 ,/* Architectural Feature Trap Register (EL2) */ HACR_EL2 ,/* Hypervisor Auxiliary Control Register */ -ZCR_EL2 ,/* SVE Control Register (EL2) */ TTBR0_EL2 ,/* Translation Table Base Register 0 (EL2) */ TTBR1_EL2 ,/* Translation Table Base Register 1 (EL2) */ TCR_EL2, /* Translation Control Register (EL2) */
@@ -527,6 +526,7 @@ enum vcpu_sysreg {SCTLR2_EL2 ,/* System Control Register 2 (EL2) */ MDCR_EL2 ,/* Monitor Debug Configuration Register (EL2) */ CNTHCTL_EL2 ,/* Counter-timer Hypervisor Control register */ +ZCR_EL2 ,/* SVE Control Register (EL2) */ /* Any VNCR-capable reg goes after this point */ MARKER(__VNCR_START__),
arch/arm64/include/asm/tlb.h +1 -1
@@ -53,7 +53,7 @@ static inline int tlb_get_level(struct mmu_gather *tlb)static inline void tlb_flush (struct mmu_gather *tlb) {struct vm_area_struct vma =TLB_FLUSH_VMA (tlb->mm,0 ); -bool last_level = !tlb->freed_tables; +bool last_level = !(tlb->freed_tables || tlb->unshared_tables);unsigned long stride =tlb_get_unmap_size (tlb);int tlb_level =tlb_get_level (tlb);
arch/arm64/kvm/hyp/include/hyp/switch.h +10 -6
@@ -431,11 +431,13 @@ static inline bool kvm_hyp_handle_mops(struct kvm_vcpu *vcpu, u64 *exit_code)static inline void __hyp_sve_restore_guest (struct kvm_vcpu *vcpu) { +u64 zcr_el2 =vcpu_sve_max_vq (vcpu) -1 ; +/* * The vCPU's saved SVE state layout always matches the max VL of the * vCPU. Start off with the max VL so we can load the SVE state. */ -sve_cond_update_zcr_vq (vcpu_sve_max_vq (vcpu) -1 ,SYS_ZCR_EL2 ); +sve_cond_update_zcr_vq (zcr_el2,SYS_ZCR_EL2 );__sve_restore_state (vcpu_sve_pffr (vcpu), &vcpu->arch.ctxt.fp_regs.fpsr, true);
@@ -445,8 +447,10 @@ static inline void __hyp_sve_restore_guest(struct kvm_vcpu *vcpu)* nested guest, as the guest hypervisor could select a smaller VL. Slap * that into hardware before wrapping up. */ -if (is_nested_ctxt (vcpu)) -sve_cond_update_zcr_vq (__vcpu_sys_reg (vcpu,ZCR_EL2 ),SYS_ZCR_EL2 ); +if (is_nested_ctxt (vcpu)) { + zcr_el2 =min (zcr_el2,__vcpu_sys_reg (vcpu,ZCR_EL2 )); +sve_cond_update_zcr_vq (zcr_el2,SYS_ZCR_EL2 ); + }write_sysreg_el1 (__vcpu_sys_reg (vcpu,vcpu_sve_zcr_elx (vcpu)),SYS_ZCR ); }
@@ -470,11 +474,11 @@ static inline void fpsimd_lazy_switch_to_guest(struct kvm_vcpu *vcpu)return ;if (vcpu_has_sve (vcpu)) { + zcr_el2 =vcpu_sve_max_vq (vcpu) -1 ; +/* A guest hypervisor may restrict the effective max VL. */ if (is_nested_ctxt (vcpu)) - zcr_el2 =__vcpu_sys_reg (vcpu,ZCR_EL2 ); -else - zcr_el2 =vcpu_sve_max_vq (vcpu) -1 ; + zcr_el2 =min (zcr_el2,__vcpu_sys_reg (vcpu,ZCR_EL2 ));write_sysreg_el2 (zcr_el2,SYS_ZCR );
arch/arm64/kvm/nested.c +25 -13
@@ -89,21 +89,28 @@ int kvm_vcpu_init_nested(struct kvm_vcpu *vcpu)* again, and there is no reason to affect the whole VM for this. */ num_mmus =atomic_read (&kvm->online_vcpus) *S2_MMU_PER_VCPU ; - tmp =kvrealloc (kvm->arch.nested_mmus, -size_mul (sizeof (*kvm->arch.nested_mmus), num_mmus), -GFP_KERNEL_ACCOUNT | __GFP_ZERO); -if (!tmp) -return -ENOMEM ; -swap (kvm->arch.nested_mmus, tmp); +if (num_mmus > kvm->arch.nested_mmus_size) { + tmp =kvcalloc (num_mmus,sizeof (*tmp),GFP_KERNEL_ACCOUNT ); +if (!tmp) +return -ENOMEM ; -/* -* If we went through a realocation, adjust the MMU back-pointers in -* the previously initialised kvm_pgtable structures. -*/ -if (kvm->arch.nested_mmus != tmp) -for (int i =0 ; i < kvm->arch.nested_mmus_size; i++) - kvm->arch.nested_mmus[i].pgt->mmu = &kvm->arch.nested_mmus[i]; +write_lock (&kvm->mmu_lock); + +if (kvm->arch.nested_mmus_size) { +memcpy (tmp, kvm->arch.nested_mmus, +size_mul (sizeof (*tmp), kvm->arch.nested_mmus_size)); + +for (int i =0 ; i < kvm->arch.nested_mmus_size; i++) + tmp[i].pgt->mmu = &tmp[i]; + } + +swap (kvm->arch.nested_mmus, tmp); + +write_unlock (&kvm->mmu_lock); + +kvfree (tmp); + }for (int i = kvm->arch.nested_mmus_size; !ret && i < num_mmus; i++) ret =init_nested_s2_mmu (kvm, &kvm->arch.nested_mmus[i]);
@@ -1825,6 +1832,11 @@ int kvm_init_nv_sysregs(struct kvm_vcpu *vcpu) resx.res1 =VNCR_EL2_RES1 ;set_sysreg_masks (kvm,VNCR_EL2 , resx); +/* ZCR_EL2 - bits 8:4 are RAZ/WI so treat them as RES0 */ + resx.res0 = ZCR_ELx_RES0 |GENMASK_ULL (8 ,4 ); + resx.res1 = ZCR_ELx_RES1; +set_sysreg_masks (kvm,ZCR_EL2 , resx); + out:for (enum vcpu_sysreg sr = __SANITISED_REG_START__; sr <NR_SYS_REGS ; sr++) __vcpu_rmw_sys_reg(vcpu, sr, |=, 0);
arch/arm64/kvm/pmu-emul.c +2 -2
@@ -174,8 +174,8 @@ static void kvm_pmu_set_pmc_value(struct kvm_pmc *pmc, u64 val, bool force)* action is to use PMCR.P, which will reset them to * 0 (the only use of the 'force' parameter). */ - val =__vcpu_sys_reg (vcpu, reg) &GENMASK (63 ,32 ); - val |=lower_32_bits (val); + val = (__vcpu_sys_reg (vcpu, reg) &GENMASK (63 ,32 )) | +lower_32_bits (val); }__vcpu_assign_sys_reg (vcpu, reg, val);
arch/arm64/kvm/sys_regs.c +3 -8
@@ -2764,21 +2764,16 @@ static bool access_zcr_el2(struct kvm_vcpu *vcpu,struct sys_reg_params *p, const struct sys_reg_desc *r) { - unsigned int vq; - if (guest_hyp_sve_traps_enabled(vcpu)) {kvm_inject_nested_sve_trap (vcpu );return false; } -if (!p->is_write) { +if (!p->is_write) p->regval =__vcpu_sys_reg (vcpu,ZCR_EL2 ); -return true; - } +else +__vcpu_assign_sys_reg (vcpu,ZCR_EL2 , p->regval); - vq =SYS_FIELD_GET (ZCR_ELx,LEN , p->regval) +1 ; - vq =min (vq,vcpu_sve_max_vq (vcpu)); -__vcpu_assign_sys_reg (vcpu,ZCR_EL2 , vq -1 );return true; }
arch/arm64/kvm/vgic/vgic-its.c +4 -2
@@ -597,8 +597,10 @@ static void vgic_its_invalidate_cache(struct vgic_its *its)unsigned long idx;xa_for_each (&its->translation_cache, idx, irq) { -xa_erase (&its->translation_cache, idx); -vgic_put_irq (kvm, irq); +/* Only the context that erases the entry drops its cache ref. */ + irq =xa_erase (&its->translation_cache, idx); +if (irq) +vgic_put_irq (kvm, irq); } }
arch/mips/dec/platform.c +108 -1
125 lines not on this page · raw message
arch/riscv/include/asm/syscall_wrapper.h +4 -0
@@ -32,6 +32,10 @@ asmlinkage long __riscv_sys_ni_syscall(const struct pt_regs *);__diag_push (); \__diag_ignore (GCC ,8 ,"-Wattribute-alias" , \"Type aliasing is used to sanitize syscall arguments" ); \ +__diag_ignore (clang,23 ,"-Wunknown-warning-option" , \ +"Avoid breaking versions without -Wattribute-alias" ); \ +__diag_ignore (clang,23 ,"-Wattribute-alias" , \ +"Type aliasing is used to sanitize syscall arguments" ); \ static long __se_##prefix##name(ulong, ulong, ulong, ulong, ulong, ulong, \ ulong) \ __attribute__((alias(__stringify(___se_##prefix##name)))); \
arch/x86/kernel/fpu/signal.c +8 -3
@@ -27,14 +27,19 @@static inline bool check_xstate_in_sigframe (struct fxregs_state __user *fxbuf,struct _fpx_sw_bytes *fx_sw) { +int min_xstate_size =sizeof (struct fxregs_state ) + +sizeof (struct xstate_header );void __user *fpstate = fxbuf;unsigned int magic2;if (__copy_from_user (fx_sw, &fxbuf->sw_reserved[0 ],sizeof (*fx_sw)))return false; -/* Check for the first magic field */ -if (fx_sw->magic1 !=FP_XSTATE_MAGIC1 ) +/* Check for the first magic field and other error scenarios. */ +if (fx_sw->magic1 !=FP_XSTATE_MAGIC1 || + fx_sw->xstate_size < min_xstate_size || + fx_sw->xstate_size >x86_task_fpu (current)->fpstate->user_size || + fx_sw->xstate_size > fx_sw->extended_size) goto setfx;/*
@@ -43,7 +48,7 @@ static inline bool check_xstate_in_sigframe(struct fxregs_state __user *fxbuf,* fpstate layout with out copying the extended state information * in the memory layout. */ -if (__get_user (magic2, (__u32 __user *)(fpstate +x86_task_fpu (current)->fpstate->user_size))) +if (__get_user (magic2, (__u32 __user *)(fpstate + fx_sw->xstate_size)))return false;if (likely (magic2 ==FP_XSTATE_MAGIC2 ))
arch/x86/kernel/ftrace.c +7 -0
@@ -375,6 +375,13 @@ create_trampoline(struct ftrace_ops *ops, unsigned int *tramp_size) goto fail; } +/* +* Generated trampoline may contain rIP-relative addressing which +* displacement needs to be fixed. +*/ +text_poke_apply_relocation (trampoline, trampoline, size, + (void *)start_offset, size); +/* * The address of the ftrace_ops that is used for this trampoline * is stored at the end of the trampoline. This will be used to
arch/x86/kvm/svm/avic.c +29 -6
@@ -195,6 +195,35 @@ static void avic_activate_vmcb(struct vcpu_svm *svm)svm_clr_intercept (svm,INTERCEPT_CR8_WRITE ); +/* +* Flush the TLB when enabling (x2)AVIC and when transitioning between +* xAVIC and x2AVIC, as the CPU may have inserted a TLB entry for the +* "wrong" mapping. +* +* KVM uses a per-VM "scratch" page to back the APIC memslot, because +* KVM also uses per-VM page tables *and* maintains the page table (NPT +* or shadow page) mappings for said memslot even if one or more vCPUs +* have their local APIC hardware-disabled or are in x2APIC mode, i.e. +* even if one or more vCPUs' APIC MMIO BAR is effectively disabled. +* +* If xAVIC is fully enabled, hardware ignores the physical address in +* KVM's page tables, i.e. in the leaf SPTE for the APIC memslot, and +* instead redirects the access to the AVIC backing page, i.e. to the +* vCPU's virtual APIC page. If xAVIC is not enabled (APIC is either +* hardware-disabled or in x2APIC mode), then guest accesses will use +* the page table mapping verbatim, i.e. will access the per-VM scratch +* page, as normal memory. +* +* In both cases, the CPU is allowed to cache TLB entries for the APIC +* base GPA. So, KVM needs to flush the TLB when enabling xAVIC, as +* accesses need to be redirected to the virtual APIC page, but the TLB +* may contain entries pointing at the scratch page. KVM also needs to +* flush the TLB when enabling x2AVIC, as accesses need to go to the +* scratch page, but the TLB may contain entries tagged as xAVIC, i.e. +* entries pointing to the vCPU's virtual APIC page. +*/ +kvm_make_request (KVM_REQ_TLB_FLUSH_CURRENT , &svm->vcpu); +/* * Note: KVM supports hybrid-AVIC mode, where KVM emulates x2APIC MSR * accesses, while interrupt injection to a running vCPU can be
@@ -208,12 +237,6 @@ static void avic_activate_vmcb(struct vcpu_svm *svm)/* Disabling MSR intercept for x2APIC registers */ avic_set_x2apic_msr_interception (svm, false); }else { -/* -* Flush the TLB, the guest may have inserted a non-APIC -* mapping into the TLB while AVIC was disabled. -*/ -kvm_make_request (KVM_REQ_TLB_FLUSH_CURRENT , &svm->vcpu); -/* Enabling MSR intercept for x2APIC registers */ avic_set_x2apic_msr_interception (svm, true); }
arch/x86/kvm/svm/sev.c +53 -23
200 lines not on this page · raw message
block/blk-mq.c +1 -1
@@ -3244,7 +3244,7 @@ void blk_mq_submit_bio(struct bio *bio)if (!rq)blk_queue_exit (q);else -blk_mq_free_request (rq); +rq_list_add_head (&plug->cached_rqs, rq); }#ifdef CONFIG_BLK_MQ_STACKING
drivers/accel/ivpu/ivpu_debugfs.c +1 -1
@@ -440,7 +440,7 @@ priority_bands_fops_write(struct file *file, const char __user *user_buf, size_tu32 band;int ret; -if (size >=sizeof (buf)) +if (*pos !=0 || size >=sizeof (buf))return -EINVAL ; ret =simple_write_to_buffer (buf,sizeof (buf) -1 , pos, user_buf, size);
drivers/accel/rocket/rocket_gem.c +12 -5
@@ -79,11 +79,6 @@ int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file * rkt_obj->size = args->size; rkt_obj->offset =0 ; - ret =drm_gem_handle_create (file, gem_obj, &args->handle); -drm_gem_object_put (gem_obj); -if (ret) - goto err; - sgt =drm_gem_shmem_get_pages_sgt (shmem_obj);if (IS_ERR (sgt)) { ret =PTR_ERR (sgt);
@@ -95,6 +90,8 @@ int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file * rkt_obj->size,PAGE_SIZE , 0, 0);mutex_unlock (&rocket_priv->mm_lock); +if (ret) + goto err; ret = iommu_map_sgtable(rocket_priv->domain->domain, rkt_obj->mm.start,
@@ -112,8 +109,18 @@ int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file * args->offset =drm_vma_node_offset_addr (&gem_obj->vma_node); args->dma_address = rkt_obj->mm.start; + ret =drm_gem_handle_create (file, gem_obj, &args->handle); +if (ret) + goto err_unmap; + +drm_gem_object_put (gem_obj); +return 0 ; +err_unmap: +iommu_unmap (rocket_priv->domain->domain, + rkt_obj->mm.start, rkt_obj->size); + err_remove_node:mutex_lock (&rocket_priv->mm_lock);drm_mm_remove_node (&rkt_obj->mm);
drivers/acpi/acpica/evxfgpe.c +41 -9
79 lines not on this page · raw message
drivers/acpi/button.c +23 -1
@@ -179,6 +179,7 @@ struct acpi_button {ktime_t last_time;bool suspended;bool lid_state_initialized; +bool gpe_enabled; };static struct acpi_device *lid_device;
@@ -647,6 +648,21 @@ static int acpi_button_probe(struct platform_device *pdev) status =acpi_install_notify_handler (device->handle,ACPI_ALL_NOTIFY , handler, button); +if (ACPI_SUCCESS (status) && device->wakeup.flags.valid) { +acpi_status st; + +/* +* If the wakeup GPE has a handler method, enable it in +* case it is also used for signaling runtime events. +*/ + st =acpi_enable_gpe_cond (device->wakeup.gpe_device, + device->wakeup.gpe_number, +ACPI_GPE_DISPATCH_METHOD ); + button->gpe_enabled =ACPI_SUCCESS (st); +if (button->gpe_enabled) +dev_dbg (button->dev,"Enabled ACPI GPE%02llx\n" , + device->wakeup.gpe_number); + }break ; }if (ACPI_FAILURE (status)) {
@@ -690,7 +706,13 @@ static void acpi_button_remove(struct platform_device *pdev) acpi_button_event);break ;default : -acpi_remove_notify_handler (adev->handle,ACPI_DEVICE_NOTIFY , +if (button->gpe_enabled) { +dev_dbg (button->dev,"Disabling ACPI GPE%02llx\n" , + adev->wakeup.gpe_number); +acpi_disable_gpe (adev->wakeup.gpe_device, + adev->wakeup.gpe_number); + } +acpi_remove_notify_handler (adev->handle,ACPI_ALL_NOTIFY , button->type ==ACPI_BUTTON_TYPE_LID ? acpi_lid_notify : acpi_button_notify);
drivers/android/binder/allocation.rs +8 -0
@@ -160,6 +160,14 @@ pub(crate) fn set_info_target_node(&mut self, target_node: NodeRef) { self.get_or_init_info ().target_node =Some (target_node); } +pub (crate )fn take_oneway_node (&mut self) ->Option <DArc <Node >> { +if let Some (info) = self.allocation_info.as_mut () { + info.oneway_node.take () + }else { +None + } + } +/// Reserve enough space to push at least `num_fds` fds. pub (crate )fn info_add_fd_reserve (&mut self, num_fds:usize ) ->Result { self.get_or_init_info ()
drivers/android/binder/process.rs +6 -1
@@ -1402,7 +1402,12 @@ fn deferred_release(self: Arc<Self>) {// Clear delivered_deaths list. // // Scope ensures that MutexGuard is dropped while executing the body. -while let Some (delivered_death) = { self.inner.lock ().delivered_deaths.pop_front () } { +while let Some (delivered_death) = { +// Explicitly bind to avoid tail expression lifetime extension of the lockguard +// Can be removed when the kernel moves to edition 2024 +let maybe_death = self.inner.lock ().delivered_deaths.pop_front (); + maybe_death + } {drop (delivered_death); }
drivers/android/binder/transaction.rs +10 -1
@@ -250,7 +250,8 @@ fn drop_outstanding_txn(&self) {/// Not used for replies. pub (crate )fn submit (self:DLArc <Self >) ->BinderResult {// Defined before `process_inner` so that the destructor runs after releasing the lock. -let mut _t_outdated; +let _t_outdated; +let _oneway_node;let oneway = self.flags &TF_ONE_WAY !=0 ;let process = self.to.clone ();
@@ -267,6 +268,14 @@ pub(crate) fn submit(self: DLArc<Self>) -> BinderResult {if let Some (t_outdated) = target_node.take_outdated_transaction (&self, &mut process_inner) { +let mut alloc_guard = t_outdated.allocation.lock (); +if let Some (alloc) = (*alloc_guard).as_mut () { +// Take the oneway node to prevent `Allocation::drop` from calling +// `pending_oneway_finished()`, which would be incorrect as this +// transaction is not being submitted. + _oneway_node = alloc.take_oneway_node (); + } +drop (alloc_guard);// Save the transaction to be dropped after locks are released. _t_outdated = t_outdated; }
drivers/auxdisplay/line-display.c +1 -1
@@ -173,7 +173,7 @@ static int linedisp_display(struct linedisp *linedisp, const char *msg, count =strlen (msg);/* if the string ends with a newline, trim it */ -if (msg[count -1 ] =='\n' ) +if (count && msg[count -1 ] =='\n' ) count--;if (!count) {
drivers/block/zram/zram_drv.c +5 -1
@@ -33,6 +33,7 @@#include <linux/cpuhotplug.h> #include <linux/part_stat.h> #include <linux/kernel_read_file.h> +#include <linux/rcupdate.h> #include "zram_drv.h"
@@ -504,6 +505,7 @@ struct zram_wb_ctl {wait_queue_head_t done_wait;spinlock_t done_lock;atomic_t num_inflight; +struct rcu_head rcu; };struct zram_wb_req {
@@ -847,7 +849,7 @@ static void release_wb_ctl(struct zram_wb_ctl *wb_ctl)release_wb_req (req); } -kfree (wb_ctl); +kfree_rcu (wb_ctl, rcu); }static struct zram_wb_ctl *init_wb_ctl (struct zram *zram)
@@ -964,11 +966,13 @@ static void zram_writeback_endio(struct bio *bio)struct zram_wb_ctl *wb_ctl = bio->bi_private;unsigned long flags; +rcu_read_lock ();spin_lock_irqsave (&wb_ctl->done_lock, flags);list_add (&req->entry, &wb_ctl->done_reqs);spin_unlock_irqrestore (&wb_ctl->done_lock, flags);wake_up (&wb_ctl->done_wait); +rcu_read_unlock (); } static void zram_submit_wb_request(struct zram *zram,
drivers/bluetooth/btusb.c +7 -1
@@ -3511,7 +3511,13 @@ static int btusb_setup_qca_load_rampatch(struct hci_dev *hdev,"firmware rome 0x%x build 0x%x" , rver_rom, rver_patch, ver_rom, ver_patch); -if (rver_rom != ver_rom || rver_patch <= ver_patch) { +/* Allow rampatch when the patch version equals the firmware version. +* A firmware download may be aborted by a transient USB error (e.g. +* disconnect) after the controller updates version info but before +* completion. +* Allowing equal versions enables re-flashing during recovery. +*/ +if (rver_rom != ver_rom || rver_patch < ver_patch) {bt_dev_err (hdev,"rampatch file version did not match with firmware" ); err = -EINVAL ; goto done;
drivers/bluetooth/hci_qca.c +2 -2
@@ -1677,8 +1677,8 @@ static void qca_hw_error(struct hci_dev *hdev, u8 code)mod_timer (&qca->tx_idle_timer, jiffies +msecs_to_jiffies (qca->tx_idle_delay)); -/* Controller reset completion time is 50ms */ -msleep (50 ); +/* Wait for the controller to load the rampatch and NVM. */ +msleep (100 );clear_bit (QCA_SSR_TRIGGERED , &qca->flags);clear_bit (QCA_IBS_DISABLED , &qca->flags);
drivers/comedi/drivers/comedi_test.c +3 -2
@@ -274,6 +274,7 @@ static int waveform_ai_cmdtest(struct comedi_device *dev,/* Step 2a : make sure trigger sources are unique */ err |=comedi_check_trigger_is_unique (cmd->convert_src); + err |=comedi_check_trigger_is_unique (cmd->scan_begin_src); err |=comedi_check_trigger_is_unique (cmd->stop_src);/* Step 2b : and mutually compatible */
@@ -324,10 +325,10 @@ static int waveform_ai_cmdtest(struct comedi_device *dev, arg =min (arg,rounddown (UINT_MAX , (unsigned int )NSEC_PER_USEC )); arg =NSEC_PER_USEC *DIV_ROUND_CLOSEST (arg,NSEC_PER_USEC ); -if (cmd->scan_begin_arg ==TRIG_TIMER ) { +if (cmd->scan_begin_src ==TRIG_TIMER ) {/* limit convert_arg to keep scan_begin_arg in range */ limit =UINT_MAX / cmd->scan_end_arg; - limit =rounddown (limit, (unsigned int )NSEC_PER_SEC ); + limit =rounddown (limit, (unsigned int )NSEC_PER_USEC ); arg =min (arg, limit); } err |=comedi_check_trigger_arg_is (&cmd->convert_arg, arg);
drivers/counter/counter-core.c +2 -1
@@ -124,7 +124,8 @@ struct counter_device *counter_alloc(size_t sizeof_priv) err_dev_set_name: -counter_chrdev_remove (counter); +put_device (dev); +return NULL ; err_chrdev_add:ida_free (&counter_ida, dev->id);
drivers/dma-buf/dma-buf.c +5 -1
@@ -792,9 +792,13 @@ int dma_buf_fd(struct dma_buf *dmabuf, int flags)if (!dmabuf || !dmabuf->file)return -EINVAL ; - fd =FD_ADD (flags, dmabuf->file); + fd =get_unused_fd_flags (flags); +if (fd <0 ) +return fd; +DMA_BUF_TRACE (trace_dma_buf_fd, dmabuf, fd); +fd_install (fd, dmabuf->file);return fd; }EXPORT_SYMBOL_NS_GPL (dma_buf_fd,"DMA_BUF" );
drivers/dpll/dpll_netlink.c +11 -2
@@ -771,12 +771,21 @@ int dpll_device_delete_ntf(struct dpll_device *dpll)return dpll_device_event_send (DPLL_CMD_DEVICE_DELETE_NTF , dpll); } -static int -__dpll_device_change_ntf (struct dpll_device *dpll) +/** +* __dpll_device_change_ntf - notify that the dpll device has been changed +* @dpll: registered dpll pointer +* +* Context: caller must hold dpll_lock. Suitable for use inside device +* callbacks which are already invoked under dpll_lock. +* Return: 0 if succeeds, error code otherwise. +*/ +int __dpll_device_change_ntf (struct dpll_device *dpll) { +lockdep_assert_held (&dpll_lock);dpll_device_notify (dpll,DPLL_DEVICE_CHANGED );return dpll_device_event_send (DPLL_CMD_DEVICE_CHANGE_NTF , dpll); } +EXPORT_SYMBOL_GPL (__dpll_device_change_ntf);/** * dpll_device_change_ntf - notify that the dpll device has been changed
drivers/dpll/zl3073x/core.c +33 -85
165 lines not on this page · raw message
drivers/dpll/zl3073x/core.h +29 -30
91 lines not on this page · raw message
drivers/dpll/zl3073x/dpll.c +33 -19
96 lines not on this page · raw message
drivers/dpll/zl3073x/dpll.h +2 -2
@@ -17,11 +17,11 @@* @forced_ref: selected reference in forced reference lock mode * @check_count: periodic check counter * @phase_monitor: is phase offset monitor enabled +* @ops: DPLL device operations for this instance * @dpll_dev: pointer to registered DPLL device * @tracker: tracking object for the acquired reference * @lock_status: last saved DPLL lock status * @pins: list of pins -* @change_work: device change notification work */ struct zl3073x_dpll {struct list_head list;
@@ -31,11 +31,11 @@ struct zl3073x_dpll {u8 forced_ref;u8 check_count;bool phase_monitor; +struct dpll_device_ops ops;struct dpll_device *dpll_dev;dpll_tracker tracker;enum dpll_lock_status lock_status;struct list_head pins; -struct work_struct change_work; };struct zl3073x_dpll *zl3073x_dpll_alloc (struct zl3073x_dev *zldev,u8 ch);
drivers/dpll/zl3073x/i2c.c +11 -26
@@ -22,40 +22,25 @@ static int zl3073x_i2c_probe(struct i2c_client *client)return dev_err_probe (dev,PTR_ERR (zldev->regmap),"Failed to initialize regmap\n" ); -return zl3073x_dev_probe (zldev,i2c_get_match_data (client)); +return zl3073x_dev_probe (zldev); }static const struct i2c_device_id zl3073x_i2c_id[] = { - { - .name ="zl30731" , - .driver_data = (kernel_ulong_t)&zl30731_chip_info, - }, - { - .name ="zl30732" , - .driver_data = (kernel_ulong_t)&zl30732_chip_info, - }, - { - .name ="zl30733" , - .driver_data = (kernel_ulong_t)&zl30733_chip_info, - }, - { - .name ="zl30734" , - .driver_data = (kernel_ulong_t)&zl30734_chip_info, - }, - { - .name ="zl30735" , - .driver_data = (kernel_ulong_t)&zl30735_chip_info, - }, + {"zl30731" }, + {"zl30732" }, + {"zl30733" }, + {"zl30734" }, + {"zl30735" }, {/* sentinel */ } };MODULE_DEVICE_TABLE (i2c, zl3073x_i2c_id);static const struct of_device_id zl3073x_i2c_of_match[] = { - { .compatible ="microchip,zl30731" , .data = &zl30731_chip_info }, - { .compatible ="microchip,zl30732" , .data = &zl30732_chip_info }, - { .compatible ="microchip,zl30733" , .data = &zl30733_chip_info }, - { .compatible ="microchip,zl30734" , .data = &zl30734_chip_info }, - { .compatible ="microchip,zl30735" , .data = &zl30735_chip_info }, + { .compatible ="microchip,zl30731" }, + { .compatible ="microchip,zl30732" }, + { .compatible ="microchip,zl30733" }, + { .compatible ="microchip,zl30734" }, + { .compatible ="microchip,zl30735" }, {/* sentinel */ } };MODULE_DEVICE_TABLE (of, zl3073x_i2c_of_match);
drivers/dpll/zl3073x/regs.h +2 -0
@@ -78,6 +78,8 @@#define ZL_REG_RESET_STATUS ZL_REG(0, 0x18, 1)#define ZL_REG_RESET_STATUS_RESET BIT(0) +#define ZL_REG_DIE_TEMP_STATUS ZL_REG(0, 0x44, 2) +/************************* * Register Page 2, Status *************************/
drivers/dpll/zl3073x/spi.c +11 -26
@@ -22,40 +22,25 @@ static int zl3073x_spi_probe(struct spi_device *spi)return dev_err_probe (dev,PTR_ERR (zldev->regmap),"Failed to initialize regmap\n" ); -return zl3073x_dev_probe (zldev,spi_get_device_match_data (spi)); +return zl3073x_dev_probe (zldev); }static const struct spi_device_id zl3073x_spi_id[] = { - { - .name ="zl30731" , - .driver_data = (kernel_ulong_t)&zl30731_chip_info - }, - { - .name ="zl30732" , - .driver_data = (kernel_ulong_t)&zl30732_chip_info, - }, - { - .name ="zl30733" , - .driver_data = (kernel_ulong_t)&zl30733_chip_info, - }, - { - .name ="zl30734" , - .driver_data = (kernel_ulong_t)&zl30734_chip_info, - }, - { - .name ="zl30735" , - .driver_data = (kernel_ulong_t)&zl30735_chip_info, - }, + {"zl30731" }, + {"zl30732" }, + {"zl30733" }, + {"zl30734" }, + {"zl30735" }, {/* sentinel */ } };MODULE_DEVICE_TABLE (spi, zl3073x_spi_id);static const struct of_device_id zl3073x_spi_of_match[] = { - { .compatible ="microchip,zl30731" , .data = &zl30731_chip_info }, - { .compatible ="microchip,zl30732" , .data = &zl30732_chip_info }, - { .compatible ="microchip,zl30733" , .data = &zl30733_chip_info }, - { .compatible ="microchip,zl30734" , .data = &zl30734_chip_info }, - { .compatible ="microchip,zl30735" , .data = &zl30735_chip_info }, + { .compatible ="microchip,zl30731" }, + { .compatible ="microchip,zl30732" }, + { .compatible ="microchip,zl30733" }, + { .compatible ="microchip,zl30734" }, + { .compatible ="microchip,zl30735" }, {/* sentinel */ } };MODULE_DEVICE_TABLE (of, zl3073x_spi_of_match);
drivers/gpio/gpio-adnp.c +3 -1
@@ -237,7 +237,9 @@ static irqreturn_t adnp_irq(int irq, void *data)unsigned long pending;int err; - scoped_guard(mutex, &adnp->i2c_lock) { + { +guard (mutex)(&adnp->i2c_lock); + err =adnp_read (adnp,GPIO_PLR (adnp) + i, &level);if (err <0 )continue ;
drivers/gpio/gpio-mxc.c +1 -1
@@ -469,7 +469,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)* the handler is needed only once, but doing it for every port * is more robust and easier. */ - port->irq_high =-1 ; + port->irq_high =0 ; port->mx_irq_handler = mx2_gpio_irq_handler; }else port->mx_irq_handler = mx3_gpio_irq_handler;
drivers/gpio/gpio-rockchip.c +17 -6
@@ -638,10 +638,17 @@ static int rockchip_gpiolib_register(struct rockchip_pin_bank *bank)return ret; } +static void rockchip_clk_put (void *data) +{ +struct clk *clk = data; + +clk_put (clk); +} +static int rockchip_get_bank_data (struct rockchip_pin_bank *bank) {struct resource res; -int id =0 ; +int id =0 , ret;if (of_address_to_resource (bank->of_node,0 , &res)) {dev_err (bank->dev,"cannot find IO resource for bank\n" );
@@ -656,11 +663,10 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)if (!bank->irq)return -EINVAL ; - bank->clk =of_clk_get (bank->of_node,0 ); + bank->clk =devm_clk_get_enabled (bank->dev,NULL );if (IS_ERR (bank->clk))return PTR_ERR (bank->clk); -clk_prepare_enable (bank->clk); id =readl (bank->reg_base + gpio_regs_v2.version_id);switch (id) {
@@ -672,9 +678,13 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank) bank->db_clk =of_clk_get (bank->of_node,1 );if (IS_ERR (bank->db_clk)) {dev_err (bank->dev,"cannot find debounce clk\n" ); -clk_disable_unprepare (bank->clk);return -EINVAL ; } + + ret =devm_add_action_or_reset (bank->dev, rockchip_clk_put, + bank->db_clk); +if (ret) +return ret;break ;case GPIO_TYPE_V1 : bank->gpio_regs = &gpio_regs_v1;
@@ -751,7 +761,6 @@ static int rockchip_gpio_probe(struct platform_device *pdev) ret =rockchip_gpiolib_register (bank);if (ret) { -clk_disable_unprepare (bank->clk);mutex_unlock (&bank->deferred_lock);return ret; }
@@ -792,7 +801,9 @@ static void rockchip_gpio_remove(struct platform_device *pdev) {struct rockchip_pin_bank *bank =platform_get_drvdata (pdev); -clk_disable_unprepare (bank->clk); +irq_set_chained_handler_and_data (bank->irq,NULL ,NULL ); +if (bank->domain) +irq_domain_remove (bank->domain);gpiochip_remove (&bank->gpio_chip); }
drivers/gpio/gpio-shared-proxy.c +9 -0
@@ -103,9 +103,18 @@ static void gpio_shared_proxy_free(struct gpio_chip *gc, unsigned int offset) {struct gpio_shared_proxy_data *proxy =gpiochip_get_data (gc);struct gpio_shared_desc *shared_desc = proxy->shared_desc; +int ret;guard (gpio_shared_desc_lock)(shared_desc); +if (proxy->voted_high) { + ret =gpio_shared_proxy_set_unlocked (proxy, + shared_desc->can_sleep ? gpiod_set_value_cansleep : gpiod_set_value,0 ); +if (ret) +dev_err (proxy->dev, +"Failed to unset the shared GPIO value on release: %d\n" , ret); + } + proxy->shared_desc->usecnt--; dev_dbg(proxy->dev, "Shared GPIO freed, number of users: %u\n",
drivers/gpio/gpio-virtuser.c +2 -2
@@ -399,7 +399,7 @@ static ssize_t gpio_virtuser_direction_do_write(struct file *file,char buf[32 ], *trimmed;int ret, dir, val =0 ; -if (count >=sizeof (buf)) +if (*ppos !=0 || count >=sizeof (buf))return -EINVAL ; ret =simple_write_to_buffer (buf,sizeof (buf) -1 , ppos, user_buf, count);
@@ -624,7 +624,7 @@ static ssize_t gpio_virtuser_consumer_write(struct file *file,char buf[GPIO_VIRTUSER_NAME_BUF_LEN +2 ];int ret; -if (count >=sizeof (buf)) +if (*ppos !=0 || count >=sizeof (buf))return -EINVAL ; ret = simple_write_to_buffer(buf, GPIO_VIRTUSER_NAME_BUF_LEN, ppos,
drivers/gpio/gpiolib-shared.c +3 -6
@@ -53,7 +53,7 @@ struct gpio_shared_entry {unsigned int offset;/* Index in the property value array. */ size_t index; -/* Synchronizes the modification of shared_desc. */ +/* Synchronizes the modification of shared_desc and offset. */ struct mutex lock;struct gpio_shared_desc *shared_desc;struct kref ref;
@@ -598,16 +598,13 @@ void gpio_device_teardown_shared(struct gpio_device *gdev)struct gpio_shared_ref *ref;list_for_each_entry (entry, &gpio_shared_list, list) { -guard (mutex)(&entry->lock); -if (!device_match_fwnode (&gdev->dev, entry->fwnode))continue ; -gpiod_free_commit (&gdev->descs[entry->offset]); + scoped_guard(mutex, &entry->lock) +gpiod_free_commit (&gdev->descs[entry->offset]);list_for_each_entry (ref, &entry->refs, list) { -guard (mutex)(&ref->lock); -if (ref->lookup) {gpiod_remove_lookup_table (ref->lookup);kfree (ref->lookup->table[0 ].key);
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +9 -2
@@ -1095,9 +1095,16 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,* If that number is larger than the size of the array, the ioctl must * be retried. */ +if (args->num_entries >INT_MAX /sizeof (*vm_entries)) { + r = -EINVAL ; + goto out_exec; + } + vm_entries =kvcalloc (args->num_entries,sizeof (*vm_entries),GFP_KERNEL ); -if (!vm_entries) -return -ENOMEM ; +if (!vm_entries) { + r = -ENOMEM ; + goto out_exec; + }amdgpu_vm_bo_va_for_each_valid_mapping (bo_va, mapping) {if (num_mappings < args->num_entries) {
drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c +9 -8
@@ -51,8 +51,6 @@#include "amdgpu_amdkfd.h" #include "amdgpu_hmm.h" -#define MAX_WALK_BYTE (2UL << 30) -/** * amdgpu_hmm_invalidate_gfx - callback to notify about mm change *
@@ -78,6 +76,7 @@ static bool amdgpu_hmm_invalidate_gfx(struct mmu_interval_notifier *mni,mmu_interval_set_seq (mni, cur_seq); +amdgpu_vm_bo_invalidate (bo, false); r =dma_resv_wait_timeout (bo->tbo.base.resv,DMA_RESV_USAGE_BOOKKEEP , false,MAX_SCHEDULE_TIMEOUT );mutex_unlock (&adev->notifier_lock);
@@ -170,11 +169,13 @@ int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier,void *owner, struct amdgpu_hmm_range *range) { - unsigned long end; + const u64 max_bytes = SZ_2G; + +struct hmm_range *hmm_range = &range->hmm_range;unsigned long timeout;unsigned long *pfns; -int r =0 ; -struct hmm_range *hmm_range = &range->hmm_range; +unsigned long end; +int r; pfns =kvmalloc_array (npages,sizeof (*pfns),GFP_KERNEL );if (unlikely (!pfns)) {
@@ -191,8 +192,9 @@ int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier, end = start + npages *PAGE_SIZE ; hmm_range->dev_private_owner = owner; + hmm_range->notifier_seq =mmu_interval_read_begin (notifier); do { - hmm_range->end = min(hmm_range->start + MAX_WALK_BYTE, end); + hmm_range->end = min(hmm_range->start + max_bytes, end); pr_debug("hmm range: start = 0x%lx, end = 0x%lx", hmm_range->start, hmm_range->end);
@@ -200,7 +202,6 @@ int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier, timeout = jiffies +msecs_to_jiffies (HMM_RANGE_DEFAULT_TIMEOUT ); retry: - hmm_range->notifier_seq =mmu_interval_read_begin (notifier); r =hmm_range_fault (hmm_range);if (unlikely (r)) {if (r == -EBUSY && !time_after (jiffies, timeout))
@@ -210,7 +211,7 @@ int amdgpu_hmm_range_get_pages(struct mmu_interval_notifier *notifier,if (hmm_range->end == end)break ; - hmm_range->hmm_pfns +=MAX_WALK_BYTE >>PAGE_SHIFT ; + hmm_range->hmm_pfns += max_bytes >>PAGE_SHIFT ; hmm_range->start = hmm_range->end; }while (hmm_range->end < end);
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +5 -2
@@ -1613,6 +1613,7 @@ int amdgpu_vm_handle_moved(struct amdgpu_device *adev, {struct amdgpu_bo_va *bo_va;struct dma_resv *resv; +struct amdgpu_bo *bo;bool clear, unlock;int r;
@@ -1632,11 +1633,13 @@ int amdgpu_vm_handle_moved(struct amdgpu_device *adev,while (!list_empty (&vm->invalidated)) { bo_va = list_first_entry(&vm->invalidated, struct amdgpu_bo_va, base.vm_status); - resv = bo_va->base.bo->tbo.base.resv; + bo = bo_va->base.bo; + resv = bo->tbo.base.resv;spin_unlock (&vm->status_lock);/* Try to reserve the BO to avoid clearing its ptes */ -if (!adev->debug_vm &&dma_resv_trylock (resv)) { +if (!adev->debug_vm && !amdgpu_ttm_tt_get_usermm (bo->tbo.ttm) && +dma_resv_trylock (resv)) { clear = false; unlock = true;/* The caller is already holding the reservation lock */
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +5 -5
@@ -2278,6 +2278,11 @@ static int criu_restore_devices(struct kfd_process *p, ret = -EINVAL ; goto exit; } + +if (pdd->drm_file) { + ret = -EINVAL ; + goto exit; + } pdd->user_gpu_id = device_buckets[i].user_gpu_id; drm_file =fget (device_buckets[i].drm_fd);
@@ -2288,11 +2293,6 @@ static int criu_restore_devices(struct kfd_process *p, goto exit; } -if (pdd->drm_file) { - ret = -EINVAL ; - goto exit; - } -/* create the vm using render nodes for kfd pdd */ if (kfd_process_device_init_vm (pdd, drm_file)) {pr_err ("could not init vm for given pdd\n" );
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +5 -3
@@ -3296,12 +3296,14 @@ static void copy_context_work_handler(struct work_struct *work)static uint32_t *get_queue_ids (uint32_t num_queues,uint32_t *usr_queue_id_array) { -size_t array_size = num_queues *sizeof (uint32_t ); -if (!usr_queue_id_array)return NULL ; -return memdup_user (usr_queue_id_array, array_size); +if (num_queues >KFD_MAX_NUM_OF_QUEUES_PER_PROCESS ) +return ERR_PTR (-EINVAL ); + +return memdup_user (usr_queue_id_array, +array_size (num_queues,sizeof (uint32_t ))); } int resume_queues(struct kfd_process *p,
drivers/gpu/drm/amd/amdkfd/kfd_svm.c +3 -0
@@ -3718,6 +3718,9 @@ svm_range_set_attr(struct kfd_process *p, struct mm_struct *mm, svms = &p->svms; +if (!process_info) +return -EINVAL ; +mutex_lock (&process_info->lock);svm_range_list_lock_and_flush_work (svms, mm);
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +4 -0
@@ -3076,6 +3076,10 @@ static bool si_dpm_vblank_too_short(void *handle)/* we never hit the non-gddr5 limit so disable it */ u32 switch_limit = adev->gmc.vram_type ==AMDGPU_VRAM_TYPE_GDDR5 ?450 :0 ; +/* Disregard vblank time when there are no displays connected */ +if (!adev->pm.pm_display_cfg.num_display) +return false; +/* Consider zero vblank time too short and disable MCLK switching. * Note that the vblank time is set to maximum when no displays are attached, * so we'll still enable MCLK switching in that case.
drivers/gpu/drm/drm_gem.c +2 -0
@@ -1047,6 +1047,7 @@ int drm_gem_change_handle_ioctl(struct drm_device *dev, void *data, goto out_unlock; } +idr_replace (&file_priv->object_idr,NULL , args->handle);spin_unlock (&file_priv->table_lock);if (obj->dma_buf) {
@@ -1055,6 +1056,7 @@ int drm_gem_change_handle_ioctl(struct drm_device *dev, void *data,if (ret <0 ) {spin_lock (&file_priv->table_lock);idr_remove (&file_priv->object_idr, handle); +idr_replace (&file_priv->object_idr, obj, args->handle);spin_unlock (&file_priv->table_lock); goto out_unlock; }
drivers/gpu/drm/hyperv/hyperv_drm_proto.c +97 -16
153 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_color.c +1 -1
@@ -3976,7 +3976,7 @@ xelpd_program_plane_pre_csc_lut(struct intel_dsb *dsb,intel_de_write_dsb (display, dsb,PLANE_PRE_CSC_GAMC_DATA_ENH (pipe, plane,0 ), (1 <<24 )); - }while (i++ >130 ); + }while (i++ <130 ); }else {for (i =0 ; i < lut_size; i++) {u32 v = (i * ((1 <<24 ) -1 )) / (lut_size -1 );
drivers/gpu/drm/i915/display/intel_display_core.h +1 -0
@@ -494,6 +494,7 @@ struct intel_display {u8 vblank_enabled;int vblank_enable_count; +bool vblank_status_last_notified;struct work_struct vblank_notify_work;
drivers/gpu/drm/i915/display/intel_display_irq.c +6 -2
@@ -1773,8 +1773,12 @@ static void intel_display_vblank_notify_work(struct work_struct *work)struct intel_display *display =container_of (work,typeof (*display), irq.vblank_notify_work);int vblank_enable_count =READ_ONCE (display->irq.vblank_enable_count); +bool vblank_status = !!vblank_enable_count; -intel_psr_notify_vblank_enable_disable (display, vblank_enable_count); +if (display->irq.vblank_status_last_notified != vblank_status) { +intel_psr_notify_vblank_enable_disable (display, vblank_status); + display->irq.vblank_status_last_notified = vblank_status; + } }int bdw_enable_vblank (struct drm_crtc *_crtc)
@@ -1787,10 +1791,10 @@ int bdw_enable_vblank(struct drm_crtc *_crtc)if (gen11_dsi_configure_te (crtc, true))return 0 ; +spin_lock_irqsave (&display->irq.lock, irqflags);if (crtc->vblank_psr_notify && display->irq.vblank_enable_count++ ==0 )schedule_work (&display->irq.vblank_notify_work); -spin_lock_irqsave (&display->irq.lock, irqflags);bdw_enable_pipe_irq (display, pipe,GEN8_PIPE_VBLANK );spin_unlock_irqrestore (&display->irq.lock, irqflags);
drivers/gpu/drm/i915/display/intel_display_types.h +3 -0
@@ -583,6 +583,7 @@ struct intel_connector {struct {u8 dpcd[EDP_PSR_RECEIVER_CAP_SIZE ]; +u8 intel_wa_dpcd;bool support;bool su_support;
@@ -1784,6 +1785,8 @@ struct intel_psr {u8 active_non_psr_pipes;const char *no_psr_reason; + +struct ref_tracker *vblank_wakeref; };struct intel_dp {
drivers/gpu/drm/i915/display/intel_dp_aux.c +16 -4
@@ -12,6 +12,7 @@#include "intel_dp.h" #include "intel_dp_aux.h" #include "intel_dp_aux_regs.h" +#include "intel_parent.h" #include "intel_pps.h" #include "intel_quirks.h" #include "intel_tc.h"
@@ -60,18 +61,29 @@ intel_dp_aux_wait_done(struct intel_dp *intel_dp)struct intel_display *display =to_intel_display (intel_dp);i915_reg_t ch_ctl = intel_dp->aux_ch_ctl_reg (intel_dp);const unsigned int timeout_ms =10 ; +bool done = true;u32 status; -bool done; +int ret; +if (intel_parent_irq_enabled (display)) {#define C (((status = intel_de_read_notrace(display, ch_ctl)) & DP_AUX_CH_CTL_SEND_BUSY) == 0) - done =wait_event_timeout (display->gmbus.wait_queue,C , -msecs_to_jiffies_timeout (timeout_ms)); + done =wait_event_timeout (display->gmbus.wait_queue,C , +msecs_to_jiffies_timeout (timeout_ms)); + +#undef C + }else { + ret =intel_de_wait_ms (display, ch_ctl, +DP_AUX_CH_CTL_SEND_BUSY ,0 , + timeout_ms, &status); + +if (ret == -ETIMEDOUT ) + done = false; + }if (!done)drm_err (display->drm,"%s: did not complete or timeout within %ums (status 0x%08x)\n" , intel_dp->aux.name, timeout_ms, status); -#undef Creturn status; }
drivers/gpu/drm/i915/display/intel_dpcd.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2026 Intel Corporation +*/ + +#ifndef __INTEL_DPCD_H__ +#define __INTEL_DPCD_H__ + +#define INTEL_DPCD_INTEL_WA_REGISTER_CAPS 0x3f0 +# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_PSR2_EARLYSCANLINE_SDP_SUPPORT_MASK REG_GENMASK(1, 0) +# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_FALL_BACK_TO_PSR1 0 +# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_PSR2_WITH_EARLY_SCANLINE 1 +# define INTEL_DPCD_INTEL_WA_REGISTER_CAPS_PSR2_WITHOUT_EARLY_SCANLINE 2 + +#endif /* __INTEL_DPCD_H__ */
drivers/gpu/drm/i915/display/intel_psr.c +49 -20
113 lines not on this page · raw message
drivers/gpu/drm/i915/gem/i915_gem_ttm.c +16 -12
@@ -419,8 +419,6 @@ void i915_ttm_free_cached_io_rsgt(struct drm_i915_gem_object *obj)int i915_ttm_purge (struct drm_i915_gem_object *obj) {struct ttm_buffer_object *bo =i915_gem_to_ttm (obj); -struct i915_ttm_tt *i915_tt = -container_of (bo->ttm,typeof (*i915_tt), ttm);struct ttm_operation_ctx ctx = { .interruptible = true, .no_wait_gpu = false,
@@ -435,16 +433,22 @@ int i915_ttm_purge(struct drm_i915_gem_object *obj)if (ret)return ret; -if (bo->ttm && i915_tt->filp) { -/* -* The below fput(which eventually calls shmem_truncate) might -* be delayed by worker, so when directly called to purge the -* pages(like by the shrinker) we should try to be more -* aggressive and release the pages immediately. -*/ -shmem_truncate_range (file_inode (i915_tt->filp), -0 , (loff_t)-1 ); -fput (fetch_and_zero (&i915_tt->filp)); +if (bo->ttm) { +struct i915_ttm_tt *i915_tt = +container_of (bo->ttm,typeof (*i915_tt), ttm); + +if (i915_tt->filp) { +/* +* The below fput(which eventually calls shmem_truncate) +* might be delayed by worker, so when directly called +* to purge the pages(like by the shrinker) we should +* try to be more aggressive and release the pages +* immediately. +*/ +shmem_truncate_range (file_inode (i915_tt->filp), +0 , (loff_t)-1 ); +fput (fetch_and_zero (&i915_tt->filp)); + } } obj->write_domain =0 ;
drivers/gpu/drm/xe/xe_guc_ads.c +5 -0
@@ -770,6 +770,11 @@ static unsigned int guc_mmio_regset_write(struct xe_guc_ads *ads, } } +if (XE_GT_WA (hwe->gt,16023105232 )) +guc_mmio_regset_write_one (ads, regset_map, +RING_IDLEDLY (hwe->mmio_base), + count++); +return count; }
drivers/hid/hid-ids.h +1 -0
@@ -1261,6 +1261,7 @@#define USB_VENDOR_ID_SIGMA_MICRO 0x1c4f#define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD 0x0002 +#define USB_DEVICE_ID_SIGMA_MICRO_USB_MOUSE 0x0034#define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD2 0x0059#define USB_VENDOR_ID_SIGMATEL 0x066F
drivers/hid/hid-quirks.c +1 -0
@@ -186,6 +186,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD), HID_QUIRK_NO_INIT_REPORTS }, { HID_USB_DEVICE(USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD), HID_QUIRK_NO_INIT_REPORTS }, + { HID_USB_DEVICE(USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_USB_MOUSE), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_SIGMATEL, USB_DEVICE_ID_SIGMATEL_STMP3780), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_SIS_TOUCH, USB_DEVICE_ID_SIS1030_TOUCH), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_SIS_TOUCH, USB_DEVICE_ID_SIS817_TOUCH), HID_QUIRK_NOGET },
drivers/hid/wacom_sys.c +10 -3
@@ -356,6 +356,7 @@ static void wacom_feature_mapping(struct hid_device *hdev, hid_data->inputmode = field->report->id; hid_data->inputmode_index = usage->usage_index; + hid_data->inputmode_field_index = field->index;break ;case HID_UP_DIGITIZER :
@@ -571,9 +572,14 @@ static int wacom_hid_set_device_mode(struct hid_device *hdev) re = &(hdev->report_enum[HID_FEATURE_REPORT ]); r = re->report_id_hash[hid_data->inputmode]; -if (r) { - r->field[0 ]->value[hid_data->inputmode_index] =2 ; -hid_hw_request (hdev, r,HID_REQ_SET_REPORT ); +if (r && hid_data->inputmode_field_index >=0 && + hid_data->inputmode_field_index < r->maxfield) { +struct hid_field *field = r->field[hid_data->inputmode_field_index]; + +if (field && hid_data->inputmode_index < field->report_count) { + field->value[hid_data->inputmode_index] =2 ; +hid_hw_request (hdev, r,HID_REQ_SET_REPORT ); + } }return 0 ; }
@@ -2846,6 +2852,7 @@ static int wacom_probe(struct hid_device *hdev,return -ENODEV ; wacom_wac->hid_data.inputmode =-1 ; + wacom_wac->hid_data.inputmode_field_index =-1 ; wacom_wac->mode_report =-1 ;if (hid_is_usb (hdev)) {
drivers/hid/wacom_wac.h +1 -0
@@ -295,6 +295,7 @@ struct wacom_shared {struct hid_data {__s16 inputmode;/* InputMode HID feature, -1 if non-existent */ __s16 inputmode_index;/* InputMode HID feature index in the report */ +__s16 inputmode_field_index;/* InputMode HID feature field index in the report */ bool sense_state;bool inrange_state;bool eraser;
drivers/hwmon/pmbus/adm1266.c +7 -0
@@ -173,6 +173,8 @@ static int adm1266_gpio_get(struct gpio_chip *chip, unsigned int offset)else pmbus_cmd =ADM1266_PDIO_STATUS ; +guard (pmbus_lock)(data->client); + ret =i2c_smbus_read_block_data (data->client, pmbus_cmd, read_buf);if (ret <0 )return ret;
@@ -195,6 +197,8 @@ static int adm1266_gpio_get_multiple(struct gpio_chip *chip, unsigned long *maskunsigned int gpio_nr;int ret; +guard (pmbus_lock)(data->client); + ret =i2c_smbus_read_block_data (data->client,ADM1266_GPIO_STATUS , read_buf);if (ret <0 )return ret;
@@ -236,6 +240,8 @@ static void adm1266_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)int ret;int i; +guard (pmbus_lock)(data->client); +for (i =0 ; i <ADM1266_GPIO_NR ; i++) { write_cmd = adm1266_gpio_mapping[i][1 ]; ret =adm1266_pmbus_block_xfer (data,ADM1266_GPIO_CONFIG ,1 , &write_cmd, read_buf);
@@ -328,6 +334,7 @@ static int adm1266_state_read(struct seq_file *s, void *pdata)struct i2c_client *client =to_i2c_client (dev);int ret; +guard (pmbus_lock)(client); ret =i2c_smbus_read_word_data (client,ADM1266_READ_STATE );if (ret <0 )return ret;
drivers/hwmon/pmbus/pmbus.h +5 -0
@@ -10,6 +10,7 @@#define PMBUS_H #include <linux/bitops.h> +#include <linux/cleanup.h> #include <linux/regulator/driver.h> /*
@@ -563,7 +564,11 @@ int pmbus_get_fan_rate_device(struct i2c_client *client, int page, int id,int pmbus_get_fan_rate_cached (struct i2c_client *client,int page,int id,enum pmbus_fan_mode mode);int pmbus_lock_interruptible (struct i2c_client *client); +void pmbus_lock (struct i2c_client *client);void pmbus_unlock (struct i2c_client *client); + +DEFINE_GUARD(pmbus_lock, struct i2c_client *, pmbus_lock(_T), pmbus_unlock(_T)) +int pmbus_update_fan (struct i2c_client *client,int page,int id,u8 config,u8 mask,u16 command);struct dentry *pmbus_get_debugfs_dir (struct i2c_client *client);
drivers/hwmon/pmbus/pmbus_core.c +8 -0
@@ -3871,6 +3871,14 @@ struct dentry *pmbus_get_debugfs_dir(struct i2c_client *client) }EXPORT_SYMBOL_NS_GPL (pmbus_get_debugfs_dir,"PMBUS" ); +void pmbus_lock (struct i2c_client *client) +{ +struct pmbus_data *data =i2c_get_clientdata (client); + +mutex_lock (&data->update_lock); +} +EXPORT_SYMBOL_NS_GPL (pmbus_lock,"PMBUS" ); +int pmbus_lock_interruptible (struct i2c_client *client) {struct pmbus_data *data =i2c_get_clientdata (client);
drivers/i2c/busses/i2c-davinci.c +1 -1
@@ -117,7 +117,7 @@/* timeout for pm runtime autosuspend */ #define DAVINCI_I2C_PM_TIMEOUT 1000/* ms */ -#define DAVINCI_I2C_DEFAULT_BUS_FREQ 100 +#define DAVINCI_I2C_DEFAULT_BUS_FREQ 100000struct davinci_i2c_dev {struct device *dev;
drivers/i2c/busses/i2c-tegra.c +6 -9
@@ -445,25 +445,22 @@ static int tegra_i2c_mutex_lock(struct tegra_i2c_dev *i2c_dev)return ret; } -static int tegra_i2c_mutex_unlock (struct tegra_i2c_dev *i2c_dev) +static void tegra_i2c_mutex_unlock (struct tegra_i2c_dev *i2c_dev) {unsigned int reg =tegra_i2c_reg_addr (i2c_dev,I2C_SW_MUTEX );u32 val, id;if (!i2c_dev->hw->has_mutex) -return 0 ; +return ; val =readl (i2c_dev->base + reg); id =FIELD_GET (I2C_SW_MUTEX_GRANT , val); -if (id && id !=I2C_SW_MUTEX_ID_CCPLEX ) { -dev_warn (i2c_dev->dev,"unable to unlock mutex, mutex is owned by: %u\n" , id); -return -EPERM ; - } +if (WARN (id && id !=I2C_SW_MUTEX_ID_CCPLEX , +"unable to unlock mutex, mutex is owned by: %u\n" , id)) +return ;writel (0 , i2c_dev->base + reg); - -return 0 ; }static void tegra_i2c_mask_irq (struct tegra_i2c_dev *i2c_dev,u32 mask)
@@ -1556,7 +1553,7 @@ static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[],break ; } - ret =tegra_i2c_mutex_unlock (i2c_dev); +tegra_i2c_mutex_unlock (i2c_dev);pm_runtime_put (i2c_dev->dev);return ret ?: i;
drivers/iio/adc/ad4695.c +8 -15
@@ -876,14 +876,14 @@ static int ad4695_offload_buffer_postenable(struct iio_dev *indio_dev)if (ret) goto err_unoptimize_message; - ret =spi_offload_trigger_enable (st->offload, st->offload_trigger, - &config); + ret =ad4695_enter_advanced_sequencer_mode (st, num_slots);if (ret) goto err_disable_busy_output; - ret =ad4695_enter_advanced_sequencer_mode (st, num_slots); + ret =spi_offload_trigger_enable (st->offload, st->offload_trigger, + &config);if (ret) - goto err_offload_trigger_disable; + goto err_exit_conversion_mode;mutex_lock (&st->cnv_pwm_lock);pwm_get_state (st->cnv_pwm, &state);
@@ -895,23 +895,16 @@ static int ad4695_offload_buffer_postenable(struct iio_dev *indio_dev) ret =pwm_apply_might_sleep (st->cnv_pwm, &state);mutex_unlock (&st->cnv_pwm_lock);if (ret) - goto err_offload_exit_conversion_mode; + goto err_offload_trigger_disable;return 0 ; -err_offload_exit_conversion_mode: -/* -* We have to unwind in a different order to avoid triggering offload. -* ad4695_exit_conversion_mode() triggers a conversion, so it has to be -* done after spi_offload_trigger_disable(). -*/ -spi_offload_trigger_disable (st->offload, st->offload_trigger); -ad4695_exit_conversion_mode (st); - goto err_disable_busy_output; - err_offload_trigger_disable:spi_offload_trigger_disable (st->offload, st->offload_trigger); +err_exit_conversion_mode: +ad4695_exit_conversion_mode (st); + err_disable_busy_output:regmap_clear_bits (st->regmap,AD4695_REG_GP_MODE ,AD4695_REG_GP_MODE_BUSY_GP_EN );
drivers/iio/adc/mt6359-auxadc.c +1 -0
@@ -497,6 +497,7 @@ static int mt6358_read_imp(struct mt6359_auxadc *adc_dev,return ret;/* Read the params before stopping */ + val_v =0 ;regmap_read (regmap, reg_adc0 + (cinfo->imp_adc_num <<1 ), &val_v);mt6358_stop_imp_conv (adc_dev);
drivers/iio/adc/npcm_adc.c +8 -17
@@ -231,7 +231,7 @@ static int npcm_adc_probe(struct platform_device *pdev)if (IS_ERR (info->reset))return PTR_ERR (info->reset); - info->adc_clk =devm_clk_get (&pdev->dev,NULL ); + info->adc_clk =devm_clk_get_enabled (&pdev->dev,NULL );if (IS_ERR (info->adc_clk)) {dev_warn (&pdev->dev,"ADC clock failed: can't read clk\n" );return PTR_ERR (info->adc_clk);
@@ -244,17 +244,13 @@ static int npcm_adc_probe(struct platform_device *pdev) info->adc_sample_hz =clk_get_rate (info->adc_clk) / ((div +1 ) *2 ); irq =platform_get_irq (pdev,0 ); -if (irq <0 ) { - ret = irq; - goto err_disable_clk; - } +if (irq <0 ) +return irq; ret =devm_request_irq (&pdev->dev, irq, npcm_adc_isr,0 ,"NPCM_ADC" , indio_dev); -if (ret <0 ) { -dev_err (dev,"failed requesting interrupt\n" ); - goto err_disable_clk; - } +if (ret <0 ) +return ret; reg_con =ioread32 (info->regs +NPCM_ADCCON ); info->vref =devm_regulator_get_optional (&pdev->dev,"vref" );
@@ -262,7 +258,7 @@ static int npcm_adc_probe(struct platform_device *pdev) ret =regulator_enable (info->vref);if (ret) {dev_err (&pdev->dev,"Can't enable ADC reference voltage\n" ); - goto err_disable_clk; +return ret; } iowrite32(reg_con & ~NPCM_ADCCON_REFSEL,
@@ -272,10 +268,8 @@ static int npcm_adc_probe(struct platform_device *pdev)* Any error which is not ENODEV indicates the regulator * has been specified and so is a failure case. */ -if (PTR_ERR (info->vref) != -ENODEV ) { - ret =PTR_ERR (info->vref); - goto err_disable_clk; - } +if (PTR_ERR (info->vref) != -ENODEV ) +return PTR_ERR (info->vref);/* Use internal reference */ iowrite32(reg_con | NPCM_ADCCON_REFSEL,
@@ -314,8 +308,6 @@ static int npcm_adc_probe(struct platform_device *pdev)iowrite32 (reg_con & ~NPCM_ADCCON_ADC_EN , info->regs +NPCM_ADCCON );if (!IS_ERR (info->vref))regulator_disable (info->vref); -err_disable_clk: -clk_disable_unprepare (info->adc_clk);return ret; }
@@ -332,7 +324,6 @@ static void npcm_adc_remove(struct platform_device *pdev)iowrite32 (regtemp & ~NPCM_ADCCON_ADC_EN , info->regs +NPCM_ADCCON );if (!IS_ERR (info->vref))regulator_disable (info->vref); -clk_disable_unprepare (info->adc_clk); }static struct platform_driver npcm_adc_driver = {
drivers/iio/adc/nxp-sar-adc.c +20 -4
@@ -198,6 +198,15 @@ static void nxp_sar_adc_irq_cfg(struct nxp_sar_adc *info, bool enable)writel (0 ,NXP_SAR_ADC_IMR (info->regs)); } +static void nxp_sar_adc_wait_for (struct nxp_sar_adc *info,unsigned int cycles) +{ +u64 rate; + + rate =clk_get_rate (info->clk); +if (rate) +ndelay (div64_u64 (NSEC_PER_SEC , rate * cycles)); +} +static bool nxp_sar_adc_set_enabled (struct nxp_sar_adc *info,bool enable) {u32 mcr;
@@ -221,7 +230,7 @@ static bool nxp_sar_adc_set_enabled(struct nxp_sar_adc *info, bool enable)* configuration of NCMR and the setting of NSTART. */ if (enable) -ndelay (div64_u64 (NSEC_PER_SEC ,clk_get_rate (info->clk) *3 )); +nxp_sar_adc_wait_for (info,3 );return pwdn; }
@@ -468,7 +477,7 @@ static void nxp_sar_adc_stop_conversion(struct nxp_sar_adc *info)* only when the capture finishes. The delay will be very * short, usec-ish, which is acceptable in the atomic context. */ -ndelay (div64_u64 (NSEC_PER_SEC ,clk_get_rate (info->clk)) *80 ); +nxp_sar_adc_wait_for (info,80 ); }static int nxp_sar_adc_start_conversion (struct nxp_sar_adc *info,bool raw)
@@ -559,6 +568,9 @@ static int nxp_sar_adc_write_raw(struct iio_dev *indio_dev, struct iio_chan_specswitch (mask) {case IIO_CHAN_INFO_SAMP_FREQ : +if (val <=0 ) +return -EINVAL ; +/* * Configures the sample period duration in terms of the SAR * controller clock. The minimum acceptable value is 8.
@@ -567,7 +579,11 @@ static int nxp_sar_adc_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec* sampling timing which gives us the number of cycles expected. * The value is 8-bit wide, consequently the max value is 0xFF. */ - inpsamp =clk_get_rate (info->clk) / val -NXP_SAR_ADC_CONV_TIME ; + inpsamp =clk_get_rate (info->clk) / val; +if (inpsamp <NXP_SAR_ADC_CONV_TIME ) +return -EINVAL ; + + inpsamp -=NXP_SAR_ADC_CONV_TIME ;nxp_sar_adc_conversion_timing_set (info, inpsamp);return 0 ;
@@ -659,7 +675,7 @@ static void nxp_sar_adc_dma_cb(void *data)static int nxp_sar_adc_start_cyclic_dma (struct iio_dev *indio_dev) {struct nxp_sar_adc *info =iio_priv (indio_dev); -struct dma_slave_config config; +struct dma_slave_config config = { };struct dma_async_tx_descriptor *desc;int ret;
drivers/iio/adc/viperboard_adc.c +3 -1
@@ -70,8 +70,10 @@ static int vprbrd_iio_read_raw(struct iio_dev *iio_dev,VPRBRD_USB_TYPE_OUT ,0x0000 ,0x0000 , admsg, sizeof(struct vprbrd_adc_msg), VPRBRD_USB_TIMEOUT_MS);if (ret !=sizeof (struct vprbrd_adc_msg )) { -dev_err (&iio_dev->dev,"usb send error on adc read\n" ); +mutex_unlock (&vb->lock); error = -EREMOTEIO ; +dev_err (&iio_dev->dev,"usb send error on adc read\n" ); + goto error; } ret = usb_control_msg(vb->usb_dev,
drivers/iio/adc/xilinx-xadc-core.c +9 -2
@@ -817,6 +817,7 @@ static int xadc_postdisable(struct iio_dev *indio_dev) {struct xadc *xadc =iio_priv (indio_dev);unsigned long scan_mask; +int seq_mode;int ret;int i;
@@ -824,6 +825,12 @@ static int xadc_postdisable(struct iio_dev *indio_dev)for (i =0 ; i < indio_dev->num_channels; i++) scan_mask |=BIT (indio_dev->channels[i].scan_index); +/* +* Use the correct sequencer mode for the idle state: simultaneous +* mode for dual external mux configurations, continuous otherwise. +*/ + seq_mode =xadc_get_seq_mode (xadc, scan_mask); +/* Enable all channels and calibration */ ret =xadc_write_adc_reg (xadc,XADC_REG_SEQ (0 ), scan_mask &0xffff );if (ret)
@@ -834,11 +841,11 @@ static int xadc_postdisable(struct iio_dev *indio_dev)return ret; ret =xadc_update_adc_reg (xadc,XADC_REG_CONF1 ,XADC_CONF1_SEQ_MASK , -XADC_CONF1_SEQ_CONTINUOUS ); + seq_mode);if (ret)return ret; -return xadc_power_adc_b (xadc,XADC_CONF1_SEQ_CONTINUOUS ); +return xadc_power_adc_b (xadc, seq_mode); }static int xadc_preenable (struct iio_dev *indio_dev)
drivers/iio/buffer/industrialio-hw-consumer.c +2 -2
@@ -82,7 +82,7 @@ static struct hw_consumer_buffer *iio_hw_consumer_get_buffer(*/ struct iio_hw_consumer *iio_hw_consumer_alloc (struct device *dev) { -struct hw_consumer_buffer *buf; +struct hw_consumer_buffer *buf, *tmp;struct iio_hw_consumer *hwc;struct iio_channel *chan;int ret;
@@ -113,7 +113,7 @@ struct iio_hw_consumer *iio_hw_consumer_alloc(struct device *dev)return hwc; err_put_buffers: -list_for_each_entry (buf, &hwc->buffers, head) +list_for_each_entry_safe (buf, tmp, &hwc->buffers, head)iio_buffer_put (&buf->buffer);iio_channel_release_all (hwc->channels); err_free_hwc:
drivers/iio/chemical/mhz19b.c +17 -0
@@ -52,6 +52,8 @@ struct mhz19b_state {struct completion buf_ready;u8 buf_idx; +bool buf_overflow; +/* * Serdev receive buffer. * When data is received from the MH-Z19B,
@@ -106,6 +108,10 @@ static int mhz19b_serdev_cmd(struct iio_dev *indio_dev, int cmd, u16 arg) cmd_buf[8 ] =mhz19b_get_checksum (cmd_buf);/* Write buf to uart ctrl synchronously */ + st->buf_idx =0 ; + st->buf_overflow = false; +reinit_completion (&st->buf_ready); + ret =serdev_device_write (serdev, cmd_buf,MHZ19B_CMD_SIZE ,0 );if (ret <0 )return ret;
@@ -121,6 +127,9 @@ static int mhz19b_serdev_cmd(struct iio_dev *indio_dev, int cmd, u16 arg)if (!ret)return -ETIMEDOUT ; +if (st->buf_overflow) +return -EMSGSIZE ; +if (st->buf[8 ] !=mhz19b_get_checksum (st->buf)) {dev_err (dev,"checksum err" );return -EINVAL ;
@@ -240,6 +249,14 @@ static size_t mhz19b_receive_buf(struct serdev_device *serdev, {struct iio_dev *indio_dev =dev_get_drvdata (&serdev->dev);struct mhz19b_state *st =iio_priv (indio_dev); +size_t remaining =MHZ19B_CMD_SIZE - st->buf_idx; + +if (len > remaining) { + st->buf_idx =0 ; + st->buf_overflow = true; +complete (&st->buf_ready); +return len; + }memcpy (st->buf + st->buf_idx, data, len); st->buf_idx += len;
drivers/iio/chemical/scd30_core.c +1 -1
@@ -256,7 +256,7 @@ static int scd30_write_raw(struct iio_dev *indio_dev, struct iio_chan_spec constguard (mutex)(&state->lock);switch (mask) {case IIO_CHAN_INFO_SAMP_FREQ : -if (val) +if (val || !val2)return -EINVAL ; val =1000000000 / val2;
drivers/iio/common/ssp_sensors/ssp_dev.c +1 -0
@@ -590,6 +590,7 @@ static void ssp_remove(struct spi_device *spi)ssp_clean_pending_list (data);free_irq (data->spi->irq, data); +cancel_delayed_work_sync (&data->work_refresh);timer_delete_sync (&data->wdt_timer);cancel_work_sync (&data->work_wdt);
drivers/iio/dac/ad3530r.c +40 -14
84 lines not on this page · raw message
drivers/iio/dac/ad5686.c +42 -14
123 lines not on this page · raw message
drivers/iio/dac/ad5686.h +1 -0
@@ -46,6 +46,7 @@#define AD5310_REF_BIT_MSK BIT(8)#define AD5683_REF_BIT_MSK BIT(12) +#define AD5686_REF_BIT_MSK BIT(0)#define AD5693_REF_BIT_MSK BIT(12)/**
drivers/iio/dac/max5821.c +8 -1
@@ -90,6 +90,7 @@ static int max5821_sync_powerdown_mode(struct max5821_data *data, const struct iio_chan_spec *chan) {u8 outbuf[2 ]; +int ret; outbuf[0 ] =MAX5821_EXTENDED_COMMAND_MODE ;
@@ -103,7 +104,13 @@ static int max5821_sync_powerdown_mode(struct max5821_data *data,else outbuf[1 ] |=MAX5821_EXTENDED_POWER_UP ; -return i2c_master_send (data->client, outbuf,2 ); + ret =i2c_master_send (data->client, outbuf,sizeof (outbuf)); +if (ret <0 ) +return ret; +if (ret !=sizeof (outbuf)) +return -EIO ; + +return 0 ; } static ssize_t max5821_write_dac_powerdown(struct iio_dev *indio_dev,
drivers/iio/gyro/adis16260.c +3 -0
@@ -287,6 +287,9 @@ static int adis16260_write_raw(struct iio_dev *indio_dev, addr = adis16260_addresses[chan->scan_index][1 ];return adis_write_reg_16 (adis, addr, val);case IIO_CHAN_INFO_SAMP_FREQ : +if (val <=0 ) +return -EINVAL ; +if (spi_get_device_id (adis->spi)->driver_data) t =256 / val;else
drivers/iio/gyro/itg3200_buffer.c +1 -1
@@ -34,7 +34,7 @@ static int itg3200_read_all_channels(struct i2c_client *i2c, __be16 *buf) .addr = i2c->addr, .flags = i2c->flags | I2C_M_RD, .len = ITG3200_SCAN_ELEMENTS * sizeof(s16), - .buf = (char *)&buf, + .buf = (char *)buf, }, };
drivers/iio/imu/adis16550.c +1 -1
@@ -836,7 +836,7 @@ static irqreturn_t adis16550_trigger_handler(int irq, void *p)u16 dummy;bool valid;struct iio_poll_func *pf = p; -__be32 data[ADIS16550_MAX_SCAN_DATA ]__aligned(8) ; +__be32 data[ADIS16550_MAX_SCAN_DATA ]__aligned(8) = { };struct iio_dev *indio_dev = pf->indio_dev;struct adis16550 *st =iio_priv (indio_dev);struct adis *adis =iio_device_get_drvdata (indio_dev);
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c +1 -1
@@ -609,7 +609,7 @@ int st_lsm6dsx_read_tagged_fifo(struct st_lsm6dsx_hw *hw)* must be passed a buffer that is aligned to 8 bytes so * as to allow insertion of a naturally aligned timestamp. */ -u8 iio_buff[ST_LSM6DSX_IIO_BUFF_SIZE ]__aligned(8) ; +u8 iio_buff[ST_LSM6DSX_IIO_BUFF_SIZE ]__aligned(8) = { };u8 tag;bool reset_ts = false;int i, err, read_len;
drivers/iio/industrialio-buffer.c +1 -0
@@ -1909,6 +1909,7 @@ static int iio_buffer_enqueue_dmabuf(struct iio_dev_buffer_pair *ib,dma_resv_add_fence (dmabuf->resv, &fence->base, dma_to_ram ?DMA_RESV_USAGE_WRITE :DMA_RESV_USAGE_READ ); +dma_fence_put (&fence->base);dma_resv_unlock (dmabuf->resv); cookie =dma_fence_begin_signalling ();
drivers/iio/inkern.c +5 -1
@@ -738,7 +738,11 @@ int iio_read_channel_processed_scale(struct iio_channel *chan, int *val,if (ret <0 )return ret;
Lines of this file are not shown. View the raw message.
drivers/iio/magnetometer/st_magn_core.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/input/touchscreen/atmel_mxt_ts.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/input/touchscreen/usbtouchscreen.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c +3 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu.h +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c +8 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws.c +3 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/microsoft/mana/mana_en.c +47 -29
76 lines not on this page · raw message
drivers/platform/x86/intel/vsec.c +47 -44
91 lines not on this page · raw message
drivers/scsi/scsi_transport_fc.c +41 -36
77 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_auth.c +18 -1
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_nego.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_parameters.c +48 -14
62 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_parameters.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/tty/serial/dz.c +88 -83
171 lines not on this page · raw message
drivers/tty/serial/zs.c +83 -143
226 lines not on this page · raw message
drivers/usb/host/xhci-tegra.c +44 -33
77 lines not on this page · raw message
drivers/usb/typec/altmodes/displayport.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/usb/typec/tcpm/tcpci_maxim_core.c +9 -0
Lines of this file are not shown. View the raw message.
drivers/usb/typec/tcpm/tcpm.c +72 -45
117 lines not on this page · raw message
fs/hugetlbfs/inode.c +13 -33
46 lines not on this page · raw message
mm/hugetlb.c +29 -42
71 lines not on this page · raw message
net/bluetooth/l2cap_core.c +33 -8
41 lines not on this page · raw message
net/core/skbuff.c +41 -4
45 lines not on this page · raw message
net/ethtool/cmis_fw_update.c +30 -14
44 lines not on this page · raw message
net/ethtool/module.c +25 -16
41 lines not on this page · raw message
net/handshake/request.c +65 -16
81 lines not on this page · raw message
net/ipv6/datagram.c +46 -8
54 lines not on this page · raw message
net/rxrpc/rxgk.c +31 -65
96 lines not on this page · raw message
net/rxrpc/rxgk_app.c +19 -27
46 lines not on this page · raw message
net/rxrpc/rxgk_common.h +2 -90
92 lines not on this page · raw message
net/sched/act_mirred.c +51 -26
77 lines not on this page · raw message
net/sched/sch_netem.c +3 -44
47 lines not on this page · raw message
net/vmw_vsock/af_vsock.c +32 -17
49 lines not on this page · raw message
net/vmw_vsock/virtio_transport_common.c +18 -8
Lines of this file are not shown. View the raw message.
sound/firewire/motu/motu-register-dsp-message-parser.c +7 -4
Lines of this file are not shown. View the raw message.
sound/hda/codecs/side-codecs/cs35l56_hda.c +9 -8
Lines of this file are not shown. View the raw message.
sound/soc/intel/boards/bytcht_es8316.c +27 -2
Lines of this file are not shown. View the raw message.
sound/soc/qcom/qdsp6/q6asm-dai.c +23 -20
43 lines not on this page · raw message
tools/testing/cxl/test/cxl.c +43 -62
105 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.