Linux 6.1.54
Greg Kroah-Hartman
maintainerI'm announcing the release of the 6.1.54 kernel.
All users of the 6.1 kernel series must upgrade.
The updated 6.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.1.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/admin-guide/cgroup-v1/memory.rst | 2 Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml | 2 Documentation/mm/multigen_lru.rst | 8 Makefile | 4 arch/arc/include/asm/atomic-llsc.h | 6 arch/arc/include/asm/atomic64-arcv2.h | 6 arch/arm64/boot/dts/renesas/rzg2l-smarc-som.dtsi | 4 arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi | 2 arch/arm64/boot/dts/renesas/rzg2ul-smarc-som.dtsi | 4 arch/arm64/net/bpf_jit_comp.c | 9 arch/mips/Makefile | 6 arch/parisc/include/asm/led.h | 4 arch/sh/boards/mach-ap325rxa/setup.c | 2 arch/sh/boards/mach-ecovec24/setup.c | 6 arch/sh/boards/mach-kfr2r09/setup.c | 2 arch/sh/boards/mach-migor/setup.c | 2 arch/sh/boards/mach-se/7724/setup.c | 6 arch/x86/include/asm/virtext.h | 6 arch/x86/kvm/svm/avic.c | 59 ++ arch/x86/kvm/svm/nested.c | 9 arch/x86/kvm/svm/sev.c | 9 arch/x86/kvm/svm/svm.c | 35 + arch/x86/net/bpf_jit_comp.c | 19 block/blk-throttle.c | 99 ++-- drivers/ata/ahci.c | 2 drivers/ata/pata_falcon.c | 50 +- drivers/ata/pata_ftide010.c | 1 drivers/ata/sata_gemini.c | 1 drivers/block/null_blk/main.c | 12 drivers/bus/mhi/host/pm.c | 5 drivers/char/tpm/tpm_crb.c | 5 drivers/clk/imx/clk-pll14xx.c | 13 drivers/clk/qcom/camcc-sc7180.c | 2 drivers/clk/qcom/dispcc-sm8450.c | 13 drivers/clk/qcom/gcc-mdm9615.c | 2 drivers/clk/qcom/lpasscc-sc7280.c | 16 drivers/clk/qcom/mss-sc7180.c | 13 drivers/clk/qcom/q6sstop-qcs404.c | 15 drivers/clk/qcom/turingcc-qcs404.c | 13 drivers/clocksource/arm_arch_timer.c | 7 drivers/dma/sh/rz-dmac.c | 11 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 26 + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 7 drivers/gpu/drm/amd/display/dc/Makefile | 1 drivers/gpu/drm/amd/display/dc/core/dc.c | 68 +- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c | 5 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 11 drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 9 drivers/gpu/drm/ast/ast_post.c | 2 drivers/gpu/drm/i915/gt/intel_engine_types.h | 1 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 3 drivers/gpu/drm/i915/gvt/gtt.c | 27 - drivers/gpu/drm/i915/gvt/gtt.h | 1 drivers/gpu/drm/i915/i915_request.c | 7 drivers/gpu/drm/mxsfb/mxsfb_kms.c | 9 drivers/gpu/drm/virtio/virtgpu_ioctl.c | 30 - drivers/hwspinlock/qcom_hwspinlock.c | 9 drivers/input/keyboard/tca6416-keypad.c | 31 - drivers/input/misc/iqs7222.c | 8 drivers/mailbox/qcom-ipcc.c | 4 drivers/mtd/nand/raw/brcmnand/brcmnand.c | 112 +++- drivers/mtd/spi-nor/winbond.c | 5 drivers/net/dsa/sja1105/sja1105.h | 4 drivers/net/dsa/sja1105/sja1105_dynamic_config.c | 93 +-- drivers/net/dsa/sja1105/sja1105_main.c | 120 ++++- drivers/net/dsa/sja1105/sja1105_spi.c | 4 drivers/net/ethernet/adi/adin1110.c | 10 drivers/net/ethernet/cadence/macb.h | 4 drivers/net/ethernet/cadence/macb_main.c | 18 drivers/net/ethernet/google/gve/gve_rx_dqo.c | 5 drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 7 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 19 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 4 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 20 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 14 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 5 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 2 drivers/net/ethernet/intel/igb/igb.h | 4 drivers/net/ethernet/intel/igb/igb_main.c | 5 drivers/net/ethernet/intel/igbvf/igbvf.h | 4 drivers/net/ethernet/intel/igc/igc.h | 4 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c | 28 - drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 5 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 21 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 5 drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c | 26 - drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 10 drivers/net/usb/r8152.c | 3 drivers/net/veth.c | 4 drivers/parisc/led.c | 4 drivers/pinctrl/intel/pinctrl-cherryview.c | 5 drivers/platform/mellanox/Kconfig | 4 drivers/platform/mellanox/mlxbf-pmc.c | 41 - drivers/platform/mellanox/mlxbf-tmfifo.c | 90 ++- drivers/pwm/pwm-atmel-tcb.c | 70 +- drivers/pwm/pwm-lpc32xx.c | 16 drivers/s390/crypto/zcrypt_api.c | 1 drivers/scsi/qla2xxx/qla_attr.c | 2 drivers/scsi/qla2xxx/qla_dbg.c | 2 drivers/scsi/qla2xxx/qla_def.h | 21 drivers/scsi/qla2xxx/qla_dfs.c | 10 drivers/scsi/qla2xxx/qla_gbl.h | 1 drivers/scsi/qla2xxx/qla_init.c | 234 ++++++---- drivers/scsi/qla2xxx/qla_inline.h | 57 ++ drivers/scsi/qla2xxx/qla_iocb.c | 1 drivers/scsi/qla2xxx/qla_isr.c | 7 drivers/scsi/qla2xxx/qla_mbx.c | 7 drivers/scsi/qla2xxx/qla_nvme.c | 3 drivers/scsi/qla2xxx/qla_os.c | 26 - drivers/scsi/qla2xxx/qla_target.c | 14 drivers/soc/qcom/qmi_encdec.c | 4 drivers/video/backlight/gpio_backlight.c | 3 drivers/video/fbdev/ep93xx-fb.c | 1 drivers/watchdog/intel-mid_wdt.c | 1 fs/btrfs/disk-io.c | 5 fs/btrfs/extent-tree.c | 43 - fs/btrfs/inode.c | 7 fs/btrfs/relocation.c | 12 fs/btrfs/space-info.c | 6 fs/btrfs/transaction.c | 26 - fs/btrfs/zoned.c | 16 fs/ext4/balloc.c | 15 fs/ext4/block_validity.c | 8 fs/ext4/crypto.c | 4 fs/ext4/ext4.h | 2 fs/f2fs/f2fs.h | 24 - fs/f2fs/inline.c | 3 fs/f2fs/segment.c | 2 fs/fuse/readdir.c | 10 fs/gfs2/aops.c | 4 fs/gfs2/log.c | 25 - fs/jbd2/checkpoint.c | 22 fs/jbd2/recovery.c | 12 fs/nfs/direct.c | 20 fs/nfs/pnfs_dev.c | 2 fs/smb/client/cached_dir.c | 2 fs/smb/client/cifs_dfs_ref.c | 100 +--- fs/smb/client/cifsglob.h | 1 fs/smb/client/connect.c | 1 fs/smb/client/fscache.c | 2 fs/smb/client/smb2ops.c | 11 fs/smb/client/smb2pdu.c | 11 fs/smb/common/smb2pdu.h | 22 include/linux/bpf.h | 24 - include/linux/bpf_verifier.h | 13 include/linux/ipv6.h | 1 include/linux/micrel_phy.h | 6 include/linux/mm_inline.h | 4 include/linux/mmzone.h | 8 include/linux/skbuff.h | 8 include/linux/tca6416_keypad.h | 1 include/net/ip.h | 1 include/net/ip6_fib.h | 14 include/net/ip_fib.h | 5 include/net/ip_tunnels.h | 15 include/net/ipv6.h | 7 include/net/sock.h | 12 include/trace/events/fib.h | 5 include/trace/events/fib6.h | 5 io_uring/io-wq.c | 17 io_uring/io-wq.h | 3 io_uring/io_uring.c | 31 - io_uring/net.c | 8 io_uring/poll.c | 3 io_uring/sqpoll.c | 17 io_uring/sqpoll.h | 1 kernel/bpf/syscall.c | 7 kernel/bpf/trampoline.c | 81 ++- lib/idr.c | 2 lib/kunit/test.c | 3 lib/test_meminit.c | 2 lib/test_scanf.c | 2 mm/hugetlb_vmemmap.c | 34 - mm/memcontrol.c | 10 mm/vmscan.c | 50 +- net/core/flow_dissector.c | 3 net/core/skbuff.c | 49 -- net/core/skmsg.c | 12 net/core/sock.c | 19 net/ethtool/ioctl.c | 10 net/hsr/hsr_forward.c | 1 net/ipv4/devinet.c | 10 net/ipv4/fib_semantics.c | 5 net/ipv4/fib_trie.c | 3 net/ipv4/inet_hashtables.c | 43 - net/ipv4/ip_input.c | 3 net/ipv4/route.c | 1 net/ipv4/tcp_output.c | 2 net/ipv4/udp.c | 6 net/ipv6/addrconf.c | 2 net/ipv6/ip6_input.c | 3 net/ipv6/route.c | 3 net/kcm/kcmsock.c | 15 net/mptcp/protocol.c | 23 net/netfilter/nfnetlink_osf.c | 8 net/netfilter/nft_exthdr.c | 22 net/sched/sch_fq_pie.c | 27 - net/sched/sch_plug.c | 2 net/sched/sch_qfq.c | 22 net/sctp/proc.c | 2 net/sctp/socket.c | 10 net/smc/smc_core.c | 2 net/tls/tls_sw.c | 4 net/unix/af_unix.c | 2 net/unix/scm.c | 6 net/xdp/xsk_diag.c | 3 scripts/kconfig/preprocess.c | 3 scripts/package/mkspec | 2 sound/soc/tegra/tegra210_sfc.c | 31 + sound/soc/tegra/tegra210_sfc.h | 4 tools/perf/builtin-top.c | 1 tools/perf/builtin-trace.c | 15 tools/perf/pmu-events/arch/powerpc/power10/cache.json | 4 tools/perf/pmu-events/arch/powerpc/power10/floating_point.json | 7 tools/perf/pmu-events/arch/powerpc/power10/frontend.json | 30 - tools/perf/pmu-events/arch/powerpc/power10/marked.json | 30 - tools/perf/pmu-events/arch/powerpc/power10/memory.json | 6 tools/perf/pmu-events/arch/powerpc/power10/metrics.json | 6 tools/perf/pmu-events/arch/powerpc/power10/others.json | 53 +- tools/perf/pmu-events/arch/powerpc/power10/pipeline.json | 30 - tools/perf/pmu-events/arch/powerpc/power10/pmc.json | 4 tools/perf/pmu-events/arch/powerpc/power10/translation.json | 11 tools/perf/tests/shell/stat_bpf_counters.sh | 4 tools/perf/tests/shell/stat_bpf_counters_cgrp.sh | 28 - tools/perf/ui/browsers/hists.c | 60 +- tools/perf/util/annotate.c | 10 tools/perf/util/header.c | 11 tools/testing/selftests/kselftest/runner.sh | 3 tools/testing/selftests/lib.mk | 4 231 files changed, 2115 insertions(+), 1328 deletions(-)
Ahmad Fatoum (1):
clk: imx: pll14xx: dynamically configure PLL for 393216000/361267200Hz
Alex Henrie (1):
net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
Anand Jain (1):
btrfs: use the correct superblock to compare fsid in btrfs_validate_super
Andreas Gruenbacher (2):
gfs2: Switch to wait_event in gfs2_logd
gfs2: low-memory forced flush fixes
Andrew Donnellan (1):
lib/test_meminit: allocate pages up to order MAX_ORDER
Andrzej Hajda (1):
drm/i915: mark requests for GuC virtual engines to avoid use-after-free
Andy Shevchenko (1):
s390/zcrypt: don't leak memory if dev_set_name() fails
Ariel Marcovitch (1):
idr: fix param name in idr_alloc_cyclic() doc
Arnaldo Carvalho de Melo (4):
perf trace: Use zfree() to reduce chances of use after free perf trace: Really free the evsel->priv area
perf annotate bpf: Don't enclose non-debug code with an assert() perf top: Don't pass an ERR_PTR() directly to perf_session__delete()
Bharath SM (1):
cifs: update desired access while requesting for directory lease
Björn Töpel (2):
kselftest/runner.sh: Propagate SIGTERM to runner child
selftests: Keep symlinks, when possible
Boris Burkov (2):
btrfs: fix start transaction qgroup rsv double free
btrfs: free qgroup rsv on io failure
Chengming Zhou (1):
null_blk: fix poll request timeout handling
Chris Lew (1):
soc: qcom: qmi_encdec: Restrict string length in decode
Chris Paterson (1):
arm64: dts: renesas: rzg2l: Fix txdv-skew-psec typos
Christian Marangi (1):
hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation
Christophe JAILLET (1):
tpm_crb: Fix an error handling path in crb_acpi_add()
Ciprian Regus (1):
net:ethernet:adi:adin1110: Fix forwarding offload
Corinna Vinschen (1):
igb: disable virtualization features on 82580
Damien Le Moal (2):
ata: sata_gemini: Add missing MODULE_DESCRIPTION
ata: pata_ftide010: Add missing MODULE_DESCRIPTION
Dmitry Baryshkov (1):
clk: qcom: gcc-mdm9615: use proper parent for pll0_vote clock
Dmitry Torokhov (2):
Input: tca6416-keypad - always expect proper IRQ number in i2c client
Input: tca6416-keypad - fix interrupt enable disbalance
Eric Dumazet (14):
net: add SKB_HEAD_ALIGN() helper
net: remove osize variable in __alloc_skb()
net: factorize code in kmalloc_reserve()
net: deal with integer overflows in kmalloc_reserve() net/sched: fq_pie: avoid stalls in fq_pie_timer()
sctp: annotate data-races around sk->sk_wmem_queued
ipv4: annotate data-races around fi->fib_dead
net: read sk->sk_family once in sk_mc_loop()
net: use sk_forward_alloc_get() in sk_get_meminfo()
net: annotate data-races around sk->sk_forward_alloc
mptcp: annotate data-races around msk->rmem_fwd_alloc
gve: fix frag_list chaining
ip_tunnels: use DEV_STATS_INC()
ipv6: fix ip6_sock_set_addr_preferences() typo
Fedor Pchelkin (1):
NFSv4/pnfs: minor fix for cleanup path in nfs4_get_device_info
Filipe Manana (1):
btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
Florian Westphal (2):
net: fib: avoid warn splat in flow dissector
netfilter: nftables: exthdr: fix 4-byte stack OOB write
Gabe Teeger (1):
drm/amd/display: Remove wait while locked
Geert Uytterhoeven (1):
platform/mellanox: NVSW_SN2201 should depend on ACPI
Geetha sowjanya (1):
octeontx2-af: Fix truncation of smq in CN10K NIX AQ enqueue mbox handler
Greg Kroah-Hartman (1):
Linux 6.1.54
Guangguan Wang (1):
net/smc: use smc_lgr_list.lock to protect smc_lgr_list.list iterate in smcr_port_add
Gurchetan Singh (1):
drm/virtio: Conditionally allocate virtio_gpu_fence
Hamza Mahfooz (2):
drm/amd/display: prevent potential division by zero errors drm/amdgpu: register a dirty framebuffer callback for fbcon
Hangyu Hua (2):
net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
Hao Chen (2):
net: hns3: fix byte order conversion issue in hclge_dbg_fd_tcam_read()
net: hns3: fix debugfs concurrency issue between kfree buffer and read
Harini Katakam (1):
net: macb: Enable PTP unicast
Hayes Wang (1):
r8152: check budget for r8152_poll()
Helge Deller (2):
parisc: led: Fix LAN receive and transmit LEDs
parisc: led: Reduce CPU overhead for disk & lan LED computation
Hien Huynh (1):
dmaengine: sh: rz-dmac: Fix destination and source data size setting
Jaegeuk Kim (2):
f2fs: flush inode if atomic file is aborted
f2fs: avoid false alarm of circular locking
Jeff LaBundy (1):
Input: iqs7222 - configure power mode before triggering ATI
Jian Shen (1):
net: hns3: fix tx timeout issue
Jie Wang (1):
net: hns3: remove GSO partial feature bit
Jijie Shao (1):
net: hns3: fix invalid mutex between tc qdisc and dcb ets command issue
Jinjie Ruan (1):
kunit: Fix wild-memory-access bug in kunit_free_suite_set()
Johan Hovold (6):
clk: qcom: camcc-sc7180: fix async resume during probe
clk: qcom: turingcc-qcs404: fix missing resume during probe
clk: qcom: dispcc-sm8450: fix runtime PM imbalance on probe errors
clk: qcom: lpasscc-sc7280: fix missing resume during probe
clk: qcom: q6sstop-qcs404: fix missing resume during probe
clk: qcom: mss-sc7180: fix missing resume during probe
John Fastabend (1):
bpf, sockmap: Fix skb refcnt race after locking changes
Jonathan Marek (1):
mailbox: qcom-ipcc: fix incorrect num_chans counting
Josef Bacik (1):
btrfs: set page extent mapped after read_folio in relocate_one_page
Kajol Jain (4):
perf vendor events: Update the JSON/events descriptions for power10 platform perf vendor events: Drop some of the JSON/events for power10 platform perf vendor events: Drop STORES_PER_INST metric event for power10 platform perf test stat_bpf_counters_cgrp: Fix shellcheck issue about logical operators
Kalesh Singh (2):
Multi-gen LRU: fix per-zone reclaim
Multi-gen LRU: avoid race in inc_min_seq()
Katya Orlova (1):
smb: propagate error code of extract_sharename()
Konstantin Meskhidze (1):
kconfig: fix possible buffer overflow
Krzysztof Kozlowski (1):
dt-bindings: clock: xlnx,versal-clk: drop select:false
Kuniyuki Iwashima (9):
af_unix: Fix data-races around user->unix_inflight.
af_unix: Fix data-race around unix_tot_inflight.
af_unix: Fix data-races around sk->sk_shutdown.
af_unix: Fix data race around sk->sk_err.
ipv6: Remove in6addr_any alternatives.
tcp: Factorise sk_family-independent comparison in inet_bind2_bucket_match(_addr_any).
tcp: Fix bind() regression for v4-mapped-v6 wildcard address.
tcp: Fix bind() regression for v4-mapped-v6 non-wildcard address.
kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg().
Liang Chen (1):
veth: Fixing transmit return status for dropped packets
Liming Sun (2):
platform/mellanox: mlxbf-tmfifo: Drop the Rx packet if no more descriptors platform/mellanox: mlxbf-tmfifo: Drop jumbo frames
Linus Walleij (1):
mtd: spi-nor: Correct flags for Winbond w25q128
Liu Jian (2):
net: ipv4: fix one memleak in __inet_del_ifa()
net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict()
Liu Ying (1):
drm/mxsfb: Disable overlay plane in mxsfb_plane_overlay_atomic_disable()
Luís Henriques (1):
ext4: fix memory leaks in ext4_fname_{setup_filename,prepare_lookup}Maciej W. Rozycki (2):
MIPS: Fix CONFIG_CPU_DADDI_WORKAROUNDS `modules_install' regression
MIPS: Only fiddle with CHECKFLAGS if `need-compiler'
Magnus Karlsson (1):
xsk: Fix xsk_diag use-after-free error during socket cleanup
Manish Rangankar (1):
scsi: qla2xxx: Remove unsupported ql2xenabledif option
Marco Felsch (1):
clk: imx: pll14xx: align pdiv with reference manual
Martin KaFai Lau (1):
bpf: Remove prog->active check for bpf_lsm and bpf_iter
Masahiro Yamada (2):
kbuild: rpm-pkg: define _arch conditionally
kbuild: do not run depmod for 'make modules_sign'
Melissa Wen (1):
drm/amd/display: enable cursor degamma for DCN3+ DRM legacy gamma
Michael Schmitz (1):
ata: pata_falcon: fix IO base selection for Q40
Michal Hocko (1):
memcg: drop kmem.limit_in_bytes
Muchun Song (1):
mm: hugetlb_vmemmap: fix a race between vmemmap pmd split
Namhyung Kim (5):
perf test stat_bpf_counters_cgrp: Enhance perf stat cgroup BPF counter test perf hists browser: Fix hierarchy mode header
perf test shell stat_bpf_counters: Fix test on Intel
perf tools: Handle old data in PERF_RECORD_ATTR
perf hists browser: Fix the number of entries for 'e' key
Naohiro Aota (2):
btrfs: zoned: do not zone finish data relocation block group
btrfs: zoned: re-enable metadata over-commit for zoned mode
Nathan Chancellor (1):
lib: test_scanf: Add explicit type cast to result initialization in test_number_prefix()
Nilesh Javali (1):
scsi: qla2xxx: Fix smatch warn for qla_init_iocb_limit()
Oleksij Rempel (1):
net: phy: micrel: Correct bit assignments for phy_device flags
Olga Zaborska (3):
igc: Change IGC_MIN to allow set rx/tx value between 64 and 80
igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80
igb: Change IGB_MIN to allow set rx/tx value between 64 and 80
Paulo Alcantara (1):
cifs: use fs_context for automounts
Pavel Begunkov (6):
io_uring: always lock in io_apoll_task_func
io_uring: revert "io_uring fix multishot accept ordering" io_uring/net: don't overflow multishot accept
io_uring: break out of iowq iopoll on teardown io_uring/sqpoll: fix io-wq affinity when IORING_SETUP_SQPOLL is used
io_uring: Don't set affinity on a dying sqpoll thread
Pavel Kozlov (1):
ARC: atomics: Add compiler barrier to atomic operations...
Petr Tesarik (1):
sh: boards: Fix CEU buffer size passed to dma_declare_coherent_memory()
Qiang Yu (1):
bus: mhi: host: Skip MHI reset if device is in RDDM
Quan Tian (1):
net/ipv6: SKB symmetric hash should incorporate transport ports
Quinn Tran (12):
scsi: qla2xxx: Adjust IOCB resource on qpair create
scsi: qla2xxx: Limit TMF to 8 per function
scsi: qla2xxx: Fix deletion race condition
scsi: qla2xxx: fix inconsistent TMF timeout
scsi: qla2xxx: Fix command flush during TMF
scsi: qla2xxx: Fix erroneous link up failure
scsi: qla2xxx: Turn off noisy message log
scsi: qla2xxx: Fix session hang in gnl
scsi: qla2xxx: Fix TMF leak through
scsi: qla2xxx: Flush mailbox commands on chip reset
scsi: qla2xxx: Error code did not return to upper layer
scsi: qla2xxx: Fix firmware resource tracking
Raag Jadav (2):
pinctrl: cherryview: fix address_space_handler() argument
watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load
Saeed Mahameed (1):
net/mlx5: Free IRQ rmap and notifier on kernel shutdown
Sascha Hauer (1):
net: macb: fix sleep inside spinlock
Sean Christopherson (11):
x86/virt: Drop unnecessary check on extended CPUID level in cpu_has_svm() drm/i915/gvt: Verify pfn is "valid" before dereferencing "struct page" drm/i915/gvt: Put the page reference obtained by KVM's gfn_to_pfn() drm/i915/gvt: Drop unused helper intel_vgpu_reset_gtt()
KVM: SVM: Take and hold ir_list_lock when updating vCPU's Physical ID entry
KVM: SVM: Don't inject #UD if KVM attempts to skip SEV guest insn
KVM: SVM: Get source vCPUs from source VM for SEV-ES intrahost migration
KVM: nSVM: Check instead of asserting on nested TSC scaling support
KVM: nSVM: Load L1's TSC multiplier based on L1 state, not L2 state
KVM: SVM: Set target pCPU during IRTE update if target vCPU is running
KVM: SVM: Skip VMSA init in sev_es_init_vmcb() if pointer is NULL
Sebastian Andrzej Siewior (2):
bpf: Invoke __bpf_prog_exit_sleepable_recur() on recursion in kern_sys_bpf().
bpf: Assign bpf_tramp_run_ctx::saved_run_ctx before recursion check.
Sheetal (1):
ASoC: tegra: Fix SFC conversion for few rates
Shigeru Yoshida (2):
kcm: Destroy mutex in kcm_exit_net()
kcm: Fix memory leak in error path of kcm_sendmsg()
Shravan Kumar Ramani (2):
platform/mellanox: mlxbf-pmc: Fix potential buffer overflows platform/mellanox: mlxbf-pmc: Fix reading of unprogrammed events
Sriram Yagnaraman (2):
ipv4: ignore dst hint for multipath routes
ipv6: ignore dst hint for multipath routes
Steve French (1):
send channel sequence number in SMB3 requests after reconnects
Thomas Zimmermann (2):
fbdev/ep93xx-fb: Do not assign to struct fb_info.dev drm/ast: Fix DRAM init on AST2200
Trond Myklebust (1):
NFS: Fix a potential data corruption
Uwe Kleine-König (3):
pwm: atmel-tcb: Convert to platform remove callback returning void
pwm: atmel-tcb: Harmonize resource allocation order
pwm: atmel-tcb: Fix resource freeing in error path and remove
Vadim Fedorenko (1):
ixgbe: fix timestamp configuration code
Vincent Whitchurch (1):
net: stmmac: fix handling of zero coalescing tx-usecs
Vladimir Oltean (8):
net: dsa: sja1105: fix bandwidth discrepancy between tc-cbs software and offload
net: dsa: sja1105: fix -ENOSPC when replacing the same tc-cbs too many times
net: dsa: sja1105: complete tc-cbs offload support on SJA1110
net: dsa: sja1105: hide all multicast addresses from "bridge fdb show"
net: dsa: sja1105: propagate exact error code from sja1105_dynamic_config_poll_valid()
net: dsa: sja1105: fix multicast forwarding working only for last added mdb entry
net: dsa: sja1105: serialize sja1105_port_mcast_flood() with other FDB accesses
net: dsa: sja1105: block FDB accesses that are concurrent with a switch reset
Vladimir Zapolskiy (1):
pwm: lpc32xx: Remove handling of PWM channels
Walter Chang (1):
clocksource/drivers/arm_arch_timer: Disable timer before programming CVAL
Wander Lairson Costa (1):
netfilter: nfnetlink_osf: avoid OOB read
Wang Jianjian (1):
ext4: add correct group descriptors and reserved GDT blocks to system zone
Wenjing Liu (1):
drm/amd/display: always switch off ODM before committing more streams
Werner Fischer (1):
ata: ahci: Add Elkhart Lake AHCI controller
Wesley Chalmers (1):
drm/amd/display: Fix a bug when searching for insert_above_mpcc
William Zhang (4):
mtd: rawnand: brcmnand: Fix crash during the panic_write
mtd: rawnand: brcmnand: Fix potential out-of-bounds access in oob write
mtd: rawnand: brcmnand: Fix potential false time out warning
mtd: rawnand: brcmnand: Fix ECC level field setting for v7.2 controller
Yang Yingliang (1):
net: ethernet: adi: adin1110: use eth_broadcast_addr() to assign broadcast address
Ying Liu (1):
backlight: gpio_backlight: Drop output GPIO direction check for initial power state
Yisen Zhuang (1):
net: hns3: fix the port information display when sfp is absent
Yu Kuai (2):
blk-throttle: use calculate_io/bytes_allowed() for throtl_trim_slice()
blk-throttle: consider 'carryover_ios/bytes' in throtl_trim_slice()
Yu Zhao (1):
mm: multi-gen LRU: rename lrugen->lists[] to lrugen->folios[]
Zhang Yi (2):
jbd2: fix checkpoint cleanup performance regression
jbd2: correct the end of the journal recovery scan range
Zhihao Cheng (1):
jbd2: check 'jh->b_transaction' before removing it from checkpoint
Ziyang Xuan (1):
hsr: Fix uninit-value access in fill_frame_info()
ruanmeisi (1):
fuse: nlookup missing decrement in fuse_direntplus_link
valis (1):
net: sched: sch_qfq: Fix UAF in qfq_dequeue()
Greg Kroah-Hartman
maintainerDocumentation/admin-guide/cgroup-v1/memory.rst +0 -2
@@ -91,8 +91,6 @@ Brief summary of control files. memory.oom_control set/show oom controls. memory.numa_stat show the number of memory usage per numa node - memory.kmem.limit_in_bytes This knob is deprecated and writing to - it will return -ENOTSUPP. memory.kmem.usage_in_bytes show current kernel memory allocation memory.kmem.failcnt show the number of kernel memory usage hits limits
Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml +0 -2
@@ -16,8 +16,6 @@ description: | reads required input clock frequencies from the devicetree and acts as clock provider for all clock consumers of PS clocks. -select: false - properties: compatible: const: xlnx,versal-clk
Documentation/mm/multigen_lru.rst +4 -4
@@ -89,15 +89,15 @@ variables are monotonically increasing. Generation numbers are truncated into ``order_base_2(MAX_NR_GENS+1)`` bits in order to fit into the gen counter in ``folio->flags``. Each -truncated generation number is an index to ``lrugen->lists[]``. The +truncated generation number is an index to ``lrugen->folios[]``. The sliding window technique is used to track at least ``MIN_NR_GENS`` and at most ``MAX_NR_GENS`` generations. The gen counter stores a value within ``[1, MAX_NR_GENS]`` while a page is on one of -``lrugen->lists[]``; otherwise it stores zero. +``lrugen->folios[]``; otherwise it stores zero. Each generation is divided into multiple tiers. A page accessed ``N`` times through file descriptors is in tier ``order_base_2(N)``. Unlike -generations, tiers do not have dedicated ``lrugen->lists[]``. In +generations, tiers do not have dedicated ``lrugen->folios[]``. In contrast to moving across generations, which requires the LRU lock, moving across tiers only involves atomic operations on ``folio->flags`` and therefore has a negligible cost. A feedback loop
@@ -127,7 +127,7 @@ page mapped by this PTE to ``(max_seq%MAX_NR_GENS)+1``. Eviction -------- The eviction consumes old generations. Given an ``lruvec``, it -increments ``min_seq`` when ``lrugen->lists[]`` indexed by +increments ``min_seq`` when ``lrugen->folios[]`` indexed by ``min_seq%MAX_NR_GENS`` becomes empty. To select a type and a tier to evict from, it first compares ``min_seq[]`` to select the older type. If both types are equally old, it selects the one whose first tier has
Makefile +3 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 6 PATCHLEVEL = 1 -SUBLEVEL = 53 +SUBLEVEL = 54 EXTRAVERSION = NAME = Curry Ramen
@@ -1939,7 +1939,9 @@ quiet_cmd_depmod = DEPMOD $(MODLIB) modules_install: $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst +ifndef modules_sign_only $(call cmd,depmod) +endif else # CONFIG_MODULES
arch/arc/include/asm/atomic-llsc.h +3 -3
@@ -18,7 +18,7 @@ static inline void arch_atomic_##op(int i, atomic_t *v) \ : [val] "=&r" (val) /* Early clobber to prevent reg reuse */ \: [ctr] " r" (&v->counter), /* Not " m": llock only supports reg direct addr mode */ \ [i] " ir" (i) \ - : "cc"); \ + : "cc", "memory"); \ } \ #define ATOMIC_OP_RETURN(op, asm_op) \
@@ -34,7 +34,7 @@ static inline int arch_atomic_##op##_return_relaxed(int i, atomic_t *v) \ : [val] "=&r" (val) \: [ctr] " r" (&v->counter), \ [i] " ir" (i) \ -: " cc"); \ +: " cc", " memory"); \ \ return val; \ }
@@ -56,7 +56,7 @@ static inline int arch_atomic_fetch_##op##_relaxed(int i, atomic_t *v) \ [orig] "=&r" (orig) \: [ctr] " r" (&v->counter), \ [i] " ir" (i) \ -: " cc"); \ +: " cc", " memory"); \ \ return orig; \ }
arch/arc/include/asm/atomic64-arcv2.h +3 -3
@@ -60,7 +60,7 @@ static inline void arch_atomic64_##op(s64 a, atomic64_t *v) \" bnz 1b \n" \ : "=&r"(val) \: " r"(&v->counter), " ir"(a) \ - : "cc"); \ + : "cc", "memory"); \ } \ #define ATOMIC64_OP_RETURN(op, op1, op2) \
@@ -77,7 +77,7 @@ static inline s64 arch_atomic64_##op##_return_relaxed(s64 a, atomic64_t *v) \" bnz 1b \n" \ : [val] "=&r"(val) \: " r"(&v->counter), " ir"(a) \ -: " cc"); /* memory clobber comes from smp_mb() */ \ +: " cc", " memory"); \ \ return val; \ }
@@ -99,7 +99,7 @@ static inline s64 arch_atomic64_fetch_##op##_relaxed(s64 a, atomic64_t *v) \ " bnz 1b \n" \ : "=&r"(orig), "=&r"(val) \ : "r"(&v->counter), "ir"(a) \ - : "cc"); /* memory clobber comes from smp_mb() */ \ + : "cc", "memory"); \ \return orig; \ }
arch/arm64/boot/dts/renesas/rzg2l-smarc-som.dtsi +2 -2
@@ -100,7 +100,7 @@ phy0: ethernet-phy@7 { rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; - txdv-skew-psec = <0>; + txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>;
@@ -128,7 +128,7 @@ phy1: ethernet-phy@7 { rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; - txdv-skew-psec = <0>; + txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>;
arch/arm64/boot/dts/renesas/rzg2lc-smarc-som.dtsi +1 -1
@@ -77,7 +77,7 @@ phy0: ethernet-phy@7 { rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; - txdv-skew-psec = <0>; + txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>;
arch/arm64/boot/dts/renesas/rzg2ul-smarc-som.dtsi +2 -2
@@ -80,7 +80,7 @@ phy0: ethernet-phy@7 { rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; - txdv-skew-psec = <0>; + txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>;
@@ -107,7 +107,7 @@ phy1: ethernet-phy@7 { rxc-skew-psec = <2400>; txc-skew-psec = <2400>; rxdv-skew-psec = <0>; - txdv-skew-psec = <0>; + txen-skew-psec = <0>; rxd0-skew-psec = <0>; rxd1-skew-psec = <0>; rxd2-skew-psec = <0>;
arch/arm64/net/bpf_jit_comp.c +2 -7
@@ -1655,13 +1655,8 @@ static void invoke_bpf_prog(struct jit_ctx *ctx, struct bpf_tramp_link *l,struct bpf_prog *p = l->link.prog;int cookie_off = offsetof(struct bpf_tramp_run_ctx , bpf_cookie); -if (p->aux->sleepable) { - enter_prog = (u64 )__bpf_prog_enter_sleepable; - exit_prog = (u64 )__bpf_prog_exit_sleepable; - }else { - enter_prog = (u64 )__bpf_prog_enter; - exit_prog = (u64 )__bpf_prog_exit; - } + enter_prog = (u64 )bpf_trampoline_enter (p); + exit_prog = (u64 )bpf_trampoline_exit (p);if (l->cookie ==0 ) {/* if cookie is zero, one instruction is enough to store it */
arch/mips/Makefile +3 -3
@@ -308,8 +308,8 @@ ifdef CONFIG_64BIT endif endif - ifeq ($(KBUILD_SYM32)$(call cc-option-yn,-msym32), yy) - cflags-y += -msym32 -DKBUILD_64BIT_SYM32 + ifeq ($(KBUILD_SYM32), y) + cflags-$(KBUILD_SYM32) += -msym32 -DKBUILD_64BIT_SYM32 else ifeq ($(CONFIG_CPU_DADDI_WORKAROUNDS), y) $(error CONFIG_CPU_DADDI_WORKAROUNDS unsupported without -msym32)
@@ -350,7 +350,7 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_LDFLAGS += -m $(ld-emul) -ifdef CONFIG_MIPS +ifdef need-compiler CHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -x c /dev/null | \ egrep -vw '__GNUC_(MINOR_|PATCHLEVEL_)?_' | \ sed -e "s/^\#define /-D'/" -e "s/ /'='/" -e "s/$$/'/" -e 's/\$$/&&/g')
arch/parisc/include/asm/led.h +2 -2
@@ -11,8 +11,8 @@#define LED1 0x02#define LED0 0x01/* bottom (or furthest left) LED */ -#define LED_LAN_TX LED0/* for LAN transmit activity */ -#define LED_LAN_RCV LED1/* for LAN receive activity */ +#define LED_LAN_RCV LED0/* for LAN receive activity */ +#define LED_LAN_TX LED1/* for LAN transmit activity */ #define LED_DISK_IO LED2/* for disk activity */ #define LED_HEARTBEAT LED3/* heartbeat */
arch/sh/boards/mach-ap325rxa/setup.c +1 -1
@@ -530,7 +530,7 @@ static int __init ap325rxa_devices_setup(void)device_initialize (&ap325rxa_ceu_device.dev);dma_declare_coherent_memory (&ap325rxa_ceu_device.dev, ceu_dma_membase, ceu_dma_membase, - ceu_dma_membase +CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (&ap325rxa_ceu_device);
arch/sh/boards/mach-ecovec24/setup.c +2 -4
@@ -1454,15 +1454,13 @@ static int __init arch_setup(void)device_initialize (&ecovec_ceu_devices[0 ]->dev);dma_declare_coherent_memory (&ecovec_ceu_devices[0 ]->dev, ceu0_dma_membase, ceu0_dma_membase, - ceu0_dma_membase + -CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (ecovec_ceu_devices[0 ]);device_initialize (&ecovec_ceu_devices[1 ]->dev);dma_declare_coherent_memory (&ecovec_ceu_devices[1 ]->dev, ceu1_dma_membase, ceu1_dma_membase, - ceu1_dma_membase + -CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (ecovec_ceu_devices[1 ]);gpiod_add_lookup_table (&cn12_power_gpiod_table);
arch/sh/boards/mach-kfr2r09/setup.c +1 -1
@@ -603,7 +603,7 @@ static int __init kfr2r09_devices_setup(void)device_initialize (&kfr2r09_ceu_device.dev);dma_declare_coherent_memory (&kfr2r09_ceu_device.dev, ceu_dma_membase, ceu_dma_membase, - ceu_dma_membase +CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (&kfr2r09_ceu_device);
arch/sh/boards/mach-migor/setup.c +1 -1
@@ -604,7 +604,7 @@ static int __init migor_devices_setup(void)device_initialize (&migor_ceu_device.dev);dma_declare_coherent_memory (&migor_ceu_device.dev, ceu_dma_membase, ceu_dma_membase, - ceu_dma_membase +CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (&migor_ceu_device);
arch/sh/boards/mach-se/7724/setup.c +2 -4
@@ -940,15 +940,13 @@ static int __init devices_setup(void)device_initialize (&ms7724se_ceu_devices[0 ]->dev);dma_declare_coherent_memory (&ms7724se_ceu_devices[0 ]->dev, ceu0_dma_membase, ceu0_dma_membase, - ceu0_dma_membase + -CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (ms7724se_ceu_devices[0 ]);device_initialize (&ms7724se_ceu_devices[1 ]->dev);dma_declare_coherent_memory (&ms7724se_ceu_devices[1 ]->dev, ceu1_dma_membase, ceu1_dma_membase, - ceu1_dma_membase + -CEU_BUFFER_MEMORY_SIZE -1 ); +CEU_BUFFER_MEMORY_SIZE );platform_device_add (ms7724se_ceu_devices[1 ]); return platform_add_devices(ms7724se_devices,
arch/x86/include/asm/virtext.h +0 -6
@@ -101,12 +101,6 @@ static inline int cpu_has_svm(const char **msg)return 0 ; } -if (boot_cpu_data.extended_cpuid_level <SVM_CPUID_FUNC ) { -if (msg) - *msg ="can't execute cpuid_8000000a" ; -return 0 ; - } -if (!boot_cpu_has (X86_FEATURE_SVM )) {if (msg) *msg ="svm not available" ;
arch/x86/kvm/svm/avic.c +51 -8
129 lines not on this page · raw message
arch/x86/kvm/svm/nested.c +4 -5
@@ -660,10 +660,9 @@ static void nested_vmcb02_prepare_control(struct vcpu_svm *svm, vmcb02->control.tsc_offset = vcpu->arch.tsc_offset; -if (svm->tsc_ratio_msr != kvm_caps.default_tsc_scaling_ratio) { -WARN_ON (!svm->tsc_scaling_enabled); +if (svm->tsc_scaling_enabled && + svm->tsc_ratio_msr != kvm_caps.default_tsc_scaling_ratio)nested_svm_update_tsc_ratio_msr (vcpu); - } vmcb02->control.int_ctl = (svm->nested.ctl.int_ctl & int_ctl_vmcb12_bits) |
@@ -1022,8 +1021,8 @@ int nested_svm_vmexit(struct vcpu_svm *svm)vmcb_mark_dirty (vmcb01,VMCB_INTERCEPTS ); } -if (svm->tsc_ratio_msr != kvm_caps.default_tsc_scaling_ratio) { -WARN_ON (!svm->tsc_scaling_enabled); +if (kvm_caps.has_tsc_control && + vcpu->arch.tsc_scaling_ratio != vcpu->arch.l1_tsc_scaling_ratio) { vcpu->arch.tsc_scaling_ratio = vcpu->arch.l1_tsc_scaling_ratio;__svm_write_tsc_multiplier (vcpu->arch.tsc_scaling_ratio); }
arch/x86/kvm/svm/sev.c +6 -3
@@ -1723,7 +1723,7 @@ static void sev_migrate_from(struct kvm *dst_kvm, struct kvm *src_kvm)* Note, the source is not required to have the same number of * vCPUs as the destination when migrating a vanilla SEV VM. */ - src_vcpu =kvm_get_vcpu (dst_kvm, i); + src_vcpu =kvm_get_vcpu (src_kvm, i); src_svm =to_svm (src_vcpu);/*
@@ -2951,9 +2951,12 @@ static void sev_es_init_vmcb(struct vcpu_svm *svm)/* * An SEV-ES guest requires a VMSA area that is a separate from the * VMCB page. Do not include the encryption mask on the VMSA physical -* address since hardware will access it using the guest key. +* address since hardware will access it using the guest key. Note, +* the VMSA will be NULL if this vCPU is the destination for intrahost +* migration, and will be copied later. */ - svm->vmcb->control.vmsa_pa =__pa (svm->sev_es.vmsa); +if (svm->sev_es.vmsa) + svm->vmcb->control.vmsa_pa =__pa (svm->sev_es.vmsa);/* Can't intercept CR register access, HV can't modify CR registers */ svm_clr_intercept (svm,INTERCEPT_CR0_READ );
arch/x86/kvm/svm/svm.c +27 -8
@@ -366,6 +366,8 @@ static void svm_set_interrupt_shadow(struct kvm_vcpu *vcpu, int mask) svm->vmcb->control.int_state |=SVM_INTERRUPT_SHADOW_MASK ; } +static bool svm_can_emulate_instruction (struct kvm_vcpu *vcpu,int emul_type, +void *insn,int insn_len);static int __svm_skip_emulated_instruction (struct kvm_vcpu *vcpu,bool commit_side_effects)
@@ -386,6 +388,14 @@ static int __svm_skip_emulated_instruction(struct kvm_vcpu *vcpu, }if (!svm->next_rip) { +/* +* FIXME: Drop this when kvm_emulate_instruction() does the +* right thing and treats "can't emulate" as outright failure +* for EMULTYPE_SKIP. +*/ +if (!svm_can_emulate_instruction (vcpu,EMULTYPE_SKIP ,NULL ,0 )) +return 0 ; +if (unlikely (!commit_side_effects)) old_rflags = svm->vmcb->save.rflags;
@@ -4592,16 +4602,25 @@ static bool svm_can_emulate_instruction(struct kvm_vcpu *vcpu, int emul_type,* and cannot be decrypted by KVM, i.e. KVM would read cyphertext and * decode garbage. * -* Inject #UD if KVM reached this point without an instruction buffer. -* In practice, this path should never be hit by a well-behaved guest, -* e.g. KVM doesn't intercept #UD or #GP for SEV guests, but this path -* is still theoretically reachable, e.g. via unaccelerated fault-like -* AVIC access, and needs to be handled by KVM to avoid putting the -* guest into an infinite loop. Injecting #UD is somewhat arbitrary, -* but its the least awful option given lack of insight into the guest. +* If KVM is NOT trying to simply skip an instruction, inject #UD if +* KVM reached this point without an instruction buffer. In practice, +* this path should never be hit by a well-behaved guest, e.g. KVM +* doesn't intercept #UD or #GP for SEV guests, but this path is still +* theoretically reachable, e.g. via unaccelerated fault-like AVIC +* access, and needs to be handled by KVM to avoid putting the guest +* into an infinite loop. Injecting #UD is somewhat arbitrary, but +* its the least awful option given lack of insight into the guest. +* +* If KVM is trying to skip an instruction, simply resume the guest. +* If a #NPF occurs while the guest is vectoring an INT3/INTO, then KVM +* will attempt to re-inject the INT3/INTO and skip the instruction. +* In that scenario, retrying the INT3/INTO and hoping the guest will +* make forward progress is the only option that has a chance of +* success (and in practice it will work the vast majority of the time). */ if (unlikely (!insn)) { -kvm_queue_exception (vcpu,UD_VECTOR ); +if (!(emul_type &EMULTYPE_SKIP )) +kvm_queue_exception (vcpu,UD_VECTOR );return false; }
arch/x86/net/bpf_jit_comp.c +2 -17
@@ -1813,10 +1813,6 @@ static int invoke_bpf_prog(const struct btf_func_model *m, u8 **pprog, struct bpf_tramp_link *l, int stack_size, int run_ctx_off, bool save_ret) { - void (*exit)(struct bpf_prog *prog, u64 start, -struct bpf_tramp_run_ctx *run_ctx) = __bpf_prog_exit; -u64 (*enter)(struct bpf_prog *prog, -struct bpf_tramp_run_ctx *run_ctx) = __bpf_prog_enter; u8 *prog = *pprog;u8 *jmp_insn;int ctx_cookie_off = offsetof(struct bpf_tramp_run_ctx , bpf_cookie);
@@ -1835,23 +1831,12 @@ static int invoke_bpf_prog(const struct btf_func_model *m, u8 **pprog,*/ emit_stx (&prog,BPF_DW ,BPF_REG_FP ,BPF_REG_1 , -run_ctx_off + ctx_cookie_off); -if (p->aux->sleepable) { - enter = __bpf_prog_enter_sleepable; - exit = __bpf_prog_exit_sleepable; - }else if (p->type ==BPF_PROG_TYPE_STRUCT_OPS ) { - enter = __bpf_prog_enter_struct_ops; - exit = __bpf_prog_exit_struct_ops; - }else if (p->expected_attach_type ==BPF_LSM_CGROUP ) { - enter = __bpf_prog_enter_lsm_cgroup; - exit = __bpf_prog_exit_lsm_cgroup; - } -/* arg1: mov rdi, progs[i] */ emit_mov_imm64 (&prog,BPF_REG_1 , (long ) p >>32 , (u32 ) (long ) p);/* arg2: lea rsi, [rbp - ctx_cookie_off] */ EMIT4 (0x48 ,0x8D ,0x75 , -run_ctx_off); -if (emit_call (&prog, enter, prog)) +if (emit_call (&prog,bpf_trampoline_enter (p), prog))return -EINVAL ;/* remember prog start time returned by __bpf_prog_enter */ emit_mov_reg (&prog, true,BPF_REG_6 ,BPF_REG_0 );
@@ -1896,7 +1881,7 @@ static int invoke_bpf_prog(const struct btf_func_model *m, u8 **pprog,emit_mov_reg (&prog, true,BPF_REG_2 ,BPF_REG_6 );/* arg3: lea rdx, [rbp - run_ctx_off] */ EMIT4 (0x48 ,0x8D ,0x55 , -run_ctx_off); -if (emit_call (&prog, exit, prog)) +if (emit_call (&prog,bpf_trampoline_exit (p), prog))return -EINVAL ; *pprog = prog;
block/blk-throttle.c +50 -49
128 lines not on this page · raw message
drivers/ata/ahci.c +2 -0
@@ -422,6 +422,8 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x34d3), board_ahci_low_power }, /* Ice Lake LP AHCI */ { PCI_VDEVICE(INTEL, 0x02d3), board_ahci_low_power }, /* Comet Lake PCH-U AHCI */ { PCI_VDEVICE(INTEL, 0x02d7), board_ahci_low_power }, /* Comet Lake PCH RAID */ +/* Elkhart Lake IDs 0x4b60 & 0x4b62 https://sata-io.org/product/8803 not tested yet */ + { PCI_VDEVICE(INTEL, 0x4b63), board_ahci_low_power }, /* Elkhart Lake AHCI *//* JMicron 360/1/3/5/6, match class to avoid IDE function */ { PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
drivers/ata/pata_falcon.c +29 -21
63 lines not on this page · raw message
drivers/ata/pata_ftide010.c +1 -0
@@ -567,6 +567,7 @@ static struct platform_driver pata_ftide010_driver = { };module_platform_driver (pata_ftide010_driver); +MODULE_DESCRIPTION ("low level driver for Faraday Technology FTIDE010" );MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:" DRV_NAME );
drivers/ata/sata_gemini.c +1 -0
@@ -428,6 +428,7 @@ static struct platform_driver gemini_sata_driver = { };module_platform_driver (gemini_sata_driver); +MODULE_DESCRIPTION ("low level driver for Cortina Systems Gemini SATA bridge" );MODULE_AUTHOR ("Linus Walleij <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_ALIAS ("platform:" DRV_NAME );
drivers/block/null_blk/main.c +10 -2
@@ -1585,9 +1585,12 @@ static int null_poll(struct blk_mq_hw_ctx *hctx, struct io_comp_batch *iob)struct nullb_queue *nq = hctx->driver_data;LIST_HEAD (list);int nr =0 ; +struct request *rq;spin_lock (&nq->poll_lock);list_splice_init (&nq->poll_list, &list); +list_for_each_entry (rq, &list, queuelist) +blk_mq_set_request_complete (rq);spin_unlock (&nq->poll_lock);while (!list_empty (&list)) {
@@ -1613,16 +1616,21 @@ static enum blk_eh_timer_return null_timeout_rq(struct request *rq)struct blk_mq_hw_ctx *hctx = rq->mq_hctx;struct nullb_cmd *cmd =blk_mq_rq_to_pdu (rq); -pr_info ("rq %p timed out\n" , rq); -if (hctx->type ==HCTX_TYPE_POLL ) {struct nullb_queue *nq = hctx->driver_data;spin_lock (&nq->poll_lock); +/* The request may have completed meanwhile. */ +if (blk_mq_request_completed (rq)) { +spin_unlock (&nq->poll_lock); +return BLK_EH_DONE ; + }list_del_init (&rq->queuelist);spin_unlock (&nq->poll_lock); } +pr_info ("rq %p timed out\n" , rq); +/* * If the device is marked as blocking (i.e. memory backed or zoned * device), the submission path may be blocked waiting for resources
drivers/bus/mhi/host/pm.c +5 -0
@@ -470,6 +470,10 @@ static void mhi_pm_disable_transition(struct mhi_controller *mhi_cntrl)/* Trigger MHI RESET so that the device will not access host memory */ if (!MHI_PM_IN_FATAL_STATE (mhi_cntrl->pm_state)) { +/* Skip MHI RESET if in RDDM state */ +if (mhi_cntrl->rddm_image &&mhi_get_exec_env (mhi_cntrl) ==MHI_EE_RDDM ) + goto skip_mhi_reset; +dev_dbg (dev,"Triggering MHI Reset in device\n" );mhi_set_mhi_state (mhi_cntrl,MHI_STATE_RESET );
@@ -495,6 +499,7 @@ static void mhi_pm_disable_transition(struct mhi_controller *mhi_cntrl) } } +skip_mhi_reset:dev_dbg (dev,"Waiting for all pending event ring processing to complete\n" ); mhi_event = mhi_cntrl->mhi_event;
drivers/char/tpm/tpm_crb.c +3 -2
@@ -775,12 +775,13 @@ static int crb_acpi_add(struct acpi_device *device)FW_BUG "TPM2 ACPI table has wrong size %u for start method type %d\n" , buf->header.length, ACPI_TPM2_COMMAND_BUFFER_WITH_PLUTON); -return -EINVAL ; + rc = -EINVAL ; + goto out; } crb_pluton = ACPI_ADD_PTR(struct tpm2_crb_pluton, buf, sizeof(*buf)); rc =crb_map_pluton (dev, priv, buf, crb_pluton);if (rc) -return rc; + goto out; } priv->sm = sm;
drivers/clk/imx/clk-pll14xx.c +5 -8
@@ -62,8 +62,6 @@ static const struct imx_pll14xx_rate_table imx_pll1443x_tbl[] = {PLL_1443X_RATE (650000000U ,325 ,3 ,2 ,0 ),PLL_1443X_RATE (594000000U ,198 ,2 ,2 ,0 ), PLL_1443X_RATE(519750000U, 173, 2, 2, 16384), -PLL_1443X_RATE (393216000U ,262 ,2 ,3 ,9437 ), - PLL_1443X_RATE(361267200U, 361, 3, 3, 17511), }; struct imx_pll14xx_clk imx_1443x_pll = {
@@ -137,11 +135,10 @@ static void imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rat/* * Fractional PLL constrains: * -* a) 6MHz <= prate <= 25MHz -* b) 1 <= p <= 63 (1 <= p <= 4 prate = 24MHz) -* c) 64 <= m <= 1023 -* d) 0 <= s <= 6 -* e) -32768 <= k <= 32767 +* a) 1 <= p <= 63 +* b) 64 <= m <= 1023 +* c) 0 <= s <= 6 +* d) -32768 <= k <= 32767 * * fvco = (m * 65536 + k) * prate / (p * 65536) */
@@ -184,7 +181,7 @@ static void imx_pll14xx_calc_settings(struct clk_pll14xx *pll, unsigned long rat }/* Finally calculate best values */ -for (pdiv =1 ; pdiv <=7 ; pdiv++) { +for (pdiv =1 ; pdiv <=63 ; pdiv++) {for (sdiv =0 ; sdiv <=6 ; sdiv++) {/* calc mdiv = round(rate * pdiv * 2^sdiv) / prate) */ mdiv =DIV_ROUND_CLOSEST (rate * (pdiv << sdiv), prate);
drivers/clk/qcom/camcc-sc7180.c +1 -1
@@ -1664,7 +1664,7 @@ static int cam_cc_sc7180_probe(struct platform_device *pdev)return ret; } - ret =pm_runtime_get (&pdev->dev); + ret =pm_runtime_resume_and_get (&pdev->dev);if (ret)return ret;
drivers/clk/qcom/dispcc-sm8450.c +11 -2
@@ -1783,8 +1783,10 @@ static int disp_cc_sm8450_probe(struct platform_device *pdev)return ret; regmap =qcom_cc_map (pdev, &disp_cc_sm8450_desc); -if (IS_ERR (regmap)) -return PTR_ERR (regmap); +if (IS_ERR (regmap)) { + ret =PTR_ERR (regmap); + goto err_put_rpm; + }clk_lucid_evo_pll_configure (&disp_cc_pll0, regmap, &disp_cc_pll0_config);clk_lucid_evo_pll_configure (&disp_cc_pll1, regmap, &disp_cc_pll1_config);
@@ -1799,9 +1801,16 @@ static int disp_cc_sm8450_probe(struct platform_device *pdev)regmap_update_bits (regmap,0xe05c ,BIT (0 ),BIT (0 )); ret =qcom_cc_really_probe (pdev, &disp_cc_sm8450_desc, regmap); +if (ret) + goto err_put_rpm;pm_runtime_put (&pdev->dev); +return 0 ; + +err_put_rpm: +pm_runtime_put_sync (&pdev->dev); +return ret; }
drivers/clk/qcom/gcc-mdm9615.c +1 -1
@@ -58,7 +58,7 @@ static struct clk_regmap pll0_vote = { .enable_mask = BIT(0), .hw.init = &(struct clk_init_data ){ .name ="pll0_vote" , - .parent_names = (const char *[]){"pll8" }, + .parent_names = (const char *[]){"pll0" }, .num_parents =1 , .ops = &clk_pll_vote_ops, },
drivers/clk/qcom/lpasscc-sc7280.c +12 -4
@@ -115,9 +115,13 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) ret =pm_clk_add (&pdev->dev,"iface" );if (ret <0 ) {dev_err (&pdev->dev,"failed to acquire iface clock\n" ); - goto destroy_pm_clk; + goto err_destroy_pm_clk; } + ret =pm_runtime_resume_and_get (&pdev->dev); +if (ret) + goto err_destroy_pm_clk; +if (!of_property_read_bool (pdev->dev.of_node,"qcom,adsp-pil-mode" )) { lpass_regmap_config.name ="qdsp6ss" ; lpass_regmap_config.max_register =0x3f ;
@@ -125,7 +129,7 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) ret =qcom_cc_probe_by_index (pdev,0 , desc);if (ret) - goto destroy_pm_clk; + goto err_put_rpm; } lpass_regmap_config.name ="top_cc" ;
@@ -134,11 +138,15 @@ static int lpass_cc_sc7280_probe(struct platform_device *pdev) ret =qcom_cc_probe_by_index (pdev,1 , desc);if (ret) - goto destroy_pm_clk; + goto err_put_rpm; + +pm_runtime_put (&pdev->dev);return 0 ; -destroy_pm_clk: +err_put_rpm: +pm_runtime_put_sync (&pdev->dev); +err_destroy_pm_clk:pm_clk_destroy (&pdev->dev); disable_pm_runtime:
drivers/clk/qcom/mss-sc7180.c +12 -1
@@ -87,11 +87,22 @@ static int mss_sc7180_probe(struct platform_device *pdev)return ret; } + ret =pm_runtime_resume_and_get (&pdev->dev); +if (ret) +return ret; + ret =qcom_cc_probe (pdev, &mss_sc7180_desc);if (ret <0 ) -return ret; + goto err_put_rpm; + +pm_runtime_put (&pdev->dev);return 0 ; + +err_put_rpm: +pm_runtime_put_sync (&pdev->dev); + +return ret; }static const struct dev_pm_ops mss_sc7180_pm_ops = {
drivers/clk/qcom/q6sstop-qcs404.c +13 -2
@@ -174,21 +174,32 @@ static int q6sstopcc_qcs404_probe(struct platform_device *pdev)return ret; } + ret =pm_runtime_resume_and_get (&pdev->dev); +if (ret) +return ret; + q6sstop_regmap_config.name ="q6sstop_tcsr" ; desc = &tcsr_qcs404_desc; ret =qcom_cc_probe_by_index (pdev,1 , desc);if (ret) -return ret; + goto err_put_rpm; q6sstop_regmap_config.name ="q6sstop_cc" ; desc = &q6sstop_qcs404_desc; ret =qcom_cc_probe_by_index (pdev,0 , desc);if (ret) -return ret; + goto err_put_rpm; + +pm_runtime_put (&pdev->dev);return 0 ; + +err_put_rpm: +pm_runtime_put_sync (&pdev->dev); + +return ret; }static const struct dev_pm_ops q6sstopcc_pm_ops = {
drivers/clk/qcom/turingcc-qcs404.c +12 -1
@@ -125,11 +125,22 @@ static int turingcc_probe(struct platform_device *pdev)return ret; } + ret =pm_runtime_resume_and_get (&pdev->dev); +if (ret) +return ret; + ret =qcom_cc_probe (pdev, &turingcc_desc);if (ret <0 ) -return ret; + goto err_put_rpm; + +pm_runtime_put (&pdev->dev);return 0 ; + +err_put_rpm: +pm_runtime_put_sync (&pdev->dev); + +return ret; }static const struct dev_pm_ops turingcc_pm_ops = {
drivers/clocksource/arm_arch_timer.c +7 -0
@@ -773,6 +773,13 @@ static __always_inline void set_next_event_mem(const int access, unsigned long eu64 cnt; ctrl =arch_timer_reg_read (access,ARCH_TIMER_REG_CTRL , clk); + +/* Timer must be disabled before programming CVAL */ +if (ctrl &ARCH_TIMER_CTRL_ENABLE ) { + ctrl &= ~ARCH_TIMER_CTRL_ENABLE ; +arch_timer_reg_write (access,ARCH_TIMER_REG_CTRL , ctrl, clk); + } + ctrl |=ARCH_TIMER_CTRL_ENABLE ; ctrl &= ~ARCH_TIMER_CTRL_IT_MASK ;
drivers/dma/sh/rz-dmac.c +7 -4
@@ -9,6 +9,7 @@* Copyright 2012 Javier Martin, Vista Silicon <[email protected]> */ +#include <linux/bitfield.h> #include <linux/dma-mapping.h> #include <linux/dmaengine.h> #include <linux/interrupt.h>
@@ -145,8 +146,8 @@ struct rz_dmac {#define CHCFG_REQD BIT(3)#define CHCFG_SEL (bits) ((bits) & 0x07)#define CHCFG_MEM_COPY (0x80400008) -#define CHCFG_FILL_DDS (a) (((a) << 16) & GENMASK(19, 16)) -#define CHCFG_FILL_SDS (a) (((a) << 12) & GENMASK(15, 12)) +#define CHCFG_FILL_DDS_MASK GENMASK(19, 16) +#define CHCFG_FILL_SDS_MASK GENMASK(15, 12)#define CHCFG_FILL_TM (a) (((a) & BIT(5)) << 22)#define CHCFG_FILL_AM (a) (((a) & GENMASK(4, 2)) << 6)#define CHCFG_FILL_LVL (a) (((a) & BIT(1)) << 5)
@@ -609,13 +610,15 @@ static int rz_dmac_config(struct dma_chan *chan,if (val ==CHCFG_DS_INVALID )return -EINVAL ; - channel->chcfg |=CHCFG_FILL_DDS (val); + channel->chcfg &= ~CHCFG_FILL_DDS_MASK ; + channel->chcfg |=FIELD_PREP (CHCFG_FILL_DDS_MASK , val); val =rz_dmac_ds_to_val_mapping (config->src_addr_width);if (val ==CHCFG_DS_INVALID )return -EINVAL ; - channel->chcfg |=CHCFG_FILL_SDS (val); + channel->chcfg &= ~CHCFG_FILL_SDS_MASK ; + channel->chcfg |=FIELD_PREP (CHCFG_FILL_SDS_MASK , val);return 0 ; }
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +25 -1
@@ -38,6 +38,8 @@#include <linux/pci.h> #include <linux/pm_runtime.h> #include <drm/drm_crtc_helper.h> +#include <drm/drm_damage_helper.h> +#include <drm/drm_drv.h> #include <drm/drm_edid.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_fb_helper.h>
@@ -493,11 +495,29 @@ bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector,return true; } +static int amdgpu_dirtyfb (struct drm_framebuffer *fb,struct drm_file *file, +unsigned int flags,unsigned int color, +struct drm_clip_rect *clips,unsigned int num_clips) +{ + +if (file) +return -ENOSYS ; + +return drm_atomic_helper_dirtyfb (fb, file, flags, color, clips, + num_clips); +} +static const struct drm_framebuffer_funcs amdgpu_fb_funcs = { .destroy = drm_gem_fb_destroy, .create_handle = drm_gem_fb_create_handle, }; +static const struct drm_framebuffer_funcs amdgpu_fb_funcs_atomic = { + .destroy = drm_gem_fb_destroy, + .create_handle = drm_gem_fb_create_handle, + .dirty = amdgpu_dirtyfb +}; +uint32_t amdgpu_display_supported_domains (struct amdgpu_device *adev,uint64_t bo_flags) {
@@ -1100,7 +1120,11 @@ static int amdgpu_display_gem_fb_verify_and_init(struct drm_device *dev,if (ret) goto err; - ret =drm_framebuffer_init (dev, &rfb->base, &amdgpu_fb_funcs); +if (drm_drv_uses_atomic_modeset (dev)) + ret =drm_framebuffer_init (dev, &rfb->base, + &amdgpu_fb_funcs_atomic); +else + ret =drm_framebuffer_init (dev, &rfb->base, &amdgpu_fb_funcs);if (ret) goto err;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +7 -0
@@ -1269,6 +1269,13 @@ void handle_cursor_update(struct drm_plane *plane, attributes.rotation_angle =0 ; attributes.attribute_flags.value =0 ; +/* Enable cursor degamma ROM on DCN3+ for implicit sRGB degamma in DRM +* legacy gamma setup. +*/ +if (crtc_state->cm_is_degamma_srgb && + adev->dm.dc->caps.color.dpp.gamma_corr) + attributes.attribute_flags.bits.ENABLE_CURSOR_DEGAMMA =1 ; + attributes.pitch = afb->base.pitches[0 ] / afb->base.format->cpp[0 ];if (crtc_state->stream) {
drivers/gpu/drm/amd/display/dc/Makefile +1 -0
@@ -82,3 +82,4 @@ DC_EDID += dc_edid_parser.o AMD_DISPLAY_DMUB = $(addprefix $(AMDDALPATH)/dc/,$(DC_DMUB)) AMD_DISPLAY_EDID = $(addprefix $(AMDDALPATH)/dc/,$(DC_EDID)) AMD_DISPLAY_FILES += $(AMD_DISPLAY_DMUB) $(AMD_DISPLAY_EDID) +
drivers/gpu/drm/amd/display/dc/core/dc.c +46 -22
88 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_mpc.c +3 -2
@@ -212,8 +212,9 @@ struct mpcc *mpc1_insert_plane(/* check insert_above_mpcc exist in tree->opp_list */ struct mpcc *temp_mpcc = tree->opp_list; -while (temp_mpcc && temp_mpcc->mpcc_bot != insert_above_mpcc) - temp_mpcc = temp_mpcc->mpcc_bot; +if (temp_mpcc != insert_above_mpcc) +while (temp_mpcc && temp_mpcc->mpcc_bot != insert_above_mpcc) + temp_mpcc = temp_mpcc->mpcc_bot;if (temp_mpcc ==NULL )return NULL ; }
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c +0 -11
@@ -1515,17 +1515,6 @@ static void dcn20_update_dchubp_dpp( || plane_state->update_flags.bits.global_alpha_change || plane_state->update_flags.bits.per_pixel_alpha_change) {// MPCC inst is equal to pipe index in practice -int mpcc_inst = hubp->inst; -int opp_inst; -int opp_count = dc->res_pool->pipe_count; - -for (opp_inst =0 ; opp_inst < opp_count; opp_inst++) { -if (dc->res_pool->opps[opp_inst]->mpcc_disconnect_pending[mpcc_inst]) { - dc->res_pool->mpc->funcs->wait_for_idle (dc->res_pool->mpc, mpcc_inst); - dc->res_pool->opps[opp_inst]->mpcc_disconnect_pending[mpcc_inst] = false; -break ; - } - } hws->funcs.update_mpcc (dc, pipe_ctx); }
drivers/gpu/drm/amd/display/modules/freesync/freesync.c +6 -3
@@ -338,7 +338,9 @@ static void apply_below_the_range(struct core_freesync *core_freesync,* - Delta for CEIL: delta_from_mid_point_in_us_1 * - Delta for FLOOR: delta_from_mid_point_in_us_2 */ -if ((last_render_time_in_us / mid_point_frames_ceil) < in_out_vrr->min_duration_in_us) { +if (mid_point_frames_ceil && + (last_render_time_in_us / mid_point_frames_ceil) < + in_out_vrr->min_duration_in_us) {/* Check for out of range. * If using CEIL produces a value that is out of range, * then we are forced to use FLOOR.
@@ -385,8 +387,9 @@ static void apply_below_the_range(struct core_freesync *core_freesync,/* Either we've calculated the number of frames to insert, * or we need to insert min duration frames */ -if (last_render_time_in_us / frames_to_insert < - in_out_vrr->min_duration_in_us){ +if (frames_to_insert && + (last_render_time_in_us / frames_to_insert) < + in_out_vrr->min_duration_in_us){ frames_to_insert -= (frames_to_insert >1 ) ?1 :0 ; }
drivers/gpu/drm/ast/ast_post.c +1 -1
@@ -291,7 +291,7 @@ static void ast_init_dram_reg(struct drm_device *dev) ; }while (ast_read32 (ast,0x10100 ) !=0xa8 ); }else {/* AST2100/1100 */ -if (ast->chip ==AST2100 || ast->chip ==2200 ) +if (ast->chip ==AST2100 || ast->chip ==AST2200 ) dram_reg_info = ast2100_dram_table_data;else dram_reg_info = ast1100_dram_table_data;
drivers/gpu/drm/i915/gt/intel_engine_types.h +1 -0
@@ -56,6 +56,7 @@ struct intel_breadcrumbs;typedef u32 intel_engine_mask_t ;#define ALL_ENGINES ((intel_engine_mask_t)~0ul) +#define VIRTUAL_ENGINES BIT(BITS_PER_TYPE(intel_engine_mask_t) - 1)struct intel_hw_status_page {struct list_head timelines;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +3 -0
@@ -5111,6 +5111,9 @@ guc_create_virtual(struct intel_engine_cs **siblings, unsigned int count, ve->base.flags =I915_ENGINE_IS_VIRTUAL ; +BUILD_BUG_ON (ilog2 (VIRTUAL_ENGINES ) <I915_NUM_ENGINES ); + ve->base.mask =VIRTUAL_ENGINES ; +intel_context_init (&ve->context, &ve->base);for (n =0 ; n < count; n++) {
drivers/gpu/drm/i915/gvt/gtt.c +8 -19
@@ -1179,6 +1179,7 @@ static int is_2MB_gtt_possible(struct intel_vgpu *vgpu, {const struct intel_gvt_gtt_pte_ops *ops = vgpu->gvt->gtt.pte_ops;kvm_pfn_t pfn; +int ret;if (!HAS_PAGE_SIZES (vgpu->gvt->gt->i915,I915_GTT_PAGE_SIZE_2M ))return 0 ;
@@ -1188,7 +1189,13 @@ static int is_2MB_gtt_possible(struct intel_vgpu *vgpu, pfn =gfn_to_pfn (vgpu->vfio_device.kvm, ops->get_pfn (entry));if (is_error_noslot_pfn (pfn))return -EINVAL ; -return PageTransHuge (pfn_to_page (pfn)); + +if (!pfn_valid (pfn)) +return -EINVAL ; + + ret =PageTransHuge (pfn_to_page (pfn)); +kvm_release_pfn_clean (pfn); +return ret; } static int split_2MB_gtt_entry(struct intel_vgpu *vgpu,
@@ -2880,24 +2887,6 @@ void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old)ggtt_invalidate (gvt->gt); } -/** -* intel_vgpu_reset_gtt - reset the all GTT related status -* @vgpu: a vGPU -* -* This function is called from vfio core to reset reset all -* GTT related status, including GGTT, PPGTT, scratch page. -* -*/ -void intel_vgpu_reset_gtt (struct intel_vgpu *vgpu) -{ -/* Shadow pages are only created when there is no page -* table tracking data, so remove page tracking data after -* removing the shadow pages. -*/ -intel_vgpu_destroy_all_ppgtt_mm (vgpu); -intel_vgpu_reset_ggtt (vgpu, true); -} -/** * intel_gvt_restore_ggtt - restore all vGPU's ggtt entries * @gvt: intel gvt device
drivers/gpu/drm/i915/gvt/gtt.h +0 -1
@@ -224,7 +224,6 @@ void intel_vgpu_reset_ggtt(struct intel_vgpu *vgpu, bool invalidate_old);void intel_vgpu_invalidate_ppgtt (struct intel_vgpu *vgpu);int intel_gvt_init_gtt (struct intel_gvt *gvt); -void intel_vgpu_reset_gtt (struct intel_vgpu *vgpu);void intel_gvt_clean_gtt (struct intel_gvt *gvt); struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm(struct intel_vgpu *vgpu,
drivers/gpu/drm/i915/i915_request.c +2 -5
@@ -134,9 +134,7 @@ static void i915_fence_release(struct dma_fence *fence)i915_sw_fence_fini (&rq->semaphore);/* -* Keep one request on each engine for reserved use under mempressure -* do not use with virtual engines as this really is only needed for -* kernel contexts. +* Keep one request on each engine for reserved use under mempressure. * * We do not hold a reference to the engine here and so have to be * very careful in what rq->engine we poke. The virtual engine is
@@ -166,8 +164,7 @@ static void i915_fence_release(struct dma_fence *fence)* know that if the rq->execution_mask is a single bit, rq->engine * can be a physical engine with the exact corresponding mask. */ -if (!intel_engine_is_virtual (rq->engine) && -is_power_of_2 (rq->execution_mask) && +if (is_power_of_2 (rq->execution_mask) && !cmpxchg (&rq->engine->request_pool,NULL , rq))return ;
drivers/gpu/drm/mxsfb/mxsfb_kms.c +9 -0
@@ -611,6 +611,14 @@ static void mxsfb_plane_overlay_atomic_update(struct drm_plane *plane,writel (ctrl, mxsfb->base +LCDC_AS_CTRL ); } +static void mxsfb_plane_overlay_atomic_disable (struct drm_plane *plane, +struct drm_atomic_state *state) +{ +struct mxsfb_drm_private *mxsfb =to_mxsfb_drm_private (plane->dev); + +writel (0 , mxsfb->base +LCDC_AS_CTRL ); +} +static bool mxsfb_format_mod_supported (struct drm_plane *plane,uint32_t format,uint64_t modifier)
@@ -626,6 +634,7 @@ static const struct drm_plane_helper_funcs mxsfb_plane_primary_helper_funcs = {static const struct drm_plane_helper_funcs mxsfb_plane_overlay_helper_funcs = { .atomic_check = mxsfb_plane_atomic_check, .atomic_update = mxsfb_plane_overlay_atomic_update, + .atomic_disable = mxsfb_plane_overlay_atomic_disable, };static const struct drm_plane_funcs mxsfb_plane_funcs = {
drivers/gpu/drm/virtio/virtgpu_ioctl.c +18 -12
@@ -43,13 +43,9 @@ static int virtio_gpu_fence_event_create(struct drm_device *dev, struct virtio_gpu_fence *fence, uint32_t ring_idx) { -struct virtio_gpu_fpriv *vfpriv = file->driver_priv;struct virtio_gpu_fence_event *e =NULL ;int ret; -if (!(vfpriv->ring_idx_mask &BIT_ULL (ring_idx))) -return 0 ; - e =kzalloc (sizeof (*e),GFP_KERNEL );if (!e)return -ENOMEM ;
@@ -121,6 +117,7 @@ static int virtio_gpu_execbuffer_ioctl(struct drm_device *dev, void *data,struct virtio_gpu_device *vgdev = dev->dev_private;struct virtio_gpu_fpriv *vfpriv = file->driver_priv;struct virtio_gpu_fence *out_fence; +bool drm_fence_event;int ret;uint32_t *bo_handles =NULL ;void __user *user_bo_handles =NULL ;
@@ -216,15 +213,24 @@ static int virtio_gpu_execbuffer_ioctl(struct drm_device *dev, void *data, goto out_memdup; } - out_fence =virtio_gpu_fence_alloc (vgdev, fence_ctx, ring_idx); -if (!out_fence) { - ret = -ENOMEM ; - goto out_unresv; - } +if ((exbuf->flags &VIRTGPU_EXECBUF_RING_IDX ) && + (vfpriv->ring_idx_mask &BIT_ULL (ring_idx))) + drm_fence_event = true; +else + drm_fence_event = false; - ret =virtio_gpu_fence_event_create (dev, file, out_fence, ring_idx); -if (ret) - goto out_unresv; +if ((exbuf->flags &VIRTGPU_EXECBUF_FENCE_FD_OUT ) || + exbuf->num_bo_handles || + drm_fence_event) + out_fence =virtio_gpu_fence_alloc (vgdev, fence_ctx, ring_idx); +else + out_fence =NULL ; + +if (drm_fence_event) { + ret =virtio_gpu_fence_event_create (dev, file, out_fence, ring_idx); +if (ret) + goto out_unresv; + }if (out_fence_fd >=0 ) { sync_file =sync_file_create (&out_fence->f);
drivers/hwspinlock/qcom_hwspinlock.c +9 -0
@@ -69,9 +69,18 @@ static const struct hwspinlock_ops qcom_hwspinlock_ops = { .unlock = qcom_hwspinlock_unlock, }; +static const struct regmap_config sfpb_mutex_config = { + .reg_bits =32 , + .reg_stride =4 , + .val_bits =32 , + .max_register =0x100 , + .fast_io = true, +}; +static const struct qcom_hwspinlock_of_data of_sfpb_mutex = { .offset =0x4 , .stride =0x4 , + .regmap_config = &sfpb_mutex_config, };static const struct regmap_config tcsr_msm8226_mutex_config = {
drivers/input/keyboard/tca6416-keypad.c +10 -21
@@ -148,7 +148,7 @@ static int tca6416_keys_open(struct input_dev *dev)if (chip->use_polling)schedule_delayed_work (&chip->dwork,msecs_to_jiffies (100 ));else -enable_irq (chip->irqnum); +enable_irq (chip->client->irq);return 0 ; }
@@ -160,7 +160,7 @@ static void tca6416_keys_close(struct input_dev *dev)if (chip->use_polling)cancel_delayed_work_sync (&chip->dwork);else -disable_irq (chip->irqnum); +disable_irq (chip->client->irq); }static int tca6416_setup_registers (struct tca6416_keypad_chip *chip)
@@ -266,12 +266,7 @@ static int tca6416_keypad_probe(struct i2c_client *client, goto fail1;if (!chip->use_polling) { -if (pdata->irq_is_gpio) - chip->irqnum =gpio_to_irq (client->irq); -else - chip->irqnum = client->irq; - - error = request_threaded_irq(chip->irqnum, NULL, + error = request_threaded_irq(client->irq, NULL, tca6416_keys_isr, IRQF_TRIGGER_FALLING | IRQF_ONESHOT | IRQF_NO_AUTOEN,
@@ -279,7 +274,7 @@ static int tca6416_keypad_probe(struct i2c_client *client,if (error) {dev_dbg (&client->dev,"Unable to claim irq %d; error %d\n" , - chip->irqnum, error); + client->irq, error); goto fail1; } }
@@ -297,10 +292,8 @@ static int tca6416_keypad_probe(struct i2c_client *client,return 0 ; fail2: -if (!chip->use_polling) { -free_irq (chip->irqnum, chip); -enable_irq (chip->irqnum); - } +if (!chip->use_polling) +free_irq (client->irq, chip); fail1:input_free_device (input);kfree (chip);
@@ -311,10 +304,8 @@ static void tca6416_keypad_remove(struct i2c_client *client) {struct tca6416_keypad_chip *chip =i2c_get_clientdata (client); -if (!chip->use_polling) { -free_irq (chip->irqnum, chip); -enable_irq (chip->irqnum); - } +if (!chip->use_polling) +free_irq (client->irq, chip);input_unregister_device (chip->input);kfree (chip);
@@ -324,10 +315,9 @@ static void tca6416_keypad_remove(struct i2c_client *client)static int tca6416_keypad_suspend (struct device *dev) {struct i2c_client *client =to_i2c_client (dev); -struct tca6416_keypad_chip *chip =i2c_get_clientdata (client);if (device_may_wakeup (dev)) -enable_irq_wake (chip->irqnum); +enable_irq_wake (client->irq);return 0 ; }
@@ -335,10 +325,9 @@ static int tca6416_keypad_suspend(struct device *dev)static int tca6416_keypad_resume (struct device *dev) {struct i2c_client *client =to_i2c_client (dev); -struct tca6416_keypad_chip *chip =i2c_get_clientdata (client);if (device_may_wakeup (dev)) -disable_irq_wake (chip->irqnum); +disable_irq_wake (client->irq);return 0 ; }
drivers/input/misc/iqs7222.c +4 -4
@@ -1381,9 +1381,6 @@ static int iqs7222_ati_trigger(struct iqs7222_private *iqs7222)if (error)return error; - sys_setup &= ~IQS7222_SYS_SETUP_INTF_MODE_MASK ; - sys_setup &= ~IQS7222_SYS_SETUP_PWR_MODE_MASK ; -for (i =0 ; i <IQS7222_NUM_RETRIES ; i++) {/* * Trigger ATI from streaming and normal-power modes so that
@@ -1561,8 +1558,11 @@ static int iqs7222_dev_init(struct iqs7222_private *iqs7222, int dir)return error; } -if (dir ==READ ) +if (dir ==READ ) { + iqs7222->sys_setup[0 ] &= ~IQS7222_SYS_SETUP_INTF_MODE_MASK ; + iqs7222->sys_setup[0 ] &= ~IQS7222_SYS_SETUP_PWR_MODE_MASK ;return 0 ; + }return iqs7222_ati_trigger (iqs7222); }
drivers/mailbox/qcom-ipcc.c +1 -3
@@ -227,10 +227,8 @@ static int qcom_ipcc_setup_mbox(struct qcom_ipcc *ipcc, ret =of_parse_phandle_with_args (client_dn,"mboxes" ,"#mbox-cells" , j, &curr_ph);of_node_put (curr_ph.np); -if (!ret && curr_ph.np == controller_dn) { +if (!ret && curr_ph.np == controller_dn) ipcc->num_chans++; -break ; - } } }
drivers/mtd/nand/raw/brcmnand/brcmnand.c +76 -36
189 lines not on this page · raw message
drivers/mtd/spi-nor/winbond.c +3 -2
@@ -120,8 +120,9 @@ static const struct flash_info winbond_nor_parts[] = { NO_SFDP_FLAGS(SECT_4K) }, { "w25q80bl", INFO(0xef4014, 0, 64 * 1024, 16) NO_SFDP_FLAGS(SECT_4K) }, - { "w25q128", INFO(0xef4018, 0, 64 * 1024, 256) - NO_SFDP_FLAGS(SECT_4K) }, + { "w25q128", INFO(0xef4018, 0, 0, 0) + PARSE_SFDP + FLAGS(SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) }, { "w25q256", INFO(0xef4019, 0, 64 * 1024, 512) NO_SFDP_FLAGS(SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) .fixups = &w25q256_fixups },
drivers/net/dsa/sja1105/sja1105.h +4 -0
@@ -132,6 +132,8 @@ struct sja1105_info {int max_frame_mem;int num_ports;bool multiple_cascade_ports; +/* Every {port, TXQ} has its own CBS shaper */ +bool fixed_cbs_mapping;enum dsa_tag_protocol tag_proto;const struct sja1105_dynamic_table_ops *dyn_ops;const struct sja1105_table_ops *static_ops;
@@ -262,6 +264,8 @@ struct sja1105_private {* the switch doesn't confuse them with one another. */ struct mutex mgmt_lock; +/* Serializes accesses to the FDB */ +struct mutex fdb_lock;/* PTP two-step TX timestamp ID, and its serialization lock */ spinlock_t ts_id_lock;u8 ts_id;
drivers/net/dsa/sja1105/sja1105_dynamic_config.c +44 -49
136 lines not on this page · raw message
drivers/net/dsa/sja1105/sja1105_main.c +96 -24
236 lines not on this page · raw message
drivers/net/dsa/sja1105/sja1105_spi.c +4 -0
@@ -781,6 +781,7 @@ const struct sja1105_info sja1110a_info = { .tag_proto = DSA_TAG_PROTO_SJA1110, .can_limit_mcast_flood = true, .multiple_cascade_ports = true, + .fixed_cbs_mapping = true, .ptp_ts_bits = 32, .ptpegr_ts_bytes = 8, .max_frame_mem = SJA1110_MAX_FRAME_MEMORY,
@@ -831,6 +832,7 @@ const struct sja1105_info sja1110b_info = { .tag_proto = DSA_TAG_PROTO_SJA1110, .can_limit_mcast_flood = true, .multiple_cascade_ports = true, + .fixed_cbs_mapping = true, .ptp_ts_bits = 32, .ptpegr_ts_bytes = 8, .max_frame_mem = SJA1110_MAX_FRAME_MEMORY,
@@ -881,6 +883,7 @@ const struct sja1105_info sja1110c_info = { .tag_proto = DSA_TAG_PROTO_SJA1110, .can_limit_mcast_flood = true, .multiple_cascade_ports = true, + .fixed_cbs_mapping = true, .ptp_ts_bits = 32, .ptpegr_ts_bytes = 8, .max_frame_mem = SJA1110_MAX_FRAME_MEMORY,
@@ -931,6 +934,7 @@ const struct sja1105_info sja1110d_info = { .tag_proto = DSA_TAG_PROTO_SJA1110, .can_limit_mcast_flood = true, .multiple_cascade_ports = true, + .fixed_cbs_mapping = true, .ptp_ts_bits = 32, .ptpegr_ts_bytes = 8, .max_frame_mem = SJA1110_MAX_FRAME_MEMORY,
drivers/net/ethernet/adi/adin1110.c +5 -5
@@ -740,7 +740,7 @@ static int adin1110_broadcasts_filter(struct adin1110_port_priv *port_priv,u32 port_rules =0 ;u8 mask[ETH_ALEN ]; -memset (mask,0xFF ,ETH_ALEN ); +eth_broadcast_addr (mask);if (accept_broadcast && port_priv->state ==BR_STATE_FORWARDING ) port_rules =adin1110_port_rules (port_priv, true, true);
@@ -761,7 +761,7 @@ static int adin1110_set_mac_address(struct net_device *netdev,return -EADDRNOTAVAIL ;eth_hw_addr_set (netdev, dev_addr); -memset (mask,0xFF ,ETH_ALEN ); +eth_broadcast_addr (mask); mac_slot = (!port_priv->nr) ?ADIN_MAC_P1_ADDR_SLOT :ADIN_MAC_P2_ADDR_SLOT ; port_rules =adin1110_port_rules (port_priv, true, false);
@@ -1251,7 +1251,7 @@ static int adin1110_port_set_blocking_state(struct adin1110_port_priv *port_priv goto out;/* Allow only BPDUs to be passed to the CPU */ -memset (mask,0xFF ,ETH_ALEN ); +eth_broadcast_addr (mask); port_rules =adin1110_port_rules (port_priv, true, false); ret =adin1110_write_mac_address (port_priv, mac_slot, mac, mask, port_rules);
@@ -1365,8 +1365,8 @@ static int adin1110_fdb_add(struct adin1110_port_priv *port_priv,return -ENOMEM ; other_port = priv->ports[!port_priv->nr]; - port_rules =adin1110_port_rules (port_priv, false, true); -memset (mask,0xFF ,ETH_ALEN ); + port_rules =adin1110_port_rules (other_port, false, true); +eth_broadcast_addr (mask);return adin1110_write_mac_address (other_port, mac_nr, (u8 *)fdb->addr, mask, port_rules);
drivers/net/ethernet/cadence/macb.h +4 -0
@@ -95,6 +95,8 @@#define GEM_SA4B 0x00A0/* Specific4 Bottom */ #define GEM_SA4T 0x00A4/* Specific4 Top */ #define GEM_WOL 0x00b8/* Wake on LAN */ +#define GEM_RXPTPUNI 0x00D4/* PTP RX Unicast address */ +#define GEM_TXPTPUNI 0x00D8/* PTP TX Unicast address */ #define GEM_EFTSH 0x00e8/* PTP Event Frame Transmitted Seconds Register 47:32 */ #define GEM_EFRSH 0x00ec/* PTP Event Frame Received Seconds Register 47:32 */ #define GEM_PEFTSH 0x00f0/* PTP Peer Event Frame Transmitted Seconds Register 47:32 */
@@ -245,6 +247,8 @@#define MACB_TZQ_OFFSET 12/* Transmit zero quantum pause frame */ #define MACB_TZQ_SIZE 1#define MACB_SRTSM_OFFSET 15/* Store Receive Timestamp to Memory */ +#define MACB_PTPUNI_OFFSET 20/* PTP Unicast packet enable */ +#define MACB_PTPUNI_SIZE 1#define MACB_OSSMODE_OFFSET 24/* Enable One Step Synchro Mode */ #define MACB_OSSMODE_SIZE 1#define MACB_MIIONRGMII_OFFSET 28/* MII Usage on RGMII Interface */
drivers/net/ethernet/cadence/macb_main.c +14 -4
@@ -288,6 +288,11 @@ static void macb_set_hwaddr(struct macb *bp) top =cpu_to_le16 (*((u16 *)(bp->dev->dev_addr +4 )));macb_or_gem_writel (bp,SA1T , top); +if (gem_has_ptp (bp)) { +gem_writel (bp,RXPTPUNI , bottom); +gem_writel (bp,TXPTPUNI , bottom); + } +/* Clear unused address register sets */ macb_or_gem_writel (bp,SA2B ,0 );macb_or_gem_writel (bp,SA2T ,0 );
@@ -700,8 +705,6 @@ static void macb_mac_link_up(struct phylink_config *config,if (rx_pause) ctrl |=MACB_BIT (PAE ); -macb_set_tx_clk (bp, speed); -/* Initialize rings & buffers as clearing MACB_BIT(TE) in link down * cleared the pipeline and control registers. */
@@ -721,8 +724,15 @@ static void macb_mac_link_up(struct phylink_config *config,spin_unlock_irqrestore (&bp->lock, flags); -/* Enable Rx and Tx */ -macb_writel (bp,NCR ,macb_readl (bp,NCR ) |MACB_BIT (RE ) |MACB_BIT (TE )); +if (!(bp->caps &MACB_CAPS_MACB_IS_EMAC )) +macb_set_tx_clk (bp, speed); + +/* Enable Rx and Tx; Enable PTP unicast */ + ctrl =macb_readl (bp,NCR ); +if (gem_has_ptp (bp)) + ctrl |=MACB_BIT (PTPUNI ); + +macb_writel (bp,NCR , ctrl |MACB_BIT (RE ) |MACB_BIT (TE ));netif_tx_wake_all_queues (ndev); }
drivers/net/ethernet/google/gve/gve_rx_dqo.c +4 -1
@@ -492,7 +492,10 @@ static int gve_rx_append_frags(struct napi_struct *napi,if (!skb)return -1 ; -skb_shinfo (rx->ctx.skb_tail)->frag_list = skb; +if (rx->ctx.skb_tail == rx->ctx.skb_head) +skb_shinfo (rx->ctx.skb_head)->frag_list = skb; +else + rx->ctx.skb_tail->next = skb; rx->ctx.skb_tail = skb; num_frags =0 ; }
drivers/net/ethernet/hisilicon/hns3/hnae3.h +1 -0
@@ -797,6 +797,7 @@ struct hnae3_tc_info {u8 max_tc;/* Total number of TCs */ u8 num_tc;/* Total number of enabled TCs */ bool mqprio_active; +bool dcb_ets_active; };#define HNAE3_MAX_DSCP 64
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +4 -3
@@ -1406,9 +1406,9 @@ int hns3_dbg_init(struct hnae3_handle *handle)return 0 ; out: -mutex_destroy (&handle->dbgfs_lock);debugfs_remove_recursive (handle->hnae3_dbgfs); handle->hnae3_dbgfs =NULL ; +mutex_destroy (&handle->dbgfs_lock);return ret; }
@@ -1416,6 +1416,9 @@ void hns3_dbg_uninit(struct hnae3_handle *handle) {u32 i; +debugfs_remove_recursive (handle->hnae3_dbgfs); + handle->hnae3_dbgfs =NULL ; +for (i =0 ; i <ARRAY_SIZE (hns3_dbg_cmd); i++)if (handle->dbgfs_buf[i]) {kvfree (handle->dbgfs_buf[i]);
@@ -1423,8 +1426,6 @@ void hns3_dbg_uninit(struct hnae3_handle *handle) }mutex_destroy (&handle->dbgfs_lock); -debugfs_remove_recursive (handle->hnae3_dbgfs); - handle->hnae3_dbgfs =NULL ; }void hns3_dbg_register_debugfs (const char *debugfs_dir_name)
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c +12 -7
@@ -2102,8 +2102,12 @@ static void hns3_tx_doorbell(struct hns3_enet_ring *ring, int num,*/ if (test_bit (HNS3_NIC_STATE_TX_PUSH_ENABLE , &priv->state) && num && !ring->pending_buf && num <=HNS3_MAX_PUSH_BD_NUM && doorbell) { +/* This smp_store_release() pairs with smp_load_aquire() in +* hns3_nic_reclaim_desc(). Ensure that the BD valid bit +* is updated. +*/ +smp_store_release (&ring->last_to_use, ring->next_to_use);hns3_tx_push_bd (ring, num); -WRITE_ONCE (ring->last_to_use, ring->next_to_use);return ; }
@@ -2114,6 +2118,11 @@ static void hns3_tx_doorbell(struct hns3_enet_ring *ring, int num,return ; } +/* This smp_store_release() pairs with smp_load_aquire() in +* hns3_nic_reclaim_desc(). Ensure that the BD valid bit is updated. +*/ +smp_store_release (&ring->last_to_use, ring->next_to_use); +if (ring->tqp->mem_base)hns3_tx_mem_doorbell (ring);else
@@ -2121,7 +2130,6 @@ static void hns3_tx_doorbell(struct hns3_enet_ring *ring, int num, ring->tqp->io_base + HNS3_RING_TX_RING_TAIL_REG); ring->pending_buf =0 ; -WRITE_ONCE (ring->last_to_use, ring->next_to_use); } static void hns3_tsyn(struct net_device *netdev, struct sk_buff *skb,
@@ -3307,8 +3315,6 @@ static void hns3_set_default_feature(struct net_device *netdev) netdev->priv_flags |=IFF_UNICAST_FLT ; - netdev->gso_partial_features |=NETIF_F_GSO_GRE_CSUM ; - netdev->features |=NETIF_F_HW_VLAN_CTAG_FILTER |NETIF_F_HW_VLAN_CTAG_TX |NETIF_F_HW_VLAN_CTAG_RX | NETIF_F_RXCSUM | NETIF_F_SG | NETIF_F_GSO |
@@ -3562,9 +3568,8 @@ static void hns3_reuse_buffer(struct hns3_enet_ring *ring, int i)static bool hns3_nic_reclaim_desc (struct hns3_enet_ring *ring,int *bytes,int *pkts,int budget) { -/* pair with ring->last_to_use update in hns3_tx_doorbell(), -* smp_store_release() is not used in hns3_tx_doorbell() because -* the doorbell operation already have the needed barrier operation. +/* This smp_load_acquire() pairs with smp_store_release() in +* hns3_tx_doorbell(). */ int ltu =smp_load_acquire (&ring->last_to_use);int ntc = ring->next_to_clean;
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +3 -1
@@ -776,7 +776,9 @@ static int hns3_get_link_ksettings(struct net_device *netdev,hns3_get_ksettings (h, cmd);break ;case HNAE3_MEDIA_TYPE_FIBER : -if (module_type ==HNAE3_MODULE_TYPE_CR ) +if (module_type ==HNAE3_MODULE_TYPE_UNKNOWN ) + cmd->base.port =PORT_OTHER ; +else if (module_type ==HNAE3_MODULE_TYPE_CR ) cmd->base.port =PORT_DA ;else cmd->base.port =PORT_FIBRE ;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c +5 -15
@@ -251,7 +251,7 @@ static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets)int ret;if (!(hdev->dcbx_cap &DCB_CAP_DCBX_VER_IEEE ) || - hdev->flag &HCLGE_FLAG_MQPRIO_ENABLE ) + h->kinfo.tc_info.mqprio_active)return -EINVAL ; ret =hclge_ets_validate (hdev, ets, &num_tc, &map_changed);
@@ -267,10 +267,7 @@ static int hclge_ieee_setets(struct hnae3_handle *h, struct ieee_ets *ets) }hclge_tm_schd_info_update (hdev, num_tc); -if (num_tc >1 ) - hdev->flag |=HCLGE_FLAG_DCB_ENABLE ; -else - hdev->flag &= ~HCLGE_FLAG_DCB_ENABLE ; + h->kinfo.tc_info.dcb_ets_active = num_tc >1 ; ret =hclge_ieee_ets_to_tm_info (hdev, ets);if (ret)
@@ -463,7 +460,7 @@ static u8 hclge_getdcbx(struct hnae3_handle *h)struct hclge_vport *vport =hclge_get_vport (h);struct hclge_dev *hdev = vport->back; -if (hdev->flag &HCLGE_FLAG_MQPRIO_ENABLE ) +if (h->kinfo.tc_info.mqprio_active)return 0 ;return hdev->dcbx_cap;
@@ -587,7 +584,8 @@ static int hclge_setup_tc(struct hnae3_handle *h,if (!test_bit (HCLGE_STATE_NIC_REGISTERED , &hdev->state))return -EBUSY ; -if (hdev->flag &HCLGE_FLAG_DCB_ENABLE ) + kinfo = &vport->nic.kinfo; +if (kinfo->tc_info.dcb_ets_active)return -EINVAL ; ret =hclge_mqprio_qopt_check (hdev, mqprio_qopt);
@@ -601,7 +599,6 @@ static int hclge_setup_tc(struct hnae3_handle *h,if (ret)return ret; - kinfo = &vport->nic.kinfo;memcpy (&old_tc_info, &kinfo->tc_info,sizeof (old_tc_info));hclge_sync_mqprio_qopt (&kinfo->tc_info, mqprio_qopt); kinfo->tc_info.mqprio_active = tc >0 ;
@@ -610,13 +607,6 @@ static int hclge_setup_tc(struct hnae3_handle *h,if (ret) goto err_out; - hdev->flag &= ~HCLGE_FLAG_DCB_ENABLE ; - -if (tc >1 ) - hdev->flag |=HCLGE_FLAG_MQPRIO_ENABLE ; -else - hdev->flag &= ~HCLGE_FLAG_MQPRIO_ENABLE ; -return hclge_notify_init_up (hdev); err_out:
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +7 -7
@@ -1517,7 +1517,7 @@ static int hclge_dbg_fd_tcam_read(struct hclge_dev *hdev, bool sel_x,struct hclge_desc desc[3 ];int pos =0 ;int ret, i; -u32 *req; +__le32 *req;hclge_cmd_setup_basic_desc (&desc[0 ],HCLGE_OPC_FD_TCAM_OP , true); desc[0 ].flag |=cpu_to_le16 (HCLGE_COMM_CMD_FLAG_NEXT );
@@ -1542,22 +1542,22 @@ static int hclge_dbg_fd_tcam_read(struct hclge_dev *hdev, bool sel_x, tcam_msg.loc);/* tcam_data0 ~ tcam_data1 */ - req = (u32 *)req1->tcam_data; + req = (__le32 *)req1->tcam_data;for (i =0 ; i <2 ; i++) pos +=scnprintf (tcam_buf + pos,HCLGE_DBG_TCAM_BUF_SIZE - pos, -"%08x\n" , *req++); +"%08x\n" ,le32_to_cpu (*req++));/* tcam_data2 ~ tcam_data7 */ - req = (u32 *)req2->tcam_data; + req = (__le32 *)req2->tcam_data;for (i =0 ; i <6 ; i++) pos +=scnprintf (tcam_buf + pos,HCLGE_DBG_TCAM_BUF_SIZE - pos, -"%08x\n" , *req++); +"%08x\n" ,le32_to_cpu (*req++));/* tcam_data8 ~ tcam_data12 */ - req = (u32 *)req3->tcam_data; + req = (__le32 *)req3->tcam_data;for (i =0 ; i <5 ; i++) pos +=scnprintf (tcam_buf + pos,HCLGE_DBG_TCAM_BUF_SIZE - pos, -"%08x\n" , *req++); +"%08x\n" ,le32_to_cpu (*req++));return ret; }
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +3 -2
@@ -11132,6 +11132,7 @@ static void hclge_get_mdix_mode(struct hnae3_handle *handle,static void hclge_info_show (struct hclge_dev *hdev) { +struct hnae3_handle *handle = &hdev->vport->nic;struct device *dev = &hdev->pdev->dev;dev_info (dev,"PF info begin:\n" );
@@ -11148,9 +11149,9 @@ static void hclge_info_show(struct hclge_dev *hdev)dev_info (dev,"This is %s PF\n" , hdev->flag &HCLGE_FLAG_MAIN ?"main" :"not main" );dev_info (dev,"DCB %s\n" , - hdev->flag &HCLGE_FLAG_DCB_ENABLE ?"enable" :"disable" ); + handle->kinfo.tc_info.dcb_ets_active ?"enable" :"disable" );dev_info (dev,"MQPRIO %s\n" , - hdev->flag &HCLGE_FLAG_MQPRIO_ENABLE ?"enable" :"disable" ); + handle->kinfo.tc_info.mqprio_active ?"enable" :"disable" );dev_info (dev,"Default tx spare buffer size: %u\n" , hdev->tx_spare_buf_size);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +0 -2
@@ -916,8 +916,6 @@ struct hclge_dev {#define HCLGE_FLAG_MAIN BIT(0)#define HCLGE_FLAG_DCB_CAPABLE BIT(1) -#define HCLGE_FLAG_DCB_ENABLE BIT(2) -#define HCLGE_FLAG_MQPRIO_ENABLE BIT(3)u32 flag;u32 pkt_buf_size;/* Total pf buf size for tx/rx */
drivers/net/ethernet/intel/igb/igb.h +2 -2
@@ -34,11 +34,11 @@ struct igb_adapter;/* TX/RX descriptor defines */ #define IGB_DEFAULT_TXD 256#define IGB_DEFAULT_TX_WORK 128 -#define IGB_MIN_TXD 80 +#define IGB_MIN_TXD 64#define IGB_MAX_TXD 4096#define IGB_DEFAULT_RXD 256 -#define IGB_MIN_RXD 80 +#define IGB_MIN_RXD 64#define IGB_MAX_RXD 4096#define IGB_DEFAULT_ITR 3/* dynamic */
drivers/net/ethernet/intel/igb/igb_main.c +3 -2
@@ -3877,8 +3877,9 @@ static void igb_probe_vfs(struct igb_adapter *adapter)struct pci_dev *pdev = adapter->pdev;struct e1000_hw *hw = &adapter->hw; -/* Virtualization features not supported on i210 family. */ -if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211)) +/* Virtualization features not supported on i210 and 82580 family. */ +if ((hw->mac.type == e1000_i210) || (hw->mac.type == e1000_i211) || + (hw->mac.type == e1000_82580))return ;/* Of the below we really only want the effect of getting
drivers/net/ethernet/intel/igbvf/igbvf.h +2 -2
@@ -39,11 +39,11 @@ enum latency_range {/* Tx/Rx descriptor defines */ #define IGBVF_DEFAULT_TXD 256#define IGBVF_MAX_TXD 4096 -#define IGBVF_MIN_TXD 80 +#define IGBVF_MIN_TXD 64#define IGBVF_DEFAULT_RXD 256#define IGBVF_MAX_RXD 4096 -#define IGBVF_MIN_RXD 80 +#define IGBVF_MIN_RXD 64#define IGBVF_MIN_ITR_USECS 10/* 100000 irq/sec */ #define IGBVF_MAX_ITR_USECS 10000/* 100 irq/sec */
drivers/net/ethernet/intel/igc/igc.h +2 -2
@@ -354,11 +354,11 @@ static inline u32 igc_rss_type(const union igc_adv_rx_desc *rx_desc)/* TX/RX descriptor defines */ #define IGC_DEFAULT_TXD 256#define IGC_DEFAULT_TX_WORK 128 -#define IGC_MIN_TXD 80 +#define IGC_MIN_TXD 64#define IGC_MAX_TXD 4096#define IGC_DEFAULT_RXD 256 -#define IGC_MIN_RXD 80 +#define IGC_MIN_RXD 64#define IGC_MAX_RXD 4096/* Supported Rx Buffer Sizes */
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c +15 -13
@@ -995,6 +995,7 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,u32 tsync_tx_ctl =IXGBE_TSYNCTXCTL_ENABLED ;u32 tsync_rx_ctl =IXGBE_TSYNCRXCTL_ENABLED ;u32 tsync_rx_mtrl =PTP_EV_PORT <<16 ; +u32 aflags = adapter->flags;bool is_l2 = false;u32 regval;
@@ -1012,20 +1013,20 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,case HWTSTAMP_FILTER_NONE : tsync_rx_ctl =0 ; tsync_rx_mtrl =0 ; - adapter->flags &= ~(IXGBE_FLAG_RX_HWTSTAMP_ENABLED | -IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ); + aflags &= ~(IXGBE_FLAG_RX_HWTSTAMP_ENABLED | +IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER );break ;case HWTSTAMP_FILTER_PTP_V1_L4_SYNC : tsync_rx_ctl |=IXGBE_TSYNCRXCTL_TYPE_L4_V1 ; tsync_rx_mtrl |=IXGBE_RXMTRL_V1_SYNC_MSG ; - adapter->flags |= (IXGBE_FLAG_RX_HWTSTAMP_ENABLED | -IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ); + aflags |= (IXGBE_FLAG_RX_HWTSTAMP_ENABLED | +IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER );break ;case HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ : tsync_rx_ctl |=IXGBE_TSYNCRXCTL_TYPE_L4_V1 ; tsync_rx_mtrl |=IXGBE_RXMTRL_V1_DELAY_REQ_MSG ; - adapter->flags |= (IXGBE_FLAG_RX_HWTSTAMP_ENABLED | -IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ); + aflags |= (IXGBE_FLAG_RX_HWTSTAMP_ENABLED | +IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER );break ;case HWTSTAMP_FILTER_PTP_V2_EVENT :case HWTSTAMP_FILTER_PTP_V2_L2_EVENT :
@@ -1039,8 +1040,8 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter, tsync_rx_ctl |=IXGBE_TSYNCRXCTL_TYPE_EVENT_V2 ; is_l2 = true; config->rx_filter =HWTSTAMP_FILTER_PTP_V2_EVENT ; - adapter->flags |= (IXGBE_FLAG_RX_HWTSTAMP_ENABLED | -IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ); + aflags |= (IXGBE_FLAG_RX_HWTSTAMP_ENABLED | +IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER );break ;case HWTSTAMP_FILTER_PTP_V1_L4_EVENT :case HWTSTAMP_FILTER_NTP_ALL :
@@ -1051,7 +1052,7 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,if (hw->mac.type >= ixgbe_mac_X550) { tsync_rx_ctl |=IXGBE_TSYNCRXCTL_TYPE_ALL ; config->rx_filter =HWTSTAMP_FILTER_ALL ; - adapter->flags |=IXGBE_FLAG_RX_HWTSTAMP_ENABLED ; + aflags |=IXGBE_FLAG_RX_HWTSTAMP_ENABLED ;break ; } fallthrough;
@@ -1062,8 +1063,6 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,* Delay_Req messages and hardware does not support * timestamping all packets => return error */ - adapter->flags &= ~(IXGBE_FLAG_RX_HWTSTAMP_ENABLED | -IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ); config->rx_filter =HWTSTAMP_FILTER_NONE ;return -ERANGE ; }
@@ -1095,8 +1094,8 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,IXGBE_TSYNCRXCTL_TYPE_ALL |IXGBE_TSYNCRXCTL_TSIP_UT_EN ; config->rx_filter =HWTSTAMP_FILTER_ALL ; - adapter->flags |=IXGBE_FLAG_RX_HWTSTAMP_ENABLED ; - adapter->flags &= ~IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ; + aflags |=IXGBE_FLAG_RX_HWTSTAMP_ENABLED ; + aflags &= ~IXGBE_FLAG_RX_HWTSTAMP_IN_REGISTER ; is_l2 = true;break ;default :
@@ -1129,6 +1128,9 @@ static int ixgbe_ptp_set_timestamp_mode(struct ixgbe_adapter *adapter,IXGBE_WRITE_FLUSH (hw); +/* configure adapter flags only when HW is actually configured */ + adapter->flags = aflags; +/* clear TX/RX time stamp registers, just to be sure */ ixgbe_ptp_clear_tx_timestamp (adapter);IXGBE_READ_REG (hw,IXGBE_RXSTMPH );
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +5 -0
@@ -5578,6 +5578,11 @@ static int mvpp2_ethtool_get_rxnfc(struct net_device *dev,break ;case ETHTOOL_GRXCLSRLALL :for (i =0 ; i <MVPP2_N_RFS_ENTRIES_PER_FLOW ; i++) { +if (loc == info->rule_cnt) { + ret = -EMSGSIZE ; +break ; + } +if (port->rfs_rules[i]) rules[loc++] = i; }
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +19 -2
@@ -834,6 +834,21 @@ static int nix_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block,return 0 ; } +static void nix_get_aq_req_smq (struct rvu *rvu,struct nix_aq_enq_req *req, +u16 *smq,u16 *smq_mask) +{ +struct nix_cn10k_aq_enq_req *aq_req; + +if (!is_rvu_otx2 (rvu)) { + aq_req = (struct nix_cn10k_aq_enq_req *)req; + *smq = aq_req->sq.smq; + *smq_mask = aq_req->sq_mask.smq; + }else { + *smq = req->sq.smq; + *smq_mask = req->sq_mask.smq; + } +} +static int rvu_nix_blk_aq_enq_inst (struct rvu *rvu,struct nix_hw *nix_hw,struct nix_aq_enq_req *req,struct nix_aq_enq_rsp *rsp)
@@ -845,6 +860,7 @@ static int rvu_nix_blk_aq_enq_inst(struct rvu *rvu, struct nix_hw *nix_hw,struct rvu_block *block;struct admin_queue *aq;struct rvu_pfvf *pfvf; +u16 smq, smq_mask;void *ctx, *mask;bool ena;u64 cfg;
@@ -916,13 +932,14 @@ static int rvu_nix_blk_aq_enq_inst(struct rvu *rvu, struct nix_hw *nix_hw,if (rc)return rc; +nix_get_aq_req_smq (rvu, req, &smq, &smq_mask);/* Check if SQ pointed SMQ belongs to this PF/VF or not */ if (req->ctype ==NIX_AQ_CTYPE_SQ && ((req->op ==NIX_AQ_INSTOP_INIT && req->sq.ena) || (req->op ==NIX_AQ_INSTOP_WRITE && - req->sq_mask.ena && req->sq_mask.smq && req->sq.ena))) { + req->sq_mask.ena && req->sq.ena && smq_mask))) {if (!is_valid_txschq (rvu, blkaddr,NIX_TXSCH_LVL_SMQ , - pcifunc, req->sq.smq)) + pcifunc, smq))return NIX_AF_ERR_AQ_ENQUEUE ; }
drivers/net/ethernet/mediatek/mtk_eth_soc.c +3 -0
@@ -2698,6 +2698,9 @@ static int mtk_hwlro_get_fdir_all(struct net_device *dev,int i;for (i =0 ; i <MTK_MAX_LRO_IP_CNT ; i++) { +if (cnt == cmd->rule_cnt) +return -EMSGSIZE ; +if (mac->hwlro_ip[i]) { rule_locs[cnt] = i; cnt++;
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c +2 -3
@@ -97,7 +97,6 @@ int mlx5e_tc_set_attr_rx_tun(struct mlx5e_tc_flow *flow,#if IS_ENABLED (CONFIG_INET ) &&IS_ENABLED (CONFIG_IPV6 ) else if (ip_version == 6) {int ipv6_size =MLX5_FLD_SZ_BYTES (ipv6_layout, ipv6); -struct in6_addr zerov6 = {}; daddr =MLX5_ADDR_OF (fte_match_param, spec->match_value, outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6);
@@ -105,8 +104,8 @@ int mlx5e_tc_set_attr_rx_tun(struct mlx5e_tc_flow *flow, outer_headers.src_ipv4_src_ipv6.ipv6_layout.ipv6);memcpy (&tun_attr->dst_ip.v6, daddr, ipv6_size);memcpy (&tun_attr->src_ip.v6, saddr, ipv6_size); -if (!memcmp (&tun_attr->dst_ip.v6, &zerov6,sizeof (zerov6)) || - !memcmp (&tun_attr->src_ip.v6, &zerov6,sizeof (zerov6))) +if (ipv6_addr_any (&tun_attr->dst_ip.v6) || +ipv6_addr_any (&tun_attr->src_ip.v6)) return 0; }#endif
drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c +20 -6
@@ -123,18 +123,32 @@ int mlx5_set_msix_vec_count(struct mlx5_core_dev *dev, int function_id,return ret; } -static void irq_release (struct mlx5_irq *irq) +/* mlx5_system_free_irq - Free an IRQ +* @irq: IRQ to free +* +* Free the IRQ and other resources such as rmap from the system. +* BUT doesn't free or remove reference from mlx5. +* This function is very important for the shutdown flow, where we need to +* cleanup system resoruces but keep mlx5 objects alive, +* see mlx5_irq_table_free_irqs(). +*/ +static void mlx5_system_free_irq (struct mlx5_irq *irq) { -struct mlx5_irq_pool *pool = irq->pool; - -xa_erase (&pool->irqs, irq->index);/* free_irq requires that affinity_hint and rmap will be cleared * before calling it. This is why there is asymmetry with set_rmap * which should be called after alloc_irq but before request_irq. */ irq_update_affinity_hint (irq->irqn,NULL ); -free_cpumask_var (irq->mask);free_irq (irq->irqn, &irq->nh); +} + +static void irq_release (struct mlx5_irq *irq) +{ +struct mlx5_irq_pool *pool = irq->pool; + +xa_erase (&pool->irqs, irq->index); +mlx5_system_free_irq (irq); +free_cpumask_var (irq->mask);kfree (irq); }
@@ -597,7 +611,7 @@ static void mlx5_irq_pool_free_irqs(struct mlx5_irq_pool *pool)unsigned long index;xa_for_each (&pool->irqs, index, irq) -free_irq (irq->irqn, &irq->nh); +mlx5_system_free_irq (irq); }static void mlx5_irq_pools_free_irqs (struct mlx5_irq_table *table)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +6 -4
@@ -2692,9 +2692,7 @@ static int stmmac_tx_clean(struct stmmac_priv *priv, int budget, u32 queue)/* We still have pending packets, let's call for a new scheduling */ if (tx_q->dirty_tx != tx_q->cur_tx) -hrtimer_start (&tx_q->txtimer, -STMMAC_COAL_TIMER (priv->tx_coal_timer[queue]), -HRTIMER_MODE_REL ); +stmmac_tx_timer_arm (priv, queue);__netif_tx_unlock_bh (netdev_get_tx_queue (priv->dev, queue));
@@ -2975,9 +2973,13 @@ static int stmmac_init_dma_engine(struct stmmac_priv *priv)static void stmmac_tx_timer_arm (struct stmmac_priv *priv,u32 queue) {struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; +u32 tx_coal_timer = priv->tx_coal_timer[queue]; + +if (!tx_coal_timer) +return ;hrtimer_start (&tx_q->txtimer, -STMMAC_COAL_TIMER (priv->tx_coal_timer[queue]), +STMMAC_COAL_TIMER (tx_coal_timer),HRTIMER_MODE_REL ); }
drivers/net/usb/r8152.c +3 -0
@@ -2628,6 +2628,9 @@ static int r8152_poll(struct napi_struct *napi, int budget) struct r8152 *tp = container_of(napi, struct r8152, napi);int work_done; +if (!budget) +return 0 ; + work_done =rx_bottom (tp, budget);if (work_done < budget) {
drivers/net/veth.c +3 -1
@@ -313,6 +313,7 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev) {struct veth_priv *rcv_priv, *priv =netdev_priv (dev);struct veth_rq *rq =NULL ; +int ret =NETDEV_TX_OK ;struct net_device *rcv;int length = skb->len;bool use_napi = false;
@@ -345,6 +346,7 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev) }else { drop:atomic64_inc (&priv->dropped); + ret =NET_XMIT_DROP ; }if (use_napi)
@@ -352,7 +354,7 @@ static netdev_tx_t veth_xmit(struct sk_buff *skb, struct net_device *dev)rcu_read_unlock (); -return NETDEV_TX_OK ; +return ret; }static u64 veth_stats_tx (struct net_device *dev,u64 *packets,u64 *bytes)
drivers/parisc/led.c +2 -2
@@ -56,8 +56,8 @@static int led_type__read_mostly =-1 ;static unsigned char lastleds;/* LED state from most recent update */ static unsigned int led_heartbeat__read_mostly =1 ; -static unsigned int led_diskio__read_mostly =1 ; -static unsigned int led_lanrxtx__read_mostly =1 ; +static unsigned int led_diskio__read_mostly ; +static unsigned int led_lanrxtx__read_mostly ;static char lcd_text[32 ]__read_mostly ;static char lcd_text_default[32 ]__read_mostly ;static int lcd_no_led_support__read_mostly =0 ;/* KittyHawk doesn't support LED on its LCD */
drivers/pinctrl/intel/pinctrl-cherryview.c +2 -3
@@ -1698,7 +1698,6 @@ static int chv_pinctrl_probe(struct platform_device *pdev)struct intel_community_context *cctx;struct intel_community *community;struct device *dev = &pdev->dev; -struct acpi_device *adev =ACPI_COMPANION (dev);struct intel_pinctrl *pctrl;acpi_status status;unsigned int i;
@@ -1766,7 +1765,7 @@ static int chv_pinctrl_probe(struct platform_device *pdev)if (ret)return ret; - status =acpi_install_address_space_handler (adev->handle, + status =acpi_install_address_space_handler (ACPI_HANDLE (dev), community->acpi_space_id, chv_pinctrl_mmio_access_handler,NULL , pctrl);
@@ -1783,7 +1782,7 @@ static int chv_pinctrl_remove(struct platform_device *pdev)struct intel_pinctrl *pctrl =platform_get_drvdata (pdev);const struct intel_community *community = &pctrl->communities[0 ]; -acpi_remove_address_space_handler (ACPI_COMPANION (&pdev->dev), +acpi_remove_address_space_handler (ACPI_HANDLE (&pdev->dev), community->acpi_space_id, chv_pinctrl_mmio_access_handler);
drivers/platform/mellanox/Kconfig +2 -2
@@ -80,8 +80,8 @@ config MLXBF_PMC config NVSW_SN2201 tristate "Nvidia SN2201 platform driver support" - depends on HWMON - depends on I2C + depends on HWMON && I2C + depends on ACPI || COMPILE_TEST select REGMAP_I2C help This driver provides support for the Nvidia SN2201 platform.
drivers/platform/mellanox/mlxbf-pmc.c +14 -27
118 lines not on this page · raw message
drivers/platform/mellanox/mlxbf-tmfifo.c +66 -24
50 lines not on this page · raw message
drivers/pwm/pwm-atmel-tcb.c +35 -35
70 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_init.c +149 -85
234 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_inline.h +56 -1
57 lines not on this page · raw message
drivers/video/backlight/gpio_backlight.c +1 -2
Lines of this file are not shown. View the raw message.
fs/btrfs/extent-tree.c +23 -20
43 lines not on this page · raw message
fs/smb/client/cifs_dfs_ref.c +40 -60
100 lines not on this page · raw message
kernel/bpf/trampoline.c +67 -14
81 lines not on this page · raw message
mm/vmscan.c +31 -19
50 lines not on this page · raw message
net/core/skbuff.c +21 -28
49 lines not on this page · raw message
net/ipv4/inet_hashtables.c +22 -21
43 lines not on this page · raw message
tools/perf/pmu-events/arch/powerpc/power10/cache.json +2 -2
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/floating_point.json deleted +0 -7
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/frontend.json +15 -15
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/marked.json +10 -20
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/memory.json +3 -3
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/metrics.json +0 -6
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/others.json +24 -29
53 lines not on this page · raw message
tools/perf/pmu-events/arch/powerpc/power10/pipeline.json +10 -20
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/pmc.json +2 -2
Lines of this file are not shown. View the raw message.
tools/perf/pmu-events/arch/powerpc/power10/translation.json +3 -8
Lines of this file are not shown. View the raw message.
tools/perf/tests/shell/stat_bpf_counters.sh +2 -2
Lines of this file are not shown. View the raw message.
tools/perf/tests/shell/stat_bpf_counters_cgrp.sh +12 -16
Lines of this file are not shown. View the raw message.
tools/perf/ui/browsers/hists.c +25 -35
60 lines not on this page · raw message
tools/testing/selftests/kselftest/runner.sh +2 -1
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.