mirror of
https://github.com/torvalds/linux.git
synced 2026-09-21 20:24:02 +02:00
habanalabs: fix rc when new CPUCP opcodes are not supported
When the new CPUCP opcodes are not supported and a CPUCP packet fails, the return value is the F/W error resposone which is a positive value. If this packet is sent from IOCTL and the positive value is used, the ICOTL will not be considered as unsuccessful. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
6825b5f81f
commit
56fb517775
|
|
@ -324,6 +324,7 @@ int hl_fw_send_cpu_message(struct hl_device *hdev, u32 hw_queue_id, u32 *msg,
|
|||
|
||||
if (!prop->supports_advanced_cpucp_rc) {
|
||||
dev_dbg(hdev->dev, "F/W ERROR %d for CPU packet %d\n", rc, opcode);
|
||||
rc = -EIO;
|
||||
goto scrub_descriptor;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user