Commit f0539fb0 authored by Dalit Ben Zoor's avatar Dalit Ben Zoor Committed by Oded Gabbay

habanalabs: remove condition that is always true

After removing the parsing of the command submission
when doing memset of the device memory, goya_validate_dma_pkt_host
is never called by the kernel, so there is no need to check
context id.
Signed-off-by: default avatarDalit Ben Zoor <dbenzoor@habana.ai>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent 5809e18e
......@@ -3213,7 +3213,6 @@ static int goya_validate_dma_pkt_host(struct hl_device *hdev,
return -EFAULT;
}
if (parser->ctx_id != HL_KERNEL_ASID_ID) {
if (sram_addr) {
if (!hl_mem_area_inside_range(device_memory_addr,
le32_to_cpu(user_dma_pkt->tsize),
......@@ -3239,7 +3238,6 @@ static int goya_validate_dma_pkt_host(struct hl_device *hdev,
return -EFAULT;
}
}
}
if (skip_host_mem_pin)
parser->patched_cb_size += sizeof(*user_dma_pkt);
......
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