Linux 6.4.10
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.4.10 kernel.
All users of the 6.4 kernel series must upgrade.
The updated 6.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/kdump/vmcoreinfo.rst | 6 Documentation/arm64/silicon-errata.rst | 4 Makefile | 2 arch/arm/boot/dts/at91-qil_a9260.dts | 2 arch/arm/boot/dts/at91-sama5d27_som1_ek.dts | 2 arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts | 2 arch/arm/boot/dts/at91-sama5d2_xplained.dts | 2 arch/arm/boot/dts/at91rm9200.dtsi | 2 arch/arm/boot/dts/at91sam9260.dtsi | 4 arch/arm/boot/dts/at91sam9260ek.dts | 2 arch/arm/boot/dts/at91sam9261.dtsi | 4 arch/arm/boot/dts/at91sam9263.dtsi | 4 arch/arm/boot/dts/at91sam9g20.dtsi | 2 arch/arm/boot/dts/at91sam9g20ek_common.dtsi | 2 arch/arm/boot/dts/at91sam9g25.dtsi | 2 arch/arm/boot/dts/at91sam9g35.dtsi | 2 arch/arm/boot/dts/at91sam9g45.dtsi | 6 arch/arm/boot/dts/at91sam9n12.dtsi | 4 arch/arm/boot/dts/at91sam9rl.dtsi | 6 arch/arm/boot/dts/at91sam9x25.dtsi | 2 arch/arm/boot/dts/at91sam9x35.dtsi | 2 arch/arm/boot/dts/at91sam9x5.dtsi | 6 arch/arm/boot/dts/imx53-sk-imx53.dts | 10 arch/arm/boot/dts/imx6sll.dtsi | 2 arch/arm/boot/dts/sam9x60.dtsi | 32 - arch/arm/boot/dts/sama5d2.dtsi | 6 arch/arm/boot/dts/sama5d3.dtsi | 6 arch/arm/boot/dts/sama5d3_emac.dtsi | 2 arch/arm/boot/dts/sama5d4.dtsi | 6 arch/arm/boot/dts/sama7g5.dtsi | 4 arch/arm/boot/dts/usb_a9260.dts | 2 arch/arm/boot/dts/usb_a9263.dts | 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 | 10 arch/parisc/mm/fixmap.c | 3 arch/parisc/mm/init.c | 34 + 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/riscv/kernel/crash_core.c | 2 arch/s390/kernel/sthyi.c | 6 arch/s390/kvm/intercept.c | 9 arch/s390/mm/vmem.c | 2 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/clk/mediatek/clk-mt8183.c | 27 drivers/firmware/arm_scmi/mailbox.c | 4 drivers/firmware/arm_scmi/raw_mode.c | 5 drivers/firmware/arm_scmi/smc.c | 21 drivers/firmware/smccc/soc_id.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 35 - drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 3 drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 178 ++++-- drivers/gpu/drm/i915/gt/gen8_engine_cs.h | 21 drivers/gpu/drm/i915/gt/intel_gpu_commands.h | 2 drivers/gpu/drm/i915/gt/intel_gt_regs.h | 16 drivers/gpu/drm/i915/gt/intel_lrc.c | 17 drivers/gpu/drm/i915/i915_active.c | 99 ++- drivers/gpu/drm/i915/i915_request.c | 11 drivers/gpu/drm/imx/ipuv3/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/mtd/nand/spi/winbond.c | 4 drivers/mtd/spi-nor/spansion.c | 4 drivers/net/dsa/bcm_sf2.c | 8 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 85 +-- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c | 14 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h | 2 drivers/net/ethernet/broadcom/tg3.c | 1 drivers/net/ethernet/intel/ice/ice_main.c | 18 drivers/net/ethernet/korina.c | 3 drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c | 3 drivers/net/ethernet/marvell/prestera/prestera_pci.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c | 5 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c | 4 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c | 4 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls.c | 8 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c | 29 - 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_main.c | 29 - drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 20 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 21 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 3 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 103 +++ drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c | 2 drivers/net/ethernet/mellanox/mlx5/core/main.c | 1 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c | 5 drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 1 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/sfc/siena/tx_common.c | 1 drivers/net/ethernet/sfc/tx_common.c | 1 drivers/net/ethernet/socionext/netsec.c | 11 drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c | 3 drivers/net/ethernet/sun/sunvnet_common.c | 1 drivers/net/ethernet/xilinx/ll_temac_main.c | 12 drivers/net/tap.c | 3 drivers/net/tun.c | 2 drivers/net/usb/cdc_ether.c | 21 drivers/net/usb/lan78xx.c | 7 drivers/net/usb/r8152.c | 1 drivers/net/usb/usbnet.c | 6 drivers/net/usb/zaurus.c | 21 drivers/net/wireguard/device.c | 1 drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 1 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 drivers/soc/imx/imx8mp-blk-ctrl.c | 2 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/file.c | 18 fs/ntfs3/attrlist.c | 4 fs/open.c | 2 fs/smb/client/dfs.c | 6 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/linux/netdevice.h | 26 include/linux/skbuff.h | 71 -- include/linux/spi/spi-mem.h | 4 include/net/gro.h | 44 + include/net/gso.h | 109 +++ include/net/inet_sock.h | 7 include/net/ip.h | 2 include/net/route.h | 4 include/net/udp.h | 1 include/net/vxlan.h | 4 io_uring/timeout.c | 2 kernel/bpf/bloom_filter.c | 3 kernel/bpf/bpf_local_storage.c | 3 kernel/bpf/bpf_struct_ops.c | 3 kernel/bpf/cpumap.c | 39 - kernel/bpf/devmap.c | 3 kernel/bpf/hashtab.c | 6 kernel/bpf/lpm_trie.c | 3 kernel/bpf/queue_stack_maps.c | 4 kernel/bpf/reuseport_array.c | 3 kernel/bpf/stackmap.c | 3 kernel/bpf/syscall.c | 136 +++- kernel/trace/bpf_trace.c | 17 lib/Makefile | 6 lib/debugobjects.c | 9 lib/test_bitmap.c | 8 mm/filemap.c | 26 mm/gup.c | 2 mm/kasan/generic.c | 4 mm/kasan/tags.c | 2 mm/kmsan/core.c | 6 mm/kmsan/instrumentation.c | 2 mm/memcontrol.c | 19 mm/memory.c | 28 - net/bluetooth/l2cap_sock.c | 2 net/can/raw.c | 2 net/ceph/osd_client.c | 20 net/core/Makefile | 2 net/core/bpf_sk_storage.c | 5 net/core/dev.c | 70 -- net/core/gro.c | 59 -- net/core/gso.c | 273 ++++++++++ net/core/rtnetlink.c | 8 net/core/skbuff.c | 142 ----- net/core/sock.c | 45 - net/core/sock_map.c | 6 net/dcb/dcbnl.c | 2 net/dccp/ipv6.c | 4 net/ipv4/af_inet.c | 1 net/ipv4/esp4_offload.c | 1 net/ipv4/gre_offload.c | 1 net/ipv4/inet_diag.c | 4 net/ipv4/ip_output.c | 9 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/ipv4/tcp_offload.c | 1 net/ipv4/udp.c | 9 net/ipv4/udp_offload.c | 8 net/ipv6/esp6_offload.c | 1 net/ipv6/ip6_offload.c | 1 net/ipv6/ip6_output.c | 1 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 | 12 net/ipv6/udp_offload.c | 8 net/l2tp/l2tp_ip6.c | 2 net/mac80211/tx.c | 1 net/mpls/af_mpls.c | 1 net/mpls/mpls_gso.c | 1 net/mptcp/sockopt.c | 2 net/netfilter/nf_flow_table_ip.c | 1 net/netfilter/nfnetlink_queue.c | 1 net/netfilter/nft_socket.c | 2 net/netfilter/xt_socket.c | 4 net/nsh/nsh.c | 1 net/openvswitch/actions.c | 1 net/openvswitch/datapath.c | 1 net/packet/af_packet.c | 12 net/sched/act_police.c | 1 net/sched/cls_fw.c | 1 net/sched/cls_route.c | 1 net/sched/cls_u32.c | 57 +- net/sched/sch_cake.c | 1 net/sched/sch_netem.c | 1 net/sched/sch_taprio.c | 16 net/sched/sch_tbf.c | 1 net/sctp/offload.c | 1 net/smc/af_smc.c | 2 net/unix/af_unix.c | 2 net/wireless/scan.c | 2 net/xdp/xsk.c | 2 net/xdp/xskmap.c | 4 net/xfrm/xfrm_device.c | 1 net/xfrm/xfrm_interface_core.c | 1 net/xfrm/xfrm_output.c | 1 net/xfrm/xfrm_policy.c | 2 rust/bindings/bindings_helper.h | 1 rust/kernel/allocator.rs | 74 ++ tools/perf/arch/arm64/util/pmu.c | 7 tools/perf/tests/shell/test_uprobe_from_different_cu.sh | 8 tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c | 6 tools/testing/selftests/net/so_incoming_cpu.c | 2 tools/testing/selftests/rseq/rseq.c | 28 - tools/testing/selftests/tc-testing/tc-tests/qdiscs/taprio.json | 25 tools/testing/vsock/Makefile | 2 276 files changed, 2315 insertions(+), 1232 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
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 (5):
drm/i915/gt: Cleanup aux invalidation registers
drm/i915: Add the gen12_needs_ccs_aux_inv helper drm/i915/gt: Rename flags with bit_group_X according to the datasheet drm/i915/gt: Support aux invalidation on all engines drm/i915/gt: Enable the CCS_FLUSH bit in the pipe control and in the CS
Andrii Nakryiko (3):
bpf: Move unprivileged checks into map_create() and bpf_prog_load()
bpf: Inline map creation logic in map_create() function
bpf: Centralize permissions checks for all BPF map types
Aneesh Kumar K.V (1):
powerpc/mm/altmap: Fix altmap boundary check
Arnd Bergmann (1):
mtd: spi-nor: avoid holes in struct spi_mem_op
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 (1):
f2fs: fix to do sanity check on direct node in truncate_dnode()
Chen-Yu Tsai (1):
clk: mediatek: mt8183: Add back SSPM related clocks
Chengfeng Ye (1):
mISDN: hfcpci: Fix potential deadlock on &hc->lock
Chris Mi (2):
net/mlx5e: Don't hold encap tbl lock if there is no encap action net/mlx5: fs_chains: Fix ft prio if ignore_flow_level is not supported
Christophe JAILLET (1):
mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
Claudiu Beznea (3):
ARM: dts: at91: use clock-controller name for PMC nodes
ARM: dts: at91: use clock-controller name for sckc nodes
ARM: dts: at91: use generic name for shutdown controller
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
Dmitry Baryshkov (1):
ARM: dts: nxp/imx: limit sk-imx53 supported frequencies
Dragos Tatulea (2):
net/mlx5e: xsk: Fix invalid buffer access for legacy rq net/mlx5e: xsk: Fix crash on regular rq reactivation
Duoming Zhou (1):
net: usb: lan78xx: reorder cleanup operations to avoid UAF bugs
Durai Manickam KR (1):
ARM: dts: at91: sam9x60: fix the SOC detection
Eric Dumazet (17):
net: move gso declarations and functions to their own files
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 (1):
Linux 6.4.10
Guchun Chen (1):
drm/ttm: check null pointer before accessing when swapping
Haixin Yu (1):
perf pmu arm64: Fix reading the PMU cpu slots in sysfs
Heiko Carstens (1):
KVM: s390: fix sthyi error handling
Hou Tao (2):
bpf, cpumap: Make sure kthread is running before map update returns bpf, cpumap: Handle skb as well when clean up ptr_ring
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
Jakub Kicinski (1):
bnxt: don't handle XDP in netpoll
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
Jann Horn (1):
mm: lock_vma_under_rcu() must check vma->anon_vma under vma lock
Janusz Krzysztofik (1):
drm/i915: Fix premature release of request's reusable memory
Jason Gunthorpe (1):
mm/gup: do not return 0 from pin_user_pages_fast() for bad args
Jianbo Liu (4):
net/mlx5e: Move representor neigh cleanup to profile cleanup_tx net/mlx5e: kTLS, Fix protection domain in use syndrome when devlink reload 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
Jonathan Cavitt (2):
drm/i915/gt: Ensure memory quiesced before invalidation drm/i915/gt: Poll aux invalidation register bit on invalidation
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 (2):
net/sched: taprio: Limit TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME to INT_MAX.
selftest: net: Assert on a proper value in so_incoming_cpu.c.
Laszlo Ersek (2):
net: tun_chr_open(): set sk_uid from current_fsuid()
net: tap_open(): set sk_uid from current_fsuid()
Leon Romanovsky (1):
net/mlx5e: Set proper IPsec source port in L4 selector
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
Lucas Stach (1):
soc: imx: imx8mp-blk-ctrl: register HSIO PLL clock as bus_power_dev child
Mark Brown (6):
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: Flush FP state when setting ZT0 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
Michal Schmidt (1):
octeon_ep: initialize mbox mutexes
Mike Kravetz (1):
Revert "page cache: fix page_cache_next/prev_miss off by one"
Mike Rapoport (IBM) (1):
parisc/mm: preallocate fixmap page tables at init
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 (2):
mtd: spinand: toshiba: Fix ecc_get_status
mtd: spinand: winbond: Fix ecc_get_status
Paul Fertser (1):
wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
Paulo Alcantara (1):
smb: client: fix dfs link mount against w2k8
Pavel Begunkov (1):
io_uring: annotate offset timeout races
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
Richard Gobert (1):
net: gro: fix misuse of CB in udp socket lookup
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
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 (2):
net/mlx5: Honor user input for migratable port fn attr net/mlx5: Unregister devlink params in case interface is down
Somnath Kotur (1):
bnxt_en: Fix page pool logic for page size >= 64K
Song Shuai (2):
Documentation: kdump: Add va_kernel_pa_offset for RISCV64
riscv: Export va_kernel_pa_offset in vmcoreinfo
Stefano Garzarella (1):
test/vsock: remove vsock_perf executable on make clean
Steffen Maier (1):
scsi: zfcp: Defer fc_rport blocking until after ADISC response
Stephen Rothwell (1):
sunvnet: fix sparc64 build error after gso code split
Sukrut Bellary (1):
firmware: arm_scmi: Fix signed error return values handling
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
Sven Schnelle (1):
s390/vmem: split pages when debug pagealloc is enabled
Tejas Upadhyay (1):
drm/i915/gt: Add workaround 14016712196
Tetsuo Handa (3):
fs/ntfs3: Use __GFP_NOWARN allocation at ntfs_load_attr_list() kasan,kmsan: remove __GFP_KSWAPD_RECLAIM usage from kasan/kmsan
debugobjects: Recheck debug_objects_enabled before reporting
Thierry Reding (1):
net: stmmac: tegra: Properly allocate clock bulk data
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
Xiubo Li (1):
ceph: defer stopping mdsc delayed_work
Xu Yang (1):
ARM: dts: nxp/imx6sll: fix wrong property name in usbphy node
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/admin-guide/kdump/vmcoreinfo.rst +6 -0
@@ -624,3 +624,9 @@ Used to get the correct ranges: * VMALLOC_START ~ VMALLOC_END : vmalloc() / ioremap() space. * VMEMMAP_START ~ VMEMMAP_END : vmemmap space, used for struct page array. * KERNEL_LINK_ADDR : start address of Kernel link and BPF + +va_kernel_pa_offset +------------------- + +Indicates the offset between the kernel virtual and physical mappings. +Used to translate virtual to physical addresses.
Documentation/arm64/silicon-errata.rst +4 -0
@@ -143,6 +143,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 = 4 -SUBLEVEL = 9 +SUBLEVEL = 10 EXTRAVERSION = NAME = Hurr durr I'ma ninja sloth
arch/arm/boot/dts/at91-qil_a9260.dts +1 -1
@@ -108,7 +108,7 @@ dbgu: serial@fffff200 { status = "okay"; }; - shdwc@fffffd10 { + shdwc: poweroff@fffffd10 { atmel,wakeup-counter = <10>; atmel,wakeup-rtt-timer; };
arch/arm/boot/dts/at91-sama5d27_som1_ek.dts +1 -1
@@ -139,7 +139,7 @@ i2c3: i2c@600 { }; }; - shdwc@f8048010 { + poweroff@f8048010 { debounce-delay-us = <976>; atmel,wakeup-rtc-timer;
arch/arm/boot/dts/at91-sama5d2_ptc_ek.dts +1 -1
@@ -204,7 +204,7 @@ i2c2: i2c@600 { }; }; - shdwc@f8048010 { + poweroff@f8048010 { debounce-delay-us = <976>; input@0 {
arch/arm/boot/dts/at91-sama5d2_xplained.dts +1 -1
@@ -348,7 +348,7 @@ i2c2: i2c@600 { }; }; - shdwc@f8048010 { + poweroff@f8048010 { debounce-delay-us = <976>; atmel,wakeup-rtc-timer;
arch/arm/boot/dts/at91rm9200.dtsi +1 -1
@@ -102,7 +102,7 @@ ramc0: ramc@ffffff00 { reg = <0xffffff00 0x100>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91rm9200-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
arch/arm/boot/dts/at91sam9260.dtsi +2 -2
@@ -115,7 +115,7 @@ matrix: matrix@ffffee00 { reg = <0xffffee00 0x200>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9260-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -130,7 +130,7 @@ reset-controller@fffffd00 { clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>; }; - shdwc@fffffd10 { + shdwc: poweroff@fffffd10 { compatible = "atmel,at91sam9260-shdwc"; reg = <0xfffffd10 0x10>; clocks = <&pmc PMC_TYPE_CORE PMC_SLOW>;
arch/arm/boot/dts/at91sam9260ek.dts +1 -1
@@ -112,7 +112,7 @@ pinctrl_board_mmc0_slot1: mmc0_slot1-board { }; }; - shdwc@fffffd10 { + shdwc: poweroff@fffffd10 { atmel,wakeup-counter = <10>; atmel,wakeup-rtt-timer; };
arch/arm/boot/dts/at91sam9261.dtsi +2 -2
@@ -599,7 +599,7 @@ pioC: gpio@fffff800 { }; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9261-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -614,7 +614,7 @@ reset-controller@fffffd00 { clocks = <&slow_xtal>; }; - shdwc@fffffd10 { + poweroff@fffffd10 { compatible = "atmel,at91sam9260-shdwc"; reg = <0xfffffd10 0x10>; clocks = <&slow_xtal>;
arch/arm/boot/dts/at91sam9263.dtsi +2 -2
@@ -101,7 +101,7 @@ aic: interrupt-controller@fffff000 { atmel,external-irqs = <30 31>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9263-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -158,7 +158,7 @@ reset-controller@fffffd00 { clocks = <&slow_xtal>; }; - shdwc@fffffd10 { + poweroff@fffffd10 { compatible = "atmel,at91sam9260-shdwc"; reg = <0xfffffd10 0x10>; clocks = <&slow_xtal>;
arch/arm/boot/dts/at91sam9g20.dtsi +1 -1
@@ -41,7 +41,7 @@ adc0: adc@fffe0000 { atmel,adc-startup-time = <40>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9g20-pmc", "atmel,at91sam9260-pmc", "syscon"; }; };
arch/arm/boot/dts/at91sam9g20ek_common.dtsi +1 -1
@@ -126,7 +126,7 @@ flash@1 { }; }; - shdwc@fffffd10 { + shdwc: poweroff@fffffd10 { atmel,wakeup-counter = <10>; atmel,wakeup-rtt-timer; };
arch/arm/boot/dts/at91sam9g25.dtsi +1 -1
@@ -26,7 +26,7 @@ pinctrl@fffff400 { >; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9g25-pmc", "atmel,at91sam9x5-pmc", "syscon"; }; };
arch/arm/boot/dts/at91sam9g35.dtsi +1 -1
@@ -25,7 +25,7 @@ pinctrl@fffff400 { >; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9g35-pmc", "atmel,at91sam9x5-pmc", "syscon"; }; };
arch/arm/boot/dts/at91sam9g45.dtsi +3 -3
@@ -129,7 +129,7 @@ matrix: matrix@ffffea00 { reg = <0xffffea00 0x200>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9g45-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -152,7 +152,7 @@ pit: timer@fffffd30 { }; - shdwc@fffffd10 { + poweroff@fffffd10 { compatible = "atmel,at91sam9rl-shdwc"; reg = <0xfffffd10 0x10>; clocks = <&clk32k>;
@@ -923,7 +923,7 @@ usb2: gadget@fff78000 { status = "disabled"; }; - clk32k: sckc@fffffd50 { + clk32k: clock-controller@fffffd50 { compatible = "atmel,at91sam9x5-sckc"; reg = <0xfffffd50 0x4>; clocks = <&slow_xtal>;
arch/arm/boot/dts/at91sam9n12.dtsi +2 -2
@@ -118,7 +118,7 @@ smc: smc@ffffea00 { reg = <0xffffea00 0x200>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9n12-pmc", "syscon"; reg = <0xfffffc00 0x200>; #clock-cells = <2>;
@@ -140,7 +140,7 @@ pit: timer@fffffe30 { clocks = <&pmc PMC_TYPE_CORE PMC_MCK>; }; - shdwc@fffffe10 { + poweroff@fffffe10 { compatible = "atmel,at91sam9x5-shdwc"; reg = <0xfffffe10 0x10>; clocks = <&clk32k>;
arch/arm/boot/dts/at91sam9rl.dtsi +3 -3
@@ -763,7 +763,7 @@ pioD: gpio@fffffa00 { }; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9rl-pmc", "syscon"; reg = <0xfffffc00 0x100>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -778,7 +778,7 @@ reset-controller@fffffd00 { clocks = <&clk32k>; }; - shdwc@fffffd10 { + poweroff@fffffd10 { compatible = "atmel,at91sam9260-shdwc"; reg = <0xfffffd10 0x10>; clocks = <&clk32k>;
@@ -799,7 +799,7 @@ watchdog@fffffd40 { status = "disabled"; }; - clk32k: sckc@fffffd50 { + clk32k: clock-controller@fffffd50 { compatible = "atmel,at91sam9x5-sckc"; reg = <0xfffffd50 0x4>; clocks = <&slow_xtal>;
arch/arm/boot/dts/at91sam9x25.dtsi +1 -1
@@ -27,7 +27,7 @@ pinctrl@fffff400 { >; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9x25-pmc", "atmel,at91sam9x5-pmc", "syscon"; }; };
arch/arm/boot/dts/at91sam9x35.dtsi +1 -1
@@ -26,7 +26,7 @@ pinctrl@fffff400 { >; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9x35-pmc", "atmel,at91sam9x5-pmc", "syscon"; }; };
arch/arm/boot/dts/at91sam9x5.dtsi +3 -3
@@ -126,7 +126,7 @@ smc: smc@ffffea00 { reg = <0xffffea00 0x200>; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,at91sam9x5-pmc", "syscon"; reg = <0xfffffc00 0x200>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -141,7 +141,7 @@ reset_controller: reset-controller@fffffe00 { clocks = <&clk32k>; }; - shutdown_controller: shdwc@fffffe10 { + shutdown_controller: poweroff@fffffe10 { compatible = "atmel,at91sam9x5-shdwc"; reg = <0xfffffe10 0x10>; clocks = <&clk32k>;
@@ -154,7 +154,7 @@ pit: timer@fffffe30 { clocks = <&pmc PMC_TYPE_CORE PMC_MCK>; }; - clk32k: sckc@fffffe50 { + clk32k: clock-controller@fffffe50 { compatible = "atmel,at91sam9x5-sckc"; reg = <0xfffffe50 0x4>; clocks = <&slow_xtal>;
arch/arm/boot/dts/imx53-sk-imx53.dts +10 -0
@@ -60,6 +60,16 @@ &can1 { status = "okay"; }; +&cpu0 { + /* CPU rated to 800 MHz, not the default 1.2GHz. */ + operating-points = < + /* kHz uV */ + 166666 850000 + 400000 900000 + 800000 1050000 + >; +}; + &ecspi1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi1>;
arch/arm/boot/dts/imx6sll.dtsi +1 -1
@@ -552,7 +552,7 @@ usbphy2: usb-phy@20ca000 { reg = <0x020ca000 0x1000>; interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX6SLL_CLK_USBPHY2>; - phy-reg_3p0-supply = <®_3p0>; + phy-3p0-supply = <®_3p0>; fsl,anatop = <&anatop>; };
arch/arm/boot/dts/sam9x60.dtsi +16 -16
@@ -172,7 +172,7 @@ flx4: flexcom@f0000000 { status = "disabled"; uart4: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <13 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -240,7 +240,7 @@ flx5: flexcom@f0004000 { status = "disabled"; uart5: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; atmel,usart-mode = <AT91_USART_MODE_SERIAL>; interrupts = <14 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -370,7 +370,7 @@ flx11: flexcom@f0020000 { status = "disabled"; uart11: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <32 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -419,7 +419,7 @@ flx12: flexcom@f0024000 { status = "disabled"; uart12: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <33 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -576,7 +576,7 @@ flx6: flexcom@f8010000 { status = "disabled"; uart6: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <9 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -625,7 +625,7 @@ flx7: flexcom@f8014000 { status = "disabled"; uart7: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <10 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -674,7 +674,7 @@ flx8: flexcom@f8018000 { status = "disabled"; uart8: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <11 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -723,7 +723,7 @@ flx0: flexcom@f801c000 { status = "disabled"; uart0: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <5 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -791,7 +791,7 @@ flx1: flexcom@f8020000 { status = "disabled"; uart1: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <6 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -859,7 +859,7 @@ flx2: flexcom@f8024000 { status = "disabled"; uart2: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <7 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -927,7 +927,7 @@ flx3: flexcom@f8028000 { status = "disabled"; uart3: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <8 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -1050,7 +1050,7 @@ flx9: flexcom@f8040000 { status = "disabled"; uart9: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <15 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -1099,7 +1099,7 @@ flx10: flexcom@f8044000 { status = "disabled"; uart10: serial@200 { - compatible = "microchip,sam9x60-dbgu", "microchip,sam9x60-usart", "atmel,at91sam9260-dbgu", "atmel,at91sam9260-usart"; + compatible = "microchip,sam9x60-usart", "atmel,at91sam9260-usart"; reg = <0x200 0x200>; interrupts = <16 IRQ_TYPE_LEVEL_HIGH 7>; dmas = <&dma0
@@ -1282,7 +1282,7 @@ pioD: gpio@fffffa00 { }; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "microchip,sam9x60-pmc", "syscon"; reg = <0xfffffc00 0x200>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -1297,7 +1297,7 @@ reset_controller: reset-controller@fffffe00 { clocks = <&clk32k 0>; }; - shutdown_controller: shdwc@fffffe10 { + shutdown_controller: poweroff@fffffe10 { compatible = "microchip,sam9x60-shdwc"; reg = <0xfffffe10 0x10>; clocks = <&clk32k 0>;
@@ -1322,7 +1322,7 @@ pit: timer@fffffe40 { clocks = <&pmc PMC_TYPE_CORE PMC_MCK>; }; - clk32k: sckc@fffffe50 { + clk32k: clock-controller@fffffe50 { compatible = "microchip,sam9x60-sckc"; reg = <0xfffffe50 0x4>; clocks = <&slow_xtal>;
arch/arm/boot/dts/sama5d2.dtsi +3 -3
@@ -284,7 +284,7 @@ dma1: dma-controller@f0004000 { clock-names = "dma_clk"; }; - pmc: pmc@f0014000 { + pmc: clock-controller@f0014000 { compatible = "atmel,sama5d2-pmc", "syscon"; reg = <0xf0014000 0x160>; interrupts = <74 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -680,7 +680,7 @@ reset_controller: reset-controller@f8048000 { clocks = <&clk32k>; }; - shutdown_controller: shdwc@f8048010 { + shutdown_controller: poweroff@f8048010 { compatible = "atmel,sama5d2-shdwc"; reg = <0xf8048010 0x10>; clocks = <&clk32k>;
@@ -704,7 +704,7 @@ watchdog: watchdog@f8048040 { status = "disabled"; }; - clk32k: sckc@f8048050 { + clk32k: clock-controller@f8048050 { compatible = "atmel,sama5d4-sckc"; reg = <0xf8048050 0x4>;
arch/arm/boot/dts/sama5d3.dtsi +3 -3
@@ -1001,7 +1001,7 @@ pioE: gpio@fffffa00 { }; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { compatible = "atmel,sama5d3-pmc", "syscon"; reg = <0xfffffc00 0x120>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -1016,7 +1016,7 @@ reset_controller: reset-controller@fffffe00 { clocks = <&clk32k>; }; - shutdown_controller: shutdown-controller@fffffe10 { + shutdown_controller: poweroff@fffffe10 { compatible = "atmel,at91sam9x5-shdwc"; reg = <0xfffffe10 0x10>; clocks = <&clk32k>;
@@ -1040,7 +1040,7 @@ watchdog: watchdog@fffffe40 { status = "disabled"; }; - clk32k: sckc@fffffe50 { + clk32k: clock-controller@fffffe50 { compatible = "atmel,sama5d3-sckc"; reg = <0xfffffe50 0x4>; clocks = <&slow_xtal>;
arch/arm/boot/dts/sama5d3_emac.dtsi +1 -1
@@ -30,7 +30,7 @@ AT91_PIOC 8 AT91_PERIPH_A AT91_PINCTRL_NONE /* PC8 periph A EMDC, conflicts with }; }; - pmc: pmc@fffffc00 { + pmc: clock-controller@fffffc00 { }; macb1: ethernet@f802c000 {
arch/arm/boot/dts/sama5d4.dtsi +3 -3
@@ -250,7 +250,7 @@ dma0: dma-controller@f0014000 { clock-names = "dma_clk"; }; - pmc: pmc@f0018000 { + pmc: clock-controller@f0018000 { compatible = "atmel,sama5d4-pmc", "syscon"; reg = <0xf0018000 0x120>; interrupts = <1 IRQ_TYPE_LEVEL_HIGH 7>;
@@ -740,7 +740,7 @@ reset_controller: reset-controller@fc068600 { clocks = <&clk32k>; }; - shutdown_controller: shdwc@fc068610 { + shutdown_controller: poweroff@fc068610 { compatible = "atmel,at91sam9x5-shdwc"; reg = <0xfc068610 0x10>; clocks = <&clk32k>;
@@ -761,7 +761,7 @@ watchdog: watchdog@fc068640 { status = "disabled"; }; - clk32k: sckc@fc068650 { + clk32k: clock-controller@fc068650 { compatible = "atmel,sama5d4-sckc"; reg = <0xfc068650 0x4>; #clock-cells = <0>;
arch/arm/boot/dts/sama7g5.dtsi +2 -2
@@ -241,7 +241,7 @@ pioA: pinctrl@e0014000 { clocks = <&pmc PMC_TYPE_PERIPHERAL 11>; }; - pmc: pmc@e0018000 { + pmc: clock-controller@e0018000 { compatible = "microchip,sama7g5-pmc", "syscon"; reg = <0xe0018000 0x200>; interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
@@ -257,7 +257,7 @@ reset_controller: reset-controller@e001d000 { clocks = <&clk32k 0>; }; - shdwc: shdwc@e001d010 { + shdwc: poweroff@e001d010 { compatible = "microchip,sama7g5-shdwc", "syscon"; reg = <0xe001d010 0x10>; clocks = <&clk32k 0>;
arch/arm/boot/dts/usb_a9260.dts +1 -1
@@ -22,7 +22,7 @@ memory@20000000 { ahb { apb { - shdwc@fffffd10 { + shdwc: poweroff@fffffd10 { atmel,wakeup-counter = <10>; atmel,wakeup-rtt-timer; };
arch/arm/boot/dts/usb_a9263.dts +1 -1
@@ -67,7 +67,7 @@ flash@0 { }; }; - shdwc@fffffd10 { + poweroff@fffffd10 { atmel,wakeup-counter = <10>; atmel,wakeup-rtt-timer; };
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +1 -1
@@ -145,7 +145,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 */ pinctrl-names = "default", "gpio"; pinctrl-0 = <&i2c1_pmx_func>;
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
@@ -567,6 +567,10 @@ &pcie0 { status = "okay"; }; +&disp_blk_ctrl { + status = "disabled"; +}; + &pgc_mipi { status = "disabled"; };
arch/arm64/boot/dts/freescale/imx8mm-venice-gw7904.dts +4 -0
@@ -628,6 +628,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
@@ -770,7 +770,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
@@ -679,7 +679,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));
@@ -705,7 +705,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);
@@ -835,7 +835,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));
@@ -909,7 +910,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 +7 -3
@@ -932,11 +932,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 ); target->thread.fp_type =FP_STATE_SVE ;BUILD_BUG_ON (SVE_PT_SVE_OFFSET !=sizeof (header));
@@ -1180,6 +1182,8 @@ static int zt_set(struct task_struct *target,if (ret ==0 ) target->thread.svcr |=SVCR_ZA_MASK ; +fpsimd_flush_task_state (target); +return ret; }
arch/parisc/mm/fixmap.c +0 -3
@@ -19,9 +19,6 @@ void notrace set_fixmap(enum fixed_addresses idx, phys_addr_t phys)pmd_t *pmd =pmd_offset (pud, vaddr);pte_t *pte; -if (pmd_none (*pmd)) - pte =pte_alloc_kernel (pmd, vaddr); - pte =pte_offset_kernel (pmd, vaddr);set_pte_at (&init_mm, vaddr, pte,__mk_pte (phys,PAGE_KERNEL_RWX ));flush_tlb_kernel_range (vaddr, vaddr +PAGE_SIZE );
arch/parisc/mm/init.c +34 -0
@@ -671,6 +671,39 @@ static void __init gateway_init(void) PAGE_SIZE, PAGE_GATEWAY, 1); } +static void __init fixmap_init (void ) +{ +unsigned long addr =FIXMAP_START ; +unsigned long end =FIXMAP_START +FIXMAP_SIZE ; +pgd_t *pgd =pgd_offset_k (addr); +p4d_t *p4d =p4d_offset (pgd, addr); +pud_t *pud =pud_offset (p4d, addr); +pmd_t *pmd; + +BUILD_BUG_ON (FIXMAP_SIZE >PMD_SIZE ); + +#if CONFIG_PGTABLE_LEVELS ==3 +if (pud_none (*pud)) { + pmd =memblock_alloc (PAGE_SIZE <<PMD_TABLE_ORDER , +PAGE_SIZE <<PMD_TABLE_ORDER ); +if (!pmd) +panic ("fixmap: pmd allocation failed.\n" ); +pud_populate (NULL , pud, pmd); + } +#endif + + pmd =pmd_offset (pud, addr); +do { +pte_t *pte =memblock_alloc (PAGE_SIZE ,PAGE_SIZE ); +if (!pte) +panic ("fixmap: pte allocation failed.\n" ); + +pmd_populate_kernel (&init_mm, pmd, pte); + + addr +=PAGE_SIZE ; + }while (addr < end); +} +static void __init parisc_bootmem_free (void ) {unsigned long max_zone_pfn[MAX_NR_ZONES ] = {0 , };
@@ -685,6 +718,7 @@ void __init paging_init(void)setup_bootmem ();pagetable_init ();gateway_init (); +fixmap_init ();flush_cache_all_local ();/* start with known state */ flush_tlb_all_local (NULL );
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/riscv/kernel/crash_core.c +2 -0
@@ -18,4 +18,6 @@ void arch_crash_save_vmcoreinfo(void)vmcoreinfo_append_str ("NUMBER(MODULES_END)=0x%lx\n" ,MODULES_END );#endif vmcoreinfo_append_str ("NUMBER(KERNEL_LINK_ADDR)=0x%lx\n" ,KERNEL_LINK_ADDR ); +vmcoreinfo_append_str ("NUMBER(va_kernel_pa_offset)=0x%lx\n" , + kernel_map.va_kernel_pa_offset); }
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/s390/mm/vmem.c +2 -0
@@ -761,6 +761,8 @@ void __init vmem_map_init(void)if (static_key_enabled (&cpu_has_bear))set_memory_nx (0 ,1 );set_memory_nx (PAGE_SIZE ,1 ); +if (debug_pagealloc_enabled ()) +set_memory_4k (0 , ident_map_size >>PAGE_SHIFT );pr_info ("Write protected kernel read-only data: %luk\n" , (unsigned long )(__end_rodata - _stext) >>10 );
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>
@@ -471,6 +472,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
@@ -495,4 +495,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
@@ -684,10 +684,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 extern unsigned long arch_align_stack (unsigned long sp);
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++;
@@ -1130,6 +1134,11 @@ static void init_amd(struct cpuinfo_x86 *c)WARN_ON_ONCE (msr_set_bit (MSR_EFER , _EFER_AUTOIBRS));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
@@ -1309,3 +1318,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
@@ -3675,7 +3675,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);
@@ -3878,7 +3878,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); }
@@ -3940,8 +3940,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++) {
@@ -3985,8 +3987,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);
@@ -4089,11 +4095,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);
@@ -6627,12 +6630,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
@@ -291,7 +291,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/clk/mediatek/clk-mt8183.c +27 -0
@@ -328,6 +328,14 @@ static const char * const atb_parents[] = {"syspll_d5" }; +static const char *const sspm_parents[] = { +"clk26m" , +"univpll_d2_d4" , +"syspll_d2_d2" , +"univpll_d2_d2" , +"syspll_d3" +}; +static const char *const dpi0_parents[] = {"clk26m" ,"tvdpll_d2" ,
@@ -506,6 +514,9 @@ static const struct mtk_mux top_muxes[] = {/* CLK_CFG_6 */ MUX_GATE_CLR_SET_UPD (CLK_TOP_MUX_ATB ,"atb_sel" , atb_parents,0xa0 ,0xa4 ,0xa8 ,0 ,2 ,7 ,0x004 ,24 ), +MUX_GATE_CLR_SET_UPD_FLAGS (CLK_TOP_MUX_SSPM ,"sspm_sel" , + sspm_parents,0xa0 ,0xa4 ,0xa8 ,8 ,3 ,15 ,0x004 ,25 , +CLK_IS_CRITICAL |CLK_SET_RATE_PARENT ),MUX_GATE_CLR_SET_UPD (CLK_TOP_MUX_DPI0 ,"dpi0_sel" , dpi0_parents,0xa0 ,0xa4 ,0xa8 ,16 ,4 ,23 ,0x004 ,26 ), MUX_GATE_CLR_SET_UPD(CLK_TOP_MUX_SCAM, "scam_sel",
@@ -671,10 +682,18 @@ static const struct mtk_gate_regs infra3_cg_regs = {GATE_MTK (_id, _name, _parent, &infra2_cg_regs, _shift, \ &mtk_clk_gate_ops_setclr) +#define GATE_INFRA2_FLAGS (_id, _name, _parent, _shift, _flag) \ + GATE_MTK_FLAGS(_id, _name, _parent, &infra2_cg_regs, \ + _shift, &mtk_clk_gate_ops_setclr, _flag) +#define GATE_INFRA3 (_id, _name, _parent, _shift) \ GATE_MTK(_id, _name, _parent, &infra3_cg_regs, _shift, \ &mtk_clk_gate_ops_setclr) +#define GATE_INFRA3_FLAGS (_id, _name, _parent, _shift, _flag) \ + GATE_MTK_FLAGS(_id, _name, _parent, &infra3_cg_regs, \ + _shift, &mtk_clk_gate_ops_setclr, _flag) +static const struct mtk_gate infra_clks[] = {/* INFRA0 */ GATE_INFRA0 (CLK_INFRA_PMIC_TMR ,"infra_pmic_tmr" ,"axi_sel" ,0 ),
@@ -746,7 +765,11 @@ static const struct mtk_gate infra_clks[] = {GATE_INFRA2 (CLK_INFRA_UNIPRO_TICK ,"infra_unipro_tick" ,"fufs_sel" ,12 ),GATE_INFRA2 (CLK_INFRA_UFS_MP_SAP_BCLK ,"infra_ufs_mp_sap_bck" ,"fufs_sel" ,13 ),GATE_INFRA2 (CLK_INFRA_MD32_BCLK ,"infra_md32_bclk" ,"axi_sel" ,14 ), +/* infra_sspm is main clock in co-processor, should not be closed in Linux. */ +GATE_INFRA2_FLAGS (CLK_INFRA_SSPM ,"infra_sspm" ,"sspm_sel" ,15 ,CLK_IS_CRITICAL ),GATE_INFRA2 (CLK_INFRA_UNIPRO_MBIST ,"infra_unipro_mbist" ,"axi_sel" ,16 ), +/* infra_sspm_bus_hclk is main clock in co-processor, should not be closed in Linux. */ +GATE_INFRA2_FLAGS (CLK_INFRA_SSPM_BUS_HCLK ,"infra_sspm_bus_hclk" ,"axi_sel" ,17 ,CLK_IS_CRITICAL ),GATE_INFRA2 (CLK_INFRA_I2C5 ,"infra_i2c5" ,"i2c_sel" ,18 ),GATE_INFRA2 (CLK_INFRA_I2C5_ARBITER ,"infra_i2c5_arbiter" ,"i2c_sel" ,19 ), GATE_INFRA2(CLK_INFRA_I2C5_IMM, "infra_i2c5_imm", "i2c_sel", 20),
@@ -764,6 +787,10 @@ static const struct mtk_gate infra_clks[] = {GATE_INFRA3 (CLK_INFRA_MSDC0_SELF ,"infra_msdc0_self" ,"msdc50_0_sel" ,0 ),GATE_INFRA3 (CLK_INFRA_MSDC1_SELF ,"infra_msdc1_self" ,"msdc50_0_sel" ,1 ),GATE_INFRA3 (CLK_INFRA_MSDC2_SELF ,"infra_msdc2_self" ,"msdc50_0_sel" ,2 ), +/* infra_sspm_26m_self is main clock in co-processor, should not be closed in Linux. */ +GATE_INFRA3_FLAGS (CLK_INFRA_SSPM_26M_SELF ,"infra_sspm_26m_self" ,"f_f26m_ck" ,3 ,CLK_IS_CRITICAL ), +/* infra_sspm_32k_self is main clock in co-processor, should not be closed in Linux. */ +GATE_INFRA3_FLAGS (CLK_INFRA_SSPM_32K_SELF ,"infra_sspm_32k_self" ,"f_f26m_ck" ,4 ,CLK_IS_CRITICAL ),GATE_INFRA3 (CLK_INFRA_UFS_AXI ,"infra_ufs_axi" ,"axi_sel" ,5 ),GATE_INFRA3 (CLK_INFRA_I2C6 ,"infra_i2c6" ,"i2c_sel" ,6 ), GATE_INFRA3(CLK_INFRA_AP_MSDC0, "infra_ap_msdc0", "msdc50_hclk_sel", 7),
drivers/firmware/arm_scmi/mailbox.c +3 -1
@@ -166,8 +166,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/raw_mode.c +4 -1
@@ -818,10 +818,13 @@ static ssize_t scmi_dbg_raw_mode_common_write(struct file *filp,* before sending it with a single RAW xfer. */ if (rd->tx_size < rd->tx_req_size) { -size_t cnt; +ssize_t cnt; cnt =simple_write_to_buffer (rd->tx.buf, rd->tx.len, ppos, buf, count); +if (cnt <0 ) +return cnt; + rd->tx_size += cnt;if (cnt < count)return cnt;
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_ttm.c +19 -16
@@ -1623,14 +1623,15 @@ static int amdgpu_ttm_training_reserve_vram_fini(struct amdgpu_device *adev)return 0 ; } -static void amdgpu_ttm_training_data_block_init (struct amdgpu_device *adev) +static void amdgpu_ttm_training_data_block_init (struct amdgpu_device *adev, +uint32_t reserve_size) {struct psp_memory_training_context *ctx = &adev->psp.mem_train_ctx;memset (ctx,0 ,sizeof (*ctx)); ctx->c2p_train_data_offset = -ALIGN ((adev->gmc.mc_vram_size - adev->mman.discovery_tmr_size -SZ_1M ),SZ_1M ); +ALIGN ((adev->gmc.mc_vram_size - reserve_size -SZ_1M ),SZ_1M ); ctx->p2c_train_data_offset = (adev->gmc.mc_vram_size -GDDR6_MEM_TRAINING_OFFSET ); ctx->train_data_size =
@@ -1648,9 +1649,10 @@ static void amdgpu_ttm_training_data_block_init(struct amdgpu_device *adev)*/ static int amdgpu_ttm_reserve_tmr (struct amdgpu_device *adev) { -int ret;struct psp_memory_training_context *ctx = &adev->psp.mem_train_ctx;bool mem_train_support = false; +uint32_t reserve_size =0 ; +int ret;if (!amdgpu_sriov_vf (adev)) {if (amdgpu_atomfirmware_mem_training_supported (adev))
@@ -1666,14 +1668,15 @@ static int amdgpu_ttm_reserve_tmr(struct amdgpu_device *adev)* Otherwise, fallback to legacy approach to check and reserve tmr block for ip * discovery data and G6 memory training data respectively */ - adev->mman.discovery_tmr_size = -amdgpu_atomfirmware_get_fw_reserved_fb_size (adev); -if (!adev->mman.discovery_tmr_size) - adev->mman.discovery_tmr_size =DISCOVERY_TMR_OFFSET ; +if (adev->bios) + reserve_size = +amdgpu_atomfirmware_get_fw_reserved_fb_size (adev); +if (!reserve_size) + reserve_size =DISCOVERY_TMR_OFFSET ;if (mem_train_support) {/* reserve vram for mem train according to TMR location */ -amdgpu_ttm_training_data_block_init (adev); +amdgpu_ttm_training_data_block_init (adev, reserve_size); ret = amdgpu_bo_create_kernel_at(adev, ctx->c2p_train_data_offset, ctx->train_data_size,
@@ -1687,14 +1690,13 @@ static int amdgpu_ttm_reserve_tmr(struct amdgpu_device *adev) ctx->init =PSP_MEM_TRAIN_RESERVE_SUCCESS ; } - ret =amdgpu_bo_create_kernel_at (adev, - adev->gmc.real_vram_size - adev->mman.discovery_tmr_size, - adev->mman.discovery_tmr_size, - &adev->mman.discovery_memory, -NULL ); + ret =amdgpu_bo_create_kernel_at ( + adev, adev->gmc.real_vram_size - reserve_size, + reserve_size, &adev->mman.fw_reserved_memory,NULL );if (ret) {DRM_ERROR ("alloc tmr failed(%d)!\n" , ret); -amdgpu_bo_free_kernel (&adev->mman.discovery_memory,NULL ,NULL ); +amdgpu_bo_free_kernel (&adev->mman.fw_reserved_memory, +NULL ,NULL );return ret; }
@@ -1881,8 +1883,9 @@ void amdgpu_ttm_fini(struct amdgpu_device *adev)/* return the stolen vga memory back to VRAM */ amdgpu_bo_free_kernel (&adev->mman.stolen_vga_memory,NULL ,NULL );amdgpu_bo_free_kernel (&adev->mman.stolen_extended_memory,NULL ,NULL ); -/* return the IP Discovery TMR memory back to VRAM */ -amdgpu_bo_free_kernel (&adev->mman.discovery_memory,NULL ,NULL ); +/* return the FW reserved memory back to VRAM */ +amdgpu_bo_free_kernel (&adev->mman.fw_reserved_memory,NULL , +NULL );if (adev->mman.stolen_reserved_size)amdgpu_bo_free_kernel (&adev->mman.stolen_reserved_memory,NULL ,NULL );
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +2 -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;
drivers/gpu/drm/i915/gt/gen8_engine_cs.c +130 -48
256 lines not on this page · raw message
drivers/gpu/drm/i915/gt/gen8_engine_cs.h +13 -8
@@ -13,6 +13,7 @@#include "intel_gt_regs.h" #include "intel_gpu_commands.h" +struct intel_engine_cs ;struct intel_gt ;struct i915_request ;
@@ -46,28 +47,32 @@ u32 *gen8_emit_fini_breadcrumb_rcs(struct i915_request *rq, u32 *cs);u32 *gen11_emit_fini_breadcrumb_rcs (struct i915_request *rq,u32 *cs);u32 *gen12_emit_fini_breadcrumb_rcs (struct i915_request *rq,u32 *cs); -u32 *gen12_emit_aux_table_inv (struct intel_gt *gt,u32 *cs,const i915_reg_t inv_reg); +u32 *gen12_emit_aux_table_inv (struct intel_engine_cs *engine,u32 *cs);static inline u32 * -__gen8_emit_pipe_control (u32 *batch,u32 flags0,u32 flags1,u32 offset) +__gen8_emit_pipe_control (u32 *batch,u32 bit_group_0, +u32 bit_group_1,u32 offset) {memset (batch,0 ,6 *sizeof (u32)); - batch[0 ] =GFX_OP_PIPE_CONTROL (6 ) | flags0; - batch[1 ] = flags1; + batch[0 ] =GFX_OP_PIPE_CONTROL (6 ) | bit_group_0; + batch[1 ] = bit_group_1; batch[2 ] = offset;return batch +6 ; } -static inline u32 *gen8_emit_pipe_control (u32 *batch,u32 flags,u32 offset) +static inline u32 *gen8_emit_pipe_control (u32 *batch, +u32 bit_group_1,u32 offset) { -return __gen8_emit_pipe_control (batch,0 , flags, offset); +return __gen8_emit_pipe_control (batch,0 , bit_group_1, offset); } -static inline u32 *gen12_emit_pipe_control (u32 *batch,u32 flags0,u32 flags1,u32 offset) +static inline u32 *gen12_emit_pipe_control (u32 *batch,u32 bit_group_0, +u32 bit_group_1,u32 offset) { -return __gen8_emit_pipe_control (batch, flags0, flags1, offset); +return __gen8_emit_pipe_control (batch, bit_group_0, + bit_group_1, offset); } static inline u32 *
drivers/gpu/drm/i915/gt/intel_gpu_commands.h +2 -0
@@ -121,6 +121,7 @@#define MI_SEMAPHORE_TARGET (engine) ((engine)<<15)#define MI_SEMAPHORE_WAIT MI_INSTR(0x1c, 2)/* GEN8+ */ #define MI_SEMAPHORE_WAIT_TOKEN MI_INSTR(0x1c, 3)/* GEN12+ */ +#define MI_SEMAPHORE_REGISTER_POLL (1 << 16)#define MI_SEMAPHORE_POLL (1 << 15)#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12)#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12)
@@ -299,6 +300,7 @@#define PIPE_CONTROL_QW_WRITE (1<<14)#define PIPE_CONTROL_POST_SYNC_OP_MASK (3<<14)#define PIPE_CONTROL_DEPTH_STALL (1<<13) +#define PIPE_CONTROL_CCS_FLUSH (1<<13)/* MTL+ */ #define PIPE_CONTROL_WRITE_FLUSH (1<<12)#define PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH (1<<12)/* gen6+ */ #define PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE (1<<11)/* MBZ on ILK */
drivers/gpu/drm/i915/gt/intel_gt_regs.h +8 -8
@@ -331,9 +331,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)
@@ -341,14 +343,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 +2 -15
@@ -1364,10 +1364,7 @@ gen12_emit_indirect_ctx_rcs(const struct intel_context *ce, u32 *cs) IS_DG2_G11(ce->engine->i915)) cs =gen8_emit_pipe_control (cs,PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE ,0 ); -/* 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_emit_aux_table_inv (ce->engine, cs);/* Wa_16014892111 */ if (IS_DG2 (ce->engine->i915))
@@ -1390,17 +1387,7 @@ gen12_emit_indirect_ctx_xcs(const struct intel_context *ce, u32 *cs)PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE , 0); -/* hsdes: 1809175790 */ -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 ); -else if (ce->engine->class ==VIDEO_ENHANCEMENT_CLASS ) - cs =gen12_emit_aux_table_inv (ce->engine->gt, - cs,GEN12_VE0_AUX_NV ); - } - -return cs; +return gen12_emit_aux_table_inv (ce->engine, cs); } static void
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
@@ -1661,6 +1661,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)); }
@@ -1707,6 +1712,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; }
@@ -1760,6 +1769,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/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
@@ -519,7 +519,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/mtd/nand/spi/winbond.c +2 -2
@@ -108,7 +108,7 @@ static int w25n02kv_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 :
@@ -126,7 +126,7 @@ static int w25n02kv_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/mtd/spi-nor/spansion.c +2 -2
@@ -361,7 +361,7 @@ static int cypress_nor_determine_addr_mode_by_sr1(struct spi_nor *nor,*/ static int cypress_nor_set_addr_mode_nbytes (struct spi_nor *nor) { -struct spi_mem_op op = {}; +struct spi_mem_op op;u8 addr_mode;int ret;
@@ -492,7 +492,7 @@ s25fs256t_post_bfpt_fixup(struct spi_nor *nor,const struct sfdp_parameter_header *bfpt_header, const struct sfdp_bfpt *bfpt) { - struct spi_mem_op op = {}; + struct spi_mem_op op;int ret; ret =cypress_nor_set_addr_mode_nbytes (nor);
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 +51 -34
238 lines not on this page · raw message
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -1
@@ -1005,7 +1005,7 @@ struct bnxt_napi {struct bnxt_tx_ring_info *tx_ring;void (*tx_int)(struct bnxt *,struct bnxt_napi *, -int ); +int budget);int tx_pkts;u8 events;
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c +10 -4
@@ -125,16 +125,20 @@ static void __bnxt_xmit_xdp_redirect(struct bnxt *bp,dma_unmap_len_set (tx_buf, len,0 ); } -void bnxt_tx_int_xdp (struct bnxt *bp,struct bnxt_napi *bnapi,int nr_pkts) +void bnxt_tx_int_xdp (struct bnxt *bp,struct bnxt_napi *bnapi,int budget) {struct bnxt_tx_ring_info *txr = bnapi->tx_ring;struct bnxt_rx_ring_info *rxr = bnapi->rx_ring;bool rx_doorbell_needed = false; +int nr_pkts = bnapi->tx_pkts;struct bnxt_sw_tx_bd *tx_buf;u16 tx_cons = txr->tx_cons;u16 last_tx_cons = tx_cons;int i, j, frags; +if (!budget) +return ; +for (i =0 ; i < nr_pkts; i++) { tx_buf = &txr->tx_buf_ring[tx_cons];
@@ -161,6 +165,8 @@ void bnxt_tx_int_xdp(struct bnxt *bp, struct bnxt_napi *bnapi, int nr_pkts) } tx_cons =NEXT_TX (tx_cons); } + + bnapi->tx_pkts =0 ;WRITE_ONCE (txr->tx_cons, tx_cons);if (rx_doorbell_needed) { tx_buf = &txr->tx_buf_ring[last_tx_cons];
@@ -180,8 +186,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 +303,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 */
@@ -480,7 +486,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/broadcom/bnxt/bnxt_xdp.h +1 -1
@@ -16,7 +16,7 @@ struct bnxt_sw_tx_bd *bnxt_xmit_bd(struct bnxt *bp,struct bnxt_tx_ring_info *txr, dma_addr_t mapping, u32 len, struct xdp_buff *xdp); -void bnxt_tx_int_xdp (struct bnxt *bp,struct bnxt_napi *bnapi,int nr_pkts); +void bnxt_tx_int_xdp (struct bnxt *bp,struct bnxt_napi *bnapi,int budget);bool bnxt_rx_xdp (struct bnxt *bp,struct bnxt_rx_ring_info *rxr,u16 cons,struct xdp_buff xdp,struct page *page,u8 **data_ptr,unsigned int *len,u8 *event);
drivers/net/ethernet/broadcom/tg3.c +1 -0
@@ -57,6 +57,7 @@#include <linux/crc32poly.h> #include <net/checksum.h> +#include <net/gso.h> #include <net/ip.h> #include <linux/io.h>
drivers/net/ethernet/intel/ice/ice_main.c +18 -0
@@ -9055,6 +9055,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) {
@@ -9064,10 +9065,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/octeon_ep/octep_ctrl_mbox.c +3 -0
@@ -98,6 +98,9 @@ int octep_ctrl_mbox_init(struct octep_ctrl_mbox *mbox)writeq (OCTEP_CTRL_MBOX_STATUS_INIT ,OCTEP_CTRL_MBOX_INFO_HOST_STATUS (mbox->barmem)); +mutex_init (&mbox->h2fq_lock); +mutex_init (&mbox->f2hq_lock); + mbox->h2fq.sz =readl (OCTEP_CTRL_MBOX_H2FQ_SZ (mbox->barmem)); mbox->h2fq.hw_prod =OCTEP_CTRL_MBOX_H2FQ_PROD (mbox->barmem); mbox->h2fq.hw_cons =OCTEP_CTRL_MBOX_H2FQ_CONS (mbox->barmem);
drivers/net/ethernet/marvell/prestera/prestera_pci.c +2 -1
@@ -727,7 +727,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/tc_tun_encap.c +0 -3
@@ -1030,9 +1030,6 @@ int mlx5e_tc_tun_encap_dests_set(struct mlx5e_priv *priv,int out_index;int err =0 ; -if (!mlx5e_is_eswitch_flow (flow)) -return 0 ; - parse_attr = attr->parse_attr; esw_attr = attr->esw_attr; *vf_tun = false;
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c +4 -1
@@ -323,8 +323,11 @@ struct sk_buff *mlx5e_xsk_skb_from_cqe_linear(struct mlx5e_rq *rq,net_prefetch (mxbuf->xdp.data); prog =rcu_dereference (rq->xdp_prog); -if (likely (prog &&mlx5e_xdp_handle (rq, prog, mxbuf))) +if (likely (prog &&mlx5e_xdp_handle (rq, prog, mxbuf))) { +if (likely (__test_and_clear_bit (MLX5E_RQ_FLAG_XDP_XMIT , rq->flags))) + wi->flags |=BIT (MLX5E_WQE_FRAG_SKIP_RELEASE );return NULL ;/* page/packet was consumed by XDP */ + }/* XDP_PASS: copy the data from the UMEM to a new SKB. The frame reuse * will be handled by mlx5e_free_rx_wqe.
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c +2 -2
@@ -808,9 +808,9 @@ static void setup_fte_upper_proto_match(struct mlx5_flow_spec *spec, struct upsp }if (upspec->sport) { -MLX5_SET (fte_match_set_lyr_2_4, spec->match_criteria, udp_dport, +MLX5_SET (fte_match_set_lyr_2_4, spec->match_criteria, udp_sport, upspec->sport_mask); -MLX5_SET (fte_match_set_lyr_2_4, spec->match_value, udp_dport, upspec->sport); +MLX5_SET (fte_match_set_lyr_2_4, spec->match_value, udp_sport, upspec->sport); } }
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/ktls.c +0 -8
@@ -188,7 +188,6 @@ static void mlx5e_tls_debugfs_init(struct mlx5e_tls *tls,int mlx5e_ktls_init (struct mlx5e_priv *priv) { -struct mlx5_crypto_dek_pool *dek_pool;struct mlx5e_tls *tls;if (!mlx5e_is_ktls_device (priv->mdev))
@@ -199,12 +198,6 @@ int mlx5e_ktls_init(struct mlx5e_priv *priv)return -ENOMEM ; tls->mdev = priv->mdev; - dek_pool =mlx5_crypto_dek_pool_create (priv->mdev,MLX5_ACCEL_OBJ_TLS_KEY ); -if (IS_ERR (dek_pool)) { -kfree (tls); -return PTR_ERR (dek_pool); - } - tls->dek_pool = dek_pool; priv->tls = tls;mlx5e_tls_debugfs_init (tls, priv->dfs_root);
@@ -222,7 +215,6 @@ void mlx5e_ktls_cleanup(struct mlx5e_priv *priv)debugfs_remove_recursive (tls->debugfs.dfs); tls->debugfs.dfs =NULL ; -mlx5_crypto_dek_pool_destroy (tls->dek_pool);kfree (priv->tls); priv->tls =NULL ; }
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c +26 -3
@@ -908,28 +908,51 @@ static void mlx5e_tls_tx_debugfs_init(struct mlx5e_tls *tls,int mlx5e_ktls_init_tx (struct mlx5e_priv *priv) { +struct mlx5_crypto_dek_pool *dek_pool;struct mlx5e_tls *tls = priv->tls; +int err; + +if (!mlx5e_is_ktls_device (priv->mdev)) +return 0 ; + +/* DEK pool could be used by either or both of TX and RX. But we have to +* put the creation here to avoid syndrome when doing devlink reload. +*/ + dek_pool =mlx5_crypto_dek_pool_create (priv->mdev,MLX5_ACCEL_OBJ_TLS_KEY ); +if (IS_ERR (dek_pool)) +return PTR_ERR (dek_pool); + tls->dek_pool = dek_pool;if (!mlx5e_is_ktls_tx (priv->mdev))return 0 ; priv->tls->tx_pool =mlx5e_tls_tx_pool_init (priv->mdev, &priv->tls->sw_stats); -if (!priv->tls->tx_pool) -return -ENOMEM ; +if (!priv->tls->tx_pool) { + err = -ENOMEM ; + goto err_tx_pool_init; + }mlx5e_tls_tx_debugfs_init (tls, tls->debugfs.dfs);return 0 ; + +err_tx_pool_init: +mlx5_crypto_dek_pool_destroy (dek_pool); +return err; }void mlx5e_ktls_cleanup_tx (struct mlx5e_priv *priv) {if (!mlx5e_is_ktls_tx (priv->mdev)) -return ; + goto dek_pool_destroy;debugfs_remove_recursive (priv->tls->debugfs.dfs_tx); priv->tls->debugfs.dfs_tx =NULL ;mlx5e_tls_tx_pool_cleanup (priv->tls->tx_pool); priv->tls->tx_pool =NULL ; + +dek_pool_destroy: +if (mlx5e_is_ktls_device (priv->mdev)) +mlx5_crypto_dek_pool_destroy (priv->tls->dek_pool); }
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec_fs.c +1 -0
@@ -161,6 +161,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
@@ -135,6 +135,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_main.c +21 -8
@@ -1036,7 +1036,23 @@ static int mlx5e_modify_rq_state(struct mlx5e_rq *rq, int curr_state, int next_sreturn err; } -static int mlx5e_rq_to_ready (struct mlx5e_rq *rq,int curr_state) +static void mlx5e_flush_rq_cq (struct mlx5e_rq *rq) +{ +struct mlx5_cqwq *cqwq = &rq->cq.wq; +struct mlx5_cqe64 *cqe; + +if (test_bit (MLX5E_RQ_STATE_MINI_CQE_ENHANCED , &rq->state)) { +while ((cqe =mlx5_cqwq_get_cqe_enahnced_comp (cqwq))) +mlx5_cqwq_pop (cqwq); + }else { +while ((cqe =mlx5_cqwq_get_cqe (cqwq))) +mlx5_cqwq_pop (cqwq); + } + +mlx5_cqwq_update_db_record (cqwq); +} + +int mlx5e_flush_rq (struct mlx5e_rq *rq,int curr_state) {struct net_device *dev = rq->netdev;int err;
@@ -1046,6 +1062,10 @@ static int mlx5e_rq_to_ready(struct mlx5e_rq *rq, int curr_state)netdev_err (dev,"Failed to move rq 0x%x to reset\n" , rq->rqn);return err; } + +mlx5e_free_rx_descs (rq); +mlx5e_flush_rq_cq (rq); + err =mlx5e_modify_rq_state (rq,MLX5_RQC_STATE_RST ,MLX5_RQC_STATE_RDY );if (err) {netdev_err (dev,"Failed to move rq 0x%x to ready\n" , rq->rqn);
@@ -1055,13 +1075,6 @@ static int mlx5e_rq_to_ready(struct mlx5e_rq *rq, int curr_state)return 0 ; } -int mlx5e_flush_rq (struct mlx5e_rq *rq,int curr_state) -{ -mlx5e_free_rx_descs (rq); - -return mlx5e_rq_to_ready (rq, curr_state); -} -static int mlx5e_modify_rq_vsd (struct mlx5e_rq *rq,bool vsd) {struct mlx5_core_dev *mdev = rq->mdev;
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +9 -11
@@ -964,7 +964,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,
@@ -998,6 +998,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:
@@ -1111,6 +1112,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)
@@ -1127,6 +1132,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; }
@@ -1140,22 +1147,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)
@@ -1205,7 +1207,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;
@@ -1227,7 +1228,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 ;
@@ -1242,7 +1242,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 ();
@@ -1252,7 +1251,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/en_tc.c +18 -3
@@ -1725,6 +1725,19 @@ verify_attr_actions(u32 actions, struct netlink_ext_ack *extack)return 0 ; } +static bool +has_encap_dests (struct mlx5_flow_attr *attr) +{ +struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; +int out_index; + +for (out_index =0 ; out_index <MLX5_MAX_FLOW_FWD_VPORTS ; out_index++) +if (esw_attr->dests[out_index].flags &MLX5_ESW_DEST_ENCAP ) +return true; + +return false; +} + static int post_process_attr(struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr,
@@ -1737,9 +1750,11 @@ post_process_attr(struct mlx5e_tc_flow *flow,if (err) goto err_out; - err =mlx5e_tc_tun_encap_dests_set (flow->priv, flow, attr, extack, &vf_tun); -if (err) - goto err_out; +if (mlx5e_is_eswitch_flow (flow) &&has_encap_dests (attr)) { + err =mlx5e_tc_tun_encap_dests_set (flow->priv, flow, attr, extack, &vf_tun); +if (err) + goto err_out; + }if (attr->action &MLX5_FLOW_CONTEXT_ACTION_MOD_HDR ) { err =mlx5e_tc_attach_mod_hdr (flow->priv, flow, attr);
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c +1 -2
@@ -1376,7 +1376,6 @@ esw_chains_create(struct mlx5_eswitch *esw, struct mlx5_flow_table *miss_fdb)esw_init_chains_offload_flags (esw, &attr.flags); attr.ns =MLX5_FLOW_NAMESPACE_FDB ; - attr.fs_base_prio =FDB_TC_OFFLOAD ; attr.max_grp_num = esw->params.large_group_num; attr.default_ft = miss_fdb; attr.mapping = esw->offloads.reg_c0_obj_pool;
@@ -4073,7 +4072,7 @@ int mlx5_devlink_port_fn_migratable_set(struct devlink_port *port, bool enable, } hca_caps =MLX5_ADDR_OF (query_hca_cap_out, query_ctx, capability); -MLX5_SET (cmd_hca_cap_2, hca_caps, migratable,1 ); +MLX5_SET (cmd_hca_cap_2, hca_caps, migratable, enable); err =mlx5_vport_set_other_func_cap (esw->dev, hca_caps, vport->vport,MLX5_SET_HCA_CAP_OP_MOD_GENERAL_DEVICE2 );
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +83 -20
118 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/main.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c +3 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/myricom/myri10ge/myri10ge.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_dev_api.h +16 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_fcoe.c +14 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_fcoe.h +15 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_hw.c +22 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_iscsi.c +14 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_iscsi.h +6 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_l2.c +14 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_l2.h +24 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/qlogic/qed/qed_main.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/sfc/siena/tx_common.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/socionext/netsec.c +11 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/stmicro/stmmac/dwmac-tegra.c +2 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/sun/sunvnet_common.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/xilinx/ll_temac_main.c +8 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/tx.c +1 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c +3 -3
Lines of this file are not shown. View the raw message.
fs/btrfs/block-group.c +34 -17
51 lines not on this page · raw message
include/linux/skbuff.h +0 -71
71 lines not on this page · raw message
include/net/gro.h +44 -0
44 lines not on this page · raw message
include/net/gso.h new file +109 -0
109 lines not on this page · raw message
kernel/bpf/syscall.c +89 -47
136 lines not on this page · raw message
net/core/dev.c +1 -69
70 lines not on this page · raw message
net/core/gro.c +1 -58
59 lines not on this page · raw message
net/core/gso.c new file +273 -0
273 lines not on this page · raw message
net/core/skbuff.c +1 -141
142 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/bpf/prog_tests/unpriv_bpf_disabled.c +5 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/net/so_incoming_cpu.c +1 -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.