1. 08 11月, 2018 3 次提交
    • H
      net: hns3: enable/disable ring in the enet while doing UP/DOWN · 8df0fa91
      Huazhong Tan 提交于
      While hardware gets into reset status, the firmware will not respond to
      driver's command request, which may cause ring not disabled problem
      during reset process.
      
      So this patch uses register instead of command to enable/disable the ring
      in the enet while doing UP/DOWN operation.
      
      Also, HNS3_RING_RX_VM_REG is previously unused, so change it to the
      correct meaning, and add a wrapper function for readl().
      
      Fixes: 46a3df9f ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8df0fa91
    • H
      net: hns3: provide some interface & information for the client · 4d60291b
      Huazhong Tan 提交于
      The client needs to know if the hardware is resetting when
      loading or unloading itself, because client may abort the loading
      process or wait for the reset process to finish when unloading
      if hardware is resetting.
      
      So this patch provides these interfaces to do it.
      1. get_hw_reset_stat, the reset status of hardware.
      2. ae_dev_resetting, whether reset task is scheduling.
      3. ae_dev_reset_cnt, how many reset has been done.
      
      Also, the RoCE client needs some field in the hnae3_roce_private_info
      to save its state, and process_hw_error interface in the
      hnae3_client_ops to process hardware errors.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4d60291b
    • H
      net: hns3: add set_default_reset_request in the hnae3_ae_ops · 720bd583
      Huazhong Tan 提交于
      Currently, when reset_event is called because of tx timeout, it will
      upgrade the reset level (For PF, HNAE3_FUNC_RESET -> HNAE3_CORE_RESET
      -> HNAE3_GLOBAL_RESET) if the time between the new reset and last reset
      is within 20 secs, or restore the reset level to HNAE3_FUNC_RESET if
      the time between the new reset and last reset is over 20 secs.
      
      There is requirement that the caller needs to decide the reset level
      when triggering a reset, for example, RAS recovery. So this patch
      adds the set_default_reset_request to meet this requirement.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      720bd583
  2. 01 11月, 2018 2 次提交
  3. 23 10月, 2018 1 次提交
  4. 11 10月, 2018 2 次提交
  5. 06 10月, 2018 1 次提交
  6. 29 9月, 2018 1 次提交
  7. 22 9月, 2018 5 次提交
  8. 20 9月, 2018 4 次提交
  9. 04 8月, 2018 1 次提交
  10. 07 7月, 2018 1 次提交
  11. 02 7月, 2018 2 次提交
  12. 29 6月, 2018 3 次提交
  13. 07 6月, 2018 1 次提交
  14. 06 6月, 2018 1 次提交
  15. 02 6月, 2018 3 次提交
  16. 29 5月, 2018 1 次提交
  17. 21 5月, 2018 1 次提交
  18. 16 5月, 2018 2 次提交
  19. 11 5月, 2018 1 次提交
  20. 23 3月, 2018 4 次提交