Commit 9f832fda authored by Tomer Tayar's avatar Tomer Tayar Committed by Oded Gabbay

habanalabs: Update CPU DMA memory label name

The CPU accessible DMA memory is general and not used only for PQ.
Accordingly, this patch renames the "free_cpu_pq_dma_mem" label with
"free_cpu_dma_mem".
Signed-off-by: default avatarTomer Tayar <ttayar@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent ba209e15
...@@ -660,7 +660,7 @@ static int goya_sw_init(struct hl_device *hdev) ...@@ -660,7 +660,7 @@ static int goya_sw_init(struct hl_device *hdev)
dev_err(hdev->dev, dev_err(hdev->dev,
"Failed to create CPU accessible DMA pool\n"); "Failed to create CPU accessible DMA pool\n");
rc = -ENOMEM; rc = -ENOMEM;
goto free_cpu_pq_dma_mem; goto free_cpu_dma_mem;
} }
rc = gen_pool_add(hdev->cpu_accessible_dma_pool, rc = gen_pool_add(hdev->cpu_accessible_dma_pool,
...@@ -679,7 +679,7 @@ static int goya_sw_init(struct hl_device *hdev) ...@@ -679,7 +679,7 @@ static int goya_sw_init(struct hl_device *hdev)
free_cpu_accessible_dma_pool: free_cpu_accessible_dma_pool:
gen_pool_destroy(hdev->cpu_accessible_dma_pool); gen_pool_destroy(hdev->cpu_accessible_dma_pool);
free_cpu_pq_dma_mem: free_cpu_dma_mem:
hdev->asic_funcs->asic_dma_free_coherent(hdev, hdev->asic_funcs->asic_dma_free_coherent(hdev,
HL_CPU_ACCESSIBLE_MEM_SIZE, HL_CPU_ACCESSIBLE_MEM_SIZE,
hdev->cpu_accessible_dma_mem, hdev->cpu_accessible_dma_mem,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment