1. 28 1月, 2021 16 次提交
  2. 27 1月, 2021 5 次提交
  3. 26 1月, 2021 11 次提交
  4. 22 1月, 2021 4 次提交
  5. 21 1月, 2021 1 次提交
  6. 14 1月, 2021 1 次提交
  7. 12 1月, 2021 2 次提交
    • O
      habanalabs: prevent soft lockup during unmap · 9488307a
      Oded Gabbay 提交于
      When using Deep learning framework such as tensorflow or pytorch, there
      are tens of thousands of host memory mappings. When the user frees
      all those mappings at the same time, the process of unmapping and
      unpinning them can take a long time, which may cause a soft lockup
      bug.
      
      To prevent this, we need to free the core to do other things during
      the unmapping process. For now, we chose to do it every 32K unmappings
      (each unmap is a single 4K page).
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      9488307a
    • O
      habanalabs: fix reset process in case of failures · aa6df653
      Oded Gabbay 提交于
      There are some points in the reset process where if the code fails
      for some reason, and the system admin tries to initiate the reset
      process again we will get a kernel panic.
      
      This is because there aren't any protections in different fini
      functions that are called during the reset process.
      
      The protections that are added in this patch make sure that if the fini
      functions are called multiple times, without calling init functions
      between them, there won't be double release of already released
      resources.
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      aa6df653