Linux 6.1.45
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.45 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/arm64/silicon-errata.rst | 4 Makefile | 2 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 2 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts | 2 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 2 arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 4 arch/arm64/boot/dts/freescale/imx8mm-venice-gw7903.dts | 4 arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts | 4 arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi | 2 arch/arm64/boot/dts/freescale/imx8mq.dtsi | 2 arch/arm64/kernel/fpsimd.c | 9 arch/arm64/kernel/ptrace.c | 8 arch/powerpc/include/asm/word-at-a-time.h | 2 arch/powerpc/kernel/trace/ftrace_mprofile.S | 9 arch/powerpc/mm/init_64.c | 3 arch/s390/kernel/sthyi.c | 6 arch/s390/kvm/intercept.c | 9 arch/x86/hyperv/hv_init.c | 21 ++ arch/x86/include/asm/cpufeatures.h | 1 arch/x86/include/asm/processor.h | 2 arch/x86/kernel/cpu/amd.c | 19 + arch/x86/kernel/traps.c | 2 drivers/block/rbd.c | 28 +- drivers/clk/imx/clk-imx93.c | 2 drivers/firmware/arm_scmi/mailbox.c | 4 drivers/firmware/arm_scmi/smc.c | 21 +- drivers/firmware/smccc/soc_id.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 104 +++++++--- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 10 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 89 ++++++-- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 8 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 1 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 15 + drivers/gpu/drm/amd/display/dc/core/dc_link.c | 5 drivers/gpu/drm/amd/include/atomfirmware.h | 63 +++++- drivers/gpu/drm/i915/display/intel_display.c | 28 -- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 8 drivers/gpu/drm/i915/gt/intel_gt_regs.h | 16 - drivers/gpu/drm/i915/gt/intel_lrc.c | 6 drivers/gpu/drm/i915/i915_active.c | 99 ++++++--- drivers/gpu/drm/i915/i915_request.c | 11 + drivers/gpu/drm/imx/ipuv3-crtc.c | 2 drivers/gpu/drm/ttm/ttm_bo.c | 3 drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 50 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 8 drivers/isdn/hardware/mISDN/hfcpci.c | 10 drivers/mtd/nand/raw/fsl_upm.c | 2 drivers/mtd/nand/raw/meson_nand.c | 3 drivers/mtd/nand/raw/omap_elm.c | 24 +- drivers/mtd/nand/raw/rockchip-nand-controller.c | 45 ++-- drivers/mtd/nand/spi/toshiba.c | 4 drivers/net/dsa/bcm_sf2.c | 8 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 59 +++-- drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 6 drivers/net/ethernet/intel/ice/ice_main.c | 18 + drivers/net/ethernet/korina.c | 3 drivers/net/ethernet/marvell/prestera/prestera_pci.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 4 drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec_fs.c | 1 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c | 10 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 20 - drivers/net/ethernet/mellanox/mlx5/core/eq.c | 2 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 103 +++++++-- drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h | 1 drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 29 ++ drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c | 5 drivers/net/ethernet/qlogic/qed/qed_dev_api.h | 16 + drivers/net/ethernet/qlogic/qed/qed_fcoe.c | 19 + drivers/net/ethernet/qlogic/qed/qed_fcoe.h | 17 + drivers/net/ethernet/qlogic/qed/qed_hw.c | 26 ++ drivers/net/ethernet/qlogic/qed/qed_iscsi.c | 19 + drivers/net/ethernet/qlogic/qed/qed_iscsi.h | 8 drivers/net/ethernet/qlogic/qed/qed_l2.c | 19 + drivers/net/ethernet/qlogic/qed/qed_l2.h | 24 ++ drivers/net/ethernet/qlogic/qed/qed_main.c | 6 drivers/net/ethernet/socionext/netsec.c | 11 + drivers/net/ethernet/xilinx/ll_temac_main.c | 12 - drivers/net/ipa/ipa_table.c | 24 +- drivers/net/tap.c | 2 drivers/net/tun.c | 2 drivers/net/usb/cdc_ether.c | 21 ++ drivers/net/usb/usbnet.c | 6 drivers/net/usb/zaurus.c | 21 ++ drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c | 6 drivers/s390/net/qeth_core.h | 1 drivers/s390/net/qeth_core_main.c | 2 drivers/s390/net/qeth_l2_main.c | 9 drivers/s390/net/qeth_l3_main.c | 8 drivers/s390/scsi/zfcp_fc.c | 6 drivers/scsi/storvsc_drv.c | 4 fs/btrfs/block-group.c | 51 +++- fs/btrfs/block-group.h | 4 fs/btrfs/free-space-tree.c | 24 +- fs/ceph/mds_client.c | 4 fs/ceph/mds_client.h | 5 fs/ceph/super.c | 10 fs/erofs/zdata.c | 7 fs/exfat/balloc.c | 6 fs/exfat/dir.c | 36 +-- fs/ext2/ext2.h | 12 - fs/ext2/super.c | 23 -- fs/f2fs/f2fs.h | 1 fs/f2fs/file.c | 5 fs/f2fs/node.c | 14 + fs/f2fs/super.c | 43 ++-- fs/file.c | 18 + fs/ntfs3/attrlist.c | 4 fs/open.c | 2 fs/super.c | 11 - fs/sysv/itree.c | 4 include/asm-generic/word-at-a-time.h | 2 include/linux/f2fs_fs.h | 1 include/net/inet_sock.h | 7 include/net/ip.h | 2 include/net/route.h | 4 include/net/vxlan.h | 4 io_uring/io_uring.c | 23 +- io_uring/timeout.c | 2 kernel/bpf/cpumap.c | 35 ++- kernel/events/core.c | 8 kernel/trace/bpf_trace.c | 17 + lib/Makefile | 6 lib/debugobjects.c | 9 lib/test_bitmap.c | 8 mm/memcontrol.c | 19 - net/bluetooth/l2cap_sock.c | 2 net/ceph/osd_client.c | 20 + net/core/bpf_sk_storage.c | 5 net/core/rtnetlink.c | 8 net/core/sock.c | 45 ++-- net/core/sock_map.c | 2 net/dcb/dcbnl.c | 2 net/dccp/ipv6.c | 4 net/ipv4/inet_diag.c | 4 net/ipv4/ip_output.c | 8 net/ipv4/ip_sockglue.c | 2 net/ipv4/raw.c | 2 net/ipv4/route.c | 4 net/ipv4/tcp_ipv4.c | 4 net/ipv4/tcp_metrics.c | 70 ++++-- net/ipv6/ip6mr.c | 2 net/ipv6/ping.c | 2 net/ipv6/raw.c | 6 net/ipv6/route.c | 7 net/ipv6/tcp_ipv6.c | 9 net/ipv6/udp.c | 4 net/l2tp/l2tp_ip6.c | 2 net/mptcp/sockopt.c | 2 net/netfilter/nft_socket.c | 2 net/netfilter/xt_socket.c | 4 net/packet/af_packet.c | 12 - net/sched/cls_fw.c | 1 net/sched/cls_route.c | 1 net/sched/cls_u32.c | 57 ++++- net/sched/sch_taprio.c | 15 + net/smc/af_smc.c | 2 net/unix/af_unix.c | 2 net/wireless/scan.c | 2 net/xdp/xsk.c | 2 net/xfrm/xfrm_policy.c | 2 rust/bindings/bindings_helper.h | 1 rust/kernel/allocator.rs | 74 +++++-- tools/perf/tests/shell/test_uprobe_from_different_cu.sh | 8 tools/testing/selftests/rseq/rseq.c | 28 ++ tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json | 25 ++ 166 files changed, 1597 insertions(+), 644 deletions(-)
Alan Stern (1):
net: usbnet: Fix WARNING in usbnet_start_xmit/usb_submit_urb
Aleksa Sarai (1):
open: make RESOLVE_CACHED correctly test for O_TMPFILE
Alex Elder (1):
net: ipa: only reset hashed tables when supported
Alexander Stein (1):
drm/imx/ipuv3: Fix front porch adjustment upon hactive aligning
Alexandra Winter (1):
s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
Amir Tzin (1):
net/mlx5e: Fix crash moving to switchdev mode when ntuple offload is set
Andi Shyti (1):
drm/i915/gt: Cleanup aux invalidation registers
Aneesh Kumar K.V (1):
powerpc/mm/altmap: Fix altmap boundary check
Arseniy Krasnov (1):
mtd: rawnand: meson: fix OOB available bytes for ECC
Benjamin Gaignard (1):
arm64: dts: freescale: Fix VPU G2 clock
Benjamin Poirier (1):
vxlan: Fix nexthop hash size
Boqun Feng (1):
rust: allocator: Prevent mis-aligned allocation
Borislav Petkov (AMD) (1):
x86/CPU/AMD: Do not leak quotient data after a division by 0
Chao Yu (2):
f2fs: fix to do sanity check on direct node in truncate_dnode()
f2fs: don't reset unchangable mount option in f2fs_remount()
Chengfeng Ye (1):
mISDN: hfcpci: Fix potential deadlock on &hc->lock
Christophe JAILLET (1):
mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
Cristian Marussi (1):
firmware: arm_scmi: Fix chan_free cleanup on SMC
Dan Carpenter (1):
net: ll_temac: fix error checking of irq_of_parse_and_map()
Dinh Nguyen (1):
arm64: dts: stratix10: fix incorrect I2C property for SCL signal
Eric Dumazet (16):
net: annotate data-races around sk->sk_reserved_mem
net: annotate data-race around sk->sk_txrehash
net: annotate data-races around sk->sk_max_pacing_rate
net: add missing READ_ONCE(sk->sk_rcvlowat) annotation
net: add missing READ_ONCE(sk->sk_sndbuf) annotation
net: add missing READ_ONCE(sk->sk_rcvbuf) annotation
net: annotate data-races around sk->sk_mark
net: add missing data-race annotations around sk->sk_peek_off
net: add missing data-race annotation for sk_ll_usec
net: annotate data-races around sk->sk_priority
tcp_metrics: fix addr_same() helper
tcp_metrics: annotate data-races around tm->tcpm_stamp
tcp_metrics: annotate data-races around tm->tcpm_lock
tcp_metrics: annotate data-races around tm->tcpm_vals[]
tcp_metrics: annotate data-races around tm->tcpm_net
tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopenFilipe Manana (1):
btrfs: remove BUG_ON()'s in add_new_free_space()
Gao Xiang (1):
erofs: fix wrong primary bvec selection on deduplicated extents
Geert Uytterhoeven (1):
clk: imx93: Propagate correct error in imx93_clocks_probe()
Georg Müller (1):
perf test uprobe_from_different_cu: Skip if there is no gcc
Greg Kroah-Hartman (2):
Revert "drm/i915: Disable DC states for all commits" Linux 6.1.45
Guchun Chen (1):
drm/ttm: check null pointer before accessing when swapping
Heiko Carstens (1):
KVM: s390: fix sthyi error handling
Hou Tao (2):
bpf, cpumap: Handle skb as well when clean up ptr_ring bpf, cpumap: Make sure kthread is running before map update returns
Hugo Villeneuve (1):
arm64: dts: imx8mn-var-som: add missing pull-up for onboard PHY reset pinmux
Ilan Peer (1):
wifi: cfg80211: Fix return value in scan logic
Ilya Dryomov (2):
libceph: fix potential hang in ceph_osdc_notify()
rbd: prevent busy loop when requesting exclusive lock
Jamal Hadi Salim (1):
net: sched: cls_u32: Fix match key mis-addressing
Jan Kara (2):
fs: Protect reconfiguration of sb read-write from racing writes
ext2: Drop fragment support
Janusz Krzysztofik (1):
drm/i915: Fix premature release of request's reusable memory
Jens Axboe (1):
io_uring: gate iowait schedule on having pending requests
Jianbo Liu (3):
net/mlx5e: Move representor neigh cleanup to profile cleanup_tx net/mlx5: fs_core: Make find_closest_ft more generic net/mlx5: fs_core: Skip the FTs in the same FS_TYPE_PRIO_CHAINS fs_prio
Jiri Olsa (2):
bpf: Disable preemption in bpf_perf_event_output
bpf: Disable preemption in bpf_event_output
Johan Jonker (2):
mtd: rawnand: rockchip: fix oobfree offset and description
mtd: rawnand: rockchip: Align hwecc vs. raw page helper layouts
Jonas Gorski (1):
prestera: fix fallback to previous version on same major version
Konstantin Khorenko (1):
qed: Fix scheduling in a tasklet while getting stats
Krzysztof Kozlowski (1):
firmware: arm_scmi: Drop OF node reference in the transport channel setup
Kuniyuki Iwashima (1):
net/sched: taprio: Limit TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME to INT_MAX.
Laszlo Ersek (2):
net: tun_chr_open(): set sk_uid from current_fsuid()
net: tap_open(): set sk_uid from current_fsuid()
Lijo Lazar (1):
drm/amdgpu: Use apt name for FW reserved region
Lin Ma (3):
bpf: Add length check for SK_DIAG_BPF_STORAGE_REQ_MAP_FD parsing
rtnetlink: let rtnl_bridge_setlink checks IFLA_BRIDGE_MODE length
net: dcb: choose correct policy to parse DCB_ATTR_BCN
Linus Torvalds (1):
file: reinstate f_pos locking optimization for regular files
Luben Tuikov (1):
drm/amdgpu: Remove unnecessary domain argument
Mark Brown (5):
net: netsec: Ignore 'phy-mode' on SynQuacer in DT mode arm64/fpsimd: Sync and zero pad FPSIMD state for streaming SVE arm64/fpsimd: Clear SME state in the target task when setting the VL arm64/fpsimd: Sync FPSIMD state with SVE for SME only systems arm64/ptrace: Don't enable SVE when setting streaming SVE
Michael Chan (1):
bnxt_en: Fix max_mtu setting for multi-buf XDP
Michael Kelley (2):
scsi: storvsc: Limit max_sectors for virtual Fibre Channel devices x86/hyperv: Disable IBT when hypercall page lacks ENDBR instruction
Namjae Jeon (1):
exfat: check if filename entries exceeds max filename length
Naveen N Rao (1):
powerpc/ftrace: Create a dummy stackframe to fix stack unwind
Olivier Maignial (1):
mtd: spinand: toshiba: Fix ecc_get_status
Paul Fertser (1):
wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
Pavel Begunkov (1):
io_uring: annotate offset timeout races
Peichen Huang (1):
drm/amd/display: skip CLEAR_PAYLOAD_ID_TABLE if device mst_en is 0
Peter Zijlstra (1):
perf: Fix function pointer case
Prince Kumar Maurya (1):
fs/sysv: Null check to prevent null-ptr-deref bug
Punit Agrawal (1):
firmware: smccc: Fix use of uninitialised results structure
Rafal Rogalski (1):
ice: Fix RDMA VSI removal during queue rebuild
Robin Murphy (4):
iommu/arm-smmu-v3: Work around MMU-600 erratum 1076982 iommu/arm-smmu-v3: Document MMU-700 erratum 2812531 iommu/arm-smmu-v3: Add explicit feature for nesting iommu/arm-smmu-v3: Document nesting-related errata
Rodrigo Siqueira (1):
drm/amd/display: Ensure that planes are in the same order
Roger Quadros (1):
mtd: rawnand: omap_elm: Fix incorrect type in assignment
Roman Gushchin (1):
mm: kmem: fix a NULL pointer dereference in obj_stock_flush_required()
Ross Maynard (1):
USB: zaurus: Add ID for A-300/B-500/C-700
Sean Christopherson (1):
selftests/rseq: Play nice with binaries statically linked against glibc 2.35+
Shay Drory (1):
net/mlx5: Free irqs only on shutdown callback
Somnath Kotur (1):
bnxt_en: Fix page pool logic for page size >= 64K
Steffen Maier (1):
scsi: zfcp: Defer fc_rport blocking until after ADISC response
Sungjong Seo (1):
exfat: release s_lock before calling dir_emit()
Sungwoo Kim (1):
Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb
Tetsuo Handa (2):
fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_load_attr_list()
debugobjects: Recheck debug_objects_enabled before reporting
Tim Harvey (2):
arm64: dts: imx8mm-venice-gw7903: disable disp_blk_ctrl
arm64: dts: imx8mm-venice-gw7904: disable disp_blk_ctrlTomas Glozar (1):
bpf: sockmap: Remove preempt_disable in sock_map_sk_acquire
Tong Liu01 (1):
drm/amdgpu: add vram reservation based on vram_usagebyfirmware_v2_2
Xiubo Li (1):
ceph: defer stopping mdsc delayed_work
Yangtao Li (1):
f2fs: fix to set flush_merge opt and show noflush_merge
Yashwanth Varakala (2):
arm64: dts: phycore-imx8mm: Label typo-fix of VPU
arm64: dts: phycore-imx8mm: Correction in gpio-line-names
Yuanjun Gong (3):
net/mlx5e: fix return value check in mlx5e_ipsec_remove_trailer()
net: dsa: fix value check in bcm_sf2_sw_probe()
net: korina: handle clk prepare error in korina_probe()
Yue Haibing (1):
ip6mr: Fix skb_under_panic in ip6mr_cache_report()
Yury Norov (1):
lib/bitmap: workaround const_eval test build failure
Zhengchao Shao (3):
net/mlx5e: fix double free in macsec_fs_tx_create_crypto_table_groups net/mlx5: DR, fix memory leak in mlx5dr_cmd_create_reformat_ctx net/mlx5: fix potential memory leak in mlx5e_init_rep_rx
gaoming (1):
exfat: use kvmalloc_array/kvfree instead of kmalloc_array/kfree
[email protected] (1):
word-at-a-time: use the same return type for has_zero regardless of endianness
valis (3):
net/sched: cls_u32: No longer copy tcf_result on update to avoid use-after-free net/sched: cls_fw: No longer copy tcf_result on update to avoid use-after-free net/sched: cls_route: No longer copy tcf_result on update to avoid use-after-free
Greg Kroah-Hartman
maintainerDocumentation/arm64/silicon-errata.rst +4 -0
@@ -141,6 +141,10 @@ stable kernels. +----------------+-----------------+-----------------+-----------------------------+ | ARM | MMU-500 | #841119,826419 | N/A | +----------------+-----------------+-----------------+-----------------------------+ +| ARM | MMU-600 | #1076982,1209401| N/A | ++----------------+-----------------+-----------------+-----------------------------+ +| ARM | MMU-700 | #2268618,2812531| N/A | ++----------------+-----------------+-----------------+-----------------------------+ +----------------+-----------------+-----------------+-----------------------------+ | Broadcom | Brahma-B53 | N/A | ARM64_ERRATUM_845719 | +----------------+-----------------+-----------------+-----------------------------+
Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 44 +SUBLEVEL = 45 EXTRAVERSION = NAME = Curry Ramen
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +1 -1
@@ -128,7 +128,7 @@ &i2c1 { status = "okay"; clock-frequency = <100000>; i2c-sda-falling-time-ns = <890>; /* hcnt */ - i2c-sdl-falling-time-ns = <890>; /* lcnt */ + i2c-scl-falling-time-ns = <890>; /* lcnt */ adc@14 { compatible = "lltc,ltc2497";
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts +1 -1
@@ -141,7 +141,7 @@ &i2c2 { status = "okay"; clock-frequency = <100000>; i2c-sda-falling-time-ns = <890>; /* hcnt */ - i2c-sdl-falling-time-ns = <890>; /* lcnt */ + i2c-scl-falling-time-ns = <890>; /* lcnt */ adc@14 { compatible = "lltc,ltc2497";
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +1 -1
@@ -141,7 +141,7 @@ can0: can@0 { }; &gpio1 { - gpio-line-names = "nINT_ETHPHY", "LED_RED", "WDOG_INT", "X_RTC_INT", + gpio-line-names = "", "LED_RED", "WDOG_INT", "X_RTC_INT", "", "", "", "RESET_ETHPHY", "CAN_nINT", "CAN_EN", "nENABLE_FLATLINK", "", "USB_OTG_VBUS_EN", "", "LED_GREEN", "LED_BLUE";
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +2 -2
@@ -111,7 +111,7 @@ som_flash: flash@0 { }; &gpio1 { - gpio-line-names = "nINT_ETHPHY", "", "WDOG_INT", "X_RTC_INT", + gpio-line-names = "", "", "WDOG_INT", "X_RTC_INT", "", "", "", "RESET_ETHPHY", "", "", "nENABLE_FLATLINK"; };
@@ -210,7 +210,7 @@ regulator-state-mem { }; }; - reg_vdd_gpu: buck3 { + reg_vdd_vpu: buck3 { regulator-always-on; regulator-boot-on; regulator-max-microvolt = <1000000>;
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7903.dts +4 -0
@@ -559,6 +559,10 @@ &pcie0 { status = "okay"; }; +&disp_blk_ctrl { + status = "disabled"; +}; + &pgc_mipi { status = "disabled"; };
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts +4 -0
@@ -617,6 +617,10 @@ &pcie0 { status = "okay"; }; +&disp_blk_ctrl { + status = "disabled"; +}; + &pgc_mipi { status = "disabled"; };
arch/arm64/boot/dts/freescale/imx8mn-var-som.dtsi +1 -1
@@ -351,7 +351,7 @@ MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f - MX8MN_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19 + MX8MN_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x159 >; };
arch/arm64/boot/dts/freescale/imx8mq.dtsi +1 -1
@@ -756,7 +756,7 @@ pgc_vpu: power-domain@6 { <&clk IMX8MQ_SYS1_PLL_800M>, <&clk IMX8MQ_VPU_PLL>; assigned-clock-rates = <600000000>, - <600000000>, + <300000000>, <800000000>, <0>; };
arch/arm64/kernel/fpsimd.c +5 -4
@@ -634,7 +634,7 @@ static void fpsimd_to_sve(struct task_struct *task)void *sst = task->thread.sve_state;struct user_fpsimd_state const *fst = &task->thread.uw.fpsimd_state; -if (!system_supports_sve ()) +if (!system_supports_sve () && !system_supports_sme ())return ; vq =sve_vq_from_vl (thread_get_cur_vl (&task->thread));
@@ -660,7 +660,7 @@ static void sve_to_fpsimd(struct task_struct *task)unsigned int i;__uint128_t const *p; -if (!system_supports_sve ()) +if (!system_supports_sve () && !system_supports_sme ())return ; vl =thread_get_cur_vl (&task->thread);
@@ -791,7 +791,8 @@ void sve_sync_from_fpsimd_zeropad(struct task_struct *task)void *sst = task->thread.sve_state;struct user_fpsimd_state const *fst = &task->thread.uw.fpsimd_state; -if (!test_tsk_thread_flag (task,TIF_SVE )) +if (!test_tsk_thread_flag (task,TIF_SVE ) && + !thread_sm_enabled (&task->thread))return ; vq =sve_vq_from_vl (thread_get_cur_vl (&task->thread));
@@ -863,7 +864,7 @@ int vec_set_vector_length(struct task_struct *task, enum vec_type type,*/ task->thread.svcr &= ~(SVCR_SM_MASK |SVCR_ZA_MASK ); -clear_thread_flag (TIF_SME ); +clear_tsk_thread_flag (task,TIF_SME ); free_sme = true; } }
arch/arm64/kernel/ptrace.c +5 -3
@@ -937,11 +937,13 @@ static int sve_set_common(struct task_struct *target,/* * Ensure target->thread.sve_state is up to date with target's * FPSIMD regs, so that a short copyin leaves trailing -* registers unmodified. Always enable SVE even if going into -* streaming mode. +* registers unmodified. Only enable SVE if we are +* configuring normal SVE, a system with streaming SVE may not +* have normal SVE. */ fpsimd_sync_to_sve (target); -set_tsk_thread_flag (target,TIF_SVE ); +if (type ==ARM64_VEC_SVE ) +set_tsk_thread_flag (target,TIF_SVE );BUILD_BUG_ON (SVE_PT_SVE_OFFSET !=sizeof (header)); start =SVE_PT_SVE_OFFSET ;
arch/powerpc/include/asm/word-at-a-time.h +1 -1
@@ -34,7 +34,7 @@ static inline long find_zero(unsigned long mask)return leading_zero_bits >>3 ; } -static inline bool has_zero (unsigned long val,unsigned long *data,const struct word_at_a_time *c) +static inline unsigned long has_zero (unsigned long val,unsigned long *data,const struct word_at_a_time *c) {unsigned long rhs = val | c->low_bits; *data = rhs;
arch/powerpc/kernel/trace/ftrace_mprofile.S +7 -2
@@ -33,6 +33,9 @@ * and then arrange for the ftrace function to be called. */ .macro ftrace_regs_entry allregs + /* Create a minimal stack frame for representing B */ + PPC_STLU r1, -STACK_FRAME_MIN_SIZE(r1) + /* Create our stack frame + pt_regs */ PPC_STLU r1,-SWITCH_FRAME_SIZE(r1)
@@ -42,7 +45,7 @@ #ifdef CONFIG_PPC64 /* Save the original return address in A's stack frame */ - std r0, LRSAVE+SWITCH_FRAME_SIZE(r1) + std r0, LRSAVE+SWITCH_FRAME_SIZE+STACK_FRAME_MIN_SIZE(r1) /* Ok to continue? */ lbz r3, PACA_FTRACE_ENABLED(r13) cmpdi r3, 0
@@ -77,6 +80,8 @@ mflr r7 /* Save it as pt_regs->nip */ PPC_STL r7, _NIP(r1) + /* Also save it in B's stackframe header for proper unwind */ + PPC_STL r7, LRSAVE+SWITCH_FRAME_SIZE(r1) /* Save the read LR in pt_regs->link */ PPC_STL r0, _LINK(r1)
@@ -142,7 +147,7 @@ #endif /* Pop our stack frame */ - addi r1, r1, SWITCH_FRAME_SIZE + addi r1, r1, SWITCH_FRAME_SIZE+STACK_FRAME_MIN_SIZE #ifdef CONFIG_LIVEPATCH_64 /* Based on the cmpd above, if the NIP was altered handle livepatch */
arch/powerpc/mm/init_64.c +1 -2
@@ -314,8 +314,7 @@ void __ref vmemmap_free(unsigned long start, unsigned long end, start =ALIGN_DOWN (start, page_size);if (altmap) { alt_start = altmap->base_pfn; - alt_end = altmap->base_pfn + altmap->reserve + - altmap->free + altmap->alloc + altmap->align; + alt_end = altmap->base_pfn + altmap->reserve + altmap->free; }pr_debug ("vmemmap_free %lx...%lx\n" , start, end);
arch/s390/kernel/sthyi.c +3 -3
@@ -459,9 +459,9 @@ static int sthyi_update_cache(u64 *rc)* * Fills the destination with system information returned by the STHYI * instruction. The data is generated by emulation or execution of STHYI, -* if available. The return value is the condition code that would be -* returned, the rc parameter is the return code which is passed in -* register R2 + 1. +* if available. The return value is either a negative error value or +* the condition code that would be returned, the rc parameter is the +* return code which is passed in register R2 + 1. */ int sthyi_fill (void *dst,u64 *rc) {
arch/s390/kvm/intercept.c +6 -3
@@ -389,8 +389,8 @@ static int handle_partial_execution(struct kvm_vcpu *vcpu)*/ int handle_sthyi (struct kvm_vcpu *vcpu) { -int reg1, reg2, r =0 ; -u64 code, addr, cc =0 , rc =0 ; +int reg1, reg2, cc =0 , r =0 ; +u64 code, addr, rc =0 ;struct sthyi_sctns *sctns =NULL ;if (!test_kvm_facility (vcpu->kvm,74 ))
@@ -421,7 +421,10 @@ int handle_sthyi(struct kvm_vcpu *vcpu)return -ENOMEM ; cc =sthyi_fill (sctns, &rc); - +if (cc <0 ) { +free_page ((unsigned long )sctns); +return cc; + } out:if (!cc) {if (kvm_s390_pv_cpu_is_protected (vcpu)) {
arch/x86/hyperv/hv_init.c +21 -0
@@ -14,6 +14,7 @@#include <asm/apic.h> #include <asm/desc.h> #include <asm/sev.h> +#include <asm/ibt.h> #include <asm/hypervisor.h> #include <asm/hyperv-tlfs.h> #include <asm/mshyperv.h>
@@ -467,6 +468,26 @@ void __init hyperv_init(void)wrmsrl (HV_X64_MSR_HYPERCALL , hypercall_msr.as_uint64); } +/* +* Some versions of Hyper-V that provide IBT in guest VMs have a bug +* in that there's no ENDBR64 instruction at the entry to the +* hypercall page. Because hypercalls are invoked via an indirect call +* to the hypercall page, all hypercall attempts fail when IBT is +* enabled, and Linux panics. For such buggy versions, disable IBT. +* +* Fixed versions of Hyper-V always provide ENDBR64 on the hypercall +* page, so if future Linux kernel versions enable IBT for 32-bit +* builds, additional hypercall page hackery will be required here +* to provide an ENDBR32. +*/ +#ifdef CONFIG_X86_KERNEL_IBT +if (cpu_feature_enabled (X86_FEATURE_IBT ) && + *(u32 *)hv_hypercall_pg !=gen_endbr ()) { +setup_clear_cpu_cap (X86_FEATURE_IBT ); +pr_warn ("Hyper-V: Disabling IBT because of Hyper-V bug\n" ); + } +#endif +/* * hyperv_init() is called before LAPIC is initialized: see * apic_intr_mode_init() -> x86_platform.apic_post_init() and
arch/x86/include/asm/cpufeatures.h +1 -0
@@ -476,4 +476,5 @@/* BUG word 2 */ #define X86_BUG_SRSO X86_BUG(1*32 + 0)/* AMD SRSO bug */ +#define X86_BUG_DIV0 X86_BUG(1*32 + 1)/* AMD DIV0 speculation bug */ #endif /* _ASM_X86_CPUFEATURES_H */
arch/x86/include/asm/processor.h +2 -0
@@ -801,10 +801,12 @@ extern u16 get_llc_id(unsigned int cpu);extern u32 amd_get_nodes_per_socket (void );extern u32 amd_get_highest_perf (void );extern bool cpu_has_ibpb_brtype_microcode (void ); +extern void amd_clear_divider (void );#else static inline u32 amd_get_nodes_per_socket (void ) {return 0 ; }static inline u32 amd_get_highest_perf (void ) {return 0 ; }static inline bool cpu_has_ibpb_brtype_microcode (void ) {return false; } +static inline void amd_clear_divider (void ) { }#endif #define for_each_possible_hypervisor_cpuid_base (function) \
arch/x86/kernel/cpu/amd.c +19 -0
@@ -75,6 +75,10 @@ static const int amd_zenbleed[] =AMD_MODEL_RANGE (0x17 ,0x60 ,0x0 ,0x7f ,0xf ), AMD_MODEL_RANGE(0x17, 0xa0, 0x0, 0xaf, 0xf)); +static const int amd_div0[] = +AMD_LEGACY_ERRATUM (AMD_MODEL_RANGE (0x17 ,0x00 ,0x0 ,0x2f ,0xf ), +AMD_MODEL_RANGE (0x17 ,0x50 ,0x0 ,0x5f ,0xf )); +static bool cpu_has_amd_erratum (struct cpuinfo_x86 *cpu,const int *erratum) {int osvw_id = *erratum++;
@@ -1115,6 +1119,11 @@ static void init_amd(struct cpuinfo_x86 *c)check_null_seg_clears_base (c);zenbleed_check (c); + +if (cpu_has_amd_erratum (c, amd_div0)) { +pr_notice_once ("AMD Zen1 DIV0 bug detected. Disable SMT for full protection.\n" ); +setup_force_cpu_bug (X86_BUG_DIV0 ); + } }#ifdef CONFIG_X86_32
@@ -1275,3 +1284,13 @@ void amd_check_microcode(void) {on_each_cpu (zenbleed_check_cpu,NULL ,1 ); } + +/* +* Issue a DIV 0/1 insn to clear any division data from previous DIV +* operations. +*/ +void noinstr amd_clear_divider(void) +{ + asm volatile(ALTERNATIVE("", "div %2\n\t", X86_BUG_DIV0) + :: "a" (0), "d" (0), "r" (1)); +}
arch/x86/kernel/traps.c +2 -0
@@ -206,6 +206,8 @@ DEFINE_IDTENTRY(exc_divide_error) {do_error_trap (regs,0 ,"divide error" ,X86_TRAP_DE ,SIGFPE ,FPE_INTDIV ,error_get_trap_addr (regs)); + +amd_clear_divider (); }DEFINE_IDTENTRY (exc_overflow)
drivers/block/rbd.c +15 -13
@@ -3676,7 +3676,7 @@ static int rbd_lock(struct rbd_device *rbd_dev) ret =ceph_cls_lock (osdc, &rbd_dev->header_oid, &rbd_dev->header_oloc,RBD_LOCK_NAME ,CEPH_CLS_LOCK_EXCLUSIVE , cookie,RBD_LOCK_TAG ,"" ,0 ); -if (ret) +if (ret && ret != -EEXIST )return ret;__rbd_lock (rbd_dev, cookie);
@@ -3879,7 +3879,7 @@ static struct ceph_locker *get_lock_owner_info(struct rbd_device *rbd_dev) &rbd_dev->header_oloc,RBD_LOCK_NAME , &lock_type, &lock_tag, &lockers, &num_lockers);if (ret) { -rbd_warn (rbd_dev,"failed to retrieve lockers: %d" , ret); +rbd_warn (rbd_dev,"failed to get header lockers: %d" , ret);return ERR_PTR (ret); }
@@ -3941,8 +3941,10 @@ static int find_watcher(struct rbd_device *rbd_dev, ret =ceph_osdc_list_watchers (osdc, &rbd_dev->header_oid, &rbd_dev->header_oloc, &watchers, &num_watchers); -if (ret) +if (ret) { +rbd_warn (rbd_dev,"failed to get watchers: %d" , ret);return ret; + }sscanf (locker->id.cookie,RBD_LOCK_COOKIE_PREFIX " %llu" , &cookie);for (i =0 ; i < num_watchers; i++) {
@@ -3986,8 +3988,12 @@ static int rbd_try_lock(struct rbd_device *rbd_dev) locker = refreshed_locker =NULL ; ret =rbd_lock (rbd_dev); -if (ret != -EBUSY ) +if (!ret) + goto out; +if (ret != -EBUSY ) { +rbd_warn (rbd_dev,"failed to lock header: %d" , ret); goto out; + }/* determine if the current lock holder is still alive */ locker =get_lock_owner_info (rbd_dev);
@@ -4090,11 +4096,8 @@ static int rbd_try_acquire_lock(struct rbd_device *rbd_dev) ret =rbd_try_lock (rbd_dev);if (ret <0 ) { -rbd_warn (rbd_dev,"failed to lock header: %d" , ret); -if (ret == -EBLOCKLISTED ) - goto out; - - ret =1 ;/* request lock anyway */ +rbd_warn (rbd_dev,"failed to acquire lock: %d" , ret); + goto out; }if (ret >0 ) {up_write (&rbd_dev->lock_rwsem);
@@ -6628,12 +6631,11 @@ static int rbd_add_acquire_lock(struct rbd_device *rbd_dev)cancel_delayed_work_sync (&rbd_dev->lock_dwork);if (!ret) ret = -ETIMEDOUT ; - } -if (ret) { -rbd_warn (rbd_dev,"failed to acquire exclusive lock: %ld" , ret); -return ret; +rbd_warn (rbd_dev,"failed to acquire lock: %ld" , ret); } +if (ret) +return ret;/* * The lock may have been released by now, unless automatic lock
drivers/clk/imx/clk-imx93.c +1 -1
@@ -288,7 +288,7 @@ static int imx93_clocks_probe(struct platform_device *pdev) anatop_base =devm_of_iomap (dev, np,0 ,NULL );of_node_put (np);if (WARN_ON (IS_ERR (anatop_base))) { - ret =PTR_ERR (base); + ret =PTR_ERR (anatop_base); goto unregister_hws; }
drivers/firmware/arm_scmi/mailbox.c +3 -1
@@ -106,8 +106,10 @@ static int mailbox_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,return -ENOMEM ; shmem =of_parse_phandle (cdev->of_node,"shmem" , idx); -if (!of_device_is_compatible (shmem,"arm,scmi-shmem" )) +if (!of_device_is_compatible (shmem,"arm,scmi-shmem" )) { +of_node_put (shmem);return -ENXIO ; + } ret =of_address_to_resource (shmem,0 , &res);of_node_put (shmem);
drivers/firmware/arm_scmi/smc.c +14 -7
@@ -23,6 +23,7 @@/** * struct scmi_smc - Structure representing a SCMI smc transport * +* @irq: An optional IRQ for completion * @cinfo: SCMI channel info * @shmem: Transmit/Receive shared memory area * @shmem_lock: Lock to protect access to Tx/Rx shared memory area.
@@ -33,6 +34,7 @@*/ struct scmi_smc { +int irq;struct scmi_chan_info *cinfo;struct scmi_shared_mem __iomem *shmem;/* Protect access to shmem area */
@@ -106,7 +108,7 @@ static int smc_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,struct resource res;struct device_node *np;u32 func_id; -int ret, irq; +int ret;if (!tx)return -ENODEV ;
@@ -116,8 +118,10 @@ static int smc_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,return -ENOMEM ; np =of_parse_phandle (cdev->of_node,"shmem" ,0 ); -if (!of_device_is_compatible (np,"arm,scmi-shmem" )) +if (!of_device_is_compatible (np,"arm,scmi-shmem" )) { +of_node_put (np);return -ENXIO ; + } ret =of_address_to_resource (np,0 , &res);of_node_put (np);
@@ -142,11 +146,10 @@ static int smc_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,* completion of a message is signaled by an interrupt rather than by * the return of the SMC call. */ - irq =of_irq_get_byname (cdev->of_node,"a2p" ); -if (irq >0 ) { - ret =devm_request_irq (dev, irq, smc_msg_done_isr, -IRQF_NO_SUSPEND , -dev_name (dev), scmi_info); + scmi_info->irq =of_irq_get_byname (cdev->of_node,"a2p" ); +if (scmi_info->irq >0 ) { + ret =request_irq (scmi_info->irq, smc_msg_done_isr, +IRQF_NO_SUSPEND ,dev_name (dev), scmi_info);if (ret) {dev_err (dev,"failed to setup SCMI smc irq\n" );return ret;
@@ -168,6 +171,10 @@ static int smc_chan_free(int id, void *p, void *data)struct scmi_chan_info *cinfo = p;struct scmi_smc *scmi_info = cinfo->transport_info; +/* Ignore any possible further reception on the IRQ path */ +if (scmi_info->irq >0 ) +free_irq (scmi_info->irq, scmi_info); + cinfo->transport_info =NULL ; scmi_info->cinfo =NULL ;
drivers/firmware/smccc/soc_id.c +2 -3
@@ -34,7 +34,6 @@ static struct soc_device_attribute *soc_dev_attr;static int __init smccc_soc_init (void ) { -struct arm_smccc_res res;int soc_id_rev, soc_id_version;static char soc_id_str[20 ], soc_id_rev_str[12 ];static char soc_id_jep106_id_str[12 ];
@@ -49,13 +48,13 @@ static int __init smccc_soc_init(void) }if (soc_id_version <0 ) { -pr_err ("ARCH_SOC_ID(0) returned error: %lx\n" , res.a0); +pr_err ("Invalid SoC Version: %x\n" , soc_id_version);return -EINVAL ; } soc_id_rev =arm_smccc_get_soc_id_revision ();if (soc_id_rev <0 ) { -pr_err ("ARCH_SOC_ID(1) returned error: %lx\n" , res.a0); +pr_err ("Invalid SoC Revision: %x\n" , soc_id_rev);return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +81 -23
120 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +5 -5
@@ -347,17 +347,16 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev,* @adev: amdgpu device object * @offset: offset of the BO * @size: size of the BO -* @domain: where to place it * @bo_ptr: used to initialize BOs in structures * @cpu_addr: optional CPU address mapping * -* Creates a kernel BO at a specific offset in the address space of the domain. +* Creates a kernel BO at a specific offset in VRAM. * * Returns: * 0 on success, negative error code otherwise. */ int amdgpu_bo_create_kernel_at (struct amdgpu_device *adev, -uint64_t offset,uint64_t size,uint32_t domain, +uint64_t offset,uint64_t size,struct amdgpu_bo **bo_ptr,void **cpu_addr) {struct ttm_operation_ctx ctx = { false, false };
@@ -367,8 +366,9 @@ int amdgpu_bo_create_kernel_at(struct amdgpu_device *adev, offset &=PAGE_MASK ; size =ALIGN (size,PAGE_SIZE ); - r =amdgpu_bo_create_reserved (adev, size,PAGE_SIZE , domain, bo_ptr, -NULL , cpu_addr); + r =amdgpu_bo_create_reserved (adev, size,PAGE_SIZE , +AMDGPU_GEM_DOMAIN_VRAM , bo_ptr,NULL , + cpu_addr);if (r)return r;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +1 -1
@@ -284,7 +284,7 @@ int amdgpu_bo_create_kernel(struct amdgpu_device *adev, u32 domain, struct amdgpu_bo **bo_ptr, u64 *gpu_addr, void **cpu_addr);int amdgpu_bo_create_kernel_at (struct amdgpu_device *adev, -uint64_t offset,uint64_t size,uint32_t domain, +uint64_t offset,uint64_t size,struct amdgpu_bo **bo_ptr,void **cpu_addr); int amdgpu_bo_create_user(struct amdgpu_device *adev, struct amdgpu_bo_param *bp,
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +69 -20
182 lines not on this page · raw message
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +7 -1
@@ -78,7 +78,8 @@ struct amdgpu_mman {/* discovery */ uint8_t *discovery_bin;uint32_t discovery_tmr_size; -struct amdgpu_bo *discovery_memory; +/* fw reserved memory */ +struct amdgpu_bo *fw_reserved_memory;/* firmware VRAM reservation */ u64 fw_vram_usage_start_offset;
@@ -86,6 +87,11 @@ struct amdgpu_mman {struct amdgpu_bo *fw_vram_usage_reserved_bo;void *fw_vram_usage_va; +/* driver VRAM reservation */ +u64 drv_vram_usage_start_offset; +u64 drv_vram_usage_size; +struct amdgpu_bo *drv_vram_usage_reserved_bo; +/* PAGE_SIZE'd BO for process memory r/w over SDMA. */ struct amdgpu_bo *sdma_access_bo;void *sdma_access_ptr;
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +0 -1
@@ -391,7 +391,6 @@ static void amdgpu_virt_ras_reserve_bps(struct amdgpu_device *adev)*/ if (amdgpu_bo_create_kernel_at (adev, bp <<AMDGPU_GPU_PAGE_SHIFT ,AMDGPU_GPU_PAGE_SIZE , -AMDGPU_GEM_DOMAIN_VRAM , &bo,NULL ))DRM_DEBUG ("RAS WARN: reserve vram for retired page %llx fail\n" , bp);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +15 -0
@@ -351,6 +351,19 @@ static inline bool is_dc_timing_adjust_needed(struct dm_crtc_state *old_state,return false; } +static inline void reverse_planes_order (struct dc_surface_update *array_of_surface_update, +int planes_count) +{ +int i, j; +struct dc_surface_update surface_updates_temp; + +for (i =0 , j = planes_count -1 ; i < j; i++, j--) { + surface_updates_temp = array_of_surface_update[i]; + array_of_surface_update[i] = array_of_surface_update[j]; + array_of_surface_update[j] = surface_updates_temp; + } +} +/** * update_planes_and_stream_adapter() - Send planes to be updated in DC *
@@ -367,6 +380,8 @@ static inline bool update_planes_and_stream_adapter(struct dc *dc,struct dc_stream_update *stream_update, struct dc_surface_update *array_of_surface_update) { +reverse_planes_order (array_of_surface_update ,planes_count ); +/* * Previous frame finished and HW is ready for optimization. */
drivers/gpu/drm/amd/display/dc/core/dc_link.c +4 -1
@@ -2092,6 +2092,7 @@ static enum dc_status enable_link_dp_mst( struct pipe_ctx *pipe_ctx) {struct dc_link *link = pipe_ctx->stream->link; +unsigned char mstm_cntl;/* sink signal type after MST branch is MST. Multiple MST sinks * share one link. Link DP PHY is enable or training only once.
@@ -2100,7 +2101,9 @@ static enum dc_status enable_link_dp_mst(return DC_OK ;/* clear payload table */ -dm_helpers_dp_mst_clear_payload_allocation_table (link->ctx, link); +core_link_read_dpcd (link,DP_MSTM_CTRL , &mstm_cntl,1 ); +if (mstm_cntl &DP_MST_EN ) +dm_helpers_dp_mst_clear_payload_allocation_table (link->ctx, link);/* to make sure the pending down rep can be processed * before enabling the link
drivers/gpu/drm/amd/include/atomfirmware.h +54 -9
74 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display.c +3 -25
@@ -7123,8 +7123,6 @@ static void intel_update_crtc(struct intel_atomic_state *state,intel_fbc_update (state, crtc); -drm_WARN_ON (&i915->drm, !intel_display_power_is_enabled (i915,POWER_DOMAIN_DC_OFF )); -if (!modeset && (new_crtc_state->uapi.color_mgmt_changed || new_crtc_state->update_pipe))
@@ -7501,28 +7499,8 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)drm_atomic_helper_wait_for_dependencies (&state->base);drm_dp_mst_atomic_wait_for_dependencies (&state->base); -/* -* During full modesets we write a lot of registers, wait -* for PLLs, etc. Doing that while DC states are enabled -* is not a good idea. -* -* During fastsets and other updates we also need to -* disable DC states due to the following scenario: -* 1. DC5 exit and PSR exit happen -* 2. Some or all _noarm() registers are written -* 3. Due to some long delay PSR is re-entered -* 4. DC5 entry -> DMC saves the already written new -* _noarm() registers and the old not yet written -* _arm() registers -* 5. DC5 exit -> DMC restores a mixture of old and -* new register values and arms the update -* 6. PSR exit -> hardware latches a mixture of old and -* new register values -> corrupted frame, or worse -* 7. New _arm() registers are finally written -* 8. Hardware finally latches a complete set of new -* register values, and subsequent frames will be OK again -*/ - wakeref =intel_display_power_get (dev_priv,POWER_DOMAIN_DC_OFF ); +if (state->modeset) + wakeref =intel_display_power_get (dev_priv,POWER_DOMAIN_MODESET );intel_atomic_prepare_plane_clear_colors (state);
@@ -7661,8 +7639,8 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)* the culprit. */ intel_uncore_arm_unclaimed_mmio_detection (&dev_priv->uncore); +intel_display_power_put (dev_priv,POWER_DOMAIN_MODESET , wakeref); } -intel_display_power_put (dev_priv,POWER_DOMAIN_DC_OFF , wakeref);intel_runtime_pm_put (&dev_priv->runtime_pm, state->wakeref);/*
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +4 -4
@@ -256,8 +256,8 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)if (!HAS_FLAT_CCS (rq->engine->i915)) {/* hsdes: 1809175790 */ - cs =gen12_emit_aux_table_inv (rq->engine->gt, - cs,GEN12_GFX_CCS_AUX_NV ); + cs =gen12_emit_aux_table_inv (rq->engine->gt, cs, +GEN12_CCS_AUX_INV ); } *cs++ =preparser_disable (false);
@@ -317,10 +317,10 @@ int gen12_emit_flush_xcs(struct i915_request *rq, u32 mode)if (aux_inv) {/* hsdes: 1809175790 */ if (rq->engine->class ==VIDEO_DECODE_CLASS ) cs =gen12_emit_aux_table_inv (rq->engine->gt, - cs,GEN12_VD0_AUX_NV ); + cs,GEN12_VD0_AUX_INV );else cs =gen12_emit_aux_table_inv (rq->engine->gt, - cs,GEN12_VE0_AUX_NV ); + cs,GEN12_VE0_AUX_INV ); }if (mode &EMIT_INVALIDATE )
drivers/gpu/drm/i915/gt/intel_gt_regs.h +8 -8
@@ -301,9 +301,11 @@#define GEN8_PRIVATE_PAT_HI _MMIO(0x40e0 + 4)#define GEN10_PAT_INDEX (index) _MMIO(0x40e0 + (index) * 4)#define BSD_HWS_PGA_GEN7 _MMIO(0x4180) -#define GEN12_GFX_CCS_AUX_NV _MMIO(0x4208) -#define GEN12_VD0_AUX_NV _MMIO(0x4218) -#define GEN12_VD1_AUX_NV _MMIO(0x4228) + +#define GEN12_CCS_AUX_INV _MMIO(0x4208) +#define GEN12_VD0_AUX_INV _MMIO(0x4218) +#define GEN12_VE0_AUX_INV _MMIO(0x4238) +#define GEN12_BCS0_AUX_INV _MMIO(0x4248)#define GEN8_RTCR _MMIO(0x4260)#define GEN8_M1TCR _MMIO(0x4264)
@@ -311,14 +313,12 @@#define GEN8_BTCR _MMIO(0x426c)#define GEN8_VTCR _MMIO(0x4270) -#define GEN12_VD2_AUX_NV _MMIO(0x4298) -#define GEN12_VD3_AUX_NV _MMIO(0x42a8) -#define GEN12_VE0_AUX_NV _MMIO(0x4238) -#define BLT_HWS_PGA_GEN7 _MMIO(0x4280) -#define GEN12_VE1_AUX_NV _MMIO(0x42b8) +#define GEN12_VD2_AUX_INV _MMIO(0x4298) +#define GEN12_CCS0_AUX_INV _MMIO(0x42c8)#define AUX_INV REG_BIT(0) +#define VEBOX_HWS_PGA_GEN7 _MMIO(0x4380)#define GEN12_AUX_ERR_DBG _MMIO(0x43f4)
drivers/gpu/drm/i915/gt/intel_lrc.c +3 -3
@@ -1299,7 +1299,7 @@ gen12_emit_indirect_ctx_rcs(const struct intel_context *ce, u32 *cs)/* hsdes: 1809175790 */ if (!HAS_FLAT_CCS (ce->engine->i915)) cs =gen12_emit_aux_table_inv (ce->engine->gt, - cs,GEN12_GFX_CCS_AUX_NV ); + cs,GEN12_CCS_AUX_INV );/* Wa_16014892111 */ if (IS_DG2 (ce->engine->i915))
@@ -1326,10 +1326,10 @@ gen12_emit_indirect_ctx_xcs(const struct intel_context *ce, u32 *cs)if (!HAS_FLAT_CCS (ce->engine->i915)) {if (ce->engine->class ==VIDEO_DECODE_CLASS ) cs =gen12_emit_aux_table_inv (ce->engine->gt, - cs,GEN12_VD0_AUX_NV ); + cs,GEN12_VD0_AUX_INV );else if (ce->engine->class ==VIDEO_ENHANCEMENT_CLASS ) cs =gen12_emit_aux_table_inv (ce->engine->gt, - cs,GEN12_VE0_AUX_NV ); + cs,GEN12_VE0_AUX_INV ); }return cs;
drivers/gpu/drm/i915/i915_active.c +70 -29
146 lines not on this page · raw message
drivers/gpu/drm/i915/i915_request.c +11 -0
@@ -1647,6 +1647,11 @@ __i915_request_ensure_parallel_ordering(struct i915_request *rq,request_to_parent (rq)->parallel.last_rq =i915_request_get (rq); +/* +* Users have to put a reference potentially got by +* __i915_active_fence_set() to the returned request +* when no longer needed +*/ return to_request (__i915_active_fence_set (&timeline->last_request, &rq->fence)); }
@@ -1693,6 +1698,10 @@ __i915_request_ensure_ordering(struct i915_request *rq, 0); } +/* +* Users have to put the reference to prev potentially got +* by __i915_active_fence_set() when no longer needed +*/ return prev; }
@@ -1736,6 +1745,8 @@ __i915_request_add_to_timeline(struct i915_request *rq) prev =__i915_request_ensure_ordering (rq, timeline); else prev =__i915_request_ensure_parallel_ordering (rq, timeline); +if (prev) +i915_request_put (prev);/* * Make sure that no request gazumped us - if it was allocated after
drivers/gpu/drm/imx/ipuv3-crtc.c +1 -1
@@ -310,7 +310,7 @@ static void ipu_crtc_mode_set_nofb(struct drm_crtc *crtc)dev_warn (ipu_crtc->dev,"8-pixel align hactive %d -> %d\n" , sig_cfg.mode.hactive, new_hactive); - sig_cfg.mode.hfront_porch = new_hactive - sig_cfg.mode.hactive; + sig_cfg.mode.hfront_porch -= new_hactive - sig_cfg.mode.hactive; sig_cfg.mode.hactive = new_hactive; }
drivers/gpu/drm/ttm/ttm_bo.c +2 -1
@@ -552,7 +552,8 @@ static bool ttm_bo_evict_swapout_allowable(struct ttm_buffer_object *bo,if (bo->pin_count) { *locked = false; - *busy = false; +if (busy) + *busy = false;return false; }
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +50 -0
68 lines not on this page · raw message
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h +8 -0
@@ -69,6 +69,12 @@#define IDR5_VAX GENMASK(11, 10)#define IDR5_VAX_52_BIT 1 +#define ARM_SMMU_IIDR 0x18 +#define IIDR_PRODUCTID GENMASK(31, 20) +#define IIDR_VARIANT GENMASK(19, 16) +#define IIDR_REVISION GENMASK(15, 12) +#define IIDR_IMPLEMENTER GENMASK(11, 0) +#define ARM_SMMU_CR0 0x20#define CR0_ATSCHK (1 << 4)#define CR0_CMDQEN (1 << 3)
@@ -639,11 +645,13 @@ struct arm_smmu_device {#define ARM_SMMU_FEAT_BTM (1 << 16)#define ARM_SMMU_FEAT_SVA (1 << 17)#define ARM_SMMU_FEAT_E2H (1 << 18) +#define ARM_SMMU_FEAT_NESTING (1 << 19)u32 features;#define ARM_SMMU_OPT_SKIP_PREFETCH (1 << 0)#define ARM_SMMU_OPT_PAGE0_REGS_ONLY (1 << 1)#define ARM_SMMU_OPT_MSIPOLL (1 << 2) +#define ARM_SMMU_OPT_CMDQ_FORCE_SYNC (1 << 3)u32 options;struct arm_smmu_cmdq cmdq;
drivers/isdn/hardware/mISDN/hfcpci.c +5 -5
@@ -839,7 +839,7 @@ hfcpci_fill_fifo(struct bchannel *bch) *z1t =cpu_to_le16 (new_z1);/* now send data */ if (bch->tx_idx < bch->tx_skb->len)return ; -dev_kfree_skb (bch->tx_skb); +dev_kfree_skb_any (bch->tx_skb);if (get_next_bframe (bch)) goto next_t_frame;return ;
@@ -895,7 +895,7 @@ hfcpci_fill_fifo(struct bchannel *bch) } bz->za[new_f1].z1 =cpu_to_le16 (new_z1);/* for next buffer */ bz->f1 = new_f1;/* next frame */ -dev_kfree_skb (bch->tx_skb); +dev_kfree_skb_any (bch->tx_skb);get_next_bframe (bch); }
@@ -1119,7 +1119,7 @@ tx_birq(struct bchannel *bch)if (bch->tx_skb && bch->tx_idx < bch->tx_skb->len)hfcpci_fill_fifo (bch);else { -dev_kfree_skb (bch->tx_skb); +dev_kfree_skb_any (bch->tx_skb);if (get_next_bframe (bch))hfcpci_fill_fifo (bch); }
@@ -2277,7 +2277,7 @@ _hfcpci_softirq(struct device *dev, void *unused)return 0 ;if (hc->hw.int_m2 &HFCPCI_IRQ_ENABLE ) { -spin_lock (&hc->lock); +spin_lock_irq (&hc->lock); bch =Sel_BCS (hc, hc->hw.bswapped ?2 :1 );if (bch && bch->state ==ISDN_P_B_RAW ) {/* B1 rx&tx */ main_rec_hfcpci (bch);
@@ -2288,7 +2288,7 @@ _hfcpci_softirq(struct device *dev, void *unused)main_rec_hfcpci (bch);tx_birq (bch); } -spin_unlock (&hc->lock); +spin_unlock_irq (&hc->lock); }return 0 ; }
drivers/mtd/nand/raw/fsl_upm.c +1 -1
@@ -135,7 +135,7 @@ static int fun_exec_op(struct nand_chip *chip, const struct nand_operation *op,unsigned int i;int ret; -if (op->cs >NAND_MAX_CHIPS ) +if (op->cs >=NAND_MAX_CHIPS )return -EINVAL ;if (check_only)
drivers/mtd/nand/raw/meson_nand.c +1 -2
@@ -1184,7 +1184,6 @@ static int meson_nand_attach_chip(struct nand_chip *nand)struct meson_nfc *nfc =nand_get_controller_data (nand);struct meson_nfc_nand_chip *meson_chip =to_meson_nand (nand);struct mtd_info *mtd =nand_to_mtd (nand); -int nsectors = mtd->writesize /1024 ;int ret;if (!mtd->name) {
@@ -1202,7 +1201,7 @@ static int meson_nand_attach_chip(struct nand_chip *nand) nand->options |=NAND_NO_SUBPAGE_WRITE ; ret =nand_ecc_choose_conf (nand, nfc->data->ecc_caps, - mtd->oobsize -2 * nsectors); + mtd->oobsize -2 );if (ret) {dev_err (nfc->dev,"failed to ECC init\n" );return -EINVAL ;
drivers/mtd/nand/raw/omap_elm.c +12 -12
@@ -177,17 +177,17 @@ static void elm_load_syndrome(struct elm_info *info,switch (info->bch_type) {case BCH8_ECC :/* syndrome fragment 0 = ecc[9-12B] */ - val =cpu_to_be32 (*(u32 *) &ecc[9 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[9 ]);elm_write_reg (info, offset, val);/* syndrome fragment 1 = ecc[5-8B] */ offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[5 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[5 ]);elm_write_reg (info, offset, val);/* syndrome fragment 2 = ecc[1-4B] */ offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[1 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[1 ]);elm_write_reg (info, offset, val);/* syndrome fragment 3 = ecc[0B] */
@@ -197,35 +197,35 @@ static void elm_load_syndrome(struct elm_info *info,break ;case BCH4_ECC :/* syndrome fragment 0 = ecc[20-52b] bits */ - val = (cpu_to_be32 (*(u32 *) &ecc[3 ]) >>4 ) | + val = ((__force u32 )cpu_to_be32 (*(u32 *)&ecc[3 ]) >>4 ) | ((ecc[2 ] &0xf ) <<28 );elm_write_reg (info, offset, val);/* syndrome fragment 1 = ecc[0-20b] bits */ offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[0 ]) >>12 ; + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[0 ]) >>12 ;elm_write_reg (info, offset, val);break ;case BCH16_ECC : - val =cpu_to_be32 (*(u32 *) &ecc[22 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[22 ]);elm_write_reg (info, offset, val); offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[18 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[18 ]);elm_write_reg (info, offset, val); offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[14 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[14 ]);elm_write_reg (info, offset, val); offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[10 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[10 ]);elm_write_reg (info, offset, val); offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[6 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[6 ]);elm_write_reg (info, offset, val); offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[2 ]); + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[2 ]);elm_write_reg (info, offset, val); offset +=4 ; - val =cpu_to_be32 (*(u32 *) &ecc[0 ]) >>16 ; + val = (__force u32 )cpu_to_be32 (*(u32 *)&ecc[0 ]) >>16 ;elm_write_reg (info, offset, val);break ;default :
drivers/mtd/nand/raw/rockchip-nand-controller.c +25 -20
92 lines not on this page · raw message
drivers/mtd/nand/spi/toshiba.c +2 -2
@@ -73,7 +73,7 @@ static int tx58cxgxsxraix_ecc_get_status(struct spinand_device *spinand, {struct nand_device *nand =spinand_to_nand (spinand);u8 mbf =0 ; -struct spi_mem_op op =SPINAND_GET_FEATURE_OP (0x30 , &mbf); +struct spi_mem_op op =SPINAND_GET_FEATURE_OP (0x30 , spinand->scratchbuf);switch (status &STATUS_ECC_MASK ) {case STATUS_ECC_NO_BITFLIPS :
@@ -92,7 +92,7 @@ static int tx58cxgxsxraix_ecc_get_status(struct spinand_device *spinand,if (spi_mem_exec_op (spinand->spimem, &op))return nanddev_get_ecc_conf (nand)->strength; - mbf >>=4 ; + mbf = *(spinand->scratchbuf) >>4 ;if (WARN_ON (mbf >nanddev_get_ecc_conf (nand)->strength || !mbf))return nanddev_get_ecc_conf (nand)->strength;
drivers/net/dsa/bcm_sf2.c +6 -2
@@ -1436,7 +1436,9 @@ static int bcm_sf2_sw_probe(struct platform_device *pdev)if (IS_ERR (priv->clk))return PTR_ERR (priv->clk); -clk_prepare_enable (priv->clk); + ret =clk_prepare_enable (priv->clk); +if (ret) +return ret; priv->clk_mdiv =devm_clk_get_optional (&pdev->dev,"sw_switch_mdiv" );if (IS_ERR (priv->clk_mdiv)) {
@@ -1444,7 +1446,9 @@ static int bcm_sf2_sw_probe(struct platform_device *pdev) goto out_clk; } -clk_prepare_enable (priv->clk_mdiv); + ret =clk_prepare_enable (priv->clk_mdiv); +if (ret) + goto out_clk; ret =bcm_sf2_sw_rst (priv);if (ret) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c +36 -23
152 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c +3 -3
@@ -180,8 +180,8 @@ void bnxt_xdp_buff_init(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, u8 *data_ptr, unsigned int len, struct xdp_buff *xdp) { + u32 buflen = BNXT_RX_PAGE_SIZE;struct bnxt_sw_rx_bd *rx_buf; -u32 buflen =PAGE_SIZE ;struct pci_dev *pdev;dma_addr_t mapping;u32 offset;
@@ -297,7 +297,7 @@ bool bnxt_rx_xdp(struct bnxt *bp, struct bnxt_rx_ring_info *rxr, u16 cons, rx_buf = &rxr->rx_buf_ring[cons]; mapping = rx_buf->mapping - bp->rx_dma_offset;dma_unmap_page_attrs (&pdev->dev, mapping, -PAGE_SIZE , bp->rx_dir, +BNXT_RX_PAGE_SIZE , bp->rx_dir,DMA_ATTR_WEAK_ORDERING );/* if we are unable to allocate a new buffer, abort and reuse */
@@ -478,7 +478,7 @@ bnxt_xdp_build_skb(struct bnxt *bp, struct sk_buff *skb, u8 num_frags, }xdp_update_skb_shared_info (skb, num_frags, sinfo->xdp_frags_size, -PAGE_SIZE * sinfo->nr_frags, +BNXT_RX_PAGE_SIZE * sinfo->nr_frags,xdp_buff_is_frag_pfmemalloc (xdp));return skb; }
drivers/net/ethernet/intel/ice/ice_main.c +18 -0
@@ -8777,6 +8777,7 @@ ice_setup_tc(struct net_device *netdev, enum tc_setup_type type, {struct ice_netdev_priv *np =netdev_priv (netdev);struct ice_pf *pf = np->vsi->back; +bool locked = false;int err;switch (type) {
@@ -8786,10 +8787,27 @@ ice_setup_tc(struct net_device *netdev, enum tc_setup_type type, ice_setup_tc_block_cb, np, np, true);case TC_SETUP_QDISC_MQPRIO : +if (pf->adev) { +mutex_lock (&pf->adev_mutex); +device_lock (&pf->adev->dev); + locked = true; +if (pf->adev->dev.driver) { +netdev_err (netdev,"Cannot change qdisc when RDMA is active\n" ); + err = -EBUSY ; + goto adev_unlock; + } + } +/* setup traffic classifier for receive side */ mutex_lock (&pf->tc_mutex); err =ice_setup_tc_mqprio_qdisc (netdev, type_data);mutex_unlock (&pf->tc_mutex); + +adev_unlock: +if (locked) { +device_unlock (&pf->adev->dev); +mutex_unlock (&pf->adev_mutex); + }return err;default :return -EOPNOTSUPP ;
drivers/net/ethernet/korina.c +1 -2
@@ -1302,11 +1302,10 @@ static int korina_probe(struct platform_device *pdev)else if (of_get_ethdev_address (pdev->dev.of_node, dev) <0 )eth_hw_addr_random (dev); - clk =devm_clk_get_optional (&pdev->dev,"mdioclk" ); + clk =devm_clk_get_optional_enabled (&pdev->dev,"mdioclk" );if (IS_ERR (clk))return PTR_ERR (clk);if (clk) { -clk_prepare_enable (clk); lp->mii_clock_freq =clk_get_rate (clk); }else { lp->mii_clock_freq =200000000 ;/* max possible input clk */
drivers/net/ethernet/marvell/prestera/prestera_pci.c +2 -1
@@ -702,7 +702,8 @@ static int prestera_fw_get(struct prestera_fw *fw) err =request_firmware_direct (&fw->bin, fw_path, fw->dev.dev);if (err) { -if (ver_maj ==PRESTERA_SUPP_FW_MAJ_VER ) { +if (ver_maj !=PRESTERA_PREV_FW_MAJ_VER || + ver_min !=PRESTERA_PREV_FW_MIN_VER ) { ver_maj =PRESTERA_PREV_FW_MAJ_VER ; ver_min =PRESTERA_PREV_FW_MIN_VER ;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c +3 -1
@@ -58,7 +58,9 @@ static int mlx5e_ipsec_remove_trailer(struct sk_buff *skb, struct xfrm_state *x) trailer_len = alen + plen +2 ; -pskb_trim (skb, skb->len - trailer_len); + ret =pskb_trim (skb, skb->len - trailer_len); +if (unlikely (ret)) +return ret;if (skb->protocol ==htons (ETH_P_IP )) { ipv4hdr->tot_len =htons (ntohs (ipv4hdr->tot_len) - trailer_len);ip_send_check (ipv4hdr);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec_fs.c +1 -0
@@ -160,6 +160,7 @@ static int macsec_fs_tx_create_crypto_table_groups(struct mlx5e_flow_table *ft)if (!in) {kfree (ft->g); + ft->g =NULL ;return -ENOMEM ; }
drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c +10 -0
@@ -136,6 +136,16 @@ static void arfs_del_rules(struct mlx5e_flow_steering *fs);int mlx5e_arfs_disable (struct mlx5e_flow_steering *fs) { +/* Moving to switchdev mode, fs->arfs is freed by mlx5e_nic_profile +* cleanup_rx callback and it is not recreated when +* mlx5e_uplink_rep_profile is loaded as mlx5e_create_flow_steering() +* is not called by the uplink_rep profile init_rx callback. Thus, if +* ntuple is set, moving to switchdev flow will enter this function +* with fs->arfs nullified. +*/ +if (!mlx5e_fs_get_arfs (fs)) +return 0 ; +arfs_del_rules (fs);return arfs_disable (fs);
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +9 -11
@@ -912,7 +912,7 @@ static int mlx5e_init_rep_rx(struct mlx5e_priv *priv) err =mlx5e_open_drop_rq (priv, &priv->drop_rq);if (err) {mlx5_core_err (mdev,"open drop rq failed, %d\n" , err); -return err; + goto err_rx_res_free; } err = mlx5e_rx_res_init(priv->rx_res, priv->mdev, 0,
@@ -946,6 +946,7 @@ static int mlx5e_init_rep_rx(struct mlx5e_priv *priv)mlx5e_rx_res_destroy (priv->rx_res); err_close_drop_rq:mlx5e_close_drop_rq (&priv->drop_rq); +err_rx_res_free:mlx5e_rx_res_free (priv->rx_res); priv->rx_res =NULL ; err_free_fs:
@@ -1039,6 +1040,10 @@ static int mlx5e_init_rep_tx(struct mlx5e_priv *priv)return err; } + err =mlx5e_rep_neigh_init (rpriv); +if (err) + goto err_neigh_init; +if (rpriv->rep->vport ==MLX5_VPORT_UPLINK ) { err =mlx5e_init_uplink_rep_tx (rpriv);if (err)
@@ -1055,6 +1060,8 @@ static int mlx5e_init_rep_tx(struct mlx5e_priv *priv)if (rpriv->rep->vport ==MLX5_VPORT_UPLINK )mlx5e_cleanup_uplink_rep_tx (rpriv); err_init_tx: +mlx5e_rep_neigh_cleanup (rpriv); +err_neigh_init:mlx5e_destroy_tises (priv);return err; }
@@ -1068,22 +1075,17 @@ static void mlx5e_cleanup_rep_tx(struct mlx5e_priv *priv)if (rpriv->rep->vport ==MLX5_VPORT_UPLINK )mlx5e_cleanup_uplink_rep_tx (rpriv); +mlx5e_rep_neigh_cleanup (rpriv);mlx5e_destroy_tises (priv); }static void mlx5e_rep_enable (struct mlx5e_priv *priv) { -struct mlx5e_rep_priv *rpriv = priv->ppriv; -mlx5e_set_netdev_mtu_boundaries (priv); -mlx5e_rep_neigh_init (rpriv); }static void mlx5e_rep_disable (struct mlx5e_priv *priv) { -struct mlx5e_rep_priv *rpriv = priv->ppriv; - -mlx5e_rep_neigh_cleanup (rpriv); }static int mlx5e_update_rep_rx (struct mlx5e_priv *priv)
@@ -1118,7 +1120,6 @@ static int uplink_rep_async_event(struct notifier_block *nb, unsigned long eventstatic void mlx5e_uplink_rep_enable (struct mlx5e_priv *priv) { -struct mlx5e_rep_priv *rpriv = priv->ppriv;struct net_device *netdev = priv->netdev;struct mlx5_core_dev *mdev = priv->mdev;u16 max_mtu;
@@ -1138,7 +1139,6 @@ static void mlx5e_uplink_rep_enable(struct mlx5e_priv *priv)mlx5_notifier_register (mdev, &priv->events_nb);mlx5e_dcbnl_initialize (priv);mlx5e_dcbnl_init_app (priv); -mlx5e_rep_neigh_init (rpriv);mlx5e_rep_bridge_init (priv); netdev->wanted_features |=NETIF_F_HW_TC ;
@@ -1153,7 +1153,6 @@ static void mlx5e_uplink_rep_enable(struct mlx5e_priv *priv)static void mlx5e_uplink_rep_disable (struct mlx5e_priv *priv) { -struct mlx5e_rep_priv *rpriv = priv->ppriv;struct mlx5_core_dev *mdev = priv->mdev;rtnl_lock ();
@@ -1163,7 +1162,6 @@ static void mlx5e_uplink_rep_disable(struct mlx5e_priv *priv)rtnl_unlock ();mlx5e_rep_bridge_cleanup (priv); -mlx5e_rep_neigh_cleanup (rpriv);mlx5e_dcbnl_delete_app (priv);mlx5_notifier_unregister (mdev, &priv->events_nb);mlx5e_rep_tc_disable (priv);
drivers/net/ethernet/mellanox/mlx5/core/eq.c +1 -1
@@ -1061,7 +1061,7 @@ void mlx5_core_eq_free_irqs(struct mlx5_core_dev *dev)mutex_lock (&table->lock);/* sync with create/destroy_async_eq */ if (!mlx5_core_is_sf (dev))clear_rmap (dev); -mlx5_irq_table_destroy (dev); +mlx5_irq_table_free_irqs (dev);mutex_unlock (&table->lock); }
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +83 -20
180 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h +1 -0
@@ -14,6 +14,7 @@ int mlx5_irq_table_init(struct mlx5_core_dev *dev);void mlx5_irq_table_cleanup (struct mlx5_core_dev *dev);int mlx5_irq_table_create (struct mlx5_core_dev *dev);void mlx5_irq_table_destroy (struct mlx5_core_dev *dev); +void mlx5_irq_table_free_irqs (struct mlx5_core_dev *dev);int mlx5_irq_table_get_num_comp (struct mlx5_irq_table *table);int mlx5_irq_table_get_sfs_vec (struct mlx5_irq_table *table);struct mlx5_irq_table *mlx5_irq_table_get (struct mlx5_core_dev *dev);
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c +29 -0
@@ -591,6 +591,24 @@ static void irq_pools_destroy(struct mlx5_irq_table *table)irq_pool_free (table->pf_pool); } +static void mlx5_irq_pool_free_irqs (struct mlx5_irq_pool *pool) +{ +struct mlx5_irq *irq; +unsigned long index; + +xa_for_each (&pool->irqs, index, irq) +free_irq (irq->irqn, &irq->nh); +} + +static void mlx5_irq_pools_free_irqs (struct mlx5_irq_table *table) +{ +if (table->sf_ctrl_pool) { +mlx5_irq_pool_free_irqs (table->sf_comp_pool); +mlx5_irq_pool_free_irqs (table->sf_ctrl_pool); + } +mlx5_irq_pool_free_irqs (table->pf_pool); +} +/* irq_table API */ int mlx5_irq_table_init (struct mlx5_core_dev *dev)
@@ -670,6 +688,17 @@ void mlx5_irq_table_destroy(struct mlx5_core_dev *dev)pci_free_irq_vectors (dev->pdev); } +void mlx5_irq_table_free_irqs (struct mlx5_core_dev *dev) +{ +struct mlx5_irq_table *table = dev->priv.irq_table; + +if (mlx5_core_is_sf (dev)) +return ; + +mlx5_irq_pools_free_irqs (table); +pci_free_irq_vectors (dev->pdev); +} +int mlx5_irq_table_get_sfs_vec (struct mlx5_irq_table *table) {if (table->sf_comp_pool)
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c +3 -2
@@ -538,11 +538,12 @@ int mlx5dr_cmd_create_reformat_ctx(struct mlx5_core_dev *mdev, err =mlx5_cmd_exec (mdev, in, inlen, out,sizeof (out));if (err) -return err; + goto err_free_in; *reformat_id =MLX5_GET (alloc_packet_reformat_context_out, out, packet_reformat_id); -kvfree (in); +err_free_in: +kvfree (in);return err; }
drivers/net/ethernet/qlogic/qed/qed_dev_api.h +16 -0
@@ -193,6 +193,22 @@ void qed_hw_remove(struct qed_dev *cdev);*/ struct qed_ptt *qed_ptt_acquire (struct qed_hwfn *p_hwfn); +/** +* qed_ptt_acquire_context(): Allocate a PTT window honoring the context +* atomicy. +* +* @p_hwfn: HW device data. +* @is_atomic: Hint from the caller - if the func can sleep or not. +* +* Context: The function should not sleep in case is_atomic == true. +* Return: struct qed_ptt. +* +* Should be called at the entry point to the driver +* (at the beginning of an exported function). +*/ +struct qed_ptt *qed_ptt_acquire_context (struct qed_hwfn *p_hwfn, +bool is_atomic); +/** * qed_ptt_release(): Release PTT Window. *
drivers/net/ethernet/qlogic/qed/qed_fcoe.c +14 -5
@@ -693,13 +693,14 @@ static void _qed_fcoe_get_pstats(struct qed_hwfn *p_hwfn, }static int qed_fcoe_get_stats (struct qed_hwfn *p_hwfn, -struct qed_fcoe_stats *p_stats) +struct qed_fcoe_stats *p_stats, +bool is_atomic) {struct qed_ptt *p_ptt;memset (p_stats,0 ,sizeof (*p_stats)); - p_ptt =qed_ptt_acquire (p_hwfn); + p_ptt =qed_ptt_acquire_context (p_hwfn, is_atomic);if (!p_ptt) {DP_ERR (p_hwfn,"Failed to acquire ptt\n" );
@@ -973,19 +974,27 @@ static int qed_fcoe_destroy_conn(struct qed_dev *cdev, QED_SPQ_MODE_EBLOCK, NULL); } +static int qed_fcoe_stats_context (struct qed_dev *cdev, +struct qed_fcoe_stats *stats, +bool is_atomic) +{ +return qed_fcoe_get_stats (QED_AFFIN_HWFN (cdev), stats, is_atomic); +} +static int qed_fcoe_stats (struct qed_dev *cdev,struct qed_fcoe_stats *stats) { -return qed_fcoe_get_stats (QED_AFFIN_HWFN (cdev), stats); +return qed_fcoe_stats_context (cdev, stats, false); }void qed_get_protocol_stats_fcoe (struct qed_dev *cdev, -struct qed_mcp_fcoe_stats *stats) +struct qed_mcp_fcoe_stats *stats, +bool is_atomic) {struct qed_fcoe_stats proto_stats;/* Retrieve FW statistics */ memset (&proto_stats,0 ,sizeof (proto_stats)); -if (qed_fcoe_stats (cdev, &proto_stats)) { +if (qed_fcoe_stats_context (cdev, &proto_stats, is_atomic)) {DP_VERBOSE (cdev,QED_MSG_STORAGE ,"Failed to collect FCoE statistics\n" );return ;
drivers/net/ethernet/qlogic/qed/qed_fcoe.h +15 -2
@@ -28,8 +28,20 @@ int qed_fcoe_alloc(struct qed_hwfn *p_hwfn);void qed_fcoe_setup (struct qed_hwfn *p_hwfn);void qed_fcoe_free (struct qed_hwfn *p_hwfn); +/** +* qed_get_protocol_stats_fcoe(): Fills provided statistics +* struct with statistics. +* +* @cdev: Qed dev pointer. +* @stats: Points to struct that will be filled with statistics. +* @is_atomic: Hint from the caller - if the func can sleep or not. +* +* Context: The function should not sleep in case is_atomic == true. +* Return: Void. +*/ void qed_get_protocol_stats_fcoe (struct qed_dev *cdev, -struct qed_mcp_fcoe_stats *stats); +struct qed_mcp_fcoe_stats *stats, +bool is_atomic);#else /* CONFIG_QED_FCOE */ static inline int qed_fcoe_alloc (struct qed_hwfn *p_hwfn) {
@@ -40,7 +52,8 @@ static inline void qed_fcoe_setup(struct qed_hwfn *p_hwfn) {}static inline void qed_fcoe_free (struct qed_hwfn *p_hwfn) {}static inline void qed_get_protocol_stats_fcoe (struct qed_dev *cdev, -struct qed_mcp_fcoe_stats *stats) +struct qed_mcp_fcoe_stats *stats, +bool is_atomic) { }#endif /* CONFIG_QED_FCOE */
drivers/net/ethernet/qlogic/qed/qed_hw.c +22 -4
@@ -23,7 +23,10 @@#include "qed_reg_addr.h" #include "qed_sriov.h" -#define QED_BAR_ACQUIRE_TIMEOUT 1000 +#define QED_BAR_ACQUIRE_TIMEOUT_USLEEP_CNT 1000 +#define QED_BAR_ACQUIRE_TIMEOUT_USLEEP 1000 +#define QED_BAR_ACQUIRE_TIMEOUT_UDELAY_CNT 100000 +#define QED_BAR_ACQUIRE_TIMEOUT_UDELAY 10/* Invalid values */ #define QED_BAR_INVALID_OFFSET (cpu_to_le32(-1))
@@ -84,12 +87,22 @@ void qed_ptt_pool_free(struct qed_hwfn *p_hwfn) }struct qed_ptt *qed_ptt_acquire (struct qed_hwfn *p_hwfn) +{ +return qed_ptt_acquire_context (p_hwfn, false); +} + +struct qed_ptt *qed_ptt_acquire_context (struct qed_hwfn *p_hwfn,bool is_atomic) {struct qed_ptt *p_ptt; -unsigned int i; +unsigned int i, count; + +if (is_atomic) + count =QED_BAR_ACQUIRE_TIMEOUT_UDELAY_CNT ; +else + count =QED_BAR_ACQUIRE_TIMEOUT_USLEEP_CNT ;/* Take the free PTT from the list */ -for (i =0 ; i <QED_BAR_ACQUIRE_TIMEOUT ; i++) { +for (i =0 ; i < count; i++) {spin_lock_bh (&p_hwfn->p_ptt_pool->lock);if (!list_empty (&p_hwfn->p_ptt_pool->free_list)) {
@@ -105,7 +118,12 @@ struct qed_ptt *qed_ptt_acquire(struct qed_hwfn *p_hwfn) }spin_unlock_bh (&p_hwfn->p_ptt_pool->lock); -usleep_range (1000 ,2000 ); + +if (is_atomic) +udelay (QED_BAR_ACQUIRE_TIMEOUT_UDELAY ); +else +usleep_range (QED_BAR_ACQUIRE_TIMEOUT_USLEEP , +QED_BAR_ACQUIRE_TIMEOUT_USLEEP *2 ); }DP_NOTICE (p_hwfn,"PTT acquire timeout - failed to allocate PTT\n" );
drivers/net/ethernet/qlogic/qed/qed_iscsi.c +14 -5
@@ -999,13 +999,14 @@ static void _qed_iscsi_get_pstats(struct qed_hwfn *p_hwfn, }static int qed_iscsi_get_stats (struct qed_hwfn *p_hwfn, -struct qed_iscsi_stats *stats) +struct qed_iscsi_stats *stats, +bool is_atomic) {struct qed_ptt *p_ptt;memset (stats,0 ,sizeof (*stats)); - p_ptt =qed_ptt_acquire (p_hwfn); + p_ptt =qed_ptt_acquire_context (p_hwfn, is_atomic);if (!p_ptt) {DP_ERR (p_hwfn,"Failed to acquire ptt\n" );return -EAGAIN ;
@@ -1336,9 +1337,16 @@ static int qed_iscsi_destroy_conn(struct qed_dev *cdev, QED_SPQ_MODE_EBLOCK, NULL); } +static int qed_iscsi_stats_context (struct qed_dev *cdev, +struct qed_iscsi_stats *stats, +bool is_atomic) +{ +return qed_iscsi_get_stats (QED_AFFIN_HWFN (cdev), stats, is_atomic); +} +static int qed_iscsi_stats (struct qed_dev *cdev,struct qed_iscsi_stats *stats) { -return qed_iscsi_get_stats (QED_AFFIN_HWFN (cdev), stats); +return qed_iscsi_stats_context (cdev, stats, false); } static int qed_iscsi_change_mac(struct qed_dev *cdev,
@@ -1358,13 +1366,14 @@ static int qed_iscsi_change_mac(struct qed_dev *cdev, }void qed_get_protocol_stats_iscsi (struct qed_dev *cdev, -struct qed_mcp_iscsi_stats *stats) +struct qed_mcp_iscsi_stats *stats, +bool is_atomic) {struct qed_iscsi_stats proto_stats;/* Retrieve FW statistics */ memset (&proto_stats,0 ,sizeof (proto_stats)); -if (qed_iscsi_stats (cdev, &proto_stats)) { +if (qed_iscsi_stats_context (cdev, &proto_stats, is_atomic)) {DP_VERBOSE (cdev,QED_MSG_STORAGE ,"Failed to collect ISCSI statistics\n" );return ;
drivers/net/ethernet/qlogic/qed/qed_iscsi.h +6 -2
@@ -39,11 +39,14 @@ void qed_iscsi_free(struct qed_hwfn *p_hwfn);* * @cdev: Qed dev pointer. * @stats: Points to struct that will be filled with statistics. +* @is_atomic: Hint from the caller - if the func can sleep or not. * +* Context: The function should not sleep in case is_atomic == true. * Return: Void. */ void qed_get_protocol_stats_iscsi (struct qed_dev *cdev, -struct qed_mcp_iscsi_stats *stats); +struct qed_mcp_iscsi_stats *stats, +bool is_atomic);#else /* IS_ENABLED(CONFIG_QED_ISCSI) */ static inline int qed_iscsi_alloc (struct qed_hwfn *p_hwfn) {
@@ -56,7 +59,8 @@ static inline void qed_iscsi_free(struct qed_hwfn *p_hwfn) {}static inline void qed_get_protocol_stats_iscsi (struct qed_dev *cdev, -struct qed_mcp_iscsi_stats *stats) {} +struct qed_mcp_iscsi_stats *stats, +bool is_atomic) {}#endif /* IS_ENABLED(CONFIG_QED_ISCSI) */ #endif
drivers/net/ethernet/qlogic/qed/qed_l2.c +14 -5
@@ -1863,7 +1863,8 @@ static void __qed_get_vport_stats(struct qed_hwfn *p_hwfn, }static void _qed_get_vport_stats (struct qed_dev *cdev, -struct qed_eth_stats *stats) +struct qed_eth_stats *stats, +bool is_atomic) {u8 fw_vport =0 ;int i;
@@ -1872,10 +1873,11 @@ static void _qed_get_vport_stats(struct qed_dev *cdev,for_each_hwfn (cdev, i) {struct qed_hwfn *p_hwfn = &cdev->hwfns[i]; -struct qed_ptt *p_ptt =IS_PF (cdev) ?qed_ptt_acquire (p_hwfn) - :NULL ; +struct qed_ptt *p_ptt;bool b_get_port_stats; + p_ptt =IS_PF (cdev) ?qed_ptt_acquire_context (p_hwfn, is_atomic) + :NULL ;if (IS_PF (cdev)) {/* The main vport index is relative first */ if (qed_fw_vport (p_hwfn,0 , &fw_vport)) {
@@ -1900,6 +1902,13 @@ static void _qed_get_vport_stats(struct qed_dev *cdev, }void qed_get_vport_stats (struct qed_dev *cdev,struct qed_eth_stats *stats) +{ +qed_get_vport_stats_context (cdev, stats, false); +} + +void qed_get_vport_stats_context (struct qed_dev *cdev, +struct qed_eth_stats *stats, +bool is_atomic) {u32 i;
@@ -1908,7 +1917,7 @@ void qed_get_vport_stats(struct qed_dev *cdev, struct qed_eth_stats *stats)return ; } -_qed_get_vport_stats (cdev, stats); +_qed_get_vport_stats (cdev, stats, is_atomic);if (!cdev->reset_stats)return ;
@@ -1960,7 +1969,7 @@ void qed_reset_vport_stats(struct qed_dev *cdev)if (!cdev->reset_stats) {DP_INFO (cdev,"Reset stats not allocated\n" ); }else { -_qed_get_vport_stats (cdev, cdev->reset_stats); +_qed_get_vport_stats (cdev, cdev->reset_stats, false); cdev->reset_stats->common.link_change_count =0 ; } }
drivers/net/ethernet/qlogic/qed/qed_l2.h +24 -0
@@ -249,8 +249,32 @@ qed_sp_eth_rx_queues_update(struct qed_hwfn *p_hwfn,enum spq_mode comp_mode, struct qed_spq_comp_cb *p_comp_data); +/** +* qed_get_vport_stats(): Fills provided statistics +* struct with statistics. +* +* @cdev: Qed dev pointer. +* @stats: Points to struct that will be filled with statistics. +* +* Return: Void. +*/ void qed_get_vport_stats (struct qed_dev *cdev,struct qed_eth_stats *stats); +/** +* qed_get_vport_stats_context(): Fills provided statistics +* struct with statistics. +* +* @cdev: Qed dev pointer. +* @stats: Points to struct that will be filled with statistics. +* @is_atomic: Hint from the caller - if the func can sleep or not. +* +* Context: The function should not sleep in case is_atomic == true. +* Return: Void. +*/ +void qed_get_vport_stats_context (struct qed_dev *cdev, +struct qed_eth_stats *stats, +bool is_atomic); +void qed_reset_vport_stats (struct qed_dev *cdev);/**
drivers/net/ethernet/qlogic/qed/qed_main.c +3 -3
@@ -3101,7 +3101,7 @@ void qed_get_protocol_stats(struct qed_dev *cdev,switch (type) {case QED_MCP_LAN_STATS : -qed_get_vport_stats (cdev, ð_stats); +qed_get_vport_stats_context (cdev, ð_stats, true); stats->lan_stats.ucast_rx_pkts = eth_stats.common.rx_ucast_pkts; stats->lan_stats.ucast_tx_pkts =
@@ -3109,10 +3109,10 @@ void qed_get_protocol_stats(struct qed_dev *cdev, stats->lan_stats.fcs_err =-1 ;break ;case QED_MCP_FCOE_STATS : -qed_get_protocol_stats_fcoe (cdev, &stats->fcoe_stats); +qed_get_protocol_stats_fcoe (cdev, &stats->fcoe_stats, true);break ;case QED_MCP_ISCSI_STATS : -qed_get_protocol_stats_iscsi (cdev, &stats->iscsi_stats); +qed_get_protocol_stats_iscsi (cdev, &stats->iscsi_stats, true);break ;default : DP_VERBOSE(cdev, QED_MSG_SP,
drivers/net/ethernet/socionext/netsec.c +11 -0
@@ -1851,6 +1851,17 @@ static int netsec_of_probe(struct platform_device *pdev,return err; } +/* +* SynQuacer is physically configured with TX and RX delays +* but the standard firmware claimed otherwise for a long +* time, ignore it. +*/ +if (of_machine_is_compatible ("socionext,developer-box" ) && + priv->phy_interface !=PHY_INTERFACE_MODE_RGMII_ID ) { +dev_warn (&pdev->dev,"Outdated firmware reports incorrect PHY mode, overriding\n" ); + priv->phy_interface =PHY_INTERFACE_MODE_RGMII_ID ; + } + priv->phy_np =of_parse_phandle (pdev->dev.of_node,"phy-handle" ,0 );if (!priv->phy_np) {dev_err (&pdev->dev,"missing required property 'phy-handle'\n" );
drivers/net/ethernet/xilinx/ll_temac_main.c +8 -4
@@ -1568,12 +1568,16 @@ static int temac_probe(struct platform_device *pdev) }/* Error handle returned DMA RX and TX interrupts */ -if (lp->rx_irq <0 ) -return dev_err_probe (&pdev->dev, lp->rx_irq, +if (lp->rx_irq <=0 ) { + rc = lp->rx_irq ?: -EINVAL ; +return dev_err_probe (&pdev->dev, rc,"could not get DMA RX irq\n" ); -if (lp->tx_irq <0 ) -return dev_err_probe (&pdev->dev, lp->tx_irq, + } +if (lp->tx_irq <=0 ) { + rc = lp->tx_irq ?: -EINVAL ; +return dev_err_probe (&pdev->dev, rc,"could not get DMA TX irq\n" ); + }if (temac_np) {/* Retrieve the MAC address */
drivers/net/ipa/ipa_table.c +13 -11
@@ -311,16 +311,15 @@ static int ipa_filter_reset(struct ipa *ipa, bool modem)if (ret)return ret; - ret =ipa_filter_reset_table (ipa,IPA_MEM_V4_FILTER_HASHED , modem); -if (ret) + ret =ipa_filter_reset_table (ipa,IPA_MEM_V6_FILTER , modem); +if (ret || !ipa_table_hash_support (ipa))return ret; - ret =ipa_filter_reset_table (ipa,IPA_MEM_V6_FILTER , modem); + ret =ipa_filter_reset_table (ipa,IPA_MEM_V4_FILTER_HASHED , modem);if (ret)return ret; - ret =ipa_filter_reset_table (ipa,IPA_MEM_V6_FILTER_HASHED , modem); -return ret; +return ipa_filter_reset_table (ipa,IPA_MEM_V6_FILTER_HASHED , modem); }/* The AP routes and modem routes are each contiguous within the
@@ -329,11 +328,12 @@ static int ipa_filter_reset(struct ipa *ipa, bool modem)* */ static int ipa_route_reset (struct ipa *ipa,bool modem) { +bool hash_support =ipa_table_hash_support (ipa);struct gsi_trans *trans;u16 first;u16 count; - trans =ipa_cmd_trans_alloc (ipa,4 ); + trans =ipa_cmd_trans_alloc (ipa, hash_support ?4 :2 );if (!trans) { dev_err(&ipa->pdev->dev, "no transaction for %s route reset\n",
@@ -350,12 +350,14 @@ static int ipa_route_reset(struct ipa *ipa, bool modem) }ipa_table_reset_add (trans, false, first, count,IPA_MEM_V4_ROUTE ); -ipa_table_reset_add (trans, false, first, count, -IPA_MEM_V4_ROUTE_HASHED ); -ipa_table_reset_add (trans, false, first, count,IPA_MEM_V6_ROUTE ); -ipa_table_reset_add (trans, false, first, count, -IPA_MEM_V6_ROUTE_HASHED ); + +if (hash_support) { +ipa_table_reset_add (trans, false, first, count, +IPA_MEM_V4_ROUTE_HASHED ); +ipa_table_reset_add (trans, false, first, count, +IPA_MEM_V6_ROUTE_HASHED ); + }gsi_trans_commit_wait (trans);
drivers/net/tap.c +1 -1
@@ -533,7 +533,7 @@ static int tap_open(struct inode *inode, struct file *file) q->sock.state =SS_CONNECTED ; q->sock.file = file; q->sock.ops = &tap_socket_ops; -sock_init_data_uid (&q->sock, &q->sk, inode->i_uid); +sock_init_data_uid (&q->sock, &q->sk,current_fsuid ()); q->sk.sk_write_space = tap_sock_write_space; q->sk.sk_destruct = tap_sock_destruct; q->flags =IFF_VNET_HDR |IFF_NO_PI |IFF_TAP ;
drivers/net/tun.c +1 -1
@@ -3457,7 +3457,7 @@ static int tun_chr_open(struct inode *inode, struct file * file) tfile->socket.file = file; tfile->socket.ops = &tun_socket_ops; -sock_init_data_uid (&tfile->socket, &tfile->sk, inode->i_uid); +sock_init_data_uid (&tfile->socket, &tfile->sk,current_fsuid ()); tfile->sk.sk_write_space = tun_sock_write_space; tfile->sk.sk_sndbuf =INT_MAX ;
drivers/net/usb/cdc_ether.c +21 -0
@@ -618,9 +618,23 @@ static const struct usb_device_id products[] = { .match_flags = USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_DEVICE, .idVendor = 0x04DD, + .idProduct =0x8005 ,/* A-300 */ +ZAURUS_FAKE_INTERFACE , + .driver_info = 0, +}, { + .match_flags =USB_DEVICE_ID_MATCH_INT_INFO + |USB_DEVICE_ID_MATCH_DEVICE , + .idVendor = 0x04DD, .idProduct = 0x8006, /* B-500/SL-5600 */ZAURUS_MASTER_INTERFACE , .driver_info = 0, +}, { + .match_flags =USB_DEVICE_ID_MATCH_INT_INFO + |USB_DEVICE_ID_MATCH_DEVICE , + .idVendor = 0x04DD, + .idProduct = 0x8006, /* B-500/SL-5600 */ +ZAURUS_FAKE_INTERFACE , + .driver_info = 0, }, { .match_flags =USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_DEVICE,
@@ -628,6 +642,13 @@ static const struct usb_device_id products[] = { .idProduct = 0x8007, /* C-700 */ZAURUS_MASTER_INTERFACE , .driver_info = 0, +}, { + .match_flags =USB_DEVICE_ID_MATCH_INT_INFO + |USB_DEVICE_ID_MATCH_DEVICE , + .idVendor = 0x04DD, + .idProduct = 0x8007, /* C-700 */ +ZAURUS_FAKE_INTERFACE , + .driver_info = 0, }, { .match_flags =USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_DEVICE,
drivers/net/usb/usbnet.c +6 -0
@@ -1770,6 +1770,10 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) }else if (!info->in || !info->out) status =usbnet_get_endpoints (dev, udev);else { +u8 ep_addrs[3 ] = { + info->in +USB_DIR_IN , info->out +USB_DIR_OUT ,0 + }; + dev->in =usb_rcvbulkpipe (xdev, info->in); dev->out =usb_sndbulkpipe (xdev, info->out);if (!(info->flags &FLAG_NO_SETINT ))
@@ -1779,6 +1783,8 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)else status =0 ; +if (status ==0 && !usb_check_bulk_endpoints (udev, ep_addrs)) + status = -EINVAL ; }if (status >=0 && dev->status) status =init_status (dev, udev);
drivers/net/usb/zaurus.c +21 -0
@@ -289,9 +289,23 @@ static const struct usb_device_id products [] = { .match_flags = USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_DEVICE, .idVendor = 0x04DD, + .idProduct =0x8005 ,/* A-300 */ +ZAURUS_FAKE_INTERFACE , + .driver_info = (unsigned long)&bogus_mdlm_info, +}, { + .match_flags =USB_DEVICE_ID_MATCH_INT_INFO + |USB_DEVICE_ID_MATCH_DEVICE , + .idVendor = 0x04DD, .idProduct = 0x8006, /* B-500/SL-5600 */ZAURUS_MASTER_INTERFACE , .driver_info = ZAURUS_PXA_INFO, +}, { + .match_flags =USB_DEVICE_ID_MATCH_INT_INFO + |USB_DEVICE_ID_MATCH_DEVICE , + .idVendor = 0x04DD, + .idProduct = 0x8006, /* B-500/SL-5600 */ +ZAURUS_FAKE_INTERFACE , + .driver_info = (unsigned long)&bogus_mdlm_info, }, { .match_flags =USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_DEVICE,
@@ -299,6 +313,13 @@ static const struct usb_device_id products [] = { .idProduct = 0x8007, /* C-700 */ZAURUS_MASTER_INTERFACE , .driver_info = ZAURUS_PXA_INFO, +}, { + .match_flags =USB_DEVICE_ID_MATCH_INT_INFO + |USB_DEVICE_ID_MATCH_DEVICE , + .idVendor = 0x04DD, + .idProduct = 0x8007, /* C-700 */ +ZAURUS_FAKE_INTERFACE , + .driver_info = (unsigned long)&bogus_mdlm_info, }, { .match_flags =USB_DEVICE_ID_MATCH_INT_INFO | USB_DEVICE_ID_MATCH_DEVICE,
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c +3 -3
@@ -123,12 +123,12 @@ mt7615_eeprom_parse_hw_band_cap(struct mt7615_dev *dev)case MT_EE_5GHZ : dev->mphy.cap.has_5ghz = true;break ; -case MT_EE_2GHZ : - dev->mphy.cap.has_2ghz = true; -break ;case MT_EE_DBDC : dev->dbdc_support = true; fallthrough; +case MT_EE_2GHZ : + dev->mphy.cap.has_2ghz = true; +break ;default : dev->mphy.cap.has_2ghz = true; dev->mphy.cap.has_5ghz = true;
drivers/s390/net/qeth_core.h +0 -1
@@ -716,7 +716,6 @@ struct qeth_card_info {u16 chid; u8 ids_valid:1; /* cssid,iid,chid */ u8 dev_addr_is_registered:1; - u8 open_when_online:1; u8 promisc_mode:1; u8 use_v1_blkt:1; u8 is_vm_nic:1;
drivers/s390/net/qeth_core_main.c +0 -2
@@ -5371,8 +5371,6 @@ int qeth_set_offline(struct qeth_card *card, const struct qeth_discipline *disc,qeth_clear_ipacmd_list (card);rtnl_lock (); - card->info.open_when_online = card->dev->flags &IFF_UP ; -dev_close (card->dev);netif_device_detach (card->dev);netif_carrier_off (card->dev);rtnl_unlock ();
drivers/s390/net/qeth_l2_main.c +6 -3
@@ -2387,9 +2387,12 @@ static int qeth_l2_set_online(struct qeth_card *card, bool carrier_ok)qeth_enable_hw_features (dev);qeth_l2_enable_brport_features (card); -if (card->info.open_when_online) { - card->info.open_when_online =0 ; -dev_open (dev,NULL ); +if (netif_running (dev)) { +local_bh_disable (); +napi_schedule (&card->napi); +/* kick-start the NAPI softirq: */ +local_bh_enable (); +qeth_l2_set_rx_mode (dev); }rtnl_unlock (); }
drivers/s390/net/qeth_l3_main.c +5 -3
@@ -2017,9 +2017,11 @@ static int qeth_l3_set_online(struct qeth_card *card, bool carrier_ok)netif_device_attach (dev);qeth_enable_hw_features (dev); -if (card->info.open_when_online) { - card->info.open_when_online =0 ; -dev_open (dev,NULL ); +if (netif_running (dev)) { +local_bh_disable (); +napi_schedule (&card->napi); +/* kick-start the NAPI softirq: */ +local_bh_enable (); }rtnl_unlock (); }
drivers/s390/scsi/zfcp_fc.c +1 -5
@@ -534,8 +534,7 @@ static void zfcp_fc_adisc_handler(void *data)/* re-init to undo drop from zfcp_fc_adisc() */ port->d_id =ntoh24 (adisc_resp->adisc_port_id); -/* port is good, unblock rport without going through erp */ -zfcp_scsi_schedule_rport_register (port); +/* port is still good, nothing to do */ out:atomic_andnot (ZFCP_STATUS_PORT_LINK_TEST , &port->status);put_device (&port->dev);
@@ -595,9 +594,6 @@ void zfcp_fc_link_test_work(struct work_struct *work)int retval;set_worker_desc ("zadisc%16llx" , port->wwpn);/* < WORKER_DESC_LEN=24 */ -get_device (&port->dev); - port->rport_task =RPORT_DEL ; -zfcp_scsi_rport_work (&port->rport_work);/* only issue one test command at one time per port */ if (atomic_read (&port->status) &ZFCP_STATUS_PORT_LINK_TEST )
drivers/scsi/storvsc_drv.c +4 -0
@@ -365,6 +365,7 @@ static void storvsc_on_channel_callback(void *context);#define STORVSC_FC_MAX_LUNS_PER_TARGET 255#define STORVSC_FC_MAX_TARGETS 128#define STORVSC_FC_MAX_CHANNELS 8 +#define STORVSC_FC_MAX_XFER_SIZE ((u32)(512 * 1024))#define STORVSC_IDE_MAX_LUNS_PER_TARGET 64#define STORVSC_IDE_MAX_TARGETS 1
@@ -2002,6 +2003,9 @@ static int storvsc_probe(struct hv_device *device,* protecting it from any weird value. */ max_xfer_bytes =round_down (stor_device->max_transfer_bytes,HV_HYP_PAGE_SIZE ); +if (is_fc) + max_xfer_bytes =min (max_xfer_bytes,STORVSC_FC_MAX_XFER_SIZE ); +/* max_hw_sectors_kb */ host->max_sectors = max_xfer_bytes >>9 ;/*
fs/btrfs/block-group.c +34 -17
106 lines not on this page · raw message
fs/btrfs/block-group.h +2 -2
@@ -284,8 +284,8 @@ int btrfs_cache_block_group(struct btrfs_block_group *cache, bool wait);void btrfs_put_caching_control (struct btrfs_caching_control *ctl);struct btrfs_caching_control *btrfs_get_caching_control (struct btrfs_block_group *cache); -u64 add_new_free_space (struct btrfs_block_group *block_group, -u64 start,u64 end); +int add_new_free_space (struct btrfs_block_group *block_group, +u64 start,u64 end,u64 *total_added_ret);struct btrfs_trans_handle *btrfs_start_trans_remove_block_group (struct btrfs_fs_info *fs_info,const u64 chunk_offset);
fs/btrfs/free-space-tree.c +17 -7
@@ -1510,9 +1510,13 @@ static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl,if (prev_bit ==0 && bit ==1 ) { extent_start = offset; }else if (prev_bit ==1 && bit ==0 ) { - total_found +=add_new_free_space (block_group, - extent_start, - offset); +u64 space_added; + + ret =add_new_free_space (block_group, extent_start, + offset, &space_added); +if (ret) + goto out; + total_found += space_added;if (total_found >CACHING_CTL_WAKE_UP ) { total_found =0 ;wake_up (&caching_ctl->wait);
@@ -1524,8 +1528,9 @@ static int load_free_space_bitmaps(struct btrfs_caching_control *caching_ctl, } }if (prev_bit ==1 ) { - total_found +=add_new_free_space (block_group, extent_start, - end); + ret =add_new_free_space (block_group, extent_start, end,NULL ); +if (ret) + goto out; extent_count++; }
@@ -1564,6 +1569,8 @@ static int load_free_space_extents(struct btrfs_caching_control *caching_ctl, end = block_group->start + block_group->length;while (1 ) { +u64 space_added; + ret =btrfs_next_item (root, path);if (ret <0 ) goto out;
@@ -1578,8 +1585,11 @@ static int load_free_space_extents(struct btrfs_caching_control *caching_ctl,ASSERT (key.type ==BTRFS_FREE_SPACE_EXTENT_KEY );ASSERT (key.objectid < end && key.objectid + key.offset <= end); - total_found +=add_new_free_space (block_group, key.objectid, - key.objectid + key.offset); + ret =add_new_free_space (block_group, key.objectid, + key.objectid + key.offset, &space_added); +if (ret) + goto out; + total_found += space_added;
Lines of this file are not shown. View the raw message.
fs/f2fs/super.c +29 -14
43 lines not on this page · raw message
net/core/sock.c +26 -19
45 lines not on this page · raw message
net/ipv4/tcp_metrics.c +44 -26
70 lines not on this page · raw message
net/sched/cls_u32.c +50 -7
57 lines not on this page · raw message
rust/kernel/allocator.rs +59 -15
74 lines not on this page · raw message
tools/perf/tests/shell/test_uprobe_from_different_cu.sh +7 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json +25 -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.