1. 20 7月, 2021 7 次提交
    • S
      octeontx2-af: Enable transmit side LBK link · fa2bf6ba
      Subbaraya Sundeep 提交于
      For enabling VF-VF switching the packets egressing
      out of CGX mapped VFs needed to be sent to LBK
      so that same packets are received back to the system.
      But the LBK link also needs to be enabled in addition
      to a VF's mapped CGX_LMAC link otherwise hardware
      raises send error interrupt indicating selected LBK
      link is not enabled in NIX_AF_TL3_TL2X_LINKX_CFG register.
      Hence this patch enables all LBK links in
      TL3_TL2_LINKX_CFG registers.
      Also to enable packet flow between PFs/VFs of NIX0
      to PFs/VFs of NIX1(in 98xx silicon) the NPC TX DMAC
      rules has to be installed such that rules must be hit
      for any TX interface i.e., NIX0-TX or NIX1-TX provided
      DMAC match creteria is met. Hence this patch changes the
      behavior such that MCAM is programmed to match with any
      NIX0/1-TX interface for TX rules.
      Signed-off-by: NSubbaraya Sundeep <sbhatta@marvell.com>
      Signed-off-by: NSunil Kovvuri Goutham <sgoutham@marvell.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fa2bf6ba
    • E
      net/tcp_fastopen: fix data races around tfo_active_disable_stamp · 6f20c8ad
      Eric Dumazet 提交于
      tfo_active_disable_stamp is read and written locklessly.
      We need to annotate these accesses appropriately.
      
      Then, we need to perform the atomic_inc(tfo_active_disable_times)
      after the timestamp has been updated, and thus add barriers
      to make sure tcp_fastopen_active_should_disable() wont read
      a stale timestamp.
      
      Fixes: cf1ef3f0 ("net/tcp_fastopen: Disable active side TFO in certain scenarios")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Wei Wang <weiwan@google.com>
      Cc: Yuchung Cheng <ycheng@google.com>
      Cc: Neal Cardwell <ncardwell@google.com>
      Acked-by: NWei Wang <weiwan@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6f20c8ad
    • D
      Merge branch 'dt-bindinga-dwmac' · a0050653
      David S. Miller 提交于
      Joakim Zhang says:
      
      ====================
      dt-bindings: net: dwmac-imx: convert
      
      This patch set intends to convert imx dwmac binding to schema, and fixes
      found by dt_binding_check and dtbs_check.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a0050653
    • J
      arm64: dts: imx8mp: change interrupt order per dt-binding · 77e5253d
      Joakim Zhang 提交于
      This patch changs interrupt order which found by dtbs_check.
      
      $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
      arch/arm64/boot/dts/freescale/imx8mp-evk.dt.yaml: ethernet@30bf0000: interrupt-names:0: 'macirq' was expected
      arch/arm64/boot/dts/freescale/imx8mp-evk.dt.yaml: ethernet@30bf0000: interrupt-names:1: 'eth_wake_irq' was expected
      
      According to Documentation/devicetree/bindings/net/snps,dwmac.yaml, we
      should list interrupt in it's order.
      Signed-off-by: NJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      77e5253d
    • J
      dt-bindings: net: imx-dwmac: convert imx-dwmac bindings to yaml · e314a07e
      Joakim Zhang 提交于
      In order to automate the verification of DT nodes covert imx-dwmac to
      nxp,dwmac-imx.yaml, and pass below checking.
      
      $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
      $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
      Signed-off-by: NJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e314a07e
    • J
      dt-bindings: net: snps,dwmac: add missing DWMAC IP version · bdad810e
      Joakim Zhang 提交于
      Add missing DWMAC IP version in snps,dwmac.yaml which found by below
      command, as NXP i.MX8 families support SNPS DWMAC 5.10a IP.
      
      $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/net/nxp,dwmac-imx.yaml
      Documentation/devicetree/bindings/net/nxp,dwmac-imx.example.dt.yaml:
      ethernet@30bf0000: compatible: None of ['nxp,imx8mp-dwmac-eqos', 'snps,dwmac-5.10a'] are valid under the given schema
      Signed-off-by: NJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bdad810e
    • R
      net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition · b16f3299
      Randy Dunlap 提交于
      Building on ARCH=arc causes a "redefined" warning, so rename this
      driver's CACHE_LINE_MASK to avoid the warning.
      
      ../drivers/net/ethernet/hisilicon/hip04_eth.c:134: warning: "CACHE_LINE_MASK" redefined
        134 | #define CACHE_LINE_MASK   0x3F
      In file included from ../include/linux/cache.h:6,
                       from ../include/linux/printk.h:9,
                       from ../include/linux/kernel.h:19,
                       from ../include/linux/list.h:9,
                       from ../include/linux/module.h:12,
                       from ../drivers/net/ethernet/hisilicon/hip04_eth.c:7:
      ../arch/arc/include/asm/cache.h:17: note: this is the location of the previous definition
         17 | #define CACHE_LINE_MASK  (~(L1_CACHE_BYTES - 1))
      
      Fixes: d413779c ("net: hisilicon: Add an tx_desc to adapt HI13X1_GMAC")
      Signed-off-by: NRandy Dunlap <rdunlap@infradead.org>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Jiangfeng Xiao <xiaojiangfeng@huawei.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jakub Kicinski <kuba@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b16f3299
  2. 19 7月, 2021 14 次提交
  3. 17 7月, 2021 4 次提交
  4. 16 7月, 2021 14 次提交
  5. 15 7月, 2021 1 次提交
    • D
      Merge branch 'r8152-pm-fixxes' · 3ffd3dad
      David S. Miller 提交于
      Takashi Iwai says:
      
      ====================
      r8152: Fix a couple of PM problems
      
      it seems that r8152 driver suffers from the deadlock at both runtime
      and system PM.  Formerly, it was seen more often at hibernation
      resume, but now it's triggered more frequently, as reported in SUSE
      Bugzilla:
        https://bugzilla.suse.com/show_bug.cgi?id=1186194
      
      While debugging the problem, I stumbled on a few obvious bugs and here
      is the results with two patches for addressing the resume problem.
      
      ***
      
      However, the story doesn't end here, unfortunately, and those patches
      don't seem sufficing.  The rest major problem is that the driver calls
      napi_disable() and napi_enable() in the PM suspend callbacks.  This
      makes the system stalling at (runtime-)suspend.  If we drop
      napi_disable() and napi_enable() calls in the PM suspend callbacks, it
      starts working (that was the result in Bugzilla comment 13):
        https://bugzilla.suse.com/show_bug.cgi?id=1186194#c13
      
      So, my patches aren't enough and we still need to investigate
      further.  It'd be appreciated if anyone can give a fix or a hint for
      more debugging.  The usage of napi_disable() at PM callbacks is unique
      in this driver and looks rather suspicious to me; but I'm no expert in
      this area so I might be wrong...
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ffd3dad