1. 01 11月, 2019 1 次提交
  2. 02 8月, 2019 3 次提交
  3. 29 7月, 2019 1 次提交
  4. 06 7月, 2019 1 次提交
  5. 29 6月, 2019 1 次提交
  6. 04 6月, 2019 1 次提交
  7. 29 5月, 2019 1 次提交
  8. 15 4月, 2019 1 次提交
  9. 09 4月, 2019 1 次提交
  10. 21 3月, 2019 1 次提交
  11. 22 2月, 2019 1 次提交
  12. 03 2月, 2019 2 次提交
  13. 24 1月, 2019 2 次提交
  14. 08 1月, 2019 1 次提交
  15. 10 11月, 2018 1 次提交
    • H
      net: hns3: implement the IMP reset processing for PF · 6dd22bbc
      Huazhong Tan 提交于
      The current code only print the prompt message after receiving
      the IMP reset interrupt and does not perform the corresponding driver
      reset operation. This patch implements the missing IMP reset handling
      in the driver.
      1. The driver sets the HCLGE_STATE_CMD_DISABLE to stop sending command
         after receiving the IMP reset interrupt.
      2. The driver needs to notify the hardware to reload the IMP firmware.
      3. The IMP firmware reloading makes the reset time of hardware longer,
         so it is necessary to extend the driver's waiting time to wait for
         the hardware reset to complete.
      4. In hclge_check_event_cause, IMP reset event should have higher
         priority than other events.
      
      Also, after clearing HCLGE_STATE_CMD_DISABLE in the hclge_cmd_init(),
      it needs to check whether there is a pending reset, if so, just set
      the HCLGE_STATE_CMD_DISABLE back and return.
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6dd22bbc
  16. 01 11月, 2018 2 次提交
  17. 02 8月, 2018 1 次提交
  18. 21 7月, 2018 2 次提交
  19. 17 7月, 2018 1 次提交
  20. 07 7月, 2018 1 次提交
  21. 02 7月, 2018 6 次提交
  22. 29 6月, 2018 2 次提交
  23. 21 5月, 2018 2 次提交
    • X
      net: hns3: Fixes kernel panic issue during rmmod hns3 driver · 7bb572fd
      Xi Wang 提交于
      If CONFIG_ARM_SMMU_V3 is enabled, arm64's dma_ops will replace
      arm64_swiotlb_dma_ops with iommu_dma_ops. When releasing contiguous
      dma memory, the new ops will call the vunmap function which cannot
      be run in interrupt context.
      
      Currently, spin_lock_bh is called before vunmap is executed. This
      disables BH and causes the interrupt context to be detected to
      generate a kernel panic like below:
      
      [ 2831.573400] kernel BUG at mm/vmalloc.c:1621!
      [ 2831.577659] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
      ...
      [ 2831.699907] Process rmmod (pid: 1893, stack limit = 0x0000000055103ee2)
      [ 2831.706507] Call trace:
      [ 2831.708941]  vunmap+0x48/0x50
      [ 2831.711897]  dma_common_free_remap+0x78/0x88
      [ 2831.716155]  __iommu_free_attrs+0xa8/0x1c0
      [ 2831.720255]  hclge_free_cmd_desc+0xc8/0x118 [hclge]
      [ 2831.725128]  hclge_destroy_cmd_queue+0x34/0x68 [hclge]
      [ 2831.730261]  hclge_uninit_ae_dev+0x90/0x100 [hclge]
      [ 2831.735127]  hnae3_unregister_ae_dev+0xb0/0x868 [hnae3]
      [ 2831.740345]  hns3_remove+0x3c/0x90 [hns3]
      [ 2831.744344]  pci_device_remove+0x48/0x108
      [ 2831.748342]  device_release_driver_internal+0x164/0x200
      [ 2831.753553]  driver_detach+0x4c/0x88
      [ 2831.757116]  bus_remove_driver+0x60/0xc0
      [ 2831.761026]  driver_unregister+0x34/0x60
      [ 2831.764935]  pci_unregister_driver+0x30/0xb0
      [ 2831.769197]  hns3_exit_module+0x10/0x978 [hns3]
      [ 2831.773715]  SyS_delete_module+0x1f8/0x248
      [ 2831.777799]  el0_svc_naked+0x30/0x34
      
      This patch fixes it by using spin_lock instead of spin_lock_bh.
      
      Fixes: 68c0a5c7 ("net: hns3: Add HNS3 IMP(Integrated Mgmt Proc) Cmd Interface Support")
      Signed-off-by: NXi Wang <wangxi11@huawei.com>
      Signed-off-by: NPeng Li <lipeng321@huawei.com>
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7bb572fd
    • H
      net: hns3: Use enums instead of magic number in hclge_is_special_opcode · 42687543
      Huazhong Tan 提交于
      This patch does bit of a clean-up by using already defined enums for
      certain values in function hclge_is_special_opcode(). Below enums from
      have been used as replacements for magic values:
      
      enum hclge_opcode_type{
      	<snip>
      	HCLGE_OPC_STATS_64_BIT		= 0x0030,
      	HCLGE_OPC_STATS_32_BIT		= 0x0031,
      	HCLGE_OPC_STATS_MAC		= 0x0032,
      	<snip>
      };
      Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
      Signed-off-by: NPeng Li <lipeng321@huawei.com>
      Signed-off-by: NSalil Mehta <salil.mehta@huawei.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42687543
  24. 02 5月, 2018 1 次提交
  25. 02 11月, 2017 1 次提交
  26. 11 10月, 2017 1 次提交
  27. 10 10月, 2017 1 次提交