Linux 6.1.42
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.42 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.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/accounting/psi.rst | 4 Makefile | 2 arch/arm64/kernel/fpsimd.c | 33 arch/arm64/net/bpf_jit_comp.c | 8 arch/mips/include/asm/dec/prom.h | 2 drivers/acpi/video_detect.c | 8 drivers/base/regmap/regmap-i2c.c | 8 drivers/base/regmap/regmap-spi-avmm.c | 2 drivers/base/regmap/regmap.c | 6 drivers/dma-buf/dma-resv.c | 13 drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 5 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 423 ++++---- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 12 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 12 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 125 ++ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 121 ++ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h | 11 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c | 5 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 141 -- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 3 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 2 drivers/gpu/drm/amd/display/dc/dm_helpers.h | 6 drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h | 4 drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 8 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c | 2 drivers/gpu/drm/display/drm_dp_mst_topology.c | 54 - drivers/gpu/drm/drm_client_modeset.c | 6 drivers/gpu/drm/i915/display/intel_dp.c | 7 drivers/gpu/drm/nouveau/dispnv50/disp.c | 12 drivers/gpu/drm/radeon/radeon_cs.c | 3 drivers/gpu/drm/ttm/ttm_resource.c | 5 drivers/hid/hid-ids.h | 1 drivers/hid/hid-quirks.c | 1 drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c | 10 drivers/net/can/spi/mcp251xfd/mcp251xfd.h | 1 drivers/net/can/usb/gs_usb.c | 31 drivers/net/dsa/microchip/ksz8.h | 2 drivers/net/dsa/microchip/ksz8795.c | 121 +- drivers/net/dsa/microchip/ksz_common.c | 8 drivers/net/dsa/microchip/ksz_common.h | 7 drivers/net/dsa/mv88e6xxx/chip.c | 7 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 31 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 29 drivers/net/ethernet/intel/iavf/iavf.h | 16 drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 39 drivers/net/ethernet/intel/iavf/iavf_main.c | 232 +++- drivers/net/ethernet/intel/iavf/iavf_txrx.c | 43 drivers/net/ethernet/intel/iavf/iavf_txrx.h | 4 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c | 8 drivers/net/ethernet/intel/igb/igb_main.c | 5 drivers/net/ethernet/intel/igc/igc_main.c | 12 drivers/net/ethernet/litex/litex_liteeth.c | 19 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 5 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 29 drivers/net/ethernet/ti/cpsw_ale.c | 24 drivers/net/phy/phy_device.c | 21 drivers/net/wireless/ath/ath11k/core.c | 53 - drivers/net/wireless/ath/ath11k/mac.c | 3 drivers/net/wireless/ath/ath11k/wmi.c | 5 drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 4 drivers/net/wireless/mac80211_hwsim.c | 4 drivers/of/platform.c | 2 drivers/pinctrl/renesas/pinctrl-rzg2l.c | 28 drivers/pinctrl/renesas/pinctrl-rzv2m.c | 28 drivers/spi/spi-bcm63xx.c | 2 drivers/spi/spi-dw-mmio.c | 22 drivers/spi/spi-s3c64xx.c | 2 drivers/video/fbdev/au1200fb.c | 3 drivers/video/fbdev/imxfb.c | 5 fs/btrfs/block-group.c | 1 fs/btrfs/inode.c | 14 fs/btrfs/qgroup.c | 1 fs/btrfs/volumes.c | 20 fs/ext4/xattr.c | 14 fs/fuse/dir.c | 2 fs/fuse/inode.c | 5 fs/fuse/ioctl.c | 21 fs/jbd2/checkpoint.c | 102 -- fs/jfs/jfs_dmap.c | 3 fs/jfs/jfs_txnmgr.c | 5 fs/jfs/namei.c | 5 fs/overlayfs/ovl_entry.h | 9 fs/quota/dquot.c | 5 fs/smb/client/connect.c | 19 fs/udf/unicode.c | 2 include/drm/display/drm_dp_mst_helper.h | 7 include/linux/psi.h | 5 include/linux/psi_types.h | 49 - include/linux/tcp.h | 2 include/net/bluetooth/hci_core.h | 5 include/net/ip.h | 2 include/net/tcp.h | 31 io_uring/io_uring.c | 8 kernel/bpf/bpf_lru_list.c | 21 kernel/bpf/bpf_lru_list.h | 7 kernel/bpf/syscall.c | 3 kernel/bpf/verifier.c | 234 ++++ kernel/cgroup/cgroup.c | 2 kernel/kallsyms.c | 91 + kernel/kallsyms_internal.h | 1 kernel/rcu/tasks.h | 5 kernel/rcu/tree_exp.h | 2 kernel/rcu/tree_plugin.h | 4 kernel/sched/fair.c | 4 kernel/sched/psi.c | 528 ++++++----- kernel/trace/trace_events_hist.c | 3 lib/maple_tree.c | 3 net/bluetooth/hci_conn.c | 10 net/bluetooth/hci_core.c | 42 net/bluetooth/hci_event.c | 15 net/bluetooth/hci_sync.c | 117 ++ net/bluetooth/iso.c | 53 - net/bluetooth/mgmt.c | 26 net/bridge/br_stp_if.c | 3 net/can/bcm.c | 12 net/core/devlink.c | 5 net/ipv4/esp4.c | 2 net/ipv4/inet_connection_sock.c | 2 net/ipv4/inet_hashtables.c | 17 net/ipv4/inet_timewait_sock.c | 8 net/ipv4/ip_output.c | 4 net/ipv4/tcp.c | 57 - net/ipv4/tcp_fastopen.c | 6 net/ipv4/tcp_ipv4.c | 27 net/ipv4/tcp_minisocks.c | 11 net/ipv4/tcp_output.c | 6 net/ipv6/ip6_gre.c | 3 net/ipv6/tcp_ipv6.c | 4 net/llc/llc_input.c | 3 net/netfilter/nf_tables_api.c | 12 net/netfilter/nft_set_pipapo.c | 6 net/sched/cls_bpf.c | 99 -- net/sched/cls_matchall.c | 35 net/sched/cls_u32.c | 48 - net/wireless/wext-core.c | 6 scripts/kallsyms.c | 75 + scripts/link-vmlinux.sh | 4 security/keys/request_key.c | 35 security/keys/trusted-keys/trusted_tpm2.c | 2 sound/pci/emu10k1/emufx.c | 112 -- sound/pci/hda/patch_realtek.c | 54 - sound/soc/amd/acp/amd.h | 7 sound/soc/codecs/cs42l51-i2c.c | 6 sound/soc/codecs/cs42l51.c | 7 sound/soc/codecs/cs42l51.h | 1 sound/soc/codecs/rt5640.c | 12 sound/soc/codecs/wcd-mbhc-v2.c | 57 - sound/soc/codecs/wcd934x.c | 12 sound/soc/codecs/wcd938x.c | 86 + sound/soc/fsl/fsl_sai.c | 8 sound/soc/fsl/fsl_sai.h | 1 sound/soc/qcom/qdsp6/q6apm.c | 7 sound/soc/qcom/qdsp6/topology.c | 4 sound/soc/sof/ipc3-dtrace.c | 9 sound/soc/tegra/tegra210_adx.c | 34 sound/soc/tegra/tegra210_amx.c | 40 tools/perf/Makefile.config | 4 tools/perf/tests/shell/test_uprobe_from_different_cu.sh | 77 + tools/testing/radix-tree/maple.c | 6 tools/testing/selftests/bpf/prog_tests/align.c | 38 tools/testing/selftests/bpf/prog_tests/sk_assign.c | 25 tools/testing/selftests/bpf/progs/connect4_prog.c | 2 tools/testing/selftests/bpf/progs/test_sk_assign.c | 11 tools/testing/selftests/bpf/progs/test_sk_assign_libbpf.c | 3 tools/testing/selftests/tc-testing/config | 2 tools/testing/selftests/tc-testing/settings | 1 167 files changed, 2989 insertions(+), 1559 deletions(-)
Abe Kohandel (2):
spi: dw: Add compatible for Intel Mount Evans SoC
spi: dw: Remove misleading comment for Mount Evans SoC
Aditi Ghag (1):
bpf: tcp: Avoid taking fast sock lock in iterator
Ahmed Zaki (4):
iavf: use internal state to free traffic IRQs
iavf: send VLAN offloading caps once after VFR
iavf: fix a deadlock caused by rtnl and driver's lock circular dependencies
iavf: fix reset task race with iavf_remove()
Alex Deucher (2):
drm/amdgpu/pm: make gfxclock consistent for sienna cichlid drm/amdgpu/pm: make mclk consistent for smu 13.0.7
Alexander Duyck (1):
bpf, arm64: Fix BTI type used for freplace attached functions
Andrii Nakryiko (4):
bpf: allow precision tracking for programs with subprogs
bpf: stop setting precise in current state
bpf: aggressively forget precise markings during state checkpointing selftests/bpf: make test_align selftest more robust
Antoine Tenart (1):
net: ipv4: use consistent txhash in TIME_WAIT and SYN_RECV
Arnd Bergmann (1):
kallsyms: add kallsyms_seqs_of_names to list of special symbols
Bernd Schubert (1):
fuse: Apply flags2 only when userspace set the FUSE_INIT_EXT
Biju Das (1):
pinctrl: renesas: rzg2l: Handle non-unique subnode names
Chengming Zhou (1):
sched/psi: Fix avgs_work re-arm in psi_avgs_work()
Christian Brauner (1):
ovl: check type and offset of struct vfsmount in ovl_entry
Christoffer Sandberg (1):
ALSA: hda/realtek: Add quirk for Clevo NS70AU
Christoph Hellwig (1):
btrfs: be a bit more careful when setting mirror_num_ret in btrfs_map_block
Dan Carpenter (1):
ASoC: SOF: ipc3-dtrace: uninitialized data in dfsentry_trace_filter_write()
Daniel Golle (1):
net: ethernet: mtk_eth_soc: handle probe deferral
Ding Hui (2):
iavf: Fix use-after-free in free_netdev
iavf: Fix out-of-bounds when setting channels on remove
Domenico Cerasuolo (4):
sched/psi: Rearrange polling code in preparation sched/psi: Rename existing poll members in preparation sched/psi: Extract update_triggers side effect sched/psi: Allow unprivileged polling of N*2s period
Douglas Anderson (1):
Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_remove_adv_monitor()
Eric Dumazet (13):
tcp: annotate data-races around tcp_rsk(req)->txhash
tcp: annotate data-races around tcp_rsk(req)->ts_recent
tcp: annotate data-races around tp->tcp_tx_delay
tcp: annotate data-races around tp->tsoffset
tcp: annotate data-races around tp->keepalive_time
tcp: annotate data-races around tp->keepalive_intvl
tcp: annotate data-races around tp->keepalive_probes
tcp: annotate data-races around icsk->icsk_syn_retries
tcp: annotate data-races around tp->linger2
tcp: annotate data-races around rskq_defer_accept
tcp: annotate data-races around tp->notsent_lowat
tcp: annotate data-races around icsk->icsk_user_timeout
tcp: annotate data-races around fastopenq.max_qlenEric Whitney (1):
ext4: correct inline offset when handling xattrs in inode body
Fabio Estevam (1):
ASoC: fsl_sai: Revert "ASoC: fsl_sai: Enable MCTL_MCLK_EN bit for master mode"
Fedor Ross (1):
can: mcp251xfd: __mcp251xfd_chip_set_mode(): increase poll timeout
Filipe Manana (2):
btrfs: fix warning when putting transaction with qgroups enabled after abort
btrfs: zoned: fix memory leak after finding block group with super blocks
Florian Kauer (1):
igc: Prevent garbled TX queue with XDP ZEROCOPY
Florian Westphal (3):
netfilter: nf_tables: fix spurious set element insertion failure
netfilter: nf_tables: can't schedule in nft_chain_validate
netfilter: nft_set_pipapo: fix improper element removal
Geert Uytterhoeven (1):
pinctrl: renesas: rzv2m: Handle non-unique subnode names
Geetha sowjanya (1):
octeontx2-pf: Dont allocate BPIDs for LBK interfaces
Georg Müller (1):
perf probe: Add test for regression introduced by switch to die_get_decl_file()
Greg Kroah-Hartman (1):
Linux 6.1.42
Guchun Chen (1):
drm/amdgpu/vkms: relax timer deactivation by hrtimer_try_to_cancel
Gustavo A. R. Silva (2):
MIPS: dec: prom: Address -Warray-bounds warning
wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point()
Hamza Mahfooz (1):
drm/amd/display: use max_dsc_bpp in amdgpu_dm
Hans de Goede (1):
ACPI: video: Add backlight=native DMI quirk for Dell Studio 1569
Hao Chen (1):
net: hns3: fix strncpy() not using dest-buf length as length issue
Hersen Wu (2):
drm/amd/display: fix linux dp link lost handled only one time Revert "drm/amd/display: edp do not add non-edid timings"
Ilan Peer (1):
wifi: mac80211_hwsim: Fix possible NULL dereference
Ilya Leoshkevich (1):
selftests/bpf: Fix sk_assign on s390x
Immad Mir (2):
FS: JFS: Fix null-ptr-deref Read in txBegin
FS: JFS: Check for read-only mounted filesystem in txBegin
Jaewon Kim (1):
spi: s3c64xx: clear loopback bit after loopback test
James Clark (1):
perf build: Fix library not found error when using CSLIBS
Jan Kara (2):
quota: Properly disable quotas when add_dquot_ref() fails
udf: Fix uninitialized array access for some pathnames
Jens Axboe (1):
io_uring: treat -EAGAIN for REQ_F_NOWAIT as final for io-wq
Jiapeng Chong (1):
security: keys: Modify mismatched function name
Jisheng Zhang (1):
net: ethernet: litex: add support for 64 bit stats
Jocelyn Falempe (2):
drm/client: Fix memory leak in drm_client_target_cloned drm/client: Fix memory leak in drm_client_modeset_probe
Johan Hovold (9):
ASoC: codecs: wcd938x: fix missing clsh ctrl error handling
ASoC: codecs: wcd-mbhc-v2: fix resource leaks on component remove
ASoC: qdsp6: audioreach: fix topology probe deferral
ASoC: codecs: wcd938x: fix resource leaks on component remove
ASoC: codecs: wcd938x: fix missing mbhc init error handling
ASoC: codecs: wcd934x: fix resource leaks on component remove
ASoC: codecs: wcd938x: fix codec initialisation race
ASoC: codecs: wcd938x: fix soundwire initialisation race
ASoC: codecs: wcd938x: fix mbhc impedance loglevel
Johannes Berg (1):
wifi: iwlwifi: mvm: avoid baid size integer overflow
Jonas Gorski (1):
spi: bcm63xx: fix max prepend length
Josef Bacik (2):
btrfs: set_page_extent_mapped after read_folio in btrfs_cont_expand
btrfs: fix race between balance and cancel/pause
Kailang Yang (1):
ALSA: hda/realtek - remove 3k pull low procedure
Kui-Feng Lee (1):
bpf: Print a warning only if writing to unprivileged_bpf_disabled.
Kumar Kartikeya Dwivedi (2):
bpf: Fix subprog idx logic in check_max_stack_depth
bpf: Repeat check_max_stack_depth for async callbacks
Kuniyuki Iwashima (3):
bridge: Add extack warning when enabling STP in netns. Revert "tcp: avoid the lookup process failing to get sk in ehash table"
llc: Don't drop packet from non-root netns.
Kurt Kanzenbach (1):
igc: Avoid transmit queue timeout for XDP
Liam R. Howlett (1):
maple_tree: fix node allocation testing on 32 bit
Linus Walleij (1):
dsa: mv88e6xxx: Do a final check before timing out
Luka Guzenko (1):
ALSA: hda/realtek: Enable Mute LED on HP Laptop 15s-eq2xxx
Marc Kleine-Budde (1):
can: gs_usb: gs_can_open(): improve error handling
Marcin Szycik (2):
iavf: Move netdev_update_features() into watchdog task
iavf: Wait for reset in callbacks which trigger it
Marco Morandini (1):
HID: add quirk for 03f0:464a HP Elite Presenter Mouse
Mark Brown (3):
regmap: Drop initial version of maximum transfer length fixes
regmap: Account for register length in SMBus I/O limits arm64/fpsimd: Ensure SME storage is allocated after SVE VL changes
Martin KaFai Lau (1):
bpf: Address KCSAN report on bpf_lru_list
Martin Kaiser (1):
fbdev: imxfb: warn about invalid left/right margin
Masahiro Yamada (1):
scripts/kallsyms: update the usage in the comment block
Matthieu Baerts (3):
selftests: tc: set timeout to 15 minutes
selftests: tc: add 'ct' action kconfig dep
selftests: tc: add ConnTrack procfs kconfig
Matus Gajdos (1):
ASoC: fsl_sai: Disable bit clock with transmitter
Maxime Bizon (1):
wifi: ath11k: fix registration of 6Ghz-only phy without the full channel range
Miaohe Lin (1):
sched/fair: Use recent_used_cpu to test p->cpus_ptr
Miklos Szeredi (2):
fuse: revalidate: don't invalidate if interrupted
fuse: ioctl: translate ENOSYS in outarg
Mohamed Khalfella (1):
tracing/histograms: Return an error if we fail to add histogram to hist_vars list
Mukesh Sisodiya (1):
wifi: iwlwifi: Add support for new PCI Id
Nicholas Kazlauskas (1):
drm/amd/display: Keep PHY active for DP displays on DCN31
Oleksij Rempel (3):
net: dsa: microchip: ksz8: Separate static MAC table operations for code reuse
net: dsa: microchip: ksz8: Make ksz8_r_sta_mac_table() static
net: dsa: microchip: ksz8_r_sta_mac_table(): Avoid using error code for empty entries
Oswald Buddenhagen (1):
ALSA: emu10k1: roll up loops in DSP setup code for Audigy
P Praneesh (1):
wifi: ath11k: fix memory leak in WMI firmware stats
Pablo Neira Ayuso (2):
netfilter: nf_tables: skip bound chain in netns release path
netfilter: nf_tables: skip bound chain on rule flush
Paul E. McKenney (1):
rcu: Mark additional concurrent load from ->cpu_no_qs.b.exp
Pauli Virtanen (3):
Bluetooth: use RCU for hci_conn_params and iterate safely in hci_sync
Bluetooth: hci_event: call disconnect callback before deleting conn
Bluetooth: ISO: fix iso_conn related locking and validity issues
Peng Zhang (1):
maple_tree: set the node limit when creating a new root node
Petr Oros (1):
devlink: report devlink_port_type_warn source device
Petr Pavlu (1):
keys: Fix linking a duplicate key to a keyring's assoc_array
Przemek Kitszel (1):
iavf: make functions static where possible
Qingqing Zhuo (1):
drm/amd/display: force connector state when bpc changes during compliance
Rob Herring (1):
of: Preserve "of-display" device name for compatibility
Sameer Pujar (1):
ASoC: rt5640: Fix sleep in atomic context
Sheetal (2):
ASoC: tegra: Fix ADX byte map
ASoC: tegra: Fix AMX byte map
Shigeru Yoshida (1):
rcu-tasks: Avoid pr_info() with spin lock in cblist_init_generic()
Shyam Prasad N (1):
cifs: fix mid leak during reconnection after timeout threshold
Simon Ser (1):
drm/amd/display: only accept async flips for fast updates
Srinivas Kandagatla (2):
ASoC: codecs: wcd938x: fix dB range for HPHL and HPHR
ASoC: qcom: q6apm: do not close GPR port before closing graph
Srinivasan Shanmugam (2):
drm/amd/display: fix some coding style issues drm/amd/display: Clean up errors & warnings in amdgpu_dm.c
Suren Baghdasaryan (1):
sched/psi: use kernfs polling functions for PSI trigger polling
Taimur Hassan (1):
drm/amd/display: check TG is non-null before checking if enabled
Tanmay Patil (1):
net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()/cpsw_ale_set_field()
Thomas Petazzoni (1):
ASoC: cs42l51: fix driver to properly autoload with automatic module loading
Tristram Ha (1):
net: dsa: microchip: correct KSZ8795 static MAC table access
Victor Nogueira (4):
net: sched: cls_matchall: Undo tcf_bind_filter in case of failure after mall_set_parms
net: sched: cls_u32: Undo tcf_bind_filter if u32_replace_hw_knode
net: sched: cls_u32: Undo refcount decrement in case update failed
net: sched: cls_bpf: Undo tcf_bind_filter in case of an error
Vijendar Mukunda (1):
ASoC: amd: acp: fix for invalid dai id handling in acp_get_byte_count()
Ville Syrjälä (1):
dma-buf/dma-resv: Stop leaking on krealloc() failure
Vitaly Rodionov (1):
ALSA: hda/realtek: Fix generic fixup definition for cs35l41 amp
Vladimir Oltean (1):
net: phy: prevent stale pointer dereference in phy_init()
Wang Ming (1):
net: ipv4: Use kfree_sensitive instead of kfree
Wayne Lin (2):
drm/dp_mst: Clear MSG_RDY flag before sending new message drm/amd/display: Add polling method to handle MST reply packet
Wen Gong (1):
wifi: ath11k: add support default regdb while searching board-2.bin for WCN6855
Yangtao Li (1):
fbdev: imxfb: Removed unneeded release_mem_region
Ye Bin (1):
quota: fix warning in dqgrab()
Yi Kuo (1):
wifi: iwlwifi: pcie: add device id 51F1 for killer 1675
Yicong Yang (1):
sched/fair: Don't balance task to its current running CPU
Ying Hsu (1):
igb: Fix igb_down hung on surprise removal
Yogesh (1):
fs: jfs: Fix UBSAN: array-index-out-of-bounds in dbAllocDmapLev
Yonghong Song (2):
kallsyms: strip LTO-only suffixes from promoted global functions selftests/bpf: Workaround verification failure for fexit_bpf2bpf/func_replace_return_code
Yuanjun Gong (1):
net:ipv6: check return value of pskb_trim()
YueHaibing (1):
can: bcm: Fix UAF in bcm_proc_show()
Yuma Ueda (1):
scripts/kallsyms.c Make the comment up-to-date with current implementation
Yunxiang Li (1):
drm/ttm: fix bulk_move corruption when adding a entry
Zhang Shurong (1):
fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe
Zhang Yi (1):
jbd2: recheck chechpointing non-dirty buffer
Zhen Lei (2):
kallsyms: Improve the performance of kallsyms_lookup_name()
kallsyms: Correctly sequence symbols when CONFIG_LTO_CLANG=y
Zhikai Zhai (1):
drm/amd/display: Disable MPC split by default on special asic
hackyzh002 (1):
drm/radeon: Fix integer overflow in radeon_cs_parser_init
Greg Kroah-Hartman
maintainerDocumentation/accounting/psi.rst +4 -0
@@ -105,6 +105,10 @@ prevent overly frequent polling. Max limit is chosen as a high enough number after which monitors are most likely not needed and psi averages can be used instead. +Unprivileged users can also create monitors, with the only limitation that the +window size must be a multiple of 2s, in order to prevent excessive resource +usage. + When activated, psi monitor stays active for at least the duration of one tracking window to avoid repeated activations/deactivations when system is bouncing in and out of the stall state.
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 41 +SUBLEVEL = 42 EXTRAVERSION = NAME = Curry Ramen
arch/arm64/kernel/fpsimd.c +25 -8
@@ -803,6 +803,8 @@ void sve_sync_from_fpsimd_zeropad(struct task_struct *task)int vec_set_vector_length (struct task_struct *task,enum vec_type type,unsigned long vl,unsigned long flags) { +bool free_sme = false; +if (flags & ~(unsigned long )(PR_SVE_VL_INHERIT |PR_SVE_SET_VL_ONEXEC ))return -EINVAL ;
@@ -851,21 +853,36 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type, thread_sm_enabled(&task->thread))sve_to_fpsimd (task); -if (system_supports_sme () && type ==ARM64_VEC_SME ) { - task->thread.svcr &= ~(SVCR_SM_MASK | -SVCR_ZA_MASK ); -clear_thread_flag (TIF_SME ); +if (system_supports_sme ()) { +if (type ==ARM64_VEC_SME || + !(task->thread.svcr & (SVCR_SM_MASK |SVCR_ZA_MASK ))) { +/* +* We are changing the SME VL or weren't using +* SME anyway, discard the state and force a +* reallocation. +*/ + task->thread.svcr &= ~(SVCR_SM_MASK | +SVCR_ZA_MASK ); +clear_thread_flag (TIF_SME ); + free_sme = true; + } }if (task == current)put_cpu_fpsimd_context ();/* -* Force reallocation of task SVE and SME state to the correct -* size on next use: +* Free the changed states if they are not in use, SME will be +* reallocated to the correct size on next use and we just +* allocate SVE now in case it is needed for use in streaming +* mode. */ -sve_free (task); -if (system_supports_sme () && type ==ARM64_VEC_SME ) +if (system_supports_sve ()) { +sve_free (task); +sve_alloc (task, true); + } + +if (free_sme)sme_free (task);task_set_vl (task, type, vl);
arch/arm64/net/bpf_jit_comp.c +7 -1
@@ -322,7 +322,13 @@ static int build_prologue(struct jit_ctx *ctx, bool ebpf_from_cbpf)* */ -emit_bti (A64_BTI_C , ctx); +/* bpf function may be invoked by 3 instruction types: +* 1. bl, attached via freplace to bpf prog via short jump +* 2. br, attached via freplace to bpf prog via long jump +* 3. blr, working as a function pointer, used by emit_call. +* So BTI_JC should used here to support both br and blr. +*/ +emit_bti (A64_BTI_JC , ctx);emit (A64_MOV (1 ,A64_R (9 ),A64_LR ), ctx);emit (A64_NOP , ctx);
arch/mips/include/asm/dec/prom.h +1 -1
@@ -70,7 +70,7 @@ static inline bool prom_is_rex(u32 magic)*/ typedef struct {int pagesize; -unsigned char bitmap[0 ]; +unsigned char bitmap[]; }memmap ;
drivers/acpi/video_detect.c +8 -0
@@ -510,6 +510,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "Precision 7510"), }, }, + { + .callback = video_detect_force_native, +/* Dell Studio 1569 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Dell Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "Studio 1569"), + }, + }, { .callback = video_detect_force_native,/* Acer Aspire 3830TG */
drivers/base/regmap/regmap-i2c.c +4 -4
@@ -242,8 +242,8 @@ static int regmap_i2c_smbus_i2c_read(void *context, const void *reg,static const struct regmap_bus regmap_i2c_smbus_i2c_block = { .write = regmap_i2c_smbus_i2c_write, .read = regmap_i2c_smbus_i2c_read, - .max_raw_read =I2C_SMBUS_BLOCK_MAX , - .max_raw_write =I2C_SMBUS_BLOCK_MAX , + .max_raw_read =I2C_SMBUS_BLOCK_MAX -1 , + .max_raw_write =I2C_SMBUS_BLOCK_MAX -1 , }; static int regmap_i2c_smbus_i2c_write_reg16(void *context, const void *data,
@@ -299,8 +299,8 @@ static int regmap_i2c_smbus_i2c_read_reg16(void *context, const void *reg,static const struct regmap_bus regmap_i2c_smbus_i2c_block_reg16 = { .write = regmap_i2c_smbus_i2c_write_reg16, .read = regmap_i2c_smbus_i2c_read_reg16, - .max_raw_read =I2C_SMBUS_BLOCK_MAX , - .max_raw_write =I2C_SMBUS_BLOCK_MAX , + .max_raw_read =I2C_SMBUS_BLOCK_MAX -2 , + .max_raw_write =I2C_SMBUS_BLOCK_MAX -2 , }; static const struct regmap_bus *regmap_get_i2c_bus(struct i2c_client *i2c,
drivers/base/regmap/regmap-spi-avmm.c +1 -1
@@ -660,7 +660,7 @@ static const struct regmap_bus regmap_spi_avmm_bus = { .reg_format_endian_default = REGMAP_ENDIAN_NATIVE, .val_format_endian_default = REGMAP_ENDIAN_NATIVE, .max_raw_read = SPI_AVMM_VAL_SIZE * MAX_READ_CNT, - .max_raw_write = SPI_AVMM_REG_SIZE + SPI_AVMM_VAL_SIZE * MAX_WRITE_CNT, + .max_raw_write = SPI_AVMM_VAL_SIZE * MAX_WRITE_CNT, .free_context = spi_avmm_bridge_ctx_free, };
drivers/base/regmap/regmap.c +2 -4
@@ -2064,8 +2064,6 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg,size_t val_count = val_len / val_bytes;size_t chunk_count, chunk_bytes;size_t chunk_regs = val_count; -size_t max_data = map->max_raw_write - map->format.reg_bytes - - map->format.pad_bytes;int ret, i;if (!val_count)
@@ -2073,8 +2071,8 @@ int _regmap_raw_write(struct regmap *map, unsigned int reg,if (map->use_single_write) chunk_regs =1 ; -else if (map->max_raw_write && val_len > max_data) - chunk_regs = max_data / val_bytes; +else if (map->max_raw_write && val_len > map->max_raw_write) + chunk_regs = map->max_raw_write / val_bytes; chunk_count = val_count / chunk_regs; chunk_bytes = chunk_regs * val_bytes;
drivers/dma-buf/dma-resv.c +9 -4
@@ -566,6 +566,7 @@ int dma_resv_get_fences(struct dma_resv *obj, enum dma_resv_usage usage,dma_resv_for_each_fence_unlocked (&cursor, fence) {if (dma_resv_iter_is_restarted (&cursor)) { +struct dma_fence **new_fences;unsigned int count;while (*num_fences)
@@ -574,13 +575,17 @@ int dma_resv_get_fences(struct dma_resv *obj, enum dma_resv_usage usage, count = cursor.num_fences +1 ;/* Eventually re-allocate the array */ - *fences =krealloc_array (*fences, count, -sizeof (void *), -GFP_KERNEL ); -if (count && !*fences) { + new_fences =krealloc_array (*fences, count, +sizeof (void *), +GFP_KERNEL ); +if (count && !new_fences) { +kfree (*fences); + *fences =NULL ; + *num_fences =0 ;dma_resv_iter_end (&cursor);return -ENOMEM ; } + *fences = new_fences; } (*fences)[(*num_fences)++] =dma_fence_get (fence);
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c +3 -2
@@ -55,8 +55,9 @@ static enum hrtimer_restart amdgpu_vkms_vblank_simulate(struct hrtimer *timer)DRM_WARN ("%s: vblank timer overrun\n" , __func__); ret =drm_crtc_handle_vblank (crtc); +/* Don't queue timer again when vblank is disabled. */ if (!ret) -DRM_ERROR ("amdgpu_vkms failure on handling vblank" ); +return HRTIMER_NORESTART ;return HRTIMER_RESTART ; }
@@ -81,7 +82,7 @@ static void amdgpu_vkms_disable_vblank(struct drm_crtc *crtc) {struct amdgpu_crtc *amdgpu_crtc =to_amdgpu_crtc (crtc); -hrtimer_cancel (&amdgpu_crtc->vblank_timer); +hrtimer_try_to_cancel (&amdgpu_crtc->vblank_timer); } static bool amdgpu_vkms_get_vblank_timestamp(struct drm_crtc *crtc,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +219 -204
984 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +12 -0
@@ -31,6 +31,7 @@#include <drm/drm_connector.h> #include <drm/drm_crtc.h> #include <drm/drm_plane.h> +#include "link_service_types.h" /* * This file contains the definition for amdgpu_display_manager
@@ -192,6 +193,11 @@ struct hpd_rx_irq_offload_work_queue {* we're handling link loss */ bool is_handling_link_loss; +/** +* @is_handling_mst_msg_rdy_event: Used to prevent inserting mst message +* ready event when we're already handling mst message ready event +*/ +bool is_handling_mst_msg_rdy_event;/** * @aconnector: The aconnector that this work queue is attached to */
@@ -613,6 +619,8 @@ struct amdgpu_dm_connector {struct drm_dp_mst_port *port;struct amdgpu_dm_connector *mst_port;struct drm_dp_aux *dsc_aux; +struct mutex handle_mst_msg_ready; +/* TODO see if we can merge with ddc_bus or make a dm_connector */ struct amdgpu_i2c_adapter *i2c;
@@ -650,6 +658,10 @@ struct amdgpu_dm_connector {/* Record progress status of mst*/ uint8_t mst_status; + +/* Automated testing */ +bool timing_changed; +struct dc_crtc_timing *timing_requested; }; static inline void amdgpu_dm_set_mst_status(uint8_t *status,
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +12 -0
@@ -406,6 +406,18 @@ static int dm_crtc_helper_atomic_check(struct drm_crtc *crtc,return -EINVAL ; } +/* +* Only allow async flips for fast updates that don't change the FB +* pitch, the DCC state, rotation, etc. +*/ +if (crtc_state->async_flip && + dm_crtc_state->update_type !=UPDATE_TYPE_FAST ) { +drm_dbg_atomic (crtc->dev, +"[CRTC:%d:%s] async flips are only supported for fast updates\n" , + crtc->base.id, crtc->name); +return -EINVAL ; + } +/* In some use cases, like reset, no stream is attached */ if (!dm_crtc_state->stream)return 0 ;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +125 -0
137 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +119 -2
154 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.h +11 -0
@@ -49,6 +49,13 @@#define PBN_FEC_OVERHEAD_MULTIPLIER_8B_10B 1031#define PBN_FEC_OVERHEAD_MULTIPLIER_128B_132B 1000 +enum mst_msg_ready_type { +NONE_MSG_RDY_EVENT =0 , +DOWN_REP_MSG_RDY_EVENT =1 , +UP_REQ_MSG_RDY_EVENT =2 , +DOWN_OR_UP_MSG_RDY_EVENT =3 +}; +struct amdgpu_display_manager ;struct amdgpu_dm_connector ;
@@ -61,6 +68,10 @@ void amdgpu_dm_initialize_dp_connector(struct amdgpu_display_manager *dm,void dm_dp_create_fake_mst_encoders (struct amdgpu_device *adev); +void dm_handle_mst_sideband_msg_ready_event ( +struct drm_dp_mst_topology_mgr *mgr, +enum mst_msg_ready_type msg_rdy_type); +struct dsc_mst_fairness_vars {int pbn;bool dsc_enabled;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c +5 -0
@@ -86,6 +86,11 @@ static int dcn31_get_active_display_cnt_wa( stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK || stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK) tmds_present = true; + +/* Checking stream / link detection ensuring that PHY is active*/ +if (dc_is_dp_signal (stream->signal) && !stream->dpms_off) + display_count++; + }for (i =0 ; i < dc->link_count; i++) {
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +20 -121
159 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +2 -1
@@ -3293,7 +3293,8 @@ void dcn10_wait_for_mpcc_disconnect(if (pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst]) {struct hubp *hubp =get_hubp_by_inst (res_pool, mpcc_inst); -if (pipe_ctx->stream_res.tg->funcs->is_tg_enabled (pipe_ctx->stream_res.tg)) +if (pipe_ctx->stream_res.tg && + pipe_ctx->stream_res.tg->funcs->is_tg_enabled (pipe_ctx->stream_res.tg)) res_pool->mpc->funcs->wait_for_idle (res_pool->mpc, mpcc_inst); pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst] = false; hubp->funcs->set_blank (hubp, true);
drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c +1 -1
@@ -65,7 +65,7 @@ static const struct dc_debug_options debug_defaults_drv = { .timing_trace = false, .clock_trace = true, .disable_pplib_clock_request = true, - .pipe_split_policy = MPC_SPLIT_DYNAMIC, + .pipe_split_policy = MPC_SPLIT_AVOID, .force_single_disp_pipe_split = false, .disable_dcc = DCC_ENABLE, .vsr_support = true,
drivers/gpu/drm/amd/display/dc/dm_helpers.h +6 -0
@@ -156,6 +156,12 @@ enum dc_edid_status dm_helpers_read_local_edid(struct dc_link *link, struct dc_sink *sink); +bool dm_helpers_dp_handle_test_pattern_request ( +struct dc_context *ctx, +const struct dc_link *link, +union link_test_pattern dpcd_test_pattern, +union test_misc dpcd_test_params); +void dm_set_dcn_clocks (struct dc_context *ctx,struct dc_clocks *clks);
drivers/gpu/drm/amd/display/dc/inc/dc_link_dp.h +4 -0
@@ -82,6 +82,10 @@ bool perform_link_training_with_retries(enum signal_type signal, bool do_fallback); +enum dc_status read_hpd_rx_irq_data ( +struct dc_link *link, +union hpd_irq_data *irq_data); +bool hpd_rx_irq_check_link_loss_status (struct dc_link *link,union hpd_irq_data *hpd_irq_dpcd_data);
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +6 -2
@@ -1927,12 +1927,16 @@ static int sienna_cichlid_read_sensor(struct smu_context *smu, *size =4 ;break ;case AMDGPU_PP_SENSOR_GFX_MCLK : - ret =sienna_cichlid_get_current_clk_freq_by_table (smu,SMU_UCLK , (uint32_t *)data); + ret =sienna_cichlid_get_smu_metrics_data (smu, +METRICS_CURR_UCLK , + (uint32_t *)data); *(uint32_t *)data *=100 ; *size =4 ;break ;case AMDGPU_PP_SENSOR_GFX_SCLK : - ret =sienna_cichlid_get_current_clk_freq_by_table (smu,SMU_GFXCLK , (uint32_t *)data); + ret =sienna_cichlid_get_smu_metrics_data (smu, +METRICS_AVERAGE_GFXCLK , + (uint32_t *)data); *(uint32_t *)data *=100 ; *size =4 ;break ;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c +1 -1
@@ -940,7 +940,7 @@ static int smu_v13_0_7_read_sensor(struct smu_context *smu,break ;case AMDGPU_PP_SENSOR_GFX_MCLK : ret =smu_v13_0_7_get_smu_metrics_data (smu, -METRICS_AVERAGE_UCLK , +METRICS_CURR_UCLK , (uint32_t *)data); *(uint32_t *)data *=100 ; *size =4 ;
drivers/gpu/drm/display/drm_dp_mst_topology.c +47 -7
82 lines not on this page · raw message
drivers/gpu/drm/drm_client_modeset.c +6 -0
@@ -315,6 +315,9 @@ static bool drm_client_target_cloned(struct drm_device *dev, can_clone = true; dmt_mode =drm_mode_find_dmt (dev,1024 ,768 ,60 , false); +if (!dmt_mode) + goto fail; +for (i =0 ; i < connector_count; i++) {if (!enabled[i])continue ;
@@ -330,11 +333,13 @@ static bool drm_client_target_cloned(struct drm_device *dev,if (!modes[i]) can_clone = false; } +kfree (dmt_mode);if (can_clone) {DRM_DEBUG_KMS ("can clone using 1024x768\n" );return true; } +fail:DRM_INFO ("kms: can't enable cloning when we probably wanted to.\n" );return false; }
@@ -866,6 +871,7 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width,break ; } +kfree (modeset->mode); modeset->mode =drm_mode_duplicate (dev, mode);drm_connector_get (connector); modeset->connectors[modeset->num_connectors++] = connector;
drivers/gpu/drm/i915/display/intel_dp.c +4 -3
@@ -3804,9 +3804,7 @@ intel_dp_mst_hpd_irq(struct intel_dp *intel_dp, u8 *esi, u8 *ack) {bool handled = false; -drm_dp_mst_hpd_irq (&intel_dp->mst_mgr, esi, &handled); -if (handled) - ack[1 ] |= esi[1 ] & (DP_DOWN_REP_MSG_RDY |DP_UP_REQ_MSG_RDY ); +drm_dp_mst_hpd_irq_handle_event (&intel_dp->mst_mgr, esi, ack, &handled);if (esi[1 ] &DP_CP_IRQ ) {intel_hdcp_handle_cp_irq (intel_dp->attached_connector);
@@ -3881,6 +3879,9 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)if (!intel_dp_ack_sink_irq_esi (intel_dp, ack))drm_dbg_kms (&i915->drm,"Failed to ack ESI\n" ); + +if (ack[1 ] & (DP_DOWN_REP_MSG_RDY |DP_UP_REQ_MSG_RDY )) +drm_dp_mst_hpd_irq_send_new_request (&intel_dp->mst_mgr); }return link_ok;
drivers/gpu/drm/nouveau/dispnv50/disp.c +8 -4
@@ -1473,22 +1473,26 @@ nv50_mstm_service(struct nouveau_drm *drm,u8 esi[8 ] = {};while (handled) { +u8 ack[8 ] = {}; + rc =drm_dp_dpcd_read (aux,DP_SINK_COUNT_ESI , esi,8 );if (rc !=8 ) { ret = false;break ; } -drm_dp_mst_hpd_irq (&mstm->mgr, esi, &handled); +drm_dp_mst_hpd_irq_handle_event (&mstm->mgr, esi, ack, &handled);if (!handled)break ; - rc =drm_dp_dpcd_write (aux,DP_SINK_COUNT_ESI +1 , &esi[1 ], -3 ); -if (rc !=3 ) { + rc =drm_dp_dpcd_writeb (aux,DP_SINK_COUNT_ESI +1 , ack[1 ]); + +if (rc !=1 ) { ret = false;break ; } + +drm_dp_mst_hpd_irq_send_new_request (&mstm->mgr); }if (!ret)
drivers/gpu/drm/radeon/radeon_cs.c +2 -1
@@ -270,7 +270,8 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data) {struct drm_radeon_cs *cs = data;uint64_t *chunk_array_ptr; -unsigned size, i; +u64 size; +unsigned i;u32 ring =RADEON_CS_RING_GFX ;s32 priority =0 ;
drivers/gpu/drm/ttm/ttm_resource.c +4 -1
@@ -85,6 +85,8 @@ static void ttm_lru_bulk_move_pos_tail(struct ttm_lru_bulk_move_pos *pos, struct ttm_resource *res) {if (pos->last != res) { +if (pos->first == res) + pos->first =list_next_entry (res, lru);list_move (&res->lru, &pos->last->lru); pos->last = res; }
@@ -110,7 +112,8 @@ static void ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk, {struct ttm_lru_bulk_move_pos *pos =ttm_lru_bulk_move_pos (bulk, res); -if (unlikely (pos->first == res && pos->last == res)) { +if (unlikely (WARN_ON (!pos->first || !pos->last) || + (pos->first == res && pos->last == res))) { pos->first =NULL ; pos->last =NULL ; }else if (pos->first == res) {
drivers/hid/hid-ids.h +1 -0
@@ -614,6 +614,7 @@#define USB_DEVICE_ID_UGCI_FIGHTING 0x0030#define USB_VENDOR_ID_HP 0x03f0 +#define USB_PRODUCT_ID_HP_ELITE_PRESENTER_MOUSE_464A 0x464a#define USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0A4A 0x0a4a#define USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0B4A 0x0b4a#define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE 0x134a
drivers/hid/hid-quirks.c +1 -0
@@ -96,6 +96,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A096), HID_QUIRK_NO_INIT_REPORTS }, { HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD_A293), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0A4A), HID_QUIRK_ALWAYS_POLL }, + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_ELITE_PRESENTER_MOUSE_464A), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_LOGITECH_OEM_USB_OPTICAL_MOUSE_0B4A), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_094A), HID_QUIRK_ALWAYS_POLL },
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c +8 -2
@@ -227,6 +227,8 @@ static int __mcp251xfd_chip_set_mode(const struct mcp251xfd_priv *priv, const u8 mode_req, bool nowait) { + const struct can_bittiming *bt = &priv->can.bittiming; +unsigned long timeout_us =MCP251XFD_POLL_TIMEOUT_US ;u32 con =0 , con_reqop, osc =0 ;u8 mode;int err;
@@ -246,12 +248,16 @@ __mcp251xfd_chip_set_mode(const struct mcp251xfd_priv *priv,if (mode_req ==MCP251XFD_REG_CON_MODE_SLEEP || nowait)return 0 ; +if (bt->bitrate) + timeout_us = max_t(unsigned long, timeout_us, +MCP251XFD_FRAME_LEN_MAX_BITS *USEC_PER_SEC / + bt->bitrate); + err =regmap_read_poll_timeout (priv->map_reg,MCP251XFD_REG_CON , con, !mcp251xfd_reg_invalid (con) &&FIELD_GET (MCP251XFD_REG_CON_OPMOD_MASK , con) == mode_req, -MCP251XFD_POLL_SLEEP_US , -MCP251XFD_POLL_TIMEOUT_US ); +MCP251XFD_POLL_SLEEP_US , timeout_us);if (err != -ETIMEDOUT && err != -EBADMSG )return err;
drivers/net/can/spi/mcp251xfd/mcp251xfd.h +1 -0
@@ -387,6 +387,7 @@ static_assert(MCP251XFD_TIMESTAMP_WORK_DELAY_SEC <#define MCP251XFD_OSC_STAB_TIMEOUT_US (10 * MCP251XFD_OSC_STAB_SLEEP_US)#define MCP251XFD_POLL_SLEEP_US (10)#define MCP251XFD_POLL_TIMEOUT_US (USEC_PER_MSEC) +#define MCP251XFD_FRAME_LEN_MAX_BITS (736)/* Misc */ #define MCP251XFD_NAPI_WEIGHT 32
drivers/net/can/usb/gs_usb.c +22 -9
@@ -833,6 +833,7 @@ static int gs_can_open(struct net_device *netdev) .mode = cpu_to_le32(GS_CAN_MODE_START), };struct gs_host_frame *hf; +struct urb *urb =NULL ;u32 ctrlmode;u32 flags =0 ;int rc, i;
@@ -858,13 +859,14 @@ static int gs_can_open(struct net_device *netdev)if (!parent->active_channels) {for (i =0 ; i <GS_MAX_RX_URBS ; i++) { -struct urb *urb;u8 *buf;/* alloc rx urb */ urb =usb_alloc_urb (0 ,GFP_KERNEL ); -if (!urb) -return -ENOMEM ; +if (!urb) { + rc = -ENOMEM ; + goto out_usb_kill_anchored_urbs; + }/* alloc rx buffer */ buf = kmalloc(dev->parent->hf_size_rx,
@@ -872,8 +874,8 @@ static int gs_can_open(struct net_device *netdev)if (!buf) {netdev_err (netdev,"No memory left for USB buffer\n" ); -usb_free_urb (urb); -return -ENOMEM ; + rc = -ENOMEM ; + goto out_usb_free_urb; }/* fill, anchor, and submit rx urb */
@@ -896,9 +898,7 @@ static int gs_can_open(struct net_device *netdev)netdev_err (netdev,"usb_submit failed (err=%d)\n" , rc); -usb_unanchor_urb (urb); -usb_free_urb (urb); -break ; + goto out_usb_unanchor_urb; }/* Drop reference,
@@ -944,7 +944,8 @@ static int gs_can_open(struct net_device *netdev)if (dev->feature &GS_CAN_FEATURE_HW_TIMESTAMP )gs_usb_timestamp_stop (dev); dev->can.state =CAN_STATE_STOPPED ; -return rc; + + goto out_usb_kill_anchored_urbs; } parent->active_channels++;
@@ -952,6 +953,18 @@ static int gs_can_open(struct net_device *netdev)netif_start_queue (netdev);return 0 ; + +out_usb_unanchor_urb: +usb_unanchor_urb (urb); +out_usb_free_urb: +usb_free_urb (urb); +out_usb_kill_anchored_urbs: +if (!parent->active_channels) +usb_kill_anchored_urbs (&dev->tx_submitted); + +close_candev (netdev); + +return rc; }static int gs_can_close (struct net_device *netdev)
drivers/net/dsa/microchip/ksz8.h +0 -2
@@ -21,8 +21,6 @@ int ksz8_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val);int ksz8_w_phy (struct ksz_device *dev,u16 phy,u16 reg,u16 val);int ksz8_r_dyn_mac_table (struct ksz_device *dev,u16 addr,u8 *mac_addr,u8 *fid,u8 *src_port,u8 *timestamp,u16 *entries); -int ksz8_r_sta_mac_table (struct ksz_device *dev,u16 addr, -struct alu_struct *alu);void ksz8_w_sta_mac_table (struct ksz_device *dev,u16 addr,struct alu_struct *alu);void ksz8_r_mib_cnt (struct ksz_device *dev,int port,u16 addr,u64 *cnt);
drivers/net/dsa/microchip/ksz8795.c +76 -45
176 lines not on this page · raw message
drivers/net/dsa/microchip/ksz_common.c +4 -4
@@ -286,13 +286,13 @@ static const u32 ksz8795_masks[] = { [STATIC_MAC_TABLE_VALID] = BIT(21), [STATIC_MAC_TABLE_USE_FID] = BIT(23), [STATIC_MAC_TABLE_FID] = GENMASK(30, 24), - [STATIC_MAC_TABLE_OVERRIDE] = BIT(26), - [STATIC_MAC_TABLE_FWD_PORTS] = GENMASK(24, 20), + [STATIC_MAC_TABLE_OVERRIDE] = BIT(22), + [STATIC_MAC_TABLE_FWD_PORTS] = GENMASK(20, 16), [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(6, 0), - [DYNAMIC_MAC_TABLE_MAC_EMPTY] = BIT(8), + [DYNAMIC_MAC_TABLE_MAC_EMPTY] = BIT(7), [DYNAMIC_MAC_TABLE_NOT_READY] = BIT(7), [DYNAMIC_MAC_TABLE_ENTRIES] = GENMASK(31, 29), - [DYNAMIC_MAC_TABLE_FID] = GENMASK(26, 20), + [DYNAMIC_MAC_TABLE_FID] = GENMASK(22, 16), [DYNAMIC_MAC_TABLE_SRC_PORT] = GENMASK(26, 24), [DYNAMIC_MAC_TABLE_TIMESTAMP] = GENMASK(28, 27), [P_MII_TX_FLOW_CTRL] = BIT(5),
drivers/net/dsa/microchip/ksz_common.h +7 -0
@@ -512,6 +512,13 @@ static inline void ksz_regmap_unlock(void *__mtx)mutex_unlock (mtx); } +static inline bool ksz_is_ksz87xx (struct ksz_device *dev) +{ +return dev->chip_id ==KSZ8795_CHIP_ID || + dev->chip_id ==KSZ8794_CHIP_ID || + dev->chip_id ==KSZ8765_CHIP_ID ; +} +static inline bool ksz_is_ksz88x3 (struct ksz_device *dev) {return dev->chip_id ==KSZ8830_CHIP_ID ;
drivers/net/dsa/mv88e6xxx/chip.c +7 -0
@@ -109,6 +109,13 @@ int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg,usleep_range (1000 ,2000 ); } + err =mv88e6xxx_read (chip, addr, reg, &data); +if (err) +return err; + +if ((data & mask) == val) +return 0 ; +dev_err (chip->dev,"Timeout while waiting for switch\n" );return -ETIMEDOUT ; }
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +24 -7
@@ -435,19 +435,36 @@ static void hns3_dbg_fill_content(char *content, u16 len,const struct hns3_dbg_item *items, const char **result, u16 size) { +#define HNS3_DBG_LINE_END_LEN 2 char *pos = content; +u16 item_len;u16 i; +if (!len) { +return ; + }else if (len <=HNS3_DBG_LINE_END_LEN ) { + *pos++ ='\0' ; +return ; + } +memset (content,' ' , len); -for (i =0 ; i < size; i++) { -if (result) -strncpy (pos, result[i],strlen (result[i])); -else -strncpy (pos, items[i].name,strlen (items[i].name)); + len -=HNS3_DBG_LINE_END_LEN ; - pos +=strlen (items[i].name) + items[i].interval; +for (i =0 ; i < size; i++) { + item_len =strlen (items[i].name) + items[i].interval; +if (len < item_len) +break ; + +if (result) { +if (item_len <strlen (result[i])) +break ; +strscpy (pos, result[i],strlen (result[i])); + }else { +strscpy (pos, items[i].name,strlen (items[i].name)); + } + pos += item_len; + len -= item_len; } - *pos++ ='\n' ; *pos++ ='\0' ; }
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +24 -5
@@ -87,16 +87,35 @@ static void hclge_dbg_fill_content(char *content, u16 len,const struct hclge_dbg_item *items, const char **result, u16 size) { +#define HCLGE_DBG_LINE_END_LEN 2 char *pos = content; +u16 item_len;u16 i; +if (!len) { +return ; + }else if (len <=HCLGE_DBG_LINE_END_LEN ) { + *pos++ ='\0' ; +return ; + } +memset (content,' ' , len); + len -=HCLGE_DBG_LINE_END_LEN ; +for (i =0 ; i < size; i++) { -if (result) -strncpy (pos, result[i],strlen (result[i])); -else -strncpy (pos, items[i].name,strlen (items[i].name)); - pos +=strlen (items[i].name) + items[i].interval; + item_len =strlen (items[i].name) + items[i].interval; +if (len < item_len) +break ; + +if (result) { +if (item_len <strlen (result[i])) +break ; +strscpy (pos, result[i],strlen (result[i])); + }else { +strscpy (pos, items[i].name,strlen (items[i].name)); + } + pos += item_len; + len -= item_len; } *pos++ ='\n' ; *pos++ ='\0' ;
drivers/net/ethernet/intel/iavf/iavf.h +5 -11
@@ -255,8 +255,10 @@ struct iavf_adapter {struct workqueue_struct *wq;struct work_struct reset_task;struct work_struct adminq_task; +struct work_struct finish_config;struct delayed_work client_task;wait_queue_head_t down_waitqueue; +wait_queue_head_t reset_waitqueue;wait_queue_head_t vc_waitqueue;struct iavf_q_vector *q_vectors;struct list_head vlan_filter_list;
@@ -518,14 +520,12 @@ int iavf_up(struct iavf_adapter *adapter);void iavf_down (struct iavf_adapter *adapter);int iavf_process_config (struct iavf_adapter *adapter);int iavf_parse_vf_resource_msg (struct iavf_adapter *adapter); -void iavf_schedule_reset (struct iavf_adapter *adapter); +void iavf_schedule_reset (struct iavf_adapter *adapter,u64 flags);void iavf_schedule_request_stats (struct iavf_adapter *adapter); +void iavf_schedule_finish_config (struct iavf_adapter *adapter);void iavf_reset (struct iavf_adapter *adapter);void iavf_set_ethtool_ops (struct net_device *netdev);void iavf_update_stats (struct iavf_adapter *adapter); -void iavf_reset_interrupt_capability (struct iavf_adapter *adapter); -int iavf_init_interrupt_scheme (struct iavf_adapter *adapter); -void iavf_irq_enable_queues (struct iavf_adapter *adapter);void iavf_free_all_tx_resources (struct iavf_adapter *adapter);void iavf_free_all_rx_resources (struct iavf_adapter *adapter);
@@ -579,17 +579,11 @@ void iavf_enable_vlan_stripping_v2(struct iavf_adapter *adapter, u16 tpid);void iavf_disable_vlan_stripping_v2 (struct iavf_adapter *adapter,u16 tpid);void iavf_enable_vlan_insertion_v2 (struct iavf_adapter *adapter,u16 tpid);void iavf_disable_vlan_insertion_v2 (struct iavf_adapter *adapter,u16 tpid); -int iavf_replace_primary_mac (struct iavf_adapter *adapter, -const u8 *new_mac); -void -iavf_set_vlan_offload_features (struct iavf_adapter *adapter, -netdev_features_t prev_features, -netdev_features_t features);void iavf_add_fdir_filter (struct iavf_adapter *adapter);void iavf_del_fdir_filter (struct iavf_adapter *adapter);void iavf_add_adv_rss_cfg (struct iavf_adapter *adapter);void iavf_del_adv_rss_cfg (struct iavf_adapter *adapter);struct iavf_mac_filter *iavf_add_filter (struct iavf_adapter *adapter,const u8 *macaddr); -int iavf_lock_timeout (struct mutex *lock,unsigned int msecs); +int iavf_wait_for_reset (struct iavf_adapter *adapter);#endif /* _IAVF_H_ */
drivers/net/ethernet/intel/iavf/iavf_ethtool.c +18 -21
@@ -484,6 +484,7 @@ static int iavf_set_priv_flags(struct net_device *netdev, u32 flags) {struct iavf_adapter *adapter =netdev_priv (netdev);u32 orig_flags, new_flags, changed_flags; +int ret =0 ;u32 i; orig_flags =READ_ONCE (adapter->flags);
@@ -531,12 +532,14 @@ static int iavf_set_priv_flags(struct net_device *netdev, u32 flags)/* issue a reset to force legacy-rx change to take effect */ if (changed_flags &IAVF_FLAG_LEGACY_RX ) {if (netif_running (netdev)) { - adapter->flags |=IAVF_FLAG_RESET_NEEDED ; -queue_work (adapter->wq, &adapter->reset_task); +iavf_schedule_reset (adapter,IAVF_FLAG_RESET_NEEDED ); + ret =iavf_wait_for_reset (adapter); +if (ret) +netdev_warn (netdev,"Changing private flags timeout or interrupted waiting for reset" ); } } -return 0 ; +return ret; }/**
@@ -627,6 +630,7 @@ static int iavf_set_ringparam(struct net_device *netdev, {struct iavf_adapter *adapter =netdev_priv (netdev);u32 new_rx_count, new_tx_count; +int ret =0 ;if ((ring->rx_mini_pending) || (ring->rx_jumbo_pending))return -EINVAL ;
@@ -671,11 +675,13 @@ static int iavf_set_ringparam(struct net_device *netdev, }if (netif_running (netdev)) { - adapter->flags |=IAVF_FLAG_RESET_NEEDED ; -queue_work (adapter->wq, &adapter->reset_task); +iavf_schedule_reset (adapter,IAVF_FLAG_RESET_NEEDED ); + ret =iavf_wait_for_reset (adapter); +if (ret) +netdev_warn (netdev,"Changing ring parameters timeout or interrupted waiting for reset" ); } -return 0 ; +return ret; }/**
@@ -1830,7 +1836,7 @@ static int iavf_set_channels(struct net_device *netdev, {struct iavf_adapter *adapter =netdev_priv (netdev);u32 num_req = ch->combined_count; -int i; +int ret =0 ;if ((adapter->vf_res->vf_cap_flags &VIRTCHNL_VF_OFFLOAD_ADQ ) && adapter->num_tc) {
@@ -1852,22 +1858,13 @@ static int iavf_set_channels(struct net_device *netdev, adapter->num_req_queues = num_req; adapter->flags |=IAVF_FLAG_REINIT_ITR_NEEDED ; -iavf_schedule_reset (adapter); +iavf_schedule_reset (adapter,IAVF_FLAG_RESET_NEEDED ); -/* wait for the reset is done */ -for (i =0 ; i <IAVF_RESET_WAIT_COMPLETE_COUNT ; i++) { -msleep (IAVF_RESET_WAIT_MS ); -if (adapter->flags &IAVF_FLAG_RESET_PENDING ) -continue ; -break ; - } -if (i ==IAVF_RESET_WAIT_COMPLETE_COUNT ) { - adapter->flags &= ~IAVF_FLAG_REINIT_ITR_NEEDED ; - adapter->num_active_queues = num_req; -return -EOPNOTSUPP ; - } + ret =iavf_wait_for_reset (adapter); +if (ret) +netdev_warn (netdev,"Changing channel count timeout or interrupted waiting for reset" ); -return 0 ; +return ret; }/**
drivers/net/ethernet/intel/iavf/iavf_main.c +155 -77
435 lines not on this page · raw message
drivers/net/ethernet/intel/iavf/iavf_txrx.c +21 -22
40 lines not on this page · raw message
drivers/net/ethernet/intel/iavf/iavf_txrx.h +0 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igb/igb_main.c +5 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igc/igc_main.c +10 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/litex/litex_liteeth.c +15 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mediatek/mtk_eth_soc.c +11 -18
Lines of this file are not shown. View the raw message.
drivers/net/wireless/ath/ath11k/core.c +40 -13
53 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/mvm/sta.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/drv.c +4 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/renesas/pinctrl-rzg2l.c +20 -8
Lines of this file are not shown. View the raw message.
drivers/pinctrl/renesas/pinctrl-rzv2m.c +20 -8
Lines of this file are not shown. View the raw message.
fs/jbd2/checkpoint.c +29 -73
102 lines not on this page · raw message
include/drm/display/drm_dp_mst_helper.h +5 -2
Lines of this file are not shown. View the raw message.
include/linux/psi_types.h +31 -18
49 lines not on this page · raw message
kernel/bpf/verifier.c +214 -20
234 lines not on this page · raw message
kernel/kallsyms.c +77 -14
91 lines not on this page · raw message
kernel/sched/psi.c +304 -224
528 lines not on this page · raw message
net/bluetooth/hci_core.c +34 -8
42 lines not on this page · raw message
net/bluetooth/hci_sync.c +106 -11
117 lines not on this page · raw message
net/bluetooth/iso.c +31 -22
53 lines not on this page · raw message
net/ipv4/tcp.c +30 -27
57 lines not on this page · raw message
net/sched/cls_bpf.c +47 -52
99 lines not on this page · raw message
net/sched/cls_u32.c +37 -11
48 lines not on this page · raw message
scripts/kallsyms.c +73 -2
75 lines not on this page · raw message
security/keys/trusted-keys/trusted_tpm2.c +1 -1
Lines of this file are not shown. View the raw message.
sound/pci/emu10k1/emufx.c +9 -103
112 lines not on this page · raw message
sound/pci/hda/patch_realtek.c +42 -12
54 lines not on this page · raw message
sound/soc/codecs/wcd-mbhc-v2.c +41 -16
57 lines not on this page · raw message
sound/soc/codecs/wcd938x.c +74 -12
86 lines not on this page · raw message
tools/perf/tests/shell/test_uprobe_from_different_cu.sh new file +77 -0
77 lines not on this page · raw message
tools/testing/selftests/bpf/prog_tests/align.c +24 -14
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/prog_tests/sk_assign.c +19 -6
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/connect4_prog.c +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/test_sk_assign.c +11 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/bpf/progs/test_sk_assign_libbpf.c new file +3 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/tc-testing/config +2 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/tc-testing/settings new file +1 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.