Skip to content
  1. Feb 12, 2022
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · e47ca403
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Enable Cortex-A510 erratum 2051678 by default as we do with other
         errata.
      
       - arm64 IORT: Check the node revision for PMCG resources to cope with
         old firmware based on a broken revision of the spec that had no way
         to describe the second register page (when an implementation is using
         the recommended RELOC_CTRS feature).
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        ACPI/IORT: Check node revision for PMCG resources
        arm64: Enable Cortex-A510 erratum 2051678 by default
      e47ca403
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 883fd0ab
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These revert two commits that turned out to be problematic and fix two
        issues related to wakeup from suspend-to-idle on x86.
      
        Specifics:
      
         - Revert a recent change that attempted to avoid issues with
           conflicting address ranges during PCI initialization, because it
           turned out to introduce a regression (Hans de Goede).
      
         - Revert a change that limited EC GPE wakeups from suspend-to-idle to
           systems based on Intel hardware, because it turned out that systems
           based on hardware from other vendors depended on that functionality
           too (Mario Limonciello).
      
         - Fix two issues related to the handling of wakeup interrupts and
           wakeup events signaled through the EC GPE during suspend-to-idle on
           x86 (Rafael Wysocki)"
      
      * tag 'acpi-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        x86/PCI: revert "Ignore E820 reservations for bridge windows on newer systems"
        PM: s2idle: ACPI: Fix wakeup interrupts handling
        ACPI: PM: s2idle: Cancel wakeup before dispatching EC GPE
        ACPI: PM: Revert "Only mark EC GPE for wakeup on Intel systems"
      883fd0ab
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v5.16-rc3-fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 8ce964b5
      Linus Torvalds authored
      Pull gfs2 fixes from Andreas Gruenbacher:
      
       - Revert debug commit that causes unexpected data corruption
      
       - Fix muti-block reservation regression
      
      * tag 'gfs2-v5.16-rc3-fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: Fix gfs2_release for non-writers regression
        Revert "gfs2: check context in gfs2_glock_put"
      8ce964b5
    • Linus Torvalds's avatar
      Merge tag 'block-5.17-2022-02-11' of git://git.kernel.dk/linux-block · cf26a236
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request
            - nvme-tcp: fix bogus request completion when failing to send AER
              (Sagi Grimberg)
            - add the missing nvme_complete_req tracepoint for batched
              completion (Bean Huo)
      
       - Revert of the loop async autoclear issue that has continued to plague
         us this release. A few patchsets exists to improve this, but they are
         too invasive to be considered at this point (Tetsuo)
      
      * tag 'block-5.17-2022-02-11' of git://git.kernel.dk/linux-block:
        loop: revert "make autoclear operation asynchronous"
        nvme-tcp: fix bogus request completion when failing to send AER
        nvme: add nvme_complete_req tracepoint for batched completion
      cf26a236
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.17-2022-02-11' of git://git.kernel.dk/linux-block · 199b7f84
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Fix a false-positive warning from an older gcc (Alviro)
      
       - Allow oom killer invocations from io_uring_setup (Shakeel)
      
      * tag 'io_uring-5.17-2022-02-11' of git://git.kernel.dk/linux-block:
        mm: io_uring: allow oom-killer from io_uring_setup
        io_uring: Clean up a false-positive warning from GCC 9.3.0
      199b7f84
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 0b9df436
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - use sleeping variants of GPIO accessors where needed
         in gpio-aggregator
      
       - never return kernel's internal error codes to user-space
         in gpiolib core
      
       - use the correct register for reading output values in
         gpio-sifive
      
       - fix line hogging in gpio-sim
      
      * tag 'gpio-fixes-for-v5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: sim: fix hogs with custom chip labels
        gpio: sifive: use the correct register to read output values
        gpiolib: Never return internal error codes to user space
        gpio: aggregator: Fix calling into sleeping GPIO controllers
      0b9df436
    • Linus Torvalds's avatar
      Merge tag 'ata-5.17-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · 284fce04
      Linus Torvalds authored
      Pull ata fixes from Damien Le Moal:
       "A couple of additional fixes for 5.17-rc4:
      
         - Fix compilation warnings in the sata_fsl driver (powerpc) (me)
      
         - Disable TRIM commands on M88V29 devices as these commands are
           failing despite the device reporting it supports TRIM (Zoltan)"
      
      * tag 'ata-5.17-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: libata-core: Disable TRIM on M88V29
        ata: sata_fsl: fix sscanf() and sysfs_emit() format strings
      284fce04
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-02-11' of git://anongit.freedesktop.org/drm/drm · c3ee3a9e
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes pull, mostly i915 and amd fixes, along with a
        maintainers update for fbdev core.
      
        Otherwise just some build fixes and vc4 HDMI fixes.
      
        fbdev:
         - MAINTAINERS: add Daniel as fbdev core module maintainer
         - build warning fix
         - implicit type cast fix
      
        panel:
         - simple: Fix assignments from panel_dpi_probe()
      
        privacy-screen:
         - fix docs warning
      
        i915:
         - non-x86 build fix
         - ttm error propogation fix
         - drrs on hsw/ivb disabled
         - BIOS readout fixes
         - missing stackdepot oops fix
      
        amd:
         - DCN 3.1 display fixes
         - GC 10.3.1 harvest fix
         - Page flip irq fix
         - hwmon label fix
         - DCN 2.0 display fix
      
        rockchip:
         - fix HDMI error cleanup
         - fix RK3399 VOP register fields
      
        vc4:
         - HDMI fixes
         - remove redundant code"
      
      * tag 'drm-fixes-2022-02-11' of git://anongit.freedesktop.org/drm/drm: (25 commits)
        drm/amdgpu/display: change pipe policy for DCN 2.0
        drm/amd/pm: fix hwmon node of power1_label create issue
        drm/amd/display: keep eDP Vdd on when eDP stream is already enabled
        drm/amd/display: fix yellow carp wm clamping
        drm/amd/display: Cap pflip irqs per max otg number
        drm/amdgpu: add utcl2_harvest to gc 10.3.1
        display/amd: decrease message verbosity about watermarks table failure
        drm/rockchip: vop: Correct RK3399 VOP register fields
        drm/rockchip: dw_hdmi: Do not leave clock enabled in error case
        MAINTAINERS: Add entry for fbdev core
        fbcon: Avoid 'cap' set but not used warning
        drm/privacy-screen: Fix sphinx warning
        drm/i915: Workaround broken BIOS DBUF configuration on TGL/RKL
        drm/i915: Populate pipe dbuf slices more accurately during readout
        drm/i915: Allow !join_mbus cases for adlp+ dbuf configuration
        drm/i915: Fix header test for !CONFIG_X86
        drm/i915/ttm: Return some errors instead of trying memcpy move
        drm/i915: Disable DRRS on IVB/HSW port != A
        drm/i915: Fix oops due to missing stack depot
        drm/vc4: crtc: Fix redundant variable assignment
        ...
      c3ee3a9e
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.17-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 32f6c5d0
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fixes to the RTLA tooling
      
       - A fix to a tp_printk overriding tp_printk_stop_on_boot on the
         command line
      
      * tag 'trace-v5.17-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Fix tp_printk option related with tp_printk_stop_on_boot
        MAINTAINERS: Add RTLA entry
        rtla: Fix segmentation fault when failing to enable -t
        rtla/trace: Error message fixup
        rtla/utils: Fix session duration parsing
        rtla: Follow kernel version
      32f6c5d0
    • Bob Peterson's avatar
      gfs2: Fix gfs2_release for non-writers regression · d3add1a9
      Bob Peterson authored
      When a file is opened for writing, the vfs code (do_dentry_open)
      calls get_write_access for the inode, thus incrementing the inode's write
      count. That writer normally then creates a multi-block reservation for
      the inode (i_res) that can be re-used by other writers, which speeds up
      writes for applications that stupidly loop on open/write/close.
      When the writes are all done, the multi-block reservation should be
      deleted when the file is closed by the last "writer."
      
      Commit 0ec9b9ea broke that concept when it moved the call to
      gfs2_rs_delete before the check for FMODE_WRITE.  Non-writers have no
      business removing the multi-block reservations of writers. In fact, if
      someone opens and closes the file for RO while a writer has a
      multi-block reservation, the RO closer will delete the reservation
      midway through the write, and this results in:
      
      kernel BUG at fs/gfs2/rgrp.c:677! (or thereabouts) which is:
      BUG_ON(rs->rs_requested); from function gfs2_rs_deltree.
      
      This patch moves the check back inside the check for FMODE_WRITE.
      
      Fixes: 0ec9b9ea
      
       ("gfs2: Check for active reservation in gfs2_release")
      Cc: stable@vger.kernel.org # v5.12+
      Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
      Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
      d3add1a9
    • Andreas Gruenbacher's avatar
      Revert "gfs2: check context in gfs2_glock_put" · 356b8103
      Andreas Gruenbacher authored
      It turns out that the might_sleep() call that commit 660a6126 adds
      is triggering occasional data corruption in testing.  We're not sure
      about the root cause yet, but since this commit was added as a debugging
      aid only, revert it for now.
      
      This reverts commit 660a6126.
      
      Fixes: 660a6126
      
       ("gfs2: check context in gfs2_glock_put")
      Cc: stable@vger.kernel.org # v5.16+
      Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
      356b8103
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-x86' · 27a98fe6
      Rafael J. Wysocki authored
      Merge a revert of a problematic commit for 5.17-rc4.
      
      * acpi-x86:
        x86/PCI: revert "Ignore E820 reservations for bridge windows on newer systems"
      27a98fe6
  2. Feb 11, 2022
    • Tetsuo Handa's avatar
      loop: revert "make autoclear operation asynchronous" · bf23747e
      Tetsuo Handa authored
      The kernel test robot is reporting that xfstest which does
      
        umount ext2 on xfs
        umount xfs
      
      sequence started failing, for commit 322c4293
      
       ("loop: make
      autoclear operation asynchronous") removed a guarantee that fput() of
      backing file is processed before lo_release() from close() returns to
      user mode.
      
      And syzbot is reporting that deferring destroy_workqueue() from
      __loop_clr_fd() to a WQ context did not help [1]. Revert that commit.
      
      Link: https://syzkaller.appspot.com/bug?extid=831661966588c802aae9 [1]
      Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
      Acked-by: default avatarJan Kara <jack@suse.cz>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Reported-by: default avatarsyzbot <syzbot+831661966588c802aae9@syzkaller.appspotmail.com>
      Signed-off-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Link: https://lore.kernel.org/r/20220211071554.3424-1-penguin-kernel@I-love.SAKURA.ne.jp
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      bf23747e
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.17-2022-02-09' of... · 95e875bd
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-5.17-2022-02-09' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.17-2022-02-09:
      
      amdgpu:
      - DCN 3.1 display fixes
      - GC 10.3.1 harvest fix
      - Page flip irq fix
      - hwmon label fix
      - DCN 2.0 display fix
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220210041137.5926-1-alexander.deucher@amd.com
      95e875bd
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2022-02-10' of... · 78306438
      Dave Airlie authored
      
      Merge tag 'drm-intel-fixes-2022-02-10' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Build fix for non-x86 platforms after remap_io_mmapping changes. (Lucas De Marchi)
      - Correctly propagate errors during object migration blits. (Thomas Hellström)
      - Disable DRRS support on HSW/IVB where it is not implemented yet. (Ville Syrjälä)
      - Correct pipe dbuf BIOS configuration during readout. (Ville Syrjälä)
      - Properly sanitise BIOS buf configuration on ADL-P+ for !join_mbus cases. (Ville Syrjälä)
      - Fix oops due to missing stack depot. (Ville Syrjälä)
      - Workaround broken BIOS DBUF configuration on TGL/RKL. (Ville Syrjälä)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YgTuYAtpaV3XAGmx@tursulin-mobl2
      78306438
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2022-02-10' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · df2bb4dc
      Dave Airlie authored
      
      
       * drm/panel: simple: Fix assignments from panel_dpi_probe()
       * drm/privacy-screen: Cleanups
       * drm/rockchip: Fix HDMI error cleanup; Fix RK3399 VOP register fields
       * drm/vc4: HDMI fixes; Cleanups
       * fbdev: Add fbdev core module with Daniel as maintainer; Cleanups
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YgTf1Zsflzq3JSFo@linux-uq9g
      df2bb4dc
    • Linus Torvalds's avatar
      Merge tag 'net-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · f1baf68e
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from netfilter and can.
      
      Current release - new code bugs:
      
         - sparx5: fix get_stat64 out-of-bound access and crash
      
         - smc: fix netdev ref tracker misuse
      
        Previous releases - regressions:
      
         - eth: ixgbevf: require large buffers for build_skb on 82599VF, avoid
           overflows
      
         - eth: ocelot: fix all IP traffic getting trapped to CPU with PTP
           over IP
      
         - bonding: fix rare link activation misses in 802.3ad mode
      
        Previous releases - always broken:
      
         - tcp: fix tcp sock mem accounting in zero-copy corner cases
      
         - remove the cached dst when uncloning an skb dst and its metadata,
           since we only have one ref it'd lead to an UaF
      
         - netfilter:
            - conntrack: don't refresh sctp entries in closed state
            - conntrack: re-init state for retransmitted syn-ack, avoid
              connection establishment getting stuck with strange stacks
            - ctnetlink: disable helper autoassign, avoid it getting lost
            - nft_payload: don't allow transport header access for fragments
      
         - dsa: fix use of devres for mdio throughout drivers
      
         - eth: amd-xgbe: disable interrupts during pci removal
      
         - eth: dpaa2-eth: unregister netdev before disconnecting the PHY
      
         - eth: ice: fix IPIP and SIT TSO offload"
      
      * tag 'net-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (53 commits)
        net: dsa: mv88e6xxx: fix use-after-free in mv88e6xxx_mdios_unregister
        net: mscc: ocelot: fix mutex lock error during ethtool stats read
        ice: Avoid RTNL lock when re-creating auxiliary device
        ice: Fix KASAN error in LAG NETDEV_UNREGISTER handler
        ice: fix IPIP and SIT TSO offload
        ice: fix an error code in ice_cfg_phy_fec()
        net: mpls: Fix GCC 12 warning
        dpaa2-eth: unregister the netdev before disconnecting from the PHY
        skbuff: cleanup double word in comment
        net: macb: Align the dma and coherent dma masks
        mptcp: netlink: process IPv6 addrs in creating listening sockets
        selftests: mptcp: add missing join check
        net: usb: qmi_wwan: Add support for Dell DW5829e
        vlan: move dev_put into vlan_dev_uninit
        vlan: introduce vlan_dev_free_egress_priority
        ax25: fix UAF bugs of net_device caused by rebinding operation
        net: dsa: fix panic when DSA master device unbinds on shutdown
        net: amd-xgbe: disable interrupts during pci removal
        tipc: rate limit warning for received illegal binding update
        net: mdio: aspeed: Add missing MODULE_DEVICE_TABLE
        ...
      f1baf68e
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-fixes-5.17-rc4' of... · 16f7432c
      Linus Torvalds authored
      Merge tag 'linux-kselftest-fixes-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fixes from Shuah Khan:
       "Build and run-time fixes to pidfd, clone3, and ir tests"
      
      * tag 'linux-kselftest-fixes-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests/ir: fix build with ancient kernel headers
        selftests: fixup build warnings in pidfd / clone3 tests
        pidfd: fix test failure due to stack overflow on some arches
      16f7432c
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-kunit-fixes-5.17-rc4' of... · ff008548
      Linus Torvalds authored
      Merge tag 'linux-kselftest-kunit-fixes-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull KUnit fixes from Shuah Khan:
       "Fixes to the test and usage documentation"
      
      * tag 'linux-kselftest-kunit-fixes-5.17-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        Documentation: KUnit: Fix usage bug
        kunit: fix missing f in f-string in run_checks.py
      ff008548
    • Vladimir Oltean's avatar
      net: dsa: mv88e6xxx: fix use-after-free in mv88e6xxx_mdios_unregister · 51a04ebf
      Vladimir Oltean authored
      Since struct mv88e6xxx_mdio_bus *mdio_bus is the bus->priv of something
      allocated with mdiobus_alloc_size(), this means that mdiobus_free(bus)
      will free the memory backing the mdio_bus as well. Therefore, the
      mdio_bus->list element is freed memory, but we continue to iterate
      through the list of MDIO buses using that list element.
      
      To fix this, use the proper list iterator that handles element deletion
      by keeping a copy of the list element next pointer.
      
      Fixes: f53a2ce8
      
       ("net: dsa: mv88e6xxx: don't use devres for mdiobus")
      Reported-by: default avatarRafael Richter <rafael.richter@gin.de>
      Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
      Link: https://lore.kernel.org/r/20220210174017.3271099-1-vladimir.oltean@nxp.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      51a04ebf
    • Jakub Kicinski's avatar
      Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue · a19f7d7d
      Jakub Kicinski authored
      
      
      Tony Nguyen says:
      
      ====================
      Intel Wired LAN Driver Updates 2022-02-10
      
      Dan Carpenter propagates an error in FEC configuration.
      
      Jesse fixes TSO offloads of IPIP and SIT frames.
      
      Dave adds a dedicated LAG unregister function to resolve a KASAN error
      and moves auxiliary device re-creation after LAG removal to the service
      task to avoid issues with RTNL lock.
      
      * '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue:
        ice: Avoid RTNL lock when re-creating auxiliary device
        ice: Fix KASAN error in LAG NETDEV_UNREGISTER handler
        ice: fix IPIP and SIT TSO offload
        ice: fix an error code in ice_cfg_phy_fec()
      ====================
      
      Link: https://lore.kernel.org/r/20220210170515.2609656-1-anthony.l.nguyen@intel.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      a19f7d7d
    • Colin Foster's avatar
      net: mscc: ocelot: fix mutex lock error during ethtool stats read · 7fbf6795
      Colin Foster authored
      
      
      An ongoing workqueue populates the stats buffer. At the same time, a user
      might query the statistics. While writing to the buffer is mutex-locked,
      reading from the buffer wasn't. This could lead to buggy reads by ethtool.
      
      This patch fixes the former blamed commit, but the bug was introduced in
      the latter.
      
      Signed-off-by: default avatarColin Foster <colin.foster@in-advantage.com>
      Fixes: 1e1caa97 ("ocelot: Clean up stats update deferred work")
      Fixes: a556c76a
      
       ("net: mscc: Add initial Ocelot switch support")
      Reported-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
      Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
      Link: https://lore.kernel.org/all/20220210150451.416845-2-colin.foster@in-advantage.com/
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      7fbf6795
    • Dave Ertman's avatar
      ice: Avoid RTNL lock when re-creating auxiliary device · 5dbbbd01
      Dave Ertman authored
      If a call to re-create the auxiliary device happens in a context that has
      already taken the RTNL lock, then the call flow that recreates auxiliary
      device can hang if there is another attempt to claim the RTNL lock by the
      auxiliary driver.
      
      To avoid this, any call to re-create auxiliary devices that comes from
      an source that is holding the RTNL lock (e.g. netdev notifier when
      interface exits a bond) should execute in a separate thread.  To
      accomplish this, add a flag to the PF that will be evaluated in the
      service task and dealt with there.
      
      Fixes: f9f5301e
      
       ("ice: Register auxiliary device to provide RDMA")
      Signed-off-by: default avatarDave Ertman <david.m.ertman@intel.com>
      Reviewed-by: default avatarJonathan Toppins <jtoppins@redhat.com>
      Tested-by: default avatarGurucharan G <gurucharanx.g@intel.com>
      Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
      5dbbbd01
    • Dave Ertman's avatar
      ice: Fix KASAN error in LAG NETDEV_UNREGISTER handler · bea1898f
      Dave Ertman authored
      Currently, the same handler is called for both a NETDEV_BONDING_INFO
      LAG unlink notification as for a NETDEV_UNREGISTER call.  This is
      causing a problem though, since the netdev_notifier_info passed has
      a different structure depending on which event is passed.  The problem
      manifests as a call trace from a BUG: KASAN stack-out-of-bounds error.
      
      Fix this by creating a handler specific to NETDEV_UNREGISTER that only
      is passed valid elements in the netdev_notifier_info struct for the
      NETDEV_UNREGISTER event.
      
      Also included is the removal of an unbalanced dev_put on the peer_netdev
      and related braces.
      
      Fixes: 6a8b3572
      
       ("ice: Respond to a NETDEV_UNREGISTER event for LAG")
      Signed-off-by: default avatarDave Ertman <david.m.ertman@intel.com>
      Acked-by: default avatarJonathan Toppins <jtoppins@redhat.com>
      Tested-by: default avatarSunitha Mekala <sunithax.d.mekala@intel.com>
      Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
      bea1898f
    • Jesse Brandeburg's avatar
      ice: fix IPIP and SIT TSO offload · 46b699c5
      Jesse Brandeburg authored
      The driver was avoiding offload for IPIP (at least) frames due to
      parsing the inner header offsets incorrectly when trying to check
      lengths.
      
      This length check works for VXLAN frames but fails on IPIP frames
      because skb_transport_offset points to the inner header in IPIP
      frames, which meant the subtraction of transport_header from
      inner_network_header returns a negative value (-20).
      
      With the code before this patch, everything continued to work, but GSO
      was being used to segment, causing throughputs of 1.5Gb/s per thread.
      After this patch, throughput is more like 10Gb/s per thread for IPIP
      traffic.
      
      Fixes: e94d4478
      
       ("ice: Implement filter sync, NDO operations and bump version")
      Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
      Reviewed-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
      Tested-by: default avatarGurucharan G <gurucharanx.g@intel.com>
      Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
      46b699c5
  3. Feb 10, 2022