Linux 6.4.7
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.4.7 kernel.
All users of the 6.4 kernel series must upgrade.
The updated 6.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.4.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
------------
Makefile | 2 arch/arm64/include/asm/exception.h | 5 arch/arm64/include/asm/kvm_host.h | 2 arch/arm64/include/asm/kvm_pgtable.h | 26 - arch/arm64/kernel/fpsimd.c | 33 + arch/arm64/kvm/arch_timer.c | 6 arch/arm64/kvm/arm.c | 19 arch/arm64/kvm/hyp/pgtable.c | 47 + arch/arm64/kvm/mmu.c | 18 arch/arm64/kvm/vgic/vgic-v3.c | 2 arch/arm64/kvm/vgic/vgic-v4.c | 7 arch/arm64/mm/mmu.c | 4 arch/arm64/net/bpf_jit_comp.c | 8 arch/arm64/tools/sysreg | 12 arch/ia64/kernel/sys_ia64.c | 2 arch/mips/include/asm/dec/prom.h | 2 arch/parisc/kernel/sys_parisc.c | 15 block/blk-mq.c | 10 drivers/accel/qaic/qaic_control.c | 39 + drivers/acpi/button.c | 9 drivers/acpi/resource.c | 60 -- drivers/acpi/video_detect.c | 24 + drivers/acpi/x86/utils.c | 26 - drivers/base/regmap/regmap-i2c.c | 8 drivers/base/regmap/regmap-spi-avmm.c | 2 drivers/base/regmap/regmap.c | 6 drivers/bluetooth/btusb.c | 1 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 | 264 ++++------- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 7 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 12 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 110 ++++ 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/dcn10/dcn10_hw_sequencer.c | 3 drivers/gpu/drm/amd/display/dc/dcn303/dcn303_resource.c | 2 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/drm_client_modeset.c | 6 drivers/gpu/drm/i915/i915_perf.c | 1 drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h | 4 drivers/gpu/drm/nouveau/nvkm/engine/disp/uconn.c | 27 - drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c | 11 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/iommu/iommu-sva.c | 3 drivers/md/md.c | 14 drivers/md/raid10.c | 2 drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c | 10 drivers/net/can/spi/mcp251xfd/mcp251xfd.h | 1 drivers/net/can/usb/gs_usb.c | 130 +++-- drivers/net/dsa/microchip/ksz8795.c | 8 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 | 223 ++++++--- 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 | 5 drivers/net/ethernet/intel/ice/ice_base.c | 2 drivers/net/ethernet/intel/ice/ice_ethtool.c | 13 drivers/net/ethernet/intel/ice/ice_lib.c | 27 - drivers/net/ethernet/intel/ice/ice_main.c | 10 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/mediatek/mtk_ppe_debugfs.c | 2 drivers/net/ethernet/realtek/r8169_main.c | 18 drivers/net/ethernet/ti/cpsw_ale.c | 24 - drivers/net/phy/phy_device.c | 21 drivers/net/vrf.c | 12 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/ath/ath12k/mac.c | 1 drivers/net/wireless/intel/iwlwifi/mvm/mld-key.c | 9 drivers/net/wireless/intel/iwlwifi/mvm/power.c | 14 drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 4 drivers/net/wireless/realtek/rtw88/sdio.c | 24 - drivers/net/wireless/virtual/mac80211_hwsim.c | 4 drivers/of/platform.c | 2 drivers/pinctrl/renesas/pinctrl-rzg2l.c | 28 - drivers/pinctrl/renesas/pinctrl-rzv2m.c | 28 - drivers/regulator/da9063-regulator.c | 3 drivers/s390/crypto/zcrypt_msgtype6.c | 35 + drivers/scsi/sg.c | 10 drivers/spi/spi-bcm63xx.c | 2 drivers/spi/spi-cadence-quadspi.c | 19 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/ctree.c | 10 fs/btrfs/disk-io.c | 3 fs/btrfs/extent_io.c | 33 - fs/btrfs/inode.c | 35 - fs/btrfs/qgroup.c | 1 fs/btrfs/raid56.c | 11 fs/btrfs/volumes.c | 17 fs/erofs/zdata.c | 2 fs/ext4/xattr.c | 14 fs/fuse/dir.c | 2 fs/fuse/inode.c | 8 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/smb/client/dfs.c | 26 - fs/smb/client/smb2transport.c | 2 fs/udf/unicode.c | 2 include/kvm/arm_vgic.h | 2 include/linux/psi.h | 5 include/linux/psi_types.h | 3 include/linux/sched/signal.h | 2 include/linux/tcp.h | 2 include/net/bluetooth/hci_core.h | 5 include/net/ip.h | 2 include/net/tcp.h | 31 + include/uapi/linux/fuse.h | 3 io_uring/io_uring.c | 50 +- kernel/bpf/bpf_lru_list.c | 21 kernel/bpf/bpf_lru_list.h | 7 kernel/bpf/btf.c | 19 kernel/bpf/log.c | 3 kernel/bpf/syscall.c | 3 kernel/bpf/verifier.c | 32 + kernel/cgroup/cgroup.c | 2 kernel/kallsyms.c | 5 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 | 29 - kernel/sys.c | 10 kernel/time/posix-timers.c | 31 - kernel/trace/trace_events_hist.c | 3 lib/iov_iter.c | 2 lib/maple_tree.c | 3 mm/mlock.c | 9 net/bluetooth/hci_conn.c | 14 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/bluetooth/sco.c | 23 net/bridge/br_stp_if.c | 3 net/can/bcm.c | 12 net/devlink/health.c | 2 net/devlink/leftover.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/ipv4/udp_offload.c | 16 net/ipv6/ip6_gre.c | 3 net/ipv6/tcp_ipv6.c | 4 net/ipv6/udp_offload.c | 3 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/Makefile.build | 5 scripts/Makefile.host | 6 scripts/kallsyms.c | 6 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 | 100 +++- sound/soc/amd/acp/amd.h | 7 sound/soc/codecs/Kconfig | 1 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/include/nolibc/stackprotector.h | 5 tools/perf/Makefile.config | 4 tools/perf/tests/shell/test_uprobe_from_different_cu.sh | 77 +++ tools/perf/util/dwarf-aux.c | 4 tools/testing/radix-tree/maple.c | 6 tools/testing/selftests/mm/mkdirty.c | 2 tools/testing/selftests/tc-testing/config | 2 tools/testing/selftests/tc-testing/settings | 1 218 files changed, 2456 insertions(+), 1482 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 (3):
iavf: use internal state to free traffic IRQs
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 (1):
bpf: drop unnecessary user-triggerable WARN_ONCE in verifierl log
Andrzej Hajda (1):
drm/i915/perf: add sentinel to xehp_oa_b_counters
Antoine Tenart (1):
net: ipv4: use consistent txhash in TIME_WAIT and SYN_RECV
Balamurugan S (1):
wifi: ath12k: Avoid NULL pointer access during management transmit cleanup
Ben Skeggs (3):
drm/nouveau/disp: PIOR DP uses GPIO for HPD, not PMGR AUX interrupts drm/nouveau/kms/nv50-: init hpd_irq_lock for PIOR DP drm/nouveau/i2c: fix number of aux event slots
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
Brad Larson (1):
spi: cadence-quadspi: Add compatible for AMD Pensando Elba SoC
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 (2):
btrfs: don't check PageError in __extent_writepage
btrfs: be a bit more careful when setting mirror_num_ret in btrfs_map_block
Colin Ian King (1):
selftests/mm: mkdirty: fix incorrect position of #endif
Dan Carpenter (6):
accel/qaic: Fix a leak in map_user_pages()
accel/qaic: tighten bounds checking in encode_message() accel/qaic: tighten bounds checking in decode_message() accel/qaic: Add consistent integer overflow checks
iommu/sva: Fix signedness bug in iommu_sva_alloc_pasid()
ASoC: SOF: ipc3-dtrace: uninitialized data in dfsentry_trace_filter_write()
Daniel Golle (2):
net: ethernet: mtk_eth_soc: handle probe deferral
net: ethernet: mtk_eth_soc: always mtk_get_ib1_pkt_type
David Sterba (1):
btrfs: add xxhash to fast checksum implementations
Ding Hui (2):
iavf: Fix use-after-free in free_netdev
iavf: Fix out-of-bounds when setting channels on remove
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 (5):
btrfs: fix iput() on error pointer after error during orphan cleanup
btrfs: fix warning when putting transaction with qgroups enabled after abort
btrfs: fix double iput() on inode after an error during orphan cleanup
btrfs: zoned: fix memory leak after finding block group with super blocks
btrfs: abort transaction at update_ref_for_cow() when ref count is zero
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 (2):
perf probe: Add test for regression introduced by switch to die_get_decl_file() perf probe: Read DWARF files from the correct CU
Greg Kroah-Hartman (1):
Linux 6.4.7
Gregory Greenman (1):
wifi: iwlwifi: mvm: fix potential array out of bounds access
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()
Hans de Goede (6):
ACPI: x86: Add skip i2c clients quirk for Nextbook Ares 8A
ACPI: button: Add lid disable DMI quirk for Nextbook Ares 8A
ACPI: x86: Add ACPI_QUIRK_UART1_SKIP for Lenovo Yoga Book yb1-x90f/l
ACPI: video: Add backlight=native DMI quirk for Apple iMac11,3
ACPI: video: Add backlight=native DMI quirk for Lenovo ThinkPad X131e (3371 AMD version)
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
Harald Freudenberger (1):
s390/zcrypt: fix reply buffer calculations for CCA replies
Heiner Kallweit (2):
Revert "r8169: disable ASPM during NAPI poll"
r8169: fix ASPM-related problem for chip version 42 and 43
Helge Deller (2):
io_uring: Fix io_uring mmap() by using architecture-provided get_unmapped_area()
ia64: mmap: Consider pgoff when searching for free mapping
Hersen Wu (1):
Revert "drm/amd/display: edp do not add non-edid timings"
Ido Schimmel (1):
vrf: Fix lockdep splat in output path
Ilan Peer (1):
wifi: mac80211_hwsim: Fix possible NULL dereference
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
Jakub Kicinski (1):
devlink: make health report on unregistered instance warn just once
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 (2):
mm/mlock: fix vma iterator conversion of apply_vma_lock_flags()
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 (2):
can: gs_usb: gs_can_open(): improve error handling
can: gs_usb: fix time stamp counter initialization
Marc Zyngier (4):
KVM: arm64: timers: Use CNTHCTL_EL2 when setting non-CNTKCTL_EL1 bits
KVM: arm64: Disable preemption in kvm_arch_hardware_enable()
KVM: arm64: vgic-v4: Make the doorbell request robust w.r.t preemption
arm64: Fix HFGxTR_EL2 field naming
Marcin Szycik (1):
iavf: Wait for reset in callbacks which trigger it
Marco Morandini (1):
HID: add quirk for 03f0:464a HP Elite Presenter Mouse
Mario Limonciello (1):
ACPI: resource: Remove "Zen" specific match and quirks
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
Mark Rutland (1):
arm64: mm: fix VA-range sanity check
Martin Blumenstingl (1):
wifi: rtw88: sdio: Check the HISR RX_REQUEST bit in rtw_sdio_rx_isr()
Martin Fuzzey (1):
regulator: da9063: fix null pointer deref with partial DT config
Martin KaFai Lau (1):
bpf: Address KCSAN report on bpf_lru_list
Martin Kaiser (1):
fbdev: imxfb: warn about invalid left/right margin
Matthew Anderson (1):
ALSA: hda/realtek: Add quirks for ROG ALLY CS35l41 audio
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
Michal Swiatkowski (1):
ice: prevent NULL pointer deref during reload
Miguel Ojeda (2):
prctl: move PR_GET_AUXV out of PR_MCE_KILL
kbuild: rust: avoid creating temporary files
Miklos Szeredi (3):
fuse: revalidate: don't invalidate if interrupted
fuse: add feature flag for expire-only
fuse: ioctl: translate ENOSYS in outarg
Ming Lei (1):
blk-mq: fix NULL dereference on q->elevator in blk_mq_elv_switch_none
Mohamed Khalfella (1):
tracing/histograms: Return an error if we fail to add histogram to hist_vars list
Mukesh Sisodiya (2):
wifi: iwlwifi: mvm: Add NULL check before dereferencing the pointer
wifi: iwlwifi: Add support for new PCI Id
Nathan Chancellor (1):
ASoC: cs35l45: Select REGMAP_IRQ
Nicholas Kazlauskas (1):
drm/amd/display: Keep PHY active for DP displays on DCN31
Oliver Upton (1):
KVM: arm64: Correctly handle page aging notifiers for unaligned memslot
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 (4):
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
Bluetooth: SCO: fix sco_conn related locking and validity issues
Paulo Alcantara (1):
smb: client: fix missed ses refcounting
Peng Zhang (1):
maple_tree: set the node limit when creating a new root node
Peter Zijlstra (1):
iov_iter: Mark copy_iovec_from_user() noclone
Petr Oros (2):
devlink: report devlink_port_type_warn source device
ice: Unregister netdev and devlink_port only once
Petr Pavlu (1):
keys: Fix linking a duplicate key to a keyring's assoc_array
Przemek Kitszel (1):
iavf: make functions static where possible
Qu Wenruo (1):
btrfs: raid56: always verify the P/Q contents for scrub
Rob Herring (1):
of: Preserve "of-display" device name for compatibility
Sameer Pujar (1):
ASoC: rt5640: Fix sleep in atomic context
Sandeep Dhavale (1):
erofs: Fix detection of 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
Siddh Raman Pant (1):
Bluetooth: hci_conn: return ERR_PTR instead of NULL when there is no link
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 (1):
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 Gleixner (1):
posix-timers: Ensure timer ID search-loop limit is valid
Thomas Petazzoni (1):
ASoC: cs42l51: fix driver to properly autoload with automatic module loading
Thomas Weißschuh (1):
tools/nolibc: ensure stack protector guard is never zero
Tomasz Moń (1):
Bluetooth: btusb: Fix bluetooth on Intel Macbook 2014
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 (1):
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
Yan Zhai (1):
gso: fix dodgy bit handling for GSO_UDP_L4
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):
bpf: Silence a warning in btf_type_id_size()
kallsyms: strip LTO-only suffixes from promoted global functions
Youngmin Nam (1):
arm64: set __exception_irq_entry with __irq_entry as a default
Yu Kuai (5):
md: fix data corruption for raid456 when reshape restart while grow up md/raid10: prevent soft lockup while flush writes
scsi: sg: fix blktrace debugfs entries leakage
scsi/sg: don't grab scsi host module reference
scsi: sg: Fix checking return value of blk_get_queue()
Yuanjun Gong (1):
net:ipv6: check return value of pskb_trim()
YueHaibing (1):
can: bcm: Fix UAF in bcm_proc_show()
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
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
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 4 -SUBLEVEL = 6 +SUBLEVEL = 7 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
arch/arm64/include/asm/exception.h +0 -5
@@ -8,16 +8,11 @@#define __ASM_EXCEPTION_H#include <asm/esr.h> -#include <asm/kprobes.h> #include <asm/ptrace.h> #include <linux/interrupt.h> -#ifdef CONFIG_FUNCTION_GRAPH_TRACER #define __exception_irq_entry __irq_entry -#else -#define __exception_irq_entry __kprobes -#endif static inline unsigned long disr_to_esr (u64 disr) {
arch/arm64/include/asm/kvm_host.h +2 -0
@@ -701,6 +701,8 @@ struct kvm_vcpu_arch {#define DBG_SS_ACTIVE_PENDING __vcpu_single_flag(sflags, BIT(5))/* PMUSERENR for the guest EL0 is on physical CPU */ #define PMUSERENR_ON_CPU __vcpu_single_flag(sflags, BIT(6)) +/* WFI instruction trapped */ +#define IN_WFI __vcpu_single_flag(sflags, BIT(7))/* Pointer to the vcpu's SVE FFR for sve_{save,load}_state() */
arch/arm64/include/asm/kvm_pgtable.h +9 -17
@@ -556,22 +556,26 @@ int kvm_pgtable_stage2_wrprotect(struct kvm_pgtable *pgt, u64 addr, u64 size);kvm_pte_t kvm_pgtable_stage2_mkyoung (struct kvm_pgtable *pgt,u64 addr);/** -* kvm_pgtable_stage2_mkold() - Clear the access flag in a page-table entry. +* kvm_pgtable_stage2_test_clear_young() - Test and optionally clear the access +* flag in a page-table entry. * @pgt: Page-table structure initialised by kvm_pgtable_stage2_init*(). * @addr: Intermediate physical address to identify the page-table entry. +* @size: Size of the address range to visit. +* @mkold: True if the access flag should be cleared. * * The offset of @addr within a page is ignored. * -* If there is a valid, leaf page-table entry used to translate @addr, then -* clear the access flag in that entry. +* Tests and conditionally clears the access flag for every valid, leaf +* page-table entry used to translate the range [@addr, @addr + @size). * * Note that it is the caller's responsibility to invalidate the TLB after * calling this function to ensure that the updated permissions are visible * to the CPUs. * -* Return: The old page-table entry prior to clearing the flag, 0 on failure. +* Return: True if any of the visited PTEs had the access flag set. */ -kvm_pte_t kvm_pgtable_stage2_mkold (struct kvm_pgtable *pgt,u64 addr); +bool kvm_pgtable_stage2_test_clear_young (struct kvm_pgtable *pgt,u64 addr, +u64 size,bool mkold);/** * kvm_pgtable_stage2_relax_perms() - Relax the permissions enforced by a
@@ -593,18 +597,6 @@ kvm_pte_t kvm_pgtable_stage2_mkold(struct kvm_pgtable *pgt, u64 addr);int kvm_pgtable_stage2_relax_perms (struct kvm_pgtable *pgt,u64 addr,enum kvm_pgtable_prot prot); -/** -* kvm_pgtable_stage2_is_young() - Test whether a page-table entry has the -* access flag set. -* @pgt: Page-table structure initialised by kvm_pgtable_stage2_init*(). -* @addr: Intermediate physical address to identify the page-table entry. -* -* The offset of @addr within a page is ignored. -* -* Return: True if the page-table entry has the access flag set, false otherwise. -*/ -bool kvm_pgtable_stage2_is_young (struct kvm_pgtable *pgt,u64 addr); -/** * kvm_pgtable_stage2_flush_range() - Clean and invalidate data cache to Point * of Coherency for guest stage-2 address
arch/arm64/kernel/fpsimd.c +25 -8
@@ -847,6 +847,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 ;
@@ -897,21 +899,36 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type, task->thread.fp_type =FP_STATE_FPSIMD ; } -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/kvm/arch_timer.c +3 -3
@@ -827,8 +827,8 @@ static void timer_set_traps(struct kvm_vcpu *vcpu, struct timer_map *map)assign_clear_set_bit (tpt,CNTHCTL_EL1PCEN <<10 , set, clr);assign_clear_set_bit (tpc,CNTHCTL_EL1PCTEN <<10 , set, clr); -/* This only happens on VHE, so use the CNTKCTL_EL1 accessor */ -sysreg_clear_set (cntkctl_el1, clr, set); +/* This only happens on VHE, so use the CNTHCTL_EL2 accessor. */ +sysreg_clear_set (cnthctl_el2, clr, set); }void kvm_timer_vcpu_load (struct kvm_vcpu *vcpu)
@@ -1559,7 +1559,7 @@ int kvm_timer_enable(struct kvm_vcpu *vcpu)void kvm_timer_init_vhe (void ) {if (cpus_have_final_cap (ARM64_HAS_ECV_CNTPOFF )) -sysreg_clear_set (cntkctl_el1,0 ,CNTHCTL_ECV ); +sysreg_clear_set (cnthctl_el2,0 ,CNTHCTL_ECV ); }int kvm_arm_timer_set_attr (struct kvm_vcpu *vcpu,struct kvm_device_attr *attr)
arch/arm64/kvm/arm.c +16 -3
@@ -704,13 +704,15 @@ void kvm_vcpu_wfi(struct kvm_vcpu *vcpu)*/ preempt_disable ();kvm_vgic_vmcr_sync (vcpu); -vgic_v4_put (vcpu, true); +vcpu_set_flag (vcpu,IN_WFI ); +vgic_v4_put (vcpu);preempt_enable ();kvm_vcpu_halt (vcpu);vcpu_clear_flag (vcpu,IN_WFIT );preempt_disable (); +vcpu_clear_flag (vcpu,IN_WFI );vgic_v4_load (vcpu);preempt_enable (); }
@@ -778,7 +780,7 @@ static int check_vcpu_requests(struct kvm_vcpu *vcpu)if (kvm_check_request (KVM_REQ_RELOAD_GICv4, vcpu)) {/* The distributor enable bits were changed */ preempt_disable (); -vgic_v4_put (vcpu, false); +vgic_v4_put (vcpu);vgic_v4_load (vcpu);preempt_enable (); }
@@ -1793,8 +1795,17 @@ static void _kvm_arch_hardware_enable(void *discard)int kvm_arch_hardware_enable (void ) { -int was_enabled =__this_cpu_read (kvm_arm_hardware_enabled); +int was_enabled; +/* +* Most calls to this function are made with migration +* disabled, but not with preemption disabled. The former is +* enough to ensure correctness, but most of the helpers +* expect the later and will throw a tantrum otherwise. +*/ +preempt_disable (); + + was_enabled =__this_cpu_read (kvm_arm_hardware_enabled);_kvm_arch_hardware_enable (NULL );if (!was_enabled) {
@@ -1802,6 +1813,8 @@ int kvm_arch_hardware_enable(void)kvm_timer_cpu_up (); } +preempt_enable (); +return 0 ; }
arch/arm64/kvm/hyp/pgtable.c +38 -9
63 lines not on this page · raw message
arch/arm64/kvm/mmu.c +8 -10
@@ -1639,27 +1639,25 @@ bool kvm_set_spte_gfn(struct kvm *kvm, struct kvm_gfn_range *range)bool kvm_age_gfn (struct kvm *kvm,struct kvm_gfn_range *range) {u64 size = (range->end - range->start) <<PAGE_SHIFT ; -kvm_pte_t kpte; -pte_t pte;if (!kvm->arch.mmu.pgt)return false; -WARN_ON (size !=PAGE_SIZE && size !=PMD_SIZE && size !=PUD_SIZE ); - - kpte =kvm_pgtable_stage2_mkold (kvm->arch.mmu.pgt, - range->start <<PAGE_SHIFT ); - pte =__pte (kpte); -return pte_valid (pte) &&pte_young (pte); +return kvm_pgtable_stage2_test_clear_young (kvm->arch.mmu.pgt, + range->start <<PAGE_SHIFT , + size, true); }bool kvm_test_age_gfn (struct kvm *kvm,struct kvm_gfn_range *range) { +u64 size = (range->end - range->start) <<PAGE_SHIFT ; +if (!kvm->arch.mmu.pgt)return false; -return kvm_pgtable_stage2_is_young (kvm->arch.mmu.pgt, - range->start <<PAGE_SHIFT ); +return kvm_pgtable_stage2_test_clear_young (kvm->arch.mmu.pgt, + range->start <<PAGE_SHIFT , + size, false); }phys_addr_t kvm_mmu_get_httbr (void )
arch/arm64/kvm/vgic/vgic-v3.c +1 -1
@@ -749,7 +749,7 @@ void vgic_v3_put(struct kvm_vcpu *vcpu) {struct vgic_v3_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v3; -WARN_ON (vgic_v4_put (vcpu, false)); +WARN_ON (vgic_v4_put (vcpu));vgic_v3_vmcr_sync (vcpu);
arch/arm64/kvm/vgic/vgic-v4.c +5 -2
@@ -336,14 +336,14 @@ void vgic_v4_teardown(struct kvm *kvm) its_vm->vpes =NULL ; } -int vgic_v4_put (struct kvm_vcpu *vcpu,bool need_db) +int vgic_v4_put (struct kvm_vcpu *vcpu) {struct its_vpe *vpe = &vcpu->arch.vgic_cpu.vgic_v3.its_vpe;if (!vgic_supports_direct_msis (vcpu->kvm) || !vpe->resident)return 0 ; -return its_make_vpe_non_resident (vpe, need_db); +return its_make_vpe_non_resident (vpe, !!vcpu_get_flag (vcpu,IN_WFI )); }int vgic_v4_load (struct kvm_vcpu *vcpu)
@@ -354,6 +354,9 @@ int vgic_v4_load(struct kvm_vcpu *vcpu)if (!vgic_supports_direct_msis (vcpu->kvm) || vpe->resident)return 0 ; +if (vcpu_get_flag (vcpu,IN_WFI )) +return 0 ; +/* * Before making the VPE resident, make sure the redistributor * corresponding to our current CPU expects us here. See the
arch/arm64/mm/mmu.c +2 -2
@@ -451,7 +451,7 @@ static phys_addr_t pgd_pgtable_alloc(int shift)void __init create_mapping_noalloc (phys_addr_t phys,unsigned long virt,phys_addr_t size,pgprot_t prot) { -if ((virt >=PAGE_END ) && (virt <VMALLOC_START )) { +if (virt <PAGE_OFFSET ) {pr_warn ("BUG: not creating mapping for %pa at 0x%016lx - outside kernel range\n" , &phys, virt);return ;
@@ -478,7 +478,7 @@ void __init create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,static void update_mapping_prot (phys_addr_t phys,unsigned long virt,phys_addr_t size,pgprot_t prot) { -if ((virt >=PAGE_END ) && (virt <VMALLOC_START )) { +if (virt <PAGE_OFFSET ) {pr_warn ("BUG: not updating mapping for %pa at 0x%016lx - outside kernel range\n" , &phys, virt);return ;
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/arm64/tools/sysreg +6 -6
@@ -1890,7 +1890,7 @@ Field 0 SM EndSysreg SysregFields HFGxTR_EL2 -Field 63 nAMIAIR2_EL1 +Field 63 nAMAIR2_EL1 Field 62 nMAIR2_EL1 Field 61 nS2POR_EL1 Field 60 nPOR_EL1
@@ -1905,9 +1905,9 @@ Field 52 nGCS_EL0 Res0 51 Field 50 nACCDATA_EL1 Field 49 ERXADDR_EL1 -Field 48 EXRPFGCDN_EL1 -Field 47 EXPFGCTL_EL1 -Field 46 EXPFGF_EL1 +Field 48 ERXPFGCDN_EL1 +Field 47 ERXPFGCTL_EL1 +Field 46 ERXPFGF_EL1 Field 45 ERXMISCn_EL1 Field 44 ERXSTATUS_EL1 Field 43 ERXCTLR_EL1
@@ -1922,8 +1922,8 @@ Field 35 TPIDR_EL0 Field 34 TPIDRRO_EL0 Field 33 TPIDR_EL1 Field 32 TCR_EL1 -Field 31 SCTXNUM_EL0 -Field 30 SCTXNUM_EL1 +Field 31 SCXTNUM_EL0 +Field 30 SCXTNUM_EL1 Field 29 SCTLR_EL1 Field 28 REVIDR_EL1 Field 27 PAR_EL1
arch/ia64/kernel/sys_ia64.c +1 -1
@@ -63,7 +63,7 @@ arch_get_unmapped_area (struct file *filp, unsigned long addr, unsigned long len info.low_limit = addr; info.high_limit =TASK_SIZE ; info.align_mask = align_mask; - info.align_offset =0 ; + info.align_offset = pgoff <<PAGE_SHIFT ;return vm_unmapped_area (&info); }
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 ;
arch/parisc/kernel/sys_parisc.c +10 -5
@@ -26,12 +26,17 @@#include <linux/compat.h> /* -* Construct an artificial page offset for the mapping based on the physical +* Construct an artificial page offset for the mapping based on the virtual * address of the kernel file mapping variable. +* If filp is zero the calculated pgoff value aliases the memory of the given +* address. This is useful for io_uring where the mapping shall alias a kernel +* address and a userspace adress where both the kernel and the userspace +* access the same memory region. */ -#define GET_FILP_PGOFF (filp) \ - (filp ? (((unsigned long) filp->f_mapping) >> 8) \ - & ((SHM_COLOUR-1) >> PAGE_SHIFT) : 0UL) +#define GET_FILP_PGOFF (filp, addr) \ + ((filp ? (((unsigned long) filp->f_mapping) >> 8) \ + & ((SHM_COLOUR-1) >> PAGE_SHIFT) : 0UL) \ + + (addr >> PAGE_SHIFT))static unsigned long shared_align_offset (unsigned long filp_pgoff,unsigned long pgoff)
@@ -111,7 +116,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp, do_color_align =0 ;if (filp || (flags &MAP_SHARED )) do_color_align =1 ; - filp_pgoff =GET_FILP_PGOFF (filp); + filp_pgoff =GET_FILP_PGOFF (filp, addr);if (flags &MAP_FIXED ) {/* Even MAP_FIXED mappings must reside within TASK_SIZE */
block/blk-mq.c +7 -3
@@ -4617,9 +4617,6 @@ static bool blk_mq_elv_switch_none(struct list_head *head, {struct blk_mq_qe_pair *qe; -if (!q->elevator) -return true; - qe =kmalloc (sizeof (*qe),GFP_NOIO | __GFP_NOWARN | __GFP_NORETRY);if (!qe)return false;
@@ -4627,6 +4624,12 @@ static bool blk_mq_elv_switch_none(struct list_head *head,/* q->elevator needs protection from ->sysfs_lock */ mutex_lock (&q->sysfs_lock); +/* the check has to be done with holding sysfs_lock */ +if (!q->elevator) { +kfree (qe); + goto unlock; + } +INIT_LIST_HEAD (&qe->node); qe->q = q; qe->type = q->elevator->type;
@@ -4634,6 +4637,7 @@ static bool blk_mq_elv_switch_none(struct list_head *head,__elevator_get (qe->type);list_add (&qe->node, head);elevator_disable (q); +unlock:mutex_unlock (&q->sysfs_lock);return true;
drivers/accel/qaic/qaic_control.c +25 -14
@@ -14,6 +14,7 @@#include <linux/mm.h> #include <linux/moduleparam.h> #include <linux/mutex.h> +#include <linux/overflow.h> #include <linux/pci.h> #include <linux/scatterlist.h> #include <linux/types.h>
@@ -366,7 +367,7 @@ static int encode_passthrough(struct qaic_device *qdev, void *trans, struct wrapif (in_trans->hdr.len %8 !=0 )return -EINVAL ; -if (msg_hdr_len + in_trans->hdr.len >QAIC_MANAGE_EXT_MSG_LENGTH ) +if (size_add (msg_hdr_len, in_trans->hdr.len) >QAIC_MANAGE_EXT_MSG_LENGTH )return -ENOSPC ; trans_wrapper = add_wrapper(wrappers,
@@ -418,9 +419,12 @@ static int find_and_map_user_pages(struct qaic_device *qdev, } ret =get_user_pages_fast (xfer_start_addr, nr_pages,0 , page_list); -if (ret <0 || ret != nr_pages) { - ret = -EFAULT ; +if (ret <0 ) goto free_page_list; +if (ret != nr_pages) { + nr_pages = ret; + ret = -EFAULT ; + goto put_pages; } sgt =kmalloc (sizeof (*sgt),GFP_KERNEL );
@@ -557,11 +561,8 @@ static int encode_dma(struct qaic_device *qdev, void *trans, struct wrapper_list msg = &wrapper->msg; msg_hdr_len =le32_to_cpu (msg->hdr.len); -if (msg_hdr_len > (UINT_MAX -QAIC_MANAGE_EXT_MSG_LENGTH )) -return -EINVAL ; -/* There should be enough space to hold at least one ASP entry. */ -if (msg_hdr_len +sizeof (*out_trans) +sizeof (struct wire_addr_size_pair ) > +if (size_add (msg_hdr_len,sizeof (*out_trans) +sizeof (struct wire_addr_size_pair )) >QAIC_MANAGE_EXT_MSG_LENGTH )return -ENOMEM ;
@@ -634,7 +635,7 @@ static int encode_activate(struct qaic_device *qdev, void *trans, struct wrapper msg = &wrapper->msg; msg_hdr_len =le32_to_cpu (msg->hdr.len); -if (msg_hdr_len +sizeof (*out_trans) >QAIC_MANAGE_MAX_MSG_LENGTH ) +if (size_add (msg_hdr_len,sizeof (*out_trans)) >QAIC_MANAGE_MAX_MSG_LENGTH )return -ENOSPC ;if (!in_trans->queue_size)
@@ -718,7 +719,7 @@ static int encode_status(struct qaic_device *qdev, void *trans, struct wrapper_l msg = &wrapper->msg; msg_hdr_len =le32_to_cpu (msg->hdr.len); -if (msg_hdr_len + in_trans->hdr.len >QAIC_MANAGE_MAX_MSG_LENGTH ) +if (size_add (msg_hdr_len, in_trans->hdr.len) >QAIC_MANAGE_MAX_MSG_LENGTH )return -ENOSPC ; trans_wrapper =add_wrapper (wrappers,sizeof (*trans_wrapper));
@@ -748,7 +749,8 @@ static int encode_message(struct qaic_device *qdev, struct manage_msg *user_msg,int ret;int i; -if (!user_msg->count) { +if (!user_msg->count || + user_msg->len <sizeof (*trans_hdr)) { ret = -EINVAL ; goto out; }
@@ -765,12 +767,13 @@ static int encode_message(struct qaic_device *qdev, struct manage_msg *user_msg, }for (i =0 ; i < user_msg->count; ++i) { -if (user_len >= user_msg->len) { +if (user_len > user_msg->len -sizeof (*trans_hdr)) { ret = -EINVAL ;break ; } trans_hdr = (struct qaic_manage_trans_hdr *)(user_msg->data + user_len); -if (user_len + trans_hdr->len > user_msg->len) { +if (trans_hdr->len <sizeof (trans_hdr) || +size_add (user_len, trans_hdr->len) > user_msg->len) { ret = -EINVAL ;break ; }
@@ -953,15 +956,23 @@ static int decode_message(struct qaic_device *qdev, struct manage_msg *user_msg,int ret;int i; -if (msg_hdr_len >QAIC_MANAGE_MAX_MSG_LENGTH ) +if (msg_hdr_len <sizeof (*trans_hdr) || + msg_hdr_len >QAIC_MANAGE_MAX_MSG_LENGTH )return -EINVAL ; user_msg->len =0 ; user_msg->count =le32_to_cpu (msg->hdr.count);for (i =0 ; i < user_msg->count; ++i) { +u32 hdr_len; + +if (msg_len > msg_hdr_len -sizeof (*trans_hdr)) +return -EINVAL ; + trans_hdr = (struct wire_trans_hdr *)(msg->data + msg_len); -if (msg_len +le32_to_cpu (trans_hdr->len) > msg_hdr_len) + hdr_len =le32_to_cpu (trans_hdr->len); +if (hdr_len <sizeof (*trans_hdr) || +size_add (msg_len, hdr_len) > msg_hdr_len)return -EINVAL ;switch (le32_to_cpu (trans_hdr->type)) {
drivers/acpi/button.c +9 -0
@@ -77,6 +77,15 @@ static const struct dmi_system_id dmi_lid_quirks[] = { }, .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED, }, + { +/* Nextbook Ares 8A tablet, _LID device always reports lid closed */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Insyde" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"CherryTrail" ), + DMI_MATCH(DMI_BIOS_VERSION, "M882"), + }, + .driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_DISABLED, + }, {/* * Lenovo Yoga 9 14ITL5, initial notification of the LID device
drivers/acpi/resource.c +0 -60
78 lines not on this page · raw message
drivers/acpi/video_detect.c +24 -0
@@ -470,6 +470,22 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "82BK"), }, }, + { + .callback = video_detect_force_native, +/* Lenovo ThinkPad X131e (3371 AMD version) */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"LENOVO" ), + DMI_MATCH(DMI_PRODUCT_NAME, "3371"), + }, + }, + { + .callback = video_detect_force_native, +/* Apple iMac11,3 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Apple Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac11,3"), + }, + }, {/* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */ .callback = video_detect_force_native,
@@ -512,6 +528,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/acpi/x86/utils.c +21 -5
@@ -259,10 +259,11 @@ bool force_storage_d3(void)* drivers/platform/x86/x86-android-tablets.c kernel module. */ #define ACPI_QUIRK_SKIP_I2C_CLIENTS BIT(0) -#define ACPI_QUIRK_UART1_TTY_UART2_SKIP BIT(1) -#define ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY BIT(2) -#define ACPI_QUIRK_USE_ACPI_AC_AND_BATTERY BIT(3) -#define ACPI_QUIRK_SKIP_GPIO_EVENT_HANDLERS BIT(4) +#define ACPI_QUIRK_UART1_SKIP BIT(1) +#define ACPI_QUIRK_UART1_TTY_UART2_SKIP BIT(2) +#define ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY BIT(3) +#define ACPI_QUIRK_USE_ACPI_AC_AND_BATTERY BIT(4) +#define ACPI_QUIRK_SKIP_GPIO_EVENT_HANDLERS BIT(5)static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = {/*
@@ -319,6 +320,7 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"), }, .driver_data = (void *)(ACPI_QUIRK_SKIP_I2C_CLIENTS | +ACPI_QUIRK_UART1_SKIP |ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY | ACPI_QUIRK_SKIP_GPIO_EVENT_HANDLERS), },
@@ -365,7 +367,7 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = { ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY), }, { -/* Nextbook Ares 8 */ +/* Nextbook Ares 8 (BYT version)*/ .matches = {DMI_MATCH (DMI_SYS_VENDOR ,"Insyde" ), DMI_MATCH(DMI_PRODUCT_NAME, "M890BAP"),
@@ -374,6 +376,16 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = {ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY | ACPI_QUIRK_SKIP_GPIO_EVENT_HANDLERS), }, + { +/* Nextbook Ares 8A (CHT version)*/ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Insyde" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"CherryTrail" ), + DMI_MATCH(DMI_BIOS_VERSION, "M882"), + }, + .driver_data = (void *)(ACPI_QUIRK_SKIP_I2C_CLIENTS | + ACPI_QUIRK_SKIP_ACPI_AC_AND_BATTERY), + }, {/* Whitelabel (sold as various brands) TM800A550L */ .matches = {
@@ -392,6 +404,7 @@ static const struct dmi_system_id acpi_quirk_skip_dmi_ids[] = {#if IS_ENABLED (CONFIG_X86_ANDROID_TABLETS )static const struct acpi_device_id i2c_acpi_known_good_ids[] = { {"10EC5640" ,0 },/* RealTek ALC5640 audio codec */ + {"10EC5651" ,0 },/* RealTek ALC5651 audio codec */ {"INT33F4" ,0 },/* X-Powers AXP288 PMIC */ {"INT33FD" ,0 },/* Intel Crystal Cove PMIC */ { "INT34D3", 0 }, /* Intel Whiskey Cove PMIC */
@@ -438,6 +451,9 @@ int acpi_quirk_skip_serdev_enumeration(struct device *controller_parent, bool *sif (dmi_id) quirks = (unsigned long )dmi_id->driver_data; +if ((quirks &ACPI_QUIRK_UART1_SKIP ) && uid ==1 ) + *skip = true; +if (quirks &ACPI_QUIRK_UART1_TTY_UART2_SKIP ) {if (uid ==1 )return -ENODEV ;/* Create tty cdev instead of serdev */
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
@@ -2082,8 +2082,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)
@@ -2091,8 +2089,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/bluetooth/btusb.c +1 -0
@@ -4099,6 +4099,7 @@ static int btusb_probe(struct usb_interface *intf,BT_DBG ("intf %p id %p" , intf, id);if ((id->driver_info &BTUSB_IFNUM_2 ) && + (intf->cur_altsetting->desc.bInterfaceNumber !=0 ) && (intf->cur_altsetting->desc.bInterfaceNumber !=2 ))return -ENODEV ;
drivers/dma-buf/dma-resv.c +9 -4
@@ -571,6 +571,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)
@@ -579,13 +580,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 +104 -160
595 lines not on this page · raw message
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h +7 -0
@@ -194,6 +194,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 */
@@ -638,6 +643,8 @@ struct amdgpu_dm_connector {struct drm_dp_mst_port *mst_output_port;struct amdgpu_dm_connector *mst_root;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;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c +12 -0
@@ -398,6 +398,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_mst_types.c +110 -0
118 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
@@ -87,6 +87,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/dcn10/dcn10_hw_sequencer.c +2 -1
@@ -3309,7 +3309,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/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/drm_client_modeset.c +6 -0
@@ -311,6 +311,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 ;
@@ -326,11 +329,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; }
@@ -862,6 +867,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/i915_perf.c +1 -0
@@ -4442,6 +4442,7 @@ static const struct i915_range mtl_oam_b_counters[] = {static const struct i915_range xehp_oa_b_counters[] = { { .start =0xdc48 , .end =0xdc48 },/* OAA_ENABLE_REG */ { .start =0xdd00 , .end =0xdd48 },/* OAG_LCE0_0 - OAA_LENABLE_REG */ + {} };static const struct i915_range gen7_oa_mux_regs[] = {
drivers/gpu/drm/nouveau/dispnv50/disp.c +4 -0
@@ -1873,6 +1873,8 @@ nv50_pior_destroy(struct drm_encoder *encoder)nvif_outp_dtor (&nv_encoder->outp);drm_encoder_cleanup (encoder); + +mutex_destroy (&nv_encoder->dp.hpd_irq_lock);kfree (encoder); }
@@ -1917,6 +1919,8 @@ nv50_pior_create(struct drm_connector *connector, struct dcb_output *dcbe) nv_encoder->i2c = ddc; nv_encoder->aux = aux; +mutex_init (&nv_encoder->dp.hpd_irq_lock); + encoder =to_drm_encoder (nv_encoder); encoder->possible_crtcs = dcbe->heads; encoder->possible_clones =0 ;
drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h +2 -2
@@ -16,7 +16,7 @@ struct nvkm_i2c_bus {const struct nvkm_i2c_bus_func *func;struct nvkm_i2c_pad *pad;#define NVKM_I2C_BUS_CCB (n)/* 'n' is ccb index */ (n) -#define NVKM_I2C_BUS_EXT (n)/* 'n' is dcb external encoder type */ ((n) + 0x100) +#define NVKM_I2C_BUS_EXT (n)/* 'n' is dcb external encoder type */ ((n) + 0x10)#define NVKM_I2C_BUS_PRI /* ccb primary comm. port */ -1#define NVKM_I2C_BUS_SEC /* ccb secondary comm. port */ -2int id;
@@ -38,7 +38,7 @@ struct nvkm_i2c_aux {const struct nvkm_i2c_aux_func *func;struct nvkm_i2c_pad *pad;#define NVKM_I2C_AUX_CCB (n)/* 'n' is ccb index */ (n) -#define NVKM_I2C_AUX_EXT (n)/* 'n' is dcb external encoder type */ ((n) + 0x100) +#define NVKM_I2C_AUX_EXT (n)/* 'n' is dcb external encoder type */ ((n) + 0x10)int id;struct mutex mutex;
drivers/gpu/drm/nouveau/nvkm/engine/disp/uconn.c +18 -9
@@ -81,20 +81,29 @@ nvkm_uconn_uevent(struct nvkm_object *object, void *argv, u32 argc, struct nvkm_return -ENOSYS ;list_for_each_entry (outp, &conn->disp->outps, head) { -if (outp->info.connector == conn->index && outp->dp.aux) { -if (args->v0.types &NVIF_CONN_EVENT_V0_PLUG ) bits |=NVKM_I2C_PLUG ; -if (args->v0.types &NVIF_CONN_EVENT_V0_UNPLUG ) bits |=NVKM_I2C_UNPLUG ; -if (args->v0.types &NVIF_CONN_EVENT_V0_IRQ ) bits |=NVKM_I2C_IRQ ; +if (outp->info.connector == conn->index) +break ; + } -return nvkm_uevent_add (uevent, &device->i2c->event, outp->dp.aux->id, bits, - nvkm_uconn_uevent_aux); - } +if (&outp->head == &conn->disp->outps) +return -EINVAL ; + +if (outp->dp.aux && !outp->info.location) { +if (args->v0.types &NVIF_CONN_EVENT_V0_PLUG ) bits |=NVKM_I2C_PLUG ; +if (args->v0.types &NVIF_CONN_EVENT_V0_UNPLUG ) bits |=NVKM_I2C_UNPLUG ; +if (args->v0.types &NVIF_CONN_EVENT_V0_IRQ ) bits |=NVKM_I2C_IRQ ; + +return nvkm_uevent_add (uevent, &device->i2c->event, outp->dp.aux->id, bits, + nvkm_uconn_uevent_aux); }if (args->v0.types &NVIF_CONN_EVENT_V0_PLUG ) bits |=NVKM_GPIO_HI ;if (args->v0.types &NVIF_CONN_EVENT_V0_UNPLUG ) bits |=NVKM_GPIO_LO ; -if (args->v0.types &NVIF_CONN_EVENT_V0_IRQ ) -return -EINVAL ; +if (args->v0.types &NVIF_CONN_EVENT_V0_IRQ ) { +/* TODO: support DP IRQ on ANX9805 and remove this hack. */ +if (!outp->info.location) +return -EINVAL ; + }return nvkm_uevent_add (uevent, &device->gpio->event, conn->info.hpd, bits, nvkm_uconn_uevent_gpio);
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c +9 -2
@@ -260,10 +260,11 @@ nvkm_i2c_new_(const struct nvkm_i2c_func *func, struct nvkm_device *device, {struct nvkm_bios *bios = device->bios;struct nvkm_i2c *i2c; +struct nvkm_i2c_aux *aux;struct dcb_i2c_entry ccbE;struct dcb_output dcbE;u8 ver, hdr; -int ret, i; +int ret, i, ids;if (!(i2c = *pi2c =kzalloc (sizeof (*i2c),GFP_KERNEL )))return -ENOMEM ;
@@ -406,5 +407,11 @@ nvkm_i2c_new_(const struct nvkm_i2c_func *func, struct nvkm_device *device, } } -return nvkm_event_init (&nvkm_i2c_intr_func, &i2c->subdev,4 , i, &i2c->event); + ids =0 ; +list_for_each_entry (aux, &i2c->aux, head) + ids =max (ids, aux->id +1 ); +if (!ids) +return 0 ; + +return nvkm_event_init (&nvkm_i2c_intr_func, &i2c->subdev,4 , ids, &i2c->event); }
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
@@ -86,6 +86,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; }
@@ -111,7 +113,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
@@ -620,6 +620,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/iommu/iommu-sva.c +2 -1
@@ -34,8 +34,9 @@ static int iommu_sva_alloc_pasid(struct mm_struct *mm, ioasid_t min, ioasid_t ma } ret =ida_alloc_range (&iommu_global_pasid_ida, min, max,GFP_KERNEL ); -if (ret < min) +if (ret <0 ) goto out; + mm->pasid = ret; ret =0 ; out:
drivers/md/md.c +12 -2
@@ -4807,11 +4807,21 @@ action_store(struct mddev *mddev, const char *page, size_t len)return -EINVAL ; err =mddev_lock (mddev);if (!err) { -if (test_bit (MD_RECOVERY_RUNNING , &mddev->recovery)) +if (test_bit (MD_RECOVERY_RUNNING , &mddev->recovery)) { err = -EBUSY ; -else { + }else if (mddev->reshape_position == MaxSector || + mddev->pers->check_reshape ==NULL || + mddev->pers->check_reshape (mddev)) {clear_bit (MD_RECOVERY_FROZEN , &mddev->recovery); err = mddev->pers->start_reshape (mddev); + }else { +/* +* If reshape is still in progress, and +* md_check_recovery() can continue to reshape, +* don't restart reshape because data can be +* corrupted for raid456. +*/ +clear_bit (MD_RECOVERY_FROZEN , &mddev->recovery); }mddev_unlock (mddev); }
drivers/md/raid10.c +2 -0
@@ -920,6 +920,7 @@ static void flush_pending_writes(struct r10conf *conf)raid1_submit_write (bio); bio = next; +cond_resched (); }blk_finish_plug (&plug); }else
@@ -1132,6 +1133,7 @@ static void raid10_unplug(struct blk_plug_cb *cb, bool from_schedule)raid1_submit_write (bio); bio = next; +cond_resched (); }kfree (plug); }
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 +74 -56
264 lines not on this page · raw message
drivers/net/dsa/microchip/ksz8795.c +7 -1
@@ -506,7 +506,13 @@ static int ksz8_r_sta_mac_table(struct ksz_device *dev, u16 addr, (data_hi & masks[STATIC_MAC_TABLE_FWD_PORTS ]) >> shifts[STATIC_MAC_FWD_PORTS ]; alu->is_override = (data_hi & masks[STATIC_MAC_TABLE_OVERRIDE ]) ?1 :0 ; - data_hi >>=1 ; + +/* KSZ8795 family switches have STATIC_MAC_TABLE_USE_FID and +* STATIC_MAC_TABLE_FID definitions off by 1 when doing read on the +* static MAC table compared to doing write. +*/ +if (ksz_is_ksz87xx (dev)) + data_hi >>=1 ; alu->is_static = true; alu->is_use_fid = (data_hi & masks[STATIC_MAC_TABLE_USE_FID ]) ?1 :0 ; alu->fid = (data_hi & masks[STATIC_MAC_TABLE_FID]) >>
drivers/net/dsa/microchip/ksz_common.c +4 -4
@@ -331,13 +331,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
@@ -569,6 +569,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
@@ -438,19 +438,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
@@ -88,16 +88,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 -68
429 lines not on this page · raw message
drivers/net/ethernet/intel/iavf/iavf_txrx.c +21 -22
73 lines not on this page · raw message
drivers/net/ethernet/intel/iavf/iavf_txrx.h +0 -4
@@ -442,15 +442,11 @@ static inline unsigned int iavf_rx_pg_order(struct iavf_ring *ring)bool iavf_alloc_rx_buffers (struct iavf_ring *rxr,u16 cleaned_count);netdev_tx_t iavf_xmit_frame (struct sk_buff *skb,struct net_device *netdev); -void iavf_clean_tx_ring (struct iavf_ring *tx_ring); -void iavf_clean_rx_ring (struct iavf_ring *rx_ring);int iavf_setup_tx_descriptors (struct iavf_ring *tx_ring);int iavf_setup_rx_descriptors (struct iavf_ring *rx_ring);void iavf_free_tx_resources (struct iavf_ring *tx_ring);void iavf_free_rx_resources (struct iavf_ring *rx_ring);int iavf_napi_poll (struct napi_struct *napi,int budget); -void iavf_force_wb (struct iavf_vsi *vsi,struct iavf_q_vector *q_vector); -u32 iavf_get_tx_pending (struct iavf_ring *ring,bool in_sw);void iavf_detect_recover_hung (struct iavf_vsi *vsi);int __iavf_maybe_stop_tx (struct iavf_ring *tx_ring,int size);bool __iavf_chk_linearize (struct sk_buff *skb);
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c +3 -2
@@ -1961,9 +1961,8 @@ void iavf_virtchnl_completion(struct iavf_adapter *adapter,case VIRTCHNL_EVENT_RESET_IMPENDING :dev_info (&adapter->pdev->dev,"Reset indication received from the PF\n" );if (!(adapter->flags &IAVF_FLAG_RESET_PENDING )) { - adapter->flags |=IAVF_FLAG_RESET_PENDING ;dev_info (&adapter->pdev->dev,"Scheduling reset task\n" ); -queue_work (adapter->wq, &adapter->reset_task); +iavf_schedule_reset (adapter,IAVF_FLAG_RESET_PENDING ); }break ;default :
@@ -2237,6 +2236,7 @@ void iavf_virtchnl_completion(struct iavf_adapter *adapter,iavf_process_config (adapter); adapter->flags |=IAVF_FLAG_SETUP_NETDEV_FEATURES ; +iavf_schedule_finish_config (adapter);
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_base.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_ethtool.c +11 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_lib.c +0 -27
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ice/ice_main.c +8 -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/ethernet/mediatek/mtk_ppe_debugfs.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/realtek/r8169_main.c +8 -10
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/mld-key.c +7 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/power.c +8 -6
Lines of this file are not shown. View the 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/net/wireless/realtek/rtw88/sdio.c +21 -3
Lines of this file are not shown. View the raw message.
drivers/net/wireless/virtual/mac80211_hwsim.c +2 -2
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.
drivers/s390/crypto/zcrypt_msgtype6.c +24 -11
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
io_uring/io_uring.c +25 -25
50 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
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 +88 -12
100 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/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.