Skip to content
  1. Jul 20, 2021
    • Eric Dumazet's avatar
      net/tcp_fastopen: fix data races around tfo_active_disable_stamp · 6f20c8ad
      Eric Dumazet authored
      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: default avatarEric Dumazet <edumazet@google.com>
      Cc: Wei Wang <weiwan@google.com>
      Cc: Yuchung Cheng <ycheng@google.com>
      Cc: Neal Cardwell <ncardwell@google.com>
      Acked-by: default avatarWei Wang <weiwan@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6f20c8ad
    • David S. Miller's avatar
      Merge branch 'dt-bindinga-dwmac' · a0050653
      David S. Miller authored
      
      
      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: default avatarDavid S. Miller <davem@davemloft.net>
      a0050653
    • Joakim Zhang's avatar
      arm64: dts: imx8mp: change interrupt order per dt-binding · 77e5253d
      Joakim Zhang authored
      
      
      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: default avatarJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      77e5253d
    • Joakim Zhang's avatar
      dt-bindings: net: imx-dwmac: convert imx-dwmac bindings to yaml · e314a07e
      Joakim Zhang authored
      
      
      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: default avatarJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e314a07e
    • Joakim Zhang's avatar
      dt-bindings: net: snps,dwmac: add missing DWMAC IP version · bdad810e
      Joakim Zhang authored
      
      
      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: default avatarJoakim Zhang <qiangqing.zhang@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bdad810e
    • Randy Dunlap's avatar
      net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition · b16f3299
      Randy Dunlap authored
      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: default avatarRandy 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: default avatarDavid S. Miller <davem@davemloft.net>
      b16f3299
  2. Jul 19, 2021
  3. Jul 17, 2021
  4. Jul 16, 2021
  5. Jul 15, 2021
    • David S. Miller's avatar
      Merge branch 'r8152-pm-fixxes' · 3ffd3dad
      David S. Miller authored
      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: default avatarDavid S. Miller <davem@davemloft.net>
      3ffd3dad
    • Takashi Iwai's avatar
      r8152: Fix a deadlock by doubly PM resume · 776ac63a
      Takashi Iwai authored
      r8152 driver sets up the MAC address at reset-resume, while
      rtl8152_set_mac_address() has the temporary autopm get/put.  This may
      lead to a deadlock as the PM lock has been already taken for the
      execution of the runtime PM callback.
      
      This patch adds the workaround to avoid the superfluous autpm when
      called from rtl8152_reset_resume().
      
      Link: https://bugzilla.suse.com/show_bug.cgi?id=1186194
      
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      776ac63a