1. 09 4月, 2021 9 次提交
  2. 09 2月, 2021 7 次提交
  3. 28 1月, 2021 19 次提交
  4. 12 1月, 2021 1 次提交
    • O
      habanalabs: fix dma_addr passed to dma_mmap_coherent · a9d4ef64
      Oded Gabbay 提交于
      When doing dma_alloc_coherent in the driver, we add a certain hard-coded
      offset to the DMA address before returning to the callee function. This
      offset is needed when our device use this DMA address to perform
      outbound transactions to the host.
      
      However, if we want to map the DMA'able memory to the user via
      dma_mmap_coherent(), we need to pass the original dma address, without
      this offset. Otherwise, we will get erronouos mapping.
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      a9d4ef64
  5. 28 12月, 2020 4 次提交
    • O
      habanalabs/gaudi: retry loading TPC f/w on -EINTR · 98e8781f
      Oded Gabbay 提交于
      If loading the firmware file for the TPC f/w was interrupted, try
      to do it again, up to 5 times.
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      98e8781f
    • O
      habanalabs: adjust pci controller init to new firmware · 377182a3
      Oded Gabbay 提交于
      When the firmware security is enabled, the pcie_aux_dbi_reg_addr
      register in the PCI controller is blocked. Therefore, ignore
      the result of writing to this register and assume it worked. Also
      remove the prints on errors in the internal ELBI write function.
      
      If the security is enabled, the firmware is responsible for setting
      this register correctly so we won't have any problem.
      
      If the security is disabled, the write will work (unless something
      is totally broken at the PCI level and then the whole sequence
      will fail).
      
      In addition, remove a write to register pcie_aux_dbi_reg_addr+4,
      which was never actually needed.
      
      Moreover, PCIE_DBI registers are blocked to access from host when
      firmware security is enabled. Use a different register to flush the
      writes.
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      377182a3
    • O
      habanalabs/gaudi: enhance reset message · 13d0ee10
      Oded Gabbay 提交于
      Print the initiator who performs the hard-reset for easier debugging.
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      13d0ee10
    • O
      habanalabs/gaudi: disable CGM at HW initialization · 0024c094
      Oded Gabbay 提交于
      In case the clock gating was enabled in preboot we need to disable it
      at the H/W initialization stage before touching the MME/TPC registers.
      Otherwise, the ASIC can get stuck. If the security is enabled in
      the firmware level, the CGM is always disabled and the driver can't
      enable it.
      Signed-off-by: NOded Gabbay <ogabbay@kernel.org>
      0024c094