Linux 6.12.46
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.12.46 kernel.
All users of the 6.12 kernel series must upgrade.
The updated 6.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.12.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm64/boot/dts/freescale/imx8mp-data-modul-edm-sbc.dts | 1 arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi | 1 arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts | 13 arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 13 arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi | 22 + arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts | 1 arch/arm64/include/asm/module.h | 1 arch/arm64/include/asm/module.lds.h | 1 arch/arm64/kernel/ftrace.c | 13 arch/arm64/kernel/module-plts.c | 12 arch/arm64/kernel/module.c | 11 arch/loongarch/kernel/signal.c | 10 arch/loongarch/vdso/Makefile | 3 arch/riscv/Kconfig | 2 arch/riscv/include/asm/asm.h | 2 arch/riscv/kernel/entry.S | 2 arch/riscv/net/bpf_jit_comp64.c | 4 arch/x86/include/asm/pgtable_64_types.h | 3 arch/x86/mm/init_64.c | 18 + block/blk-integrity.c | 4 block/blk-settings.c | 24 + block/blk-zoned.c | 7 drivers/accel/ivpu/ivpu_drv.c | 2 drivers/accel/ivpu/ivpu_pm.c | 4 drivers/accel/ivpu/ivpu_pm.h | 2 drivers/acpi/arm64/iort.c | 4 drivers/acpi/riscv/cppc.c | 4 drivers/block/virtio_blk.c | 4 drivers/bluetooth/hci_vhci.c | 57 ++-- drivers/dma/mediatek/mtk-cqdma.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 5 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 5 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 5 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 5 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 8 drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c | 9 drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.h | 2 drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c | 1 drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c | 72 +++++ drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.h | 2 drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_init.c | 1 drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | 3 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 11 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c | 2 drivers/gpu/drm/nouveau/nvkm/engine/fifo/ga100.c | 23 + drivers/gpu/drm/nouveau/nvkm/engine/fifo/ga102.c | 1 drivers/gpu/drm/nouveau/nvkm/engine/fifo/priv.h | 2 drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c | 1 drivers/hid/hid-core.c | 74 ++--- drivers/hid/hid-logitech-hidpp.c | 6 drivers/hwmon/mlxreg-fan.c | 5 drivers/isdn/mISDN/dsp_hwec.c | 6 drivers/md/md-bitmap.c | 6 drivers/md/md.c | 5 drivers/md/raid1-10.c | 10 drivers/md/raid1.c | 28 - drivers/md/raid10.c | 20 - drivers/mmc/host/sdhci-of-arasan.c | 51 +++ drivers/net/dsa/b53/b53_common.c | 16 - drivers/net/dsa/b53/b53_priv.h | 1 drivers/net/dsa/bcm_sf2.c | 1 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 drivers/net/ethernet/cadence/macb_main.c | 28 + drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 20 - drivers/net/ethernet/intel/e1000e/ethtool.c | 10 drivers/net/ethernet/intel/i40e/i40e_client.c | 4 drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 123 +------- drivers/net/ethernet/intel/ice/ice_main.c | 12 drivers/net/ethernet/intel/idpf/idpf_lib.c | 9 drivers/net/ethernet/intel/idpf/idpf_virtchnl.c | 12 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 10 drivers/net/ethernet/microchip/lan865x/lan865x.c | 7 drivers/net/ethernet/oa_tc6.c | 3 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 10 drivers/net/ethernet/xircom/xirc2ps_cs.c | 2 drivers/net/ipvlan/ipvlan_l3s.c | 1 drivers/net/macsec.c | 8 drivers/net/pcs/pcs-rzn1-miic.c | 2 drivers/net/phy/mscc/mscc_ptp.c | 18 - drivers/net/ppp/ppp_generic.c | 6 drivers/net/usb/cdc_ncm.c | 7 drivers/net/usb/qmi_wwan.c | 5 drivers/net/vxlan/vxlan_core.c | 122 +++++--- drivers/net/vxlan/vxlan_mdb.c | 2 drivers/net/vxlan/vxlan_private.h | 4 drivers/net/wireless/ath/ath11k/core.c | 1 drivers/net/wireless/ath/ath11k/core.h | 7 drivers/net/wireless/ath/ath11k/mac.c | 125 ++++++++ drivers/net/wireless/ath/ath11k/reg.c | 107 +++++-- drivers/net/wireless/ath/ath11k/reg.h | 3 drivers/net/wireless/ath/ath11k/wmi.h | 1 drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c | 6 drivers/net/wireless/intel/iwlwifi/fw/uefi.c | 6 drivers/net/wireless/marvell/libertas/cfg.c | 9 drivers/net/wireless/marvell/mwifiex/cfg80211.c | 5 drivers/net/wireless/marvell/mwifiex/main.c | 4 drivers/net/wireless/mediatek/mt76/mac80211.c | 4 drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 2 drivers/net/wireless/mediatek/mt76/mt7925/main.c | 7 drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 4 drivers/net/wireless/mediatek/mt76/tx.c | 12 drivers/net/wireless/st/cw1200/sta.c | 2 drivers/of/of_numa.c | 5 drivers/pcmcia/omap_cf.c | 2 drivers/pcmcia/rsrc_iodyn.c | 3 drivers/pcmcia/rsrc_nonstatic.c | 4 drivers/platform/x86/amd/pmc/pmc-quirks.c | 14 drivers/platform/x86/asus-nb-wmi.c | 2 drivers/platform/x86/intel/tpmi_power_domains.c | 2 drivers/scsi/lpfc/lpfc_nvmet.c | 10 drivers/scsi/sd.c | 17 - drivers/scsi/sr.c | 19 - drivers/soc/qcom/mdt_loader.c | 12 drivers/spi/spi-fsl-lpspi.c | 24 - drivers/tee/optee/ffa_abi.c | 4 drivers/tee/tee_shm.c | 14 drivers/thermal/mediatek/lvts_thermal.c | 50 ++- fs/btrfs/btrfs_inode.h | 2 fs/btrfs/inode.c | 1 fs/btrfs/tree-log.c | 78 +++-- fs/btrfs/zoned.c | 55 ++- fs/ext4/ext4.h | 3 fs/ext4/ext4_jbd2.h | 29 ++ fs/ext4/super.c | 32 -- fs/fs-writeback.c | 9 fs/namespace.c | 18 - fs/ocfs2/inode.c | 3 fs/proc/generic.c | 38 +- fs/smb/client/cifs_unicode.c | 3 include/linux/blkdev.h | 2 include/linux/bpf-cgroup.h | 5 include/linux/bpf.h | 60 ++-- include/linux/hid.h | 1 include/linux/io_uring_types.h | 12 include/linux/pgtable.h | 16 + include/linux/skbuff.h | 8 include/linux/vmalloc.h | 16 - include/net/dropreason-core.h | 40 ++ include/net/dsa.h | 2 include/net/ip_tunnels.h | 10 io_uring/msg_ring.c | 4 kernel/bpf/core.c | 50 ++- kernel/bpf/syscall.c | 19 - kernel/sched/topology.c | 2 mm/kasan/kasan_test_c.c | 1 mm/kmemleak.c | 27 + mm/slub.c | 142 ++++++---- mm/sparse-vmemmap.c | 5 mm/sparse.c | 15 - mm/userfaultfd.c | 9 net/atm/resources.c | 6 net/ax25/ax25_in.c | 4 net/batman-adv/network-coding.c | 7 net/bluetooth/hci_sync.c | 2 net/bluetooth/l2cap_sock.c | 3 net/bridge/br_netfilter_hooks.c | 3 net/core/gen_estimator.c | 2 net/dsa/port.c | 16 + net/dsa/user.c | 8 net/ipv4/devinet.c | 7 net/ipv4/icmp.c | 6 net/ipv6/ip6_icmp.c | 6 net/ipv6/tcp_ipv6.c | 32 +- net/mctp/af_mctp.c | 2 net/mctp/route.c | 35 +- net/netfilter/nf_conntrack_helper.c | 4 net/smc/smc_clc.c | 2 net/smc/smc_ib.c | 3 net/wireless/scan.c | 3 net/wireless/sme.c | 5 scripts/Makefile.kasan | 12 scripts/generate_rust_target.rs | 12 sound/pci/hda/patch_hdmi.c | 1 sound/pci/hda/patch_realtek.c | 2 sound/usb/mixer_quirks.c | 2 tools/gpio/Makefile | 2 tools/perf/util/bpf-event.c | 39 +- tools/perf/util/bpf-utils.c | 61 ++-- tools/power/cpupower/utils/cpupower-set.c | 4 tools/testing/selftests/drivers/net/hw/csum.py | 4 tools/testing/selftests/net/bind_bhash.c | 4 tools/testing/selftests/net/netfilter/nft_flowtable.sh | 113 +++++-- 186 files changed, 1778 insertions(+), 921 deletions(-)
Aaron Erhardt (1):
ALSA: hda/realtek: Fix headset mic for TongFang X6[AF]R5xxY
Abin Joseph (1):
net: xilinx: axienet: Add error handling for RX metadata pointer retrieval
Ada Couprie Diaz (1):
kasan: fix GCC mem-intrinsic prefix with sw tags
Al Viro (1):
fs/fhandle.c: fix a race in call of has_locked_children()
Alan Stern (1):
HID: core: Harden s32ton() against conversion to 0 bits
Alex Deucher (2):
drm/amdgpu: drop hw access in non-DC audio fini Revert "drm/amdgpu: Avoid extra evict-restore process."
Alok Tiwari (4):
xirc2ps_cs: fix register access when enabling FullDuplex
bnxt_en: fix incorrect page count in RX aggr ring log
ixgbe: fix incorrect map used in eee linkmode
mctp: return -ENOPROTOOPT for unknown getsockopt options
Antheas Kapenekakis (1):
platform/x86: asus-wmi: Remove extra keys from ignore_key_wlan quirk
Anup Patel (1):
ACPI: RISC-V: Fix FFH_CPPC_CSR error handling
Bjorn Andersson (1):
soc: qcom: mdt_loader: Deal with zero e_shentsize
Chen Ni (1):
pcmcia: omap: Add missing check for platform_get_resource
Christian Loehle (1):
sched: Fix sched_numa_find_nth_cpu() if mask offline
Christoffer Sandberg (1):
platform/x86/amd/pmc: Add TUXEDO IB Pro Gen10 AMD to spurious 8042 quirks list
Christoph Hellwig (1):
block: add a queue_limits_commit_update_frozen helper
Christoph Paasch (1):
net/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6
Colin Ian King (1):
drm/amd/amdgpu: Fix missing error return on kzalloc failure
Cryolitia PukNgae (1):
ALSA: usb-audio: Add mute TLV for playback volumes on some devices
Dan Carpenter (4):
wifi: cw1200: cap SSID length in cw1200_do_join()
wifi: libertas: cap SSID len in lbs_associate()
wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()
ipv4: Fix NULL vs error pointer check in inet_blackhole_dev_init()
Daniel Borkmann (4):
bpf: Add cookie object to bpf maps
bpf: Move bpf map owner out of common struct
bpf: Move cgroup iterator helpers to bpf.h
bpf: Fix oob access in cgroup local storage
Dave Airlie (1):
nouveau: fix disabling the nonstall irq due to storm code
David Arcari (1):
platform/x86/intel: power-domains: Use topology_logical_package_id() for package ID
Dmitry Antipov (1):
wifi: cfg80211: fix use-after-free in cmp_bss()
Dmitry Torokhov (2):
HID: simplify snto32()
HID: stop exporting hid_snto32()
Duoming Zhou (1):
wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work
Edward Adam Davis (1):
ocfs2: prevent release journal inode after journal shutdown
Emil Tantilov (1):
idpf: set mac type when adding and removing MAC filters
Eric Dumazet (2):
net_sched: gen_estimator: fix est_timer() vs CONFIG_PREEMPT_RT=y
ax25: properly unshare skbs in ax25_kiss_rcv()
Fabian Bläse (1):
icmp: fix icmp_ndo_send address translation for reply direction
Fabio Porcedda (3):
net: usb: qmi_wwan: fix Telit Cinterion FN990A name
net: usb: qmi_wwan: fix Telit Cinterion FE990A name
net: usb: qmi_wwan: add Telit Cinterion FN990A w/audio composition
Felix Fietkau (4):
wifi: mt76: prevent non-offchannel mgmt tx during scan/roc
wifi: mt76: free pending offchannel tx frames on wcid cleanup
wifi: mt76: fix linked list corruption
net: ethernet: mtk_eth_soc: fix tx vlan tag for llc packets
Filipe Manana (3):
btrfs: fix race between logging inode and checking if it was logged before
btrfs: fix race between setting last_dir_index_offset and inode logging
btrfs: avoid load/store tearing races when checking if an inode was logged
Florian Westphal (1):
netfilter: nft_flowtable.sh: re-run with random mtu sizes
Greg Kroah-Hartman (1):
Linux 6.12.46
Gu Bowen (1):
mm: fix possible deadlock in kmemleak
Harry Yoo (2):
x86/mm/64: define ARCH_PAGE_TABLE_SYNC_MASK and arch_sync_kernel_mappings()
mm: move page table sync declarations to linux/pgtable.h
Harshit Mogalapalli (1):
wifi: mt76: mt7925: fix locking in mt7925_change_vif_links()
Horatiu Vultur (1):
phy: mscc: Stop taking ts_lock for tx_queue and use its own lock
Huacai Chen (1):
LoongArch: Save LBT before FPU in setup_sigcontext()
Hyesoo Yu (2):
mm: slub: Print the broken data before restoring them
mm: slub: call WARN() when detecting a slab corruption
Ian Rogers (3):
perf bpf-event: Fix use-after-free in synthesis perf bpf-utils: Constify bpil_array_desc perf bpf-utils: Harden get_bpf_prog_info_linear
Ido Schimmel (6):
vxlan: Fix NPD when refreshing an FDB entry with a nexthop object
vxlan: Refresh FDB 'updated' time upon 'NTF_USE'
vxlan: Avoid unnecessary updates to FDB 'used' time
vxlan: Add RCU read-side critical sections in the Tx path
vxlan: Rename FDB Tx lookup function
vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects
Ivan Lipski (1):
drm/amd/display: Clear the CUR_ENABLE register on DCN314 w/out DPP PG
Ivan Pravdin (1):
Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
Jacob Keller (2):
ice: fix NULL access of tx->in_use in ice_ll_ts_intr
i40e: remove read access to debugfs files
Jakub Kicinski (1):
selftests: drv-net: csum: fix interface name for remote host
Jens Axboe (1):
io_uring/msg_ring: ensure io_kiocb freeing is deferred for RCU
Jeremy Kerr (1):
net: mctp: mctp_fraq_queue should take ownership of passed skb
Jiufei Xue (1):
fs: writeback: fix use-after-free in __mark_inode_dirty()
Johannes Berg (1):
wifi: iwlwifi: uefi: check DSM item validity
Johannes Thumshirn (1):
btrfs: zoned: skip ZONE FINISH of conventional zones
John Evans (1):
scsi: lpfc: Fix buffer free/clear order in deferred receive path
Jonas Gorski (1):
net: dsa: b53: do not enable EEE on bcm63xx
Karol Wachowski (1):
accel/ivpu: Prevent recovery work from being queued during device removal
Kuniyuki Iwashima (2):
Bluetooth: Fix use-after-free in l2cap_sock_cleanup_listen()
selftest: net: Fix weird setsockopt() in bind_bhash.c.
Lad Prabhakar (1):
net: pcs: rzn1-miic: Correct MODCTRL register offset
Larisa Grigore (4):
spi: spi-fsl-lpspi: Fix transmissions when using CONT
spi: spi-fsl-lpspi: Set correct chip-select polarity bit
spi: spi-fsl-lpspi: Reset FIFO and disable module on transfer abort
spi: spi-fsl-lpspi: Clear status register after disabling the module
Li Nan (1):
md: prevent incorrect update of resync/recovery offset
Li Qiong (1):
mm/slub: avoid accessing metadata when pointer is invalid in object_err()
Liu Jian (1):
net/smc: fix one NULL pointer dereference in smc_ib_is_sg_need_sync()
Lubomir Rintel (1):
cdc_ncm: Flag Intel OEM version of Fibocom L850-GL as WWAN
Ma Ke (1):
pcmcia: Fix a NULL pointer dereference in __iodyn_find_io_region()
Mahanta Jambigi (1):
net/smc: Remove validation of reserved bits in CLC Decline message
Makar Semyonov (1):
cifs: prevent NULL pointer dereference in UTF16 conversion
Marek Vasut (2):
arm64: dts: imx8mp: Fix missing microSD slot vqmmc on DH electronics i.MX8M Plus DHCOM
arm64: dts: imx8mp: Fix missing microSD slot vqmmc on Data Modul i.MX8M Plus eDM SBC
Markus Niebel (1):
arm64: dts: imx8mp-tqma8mpql: fix LDO5 power off
Menglong Dong (7):
net: skb: add pskb_network_may_pull_reason() helper
net: tunnel: add pskb_inet_may_pull_reason() helper
net: vxlan: add skb drop reasons to vxlan_rcv()
net: vxlan: make vxlan_snoop() return drop reasons
net: vxlan: make vxlan_set_mac() return drop reasons
net: vxlan: use kfree_skb_reason() in vxlan_xmit()
net: vxlan: use kfree_skb_reason() in vxlan_mdb_xmit()
Miaoqian Lin (2):
mISDN: Fix memory leak in dsp_hwec_enable() ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids()
Michael Walle (1):
drm/bridge: ti-sn65dsi86: fix REFCLK setting
Miguel Ojeda (1):
rust: support Rust >= 1.91.0 target spec
Ming Lei (1):
scsi: sr: Reinstate rotational media flag
Ming Yen Hsieh (2):
wifi: mt76: mt7925u: use connac3 tx aggr check in tx complete
wifi: mt76: mt7925: fix the wrong bss cleanup for SAP
Nathan Chancellor (2):
wifi: mt76: mt7996: Initialize hdr before passing to skb_put_data()
riscv: Only allow LTO with CMODEL_MEDANY
Nícolas F. R. A. Prado (1):
thermal/drivers/mediatek/lvts: Disable low offset IRQ for minimum threshold
Ojaswin Mujoo (2):
ext4: define ext4_journal_destroy wrapper
ext4: avoid journaling sb update on error if journal is destroying
Paul Alvin (1):
mmc: sdhci-of-arasan: Support for emmc hardware reset
Pei Xiao (2):
tee: fix NULL pointer dereference in tee_shm_put
tee: fix memory leak in tee_dyn_shm_alloc_helper
Peter Robinson (1):
arm64: dts: rockchip: Add vcc-supply to SPI flash on rk3399-pinebook-pro
Phil Sutter (1):
netfilter: conntrack: helper: Replace -EEXIST by -EBUSY
Qianfeng Rong (1):
wifi: mwifiex: Initialize the chan_stats array to zero
Qingfang Deng (1):
ppp: fix memory leak in pad_compress_skb
Qiu-ji Chen (2):
dmaengine: mediatek: Fix a possible deadlock error in mtk_cqdma_tx_status()
dmaengine: mediatek: Fix a flag reuse error in mtk_cqdma_tx_status()
Radim Krčmář (4):
riscv: use lw when reading int cpu in new_vmalloc_check
riscv: use lw when reading int cpu in asm_per_cpu riscv, bpf: use lw when reading int cpu in BPF_MOV64_PERCPU_REG riscv, bpf: use lw when reading int cpu in bpf_get_smp_processor_id
Radu Rendec (1):
net: vxlan: rename SKB_DROP_REASON_VXLAN_NO_REMOTE
Rameshkumar Sundaram (1):
wifi: ath11k: fix group data packet drops during rekey
Rosen Penev (2):
net: thunder_bgx: add a missing of_node_put
net: thunder_bgx: decrement cleanup index before use
Russell King (Oracle) (3):
net: dsa: add hook to determine whether EEE is supported
net: dsa: provide implementation of .support_eee()
net: dsa: b53/bcm_sf2: implement .support_eee() method
Sabrina Dubroca (1):
macsec: read MACSEC_SA_ATTR_PN with nla_get_uint
Sai Krishna Potthuri (1):
mmc: sdhci-of-arasan: Ensure CD logic stabilization before power-up
Sasha Levin (1):
mm/userfaultfd: fix kmap_local LIFO ordering for CONFIG_HIGHPTE
Sean Anderson (1):
net: macb: Fix tx_ptr_lock locking
Shinji Nomoto (1):
cpupower: Fix a bug where the -t option of the set subcommand was not working.
Stanislav Fort (1):
batman-adv: fix OOB read/write in network-coding decode
Stefan Wahren (3):
net: ethernet: oa_tc6: Handle failure of spi_setup
microchip: lan865x: Fix module autoloading
microchip: lan865x: Fix LAN8651 autoloading
Su Yue (1):
md/md-bitmap: fix wrong bitmap_limit for clustermd when write sb
Sumanth Korikkar (1):
mm: fix accounting of memmap pages
Sungbae Yoo (1):
tee: optee: ffa: fix a typo of "optee_ffa_api_is_compatible"
Takashi Iwai (1):
ALSA: hda/hdmi: Add pin fix for another HP EliteDesk 800 G4 model
Timur Kristóf (1):
drm/amd/display: Don't warn when missing DCE encoder caps
Vadim Pasternak (1):
hwmon: mlxreg-fan: Prevent fans from getting stuck at 0 RPM
Vitaly Lifshits (1):
e1000e: fix heap overflow in e1000_set_eeprom
Vlastimil Babka (1):
mm, slab: cleanup slab_bug() parameters
Wang Liang (3):
netfilter: br_netfilter: do not check confirmed bit in br_nf_local_in() after confirm
net: atm: fix memory leak in atm_register_sysfs when device_register fail
net: fix NULL pointer dereference in l3mdev_l3_rcv
Wen Gong (2):
wifi: ath11k: update channel list in reg notifier instead reg worker
wifi: ath11k: update channel list in worker when wait flag is set
Wentao Guan (1):
LoongArch: vDSO: Remove -nostdlib complier flag
Wentao Liang (1):
pcmcia: Add error handling for add_interval() in do_validate_mem()
Xi Ruoyao (1):
LoongArch: vDSO: Remove --hash-style=sysv
Yang Li (1):
Bluetooth: hci_sync: Avoid adding default advertising on startup
Yeoreum Yun (1):
kunit: kasan_test: disable fortify string checker on kasan_strings() test
Yin Tirui (1):
of_numa: fix uninitialized memory nodes causing kernel panic
Yu Kuai (3):
md/raid1,raid10: don't ignore IO flags
md/raid1,raid10: don't handle IO error for REQ_RAHEAD and REQ_NOWAIT md/raid1: fix data lost for writemostly rdev
Zhen Ni (1):
i40e: Fix potential invalid access when MAC list is empty
Zheng Qixing (1):
md/raid1,raid10: strip REQ_NOWAIT from member bios
panfan (1):
arm64: ftrace: fix unreachable PLT for ftrace_caller in init_module with CONFIG_DYNAMIC_FTRACE
wangzijie (1):
proc: fix missing pde_set_flags() for net proc files
yangshiguang (1):
mm: slub: avoid wake up kswapd in set_track_prepare
zhang jiao (1):
tools: gpio: remove the include directory on make clean
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 12 -SUBLEVEL = 45 +SUBLEVEL = 46 EXTRAVERSION = NAME = Baby Opossum Posse
arch/arm64/boot/dts/freescale/imx8mp-data-modul-edm-sbc.dts +1 -0
@@ -555,6 +555,7 @@ &usdhc2 { pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; vmmc-supply = <®_usdhc2_vmmc>; + vqmmc-supply = <&ldo5>; bus-width = <4>; status = "okay"; };
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +1 -0
@@ -609,6 +609,7 @@ &usdhc2 { pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; vmmc-supply = <®_usdhc2_vmmc>; + vqmmc-supply = <&ldo5>; bus-width = <4>; status = "okay"; };
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mp-ras314.dts +7 -6
@@ -467,6 +467,10 @@ &pwm4 { status = "okay"; }; +®_usdhc2_vqmmc { + status = "okay"; +}; + &sai5 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai5>;
@@ -876,8 +880,7 @@ pinctrl_usdhc2: usdhc2grp { <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d2>, <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d2>, <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d2>, - <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d2>, - <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0>; + <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d2>; }; pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
@@ -886,8 +889,7 @@ pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4>, <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4>, <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4>, - <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>, - <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0>; + <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
@@ -896,8 +898,7 @@ pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4>, <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4>, <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4>, - <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>, - <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0>; + <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_gpio: usdhc2-gpiogrp {
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts +7 -6
@@ -603,6 +603,10 @@ &pwm3 { status = "okay"; }; +®_usdhc2_vqmmc { + status = "okay"; +}; + &sai3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_sai3>;
@@ -982,8 +986,7 @@ pinctrl_usdhc2: usdhc2grp { <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d2>, <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d2>, <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d2>, - <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d2>, - <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0>; + <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d2>; }; pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
@@ -992,8 +995,7 @@ pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4>, <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4>, <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4>, - <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>, - <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0>; + <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
@@ -1002,8 +1004,7 @@ pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4>, <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4>, <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4>, - <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>, - <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc0>; + <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4>; }; pinctrl_usdhc2_gpio: usdhc2-gpiogrp {
arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi +22 -0
@@ -24,6 +24,20 @@ reg_vcc3v3: regulator-vcc3v3 { regulator-max-microvolt = <3300000>; regulator-always-on; }; + + reg_usdhc2_vqmmc: regulator-usdhc2-vqmmc { + compatible = "regulator-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vqmmc>; + regulator-name = "V_SD2"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; + states = <1800000 0x1>, + <3300000 0x0>; + vin-supply = <&ldo5_reg>; + status = "disabled"; + }; }; &A53_0 {
@@ -179,6 +193,10 @@ m24c64: eeprom@57 { }; }; +&usdhc2 { + vqmmc-supply = <®_usdhc2_vqmmc>; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>;
@@ -228,6 +246,10 @@ pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { fsl,pins = <MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x10>; }; + pinctrl_reg_usdhc2_vqmmc: regusdhc2vqmmcgrp { + fsl,pins = <MX8MP_IOMUXC_GPIO1_IO04__GPIO1_IO04 0xc0>; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = <MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x194>, <MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d4>,
arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts +1 -0
@@ -966,6 +966,7 @@ spiflash: flash@0 { reg = <0>; m25p,fast-read; spi-max-frequency = <10000000>; + vcc-supply = <&vcc_3v0>; }; };
arch/arm64/include/asm/module.h +1 -0
@@ -19,6 +19,7 @@ struct mod_arch_specific {/* for CONFIG_DYNAMIC_FTRACE */ struct plt_entry *ftrace_trampolines; +struct plt_entry *init_ftrace_trampolines; }; u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,
arch/arm64/include/asm/module.lds.h +1 -0
@@ -2,6 +2,7 @@ SECTIONS { .plt 0 : { BYTE(0) } .init.plt 0 : { BYTE(0) } .text.ftrace_trampoline 0 : { BYTE(0) } + .init.text.ftrace_trampoline 0 : { BYTE(0) } #ifdef CONFIG_KASAN_SW_TAGS /*
arch/arm64/kernel/ftrace.c +10 -3
@@ -195,10 +195,17 @@ int ftrace_update_ftrace_func(ftrace_func_t func)return ftrace_modify_code (pc,0 , new, false); } -static struct plt_entry *get_ftrace_plt (struct module *mod) +static struct plt_entry *get_ftrace_plt (struct module *mod,unsigned long addr) {#ifdef CONFIG_MODULES -struct plt_entry *plt = mod->arch.ftrace_trampolines; +struct plt_entry *plt =NULL ; + +if (within_module_mem_type (addr, mod,MOD_INIT_TEXT )) + plt = mod->arch.init_ftrace_trampolines; +else if (within_module_mem_type (addr, mod,MOD_TEXT )) + plt = mod->arch.ftrace_trampolines; +else +return NULL ;return &plt[FTRACE_PLT_IDX ];#else
@@ -270,7 +277,7 @@ static bool ftrace_find_callable_addr(struct dyn_ftrace *rec,if (WARN_ON (!mod))return false; - plt =get_ftrace_plt (mod); + plt =get_ftrace_plt (mod, pc);if (!plt) {pr_err ("ftrace: no module PLT for %ps\n" , (void *)*addr);return false;
arch/arm64/kernel/module-plts.c +11 -1
@@ -283,7 +283,7 @@ int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,unsigned long core_plts =0 ;unsigned long init_plts =0 ;Elf64_Sym *syms =NULL ; -Elf_Shdr *pltsec, *tramp =NULL ; +Elf_Shdr *pltsec, *tramp =NULL , *init_tramp =NULL ;int i;/*
@@ -298,6 +298,9 @@ int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs,else if (!strcmp (secstrings + sechdrs[i].sh_name,".text.ftrace_trampoline" )) tramp = sechdrs + i; +else if (!strcmp (secstrings + sechdrs[i].sh_name, +".init.text.ftrace_trampoline" )) + init_tramp = sechdrs + i;else if (sechdrs[i].sh_type ==SHT_SYMTAB ) syms = (Elf64_Sym *)sechdrs[i].sh_addr; }
@@ -363,5 +366,12 @@ int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, tramp->sh_size =NR_FTRACE_PLTS *sizeof (struct plt_entry ); } +if (init_tramp) { + init_tramp->sh_type =SHT_NOBITS ; + init_tramp->sh_flags =SHF_EXECINSTR |SHF_ALLOC ; + init_tramp->sh_addralign = __alignof__(struct plt_entry ); + init_tramp->sh_size =NR_FTRACE_PLTS *sizeof (struct plt_entry ); + } +return 0 ; }
arch/arm64/kernel/module.c +11 -0
@@ -453,6 +453,17 @@ static int module_init_ftrace_plt(const Elf_Ehdr *hdr,__init_plt (&plts[FTRACE_PLT_IDX ],FTRACE_ADDR ); mod->arch.ftrace_trampolines = plts; + + s =find_section (hdr, sechdrs,".init.text.ftrace_trampoline" ); +if (!s) +return -ENOEXEC ; + + plts = (void *)s->sh_addr; + +__init_plt (&plts[FTRACE_PLT_IDX ],FTRACE_ADDR ); + + mod->arch.init_ftrace_trampolines = plts; +#endif return 0 ; }
arch/loongarch/kernel/signal.c +5 -5
@@ -677,6 +677,11 @@ static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,for (i =1 ; i <32 ; i++) err |=__put_user (regs->regs[i], &sc->sc_regs[i]); +#ifdef CONFIG_CPU_HAS_LBT +if (extctx->lbt.addr) + err |=protected_save_lbt_context (extctx); +#endif +if (extctx->lasx.addr) err |=protected_save_lasx_context (extctx);else if (extctx->lsx.addr)
@@ -684,11 +689,6 @@ static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,else if (extctx->fpu.addr) err |=protected_save_fpu_context (extctx); -#ifdef CONFIG_CPU_HAS_LBT -if (extctx->lbt.addr) - err |=protected_save_lbt_context (extctx); -#endif -/* Set the "end" magic */ info = (struct sctx_info *)extctx->end.addr; err |=__put_user (0 , &info->magic);
arch/loongarch/vdso/Makefile +1 -2
@@ -36,8 +36,7 @@ endif # VDSO linker flags. ldflags-y := -Bsymbolic --no-undefined -soname=linux-vdso.so.1 \ - $(filter -E%,$(KBUILD_CFLAGS)) -nostdlib -shared \ - --hash-style=sysv --build-id -T + $(filter -E%,$(KBUILD_CFLAGS)) -shared --build-id -T # # Shared build commands.
arch/riscv/Kconfig +1 -1
@@ -61,7 +61,7 @@ config RISCV select ARCH_SUPPORTS_DEBUG_PAGEALLOC if MMU select ARCH_SUPPORTS_HUGETLBFS if MMU # LLD >= 14: https://github.com/llvm/llvm-project/issues/50505 - select ARCH_SUPPORTS_LTO_CLANG if LLD_VERSION >= 140000 + select ARCH_SUPPORTS_LTO_CLANG if LLD_VERSION >= 140000 && CMODEL_MEDANY select ARCH_SUPPORTS_LTO_CLANG_THIN if LLD_VERSION >= 140000 select ARCH_SUPPORTS_PAGE_TABLE_CHECK if MMU select ARCH_SUPPORTS_PER_VMA_LOCK if MMU
arch/riscv/include/asm/asm.h +1 -1
@@ -90,7 +90,7 @@#endif .macro asm_per_cpu dst sym tmp - REG_L \tmp, TASK_TI_CPU_NUM(tp) + lw \tmp, TASK_TI_CPU_NUM(tp) slli \tmp, \tmp, PER_CPU_OFFSET_SHIFT la \dst, __per_cpu_offset add \dst, \dst, \tmp
arch/riscv/kernel/entry.S +1 -1
@@ -46,7 +46,7 @@ * a0 = &new_vmalloc[BIT_WORD(cpu)] * a1 = BIT_MASK(cpu) */ - REG_L a2, TASK_TI_CPU(tp) + lw a2, TASK_TI_CPU(tp) /* * Compute the new_vmalloc element position: * (cpu / 64) * 8 = (cpu >> 6) << 3
arch/riscv/net/bpf_jit_comp64.c +2 -2
@@ -1150,7 +1150,7 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,emit_mv (rd, rs, ctx);#ifdef CONFIG_SMP /* Load current CPU number in T1 */ -emit_ld (RV_REG_T1 , offsetof(struct thread_info , cpu), +emit_lw (RV_REG_T1 , offsetof(struct thread_info , cpu),RV_REG_TP , ctx);/* Load address of __per_cpu_offset array in T2 */ emit_addr (RV_REG_T2 , (u64)&__per_cpu_offset, extra_pass, ctx);
@@ -1557,7 +1557,7 @@ int bpf_jit_emit_insn(const struct bpf_insn *insn, struct rv_jit_context *ctx,*/ if (insn->src_reg ==0 && insn->imm == BPF_FUNC_get_smp_processor_id) {/* Load current CPU number in R0 */ -emit_ld (bpf_to_rv_reg (BPF_REG_0 , ctx), offsetof(struct thread_info , cpu), +emit_lw (bpf_to_rv_reg (BPF_REG_0 , ctx), offsetof(struct thread_info , cpu),RV_REG_TP , ctx);break ; }
arch/x86/include/asm/pgtable_64_types.h +3 -0
@@ -41,6 +41,9 @@ static inline bool pgtable_l5_enabled(void)#define pgtable_l5_enabled () 0#endif /* CONFIG_X86_5LEVEL */ +#define ARCH_PAGE_TABLE_SYNC_MASK \ + (pgtable_l5_enabled() ? PGTBL_PGD_MODIFIED : PGTBL_P4D_MODIFIED) +extern unsigned int pgdir_shift;extern unsigned int ptrs_per_p4d;
arch/x86/mm/init_64.c +18 -0
@@ -223,6 +223,24 @@ static void sync_global_pgds(unsigned long start, unsigned long end)sync_global_pgds_l4 (start, end); } +/* +* Make kernel mappings visible in all page tables in the system. +* This is necessary except when the init task populates kernel mappings +* during the boot process. In that case, all processes originating from +* the init task copies the kernel mappings, so there is no issue. +* Otherwise, missing synchronization could lead to kernel crashes due +* to missing page table entries for certain kernel mappings. +* +* Synchronization is performed at the top level, which is the PGD in +* 5-level paging systems. But in 4-level paging systems, however, +* pgd_populate() is a no-op, so synchronization is done at the P4D level. +* sync_global_pgds() handles this difference between paging levels. +*/ +void arch_sync_kernel_mappings (unsigned long start,unsigned long end) +{ +sync_global_pgds (start, end); +} +/* * NOTE: This function is marked __ref because it calls __init function * (alloc_bootmem_pages). It's safe to do it ONLY when after_bootmem == 0.
block/blk-integrity.c +1 -3
@@ -218,9 +218,7 @@ static ssize_t flag_store(struct device *dev, const char *page, size_t count,else lim.integrity.flags |= flag; -blk_mq_freeze_queue (q); - err =queue_limits_commit_update (q, &lim); -blk_mq_unfreeze_queue (q); + err =queue_limits_commit_update_frozen (q, &lim);if (err)return err;return count;
block/blk-settings.c +24 -0
@@ -444,6 +444,30 @@ int queue_limits_commit_update(struct request_queue *q, }EXPORT_SYMBOL_GPL (queue_limits_commit_update); +/** +* queue_limits_commit_update_frozen - commit an atomic update of queue limits +* @q: queue to update +* @lim: limits to apply +* +* Apply the limits in @lim that were obtained from queue_limits_start_update() +* and updated with the new values by the caller to @q. Freezes the queue +* before the update and unfreezes it after. +* +* Returns 0 if successful, else a negative error code. +*/ +int queue_limits_commit_update_frozen (struct request_queue *q, +struct queue_limits *lim) +{ +int ret; + +blk_mq_freeze_queue (q); + ret =queue_limits_commit_update (q, lim); +blk_mq_unfreeze_queue (q); + +return ret; +} +EXPORT_SYMBOL_GPL (queue_limits_commit_update_frozen); +/** * queue_limits_set - apply queue limits to queue * @q: queue to update
block/blk-zoned.c +1 -6
@@ -1510,7 +1510,6 @@ static int disk_update_zone_resources(struct gendisk *disk,unsigned int nr_seq_zones, nr_conv_zones;unsigned int pool_size;struct queue_limits lim; -int ret; disk->nr_zones = args->nr_zones; disk->zone_capacity = args->zone_capacity;
@@ -1561,11 +1560,7 @@ static int disk_update_zone_resources(struct gendisk *disk, } commit: -blk_mq_freeze_queue (q); - ret =queue_limits_commit_update (q, &lim); -blk_mq_unfreeze_queue (q); - -return ret; +return queue_limits_commit_update_frozen (q, &lim); } static int blk_revalidate_conv_zone(struct blk_zone *zone, unsigned int idx,
drivers/accel/ivpu/ivpu_drv.c +1 -1
@@ -689,7 +689,7 @@ static void ivpu_bo_unbind_all_user_contexts(struct ivpu_device *vdev)static void ivpu_dev_fini (struct ivpu_device *vdev) {ivpu_jobs_abort_all (vdev); -ivpu_pm_cancel_recovery (vdev); +ivpu_pm_disable_recovery (vdev);ivpu_pm_disable (vdev);ivpu_prepare_for_reset (vdev);ivpu_shutdown (vdev);
drivers/accel/ivpu/ivpu_pm.c +2 -2
@@ -382,10 +382,10 @@ void ivpu_pm_init(struct ivpu_device *vdev)ivpu_dbg (vdev,PM ,"Autosuspend delay = %d\n" , delay); } -void ivpu_pm_cancel_recovery (struct ivpu_device *vdev) +void ivpu_pm_disable_recovery (struct ivpu_device *vdev) {drm_WARN_ON (&vdev->drm,delayed_work_pending (&vdev->pm->job_timeout_work)); -cancel_work_sync (&vdev->pm->recovery_work); +disable_work_sync (&vdev->pm->recovery_work); }void ivpu_pm_enable (struct ivpu_device *vdev)
drivers/accel/ivpu/ivpu_pm.h +1 -1
@@ -25,7 +25,7 @@ struct ivpu_pm_info {void ivpu_pm_init (struct ivpu_device *vdev);void ivpu_pm_enable (struct ivpu_device *vdev);void ivpu_pm_disable (struct ivpu_device *vdev); -void ivpu_pm_cancel_recovery (struct ivpu_device *vdev); +void ivpu_pm_disable_recovery (struct ivpu_device *vdev);int ivpu_pm_suspend_cb (struct device *dev);int ivpu_pm_resume_cb (struct device *dev);
drivers/acpi/arm64/iort.c +3 -1
@@ -937,8 +937,10 @@ static u32 *iort_rmr_alloc_sids(u32 *sids, u32 count, u32 id_start, new_sids =krealloc_array (sids, count + new_count,sizeof (*new_sids),GFP_KERNEL ); -if (!new_sids) +if (!new_sids) { +kfree (sids);return NULL ; + }for (i = count; i < total_count; i++) new_sids[i] = id_start++;
drivers/acpi/riscv/cppc.c +2 -2
@@ -121,7 +121,7 @@ int cpc_read_ffh(int cpu, struct cpc_reg *reg, u64 *val) *val = data.ret.value; -return (data.ret.error) ?sbi_err_map_linux_errno (data.ret.error) :0 ; +return data.ret.error; }return -EINVAL ;
@@ -150,7 +150,7 @@ int cpc_write_ffh(int cpu, struct cpc_reg *reg, u64 val)smp_call_function_single (cpu, cppc_ffh_csr_write, &data,1 ); -return (data.ret.error) ?sbi_err_map_linux_errno (data.ret.error) :0 ; +return data.ret.error; }return -EINVAL ;
drivers/block/virtio_blk.c +1 -3
@@ -1106,9 +1106,7 @@ cache_type_store(struct device *dev, struct device_attribute *attr, lim.features |=BLK_FEAT_WRITE_CACHE ; else lim.features &= ~BLK_FEAT_WRITE_CACHE; -blk_mq_freeze_queue (disk->queue); - i =queue_limits_commit_update (disk->queue, &lim); -blk_mq_unfreeze_queue (disk->queue); + i =queue_limits_commit_update_frozen (disk->queue, &lim);if (i)return i;return count;
drivers/bluetooth/hci_vhci.c +41 -16
81 lines not on this page · raw message
drivers/dma/mediatek/mtk-cqdma.c +4 -6
@@ -420,15 +420,11 @@ static struct virt_dma_desc *mtk_cqdma_find_active_desc(struct dma_chan *c, {struct mtk_cqdma_vchan *cvc =to_cqdma_vchan (c);struct virt_dma_desc *vd; -unsigned long flags; -spin_lock_irqsave (&cvc->pc->lock, flags);list_for_each_entry (vd, &cvc->pc->queue, node)if (vd->tx.cookie == cookie) { -spin_unlock_irqrestore (&cvc->pc->lock, flags);return vd; } -spin_unlock_irqrestore (&cvc->pc->lock, flags);list_for_each_entry (vd, &cvc->vc.desc_issued, node)if (vd->tx.cookie == cookie)
@@ -452,9 +448,11 @@ static enum dma_status mtk_cqdma_tx_status(struct dma_chan *c,if (ret ==DMA_COMPLETE || !txstate)return ret; -spin_lock_irqsave (&cvc->vc.lock, flags); +spin_lock_irqsave (&cvc->pc->lock, flags); +spin_lock (&cvc->vc.lock); vd =mtk_cqdma_find_active_desc (c, cookie); -spin_unlock_irqrestore (&cvc->vc.lock, flags); +spin_unlock (&cvc->vc.lock); +spin_unlock_irqrestore (&cvc->pc->lock, flags);if (vd) { cvd =to_cqdma_vdesc (vd);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -1
@@ -433,7 +433,7 @@ static int psp_sw_init(void *handle) psp->cmd =kzalloc (sizeof (struct psp_gfx_cmd_resp ),GFP_KERNEL );if (!psp->cmd) {dev_err (adev->dev,"Failed to allocate memory to command buffer!\n" ); - ret = -ENOMEM ; +return -ENOMEM ; } adev->psp.xgmi_context.supports_extended_data =
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +4 -2
@@ -2292,11 +2292,13 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t min_vm_size,*/ long amdgpu_vm_wait_idle (struct amdgpu_vm *vm,long timeout) { - timeout =drm_sched_entity_flush (&vm->immediate, timeout); + timeout =dma_resv_wait_timeout (vm->root.bo->tbo.base.resv, +DMA_RESV_USAGE_BOOKKEEP , + true, timeout);if (timeout <=0 )return timeout; -return drm_sched_entity_flush (&vm->delayed, timeout); +return dma_fence_wait_timeout (vm->last_unlocked, true, timeout); }static void amdgpu_vm_destroy_task_info (struct kref *kref)
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +0 -5
@@ -1462,17 +1462,12 @@ static int dce_v10_0_audio_init(struct amdgpu_device *adev)static void dce_v10_0_audio_fini (struct amdgpu_device *adev) { -int i; -if (!amdgpu_audio)return ;if (!adev->mode_info.audio.enabled)return ; -for (i =0 ; i < adev->mode_info.audio.num_pins; i++) -dce_v10_0_audio_enable (adev, &adev->mode_info.audio.pin[i], false); - adev->mode_info.audio.enabled = false; }
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +0 -5
@@ -1511,17 +1511,12 @@ static int dce_v11_0_audio_init(struct amdgpu_device *adev)static void dce_v11_0_audio_fini (struct amdgpu_device *adev) { -int i; -if (!amdgpu_audio)return ;if (!adev->mode_info.audio.enabled)return ; -for (i =0 ; i < adev->mode_info.audio.num_pins; i++) -dce_v11_0_audio_enable (adev, &adev->mode_info.audio.pin[i], false); - adev->mode_info.audio.enabled = false; }
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +0 -5
@@ -1394,17 +1394,12 @@ static int dce_v6_0_audio_init(struct amdgpu_device *adev)static void dce_v6_0_audio_fini (struct amdgpu_device *adev) { -int i; -if (!amdgpu_audio)return ;if (!adev->mode_info.audio.enabled)return ; -for (i =0 ; i < adev->mode_info.audio.num_pins; i++) -dce_v6_0_audio_enable (adev, &adev->mode_info.audio.pin[i], false); - adev->mode_info.audio.enabled = false; }
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +0 -5
@@ -1443,17 +1443,12 @@ static int dce_v8_0_audio_init(struct amdgpu_device *adev)static void dce_v8_0_audio_fini (struct amdgpu_device *adev) { -int i; -if (!amdgpu_audio)return ;if (!adev->mode_info.audio.enabled)return ; -for (i =0 ; i < adev->mode_info.audio.num_pins; i++) -dce_v8_0_audio_enable (adev, &adev->mode_info.audio.pin[i], false); - adev->mode_info.audio.enabled = false; }
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +4 -4
@@ -896,13 +896,13 @@ void dce110_link_encoder_construct( enc110->base.id, &bp_cap_info);/* Override features with DCE-specific values */ -if (BP_RESULT_OK == result) { +if (result ==BP_RESULT_OK ) { enc110->base.features.flags.bits.IS_HBR2_CAPABLE = bp_cap_info.DP_HBR2_EN; enc110->base.features.flags.bits.IS_HBR3_CAPABLE = bp_cap_info.DP_HBR3_EN; enc110->base.features.flags.bits.HDMI_6GB_EN = bp_cap_info.HDMI_6GB_EN; - }else { + }else if (result !=BP_RESULT_NORECORD ) {DC_LOG_WARNING ("%s: Failed to get encoder_cap_info from VBIOS with error code %d!\n" , __func__, result);
@@ -1798,13 +1798,13 @@ void dce60_link_encoder_construct( enc110->base.id, &bp_cap_info);/* Override features with DCE-specific values */ -if (BP_RESULT_OK == result) { +if (result ==BP_RESULT_OK ) { enc110->base.features.flags.bits.IS_HBR2_CAPABLE = bp_cap_info.DP_HBR2_EN; enc110->base.features.flags.bits.IS_HBR3_CAPABLE = bp_cap_info.DP_HBR3_EN; enc110->base.features.flags.bits.HDMI_6GB_EN = bp_cap_info.HDMI_6GB_EN; - }else { + }else if (result !=BP_RESULT_NORECORD ) {DC_LOG_WARNING ("%s: Failed to get encoder_cap_info from VBIOS with error code %d!\n" , __func__, result);
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.c +9 -0
@@ -520,6 +520,15 @@ void dpp1_dppclk_control(REG_UPDATE (DPP_CONTROL ,DPP_CLOCK_ENABLE ,0 ); } +void dpp_force_disable_cursor (struct dpp *dpp_base) +{ +struct dcn10_dpp *dpp =TO_DCN10_DPP (dpp_base); + +/* Force disable cursor */ +REG_UPDATE (CURSOR0_CONTROL ,CUR0_ENABLE ,0 ); + dpp_base->pos.cur0_ctl.bits.cur0_enable =0 ; +} +static const struct dpp_funcs dcn10_dpp_funcs = { .dpp_read_state = dpp_read_state, .dpp_reset = dpp_reset,
drivers/gpu/drm/amd/display/dc/dpp/dcn10/dcn10_dpp.h +2 -0
@@ -1525,4 +1525,6 @@ void dpp1_construct(struct dcn10_dpp *dpp1,void dpp1_cm_get_gamut_remap (struct dpp *dpp_base,struct dpp_grph_csc_adjustment *adjust); +void dpp_force_disable_cursor (struct dpp *dpp_base); +#endif
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c +1 -0
@@ -1497,6 +1497,7 @@ static struct dpp_funcs dcn30_dpp_funcs = { .dpp_dppclk_control = dpp1_dppclk_control, .dpp_set_hdr_multiplier = dpp3_set_hdr_multiplier, .dpp_get_gamut_remap = dpp3_cm_get_gamut_remap, + .dpp_force_disable_cursor = dpp_force_disable_cursor, };
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.c +72 -0
75 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_hwseq.h +2 -0
@@ -47,4 +47,6 @@ void dcn314_dpp_root_clock_control(struct dce_hwseq *hws, unsigned int dpp_inst,void dcn314_disable_link_output (struct dc_link *link,const struct link_resource *link_res,enum signal_type signal); +void dcn314_dpp_pg_control (struct dce_hwseq *hws,unsigned int dpp_inst,bool power_on); +#endif /* __DC_HWSS_DCN314_H__ */
drivers/gpu/drm/amd/display/dc/hwss/dcn314/dcn314_init.c +1 -0
@@ -141,6 +141,7 @@ static const struct hwseq_private_funcs dcn314_private_funcs = { .enable_power_gating_plane = dcn314_enable_power_gating_plane, .dpp_root_clock_control = dcn314_dpp_root_clock_control, .hubp_pg_control = dcn31_hubp_pg_control, + .dpp_pg_control = dcn314_dpp_pg_control, .program_all_writeback_pipes_in_tree = dcn30_program_all_writeback_pipes_in_tree, .update_odm = dcn314_update_odm, .dsc_pg_control = dcn314_dsc_pg_control,
drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h +3 -0
@@ -349,6 +349,9 @@ struct dpp_funcs {struct dpp *dpp_base, enum dc_color_space color_space, struct dc_csc_transform cursor_csc_color_matrix); + +void (*dpp_force_disable_cursor)(struct dpp *dpp_base); + };
drivers/gpu/drm/bridge/ti-sn65dsi86.c +11 -0
@@ -375,6 +375,17 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)gpiod_set_value_cansleep (pdata->enable_gpio,1 ); +/* +* After EN is deasserted and an external clock is detected, the bridge +* will sample GPIO3:1 to determine its frequency. The driver will +* overwrite this setting in ti_sn_bridge_set_refclk_freq(). But this is +* racy. Thus we have to wait a couple of us. According to the datasheet +* the GPIO lines has to be stable at least 5 us (td5) but it seems that +* is not enough and the refclk frequency value is still lost or +* overwritten by the bridge itself. Waiting for 20us seems to work. +*/ +usleep_range (20 ,30 ); +/* * If we have a reference clock we can enable communication w/ the * panel (including the aux channel) w/out any need for an input clock
drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c +2 -0
@@ -352,6 +352,8 @@ nvkm_fifo_dtor(struct nvkm_engine *engine)mutex_destroy (&fifo->userd.mutex);nvkm_event_fini (&fifo->nonstall.event); +if (fifo->func->nonstall_dtor) + fifo->func->nonstall_dtor (fifo);mutex_destroy (&fifo->mutex);if (fifo->func->dtor)
drivers/gpu/drm/nouveau/nvkm/engine/fifo/ga100.c +15 -8
@@ -517,19 +517,11 @@ ga100_fifo_nonstall_intr(struct nvkm_inth *inth)static void ga100_fifo_nonstall_block (struct nvkm_event *event,int type,int index) { -struct nvkm_fifo *fifo =container_of (event,typeof (*fifo), nonstall.event); -struct nvkm_runl *runl =nvkm_runl_get (fifo, index,0 ); - -nvkm_inth_block (&runl->nonstall.inth); }static void ga100_fifo_nonstall_allow (struct nvkm_event *event,int type,int index) { -struct nvkm_fifo *fifo =container_of (event,typeof (*fifo), nonstall.event); -struct nvkm_runl *runl =nvkm_runl_get (fifo, index,0 ); - -nvkm_inth_allow (&runl->nonstall.inth); } const struct nvkm_event_func
@@ -564,12 +556,26 @@ ga100_fifo_nonstall_ctor(struct nvkm_fifo *fifo)if (ret)return ret; +nvkm_inth_allow (&runl->nonstall.inth); + nr =max (nr, runl->id +1 ); }return nr; } +void +ga100_fifo_nonstall_dtor (struct nvkm_fifo *fifo) +{ +struct nvkm_runl *runl; + + nvkm_runl_foreach(runl, fifo) { +if (runl->nonstall.vector <0 ) +continue ; +nvkm_inth_block (&runl->nonstall.inth); + } +} +int ga100_fifo_runl_ctor (struct nvkm_fifo *fifo) {
@@ -599,6 +605,7 @@ ga100_fifo = { .runl_ctor = ga100_fifo_runl_ctor, .mmu_fault = &tu102_fifo_mmu_fault, .nonstall_ctor = ga100_fifo_nonstall_ctor, + .nonstall_dtor = ga100_fifo_nonstall_dtor, .nonstall = &ga100_fifo_nonstall, .runl = &ga100_runl, .runq = &ga100_runq,
drivers/gpu/drm/nouveau/nvkm/engine/fifo/ga102.c +1 -0
@@ -30,6 +30,7 @@ ga102_fifo = { .runl_ctor = ga100_fifo_runl_ctor, .mmu_fault = &tu102_fifo_mmu_fault, .nonstall_ctor = ga100_fifo_nonstall_ctor, + .nonstall_dtor = ga100_fifo_nonstall_dtor, .nonstall = &ga100_fifo_nonstall, .runl = &ga100_runl, .runq = &ga100_runq,
drivers/gpu/drm/nouveau/nvkm/engine/fifo/priv.h +2 -0
@@ -40,6 +40,7 @@ struct nvkm_fifo_func {void (*start)(struct nvkm_fifo *,unsigned long *);int (*nonstall_ctor)(struct nvkm_fifo *); +void (*nonstall_dtor)(struct nvkm_fifo *);const struct nvkm_event_func *nonstall;const struct nvkm_runl_func *runl;
@@ -198,6 +199,7 @@ extern const struct nvkm_fifo_func_mmu_fault tu102_fifo_mmu_fault;int ga100_fifo_runl_ctor (struct nvkm_fifo *);int ga100_fifo_nonstall_ctor (struct nvkm_fifo *); +void ga100_fifo_nonstall_dtor (struct nvkm_fifo *);extern const struct nvkm_event_func ga100_fifo_nonstall;extern const struct nvkm_runl_func ga100_runl;extern const struct nvkm_runq_func ga100_runq;
drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c +1 -0
@@ -660,6 +660,7 @@ r535_fifo_new(const struct nvkm_fifo_func *hw, struct nvkm_device *device, rm->chan.func = &r535_chan; rm->nonstall = &ga100_fifo_nonstall; rm->nonstall_ctor = ga100_fifo_nonstall_ctor; + rm->nonstall_dtor = ga100_fifo_nonstall_dtor;return nvkm_fifo_new_ (rm, device, type, inst, pfifo); }
drivers/hid/hid-core.c +33 -41
92 lines not on this page · raw message
drivers/hid/hid-logitech-hidpp.c +3 -3
@@ -3296,13 +3296,13 @@ static int m560_raw_event(struct hid_device *hdev, u8 *data, int size) 120); } - v =hid_snto32 (hid_field_extract (hdev, data+3 ,0 ,12 ),12 ); + v =sign_extend32 (hid_field_extract (hdev, data +3 ,0 ,12 ),11 );input_report_rel (hidpp->input,REL_X , v); - v =hid_snto32 (hid_field_extract (hdev, data+3 ,12 ,12 ),12 ); + v =sign_extend32 (hid_field_extract (hdev, data +3 ,12 ,12 ),11 );input_report_rel (hidpp->input,REL_Y , v); - v =hid_snto32 (data[6 ],8 ); + v =sign_extend32 (data[6 ],7 );if (v !=0 )hidpp_scroll_counter_handle_scroll (hidpp->input, &hidpp->vertical_wheel_counter, v);
drivers/hwmon/mlxreg-fan.c +2 -3
@@ -561,15 +561,14 @@ static int mlxreg_fan_cooling_config(struct device *dev, struct mlxreg_fan *fan)if (!pwm->connected)continue ; pwm->fan = fan; +/* Set minimal PWM speed. */ + pwm->last_hwmon_state =MLXREG_FAN_PWM_DUTY2STATE (MLXREG_FAN_MIN_DUTY ); pwm->cdev =devm_thermal_of_cooling_device_register (dev,NULL , mlxreg_fan_name[i], pwm, &mlxreg_fan_cooling_ops);if (IS_ERR (pwm->cdev)) {dev_err (dev,"Failed to register cooling device\n" );return PTR_ERR (pwm->cdev); } - -/* Set minimal PWM speed. */ - pwm->last_hwmon_state =MLXREG_FAN_PWM_DUTY2STATE (MLXREG_FAN_MIN_DUTY ); }return 0 ;
drivers/isdn/mISDN/dsp_hwec.c +3 -3
@@ -51,14 +51,14 @@ void dsp_hwec_enable(struct dsp *dsp, const char *arg) goto _do; { -char *dup, *tok, *name, *val; +char *dup, *next, *tok, *name, *val;int tmp; - dup =kstrdup (arg,GFP_ATOMIC ); + dup = next =kstrdup (arg,GFP_ATOMIC );if (!dup)return ; -while ((tok =strsep (&dup,"," ))) { +while ((tok =strsep (&next,"," ))) {if (!strlen (tok))continue ; name =strsep (&tok,"=" );
drivers/md/md-bitmap.c +3 -3
@@ -426,8 +426,8 @@ static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap,struct block_device *bdev;struct mddev *mddev = bitmap->mddev;struct bitmap_storage *store = &bitmap->storage; -unsigned int bitmap_limit = (bitmap->storage.file_pages - pg_index) << -PAGE_SHIFT ; +unsigned long num_pages = bitmap->storage.file_pages; +unsigned int bitmap_limit = (num_pages - pg_index % num_pages) <<PAGE_SHIFT ;loff_t sboff, offset = mddev->bitmap_info.offset;sector_t ps = pg_index *PAGE_SIZE /SECTOR_SIZE ;unsigned int size =PAGE_SIZE ;
@@ -436,7 +436,7 @@ static int __write_sb_page(struct md_rdev *rdev, struct bitmap *bitmap, bdev = (rdev->meta_bdev) ? rdev->meta_bdev : rdev->bdev;/* we compare length (page numbers), not page offset. */ -if ((pg_index - store->sb_index) == store->file_pages -1 ) { +if ((pg_index - store->sb_index) == num_pages -1 ) {unsigned int last_page_size = store->bytes & (PAGE_SIZE -1 );if (last_page_size ==0 )
drivers/md/md.c +5 -0
@@ -8996,6 +8996,11 @@ void md_do_sync(struct md_thread *thread) } action =md_sync_action (mddev); +if (action ==ACTION_FROZEN || action ==ACTION_IDLE ) { +set_bit (MD_RECOVERY_INTR , &mddev->recovery); + goto skip; + } + desc =md_sync_action_name (action); mddev->last_sync_action = action;
drivers/md/raid1-10.c +10 -0
@@ -293,3 +293,13 @@ static inline bool raid1_should_read_first(struct mddev *mddev,return false; } + +/* +* bio with REQ_RAHEAD or REQ_NOWAIT can fail at anytime, before such IO is +* submitted to the underlying disks, hence don't record badblocks or retry +* in this case. +*/ +static inline bool raid1_should_handle_error (struct bio *bio) +{ +return !(bio->bi_opf & (REQ_RAHEAD |REQ_NOWAIT )); +}
drivers/md/raid1.c +13 -15
@@ -371,14 +371,16 @@ static void raid1_end_read_request(struct bio *bio)*/ update_head_pos (r1_bio->read_disk, r1_bio); -if (uptodate) +if (uptodate) {set_bit (R1BIO_Uptodate, &r1_bio->state); -else if (test_bit (FailFast, &rdev->flags) && -test_bit (R1BIO_FailFast, &r1_bio->state)) + }else if (test_bit (FailFast, &rdev->flags) && +test_bit (R1BIO_FailFast, &r1_bio->state)) {/* This was a fail-fast read so we definitely * want to retry */ ; -else { + }else if (!raid1_should_handle_error (bio)) { + uptodate =1 ; + }else {/* If all other devices have failed, we want to return * the error upwards rather than fail the last device. * Here we redefine "uptodate" to mean "Don't want to retry"
@@ -449,16 +451,15 @@ static void raid1_end_write_request(struct bio *bio)struct bio *to_put =NULL ;int mirror =find_bio_disk (r1_bio, bio);struct md_rdev *rdev = conf->mirrors[mirror].rdev; -bool discard_error;sector_t lo = r1_bio->sector;sector_t hi = r1_bio->sector + r1_bio->sectors; - - discard_error = bio->bi_status &&bio_op (bio) ==REQ_OP_DISCARD ; +bool ignore_error = !raid1_should_handle_error (bio) || + (bio->bi_status &&bio_op (bio) ==REQ_OP_DISCARD );/* * 'one mirror IO has finished' event handler: */ -if (bio->bi_status && !discard_error) { +if (bio->bi_status && !ignore_error) {set_bit (WriteErrorSeen, &rdev->flags);if (!test_and_set_bit (WantReplacement, &rdev->flags)) set_bit(MD_RECOVERY_NEEDED, &
@@ -509,7 +510,7 @@ static void raid1_end_write_request(struct bio *bio)/* Maybe we can clear some bad blocks. */ if (rdev_has_badblock (rdev, r1_bio->sector, r1_bio->sectors) && - !discard_error) { + !ignore_error) { r1_bio->bios[mirror] =IO_MADE_GOOD ;set_bit (R1BIO_MadeGood, &r1_bio->state); }
@@ -1223,7 +1224,7 @@ static void alloc_behind_master_bio(struct r1bio *r1_bio,int i =0 ;struct bio *behind_bio =NULL ; - behind_bio =bio_alloc_bioset (NULL , vcnt,0 ,GFP_NOIO , + behind_bio =bio_alloc_bioset (NULL , vcnt, bio->bi_opf,GFP_NOIO , &r1_bio->mddev->bio_set);/* discard op, we don't support writezero/writesame yet */
@@ -1315,8 +1316,6 @@ static void raid1_read_request(struct mddev *mddev, struct bio *bio,struct r1conf *conf = mddev->private;struct raid1_info *mirror;struct bio *read_bio; -const enum req_op op =bio_op (bio); -const blk_opf_t do_sync = bio->bi_opf &REQ_SYNC ;int max_sectors;int rdisk;bool r1bio_existed = !!r1_bio;
@@ -1393,13 +1392,12 @@ static void raid1_read_request(struct mddev *mddev, struct bio *bio, } read_bio =bio_alloc_clone (mirror->rdev->bdev, bio, gfp, &mddev->bio_set); - + read_bio->bi_opf &= ~REQ_NOWAIT ; r1_bio->bios[rdisk] = read_bio; read_bio->bi_iter.bi_sector = r1_bio->sector + mirror->rdev->data_offset; read_bio->bi_end_io = raid1_end_read_request; - read_bio->bi_opf = op | do_sync;if (test_bit (FailFast, &mirror->rdev->flags) &&test_bit (R1BIO_FailFast, &r1_bio->state)) read_bio->bi_opf |=MD_FAILFAST ;
@@ -1615,11 +1613,11 @@ static void raid1_write_request(struct mddev *mddev, struct bio *bio,wait_for_serialization (rdev, r1_bio); } + mbio->bi_opf &= ~REQ_NOWAIT ; r1_bio->bios[i] = mbio; mbio->bi_iter.bi_sector = (r1_bio->sector + rdev->data_offset); mbio->bi_end_io = raid1_end_write_request; - mbio->bi_opf =bio_op (bio) | (bio->bi_opf & (REQ_SYNC |REQ_FUA ));if (test_bit (FailFast, &rdev->flags) && !test_bit (WriteMostly, &rdev->flags) && conf->raid_disks - mddev->degraded >1 )
drivers/md/raid10.c +8 -12
@@ -398,6 +398,8 @@ static void raid10_end_read_request(struct bio *bio)* wait for the 'master' bio. */ set_bit (R10BIO_Uptodate, &r10_bio->state); + }else if (!raid1_should_handle_error (bio)) { + uptodate =1 ; }else {/* If all other devices that store this block have * failed, we want to return the error upwards rather
@@ -455,9 +457,8 @@ static void raid10_end_write_request(struct bio *bio)int slot, repl;struct md_rdev *rdev =NULL ;struct bio *to_put =NULL ; -bool discard_error; - - discard_error = bio->bi_status &&bio_op (bio) ==REQ_OP_DISCARD ; +bool ignore_error = !raid1_should_handle_error (bio) || + (bio->bi_status &&bio_op (bio) ==REQ_OP_DISCARD ); dev =find_bio_disk (conf, r10_bio, bio, &slot, &repl);
@@ -471,7 +472,7 @@ static void raid10_end_write_request(struct bio *bio)/* * this branch is our 'one mirror IO has finished' event handler: */ -if (bio->bi_status && !discard_error) { +if (bio->bi_status && !ignore_error) {if (repl)/* Never record new bad blocks to replacement, * just fail it.
@@ -526,7 +527,7 @@ static void raid10_end_write_request(struct bio *bio)/* Maybe we can clear some bad blocks. */ if (rdev_has_badblock (rdev, r10_bio->devs[slot].addr, r10_bio->sectors) && - !discard_error) { + !ignore_error) {bio_put (bio);if (repl) r10_bio->devs[slot].repl_bio =IO_MADE_GOOD ;
@@ -1146,8 +1147,6 @@ static void raid10_read_request(struct mddev *mddev, struct bio *bio, {struct r10conf *conf = mddev->private;struct bio *read_bio; -const enum req_op op =bio_op (bio); -const blk_opf_t do_sync = bio->bi_opf &REQ_SYNC ;int max_sectors;struct md_rdev *rdev;char b[BDEVNAME_SIZE ];
@@ -1219,6 +1218,7 @@ static void raid10_read_request(struct mddev *mddev, struct bio *bio, r10_bio->master_bio = bio; } read_bio =bio_alloc_clone (rdev->bdev, bio, gfp, &mddev->bio_set); + read_bio->bi_opf &= ~REQ_NOWAIT ; r10_bio->devs[slot].bio = read_bio; r10_bio->devs[slot].rdev = rdev;
@@ -1226,7 +1226,6 @@ static void raid10_read_request(struct mddev *mddev, struct bio *bio, read_bio->bi_iter.bi_sector = r10_bio->devs[slot].addr +choose_data_offset (r10_bio, rdev); read_bio->bi_end_io = raid10_end_read_request; - read_bio->bi_opf = op | do_sync;if (test_bit (FailFast, &rdev->flags) &&test_bit (R10BIO_FailFast, &r10_bio->state)) read_bio->bi_opf |=MD_FAILFAST ;
@@ -1240,9 +1239,6 @@ static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, struct bio *bio, bool replacement, int n_copy) { - const enum req_op op = bio_op(bio); -const blk_opf_t do_sync = bio->bi_opf &REQ_SYNC ; -const blk_opf_t do_fua = bio->bi_opf &REQ_FUA ; unsigned long flags;struct r10conf *conf = mddev->private;struct md_rdev *rdev;
@@ -1253,6 +1249,7 @@ static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, conf->mirrors[devnum].rdev; mbio =bio_alloc_clone (rdev->bdev, bio,GFP_NOIO , &mddev->bio_set); + mbio->bi_opf &= ~REQ_NOWAIT ;if (replacement) r10_bio->devs[n_copy].repl_bio = mbio;else
@@ -1261,7 +1258,6 @@ static void raid10_write_one_disk(struct mddev *mddev, struct r10bio *r10_bio, mbio->bi_iter.bi_sector = (r10_bio->devs[n_copy].addr +choose_data_offset (r10_bio, rdev)); mbio->bi_end_io = raid10_end_write_request; - mbio->bi_opf = op | do_sync | do_fua;if (!replacement &&test_bit (FailFast, &conf->mirrors[devnum].rdev->flags) &&enough (conf, devnum))
drivers/mmc/host/sdhci-of-arasan.c +49 -2
123 lines not on this page · raw message
drivers/net/dsa/b53/b53_common.c +10 -6
@@ -2378,6 +2378,9 @@ int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy) {int ret; +if (!b53_support_eee (ds, port)) +return 0 ; + ret =phy_init_eee (phy, false);if (ret)return 0 ;
@@ -2388,13 +2391,16 @@ int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy) }EXPORT_SYMBOL (b53_eee_init); -int b53_get_mac_eee (struct dsa_switch *ds,int port,struct ethtool_keee *e) +bool b53_support_eee (struct dsa_switch *ds,int port) {struct b53_device *dev = ds->priv; -if (is5325 (dev) ||is5365 (dev)) -return -EOPNOTSUPP ; +return !is5325 (dev) && !is5365 (dev) && !is63xx (dev); +} +EXPORT_SYMBOL (b53_support_eee); +int b53_get_mac_eee (struct dsa_switch *ds,int port,struct ethtool_keee *e) +{return 0 ; }EXPORT_SYMBOL (b53_get_mac_eee);
@@ -2404,9 +2410,6 @@ int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e)struct b53_device *dev = ds->priv;struct ethtool_keee *p = &dev->ports[port].eee; -if (is5325 (dev) ||is5365 (dev)) -return -EOPNOTSUPP ; - p->eee_enabled = e->eee_enabled;b53_eee_enable_set (ds, port, e->eee_enabled);
@@ -2463,6 +2466,7 @@ static const struct dsa_switch_ops b53_switch_ops = { .port_setup = b53_setup_port, .port_enable = b53_enable_port, .port_disable = b53_disable_port, + .support_eee = b53_support_eee, .get_mac_eee = b53_get_mac_eee, .set_mac_eee = b53_set_mac_eee, .port_bridge_join = b53_br_join,
drivers/net/dsa/b53/b53_priv.h +1 -0
@@ -387,6 +387,7 @@ int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy);void b53_disable_port (struct dsa_switch *ds,int port);void b53_brcm_hdr_setup (struct dsa_switch *ds,int port);int b53_eee_init (struct dsa_switch *ds,int port,struct phy_device *phy); +bool b53_support_eee (struct dsa_switch *ds,int port);int b53_get_mac_eee (struct dsa_switch *ds,int port,struct ethtool_keee *e);int b53_set_mac_eee (struct dsa_switch *ds,int port,struct ethtool_keee *e);
drivers/net/dsa/bcm_sf2.c +1 -0
@@ -1233,6 +1233,7 @@ static const struct dsa_switch_ops bcm_sf2_ops = { .port_setup = b53_setup_port, .port_enable = bcm_sf2_port_setup, .port_disable = bcm_sf2_port_disable, + .support_eee = b53_support_eee, .get_mac_eee = b53_get_mac_eee, .set_mac_eee = b53_set_mac_eee, .port_bridge_join = b53_br_join,
drivers/net/ethernet/broadcom/bnxt/bnxt.c +1 -1
@@ -4207,7 +4207,7 @@ static void bnxt_alloc_one_rx_ring_page(struct bnxt *bp,for (i =0 ; i < bp->rx_agg_ring_size; i++) {if (bnxt_alloc_rx_page (bp, rxr, prod,GFP_KERNEL )) {netdev_warn (bp->dev,"init'ed rx ring %d with %d/%d pages only\n" , - ring_nr, i, bp->rx_ring_size); + ring_nr, i, bp->rx_agg_ring_size);break ; } prod =NEXT_RX_AGG (prod);
drivers/net/ethernet/cadence/macb_main.c +16 -12
@@ -1234,11 +1234,12 @@ static int macb_tx_complete(struct macb_queue *queue, int budget) {struct macb *bp = queue->bp;u16 queue_index = queue - bp->queues; +unsigned long flags;unsigned int tail;unsigned int head;int packets =0 ; -spin_lock (&queue->tx_ptr_lock); +spin_lock_irqsave (&queue->tx_ptr_lock, flags); head = queue->tx_head;for (tail = queue->tx_tail; tail != head && packets < budget; tail++) {struct macb_tx_skb *tx_skb;
@@ -1297,7 +1298,7 @@ static int macb_tx_complete(struct macb_queue *queue, int budget) CIRC_CNT(queue->tx_head, queue->tx_tail, bp->tx_ring_size) <= MACB_TX_WAKEUP_THRESH(bp))netif_wake_subqueue (bp->dev, queue_index); -spin_unlock (&queue->tx_ptr_lock); +spin_unlock_irqrestore (&queue->tx_ptr_lock, flags);return packets; }
@@ -1713,8 +1714,9 @@ static void macb_tx_restart(struct macb_queue *queue) {struct macb *bp = queue->bp;unsigned int head_idx, tbqp; +unsigned long flags; -spin_lock (&queue->tx_ptr_lock); +spin_lock_irqsave (&queue->tx_ptr_lock, flags);if (queue->tx_head == queue->tx_tail) goto out_tx_ptr_unlock;
@@ -1726,19 +1728,20 @@ static void macb_tx_restart(struct macb_queue *queue)if (tbqp == head_idx) goto out_tx_ptr_unlock; -spin_lock_irq (&bp->lock); +spin_lock (&bp->lock);macb_writel (bp,NCR ,macb_readl (bp,NCR ) |MACB_BIT (TSTART )); -spin_unlock_irq (&bp->lock); +spin_unlock (&bp->lock); out_tx_ptr_unlock: -spin_unlock (&queue->tx_ptr_lock); +spin_unlock_irqrestore (&queue->tx_ptr_lock, flags); }static bool macb_tx_complete_pending (struct macb_queue *queue) {bool retval = false; +unsigned long flags; -spin_lock (&queue->tx_ptr_lock); +spin_lock_irqsave (&queue->tx_ptr_lock, flags);if (queue->tx_head != queue->tx_tail) {/* Make hw descriptor updates visible to CPU */ rmb ();
@@ -1746,7 +1749,7 @@ static bool macb_tx_complete_pending(struct macb_queue *queue)if (macb_tx_desc (queue, queue->tx_tail)->ctrl &MACB_BIT (TX_USED )) retval = true; } -spin_unlock (&queue->tx_ptr_lock); +spin_unlock_irqrestore (&queue->tx_ptr_lock, flags);return retval; }
@@ -2314,6 +2317,7 @@ static netdev_tx_t macb_start_xmit(struct sk_buff *skb, struct net_device *dev)struct macb_queue *queue = &bp->queues[queue_index];unsigned int desc_cnt, nr_frags, frag_size, f;unsigned int hdrlen; +unsigned long flags;bool is_lso;netdev_tx_t ret =NETDEV_TX_OK ;
@@ -2374,7 +2378,7 @@ static netdev_tx_t macb_start_xmit(struct sk_buff *skb, struct net_device *dev) desc_cnt +=DIV_ROUND_UP (frag_size, bp->max_tx_length); } -spin_lock_bh (&queue->tx_ptr_lock); +spin_lock_irqsave (&queue->tx_ptr_lock, flags);/* This is a hard error, log it. */ if (CIRC_SPACE(queue->tx_head, queue->tx_tail,
@@ -2396,15 +2400,15 @@ static netdev_tx_t macb_start_xmit(struct sk_buff *skb, struct net_device *dev)wmb ();skb_tx_timestamp (skb); -spin_lock_irq (&bp->lock); +spin_lock (&bp->lock);macb_writel (bp,NCR ,macb_readl (bp,NCR ) |MACB_BIT (TSTART )); -spin_unlock_irq (&bp->lock); +spin_unlock (&bp->lock);if (CIRC_SPACE (queue->tx_head, queue->tx_tail, bp->tx_ring_size) <1 )netif_stop_subqueue (dev, queue_index); unlock: -spin_unlock_bh (&queue->tx_ptr_lock); +spin_unlock_irqrestore (&queue->tx_ptr_lock, flags);return ret; }
drivers/net/ethernet/cavium/thunder/thunder_bgx.c +12 -8
@@ -1493,13 +1493,17 @@ static int bgx_init_of_phy(struct bgx *bgx)* this cortina phy, for which there is no driver * support, ignore it. */ -if (phy_np && - !of_device_is_compatible (phy_np,"cortina,cs4223-slice" )) { -/* Wait until the phy drivers are available */ - pd =of_phy_find_device (phy_np); -if (!pd) - goto defer; - bgx->lmac[lmac].phydev = pd; +if (phy_np) { +if (!of_device_is_compatible (phy_np,"cortina,cs4223-slice" )) { +/* Wait until the phy drivers are available */ + pd =of_phy_find_device (phy_np); +if (!pd) { +of_node_put (phy_np); + goto defer; + } + bgx->lmac[lmac].phydev = pd; + } +of_node_put (phy_np); } lmac++;
@@ -1515,11 +1519,11 @@ static int bgx_init_of_phy(struct bgx *bgx)* for phy devices we may have already found. */ while (lmac) { + lmac--;if (bgx->lmac[lmac].phydev) {put_device (&bgx->lmac[lmac].phydev->mdio.dev); bgx->lmac[lmac].phydev =NULL ; } - lmac--; }of_node_put (node);return -EPROBE_DEFER ;
drivers/net/ethernet/intel/e1000e/ethtool.c +7 -3
@@ -549,12 +549,12 @@ static int e1000_set_eeprom(struct net_device *netdev, {struct e1000_adapter *adapter =netdev_priv (netdev);struct e1000_hw *hw = &adapter->hw; +size_t total_len, max_len;u16 *eeprom_buff; -void *ptr; -int max_len; +int ret_val =0 ;int first_word;int last_word; -int ret_val =0 ; +void *ptr;u16 i;if (eeprom->len ==0 )
@@ -569,6 +569,10 @@ static int e1000_set_eeprom(struct net_device *netdev, max_len = hw->nvm.word_size *2 ; +if (check_add_overflow (eeprom->offset, eeprom->len, &total_len) || + total_len > max_len) +return -EFBIG ; + first_word = eeprom->offset >>1 ; last_word = (eeprom->offset + eeprom->len -1 ) >>1 ; eeprom_buff =kmalloc (max_len,GFP_KERNEL );
drivers/net/ethernet/intel/i40e/i40e_client.c +2 -2
@@ -359,8 +359,8 @@ static void i40e_client_add_instance(struct i40e_pf *pf)if (i40e_client_get_params (vsi, &cdev->lan_info.params)) goto free_cdev; - mac =list_first_entry (&cdev->lan_info.netdev->dev_addrs.list, - struct netdev_hw_addr, list); + mac =list_first_entry_or_null (&cdev->lan_info.netdev->dev_addrs.list, + struct netdev_hw_addr, list);if (mac)ether_addr_copy (cdev->lan_info.lanmac, mac->addr);else
drivers/net/ethernet/intel/i40e/i40e_debugfs.c +19 -104
194 lines not on this page · raw message
drivers/net/ethernet/intel/ice/ice_main.c +7 -5
@@ -3193,12 +3193,14 @@ static irqreturn_t ice_ll_ts_intr(int __always_unused irq, void *data) hw = &pf->hw; tx = &pf->ptp.port.tx;spin_lock_irqsave (&tx->lock, flags); -ice_ptp_complete_tx_single_tstamp (tx); +if (tx->init) { +ice_ptp_complete_tx_single_tstamp (tx); - idx =find_next_bit_wrap (tx->in_use, tx->len, - tx->last_ll_ts_idx_read +1 ); -if (idx != tx->len) -ice_ptp_req_tx_single_tstamp (tx, idx); + idx =find_next_bit_wrap (tx->in_use, tx->len, + tx->last_ll_ts_idx_read +1 ); +if (idx != tx->len) +ice_ptp_req_tx_single_tstamp (tx, idx); + }spin_unlock_irqrestore (&tx->lock, flags); val = GLINT_DYN_CTL_INTENA_M | GLINT_DYN_CTL_CLEARPBA_M |
drivers/net/ethernet/intel/idpf/idpf_lib.c +6 -3
@@ -2278,6 +2278,7 @@ static int idpf_set_mac(struct net_device *netdev, void *p)struct idpf_netdev_priv *np =netdev_priv (netdev);struct idpf_vport_config *vport_config;struct sockaddr *addr = p; +u8 old_mac_addr[ETH_ALEN ];struct idpf_vport *vport;int err =0 ;
@@ -2301,17 +2302,19 @@ static int idpf_set_mac(struct net_device *netdev, void *p)if (ether_addr_equal (netdev->dev_addr, addr->sa_data)) goto unlock_mutex; +ether_addr_copy (old_mac_addr, vport->default_mac_addr); +ether_addr_copy (vport->default_mac_addr, addr->sa_data); vport_config = vport->adapter->vport_config[vport->idx]; err =idpf_add_mac_filter (vport, np, addr->sa_data, false);if (err) {__idpf_del_mac_filter (vport_config, addr->sa_data); +ether_addr_copy (vport->default_mac_addr, netdev->dev_addr); goto unlock_mutex; } -if (is_valid_ether_addr (vport->default_mac_addr)) -idpf_del_mac_filter (vport, np, vport->default_mac_addr, false); +if (is_valid_ether_addr (old_mac_addr)) +__idpf_del_mac_filter (vport_config, old_mac_addr); -ether_addr_copy (vport->default_mac_addr, addr->sa_data);eth_hw_addr_set (netdev, addr->sa_data); unlock_mutex:
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c +12 -0
@@ -3513,6 +3513,16 @@ u32 idpf_get_vport_id(struct idpf_vport *vport)return le32_to_cpu (vport_msg->vport_id); } +static void idpf_set_mac_type (struct idpf_vport *vport, +struct virtchnl2_mac_addr *mac_addr) +{ +bool is_primary; + + is_primary =ether_addr_equal (vport->default_mac_addr, mac_addr->addr); + mac_addr->type = is_primary ?VIRTCHNL2_MAC_ADDR_PRIMARY : +VIRTCHNL2_MAC_ADDR_EXTRA ; +} +/** * idpf_mac_filter_async_handler - Async callback for mac filters * @adapter: private data struct
@@ -3642,6 +3652,7 @@ int idpf_add_del_mac_filters(struct idpf_vport *vport, list) {if (add && f->add) {ether_addr_copy (mac_addr[i].addr, f->macaddr); +idpf_set_mac_type (vport, &mac_addr[i]); i++; f->add = false;if (i == total_filters)
@@ -3649,6 +3660,7 @@ int idpf_add_del_mac_filters(struct idpf_vport *vport, }if (!add && f->remove) {ether_addr_copy (mac_addr[i].addr, f->macaddr); +idpf_set_mac_type (vport, &mac_addr[i]); i++; f->remove = false;if (i == total_filters)
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +2 -2
@@ -3443,13 +3443,13 @@ ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_keee *edata)for (i =0 ; i <ARRAY_SIZE (ixgbe_ls_map); ++i) {if (hw->phy.eee_speeds_supported & ixgbe_ls_map[i].mac_speed) -linkmode_set_bit (ixgbe_lp_map[i].link_mode, +linkmode_set_bit (ixgbe_ls_map[i].link_mode, edata->supported); }for (i =0 ; i <ARRAY_SIZE (ixgbe_ls_map); ++i) {if (hw->phy.eee_speeds_advertised & ixgbe_ls_map[i].mac_speed) -linkmode_set_bit (ixgbe_lp_map[i].link_mode, +linkmode_set_bit (ixgbe_ls_map[i].link_mode, edata->advertised); }
drivers/net/ethernet/mediatek/mtk_eth_soc.c +9 -1
@@ -1606,6 +1606,13 @@ static netdev_tx_t mtk_start_xmit(struct sk_buff *skb, struct net_device *dev)bool gso = false;int tx_num; +if (skb_vlan_tag_present (skb) && + !eth_proto_is_802_3 (eth_hdr (skb)->h_proto)) { + skb =__vlan_hwaccel_push_inside (skb); +if (!skb) + goto dropped; + } +/* normally we can rely on the stack not calling this more than once, * however we have 2 queues running on the same ring so we need to lock * the ring access
@@ -1651,8 +1658,9 @@ static netdev_tx_t mtk_start_xmit(struct sk_buff *skb, struct net_device *dev) drop:spin_unlock (ð->page_lock); - stats->tx_dropped++;dev_kfree_skb_any (skb); +dropped: + stats->tx_dropped++;return NETDEV_TX_OK ; }
drivers/net/ethernet/microchip/lan865x/lan865x.c +5 -2
@@ -423,13 +423,16 @@ static void lan865x_remove(struct spi_device *spi)free_netdev (priv->netdev); } -static const struct spi_device_id spidev_spi_ids[] = { +static const struct spi_device_id lan865x_ids[] = { { .name ="lan8650" }, + { .name ="lan8651" }, {}, }; +MODULE_DEVICE_TABLE (spi, lan865x_ids);static const struct of_device_id lan865x_dt_ids[] = { { .compatible ="microchip,lan8650" }, + { .compatible ="microchip,lan8651" }, {/* Sentinel */ } };MODULE_DEVICE_TABLE (of, lan865x_dt_ids);
@@ -441,7 +444,7 @@ static struct spi_driver lan865x_driver = { }, .probe = lan865x_probe, .remove = lan865x_remove, - .id_table = spidev_spi_ids, + .id_table = lan865x_ids, };module_spi_driver (lan865x_driver);
drivers/net/ethernet/oa_tc6.c +2 -1
@@ -1249,7 +1249,8 @@ struct oa_tc6 *oa_tc6_init(struct spi_device *spi, struct net_device *netdev)/* Set the SPI controller to pump at realtime priority */ tc6->spi->rt = true; -spi_setup (tc6->spi); +if (spi_setup (tc6->spi) <0 ) +return NULL ; tc6->spi_ctrl_tx_buf = devm_kzalloc(&tc6->spi->dev, OA_TC6_CTRL_SPI_BUF_SIZE,
drivers/net/ethernet/xilinx/xilinx_axienet_main.c +10 -0
@@ -1127,6 +1127,15 @@ static void axienet_dma_rx_cb(void *data, const struct dmaengine_result *result) &meta_max_len);dma_unmap_single (lp->dev, skbuf_dma->dma_address, lp->max_frm_size,DMA_FROM_DEVICE ); + +if (IS_ERR (app_metadata)) { +if (net_ratelimit ()) +netdev_err (lp->ndev,"Failed to get RX metadata pointer\n" ); +dev_kfree_skb_any (skb); + lp->ndev->stats.rx_dropped++; + goto rx_submit; + } +/* TODO: Derive app word index programmatically */ rx_len = (app_metadata[LEN_APP ] &0xFFFF );skb_put (skb, rx_len);
@@ -1139,6 +1148,7 @@ static void axienet_dma_rx_cb(void *data, const struct dmaengine_result *result)u64_stats_add (&lp->rx_bytes, rx_len);u64_stats_update_end (&lp->rx_stat_sync); +rx_submit:for (i =0 ; i <CIRC_SPACE (lp->rx_ring_head, lp->rx_ring_tail,RX_BUF_NUM_DEFAULT ); i++)axienet_rx_submit_desc (lp->ndev);
drivers/net/ethernet/xircom/xirc2ps_cs.c +1 -1
@@ -1576,7 +1576,7 @@ do_reset(struct net_device *dev, int full)msleep (40 );/* wait 40 msec to let it complete */ }if (full_duplex) -PutByte (XIRCREG1_ECR ,GetByte (XIRCREG1_ECR | FullDuplex)); +PutByte (XIRCREG1_ECR ,GetByte (XIRCREG1_ECR ) | FullDuplex); }else {/* No MII */ SelectPage (0 ); value =GetByte (XIRCREG_ESR );/* read the ESR */
drivers/net/ipvlan/ipvlan_l3s.c +0 -1
@@ -224,5 +224,4 @@ void ipvlan_l3s_unregister(struct ipvl_port *port) dev->priv_flags &= ~IFF_L3MDEV_RX_HANDLER ;ipvlan_unregister_nf_hook (read_pnet (&port->pnet)); - dev->l3mdev_ops =NULL ; }
drivers/net/macsec.c +4 -4
@@ -1843,7 +1843,7 @@ static int macsec_add_rxsa(struct sk_buff *skb, struct genl_info *info)if (tb_sa[MACSEC_SA_ATTR_PN ]) {spin_lock_bh (&rx_sa->lock); - rx_sa->next_pn =nla_get_u64 (tb_sa[MACSEC_SA_ATTR_PN ]); + rx_sa->next_pn =nla_get_uint (tb_sa[MACSEC_SA_ATTR_PN ]);spin_unlock_bh (&rx_sa->lock); }
@@ -2085,7 +2085,7 @@ static int macsec_add_txsa(struct sk_buff *skb, struct genl_info *info) }spin_lock_bh (&tx_sa->lock); - tx_sa->next_pn =nla_get_u64 (tb_sa[MACSEC_SA_ATTR_PN ]); + tx_sa->next_pn =nla_get_uint (tb_sa[MACSEC_SA_ATTR_PN ]);spin_unlock_bh (&tx_sa->lock);if (tb_sa[MACSEC_SA_ATTR_ACTIVE ])
@@ -2397,7 +2397,7 @@ static int macsec_upd_txsa(struct sk_buff *skb, struct genl_info *info)spin_lock_bh (&tx_sa->lock); prev_pn = tx_sa->next_pn_halves; - tx_sa->next_pn =nla_get_u64 (tb_sa[MACSEC_SA_ATTR_PN ]); + tx_sa->next_pn =nla_get_uint (tb_sa[MACSEC_SA_ATTR_PN ]);spin_unlock_bh (&tx_sa->lock); }
@@ -2495,7 +2495,7 @@ static int macsec_upd_rxsa(struct sk_buff *skb, struct genl_info *info)spin_lock_bh (&rx_sa->lock); prev_pn = rx_sa->next_pn_halves; - rx_sa->next_pn =nla_get_u64 (tb_sa[MACSEC_SA_ATTR_PN ]); + rx_sa->next_pn =nla_get_uint (tb_sa[MACSEC_SA_ATTR_PN ]);spin_unlock_bh (&rx_sa->lock); }
drivers/net/pcs/pcs-rzn1-miic.c +1 -1
@@ -19,7 +19,7 @@#define MIIC_PRCMD 0x0#define MIIC_ESID_CODE 0x4 -#define MIIC_MODCTRL 0x20 +#define MIIC_MODCTRL 0x8#define MIIC_MODCTRL_SW_MODE GENMASK(4, 0)#define MIIC_CONVCTRL (port) (0x100 + (port) * 4)
drivers/net/phy/mscc/mscc_ptp.c +8 -10
@@ -455,12 +455,12 @@ static void vsc85xx_dequeue_skb(struct vsc85xx_ptp *ptp) *p++ = (reg >>24 ) &0xff ; } - len =skb_queue_len (&ptp->tx_queue); + len =skb_queue_len_lockless (&ptp->tx_queue);if (len <1 )return ;while (len--) { - skb =__skb_dequeue (&ptp->tx_queue); + skb =skb_dequeue (&ptp->tx_queue);if (!skb)return ;
@@ -485,7 +485,7 @@ static void vsc85xx_dequeue_skb(struct vsc85xx_ptp *ptp)* packet in the FIFO right now, reschedule it for later * packets. */ -__skb_queue_tail (&ptp->tx_queue, skb); +skb_queue_tail (&ptp->tx_queue, skb); } }
@@ -1065,6 +1065,7 @@ static int vsc85xx_hwtstamp(struct mii_timestamper *mii_ts,case HWTSTAMP_TX_ON :break ;case HWTSTAMP_TX_OFF : +skb_queue_purge (&vsc8531->ptp->tx_queue);break ;default :return -ERANGE ;
@@ -1089,9 +1090,6 @@ static int vsc85xx_hwtstamp(struct mii_timestamper *mii_ts,mutex_lock (&vsc8531->ts_lock); -__skb_queue_purge (&vsc8531->ptp->tx_queue); -__skb_queue_head_init (&vsc8531->ptp->tx_queue); -/* Disable predictor while configuring the 1588 block */ val =vsc85xx_ts_read_csr (phydev,PROCESSOR ,MSCC_PHY_PTP_INGR_PREDICTOR );
@@ -1177,9 +1175,7 @@ static void vsc85xx_txtstamp(struct mii_timestamper *mii_ts,skb_shinfo (skb)->tx_flags |=SKBTX_IN_PROGRESS ; -mutex_lock (&vsc8531->ts_lock); -__skb_queue_tail (&vsc8531->ptp->tx_queue, skb); -mutex_unlock (&vsc8531->ts_lock); +skb_queue_tail (&vsc8531->ptp->tx_queue, skb);return ; out:
@@ -1545,6 +1541,7 @@ void vsc8584_ptp_deinit(struct phy_device *phydev)if (vsc8531->ptp->ptp_clock) {ptp_clock_unregister (vsc8531->ptp->ptp_clock);skb_queue_purge (&vsc8531->rx_skbs_list); +skb_queue_purge (&vsc8531->ptp->tx_queue); } }
@@ -1568,7 +1565,7 @@ irqreturn_t vsc8584_handle_ts_interrupt(struct phy_device *phydev)if (rc &VSC85XX_1588_INT_FIFO_ADD ) {vsc85xx_get_tx_ts (priv->ptp); }else if (rc &VSC85XX_1588_INT_FIFO_OVERFLOW ) { -__skb_queue_purge (&priv->ptp->tx_queue); +skb_queue_purge (&priv->ptp->tx_queue);vsc85xx_ts_reset_fifo (phydev); }
@@ -1588,6 +1585,7 @@ int vsc8584_ptp_probe(struct phy_device *phydev)mutex_init (&vsc8531->phc_lock);mutex_init (&vsc8531->ts_lock);skb_queue_head_init (&vsc8531->rx_skbs_list); +skb_queue_head_init (&vsc8531->ptp->tx_queue);/* Retrieve the shared load/save GPIO. Request it as non exclusive as * the same GPIO can be requested by all the PHYs of the same package.
drivers/net/ppp/ppp_generic.c +3 -3
@@ -1753,7 +1753,6 @@ pad_compress_skb(struct ppp *ppp, struct sk_buff *skb)*/ if (net_ratelimit ())netdev_err (ppp->dev,"ppp: compressor dropped pkt\n" ); -kfree_skb (skb);consume_skb (new_skb); new_skb =NULL ; }
@@ -1855,9 +1854,10 @@ ppp_send_frame(struct ppp *ppp, struct sk_buff *skb) "down - pkt dropped.\n"); goto drop; } - skb =pad_compress_skb (ppp, skb); -if (!skb) + new_skb =pad_compress_skb (ppp, skb); +if (!new_skb) goto drop; + skb = new_skb; }/*
drivers/net/usb/cdc_ncm.c +7 -0
@@ -2088,6 +2088,13 @@ static const struct usb_device_id cdc_devs[] = { .driver_info = (unsigned long)&wwan_info, }, +/* Intel modem (label from OEM reads Fibocom L850-GL) */ + {USB_DEVICE_AND_INTERFACE_INFO (0x8087 ,0x095a , +USB_CLASS_COMM , + USB_CDC_SUBCLASS_NCM, USB_CDC_PROTO_NONE), + .driver_info = (unsigned long)&wwan_info, + }, + /* DisplayLink docking stations */ { .match_flags = USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_VENDOR,
drivers/net/usb/qmi_wwan.c +3 -2
@@ -1363,8 +1363,9 @@ static const struct usb_device_id products[] = { {QMI_QUIRK_SET_DTR(0x1bc7, 0x1050, 2)}, /* Telit FN980 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x1057, 2)}, /* Telit FN980 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x1060, 2)}, /* Telit LN920 */ - {QMI_QUIRK_SET_DTR(0x1bc7, 0x1070, 2)}, /* Telit FN990 */ - {QMI_QUIRK_SET_DTR(0x1bc7, 0x1080, 2)}, /* Telit FE990 */ + {QMI_QUIRK_SET_DTR(0x1bc7, 0x1070, 2)}, /* Telit FN990A */ + {QMI_QUIRK_SET_DTR(0x1bc7, 0x1077, 2)}, /* Telit FN990A w/audio */ + {QMI_QUIRK_SET_DTR(0x1bc7, 0x1080, 2)}, /* Telit FE990A */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x10a0, 0)}, /* Telit FN920C04 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x10a4, 0)}, /* Telit FN920C04 */ {QMI_QUIRK_SET_DTR(0x1bc7, 0x10a9, 0)}, /* Telit FN920C04 */
drivers/net/vxlan/vxlan_core.c +73 -49
349 lines not on this page · raw message
drivers/net/vxlan/vxlan_mdb.c +1 -1
@@ -1712,7 +1712,7 @@ netdev_tx_t vxlan_mdb_xmit(struct vxlan_dev *vxlan,vxlan_xmit_one (skb, vxlan->dev, src_vni,rcu_dereference (fremote->rd), false); else -kfree_skb (skb ); +kfree_skb_reason (skb ,SKB_DROP_REASON_NO_TX_TARGET );return NETDEV_TX_OK ; }
drivers/net/vxlan/vxlan_private.h +1 -3
@@ -56,9 +56,7 @@ static inline struct hlist_head *vs_head(struct net *net, __be16 port)return &vn->sock_list[hash_32 (ntohs (port),PORT_HASH_BITS )]; } -/* First remote destination for a forwarding entry. -* Guaranteed to be non-NULL because remotes are never deleted. -*/ +/* First remote destination for a forwarding entry. */ static inline struct vxlan_rdst *first_remote_rcu (struct vxlan_fdb *fdb) {if (rcu_access_pointer (fdb->nh))
drivers/net/wireless/ath/ath11k/core.c +1 -0
@@ -1972,6 +1972,7 @@ void ath11k_core_halt(struct ath11k *ar)ath11k_mac_scan_finish (ar);ath11k_mac_peer_cleanup_all (ar);cancel_delayed_work_sync (&ar->scan.timeout); +cancel_work_sync (&ar->channel_update_work);cancel_work_sync (&ar->regd_update_work);cancel_work_sync (&ab->update_11d_work);
drivers/net/wireless/ath/ath11k/core.h +6 -1
@@ -409,6 +409,8 @@ struct ath11k_vif {bool do_not_send_tmpl;struct ath11k_arp_ns_offload arp_ns_offload;struct ath11k_rekey_data rekey_data; +u32 num_stations; +bool reinstall_group_keys;struct ath11k_reg_tpc_power_info reg_tpc_info;
@@ -689,7 +691,7 @@ struct ath11k {struct mutex conf_mutex;/* protects the radio specific data like debug stats, ppdu_stats_info stats, * vdev_stop_status info, scan data, ath11k_sta info, ath11k_vif info, -* channel context data, survey info, test mode data. +* channel context data, survey info, test mode data, channel_update_queue. */ spinlock_t data_lock;
@@ -747,6 +749,9 @@ struct ath11k {struct completion bss_survey_done;struct work_struct regd_update_work; +struct work_struct channel_update_work; +/* protected with data_lock */ +struct list_head channel_update_queue;struct work_struct wmi_mgmt_tx_work;struct sk_buff_head wmi_mgmt_tx_queue;
drivers/net/wireless/ath/ath11k/mac.c +116 -9
196 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/reg.c +74 -33
149 lines not on this page · raw message
drivers/net/wireless/ath/ath11k/reg.h +2 -1
@@ -1,7 +1,7 @@/* SPDX-License-Identifier: BSD-3-Clause-Clear */ /* * Copyright (c) 2019 The Linux Foundation. All rights reserved. -* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved. +* Copyright (c) 2022-2025 Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef ATH11K_REG_H
@@ -33,6 +33,7 @@ void ath11k_reg_init(struct ath11k *ar);void ath11k_reg_reset_info (struct cur_regulatory_info *reg_info);void ath11k_reg_free (struct ath11k_base *ab);void ath11k_regd_update_work (struct work_struct *work); +void ath11k_regd_update_chan_list_work (struct work_struct *work);struct ieee80211_regdomain * ath11k_reg_build_regd(struct ath11k_base *ab, struct cur_regulatory_info *reg_info, bool intersect,
drivers/net/wireless/ath/ath11k/wmi.h +1 -0
@@ -3817,6 +3817,7 @@ struct wmi_stop_scan_cmd { };struct scan_chan_list_params { +struct list_head list;u32 pdev_id;u16 nallchans;struct channel_param ch_param[];
drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c +2 -4
@@ -392,10 +392,8 @@ void brcmf_btcoex_detach(struct brcmf_cfg80211_info *cfg)if (!cfg->btcoex)return ; -if (cfg->btcoex->timer_on) { - cfg->btcoex->timer_on = false; -timer_shutdown_sync (&cfg->btcoex->timer); - } +timer_shutdown_sync (&cfg->btcoex->timer); + cfg->btcoex->timer_on = false;cancel_work_sync (&cfg->btcoex->work);
drivers/net/wireless/intel/iwlwifi/fw/uefi.c +6 -0
@@ -741,6 +741,12 @@ int iwl_uefi_get_dsm(struct iwl_fw_runtime *fwrt, enum iwl_dsm_funcs func, goto out; } +if (!(data->functions[DSM_FUNC_QUERY ] &BIT (func))) { +IWL_DEBUG_RADIO (fwrt,"DSM func %d not in 0x%x\n" , + func, data->functions[DSM_FUNC_QUERY ]); + goto out; + } + *value = data->functions[func]; ret =0 ; out:
drivers/net/wireless/marvell/libertas/cfg.c +6 -3
@@ -1150,10 +1150,13 @@ static int lbs_associate(struct lbs_private *priv,/* add SSID TLV */ rcu_read_lock (); ssid_eid =ieee80211_bss_get_ie (bss,WLAN_EID_SSID ); -if (ssid_eid) - pos +=lbs_add_ssid_tlv (pos, ssid_eid +2 , ssid_eid[1 ]); -else +if (ssid_eid) { +u32 ssid_len =min (ssid_eid[1 ],IEEE80211_MAX_SSID_LEN ); + + pos +=lbs_add_ssid_tlv (pos, ssid_eid +2 , ssid_len); + }else {lbs_deb_assoc ("no SSID\n" ); + }rcu_read_unlock ();/* add DS param TLV */
drivers/net/wireless/marvell/mwifiex/cfg80211.c +3 -2
@@ -4680,8 +4680,9 @@ int mwifiex_init_channel_scan_gap(struct mwifiex_adapter *adapter)* additional active scan request for hidden SSIDs on passive channels. */ adapter->num_in_chan_stats =2 * (n_channels_bg + n_channels_a); - adapter->chan_stats =vmalloc (array_size (sizeof (*adapter->chan_stats), - adapter->num_in_chan_stats)); + adapter->chan_stats =kcalloc (adapter->num_in_chan_stats, +sizeof (*adapter->chan_stats), +GFP_KERNEL );if (!adapter->chan_stats)return -ENOMEM ;
drivers/net/wireless/marvell/mwifiex/main.c +2 -2
@@ -667,7 +667,7 @@ static int _mwifiex_fw_dpc(const struct firmware *firmware, void *context) goto done; err_add_intf: -vfree (adapter->chan_stats); +kfree (adapter->chan_stats); err_init_chan_scan:wiphy_unregister (adapter->wiphy);wiphy_free (adapter->wiphy);
@@ -1515,7 +1515,7 @@ static void mwifiex_uninit_sw(struct mwifiex_adapter *adapter)wiphy_free (adapter->wiphy); adapter->wiphy =NULL ; -vfree (adapter->chan_stats); +kfree (adapter->chan_stats);mwifiex_free_cmd_buffers (adapter); }
drivers/net/wireless/mediatek/mt76/mac80211.c +4 -0
@@ -1586,6 +1586,10 @@ void mt76_wcid_cleanup(struct mt76_dev *dev, struct mt76_wcid *wcid)skb_queue_splice_tail_init (&wcid->tx_pending, &list);spin_unlock (&wcid->tx_pending.lock); +spin_lock (&wcid->tx_offchannel.lock); +skb_queue_splice_tail_init (&wcid->tx_offchannel, &list); +spin_unlock (&wcid->tx_offchannel.lock); +spin_unlock_bh (&phy->tx_lock);
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7925/mac.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7925/main.c +6 -1
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/tx.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/platform/x86/amd/pmc/pmc-quirks.c +14 -0
Lines of this file are not shown. View the raw message.
drivers/platform/x86/intel/tpmi_power_domains.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/thermal/mediatek/lvts_thermal.c +36 -14
50 lines not on this page · raw message
fs/btrfs/tree-log.c +53 -25
78 lines not on this page · raw message
fs/btrfs/zoned.c +35 -20
55 lines not on this page · raw message
include/linux/bpf.h +40 -20
60 lines not on this page · raw message
kernel/bpf/core.c +33 -17
50 lines not on this page · raw message
mm/slub.c +86 -56
142 lines not on this page · raw message
tools/perf/util/bpf-utils.c +39 -22
61 lines not on this page · raw message
tools/power/cpupower/utils/cpupower-set.c +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/drivers/net/hw/csum.py +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/bind_bhash.c +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/netfilter/nft_flowtable.sh +76 -37
113 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.