1. 19 11月, 2019 3 次提交
  2. 01 11月, 2019 1 次提交
    • V
      bnxt_en: Add support to collect crash dump via ethtool · 0b0eacf3
      Vasundhara Volam 提交于
      Driver supports 2 types of core dumps.
      
      1. Live dump - Firmware dump when system is up and running.
      2. Crash dump - Dump which is collected during firmware crash
                      that can be retrieved after recovery.
      Crash dump is currently supported only on specific 58800 chips
      which can be retrieved using OP-TEE API only, as firmware cannot
      access this region directly.
      
      User needs to set the dump flag using following command before
      initiating the dump collection:
      
          $ ethtool -W|--set-dump eth0 N
      
      Where N is "0" for live dump and "1" for crash dump
      
      Command to collect the dump after setting the flag:
      
          $ ethtool -w eth0 data Filename
      
      v3: Modify set_dump to support even when CONFIG_TEE_BNXT_FW=n.
      Also change log message to netdev_info().
      
      Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
      Cc: Michael Chan <michael.chan@broadcom.com>
      Signed-off-by: NVasundhara Volam <vasundhara-v.volam@broadcom.com>
      Signed-off-by: NSheetal Tigadoli <sheetal.tigadoli@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0b0eacf3
  3. 16 9月, 2019 1 次提交
  4. 31 8月, 2019 3 次提交
  5. 19 8月, 2019 1 次提交
  6. 30 7月, 2019 3 次提交
  7. 09 7月, 2019 2 次提交
  8. 01 7月, 2019 1 次提交
  9. 23 5月, 2019 1 次提交
  10. 06 5月, 2019 3 次提交
  11. 20 12月, 2018 1 次提交
    • M
      bnxt_en: Fix ethtool self-test loopback. · 84404d5f
      Michael Chan 提交于
      The current code has 2 problems.  It assumes that the RX ring for
      the loopback packet is combined with the TX ring.  This is not
      true if the ethtool channels are set to non-combined mode.  The
      second problem is that it won't work on 57500 chips without
      adjusting the logic to get the proper completion ring (cpr) pointer.
      Fix both issues by locating the proper cpr pointer through the RX
      ring.
      
      Fixes: e44758b7 ("bnxt_en: Use bnxt_cp_ring_info struct pointer as parameter for RX path.")
      Signed-off-by: NMichael Chan <michael.chan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      84404d5f
  12. 18 12月, 2018 5 次提交
  13. 16 11月, 2018 2 次提交
  14. 16 10月, 2018 3 次提交
  15. 14 8月, 2018 2 次提交
    • A
      bnxt_en: take coredump_record structure off stack · 1bbf3aed
      Arnd Bergmann 提交于
      The bnxt_coredump_record structure is very long, causing a warning
      about possible stack overflow on 32-bit architectures:
      
      drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c: In function 'bnxt_get_coredump':
      drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:2989:1: error: the frame size of 1188 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
      
      I could not see any reason to operate on an on-stack copy of the
      structure before copying it back into the caller-provided buffer, which
      also simplifies the code here.
      
      Fixes: 6c5657d0 ("bnxt_en: Add support for ethtool get dump.")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1bbf3aed
    • A
      bnxt_en: avoid string overflow for record->system_name · 3d46eee5
      Arnd Bergmann 提交于
      The utsname()->nodename string may be 64 bytes long, and it gets
      copied without the trailing nul byte into the shorter record->system_name,
      as gcc now warns:
      
      In file included from include/linux/bitmap.h:9,
                       from include/linux/ethtool.h:16,
                       from drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:13:
      In function 'strncpy',
          inlined from 'bnxt_fill_coredump_record' at drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c:2863:2:
      include/linux/string.h:254:9: error: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
      
      Using strlcpy() at least avoids overflowing the destination buffer
      and adds proper nul-termination. It may still truncate long names
      though, which probably can't be solved here.
      
      Fixes: 6c5657d0 ("bnxt_en: Add support for ethtool get dump.")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMichael Chan <michael.chan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3d46eee5
  16. 11 8月, 2018 1 次提交
  17. 06 8月, 2018 5 次提交
  18. 08 5月, 2018 1 次提交
  19. 28 4月, 2018 1 次提交