Linux 5.4.11
Greg KH
maintainerI'm announcing the release of the 5.4.11 kernel.
All users of the 5.4 kernel series must upgrade.
The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/am335x-sancloud-bbe.dts | 2 arch/arm/boot/dts/am437x-gp-evm.dts | 2 arch/arm/boot/dts/am43x-epos-evm.dts | 2 arch/arm/boot/dts/bcm-cygnus.dtsi | 4 arch/arm/boot/dts/bcm283x.dtsi | 2 arch/arm/boot/dts/bcm5301x.dtsi | 4 arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 2 arch/arm/configs/exynos_defconfig | 1 arch/arm/configs/imx_v6_v7_defconfig | 1 arch/arm/configs/omap2plus_defconfig | 1 arch/arm/mach-vexpress/spc.c | 12 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 10 arch/arm64/kernel/cpu_errata.c | 1 arch/mips/net/ebpf_jit.c | 9 arch/parisc/include/asm/cmpxchg.h | 10 arch/parisc/include/asm/kexec.h | 4 arch/parisc/kernel/Makefile | 2 arch/parisc/kernel/drivers.c | 2 arch/powerpc/include/asm/spinlock.h | 5 arch/powerpc/mm/mem.c | 8 arch/powerpc/platforms/pseries/setup.c | 7 arch/riscv/net/bpf_jit_comp.c | 4 arch/s390/purgatory/Makefile | 6 arch/s390/purgatory/string.c | 3 arch/x86/events/core.c | 19 arch/x86/kernel/early-quirks.c | 2 arch/x86/platform/efi/quirks.c | 6 block/blk-core.c | 11 block/blk-flush.c | 5 block/blk-map.c | 2 block/blk.h | 1 drivers/bus/ti-sysc.c | 4 drivers/char/tpm/tpm_ftpm_tee.c | 22 drivers/clk/at91/at91sam9260.c | 2 drivers/clk/at91/at91sam9rl.c | 2 drivers/clk/at91/at91sam9x5.c | 2 drivers/clk/at91/pmc.c | 2 drivers/clk/at91/sama5d2.c | 2 drivers/clk/at91/sama5d4.c | 2 drivers/clk/clk.c | 62 + drivers/firmware/efi/earlycon.c | 40 + drivers/firmware/efi/libstub/gop.c | 80 -- drivers/gpio/gpiolib-of.c | 27 drivers/gpu/drm/exynos/exynos_drm_gsc.c | 1 drivers/iommu/dma-iommu.c | 17 drivers/iommu/iova.c | 2 drivers/misc/habanalabs/command_submission.c | 5 drivers/misc/habanalabs/context.c | 2 drivers/misc/habanalabs/goya/goya.c | 15 drivers/misc/ocxl/context.c | 8 drivers/net/dsa/mv88e6xxx/global1.c | 5 drivers/net/dsa/mv88e6xxx/global1.h | 1 drivers/net/dsa/mv88e6xxx/port.c | 12 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h | 2 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 12 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h | 1 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c | 12 drivers/net/ethernet/cadence/macb_main.c | 4 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 4 drivers/net/ethernet/freescale/fec_main.c | 9 drivers/net/ethernet/intel/i40e/i40e.h | 2 drivers/net/ethernet/intel/i40e/i40e_main.c | 10 drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 7 drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 8 drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 drivers/net/ethernet/mellanox/mlx5/core/en/fs.h | 16 drivers/net/ethernet/mellanox/mlx5/core/en/health.c | 7 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h | 22 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c | 1 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c | 2 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c | 16 drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 19 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 drivers/net/ethernet/mellanox/mlx5/core/main.c | 16 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c | 5 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c | 10 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h | 14 drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c | 7 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 3 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 2 drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h | 2 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 3 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 40 - drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c | 4 drivers/net/gtp.c | 5 drivers/net/hyperv/hyperv_net.h | 3 drivers/net/hyperv/netvsc_drv.c | 4 drivers/net/hyperv/rndis_filter.c | 10 drivers/net/macvlan.c | 2 drivers/net/usb/lan78xx.c | 11 drivers/net/vxlan.c | 4 drivers/net/wireless/marvell/mwifiex/tdls.c | 70 +- drivers/perf/arm_smmuv3_pmu.c | 4 drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 24 drivers/pinctrl/pinmux.c | 2 drivers/platform/x86/pcengines-apuv2.c | 2 drivers/regulator/core.c | 12 drivers/regulator/rn5t618-regulator.c | 1 drivers/reset/core.c | 4 drivers/s390/block/dasd_eckd.c | 28 drivers/s390/cio/device_ops.c | 2 drivers/s390/net/qeth_core_main.c | 14 drivers/s390/net/qeth_core_mpc.h | 5 drivers/s390/net/qeth_core_sys.c | 2 drivers/s390/net/qeth_l2_main.c | 1 drivers/s390/net/qeth_l2_sys.c | 3 drivers/s390/net/qeth_l3_main.c | 1 drivers/spi/spi-cavium-thunderx.c | 2 drivers/spi/spi-fsl-spi.c | 15 drivers/spi/spi-nxp-fspi.c | 2 drivers/spi/spi-pxa2xx.c | 4 drivers/spi/spi-ti-qspi.c | 6 drivers/staging/axis-fifo/Kconfig | 2 drivers/usb/core/config.c | 70 +- drivers/usb/core/hub.c | 2 drivers/usb/dwc3/gadget.c | 7 drivers/usb/gadget/udc/dummy_hcd.c | 8 drivers/usb/serial/option.c | 2 drivers/usb/typec/tcpm/Kconfig | 1 fs/btrfs/extent-tree.c | 20 fs/btrfs/file.c | 4 fs/btrfs/ioctl.c | 16 fs/btrfs/qgroup.c | 4 fs/drop_caches.c | 2 fs/inode.c | 7 fs/io_uring.c | 4 fs/notify/fsnotify.c | 4 fs/quota/dquot.c | 1 fs/super.c | 4 include/linux/if_ether.h | 8 include/uapi/linux/netfilter/xt_sctp.h | 6 kernel/bpf/verifier.c | 9 kernel/locking/spinlock_debug.c | 32 kernel/sched/psi.c | 5 kernel/trace/ring_buffer.c | 6 kernel/trace/trace.c | 17 lib/sbitmap.c | 2 net/8021q/vlan.h | 1 net/8021q/vlan_dev.c | 3 net/8021q/vlan_netlink.c | 19 net/core/filter.c | 1 net/ipv4/tcp_input.c | 5 net/llc/llc_station.c | 4 net/mac80211/tx.c | 9 net/netfilter/nf_conntrack_netlink.c | 3 net/netfilter/nf_tables_api.c | 18 net/netfilter/nf_tables_offload.c | 6 net/netfilter/nft_bitwise.c | 4 net/netfilter/nft_cmp.c | 6 net/netfilter/nft_range.c | 10 net/netfilter/nft_set_rbtree.c | 21 net/rfkill/core.c | 7 net/sched/sch_cake.c | 2 net/sched/sch_fq.c | 6 net/sched/sch_prio.c | 10 net/sctp/sm_sideeffect.c | 28 net/wireless/core.c | 1 net/xdp/xsk.c | 22 samples/bpf/syscall_tp_kern.c | 18 samples/bpf/trace_event_user.c | 4 scripts/kconfig/expr.c | 7 scripts/package/mkdebian | 2 sound/soc/codecs/max98090.c | 8 sound/soc/codecs/max98090.h | 1 sound/soc/codecs/rt5682.c | 2 sound/soc/codecs/wm8962.c | 4 sound/soc/intel/boards/bytcr_rt5640.c | 8 sound/soc/soc-topology.c | 27 sound/soc/sof/intel/byt.c | 7 sound/soc/sof/loader.c | 2 tools/bpf/bpftool/prog.c | 2 tools/bpf/bpftool/xlated_dumper.c | 2 tools/lib/traceevent/Makefile | 6 tools/perf/util/header.c | 21 tools/perf/util/metricgroup.c | 7 tools/testing/selftests/ftrace/test.d/ftrace/func-filter-stacktrace.tc | 2 tools/testing/selftests/ftrace/test.d/ftrace/func_cpumask.tc | 5 tools/testing/selftests/ftrace/test.d/functions | 5 tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc | 6 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-action-hist-xfail.tc | 4 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onchange-action-hist.tc | 2 tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-snapshot-action-hist.tc | 4 tools/testing/selftests/kselftest/prefix.pl | 1 tools/testing/selftests/kselftest/runner.sh | 1 tools/testing/selftests/net/pmtu.sh | 6 tools/testing/selftests/netfilter/nft_nat.sh | 332 +++++----- tools/testing/selftests/safesetid/Makefile | 5 tools/testing/selftests/safesetid/safesetid-test.c | 15 191 files changed, 1239 insertions(+), 686 deletions(-)
Aditya Pakki (1):
rfkill: Fix incorrect check to avoid NULL pointer dereference
Alexander Shishkin (1):
perf/x86/intel: Fix PT PMI handling
Alexandre Belloni (1):
clk: at91: fix possible deadlock
Alexandre Torgue (1):
pinctrl: pinmux: fix a possible null pointer in pinmux_can_be_used_for_gpio
Andreas Kemnade (1):
regulator: rn5t618: fix module aliases
Andrew Jeffery (1):
pinctrl: aspeed-g6: Fix LPC/eSPI mux configuration
Andrew Lunn (2):
net: dsa: mv88e6xxx: Preserve priority when setting CPU port.
net: freescale: fec: Fix ethtool -d runtime PM
Andrey Konovalov (1):
USB: dummy-hcd: use usb_urb_dir_in instead of usb_pipein
Andy Shevchenko (1):
efi/earlycon: Remap entire framebuffer after page initialization
Arvind Sankar (3):
efi/gop: Return EFI_NOT_FOUND if there are no usable GOPs efi/gop: Return EFI_SUCCESS if a usable GOP was found efi/gop: Fix memory leak in __gop_query32/64()
Bart Van Assche (1):
block: Fix a lockdep complaint triggered by request queue flushing
Baruch Siach (1):
net: dsa: mv88e6xxx: force cmode write on 6141/6341
Brendan Higgins (1):
staging: axis-fifo: add unspecified HAS_IOMEM dependency
Chan Shu Tak, Alex (1):
llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c)
Chen Wandun (1):
habanalabs: remove variable 'val' set but not used
Chen-Yu Tsai (2):
net: stmmac: dwmac-sun8i: Allow all RGMII modes
net: stmmac: dwmac-sunxi: Allow all RGMII modes
Christian Borntraeger (1):
s390/purgatory: do not build purgatory with kcov, kasan and friends
Chuhong Yuan (2):
spi: spi-cavium-thunderx: Add missing pci_release_regions() drm/exynos: gsc: add missed component_del
Cristian Birsan (1):
net: usb: lan78xx: Fix error message format specifier
Curtis Malainey (1):
ASoC: SOF: Intel: split cht and byt debug window sizes
Daniel Borkmann (1):
bpf: Fix passing modified ctx to ld/abs/ind instruction
Daniel T. Lee (2):
samples: bpf: Replace symbol compare of trace_event
samples: bpf: fix syscall_tp due to unused syscall
Daniele Palmas (1):
USB: serial: option: add Telit ME910G1 0x110a composition
Dave Young (1):
x86/efi: Update e820 with reserved EFI boot services data to fix kexec breakage
David Jeffery (1):
sbitmap: only queue kyber's wait callback if not already active
Dragos Tarcatu (2):
ASoC: topology: Check return value for snd_soc_add_dai_link()
ASoC: topology: Check return value for soc_tplg_pcm_create()
Eli Cohen (1):
net/mlx5e: Fix hairpin RSS table size
Enrico Weigelt, metux IT consult (2):
scripts: package: mkdebian: add missing rsync dependency platform/x86: pcengines-apuv2: fix simswap GPIO assignment
Eran Ben Elisha (1):
net/mlx5e: Always print health reporter message to dmesg
Erez Shitrit (1):
net/mlx5: DR, Init lists that are used in rule's member
Eric Dumazet (6):
gtp: fix bad unlock balance in gtp_encap_enable_socket
macvlan: do not assume mac_header is set in macvlan_broadcast()
net: usb: lan78xx: fix possible skb leak
pkt_sched: fq: do not accept silly TCA_FQ_QUANTUM
vlan: fix memory leak in vlan_dev_set_egress_priority
vlan: vlan_changelink() should propagate errors
Eric Sandeen (2):
fs: avoid softlockups in s_inodes iterators
fs: call fsnotify_sb_delete after evict_inodes
Filipe Manana (2):
Btrfs: fix cloning range with a hole when using the NO_HOLES feature
Btrfs: fix hole extent items with a zero size after range cloning
Florian Fainelli (2):
ARM: dts: BCM5301X: Fix MDIO node address/size cells
ARM: dts: Cygnus: Fix MDIO node address/size cells
Florian Westphal (2):
netfilter: ctnetlink: netns exit must wait for callbacks
selftests: netfilter: use randomized netns names
Frederic Barrat (1):
ocxl: Fix potential memory leak on context creation
Fredrik Olofsson (1):
mac80211: fix TID field in monitor mode transmit
Geert Uytterhoeven (1):
reset: Do not register resource data for missing resets
Greg Kroah-Hartman (1):
Linux 5.4.11
Haiyang Zhang (1):
hv_netvsc: Fix unwanted rx_table reset
Hangbin Liu (2):
selftests: pmtu: fix init mtu value in description
vxlan: fix tos value before xmit
Hanjun Guo (1):
perf/smmuv3: Remove the leftover put_cpu() in error path
Hans de Goede (1):
ASoC: Intel: bytcr_rt5640: Update quirk for Teclast X89
Helge Deller (1):
parisc: Fix compiler warnings in debug_core.c
Jan Höppner (1):
s390/dasd/cio: Interpret ccw_device_get_mdc return value correctly
Jarkko Nikula (1):
spi: pxa2xx: Add support for Intel Jasper Lake
Jason A. Donenfeld (1):
powerpc/spinlocks: Include correct header for static key
Jerome Brunet (1):
clk: walk orphan list on clock provider registration
Johan Hovold (1):
USB: core: fix check for duplicate endpoints
Johannes Weiner (2):
sched/psi: Fix sampling error and rare div0 crashes with cgroups and high uptime
psi: Fix a division error in psi poll()
Jose Abreu (7):
net: stmmac: selftests: Needs to check the number of Multicast regs
net: stmmac: Determine earlier the size of RX buffer
net: stmmac: Do not accept invalid MTU values
net: stmmac: xgmac: Clear previous RX buffer size
net: stmmac: RX buffer size must be 16 byte aligned
net: stmmac: Always arm TX Timer at end of transmission start
net: stmmac: Fixed link does not need MDIO Bus
Josef Bacik (1):
btrfs: handle error in btrfs_cache_block_group
Julian Wiedmann (3):
s390/qeth: handle error due to unsupported transport mode s390/qeth: fix promiscuous mode after reset s390/qeth: don't return -ENOTSUPP to userspace
Kai-Heng Feng (1):
x86/intel: Disable HPET on Intel Ice Lake platforms
Kajol Jain (1):
perf metricgroup: Fix printing event names of metric group with multiple events
Karol Trzcinski (1):
ASoC: SOF: loader: snd_sof_fw_parse_ext_data log warning on unknown header
Leonard Crestez (1):
ARM: imx_v6_v7_defconfig: Explicitly restore CONFIG_DEBUG_FS
Linus Walleij (3):
spi: fsl: Fix GPIO descriptor support
gpio: Handle counting of Freescale chipselects
spi: fsl: Handle the single hardwired chipselect case
Lorenz Bauer (1):
bpf: Clear skb->tstamp in bpf_redirect when necessary
Manish Chopra (2):
bnx2x: Do not handle requests from VFs after parity
bnx2x: Fix logic to get total no. of PFs per engine
Mans Rullgard (1):
ARM: dts: am335x-sancloud-bbe: fix phy mode
Marco Elver (1):
locking/spinlock/debug: Fix various data races
Marek Szyprowski (1):
ARM: exynos_defconfig: Restore debugfs support
Masami Hiramatsu (7):
selftests/ftrace: Fix to check the existence of set_ftrace_filter selftests/ftrace: Fix ftrace test cases to check unsupported selftests/ftrace: Do not to use absolute debugfs path selftests/ftrace: Fix multiple kprobe testcase
selftests: safesetid: Move link library to LDLIBS
selftests: safesetid: Check the return value of setuid/setgid
selftests: safesetid: Fix Makefile to set correct test program
Maxim Mikityanskiy (4):
xsk: Add rcu_read_lock around the XSK wakeup net/mlx5e: Fix concurrency issues between config flow and XSK net/i40e: Fix concurrency issues between config flow and XSK net/ixgbe: Fix concurrency issues between config flow and XSK
Michael Guralnik (1):
net/mlx5: Move devlink registration before interfaces load
Michael Petlan (1):
perf header: Fix false warning when there are no duplicate cache entries
Michael Walle (3):
arm64: dts: ls1028a: fix typo in TMU calibration data
arm64: dts: ls1028a: fix reboot node
spi: nxp-fspi: Ensure width is respected in spi-mem operations
Mike Rapoport (1):
powerpc: Ensure that swiotlb buffer is allocated from low memory
Nikolay Borisov (1):
btrfs: Fix error messages in qgroup_rescan_init
Oded Gabbay (1):
habanalabs: rate limit error msg on waiting for CS
Olof Johansson (1):
clk: Move clk_core_reparent_orphans() under CONFIG_OF
Pablo Neira Ayuso (5):
netfilter: nft_set_rbtree: bogus lookup/get on consecutive elements in named sets
netfilter: nf_tables: validate NFT_SET_ELEM_INTERVAL_END
netfilter: nf_tables: validate NFT_DATA_VALUE after nft_data_init()
netfilter: nf_tables: skip module reference count bump on object updates
netfilter: nf_tables_offload: return EOPNOTSUPP if rule specifies no actions
Paul Chaignon (2):
bpf, riscv: Limit to 33 tail calls
bpf, mips: Limit to 33 tail calls
Pavel Begunkov (1):
io_uring: don't wait when under-submitting
Pavel Tatashin (1):
tpm/tpm_ftpm_tee: add shutdown call back
Pengcheng Yang (1):
tcp: fix "old stuff" D-SACK causing SACK to be treated as D-SACK
Peter Zijlstra (1):
perf/x86: Fix potential out-of-bounds access
Petr Machata (2):
mlxsw: spectrum_qdisc: Ignore grafting of invisible FIFO
net: sch_prio: When ungrafting, replace with FIFO
Phil Sutter (1):
netfilter: uapi: Avoid undefined left-shift in xt_sctp.h
Qi Zhou (1):
usb: missing parentheses in USE_NEW_SCHEME
Robin Murphy (1):
iommu/dma: Relax locking in iommu_dma_prepare_msi()
Roman Penyaev (1):
block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT
SeongJae Park (2):
kselftest/runner: Print new line in print of timeout log
kselftest: Support old perl versions
Shengjiu Wang (1):
ASoC: wm8962: fix lambda value
Shuming Fan (1):
ASoC: rt5682: fix i2c arbitration lost issue
Srikar Dronamraju (1):
powerpc/vcpu: Assume dedicated processors as non-preempt
Stefan Bühler (1):
cfg80211: fix double-free after changing network namespace
Stefan Haberland (1):
s390/dasd: fix memleak in path handling error case
Stefan Roese (1):
ARM: dts: imx6ul: imx6ul-14x14-evk.dtsi: Fix SPI NOR probing
Stefan Wahren (1):
ARM: dts: bcm283x: Fix critical trip point
Stephen Boyd (1):
macb: Don't unregister clks unconditionally
Steven Rostedt (VMware) (1):
tracing: Do not create directories if lockdown is in affect
Sudeep Holla (1):
ARM: vexpress: Set-up shared OPP table instead of individual for each CPU
Sudip Mukherjee (2):
libtraceevent: Fix lib installation with O=
libtraceevent: Copy pkg-config file to output folder when using O=
Sven Schnelle (2):
parisc: fix compilation when KEXEC=n and KEXEC_FILE=y
parisc: add missing __init annotation
Thinh Nguyen (1):
usb: dwc3: gadget: Fix request complete check
Thomas Hebb (1):
kconfig: don't crash on NULL expressions in expr_eq()
Toke Høiland-Jørgensen (1):
bpftool: Don't crash on missing jited insns or ksyms
Tomi Valkeinen (1):
ARM: dts: am437x-gp/epos-evm: fix panel compatible
Tony Lindgren (2):
ARM: omap2plus_defconfig: Add back DEBUG_FS
bus: ti-sysc: Fix missing reset delay handling
Tzung-Bi Shih (1):
ASoC: max98090: fix possible race conditions
Vignesh Raghavendra (1):
spi: spi-ti-qspi: Fix a bug when accessing non default CS
Vishal Kulkarni (1):
cxgb4: Fix kernel panic while accessing sge_info
Wei Li (1):
arm64: cpu_errata: Add Hisilicon TSV110 to spectre-v2 safe list
Wen Yang (3):
regulator: fix use after free issue
regulator: core: fix regulator_register() error paths to properly release rdev
sch_cake: avoid possible divide by zero in cake_enqueue()
Xiaotao Yin (1):
iommu/iova: Init the struct iova to fix the possible memleak
Xin Long (1):
sctp: free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY
Yang Yingliang (1):
block: fix memleak when __blk_rq_map_user_iov() is failed
Yevgeny Kliteynik (1):
net/mlx5: DR, No need for atomic refcount for internal SW steering resources
qize wang (1):
mwifiex: Fix heap overflow in mmwifiex_process_tdls_action_frame()
wenxu (1):
netfilter: nf_tables_offload: Check for the NETDEV_UNREGISTER event
zhong jiang (1):
usb: typec: fusb302: Fix an undefined reference to 'extcon_get_state'
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Kleptomaniac Octopus
arch/arm/boot/dts/am335x-sancloud-bbe.dts +1 -1
@@ -108,7 +108,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii-txid"; + phy-mode = "rgmii-id"; }; &i2c0 {
arch/arm/boot/dts/am437x-gp-evm.dts +1 -1
@@ -86,7 +86,7 @@ }; lcd0: display { - compatible = "osddisplays,osd057T0559-34ts", "panel-dpi"; + compatible = "osddisplays,osd070t1718-19ts", "panel-dpi"; label = "lcd"; backlight = <&lcd_bl>;
arch/arm/boot/dts/am43x-epos-evm.dts +1 -1
@@ -42,7 +42,7 @@ }; lcd0: display { - compatible = "osddisplays,osd057T0559-34ts", "panel-dpi"; + compatible = "osddisplays,osd070t1718-19ts", "panel-dpi"; label = "lcd"; backlight = <&lcd_bl>;
arch/arm/boot/dts/bcm-cygnus.dtsi +2 -2
@@ -174,8 +174,8 @@ mdio: mdio@18002000 { compatible = "brcm,iproc-mdio"; reg = <0x18002000 0x8>; - #size-cells = <1>; - #address-cells = <0>; + #size-cells = <0>; + #address-cells = <1>; status = "disabled"; gphy0: ethernet-phy@0 {
arch/arm/boot/dts/bcm283x.dtsi +1 -1
@@ -40,7 +40,7 @@ trips { cpu-crit { - temperature = <80000>; + temperature = <90000>; hysteresis = <0>; type = "critical"; };
arch/arm/boot/dts/bcm5301x.dtsi +2 -2
@@ -353,8 +353,8 @@ mdio: mdio@18003000 { compatible = "brcm,iproc-mdio"; reg = <0x18003000 0x8>; - #size-cells = <1>; - #address-cells = <0>; + #size-cells = <0>; + #address-cells = <1>; }; mdio-bus-mux@18003000 {
arch/arm/boot/dts/imx6ul-14x14-evk.dtsi +1 -1
@@ -215,7 +215,7 @@ flash0: n25q256a@0 { #address-cells = <1>; #size-cells = <1>; - compatible = "micron,n25q256a"; + compatible = "micron,n25q256a", "jedec,spi-nor"; spi-max-frequency = <29000000>; spi-rx-bus-width = <4>; spi-tx-bus-width = <4>;
arch/arm/configs/exynos_defconfig +1 -0
@@ -348,6 +348,7 @@ CONFIG_PRINTK_TIME=y CONFIG_DYNAMIC_DEBUG=y CONFIG_DEBUG_INFO=y CONFIG_MAGIC_SYSRQ=y +CONFIG_DEBUG_FS=y CONFIG_DEBUG_KERNEL=y CONFIG_SOFTLOCKUP_DETECTOR=y # CONFIG_DETECT_HUNG_TASK is not set
arch/arm/configs/imx_v6_v7_defconfig +1 -0
@@ -460,6 +460,7 @@ CONFIG_FONT_8x8=y CONFIG_FONT_8x16=y CONFIG_PRINTK_TIME=y CONFIG_MAGIC_SYSRQ=y +CONFIG_DEBUG_FS=y # CONFIG_SCHED_DEBUG is not set CONFIG_PROVE_LOCKING=y # CONFIG_DEBUG_BUGVERBOSE is not set
arch/arm/configs/omap2plus_defconfig +1 -0
@@ -552,5 +552,6 @@ CONFIG_DEBUG_INFO=y CONFIG_DEBUG_INFO_SPLIT=y CONFIG_DEBUG_INFO_DWARF4=y CONFIG_MAGIC_SYSRQ=y +CONFIG_DEBUG_FS=y CONFIG_SCHEDSTATS=y # CONFIG_DEBUG_BUGVERBOSE is not set
arch/arm/mach-vexpress/spc.c +11 -1
@@ -551,8 +551,9 @@ static struct clk *ve_spc_clk_register(struct device *cpu_dev)static int __init ve_spc_clk_init (void ) { -int cpu; +int cpu, cluster;struct clk *clk; +bool init_opp_table[MAX_CLUSTERS ] = { false };if (!info)return 0 ;/* Continue only if SPC is initialised */
@@ -578,8 +579,17 @@ static int __init ve_spc_clk_init(void)continue ; } + cluster =topology_physical_package_id (cpu_dev->id); +if (init_opp_table[cluster]) +continue ; +if (ve_init_opp_table (cpu_dev))pr_warn ("failed to initialise cpu%d opp table\n" , cpu); +else if (dev_pm_opp_set_sharing_cpus (cpu_dev, +topology_core_cpumask (cpu_dev->id))) +pr_warn ("failed to mark OPPs shared for cpu%d\n" , cpu); +else + init_opp_table[cluster] = true; }platform_device_register_simple ("vexpress-spc-cpufreq" ,-1 ,NULL ,0 );
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +8 -2
@@ -102,7 +102,7 @@ reboot { compatible ="syscon-reboot"; - regmap = <&dcfg>; + regmap = <&rst>; offset = <0xb0>; mask = <0x02>; };
@@ -161,6 +161,12 @@ big-endian; }; + rst: syscon@1e60000 { + compatible = "syscon"; + reg = <0x0 0x1e60000 0x0 0x10000>; + little-endian; + }; + scfg: syscon@1fc0000 { compatible = "fsl,ls1028a-scfg", "syscon"; reg = <0x0 0x1fc0000 0x0 0x10000>;
@@ -567,7 +573,7 @@ 0x00010004 0x0000003d 0x00010005 0x00000045 0x00010006 0x0000004d - 0x00010007 0x00000045 + 0x00010007 0x00000055 0x00010008 0x0000005e 0x00010009 0x00000066 0x0001000a 0x0000006e
arch/arm64/kernel/cpu_errata.c +1 -0
@@ -575,6 +575,7 @@ static const struct midr_range spectre_v2_safe_list[] = {MIDR_ALL_VERSIONS (MIDR_CORTEX_A53 ),MIDR_ALL_VERSIONS (MIDR_CORTEX_A55 ),MIDR_ALL_VERSIONS (MIDR_BRAHMA_B53 ), + MIDR_ALL_VERSIONS(MIDR_HISI_TSV110), { /* sentinel */ } };
arch/mips/net/ebpf_jit.c +5 -4
@@ -604,6 +604,7 @@ static void emit_const_to_reg(struct jit_ctx *ctx, int dst, u64 value)static int emit_bpf_tail_call (struct jit_ctx *ctx,int this_idx) {int off, b_off; +int tcc_reg; ctx->flags |=EBPF_SEEN_TC ;/*
@@ -616,14 +617,14 @@ static int emit_bpf_tail_call(struct jit_ctx *ctx, int this_idx) b_off =b_imm (this_idx +1 , ctx);emit_instr (ctx, bne,MIPS_R_AT ,MIPS_R_ZERO , b_off);/* -* if (--TCC < 0) +* if (TCC-- < 0) * goto out; */ /* Delay slot */ -emit_instr (ctx, daddiu,MIPS_R_T5 , - (ctx->flags &EBPF_TCC_IN_V1 ) ?MIPS_R_V1 :MIPS_R_S4 ,-1 ); + tcc_reg = (ctx->flags &EBPF_TCC_IN_V1 ) ?MIPS_R_V1 :MIPS_R_S4 ; +emit_instr (ctx, daddiu,MIPS_R_T5 , tcc_reg,-1 ); b_off =b_imm (this_idx +1 , ctx); -emit_instr (ctx, bltz,MIPS_R_T5 , b_off); +emit_instr (ctx, bltz, tcc_reg, b_off);/* * prog = array->ptrs[index]; * if (prog == NULL)
arch/parisc/include/asm/cmpxchg.h +8 -2
@@ -44,8 +44,14 @@ __xchg(unsigned long x, __volatile__ void *ptr, int size)** if (((unsigned long)p & 0xf) == 0) ** return __ldcw(p); */ -#define xchg (ptr, x) \ - ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) +#define xchg (ptr, x) \ +({ \ + __typeof__(*(ptr)) __ret; \ + __typeof__(*(ptr)) _x_ = (x); \ + __ret = (__typeof__(*(ptr))) \ + __xchg((unsigned long)_x_, (ptr), sizeof(*(ptr))); \ + __ret; \ +})/* bug catcher for when unsupported size is used - won't link */ extern void __cmpxchg_called_with_bad_pointer (void );
arch/parisc/include/asm/kexec.h +0 -4
@@ -2,8 +2,6 @@#ifndef _ASM_PARISC_KEXEC_H#define _ASM_PARISC_KEXEC_H -#ifdef CONFIG_KEXEC -/* Maximum physical address we can use pages from */ #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)/* Maximum address we can reach in physical address mode */
@@ -32,6 +30,4 @@ static inline void crash_setup_regs(struct pt_regs *newregs,#endif /* __ASSEMBLY__ */ -#endif /* CONFIG_KEXEC */ -#endif /* _ASM_PARISC_KEXEC_H */
arch/parisc/kernel/Makefile +1 -1
@@ -37,5 +37,5 @@ obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o obj-$(CONFIG_JUMP_LABEL) += jump_label.o obj-$(CONFIG_KGDB) += kgdb.o obj-$(CONFIG_KPROBES) += kprobes.o -obj-$(CONFIG_KEXEC) += kexec.o relocate_kernel.o +obj-$(CONFIG_KEXEC_CORE) += kexec.o relocate_kernel.o obj-$(CONFIG_KEXEC_FILE) += kexec_file.o
arch/parisc/kernel/drivers.c +1 -1
@@ -810,7 +810,7 @@ EXPORT_SYMBOL(device_to_hwpath);static void walk_native_bus (unsigned long io_io_low,unsigned long io_io_high,struct device *parent); -static void walk_lower_bus (struct parisc_device *dev) +static void __init walk_lower_bus (struct parisc_device *dev) {unsigned long io_io_low, io_io_high;
arch/powerpc/include/asm/spinlock.h +4 -1
@@ -15,6 +15,7 @@* * (the type definitions are in asm/spinlock_types.h) */ +#include <linux/jump_label.h> #include <linux/irqflags.h> #ifdef CONFIG_PPC64 #include <asm/paca.h>
@@ -36,10 +37,12 @@#endif #ifdef CONFIG_PPC_PSERIES +DECLARE_STATIC_KEY_FALSE (shared_processor); +#define vcpu_is_preempted vcpu_is_preemptedstatic inline bool vcpu_is_preempted (int cpu) { -if (!firmware_has_feature (FW_FEATURE_SPLPAR )) +if (!static_branch_unlikely (&shared_processor))return false;return !!(be32_to_cpu (lppaca_of (cpu).yield_count) &1 ); }
arch/powerpc/mm/mem.c +8 -0
@@ -282,6 +282,14 @@ void __init mem_init(void)BUILD_BUG_ON (MMU_PAGE_COUNT >16 );#ifdef CONFIG_SWIOTLB +/* +* Some platforms (e.g. 85xx) limit DMA-able memory way below +* 4G. We force memblock to bottom-up mode to ensure that the +* memory allocated in swiotlb_init() is DMA-able. +* As it's the last memblock allocation, no need to reset it +* back to to-down. +*/ +memblock_set_bottom_up (true);swiotlb_init (0 );#endif
arch/powerpc/platforms/pseries/setup.c +7 -0
@@ -74,6 +74,9 @@#include "pseries.h" #include "../../../../drivers/pci/pci.h" +DEFINE_STATIC_KEY_FALSE (shared_processor); +EXPORT_SYMBOL_GPL (shared_processor); +int CMO_PrPSP =-1 ;int CMO_SecPSP =-1 ;unsigned long CMO_PageSize = (ASM_CONST (1 ) <<IOMMU_PAGE_SHIFT_4K );
@@ -758,6 +761,10 @@ static void __init pSeries_setup_arch(void)if (firmware_has_feature (FW_FEATURE_LPAR )) {vpa_init (boot_cpuid); + +if (lppaca_shared_proc (get_lppaca ())) +static_branch_enable (&shared_processor); + ppc_md.power_save = pseries_lpar_idle; ppc_md.enable_pmcs = pseries_lpar_enable_pmcs;#ifdef CONFIG_PCI_IOV
arch/riscv/net/bpf_jit_comp.c +2 -2
@@ -631,14 +631,14 @@ static int emit_bpf_tail_call(int insn, struct rv_jit_context *ctx)return -1 ;emit (rv_bgeu (RV_REG_A2 ,RV_REG_T1 , off >>1 ), ctx); -/* if (--TCC < 0) +/* if (TCC-- < 0) * goto out; */ emit (rv_addi (RV_REG_T1 , tcc,-1 ), ctx); off = (tc_ninsn - (ctx->ninsns - start_insn)) <<2 ;if (is_13b_check (off, insn))return -1 ; -emit (rv_blt (RV_REG_T1 ,RV_REG_ZERO , off >>1 ), ctx); +emit (rv_blt (tcc,RV_REG_ZERO , off >>1 ), ctx);/* prog = array->ptrs[index]; * if (!prog)
arch/s390/purgatory/Makefile +4 -2
@@ -15,8 +15,10 @@ CFLAGS_sha256.o := -D__DISABLE_EXPORTS $(obj)/mem.o: $(srctree)/arch/s390/lib/mem.S FORCE $(call if_changed_rule,as_o_S) -$(obj)/string.o: $(srctree)/arch/s390/lib/string.c FORCE - $(call if_changed_rule,cc_o_c) +KCOV_INSTRUMENT := n +GCOV_PROFILE := n +UBSAN_SANITIZE := n +KASAN_SANITIZE := n KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes KBUILD_CFLAGS += -Wno-pointer-sign -Wno-sign-compare
arch/s390/purgatory/string.c new file +3 -0
@@ -0,0 +1,3 @@ +// SPDX-License-Identifier: GPL-2.0 +#define __HAVE_ARCH_MEMCMP/* arch function */ +#include "../lib/string.c"
arch/x86/events/core.c +15 -4
@@ -375,7 +375,7 @@ int x86_add_exclusive(unsigned int what)* LBR and BTS are still mutually exclusive. */ if (x86_pmu.lbr_pt_coexist && what == x86_lbr_exclusive_pt) -return 0 ; + goto out;if (!atomic_inc_not_zero (&x86_pmu.lbr_exclusive[what])) {mutex_lock (&pmc_reserve_mutex);
@@ -387,6 +387,7 @@ int x86_add_exclusive(unsigned int what)mutex_unlock (&pmc_reserve_mutex); } +out:atomic_inc (&active_events);return 0 ;
@@ -397,11 +398,15 @@ int x86_add_exclusive(unsigned int what)void x86_del_exclusive (unsigned int what) { +atomic_dec (&active_events); + +/* +* See the comment in x86_add_exclusive(). +*/ if (x86_pmu.lbr_pt_coexist && what == x86_lbr_exclusive_pt)return ;atomic_dec (&x86_pmu.lbr_exclusive[what]); -atomic_dec (&active_events); }int x86_setup_perfctr (struct perf_event *event)
@@ -1641,9 +1646,12 @@ static struct attribute_group x86_pmu_format_group __ro_after_init = {ssize_t events_sysfs_show (struct device *dev,struct device_attribute *attr,char *page) { -struct perf_pmu_events_attr *pmu_attr = \ +struct perf_pmu_events_attr *pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); -u64 config = x86_pmu.event_map (pmu_attr->id); +u64 config =0 ; + +if (pmu_attr->id < x86_pmu.max_events) + config = x86_pmu.event_map (pmu_attr->id);/* string trumps id */ if (pmu_attr->event_str)
@@ -1712,6 +1720,9 @@ is_visible(struct kobject *kobj, struct attribute *attr, int idx) {struct perf_pmu_events_attr *pmu_attr; +if (idx >= x86_pmu.max_events) +return 0 ; + pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr);/* str trumps id */ return pmu_attr->event_str || x86_pmu.event_map (idx) ? attr->mode :0 ;
arch/x86/kernel/early-quirks.c +2 -0
@@ -714,6 +714,8 @@ static struct chipset early_qrk[] __initdata = { PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, { PCI_VENDOR_ID_INTEL, 0x3ec4, PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, + { PCI_VENDOR_ID_INTEL, 0x8a12, + PCI_CLASS_BRIDGE_HOST, PCI_ANY_ID, 0, force_disable_hpet}, { PCI_VENDOR_ID_BROADCOM, 0x4331, PCI_CLASS_NETWORK_OTHER, PCI_ANY_ID, 0, apple_airport_reset}, {}
arch/x86/platform/efi/quirks.c +2 -4
@@ -260,10 +260,6 @@ void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size)return ; } -/* No need to reserve regions that will never be freed. */ -if (md.attribute &EFI_MEMORY_RUNTIME ) -return ; - size += addr %EFI_PAGE_SIZE ; size =round_up (size,EFI_PAGE_SIZE ); addr =round_down (addr,EFI_PAGE_SIZE );
@@ -293,6 +289,8 @@ void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size)early_memunmap (new, new_size);efi_memmap_install (new_phys, num_entries); +e820__range_update (addr, size,E820_TYPE_RAM ,E820_TYPE_RESERVED ); +e820__update_table (e820_table); }/*
block/blk-core.c +7 -4
@@ -886,11 +886,14 @@ generic_make_request_checks(struct bio *bio) }/* -* For a REQ_NOWAIT based request, return -EOPNOTSUPP -* if queue is not a request based queue. +* Non-mq queues do not honor REQ_NOWAIT, so complete a bio +* with BLK_STS_AGAIN status in order to catch -EAGAIN and +* to give a chance to the caller to repeat request gracefully. */ -if ((bio->bi_opf &REQ_NOWAIT ) && !queue_is_mq (q)) - goto not_supported; +if ((bio->bi_opf &REQ_NOWAIT ) && !queue_is_mq (q)) { + status =BLK_STS_AGAIN ; + goto end_io; + }if (should_fail_bio (bio)) goto end_io;
block/blk-flush.c +5 -0
@@ -69,6 +69,7 @@#include <linux/blkdev.h> #include <linux/gfp.h> #include <linux/blk-mq.h> +#include <linux/lockdep.h> #include "blk.h" #include "blk-mq.h"
@@ -492,6 +493,9 @@ struct blk_flush_queue *blk_alloc_flush_queue(struct request_queue *q,INIT_LIST_HEAD (&fq->flush_queue[1 ]);INIT_LIST_HEAD (&fq->flush_data_in_flight); +lockdep_register_key (&fq->key); +lockdep_set_class (&fq->mq_flush_lock, &fq->key); +return fq; fail_rq:
@@ -506,6 +510,7 @@ void blk_free_flush_queue(struct blk_flush_queue *fq)if (!fq)return ; +lockdep_unregister_key (&fq->key);kfree (fq->flush_rq);kfree (fq); }
block/blk-map.c +1 -1
@@ -151,7 +151,7 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,return 0 ; unmap_rq: -__blk_rq_unmap_user (bio); +blk_rq_unmap_user (bio); fail: rq->bio =NULL ;return ret;
block/blk.h +1 -0
@@ -30,6 +30,7 @@ struct blk_flush_queue {* at the same time */ struct request *orig_rq; +struct lock_class_key key;spinlock_t mq_flush_lock; };
drivers/bus/ti-sysc.c +4 -0
@@ -1594,6 +1594,10 @@ static int sysc_reset(struct sysc *ddata) sysc_val |= sysc_mask;sysc_write (ddata, sysc_offset, sysc_val); +if (ddata->cfg.srst_udelay) +usleep_range (ddata->cfg.srst_udelay, + ddata->cfg.srst_udelay *2 ); +if (ddata->clk_enable_quirk) ddata->clk_enable_quirk (ddata);
drivers/char/tpm/tpm_ftpm_tee.c +18 -4
@@ -32,7 +32,7 @@ static const uuid_t ftpm_ta_uuid = 0x82, 0xCB, 0x34, 0x3F, 0xB7, 0xF3, 0x78, 0x96);/** -* ftpm_tee_tpm_op_recv - retrieve fTPM response. +* ftpm_tee_tpm_op_recv() - retrieve fTPM response. * @chip: the tpm_chip description as specified in driver/char/tpm/tpm.h. * @buf: the buffer to store data. * @count: the number of bytes to read.
@@ -61,7 +61,7 @@ static int ftpm_tee_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count) }/** -* ftpm_tee_tpm_op_send - send TPM commands through the TEE shared memory. +* ftpm_tee_tpm_op_send() - send TPM commands through the TEE shared memory. * @chip: the tpm_chip description as specified in driver/char/tpm/tpm.h * @buf: the buffer to send. * @len: the number of bytes to send.
@@ -208,7 +208,7 @@ static int ftpm_tee_match(struct tee_ioctl_version_data *ver, const void *data) }/** -* ftpm_tee_probe - initialize the fTPM +* ftpm_tee_probe() - initialize the fTPM * @pdev: the platform_device description. * * Return:
@@ -298,7 +298,7 @@ static int ftpm_tee_probe(struct platform_device *pdev) }/** -* ftpm_tee_remove - remove the TPM device +* ftpm_tee_remove() - remove the TPM device * @pdev: the platform_device description. * * Return:
@@ -328,6 +328,19 @@ static int ftpm_tee_remove(struct platform_device *pdev)return 0 ; } +/** +* ftpm_tee_shutdown() - shutdown the TPM device +* @pdev: the platform_device description. +*/ +static void ftpm_tee_shutdown (struct platform_device *pdev) +{ +struct ftpm_tee_private *pvt_data =dev_get_drvdata (&pdev->dev); + +tee_shm_free (pvt_data->shm); +tee_client_close_session (pvt_data->ctx, pvt_data->session); +tee_client_close_context (pvt_data->ctx); +} +static const struct of_device_id of_ftpm_tee_ids[] = { { .compatible ="microsoft,ftpm" }, { }
@@ -341,6 +354,7 @@ static struct platform_driver ftpm_tee_driver = { }, .probe = ftpm_tee_probe, .remove = ftpm_tee_remove, + .shutdown = ftpm_tee_shutdown, };module_platform_driver (ftpm_tee_driver);
drivers/clk/at91/at91sam9260.c +1 -1
@@ -348,7 +348,7 @@ static void __init at91sam926x_pmc_setup(struct device_node *np,return ; mainxtal_name =of_clk_get_parent_name (np, i); - regmap =syscon_node_to_regmap (np); + regmap =device_node_to_regmap (np);if (IS_ERR (regmap))return ;
drivers/clk/at91/at91sam9rl.c +1 -1
@@ -83,7 +83,7 @@ static void __init at91sam9rl_pmc_setup(struct device_node *np)return ; mainxtal_name =of_clk_get_parent_name (np, i); - regmap =syscon_node_to_regmap (np); + regmap =device_node_to_regmap (np);if (IS_ERR (regmap))return ;
drivers/clk/at91/at91sam9x5.c +1 -1
@@ -146,7 +146,7 @@ static void __init at91sam9x5_pmc_setup(struct device_node *np,return ; mainxtal_name =of_clk_get_parent_name (np, i); - regmap =syscon_node_to_regmap (np); + regmap =device_node_to_regmap (np);if (IS_ERR (regmap))return ;
drivers/clk/at91/pmc.c +1 -1
@@ -275,7 +275,7 @@ static int __init pmc_register_ops(void) np =of_find_matching_node (NULL , sama5d2_pmc_dt_ids); - pmcreg =syscon_node_to_regmap (np); + pmcreg =device_node_to_regmap (np);if (IS_ERR (pmcreg))return PTR_ERR (pmcreg);
drivers/clk/at91/sama5d2.c +1 -1
@@ -162,7 +162,7 @@ static void __init sama5d2_pmc_setup(struct device_node *np)return ; mainxtal_name =of_clk_get_parent_name (np, i); - regmap =syscon_node_to_regmap (np); + regmap =device_node_to_regmap (np);if (IS_ERR (regmap))return ;
drivers/clk/at91/sama5d4.c +1 -1
@@ -136,7 +136,7 @@ static void __init sama5d4_pmc_setup(struct device_node *np)return ; mainxtal_name =of_clk_get_parent_name (np, i); - regmap =syscon_node_to_regmap (np); + regmap =device_node_to_regmap (np);if (IS_ERR (regmap))return ;
drivers/clk/clk.c +40 -22
99 lines not on this page · raw message
drivers/firmware/efi/earlycon.c +40 -0
@@ -13,18 +13,57 @@#include <asm/early_ioremap.h> +static const struct console *earlycon_console__initdata ;static const struct font_desc *font;static u32 efi_x, efi_y;static u64 fb_base;static pgprot_t fb_prot; +static void *efi_fb; + +/* +* EFI earlycon needs to use early_memremap() to map the framebuffer. +* But early_memremap() is not usable for 'earlycon=efifb keep_bootcon', +* memremap() should be used instead. memremap() will be available after +* paging_init() which is earlier than initcall callbacks. Thus adding this +* early initcall function early_efi_map_fb() to map the whole EFI framebuffer. +*/ +static int __init efi_earlycon_remap_fb (void ) +{ +/* bail if there is no bootconsole or it has been disabled already */ +if (!earlycon_console || !(earlycon_console->flags &CON_ENABLED )) +return 0 ; + +if (pgprot_val (fb_prot) ==pgprot_val (PAGE_KERNEL )) + efi_fb =memremap (fb_base, screen_info.lfb_size,MEMREMAP_WB ); +else + efi_fb =memremap (fb_base, screen_info.lfb_size,MEMREMAP_WC ); + +return efi_fb ?0 : -ENOMEM ; +} +early_initcall (efi_earlycon_remap_fb); + +static int __init efi_earlycon_unmap_fb (void ) +{ +/* unmap the bootconsole fb unless keep_bootcon has left it enabled */ +if (efi_fb && !(earlycon_console->flags &CON_ENABLED )) +memunmap (efi_fb); +return 0 ; +} +late_initcall (efi_earlycon_unmap_fb);static __ref void *efi_earlycon_map (unsigned long start,unsigned long len) { +if (efi_fb) +return efi_fb + start; +return early_memremap_prot (fb_base + start, len,pgprot_val (fb_prot)); }static __ref void efi_earlycon_unmap (void *addr,unsigned long len) { +if (efi_fb) +return ; +early_memunmap (addr, len); }
@@ -201,6 +240,7 @@ static int __init efi_earlycon_setup(struct earlycon_device *device,efi_earlycon_scroll_up (); device->con->write = efi_earlycon_write; + earlycon_console = device->con;return 0 ; }EARLYCON_DECLARE (efifb, efi_earlycon_setup);
drivers/firmware/efi/libstub/gop.c +19 -61
147 lines not on this page · raw message
drivers/gpio/gpiolib-of.c +27 -0
@@ -23,6 +23,29 @@#include "gpiolib.h" #include "gpiolib-of.h" +/** +* of_gpio_spi_cs_get_count() - special GPIO counting for SPI +* Some elder GPIO controllers need special quirks. Currently we handle +* the Freescale GPIO controller with bindings that doesn't use the +* established "cs-gpios" for chip selects but instead rely on +* "gpios" for the chip select lines. If we detect this, we redirect +* the counting of "cs-gpios" to count "gpios" transparent to the +* driver. +*/ +int of_gpio_spi_cs_get_count (struct device *dev,const char *con_id) +{ +struct device_node *np = dev->of_node; + +if (!IS_ENABLED (CONFIG_SPI_MASTER )) +return 0 ; +if (!con_id ||strcmp (con_id,"cs" )) +return 0 ; +if (!of_device_is_compatible (np,"fsl,spi" ) && + !of_device_is_compatible (np,"aeroflexgaisler,spictrl" )) +return 0 ; +return of_gpio_named_count (np,"gpios" ); +} +/* * This is used by external users of of_gpio_count() from <linux/of_gpio.h> *
@@ -35,6 +58,10 @@ int of_gpio_get_count(struct device *dev, const char *con_id)char propname[32 ];unsigned int i; + ret =of_gpio_spi_cs_get_count (dev, con_id); +if (ret >0 ) +return ret; +for (i =0 ; i <ARRAY_SIZE (gpio_suffixes); i++) {if (con_id) snprintf(propname, sizeof(propname), "%s-%s",
drivers/gpu/drm/exynos/exynos_drm_gsc.c +1 -0
@@ -1313,6 +1313,7 @@ static int gsc_remove(struct platform_device *pdev) {struct device *dev = &pdev->dev; +component_del (dev, &gsc_component_ops);pm_runtime_dont_use_autosuspend (dev);pm_runtime_disable (dev);
drivers/iommu/dma-iommu.c +8 -9
@@ -19,6 +19,7 @@#include <linux/iova.h> #include <linux/irq.h> #include <linux/mm.h> +#include <linux/mutex.h> #include <linux/pci.h> #include <linux/scatterlist.h> #include <linux/vmalloc.h>
@@ -43,7 +44,6 @@ struct iommu_dma_cookie {dma_addr_t msi_iova; };struct list_head msi_page_list; -spinlock_t msi_lock;/* Domain for flush queue callback; NULL if flush queue not in use */ struct iommu_domain *fq_domain;
@@ -62,7 +62,6 @@ static struct iommu_dma_cookie *cookie_alloc(enum iommu_dma_cookie_type type) cookie =kzalloc (sizeof (*cookie),GFP_KERNEL );if (cookie) { -spin_lock_init (&cookie->msi_lock);INIT_LIST_HEAD (&cookie->msi_page_list); cookie->type = type; }
@@ -1150,7 +1149,7 @@ static struct iommu_dma_msi_page *iommu_dma_get_msi_page(struct device *dev,if (msi_page->phys == msi_addr)return msi_page; - msi_page =kzalloc (sizeof (*msi_page),GFP_ATOMIC ); + msi_page =kzalloc (sizeof (*msi_page),GFP_KERNEL );if (!msi_page)return NULL ;
@@ -1180,7 +1179,7 @@ int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr)struct iommu_domain *domain =iommu_get_domain_for_dev (dev);struct iommu_dma_cookie *cookie;struct iommu_dma_msi_page *msi_page; -unsigned long flags; +static DEFINE_MUTEX (msi_prepare_lock);/* see below */ if (!domain || !domain->iova_cookie) { desc->iommu_cookie =NULL ;
@@ -1190,13 +1189,13 @@ int iommu_dma_prepare_msi(struct msi_desc *desc, phys_addr_t msi_addr) cookie = domain->iova_cookie;/* -* We disable IRQs to rule out a possible inversion against -* irq_desc_lock if, say, someone tries to retarget the affinity -* of an MSI from within an IPI handler. +* In fact the whole prepare operation should already be serialised by +* irq_domain_mutex further up the callchain, but that's pretty subtle +* on its own, so consider this locking as failsafe documentation... */ -spin_lock_irqsave (&cookie->msi_lock, flags); +mutex_lock (&msi_prepare_lock); msi_page =iommu_dma_get_msi_page (dev, msi_addr, domain); -spin_unlock_irqrestore (&cookie->msi_lock, flags); +mutex_unlock (&msi_prepare_lock);msi_desc_set_iommu_cookie (desc, msi_page);
drivers/iommu/iova.c +1 -1
@@ -233,7 +233,7 @@ static DEFINE_MUTEX(iova_cache_mutex);struct iova *alloc_iova_mem (void ) { -return kmem_cache_alloc (iova_cache,GFP_ATOMIC ); +return kmem_cache_zalloc (iova_cache,GFP_ATOMIC ); }EXPORT_SYMBOL (alloc_iova_mem);
drivers/misc/habanalabs/command_submission.c +3 -2
@@ -777,8 +777,9 @@ int hl_cs_wait_ioctl(struct hl_fpriv *hpriv, void *data)memset (args,0 ,sizeof (*args));if (rc <0 ) { -dev_err (hdev->dev,"Error %ld on waiting for CS handle %llu\n" , - rc, seq); +dev_err_ratelimited (hdev->dev, +"Error %ld on waiting for CS handle %llu\n" , + rc, seq);if (rc == -ERESTARTSYS ) { args->out.status =HL_WAIT_CS_STATUS_INTERRUPTED ; rc = -EINTR ;
drivers/misc/habanalabs/context.c +1 -1
@@ -176,7 +176,7 @@ struct dma_fence *hl_ctx_get_fence(struct hl_ctx *ctx, u64 seq)spin_lock (&ctx->cs_lock);if (seq >= ctx->cs_sequence) { -dev_notice (hdev->dev, +dev_notice_ratelimited (hdev->dev,"Can't wait on seq %llu because current CS is at seq %llu\n" , seq, ctx->cs_sequence);spin_unlock (&ctx->cs_lock);
drivers/misc/habanalabs/goya/goya.c +7 -8
@@ -2171,7 +2171,7 @@ static int goya_push_linux_to_device(struct hl_device *hdev)static int goya_pldm_init_cpu (struct hl_device *hdev) { -u32 val, unit_rst_val; +u32 unit_rst_val;int rc;/* Must initialize SRAM scrambler before pushing u-boot to SRAM */
@@ -2179,14 +2179,14 @@ static int goya_pldm_init_cpu(struct hl_device *hdev)/* Put ARM cores into reset */ WREG32 (mmCPU_CA53_CFG_ARM_RST_CONTROL,CPU_RESET_ASSERT ); - val =RREG32 (mmCPU_CA53_CFG_ARM_RST_CONTROL); +RREG32 (mmCPU_CA53_CFG_ARM_RST_CONTROL);/* Reset the CA53 MACRO */ unit_rst_val =RREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N);WREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N,CA53_RESET ); - val =RREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N); +RREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N);WREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N, unit_rst_val); - val =RREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N); +RREG32 (mmPSOC_GLOBAL_CONF_UNIT_RST_N); rc =goya_push_uboot_to_device (hdev);if (rc)
@@ -2207,7 +2207,7 @@ static int goya_pldm_init_cpu(struct hl_device *hdev)/* Release ARM core 0 from reset */ WREG32 (mmCPU_CA53_CFG_ARM_RST_CONTROL,CPU_RESET_CORE0_DEASSERT ); - val =RREG32 (mmCPU_CA53_CFG_ARM_RST_CONTROL); +RREG32 (mmCPU_CA53_CFG_ARM_RST_CONTROL);return 0 ; }
@@ -2475,13 +2475,12 @@ int goya_mmu_init(struct hl_device *hdev)static int goya_hw_init (struct hl_device *hdev) {struct asic_fixed_properties *prop = &hdev->asic_prop; -u32 val;int rc;dev_info (hdev->dev,"Starting initialization of H/W\n" );/* Perform read from the device to make sure device is up */ - val =RREG32 (mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG); +RREG32 (mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG);/* * Let's mark in the H/W that we have reached this point. We check
@@ -2533,7 +2532,7 @@ static int goya_hw_init(struct hl_device *hdev) goto disable_queues;/* Perform read from the device to flush all MSI-X configuration */ - val =RREG32 (mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG); +RREG32 (mmPCIE_DBI_DEVICE_ID_VENDOR_ID_REG);return 0 ;
drivers/misc/ocxl/context.c +4 -4
@@ -10,18 +10,17 @@ int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu,int pasid;struct ocxl_context *ctx; - *context =kzalloc (sizeof (struct ocxl_context ),GFP_KERNEL ); -if (!*context) + ctx =kzalloc (sizeof (*ctx),GFP_KERNEL ); +if (!ctx)return -ENOMEM ; - ctx = *context; - ctx->afu = afu;mutex_lock (&afu->contexts_lock); pasid =idr_alloc (&afu->contexts_idr, ctx, afu->pasid_base, afu->pasid_base + afu->pasid_max,GFP_KERNEL );if (pasid <0 ) {mutex_unlock (&afu->contexts_lock); +kfree (ctx);return pasid; } afu->pasid_count++;
@@ -43,6 +42,7 @@ int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu,* duration of the life of the context */ ocxl_afu_get (afu); + *context = ctx;return 0 ; }EXPORT_SYMBOL_GPL (ocxl_context_alloc);
drivers/net/dsa/mv88e6xxx/global1.c +5 -0
@@ -332,6 +332,11 @@ int mv88e6390_g1_set_cpu_port(struct mv88e6xxx_chip *chip, int port) {u16 ptr =MV88E6390_G1_MONITOR_MGMT_CTL_PTR_CPU_DEST ; +/* Use the default high priority for management frames sent to +* the CPU. +*/ + port |=MV88E6390_G1_MONITOR_MGMT_CTL_PTR_CPU_DEST_MGMTPRI ; +return mv88e6390_g1_monitor_write (chip, ptr, port); }
drivers/net/dsa/mv88e6xxx/global1.h +1 -0
@@ -210,6 +210,7 @@#define MV88E6390_G1_MONITOR_MGMT_CTL_PTR_INGRESS_DEST 0x2000#define MV88E6390_G1_MONITOR_MGMT_CTL_PTR_EGRESS_DEST 0x2100#define MV88E6390_G1_MONITOR_MGMT_CTL_PTR_CPU_DEST 0x3000 +#define MV88E6390_G1_MONITOR_MGMT_CTL_PTR_CPU_DEST_MGMTPRI 0x00e0#define MV88E6390_G1_MONITOR_MGMT_CTL_DATA_MASK 0x00ff/* Offset 0x1C: Global Control 2 */
drivers/net/dsa/mv88e6xxx/port.c +6 -6
@@ -393,7 +393,7 @@ phy_interface_t mv88e6390x_port_max_speed_mode(int port) }static int mv88e6xxx_port_set_cmode (struct mv88e6xxx_chip *chip,int port, -phy_interface_t mode) +phy_interface_t mode,bool force) {u8 lane;u16 cmode;
@@ -427,8 +427,8 @@ static int mv88e6xxx_port_set_cmode(struct mv88e6xxx_chip *chip, int port, cmode =0 ; } -/* cmode doesn't change, nothing to do for us */ -if (cmode == chip->ports[port].cmode) +/* cmode doesn't change, nothing to do for us unless forced */ +if (cmode == chip->ports[port].cmode && !force)return 0 ; lane =mv88e6xxx_serdes_get_lane (chip, port);
@@ -484,7 +484,7 @@ int mv88e6390x_port_set_cmode(struct mv88e6xxx_chip *chip, int port,if (port !=9 && port !=10 )return -EOPNOTSUPP ; -return mv88e6xxx_port_set_cmode (chip, port, mode); +return mv88e6xxx_port_set_cmode (chip, port, mode, false); } int mv88e6390_port_set_cmode(struct mv88e6xxx_chip *chip, int port,
@@ -504,7 +504,7 @@ int mv88e6390_port_set_cmode(struct mv88e6xxx_chip *chip, int port,break ; } -return mv88e6xxx_port_set_cmode (chip, port, mode); +return mv88e6xxx_port_set_cmode (chip, port, mode, false); } static int mv88e6341_port_set_cmode_writable(struct mv88e6xxx_chip *chip,
@@ -555,7 +555,7 @@ int mv88e6341_port_set_cmode(struct mv88e6xxx_chip *chip, int port,if (err)return err; -return mv88e6xxx_port_set_cmode (chip, port, mode); +return mv88e6xxx_port_set_cmode (chip, port, mode, true); }int mv88e6185_port_get_cmode (struct mv88e6xxx_chip *chip,int port,u8 *cmode)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h +1 -1
@@ -1109,7 +1109,7 @@ static inline u8 bnx2x_get_path_func_num(struct bnx2x *bp)for (i =0 ; i <E1H_FUNC_MAX /2 ; i++) {u32 func_config =MF_CFG_RD (bp, - func_mf_config[BP_PORT (bp) +2 * i]. + func_mf_config[BP_PATH (bp) +2 * i]. config); func_num += ((func_config &FUNC_MF_CFG_FUNC_HIDE ) ?0 :1 );
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +10 -2
@@ -9976,10 +9976,18 @@ static void bnx2x_recovery_failed(struct bnx2x *bp)*/ static void bnx2x_parity_recover (struct bnx2x *bp) { -bool global = false;u32 error_recovered, error_unrecovered; -bool is_parity; +bool is_parity, global = false; +#ifdef CONFIG_BNX2X_SRIOV +int vf_idx; + +for (vf_idx =0 ; vf_idx < bp->requested_nr_virtfn; vf_idx++) { +struct bnx2x_virtf *vf =BP_VF (bp, vf_idx); +if (vf) + vf->state =VF_LOST ; + } +#endif DP (NETIF_MSG_HW ,"Handling parity\n" );while (1 ) {switch (bp->recovery_state) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h +1 -0
@@ -139,6 +139,7 @@ struct bnx2x_virtf {#define VF_ACQUIRED 1/* VF acquired, but not initialized */ #define VF_ENABLED 2/* VF Enabled */ #define VF_RESET 3/* VF FLR'd, pending cleanup */ +#define VF_LOST 4/* Recovery while VFs are loaded */ bool flr_clnup_stage;/* true during flr cleanup */ bool malicious;/* true if FW indicated so, until FLR */
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c +12 -0
@@ -2107,6 +2107,18 @@ static void bnx2x_vf_mbx_request(struct bnx2x *bp, struct bnx2x_virtf *vf, {int i; +if (vf->state ==VF_LOST ) { +/* Just ack the FW and return if VFs are lost +* in case of parity error. VFs are supposed to be timedout +* on waiting for PF response. +*/ +DP (BNX2X_MSG_IOV , +"VF 0x%x lost, not handling the request\n" , vf->abs_vfid); + +storm_memset_vf_mbx_ack (bp, vf->abs_vfid); +return ; + } +/* check if tlv type is known */ if (bnx2x_tlv_supported (mbx->first_tlv.tl.type)) {/* Lock the per vf op mutex and note the locker's identity.
drivers/net/ethernet/cadence/macb_main.c +1 -3
@@ -4027,7 +4027,7 @@ static int fu540_c000_clk_init(struct platform_device *pdev, struct clk **pclk, mgmt->rate =0 ; mgmt->hw.init = &init; - *tx_clk =clk_register (NULL , &mgmt->hw); + *tx_clk =devm_clk_register (&pdev->dev, &mgmt->hw);if (IS_ERR (*tx_clk))return PTR_ERR (*tx_clk);
@@ -4361,7 +4361,6 @@ static int macb_probe(struct platform_device *pdev) err_disable_clocks:clk_disable_unprepare (tx_clk); -clk_unregister (tx_clk);clk_disable_unprepare (hclk);clk_disable_unprepare (pclk);clk_disable_unprepare (rx_clk);
@@ -4397,7 +4396,6 @@ static int macb_remove(struct platform_device *pdev)pm_runtime_dont_use_autosuspend (&pdev->dev);if (!pm_runtime_suspended (&pdev->dev)) {clk_disable_unprepare (bp->tx_clk); -clk_unregister (bp->tx_clk);clk_disable_unprepare (bp->hclk);clk_disable_unprepare (bp->pclk);clk_disable_unprepare (bp->rx_clk);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c +4 -0
@@ -2996,6 +2996,9 @@ static int sge_queue_entries(const struct adapter *adap)int tot_uld_entries =0 ;int i; +if (!is_uld (adap)) + goto lld_only; +mutex_lock (&uld_mutex);for (i =0 ; i <CXGB4_TX_MAX ; i++) tot_uld_entries +=sge_qinfo_uld_txq_entries (adap, i);
@@ -3006,6 +3009,7 @@ static int sge_queue_entries(const struct adapter *adap) }mutex_unlock (&uld_mutex); +lld_only:return DIV_ROUND_UP (adap->sge.ethqsets,4 ) + tot_uld_entries +DIV_ROUND_UP (MAX_CTRL_QUEUES ,4 ) +1 ;
drivers/net/ethernet/freescale/fec_main.c +9 -0
@@ -2199,8 +2199,14 @@ static void fec_enet_get_regs(struct net_device *ndev, {struct fec_enet_private *fep =netdev_priv (ndev);u32 __iomem *theregs = (u32 __iomem *)fep->hwp; +struct device *dev = &fep->pdev->dev;u32 *buf = (u32 *)regbuf;u32 i, off; +int ret; + + ret =pm_runtime_get_sync (dev); +if (ret <0 ) +return ; regs->version = fec_enet_register_version;
@@ -2216,6 +2222,9 @@ static void fec_enet_get_regs(struct net_device *ndev, off >>=2 ; buf[off] =readl (&theregs[off]); } + +pm_runtime_mark_last_busy (dev); +pm_runtime_put_autosuspend (dev); } static int fec_enet_get_ts_info(struct net_device *ndev,
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
@@ -1151,7 +1151,7 @@ void i40e_set_fec_in_flags(u8 fec_cfg, u32 *flags);static inline bool i40e_enabled_xdp_vsi (struct i40e_vsi *vsi) { -return !!vsi->xdp_prog; +return !!READ_ONCE (vsi->xdp_prog); }int i40e_create_queue_channel (struct i40e_vsi *vsi,struct i40e_channel *ch);
drivers/net/ethernet/intel/i40e/i40e_main.c +7 -3
@@ -6804,8 +6804,8 @@ void i40e_down(struct i40e_vsi *vsi)for (i =0 ; i < vsi->num_queue_pairs; i++) {i40e_clean_tx_ring (vsi->tx_rings[i]);if (i40e_enabled_xdp_vsi (vsi)) { -/* Make sure that in-progress ndo_xdp_xmit -* calls are completed. +/* Make sure that in-progress ndo_xdp_xmit and +* ndo_xsk_wakeup calls are completed. */ synchronize_rcu ();i40e_clean_tx_ring (vsi->xdp_rings[i]);
@@ -12526,8 +12526,12 @@ static int i40e_xdp_setup(struct i40e_vsi *vsi, old_prog =xchg (&vsi->xdp_prog, prog); -if (need_reset) +if (need_reset) { +if (!prog) +/* Wait until ndo_xsk_wakeup completes. */ +synchronize_rcu ();i40e_reset_and_rebuild (pf, true, true); + }for (i =0 ; i < vsi->num_queue_pairs; i++)WRITE_ONCE (vsi->rx_rings[i]->xdp_prog, vsi->xdp_prog);
drivers/net/ethernet/intel/i40e/i40e_xsk.c +4 -0
@@ -787,8 +787,12 @@ int i40e_xsk_wakeup(struct net_device *dev, u32 queue_id, u32 flags) {struct i40e_netdev_priv *np =netdev_priv (dev);struct i40e_vsi *vsi = np->vsi; +struct i40e_pf *pf = vsi->back;struct i40e_ring *ring; +if (test_bit (__I40E_CONFIG_BUSY, pf->state)) +return -ENETDOWN ; +if (test_bit (__I40E_VSI_DOWN, vsi->state))return -ENETDOWN ;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +6 -1
@@ -10248,7 +10248,12 @@ static int ixgbe_xdp_setup(struct net_device *dev, struct bpf_prog *prog)/* If transitioning XDP modes reconfigure rings */ if (need_reset) { -int err =ixgbe_setup_tc (dev, adapter->hw_tcs); +int err; + +if (!prog) +/* Wait until ndo_xsk_wakeup completes. */ +synchronize_rcu (); + err =ixgbe_setup_tc (dev, adapter->hw_tcs);if (err) {rcu_assign_pointer (adapter->xdp_prog, old_prog);
drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c +6 -2
@@ -709,10 +709,14 @@ int ixgbe_xsk_wakeup(struct net_device *dev, u32 qid, u32 flags)if (qid >= adapter->num_xdp_queues)return -ENXIO ; -if (!adapter->xdp_ring[qid]->xsk_umem) + ring = adapter->xdp_ring[qid]; + +if (test_bit (__IXGBE_TX_DISABLED, &ring->state)) +return -ENETDOWN ; + +if (!ring->xsk_umem)return -ENXIO ; - ring = adapter->xdp_ring[qid];if (!napi_if_scheduled_mark_missed (&ring->q_vector->napi)) {u64 eics =BIT_ULL (ring->q_vector->v_idx);
drivers/net/ethernet/mellanox/mlx5/core/en.h +1 -1
@@ -760,7 +760,7 @@ enum {MLX5E_STATE_OPENED ,MLX5E_STATE_DESTROYING ,MLX5E_STATE_XDP_TX_ENABLED , - MLX5E_STATE_XDP_OPEN, + MLX5E_STATE_XDP_ACTIVE, }; struct mlx5e_rqt {
drivers/net/ethernet/mellanox/mlx5/core/en/fs.h +16 -0
@@ -122,6 +122,22 @@ enum {#endif }; +#define MLX5E_TTC_NUM_GROUPS 3 +#define MLX5E_TTC_GROUP1_SIZE (BIT(3) + MLX5E_NUM_TUNNEL_TT) +#define MLX5E_TTC_GROUP2_SIZE BIT(1) +#define MLX5E_TTC_GROUP3_SIZE BIT(0) +#define MLX5E_TTC_TABLE_SIZE (MLX5E_TTC_GROUP1_SIZE +\ + MLX5E_TTC_GROUP2_SIZE +\ + MLX5E_TTC_GROUP3_SIZE) + +#define MLX5E_INNER_TTC_NUM_GROUPS 3 +#define MLX5E_INNER_TTC_GROUP1_SIZE BIT(3) +#define MLX5E_INNER_TTC_GROUP2_SIZE BIT(1) +#define MLX5E_INNER_TTC_GROUP3_SIZE BIT(0) +#define MLX5E_INNER_TTC_TABLE_SIZE (MLX5E_INNER_TTC_GROUP1_SIZE +\ + MLX5E_INNER_TTC_GROUP2_SIZE +\ + MLX5E_INNER_TTC_GROUP3_SIZE) +#ifdef CONFIG_MLX5_EN_RXNFC struct mlx5e_ethtool_table {
drivers/net/ethernet/mellanox/mlx5/core/en/health.c +4 -3
@@ -197,9 +197,10 @@ int mlx5e_health_report(struct mlx5e_priv *priv, struct devlink_health_reporter *reporter, char *err_str, struct mlx5e_err_ctx *err_ctx) { - if (!reporter) { - netdev_err(priv->netdev, err_str); + netdev_err(priv->netdev, err_str); + +if (!reporter)return err_ctx->recover (&err_ctx->ctx); - } +return devlink_health_report (reporter, err_str, err_ctx); }
drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h +9 -13
@@ -75,12 +75,18 @@ int mlx5e_xdp_xmit(struct net_device *dev, int n, struct xdp_frame **frames,static inline void mlx5e_xdp_tx_enable (struct mlx5e_priv *priv) {set_bit (MLX5E_STATE_XDP_TX_ENABLED , &priv->state); + +if (priv->channels.params.xdp_prog) +set_bit (MLX5E_STATE_XDP_ACTIVE , &priv->state); }static inline void mlx5e_xdp_tx_disable (struct mlx5e_priv *priv) { +if (priv->channels.params.xdp_prog) +clear_bit (MLX5E_STATE_XDP_ACTIVE , &priv->state); +clear_bit (MLX5E_STATE_XDP_TX_ENABLED , &priv->state); -/* let other device's napi(s) see our new state */ +/* Let other device's napi(s) and XSK wakeups see our new state. */ synchronize_rcu (); }
@@ -89,19 +95,9 @@ static inline bool mlx5e_xdp_tx_is_enabled(struct mlx5e_priv *priv)return test_bit (MLX5E_STATE_XDP_TX_ENABLED , &priv->state); } -static inline void mlx5e_xdp_set_open (struct mlx5e_priv *priv) -{ -set_bit (MLX5E_STATE_XDP_OPEN , &priv->state); -} - -static inline void mlx5e_xdp_set_closed (struct mlx5e_priv *priv) -{ -clear_bit (MLX5E_STATE_XDP_OPEN , &priv->state); -} - -static inline bool mlx5e_xdp_is_open (struct mlx5e_priv *priv) +static inline bool mlx5e_xdp_is_active (struct mlx5e_priv *priv) { -return test_bit (MLX5E_STATE_XDP_OPEN , &priv->state); +return test_bit (MLX5E_STATE_XDP_ACTIVE , &priv->state); }static inline void mlx5e_xmit_xdp_doorbell (struct mlx5e_xdpsq *sq)
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c +1 -0
@@ -144,6 +144,7 @@ void mlx5e_close_xsk(struct mlx5e_channel *c) {clear_bit (MLX5E_CHANNEL_STATE_XSK , c->state);napi_synchronize (&c->napi); +synchronize_rcu ();/* Sync with the XSK wakeup. */ mlx5e_close_rq (&c->xskrq);mlx5e_close_cq (&c->xskrq.cq);
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c +1 -1
@@ -14,7 +14,7 @@ int mlx5e_xsk_wakeup(struct net_device *dev, u32 qid, u32 flags)struct mlx5e_channel *c;u16 ix; -if (unlikely (!mlx5e_xdp_is_open (priv))) +if (unlikely (!mlx5e_xdp_is_active (priv)))return -ENETDOWN ;if (unlikely (!mlx5e_qid_get_ch_if_in_group (params, qid,MLX5E_RQ_GROUP_XSK , &ix)))
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c +0 -16
@@ -904,22 +904,6 @@ static int mlx5e_generate_ttc_table_rules(struct mlx5e_priv *priv,return err; } -#define MLX5E_TTC_NUM_GROUPS 3 -#define MLX5E_TTC_GROUP1_SIZE (BIT(3) + MLX5E_NUM_TUNNEL_TT) -#define MLX5E_TTC_GROUP2_SIZE BIT(1) -#define MLX5E_TTC_GROUP3_SIZE BIT(0) -#define MLX5E_TTC_TABLE_SIZE (MLX5E_TTC_GROUP1_SIZE +\ - MLX5E_TTC_GROUP2_SIZE +\ - MLX5E_TTC_GROUP3_SIZE) - -#define MLX5E_INNER_TTC_NUM_GROUPS 3 -#define MLX5E_INNER_TTC_GROUP1_SIZE BIT(3) -#define MLX5E_INNER_TTC_GROUP2_SIZE BIT(1) -#define MLX5E_INNER_TTC_GROUP3_SIZE BIT(0) -#define MLX5E_INNER_TTC_TABLE_SIZE (MLX5E_INNER_TTC_GROUP1_SIZE +\ - MLX5E_INNER_TTC_GROUP2_SIZE +\ - MLX5E_INNER_TTC_GROUP3_SIZE) -static int mlx5e_create_ttc_table_groups (struct mlx5e_ttc_table *ttc,bool use_ipv) {
drivers/net/ethernet/mellanox/mlx5/core/en_main.c +1 -18
@@ -3002,12 +3002,9 @@ void mlx5e_timestamp_init(struct mlx5e_priv *priv)int mlx5e_open_locked (struct net_device *netdev) {struct mlx5e_priv *priv =netdev_priv (netdev); -bool is_xdp = priv->channels.params.xdp_prog;int err;set_bit (MLX5E_STATE_OPENED , &priv->state); -if (is_xdp) -mlx5e_xdp_set_open (priv); err =mlx5e_open_channels (priv, &priv->channels);if (err)
@@ -3022,8 +3019,6 @@ int mlx5e_open_locked(struct net_device *netdev)return 0 ; err_clear_state_opened_flag: -if (is_xdp) -mlx5e_xdp_set_closed (priv);clear_bit (MLX5E_STATE_OPENED , &priv->state);return err; }
@@ -3055,8 +3050,6 @@ int mlx5e_close_locked(struct net_device *netdev)if (!test_bit (MLX5E_STATE_OPENED , &priv->state))return 0 ; -if (priv->channels.params.xdp_prog) -mlx5e_xdp_set_closed (priv);clear_bit (MLX5E_STATE_OPENED , &priv->state);netif_carrier_off (priv->netdev);
@@ -4373,16 +4366,6 @@ static int mlx5e_xdp_allowed(struct mlx5e_priv *priv, struct bpf_prog *prog)return 0 ; } -static int mlx5e_xdp_update_state (struct mlx5e_priv *priv) -{ -if (priv->channels.params.xdp_prog) -mlx5e_xdp_set_open (priv); -else -mlx5e_xdp_set_closed (priv); - -return 0 ; -} -static int mlx5e_xdp_set (struct net_device *netdev,struct bpf_prog *prog) {struct mlx5e_priv *priv =netdev_priv (netdev);
@@ -4422,7 +4405,7 @@ static int mlx5e_xdp_set(struct net_device *netdev, struct bpf_prog *prog)mlx5e_set_rq_type (priv->mdev, &new_channels.params); old_prog = priv->channels.params.xdp_prog; - err =mlx5e_safe_switch_channels (priv, &new_channels, mlx5e_xdp_update_state); + err =mlx5e_safe_switch_channels (priv, &new_channels,NULL );if (err) goto unlock; }else {
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +1 -1
@@ -586,7 +586,7 @@ static void mlx5e_hairpin_set_ttc_params(struct mlx5e_hairpin *hp,for (tt =0 ; tt <MLX5E_NUM_INDIR_TIRS ; tt++) ttc_params->indir_tirn[tt] = hp->indir_tirn[tt]; - ft_attr->max_fte =MLX5E_NUM_TT ; + ft_attr->max_fte =MLX5E_TTC_TABLE_SIZE ; ft_attr->level =MLX5E_TC_TTC_FT_LEVEL ; ft_attr->prio =MLX5E_TC_PRIO ; }
drivers/net/ethernet/mellanox/mlx5/core/main.c +9 -7
@@ -1197,6 +1197,12 @@ static int mlx5_load_one(struct mlx5_core_dev *dev, bool boot)if (err) goto err_load; +if (boot) { + err =mlx5_devlink_register (priv_to_devlink (dev), dev->device); +if (err) + goto err_devlink_reg; + } +if (mlx5_device_registered (dev)) {mlx5_attach_device (dev); }else {
@@ -1214,6 +1220,9 @@ static int mlx5_load_one(struct mlx5_core_dev *dev, bool boot)return err; err_reg_dev: +if (boot) +mlx5_devlink_unregister (priv_to_devlink (dev)); +err_devlink_reg:mlx5_unload (dev); err_load:if (boot)
@@ -1353,10 +1362,6 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *id)request_module_nowait (MLX5_IB_MOD ); - err =mlx5_devlink_register (devlink, &pdev->dev); -if (err) - goto clean_load; - err =mlx5_crdump_enable (dev);if (err)dev_err (&pdev->dev,"mlx5_crdump_enable failed with error code %d\n" , err);
@@ -1364,9 +1369,6 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *id)pci_save_state (pdev);return 0 ; -clean_load: -mlx5_unload_one (dev, true); - err_load_one:mlx5_pci_close (dev); pci_init_err:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c +4 -1
@@ -209,7 +209,7 @@ static void dr_rule_rehash_copy_ste_ctrl(struct mlx5dr_matcher *matcher,/* We need to copy the refcount since this ste * may have been traversed several times */ -refcount_set (&new_ste->refcount,refcount_read (&cur_ste->refcount)); + new_ste->refcount = cur_ste->refcount;/* Link old STEs rule_mem list to the new ste */ mlx5dr_rule_update_rule_member (cur_ste, new_ste);
@@ -638,6 +638,9 @@ static int dr_rule_add_member(struct mlx5dr_rule_rx_tx *nic_rule,if (!rule_mem)return -ENOMEM ; +INIT_LIST_HEAD (&rule_mem->list); +INIT_LIST_HEAD (&rule_mem->use_ste_list); + rule_mem->ste = ste;list_add_tail (&rule_mem->list, &nic_rule->rule_members_list);
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c +5 -5
@@ -340,7 +340,7 @@ static void dr_ste_replace(struct mlx5dr_ste *dst, struct mlx5dr_ste *src)if (dst->next_htbl) dst->next_htbl->pointing_ste = dst; -refcount_set (&dst->refcount,refcount_read (&src->refcount)); + dst->refcount = src->refcount;INIT_LIST_HEAD (&dst->rule_list);list_splice_tail_init (&src->rule_list, &dst->rule_list);
@@ -557,7 +557,7 @@ bool mlx5dr_ste_is_not_valid_entry(u8 *p_hw_ste)bool mlx5dr_ste_not_used_ste (struct mlx5dr_ste *ste) { -return !refcount_read (&ste->refcount); +return !ste->refcount; }/* Init one ste as a pattern for ste data array */
@@ -681,14 +681,14 @@ struct mlx5dr_ste_htbl *mlx5dr_ste_htbl_alloc(struct mlx5dr_icm_pool *pool, htbl->ste_arr = chunk->ste_arr; htbl->hw_ste_arr = chunk->hw_ste_arr; htbl->miss_list = chunk->miss_list; -refcount_set (&htbl->refcount,0 ); + htbl->refcount =0 ;for (i =0 ; i < chunk->num_of_entries; i++) {struct mlx5dr_ste *ste = &htbl->ste_arr[i]; ste->hw_ste = htbl->hw_ste_arr + i *DR_STE_SIZE_REDUCED ; ste->htbl = htbl; -refcount_set (&ste->refcount,0 ); + ste->refcount =0 ;INIT_LIST_HEAD (&ste->miss_list_node);INIT_LIST_HEAD (&htbl->miss_list[i]);INIT_LIST_HEAD (&ste->rule_list);
@@ -705,7 +705,7 @@ struct mlx5dr_ste_htbl *mlx5dr_ste_htbl_alloc(struct mlx5dr_icm_pool *pool,int mlx5dr_ste_htbl_free (struct mlx5dr_ste_htbl *htbl) { -if (refcount_read (&htbl->refcount)) +if (htbl->refcount)return -EBUSY ;mlx5dr_icm_free_chunk (htbl->chunk);
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h +8 -6
@@ -117,7 +117,7 @@ struct mlx5dr_matcher_rx_tx;struct mlx5dr_ste {u8 *hw_ste;/* refcount: indicates the num of rules that using this ste */ -refcount_t refcount; +u32 refcount;/* attached to the miss_list head at each htbl entry */ struct list_head miss_list_node;
@@ -149,7 +149,7 @@ struct mlx5dr_ste_htbl_ctrl {struct mlx5dr_ste_htbl {u8 lu_type;u16 byte_mask; -refcount_t refcount; +u32 refcount;struct mlx5dr_icm_chunk *chunk;struct mlx5dr_ste *ste_arr;u8 *hw_ste_arr;
@@ -200,13 +200,14 @@ int mlx5dr_ste_htbl_free(struct mlx5dr_ste_htbl *htbl);static inline void mlx5dr_htbl_put (struct mlx5dr_ste_htbl *htbl) { -if (refcount_dec_and_test (&htbl->refcount)) + htbl->refcount--; +if (!htbl->refcount)mlx5dr_ste_htbl_free (htbl); }static inline void mlx5dr_htbl_get (struct mlx5dr_ste_htbl *htbl) { -refcount_inc (&htbl->refcount); + htbl->refcount++; }/* STE utils */
@@ -248,14 +249,15 @@ static inline void mlx5dr_ste_put(struct mlx5dr_ste *ste,struct mlx5dr_matcher *matcher, struct mlx5dr_matcher_rx_tx *nic_matcher) { - if (refcount_dec_and_test(&ste->refcount)) + ste->refcount--; +if (!ste->refcount)mlx5dr_ste_free (ste, matcher, nic_matcher); }/* initial as 0, increased only when ste appears in a new rule */ static inline void mlx5dr_ste_get (struct mlx5dr_ste *ste) { -refcount_inc (&ste->refcount); + ste->refcount++; } void mlx5dr_ste_set_hit_addr_by_next_htbl(u8 *hw_ste,
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c +7 -0
@@ -650,6 +650,13 @@ mlxsw_sp_qdisc_prio_graft(struct mlxsw_sp_port *mlxsw_sp_port, mlxsw_sp_port->tclass_qdiscs[tclass_num].handle == p->child_handle)return 0 ; +if (!p->child_handle) { +/* This is an invisible FIFO replacing the original Qdisc. +* Ignore it--the original Qdisc's destroy will follow. +*/ +return 0 ; + } +/* See if the grafted qdisc is already offloaded on any tclass. If so, * unoffload it. */
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +3 -0
@@ -957,6 +957,9 @@ static int sun8i_dwmac_set_syscon(struct stmmac_priv *priv)/* default */ break ;case PHY_INTERFACE_MODE_RGMII : +case PHY_INTERFACE_MODE_RGMII_ID : +case PHY_INTERFACE_MODE_RGMII_RXID : +case PHY_INTERFACE_MODE_RGMII_TXID : reg |=SYSCON_EPIT |SYSCON_ETCS_INT_GMII ;break ;case PHY_INTERFACE_MODE_RMII :
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c +1 -1
@@ -44,7 +44,7 @@ static int sun7i_gmac_init(struct platform_device *pdev, void *priv)* rate, which then uses the auto-reparenting feature of the * clock driver, and enabling/disabling the clock. */ -if (gmac->interface ==PHY_INTERFACE_MODE_RGMII ) { +if (phy_interface_mode_is_rgmii (gmac->interface)) {clk_set_rate (gmac->tx_clk,SUN7I_GMAC_GMII_RGMII_RATE );clk_prepare_enable (gmac->tx_clk); gmac->clk_enabled =1 ;
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h +2 -0
@@ -343,6 +343,8 @@#define XGMAC_DMA_CH_RX_CONTROL (x) (0x00003108 + (0x80 * (x)))#define XGMAC_RxPBL GENMASK(21, 16)#define XGMAC_RxPBL_SHIFT 16 +#define XGMAC_RBSZ GENMASK(14, 1) +#define XGMAC_RBSZ_SHIFT 1#define XGMAC_RXST BIT(0)#define XGMAC_DMA_CH_TxDESC_HADDR (x) (0x00003110 + (0x80 * (x)))#define XGMAC_DMA_CH_TxDESC_LADDR (x) (0x00003114 + (0x80 * (x)))
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c +2 -1
@@ -489,7 +489,8 @@ static void dwxgmac2_set_bfsize(void __iomem *ioaddr, int bfsize, u32 chan)u32 value; value =readl (ioaddr +XGMAC_DMA_CH_RX_CONTROL (chan)); - value |= bfsize <<1 ; + value &= ~XGMAC_RBSZ ; + value |= bfsize <<XGMAC_RBSZ_SHIFT ;writel (value, ioaddr +XGMAC_DMA_CH_RX_CONTROL (chan)); }
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +26 -14
@@ -45,7 +45,7 @@#include "dwxgmac2.h" #include "hwif.h" -#define STMMAC_ALIGN (x) __ALIGN_KERNEL(x, SMP_CACHE_BYTES) +#define STMMAC_ALIGN (x) ALIGN(ALIGN(x, SMP_CACHE_BYTES), 16)#define TSO_MAX_BUFF_SIZE (SZ_16K - 1)/* Module parameters */
@@ -1292,19 +1292,9 @@ static int init_dma_rx_desc_rings(struct net_device *dev, gfp_t flags)struct stmmac_priv *priv =netdev_priv (dev);u32 rx_count = priv->plat->rx_queues_to_use;int ret = -ENOMEM ; -int bfsize =0 ;int queue;int i; - bfsize =stmmac_set_16kib_bfsize (priv, dev->mtu); -if (bfsize <0 ) - bfsize =0 ; - -if (bfsize < BUF_SIZE_16KiB) - bfsize =stmmac_set_bfsize (dev->mtu, priv->dma_buf_sz); - - priv->dma_buf_sz = bfsize; -/* RX INITIALIZATION */ netif_dbg (priv, probe, priv->dev,"SKB addresses:\nskb\t\tskb data\tdma data\n" );
@@ -1346,8 +1336,6 @@ static int init_dma_rx_desc_rings(struct net_device *dev, gfp_t flags) } } - buf_sz = bfsize; -return 0 ; err_init_rx_buffers:
@@ -2654,6 +2642,7 @@ static void stmmac_hw_teardown(struct net_device *dev)static int stmmac_open (struct net_device *dev) {struct stmmac_priv *priv =netdev_priv (dev); +int bfsize =0 ;u32 chan;int ret;
@@ -2673,7 +2662,16 @@ static int stmmac_open(struct net_device *dev)memset (&priv->xstats,0 ,sizeof (struct stmmac_extra_stats )); priv->xstats.threshold = tc; - priv->dma_buf_sz =STMMAC_ALIGN (buf_sz); + bfsize =stmmac_set_16kib_bfsize (priv, dev->mtu); +if (bfsize <0 ) + bfsize =0 ; + +if (bfsize < BUF_SIZE_16KiB) + bfsize =stmmac_set_bfsize (dev->mtu, priv->dma_buf_sz); + + priv->dma_buf_sz = bfsize; + buf_sz = bfsize; + priv->rx_copybreak =STMMAC_RX_COPYBREAK ; ret =alloc_dma_desc_resources (priv);
@@ -3103,6 +3101,7 @@ static netdev_tx_t stmmac_tso_xmit(struct sk_buff *skb, struct net_device *dev) tx_q->tx_tail_addr = tx_q->dma_tx_phy + (tx_q->cur_tx *sizeof (*desc));stmmac_set_tx_tail_ptr (priv, priv->ioaddr, tx_q->tx_tail_addr, queue); +stmmac_tx_timer_arm (priv, queue);return NETDEV_TX_OK ;
@@ -3330,6 +3329,7 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev) tx_q->tx_tail_addr = tx_q->dma_tx_phy + (tx_q->cur_tx *sizeof (*desc));stmmac_set_tx_tail_ptr (priv, priv->ioaddr, tx_q->tx_tail_addr, queue); +stmmac_tx_timer_arm (priv, queue);return NETDEV_TX_OK ;
@@ -3747,12 +3747,24 @@ static void stmmac_set_rx_mode(struct net_device *dev)static int stmmac_change_mtu (struct net_device *dev,int new_mtu) {struct stmmac_priv *priv =netdev_priv (dev); +int txfifosz = priv->plat->tx_fifo_size; + +if (txfifosz ==0 ) + txfifosz = priv->dma_cap.tx_fifo_size; + + txfifosz /= priv->plat->tx_queues_to_use;if (netif_running (dev)) {netdev_err (priv->dev,"must be stopped to change its MTU\n" );return -EBUSY ; } + new_mtu =STMMAC_ALIGN (new_mtu); + +/* If condition true, FIFO is too small or MTU too large */ +if ((txfifosz < new_mtu) || (new_mtu > BUF_SIZE_16KiB)) +return -EINVAL ; + dev->mtu = new_mtu;netdev_update_features (dev);
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +1 -1
@@ -320,7 +320,7 @@ static int stmmac_mtl_setup(struct platform_device *pdev,static int stmmac_dt_phy (struct plat_stmmacenet_data *plat,struct device_node *np,struct device *dev) { -bool mdio = false; +bool mdio = !of_phy_is_fixed_link (np);static const struct of_device_id need_mdio_ids[] = { { .compatible ="snps,dwc-qos-ethernet-4.10" }, {},
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c +4 -0
@@ -624,6 +624,8 @@ static int stmmac_test_mcfilt(struct stmmac_priv *priv)return -EOPNOTSUPP ;if (netdev_uc_count (priv->dev) >= priv->hw->unicast_filter_entries)return -EOPNOTSUPP ; +if (netdev_mc_count (priv->dev) >= priv->hw->multicast_filter_bins) +return -EOPNOTSUPP ;while (--tries) {/* We only need to check the mc_addr for collisions */
@@ -666,6 +668,8 @@ static int stmmac_test_ucfilt(struct stmmac_priv *priv)if (stmmac_filter_check (priv))return -EOPNOTSUPP ; +if (netdev_uc_count (priv->dev) >= priv->hw->unicast_filter_entries) +return -EOPNOTSUPP ;if (netdev_mc_count (priv->dev) >= priv->hw->multicast_filter_bins)return -EOPNOTSUPP ;
drivers/net/gtp.c +3 -2
@@ -813,7 +813,7 @@ static struct sock *gtp_encap_enable_socket(int fd, int type,lock_sock (sock->sk);if (sock->sk->sk_user_data) { sk =ERR_PTR (-EBUSY ); - goto out_sock; + goto out_rel_sock; } sk = sock->sk;
@@ -826,8 +826,9 @@ static struct sock *gtp_encap_enable_socket(int fd, int type,setup_udp_tunnel_sock (sock_net (sock->sk), sock, &tuncfg); -out_sock: +out_rel_sock:release_sock (sock->sk); +out_sock:sockfd_put (sock);return sk; }
drivers/net/hyperv/hyperv_net.h +2 -1
@@ -169,7 +169,6 @@ struct rndis_device {u8 hw_mac_adr[ETH_ALEN ];u8 rss_key[NETVSC_HASH_KEYLEN ]; -u16 rx_table[ITAB_NUM ]; };
@@ -938,6 +937,8 @@ struct net_device_context {u32 tx_table[VRSS_SEND_TAB_SIZE ]; +u16 rx_table[ITAB_NUM ]; +/* Ethtool settings */ u8 duplex;u32 speed;
drivers/net/hyperv/netvsc_drv.c +2 -2
@@ -1659,7 +1659,7 @@ static int netvsc_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, rndis_dev = ndev->extension;if (indir) {for (i =0 ; i <ITAB_NUM ; i++) - indir[i] = rndis_dev->rx_table[i]; + indir[i] = ndc->rx_table[i]; }if (key)
@@ -1689,7 +1689,7 @@ static int netvsc_set_rxfh(struct net_device *dev, const u32 *indir,return -EINVAL ;for (i =0 ; i <ITAB_NUM ; i++) - rndis_dev->rx_table[i] = indir[i]; + ndc->rx_table[i] = indir[i]; }if (!key) {
drivers/net/hyperv/rndis_filter.c +7 -3
@@ -767,6 +767,7 @@ static int rndis_set_rss_param_msg(struct rndis_device *rdev, const u8 *rss_key, u16 flag) {struct net_device *ndev = rdev->ndev; +struct net_device_context *ndc =netdev_priv (ndev);struct rndis_request *request;struct rndis_set_request *set;struct rndis_set_complete *set_complete;
@@ -806,7 +807,7 @@ static int rndis_set_rss_param_msg(struct rndis_device *rdev,/* Set indirection table entries */ itab = (u32 *)(rssp +1 );for (i =0 ; i <ITAB_NUM ; i++) - itab[i] = rdev->rx_table[i]; + itab[i] = ndc->rx_table[i];/* Set hask key values */ keyp = (u8 *)((unsigned long )rssp + rssp->hashkey_offset);
@@ -1305,6 +1306,7 @@ struct netvsc_device *rndis_filter_device_add(struct hv_device *dev, struct netvsc_device_info *device_info) {struct net_device *net =hv_get_drvdata (dev); +struct net_device_context *ndc =netdev_priv (net);struct netvsc_device *net_device;struct rndis_device *rndis_device;struct ndis_recv_scale_cap rsscap;
@@ -1391,9 +1393,11 @@ struct netvsc_device *rndis_filter_device_add(struct hv_device *dev,/* We will use the given number of channels if available. */ net_device->num_chn =min (net_device->max_chn, device_info->num_chn); -for (i =0 ; i <ITAB_NUM ; i++) - rndis_device->rx_table[i] =ethtool_rxfh_indir_default ( +if (!netif_is_rxfh_configured (net)) { +for (i =0 ; i <ITAB_NUM ; i++) + ndc->rx_table[i] =ethtool_rxfh_indir_default ( i, net_device->num_chn); + }atomic_set (&net_device->open_chn,1 );vmbus_set_sc_create_callback (dev->channel, netvsc_sc_open);
drivers/net/macvlan.c +1 -1
@@ -259,7 +259,7 @@ static void macvlan_broadcast(struct sk_buff *skb, struct net_device *src, enum macvlan_mode mode) { -const struct ethhdr *eth =eth_hdr (skb); +const struct ethhdr *eth =skb_eth_hdr (skb);const struct macvlan_dev *vlan;struct sk_buff *nskb;unsigned int i;
drivers/net/usb/lan78xx.c +4 -7
@@ -511,7 +511,7 @@ static int lan78xx_read_stats(struct lan78xx_net *dev, } }else {netdev_warn (dev->net, -"Failed to read stat ret = 0x%x" , ret); +"Failed to read stat ret = %d" , ret); }kfree (stats);
@@ -2724,11 +2724,6 @@ static int lan78xx_stop(struct net_device *net)return 0 ; } -static int lan78xx_linearize (struct sk_buff *skb) -{ -return skb_linearize (skb); -} -static struct sk_buff *lan78xx_tx_prep (struct lan78xx_net *dev,struct sk_buff *skb,gfp_t flags) {
@@ -2740,8 +2735,10 @@ static struct sk_buff *lan78xx_tx_prep(struct lan78xx_net *dev,return NULL ; } -if (lan78xx_linearize (skb) <0 ) +if (skb_linearize (skb)) { +dev_kfree_skb_any (skb);return NULL ; + } tx_cmd_a = (u32)(skb->len &TX_CMD_A_LEN_MASK_ ) |TX_CMD_A_FCS_ ;
drivers/net/vxlan.c +2 -2
@@ -2542,7 +2542,7 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev, ndst = &rt->dst;skb_tunnel_check_pmtu (skb, ndst,VXLAN_HEADROOM ); - tos =ip_tunnel_ecn_encap (tos, old_iph, skb); + tos =ip_tunnel_ecn_encap (RT_TOS (tos), old_iph, skb); ttl = ttl ? :ip4_dst_hoplimit (&rt->dst); err =vxlan_build_skb (skb, ndst,sizeof (struct iphdr ), vni, md, flags, udp_sum);
@@ -2582,7 +2582,7 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev,skb_tunnel_check_pmtu (skb, ndst,VXLAN6_HEADROOM ); - tos =ip_tunnel_ecn_encap (tos, old_iph, skb); + tos =ip_tunnel_ecn_encap (RT_TOS (tos), old_iph, skb); ttl = ttl ? :ip6_dst_hoplimit (ndst);skb_scrub_packet (skb, xnet); err = vxlan_build_skb(skb, ndst, sizeof(struct ipv6hdr),
drivers/net/wireless/marvell/mwifiex/tdls.c +64 -6
123 lines not on this page · raw message
drivers/perf/arm_smmuv3_pmu.c +1 -3
@@ -815,7 +815,7 @@ static int smmu_pmu_probe(struct platform_device *pdev)if (err) {dev_err (dev,"Error %d registering hotplug, PMU @%pa\n" , err, &res_0->start); - goto out_cpuhp_err; +return err; } err =perf_pmu_register (&smmu_pmu->pmu, name,-1 );
@@ -834,8 +834,6 @@ static int smmu_pmu_probe(struct platform_device *pdev) out_unregister:cpuhp_state_remove_instance_nocalls (cpuhp_state_num, &smmu_pmu->node); -out_cpuhp_err: -put_cpu ();return err; }
drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +8 -16
@@ -1088,60 +1088,52 @@ SSSF_PIN_DECL(AF15, GPIOV7, LPCSMI, SIG_DESC_SET(SCU434, 15));#define AB7 176SIG_EXPR_LIST_DECL_SESG (AB7 ,LAD0 ,LPC ,SIG_DESC_SET (SCU434 ,16 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AB7 ,ESPID0 ,ESPI ,SIG_DESC_SET (SCU434 ,16 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AB7 ,ESPID0 ,ESPI ,SIG_DESC_SET (SCU434 ,16 ));PIN_DECL_2 (AB7 ,GPIOW0 ,LAD0 ,ESPID0 );#define AB8 177SIG_EXPR_LIST_DECL_SESG (AB8 ,LAD1 ,LPC ,SIG_DESC_SET (SCU434 ,17 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AB8 ,ESPID1 ,ESPI ,SIG_DESC_SET (SCU434 ,17 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AB8 ,ESPID1 ,ESPI ,SIG_DESC_SET (SCU434 ,17 ));PIN_DECL_2 (AB8 ,GPIOW1 ,LAD1 ,ESPID1 );#define AC8 178SIG_EXPR_LIST_DECL_SESG (AC8 ,LAD2 ,LPC ,SIG_DESC_SET (SCU434 ,18 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AC8 ,ESPID2 ,ESPI ,SIG_DESC_SET (SCU434 ,18 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AC8 ,ESPID2 ,ESPI ,SIG_DESC_SET (SCU434 ,18 ));PIN_DECL_2 (AC8 ,GPIOW2 ,LAD2 ,ESPID2 );#define AC7 179SIG_EXPR_LIST_DECL_SESG (AC7 ,LAD3 ,LPC ,SIG_DESC_SET (SCU434 ,19 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AC7 ,ESPID3 ,ESPI ,SIG_DESC_SET (SCU434 ,19 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AC7 ,ESPID3 ,ESPI ,SIG_DESC_SET (SCU434 ,19 ));PIN_DECL_2 (AC7 ,GPIOW3 ,LAD3 ,ESPID3 );#define AE7 180SIG_EXPR_LIST_DECL_SESG (AE7 ,LCLK ,LPC ,SIG_DESC_SET (SCU434 ,20 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AE7 ,ESPICK ,ESPI ,SIG_DESC_SET (SCU434 ,20 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AE7 ,ESPICK ,ESPI ,SIG_DESC_SET (SCU434 ,20 ));PIN_DECL_2 (AE7 ,GPIOW4 ,LCLK ,ESPICK );#define AF7 181SIG_EXPR_LIST_DECL_SESG (AF7 ,LFRAME ,LPC ,SIG_DESC_SET (SCU434 ,21 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AF7 ,ESPICS ,ESPI ,SIG_DESC_SET (SCU434 ,21 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AF7 ,ESPICS ,ESPI ,SIG_DESC_SET (SCU434 ,21 ));PIN_DECL_2 (AF7 ,GPIOW5 ,LFRAME ,ESPICS );#define AD7 182SIG_EXPR_LIST_DECL_SESG (AD7 ,LSIRQ ,LSIRQ ,SIG_DESC_SET (SCU434 ,22 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AD7 ,ESPIALT ,ESPIALT ,SIG_DESC_SET (SCU434 ,22 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AD7 ,ESPIALT ,ESPIALT ,SIG_DESC_SET (SCU434 ,22 ));PIN_DECL_2 (AD7 ,GPIOW6 ,LSIRQ ,ESPIALT );FUNC_GROUP_DECL (LSIRQ ,AD7 );FUNC_GROUP_DECL (ESPIALT ,AD7 );#define AD8 183SIG_EXPR_LIST_DECL_SESG (AD8 ,LPCRST ,LPC ,SIG_DESC_SET (SCU434 ,23 ), -SIG_DESC_CLEAR (SCU510 ,6 )); -SIG_EXPR_LIST_DECL_SESG (AD8 ,ESPIRST ,ESPI ,SIG_DESC_SET (SCU434 ,23 ),SIG_DESC_SET (SCU510 ,6 )); +SIG_EXPR_LIST_DECL_SESG (AD8 ,ESPIRST ,ESPI ,SIG_DESC_SET (SCU434 ,23 ));PIN_DECL_2 (AD8 ,GPIOW7 ,LPCRST ,ESPIRST );FUNC_GROUP_DECL (LPC ,AB7 ,AB8 ,AC8 ,AC7 ,AE7 ,AF7 ,AD8 );
drivers/pinctrl/pinmux.c +1 -1
@@ -85,7 +85,7 @@ bool pinmux_can_be_used_for_gpio(struct pinctrl_dev *pctldev, unsigned pin)const struct pinmux_ops *ops = pctldev->desc->pmxops;/* Can't inspect pin, assume it can be used */ -if (!desc) +if (!desc || !ops)return true;if (ops->strict && desc->mux_usecount)
drivers/platform/x86/pcengines-apuv2.c +1 -1
@@ -95,7 +95,7 @@ static struct gpiod_lookup_table gpios_led_table = { NULL, 1, GPIO_ACTIVE_LOW), GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED3, NULL, 2, GPIO_ACTIVE_LOW), - GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_REG_SIMSWAP, + GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_SIMSWAP, NULL, 3, GPIO_ACTIVE_LOW), } };
drivers/regulator/core.c +8 -4
@@ -1937,8 +1937,8 @@ struct regulator *_regulator_get(struct device *dev, const char *id, regulator =create_regulator (rdev, dev, id);if (regulator ==NULL ) { regulator =ERR_PTR (-ENOMEM ); -put_device (&rdev->dev);module_put (rdev->owner); +put_device (&rdev->dev);return regulator; }
@@ -2059,13 +2059,13 @@ static void _regulator_put(struct regulator *regulator) rdev->open_count--; rdev->exclusive =0 ; -put_device (&rdev->dev);regulator_unlock (rdev);kfree_const (regulator->supply_name);kfree (regulator);module_put (rdev->owner); +put_device (&rdev->dev); }/**
@@ -4992,6 +4992,7 @@ regulator_register(const struct regulator_desc *regulator_desc,struct regulator_dev *rdev;bool dangling_cfg_gpiod = false;bool dangling_of_gpiod = false; +bool reg_device_fail = false;struct device *dev;int ret, i;
@@ -5177,7 +5178,7 @@ regulator_register(const struct regulator_desc *regulator_desc,dev_set_drvdata (&rdev->dev, rdev); ret =device_register (&rdev->dev);if (ret !=0 ) { -put_device (&rdev->dev); + reg_device_fail = true; goto unset_supplies; }
@@ -5208,7 +5209,10 @@ regulator_register(const struct regulator_desc *regulator_desc, clean:if (dangling_of_gpiod)gpiod_put (config->ena_gpiod); -kfree (rdev); +if (reg_device_fail) +put_device (&rdev->dev); +else +kfree (rdev);kfree (config); rinse:if (dangling_cfg_gpiod)
drivers/regulator/rn5t618-regulator.c +1 -0
@@ -148,6 +148,7 @@ static struct platform_driver rn5t618_regulator_driver = {module_platform_driver (rn5t618_regulator_driver); +MODULE_ALIAS ("platform:rn5t618-regulator" );MODULE_AUTHOR ("Beniamino Galvani <[email protected]>" );MODULE_DESCRIPTION ("RN5T618 regulator driver" );MODULE_LICENSE ("GPL v2" );
drivers/reset/core.c +2 -2
@@ -787,7 +787,7 @@ struct reset_control *__devm_reset_control_get(struct device *dev,return ERR_PTR (-ENOMEM ); rstc =__reset_control_get (dev, id, index, shared, optional, acquired); -if (!IS_ERR (rstc)) { +if (!IS_ERR_OR_NULL (rstc)) { *ptr = rstc;devres_add (dev, ptr); }else {
@@ -930,7 +930,7 @@ devm_reset_control_array_get(struct device *dev, bool shared, bool optional)return ERR_PTR (-ENOMEM ); rstc =of_reset_control_array_get (dev->of_node, shared, optional, true); -if (IS_ERR (rstc)) { +if (IS_ERR_OR_NULL (rstc)) {devres_free (devres);return rstc; }
drivers/s390/block/dasd_eckd.c +7 -21
@@ -1128,7 +1128,8 @@ static u32 get_fcx_max_data(struct dasd_device *device) {struct dasd_eckd_private *private = device->private;int fcx_in_css, fcx_in_gneq, fcx_in_features; -int tpm, mdc; +unsigned int mdc; +int tpm;if (dasd_nofcx)return 0 ;
@@ -1142,7 +1143,7 @@ static u32 get_fcx_max_data(struct dasd_device *device)return 0 ; mdc =ccw_device_get_mdc (device->cdev,0 ); -if (mdc <0 ) { +if (mdc ==0 ) {dev_warn (&device->cdev->dev,"Detecting the maximum supported data size for zHPF requests failed\n" );return 0 ; }else {
@@ -1153,12 +1154,12 @@ static u32 get_fcx_max_data(struct dasd_device *device)static int verify_fcx_max_data (struct dasd_device *device,__u8 lpm) {struct dasd_eckd_private *private = device->private; -int mdc; +unsigned int mdc;u32 fcx_max_data;if (private->fcx_max_data) { mdc =ccw_device_get_mdc (device->cdev, lpm); -if ((mdc <0 )) { +if (mdc ==0 ) { dev_warn(&device->cdev->dev, "Detecting the maximum data size for zHPF " "requests failed (rc=%d) for a new path %x\n",
@@ -2073,7 +2074,7 @@ dasd_eckd_check_characteristics(struct dasd_device *device)dasd_free_block (device->block); device->block =NULL ; out_err1: -kfree (private->conf_data); +dasd_eckd_clear_conf_data (device);kfree (device->private); device->private =NULL ;return rc;
@@ -2082,7 +2083,6 @@ dasd_eckd_check_characteristics(struct dasd_device *device)static void dasd_eckd_uncheck_device (struct dasd_device *device) {struct dasd_eckd_private *private = device->private; -int i;if (!private)return ;
@@ -2092,21 +2092,7 @@ static void dasd_eckd_uncheck_device(struct dasd_device *device) private->sneq =NULL ; private->vdsneq =NULL ; private->gneq =NULL ; - private->conf_len =0 ; -for (i =0 ; i <8 ; i++) { -kfree (device->path[i].conf_data); -if ((__u8 *)device->path[i].conf_data == - private->conf_data) { - private->conf_data =NULL ; - private->conf_len =0 ; - } - device->path[i].conf_data =NULL ; - device->path[i].cssid =0 ; - device->path[i].ssid =0 ; - device->path[i].chpid =0 ; - } -kfree (private->conf_data); - private->conf_data =NULL ; +dasd_eckd_clear_conf_data (device); } static struct dasd_ccw_req *
drivers/s390/cio/device_ops.c +1 -1
@@ -635,7 +635,7 @@ EXPORT_SYMBOL(ccw_device_tm_start_timeout);* @mask: mask of paths to use * * Return the number of 64K-bytes blocks all paths at least support -* for a transport command. Return values <= 0 indicate failures. +* for a transport command. Return value 0 indicates failure. */ int ccw_device_get_mdc (struct ccw_device *cdev,u8 mask) {
drivers/s390/net/qeth_core_main.c +7 -7
@@ -653,17 +653,17 @@ static int qeth_check_idx_response(struct qeth_card *card, unsigned char *buffer) {QETH_DBF_HEX (CTRL ,2 , buffer,QETH_DBF_CTRL_LEN ); -if ((buffer[2 ] &0xc0 ) ==0xc0 ) { +if ((buffer[2 ] &QETH_IDX_TERMINATE_MASK ) ==QETH_IDX_TERMINATE ) {QETH_DBF_MESSAGE (2 ,"received an IDX TERMINATE with cause code %#04x\n" , buffer[4 ]);QETH_CARD_TEXT (card,2 ,"ckidxres" );QETH_CARD_TEXT (card,2 ," idxterm" ); -QETH_CARD_TEXT_ (card,2 ," rc%d" , -EIO ); -if (buffer[4 ] ==0xf6 ) { +QETH_CARD_TEXT_ (card,2 ,"rc%x" , buffer[4 ]); +if (buffer[4 ] ==QETH_IDX_TERM_BAD_TRANSPORT || + buffer[4 ] ==QETH_IDX_TERM_BAD_TRANSPORT_VM ) {dev_err (&card->gdev->dev, -"The qeth device is not configured " -"for the OSI layer required by z/VM\n" ); -return -EPERM ; +"The device does not support the configured transport mode\n" ); +return -EPROTONOSUPPORT ; }return -EIO ; }
@@ -740,10 +740,10 @@ static void qeth_issue_next_read_cb(struct qeth_card *card,case 0 :break ;case -EIO : -qeth_clear_ipacmd_list (card);qeth_schedule_recovery (card);/* fall through */ default : +qeth_clear_ipacmd_list (card); goto out; }
drivers/s390/net/qeth_core_mpc.h +5 -0
@@ -912,6 +912,11 @@ extern unsigned char IDX_ACTIVATE_WRITE[];#define QETH_IDX_ACT_ERR_AUTH 0x1E#define QETH_IDX_ACT_ERR_AUTH_USER 0x20 +#define QETH_IDX_TERMINATE 0xc0 +#define QETH_IDX_TERMINATE_MASK 0xc0 +#define QETH_IDX_TERM_BAD_TRANSPORT 0x41 +#define QETH_IDX_TERM_BAD_TRANSPORT_VM 0xf6 +#define PDU_ENCAPSULATION (buffer) \ (buffer + *(buffer + (*(buffer + 0x0b)) + \ *(buffer + *(buffer + 0x0b) + 0x11) + 0x07))
drivers/s390/net/qeth_core_sys.c +1 -1
@@ -227,7 +227,7 @@ static ssize_t qeth_dev_prioqing_store(struct device *dev, card->qdio.default_out_queue =QETH_DEFAULT_QUEUE ; }else if (sysfs_streq (buf,"prio_queueing_vlan" )) {if (IS_LAYER3 (card)) { - rc = -ENOTSUPP ; + rc = -EOPNOTSUPP ; goto out; } card->qdio.do_prio_queueing =QETH_PRIO_Q_ING_VLAN ;
drivers/s390/net/qeth_l2_main.c +1 -0
@@ -295,6 +295,7 @@ static void qeth_l2_stop_card(struct qeth_card *card)flush_workqueue (card->event_wq); card->info.mac_bits &= ~QETH_LAYER2_MAC_REGISTERED ; + card->info.promisc_mode =0 ; } static int qeth_l2_process_inbound_buffer(struct qeth_card *card,
drivers/s390/net/qeth_l2_sys.c +2 -1
@@ -279,7 +279,8 @@ void qeth_l2_setup_bridgeport_attrs(struct qeth_card *card)return ;mutex_lock (&card->sbp_lock); -if (card->options.sbp.role !=QETH_SBP_ROLE_NONE ) { +if (!card->options.sbp.reflect_promisc && + card->options.sbp.role !=QETH_SBP_ROLE_NONE ) {/* Conditional to avoid spurious error messages */ qeth_bridgeport_setrole (card, card->options.sbp.role);/* Let the callback function refresh the stored role value. */
drivers/s390/net/qeth_l3_main.c +1 -0
@@ -1433,6 +1433,7 @@ static void qeth_l3_stop_card(struct qeth_card *card) }flush_workqueue (card->event_wq); + card->info.promisc_mode =0 ; }static void qeth_l3_set_promisc_mode (struct qeth_card *card)
drivers/spi/spi-cavium-thunderx.c +2 -0
@@ -82,6 +82,7 @@ static int thunderx_spi_probe(struct pci_dev *pdev, error:clk_disable_unprepare (p->clk); +pci_release_regions (pdev);spi_master_put (master);return ret; }
@@ -96,6 +97,7 @@ static void thunderx_spi_remove(struct pci_dev *pdev)return ;clk_disable_unprepare (p->clk); +pci_release_regions (pdev);/* Put everything in a known state. */ writeq (0 , p->register_base +OCTEON_SPI_CFG (p)); }
drivers/spi/spi-fsl-spi.c +13 -2
@@ -612,6 +612,7 @@ static struct spi_master * fsl_spi_probe(struct device *dev, master->setup = fsl_spi_setup; master->cleanup = fsl_spi_cleanup; master->transfer_one_message = fsl_spi_do_one_msg; + master->use_gpio_descriptors = true; mpc8xxx_spi =spi_master_get_devdata (master); mpc8xxx_spi->max_bits_per_word =32 ;
@@ -728,8 +729,18 @@ static int of_fsl_spi_probe(struct platform_device *ofdev) } }#endif - - pdata->cs_control = fsl_spi_cs_control; +/* +* Handle the case where we have one hardwired (always selected) +* device on the first "chipselect". Else we let the core code +* handle any GPIOs or native chip selects and assign the +* appropriate callback for dealing with the CS lines. This isn't +* supported on the GRLIB variant. +*/ + ret =gpiod_count (dev,"cs" ); +if (ret <=0 ) + pdata->max_chipselect =1 ; +else + pdata->cs_control = fsl_spi_cs_control; } ret =of_address_to_resource (np,0 , &mem);
drivers/spi/spi-nxp-fspi.c +1 -1
@@ -439,7 +439,7 @@ static bool nxp_fspi_supports_op(struct spi_mem *mem, op->data.nbytes > f->devtype_data->txfifo)return false; -return true; +return spi_mem_default_supports_op (mem, op); }/* Instead of busy looping invoke readl_poll_timeout functionality. */
drivers/spi/spi-pxa2xx.c +4 -0
@@ -1441,6 +1441,10 @@ static const struct pci_device_id pxa2xx_spi_pci_compound_match[] = { { PCI_VDEVICE(INTEL, 0x4b2a), LPSS_BXT_SSP }, { PCI_VDEVICE(INTEL, 0x4b2b), LPSS_BXT_SSP }, { PCI_VDEVICE(INTEL, 0x4b37), LPSS_BXT_SSP }, +/* JSL */ + { PCI_VDEVICE(INTEL, 0x4daa), LPSS_CNL_SSP }, + { PCI_VDEVICE(INTEL, 0x4dab), LPSS_CNL_SSP }, + { PCI_VDEVICE(INTEL, 0x4dfb), LPSS_CNL_SSP },/* APL */ { PCI_VDEVICE(INTEL, 0x5ac2), LPSS_BXT_SSP }, { PCI_VDEVICE(INTEL, 0x5ac4), LPSS_BXT_SSP },
drivers/spi/spi-ti-qspi.c +5 -1
@@ -62,6 +62,7 @@ struct ti_qspi {u32 dc;bool mmap_enabled; +int current_cs; };#define QSPI_PID (0x0)
@@ -487,6 +488,7 @@ static void ti_qspi_enable_memory_map(struct spi_device *spi) MEM_CS_EN(spi->chip_select)); } qspi->mmap_enabled = true; + qspi->current_cs = spi->chip_select; }static void ti_qspi_disable_memory_map (struct spi_device *spi)
@@ -498,6 +500,7 @@ static void ti_qspi_disable_memory_map(struct spi_device *spi)regmap_update_bits (qspi->ctrl_base, qspi->ctrl_reg,MEM_CS_MASK ,0 ); qspi->mmap_enabled = false; + qspi->current_cs =-1 ; } static void ti_qspi_setup_mmap_read(struct spi_device *spi, u8 opcode,
@@ -543,7 +546,7 @@ static int ti_qspi_exec_mem_op(struct spi_mem *mem,mutex_lock (&qspi->list_lock); -if (!qspi->mmap_enabled) +if (!qspi->mmap_enabled || qspi->current_cs != mem->spi->chip_select)ti_qspi_enable_memory_map (mem->spi);ti_qspi_setup_mmap_read (mem->spi, op->cmd.opcode, op->data.buswidth, op->addr.nbytes, op->dummy.nbytes);
@@ -799,6 +802,7 @@ static int ti_qspi_probe(struct platform_device *pdev) } } qspi->mmap_enabled = false; + qspi->current_cs =-1 ; ret =devm_spi_register_master (&pdev->dev, master);if (!ret)
drivers/staging/axis-fifo/Kconfig +1 -1
@@ -4,7 +4,7 @@ # config XIL_AXIS_FIFO tristate "Xilinx AXI-Stream FIFO IP core driver" - depends on OF + depends on OF && HAS_IOMEM help This adds support for the Xilinx AXI-Stream FIFO IP core driver. The AXI Streaming FIFO allows memory mapped access to a AXI Streaming
drivers/usb/core/config.c +58 -12
88 lines not on this page · raw message
drivers/usb/core/hub.c +1 -1
@@ -2691,7 +2691,7 @@ static unsigned hub_is_wusb(struct usb_hub *hub)#define SET_ADDRESS_TRIES 2#define GET_DESCRIPTOR_TRIES 2#define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) -#define USE_NEW_SCHEME (i, scheme) ((i) / 2 == (int)scheme) +#define USE_NEW_SCHEME (i, scheme) ((i) / 2 == (int)(scheme))#define HUB_ROOT_RESET_TIME 60/* times are in msec */ #define HUB_SHORT_RESET_TIME 10
drivers/usb/dwc3/gadget.c +7 -0
@@ -2467,6 +2467,13 @@ static int dwc3_gadget_ep_reclaim_trb_linear(struct dwc3_ep *dep,static bool dwc3_gadget_ep_request_completed (struct dwc3_request *req) { +/* +* For OUT direction, host may send less than the setup +* length. Return true for all OUT requests. +*/ +if (!req->direction) +return true; +return req->request.actual == req->request.length; }
drivers/usb/gadget/udc/dummy_hcd.c +4 -4
@@ -1321,7 +1321,7 @@ static int dummy_perform_transfer(struct urb *urb, struct dummy_request *req,u32 this_sg;bool next_sg; - to_host =usb_pipein (urb->pipe); + to_host =usb_urb_dir_in (urb); rbuf = req->req.buf + req->req.actual;if (!urb->num_sgs) {
@@ -1409,7 +1409,7 @@ static int transfer(struct dummy_hcd *dum_hcd, struct urb *urb,/* FIXME update emulated data toggle too */ - to_host =usb_pipein (urb->pipe); + to_host =usb_urb_dir_in (urb);if (unlikely (len ==0 )) is_short =1 ;else {
@@ -1830,7 +1830,7 @@ static void dummy_timer(struct timer_list *t)/* find the gadget's ep for this request (if configured) */ address =usb_pipeendpoint (urb->pipe); -if (usb_pipein (urb->pipe)) +if (usb_urb_dir_in (urb)) address |=USB_DIR_IN ; ep =find_endpoint (dum, address);if (!ep) {
@@ -2385,7 +2385,7 @@ static inline ssize_t show_urb(char *buf, size_t size, struct urb *urb) s ="?" ;break ; } s; }), - ep, ep ? (usb_pipein(urb->pipe) ? "in" : "out") : "", + ep, ep ? (usb_urb_dir_in(urb) ? "in" : "out") : "", ({ char *s; \ switch (usb_pipetype(urb->pipe)) { \ case PIPE_CONTROL: \
drivers/usb/serial/option.c +2 -0
@@ -1172,6 +1172,8 @@ static const struct usb_device_id option_ids[] = { .driver_info = NCTRL(0) | RSVD(3) }, { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1102, 0xff), /* Telit ME910 (ECM) */ .driver_info = NCTRL(0) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x110a, 0xff), /* Telit ME910G1 */ + .driver_info = NCTRL(0) | RSVD(3) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE910), .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_LE910_USBCFG4),
drivers/usb/typec/tcpm/Kconfig +1 -0
@@ -32,6 +32,7 @@ endif # TYPEC_TCPCI config TYPEC_FUSB302 tristate "Fairchild FUSB302 Type-C chip driver" depends on I2C + depends on EXTCON || !EXTCON help The Fairchild FUSB302 Type-C chip driver that works with Type-C Port Controller Manager to provide USB PD and USB
fs/btrfs/extent-tree.c +18 -2
@@ -3781,6 +3781,7 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info, u64 flags, int delalloc) { int ret = 0; +int cache_block_group_error =0 ;struct btrfs_free_cluster *last_ptr =NULL ;struct btrfs_block_group_cache *block_group =NULL ;struct find_free_extent_ctl ffe_ctl = {0 };
@@ -3940,7 +3941,20 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info,if (unlikely (!ffe_ctl.cached)) { ffe_ctl.have_caching_bg = true; ret =btrfs_cache_block_group (block_group,0 ); -BUG_ON (ret <0 ); + +/* +* If we get ENOMEM here or something else we want to +* try other block groups, because it may not be fatal. +* However if we can't find anything else we need to +* save our return here so that we return the actual +* error that caused problems, not ENOSPC. +*/ +if (ret <0 ) { +if (!cache_block_group_error) + cache_block_group_error = ret; + ret =0 ; + goto loop; + } ret =0 ; }
@@ -4027,7 +4041,7 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info,if (ret >0 ) goto search; -if (ret == -ENOSPC ) { +if (ret == -ENOSPC && !cache_block_group_error) {/* * Use ffe_ctl->total_free_space as fallback if we can't find * any contiguous hole.
@@ -4038,6 +4052,8 @@ static noinline int find_free_extent(struct btrfs_fs_info *fs_info, space_info->max_extent_size = ffe_ctl.max_extent_size;spin_unlock (&space_info->lock); ins->offset = ffe_ctl.max_extent_size; + }else if (ret == -ENOSPC ) { + ret = cache_block_group_error; }return ret; }
fs/btrfs/file.c +2 -2
@@ -2601,8 +2601,8 @@ int btrfs_punch_hole_range(struct inode *inode, struct btrfs_path *path, } } -if (clone_info) { -u64 clone_len = drop_end - cur_offset; +if (clone_info && drop_end > clone_info->file_offset) { +u64 clone_len = drop_end - clone_info->file_offset; ret =btrfs_insert_clone_extent (trans, inode, path, clone_info, clone_len);
fs/btrfs/ioctl.c +5 -11
@@ -3727,24 +3727,18 @@ static int btrfs_clone(struct inode *src, struct inode *inode, ret =0 ;if (last_dest_end < destoff + len) { -struct btrfs_clone_extent_info clone_info = {0 };/* -* We have an implicit hole (NO_HOLES feature is enabled) that -* fully or partially overlaps our cloning range at its end. +* We have an implicit hole that fully or partially overlaps our +* cloning range at its end. This means that we either have the +* NO_HOLES feature enabled or the implicit hole happened due to +* mixing buffered and direct IO writes against this file. */ btrfs_release_path (path); path->leave_spinning =0 ; -/* -* We are dealing with a hole and our clone_info already has a -* disk_offset of 0, we only need to fill the data length and -* file offset. -*/ - clone_info.data_len = destoff + len - last_dest_end; - clone_info.file_offset = last_dest_end; ret =btrfs_punch_hole_range (inode, path, last_dest_end, destoff + len -1 , - &clone_info, &trans); +NULL , &trans);if (ret) goto out;
fs/btrfs/qgroup.c +2 -2
@@ -3232,12 +3232,12 @@ qgroup_rescan_init(struct btrfs_fs_info *fs_info, u64 progress_objectid,if (!(fs_info->qgroup_flags &BTRFS_QGROUP_STATUS_FLAG_RESCAN )) {btrfs_warn (fs_info, -"qgroup rescan init failed, qgroup is not enabled" ); +"qgroup rescan init failed, qgroup rescan is not queued" ); ret = -EINVAL ; }else if (!(fs_info->qgroup_flags &BTRFS_QGROUP_STATUS_FLAG_ON )) {btrfs_warn (fs_info, -"qgroup rescan init failed, qgroup rescan is not queued" ); +"qgroup rescan init failed, qgroup is not enabled" ); ret = -EINVAL ; }
fs/drop_caches.c +1 -1
@@ -35,11 +35,11 @@ static void drop_pagecache_sb(struct super_block *sb, void *unused)spin_unlock (&inode->i_lock);spin_unlock (&sb->s_inode_list_lock); -cond_resched ();invalidate_mapping_pages (inode->i_mapping,0 ,-1 );iput (toput_inode); toput_inode = inode; +cond_resched ();spin_lock (&sb->s_inode_list_lock); }spin_unlock (&sb->s_inode_list_lock);
fs/inode.c +7 -0
@@ -676,6 +676,7 @@ int invalidate_inodes(struct super_block *sb, bool kill_dirty)struct inode *inode, *next;LIST_HEAD (dispose); +again:spin_lock (&sb->s_inode_list_lock);list_for_each_entry_safe (inode, next, &sb->s_inodes, i_sb_list) {spin_lock (&inode->i_lock);
@@ -698,6 +699,12 @@ int invalidate_inodes(struct super_block *sb, bool kill_dirty)inode_lru_list_del (inode);spin_unlock (&inode->i_lock);list_add (&inode->i_lru, &dispose); +if (need_resched ()) { +spin_unlock (&sb->s_inode_list_lock); +cond_resched (); +dispose_list (&dispose); + goto again; + } }spin_unlock (&sb->s_inode_list_lock);
fs/io_uring.c +4 -0
@@ -3721,6 +3721,9 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,mutex_lock (&ctx->uring_lock); submitted =io_ring_submit (ctx, to_submit);mutex_unlock (&ctx->uring_lock); + +if (submitted != to_submit) + goto out; }if (flags &IORING_ENTER_GETEVENTS ) {unsigned nr_events =0 ;
@@ -3734,6 +3737,7 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit, } } +out:percpu_ref_put (&ctx->refs); out_fput:fdput (f);
fs/notify/fsnotify.c +4 -0
@@ -57,6 +57,9 @@ static void fsnotify_unmount_inodes(struct super_block *sb)* doing an __iget/iput with SB_ACTIVE clear would actually * evict all inodes with zero i_count from icache which is * unnecessarily violent and may in fact be illegal to do. +* However, we should have been called /after/ evict_inodes +* removed all zero refcount inodes, in any case. Test to +* be sure. */ if (!atomic_read (&inode->i_count)) {spin_unlock (&inode->i_lock);
@@ -77,6 +80,7 @@ static void fsnotify_unmount_inodes(struct super_block *sb) iput_inode = inode; +cond_resched ();spin_lock (&sb->s_inode_list_lock); }spin_unlock (&sb->s_inode_list_lock);
fs/quota/dquot.c +1 -0
@@ -986,6 +986,7 @@ static int add_dquot_ref(struct super_block *sb, int type)* later. */ old_inode = inode; +cond_resched ();spin_lock (&sb->s_inode_list_lock); }spin_unlock (&sb->s_inode_list_lock);
fs/super.c +3 -1
@@ -448,10 +448,12 @@ void generic_shutdown_super(struct super_block *sb)sync_filesystem (sb); sb->s_flags &= ~SB_ACTIVE ; -fsnotify_sb_delete (sb);cgroup_writeback_umount (); +/* evict all inodes with zero refcount */ evict_inodes (sb); +/* only nonzero refcount inodes can have marks */ +fsnotify_sb_delete (sb);if (sb->s_dio_done_wq) {destroy_workqueue (sb->s_dio_done_wq);
include/linux/if_ether.h +8 -0
@@ -24,6 +24,14 @@ static inline struct ethhdr *eth_hdr(const struct sk_buff *skb)return (struct ethhdr *)skb_mac_header (skb); } +/* Prefer this version in TX path, instead of +* skb_reset_mac_header() + eth_hdr() +*/ +static inline struct ethhdr *skb_eth_hdr (const struct sk_buff *skb) +{ +return (struct ethhdr *)skb->data; +} +static inline struct ethhdr *inner_eth_hdr (const struct sk_buff *skb) {return (struct ethhdr *)skb_inner_mac_header (skb);
include/uapi/linux/netfilter/xt_sctp.h +3 -3
@@ -41,19 +41,19 @@ struct xt_sctp_info {#define SCTP_CHUNKMAP_SET (chunkmap, type) \ do { \ (chunkmap)[type / bytes(__u32)] |= \ - 1 << (type % bytes(__u32)); \ + 1u << (type % bytes(__u32)); \ } while (0)#define SCTP_CHUNKMAP_CLEAR (chunkmap, type) \ do { \ (chunkmap)[type / bytes(__u32)] &= \ - ~(1 << (type % bytes(__u32))); \ + ~(1u << (type % bytes(__u32))); \ } while (0)#define SCTP_CHUNKMAP_IS_SET (chunkmap, type) \ ({ \ ((chunkmap)[type / bytes (__u32)] & \ - (1 << (type % bytes (__u32)))) ? 1: 0; \ + (1u << (type % bytes (__u32)))) ? 1: 0; \ })#define SCTP_CHUNKMAP_RESET (chunkmap) \
kernel/bpf/verifier.c +7 -2
@@ -6039,6 +6039,7 @@ static bool may_access_skb(enum bpf_prog_type type)static int check_ld_abs (struct bpf_verifier_env *env,struct bpf_insn *insn) {struct bpf_reg_state *regs =cur_regs (env); +static const int ctx_reg =BPF_REG_6 ;u8 mode =BPF_MODE (insn->code);int i, err;
@@ -6072,7 +6073,7 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn) }/* check whether implicit source operand (register R6) is readable */ - err =check_reg_arg (env,BPF_REG_6 ,SRC_OP ); + err =check_reg_arg (env, ctx_reg,SRC_OP );if (err)return err;
@@ -6091,7 +6092,7 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn)return -EINVAL ; } -if (regs[BPF_REG_6 ].type !=PTR_TO_CTX ) { +if (regs[ctx_reg].type !=PTR_TO_CTX ) {verbose (env,"at the time of BPF_LD_ABS|IND R6 != pointer to skb\n" );return -EINVAL ;
@@ -6104,6 +6105,10 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn)return err; } + err =check_ctx_reg (env, ®s[ctx_reg], ctx_reg); +if (err <0 ) +return err; +/* reset caller saved regs to unreadable */ for (i =0 ; i <CALLER_SAVED_REGS ; i++) {mark_reg_not_init (env, regs, caller_saved[i]);
kernel/locking/spinlock_debug.c +16 -16
@@ -51,19 +51,19 @@ EXPORT_SYMBOL(__rwlock_init);static void spin_dump (raw_spinlock_t *lock,const char *msg) { -struct task_struct *owner =NULL ; +struct task_struct *owner =READ_ONCE (lock->owner); -if (lock->owner && lock->owner !=SPINLOCK_OWNER_INIT ) - owner = lock->owner; +if (owner ==SPINLOCK_OWNER_INIT ) + owner =NULL ;printk (KERN_EMERG "BUG: spinlock %s on CPU#%d, %s/%d\n" , msg,raw_smp_processor_id (), current->comm,task_pid_nr (current));printk (KERN_EMERG " lock: %pS, .magic: %08x, .owner: %s/%d, " ".owner_cpu: %d\n" , - lock, lock->magic, + lock,READ_ONCE (lock->magic), owner ? owner->comm :"<none>" , owner ?task_pid_nr (owner) :-1 , - lock->owner_cpu); +READ_ONCE (lock->owner_cpu));dump_stack (); }
@@ -80,16 +80,16 @@ static void spin_bug(raw_spinlock_t *lock, const char *msg)static inline void debug_spin_lock_before (raw_spinlock_t *lock) { -SPIN_BUG_ON (lock->magic !=SPINLOCK_MAGIC , lock,"bad magic" ); -SPIN_BUG_ON (lock->owner == current, lock,"recursion" ); -SPIN_BUG_ON (lock->owner_cpu ==raw_smp_processor_id (), +SPIN_BUG_ON (READ_ONCE (lock->magic) !=SPINLOCK_MAGIC , lock,"bad magic" ); +SPIN_BUG_ON (READ_ONCE (lock->owner) == current, lock,"recursion" ); +SPIN_BUG_ON (READ_ONCE (lock->owner_cpu) ==raw_smp_processor_id (), lock,"cpu recursion" ); }static inline void debug_spin_lock_after (raw_spinlock_t *lock) { - lock->owner_cpu =raw_smp_processor_id (); - lock->owner = current; +WRITE_ONCE (lock->owner_cpu,raw_smp_processor_id ()); +WRITE_ONCE (lock->owner, current); }static inline void debug_spin_unlock (raw_spinlock_t *lock)
@@ -99,8 +99,8 @@ static inline void debug_spin_unlock(raw_spinlock_t *lock)SPIN_BUG_ON (lock->owner != current, lock,"wrong owner" );SPIN_BUG_ON (lock->owner_cpu !=raw_smp_processor_id (), lock,"wrong CPU" ); - lock->owner =SPINLOCK_OWNER_INIT ; - lock->owner_cpu =-1 ; +WRITE_ONCE (lock->owner,SPINLOCK_OWNER_INIT ); +WRITE_ONCE (lock->owner_cpu,-1 ); }/*
@@ -187,8 +187,8 @@ static inline void debug_write_lock_before(rwlock_t *lock)static inline void debug_write_lock_after (rwlock_t *lock) { - lock->owner_cpu =raw_smp_processor_id (); - lock->owner = current; +WRITE_ONCE (lock->owner_cpu,raw_smp_processor_id ()); +WRITE_ONCE (lock->owner, current); }static inline void debug_write_unlock (rwlock_t *lock)
@@ -197,8 +197,8 @@ static inline void debug_write_unlock(rwlock_t *lock)RWLOCK_BUG_ON (lock->owner != current, lock,"wrong owner" );RWLOCK_BUG_ON (lock->owner_cpu !=raw_smp_processor_id (), lock,"wrong CPU" ); - lock->owner =SPINLOCK_OWNER_INIT ; - lock->owner_cpu =-1 ; +WRITE_ONCE (lock->owner,SPINLOCK_OWNER_INIT ); +WRITE_ONCE (lock->owner_cpu,-1 ); }void do_raw_write_lock (rwlock_t *lock)
kernel/sched/psi.c +3 -2
@@ -185,7 +185,8 @@ static void group_init(struct psi_group *group)for_each_possible_cpu (cpu)seqcount_init (&per_cpu_ptr (group->pcpu, cpu)->seq); - group->avg_next_update =sched_clock () + psi_period; + group->avg_last_update =sched_clock (); + group->avg_next_update = group->avg_last_update + psi_period;INIT_DELAYED_WORK (&group->avgs_work, psi_avgs_work);mutex_init (&group->avgs_lock);/* Init trigger-related members */
@@ -481,7 +482,7 @@ static u64 window_update(struct psi_window *win, u64 now, u64 value)u32 remaining; remaining = win->size - elapsed; - growth +=div_u64 (win->prev_growth * remaining, win->size); + growth +=div64_u64 (win->prev_growth * remaining, win->size); }
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-stacktrace.tc +2 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/ftrace/func_cpumask.tc +5 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/functions +4 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc +3 -3
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-action-hist-xfail.tc +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onchange-action-hist.tc +1 -1
Lines of this file are not shown. View the raw message.
tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-snapshot-action-hist.tc +2 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/kselftest/prefix.pl +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/kselftest/runner.sh +1 -0
Lines of this file are not shown. View the raw message.
tools/testing/selftests/netfilter/nft_nat.sh +176 -156
332 lines not on this page · raw message
tools/testing/selftests/safesetid/Makefile +3 -2
Lines of this file are not shown. View the raw message.
tools/testing/selftests/safesetid/safesetid-test.c +10 -5
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.