Loading drivers/media/platform/msm/npu/npu_mgr.c +4 −19 Original line number Diff line number Diff line Loading @@ -1785,7 +1785,7 @@ int32_t npu_host_load_network_v2(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -1796,9 +1796,6 @@ int32_t npu_host_load_network_v2(struct npu_client *client, NPU_ERR("npu: NPU_IPC_CMD_LOAD time out\n"); ret = -ETIMEDOUT; goto error_load_network; } else if (ret < 0) { NPU_ERR("NPU_IPC_CMD_LOAD_V2 is interrupted by signal\n"); goto error_free_network; } if (network->fw_error) { Loading Loading @@ -1902,7 +1899,7 @@ int32_t npu_host_unload_network(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -1914,10 +1911,6 @@ int32_t npu_host_unload_network(struct npu_client *client, network->cmd_pending = false; ret = -ETIMEDOUT; goto free_network; } else if (ret < 0) { NPU_ERR("Wait for unload done interrupted by signal\n"); network->cmd_pending = false; goto free_network; } if (network->fw_error) { Loading Loading @@ -2032,7 +2025,7 @@ int32_t npu_host_exec_network(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -2045,10 +2038,6 @@ int32_t npu_host_exec_network(struct npu_client *client, network->cmd_pending = false; ret = -ETIMEDOUT; goto exec_done; } else if (ret == -ERESTARTSYS) { NPU_ERR("Wait for execution done interrupted by signal\n"); network->cmd_pending = false; goto exec_done; } if (network->fw_error) { Loading Loading @@ -2170,7 +2159,7 @@ int32_t npu_host_exec_network_v2(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -2183,10 +2172,6 @@ int32_t npu_host_exec_network_v2(struct npu_client *client, network->cmd_pending = false; ret = -ETIMEDOUT; goto free_exec_packet; } else if (ret == -ERESTARTSYS) { NPU_ERR("Wait for execution_v2 done interrupted by signal\n"); network->cmd_pending = false; goto free_exec_packet; } if (network->fw_error) { Loading Loading
drivers/media/platform/msm/npu/npu_mgr.c +4 −19 Original line number Diff line number Diff line Loading @@ -1785,7 +1785,7 @@ int32_t npu_host_load_network_v2(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -1796,9 +1796,6 @@ int32_t npu_host_load_network_v2(struct npu_client *client, NPU_ERR("npu: NPU_IPC_CMD_LOAD time out\n"); ret = -ETIMEDOUT; goto error_load_network; } else if (ret < 0) { NPU_ERR("NPU_IPC_CMD_LOAD_V2 is interrupted by signal\n"); goto error_free_network; } if (network->fw_error) { Loading Loading @@ -1902,7 +1899,7 @@ int32_t npu_host_unload_network(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -1914,10 +1911,6 @@ int32_t npu_host_unload_network(struct npu_client *client, network->cmd_pending = false; ret = -ETIMEDOUT; goto free_network; } else if (ret < 0) { NPU_ERR("Wait for unload done interrupted by signal\n"); network->cmd_pending = false; goto free_network; } if (network->fw_error) { Loading Loading @@ -2032,7 +2025,7 @@ int32_t npu_host_exec_network(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -2045,10 +2038,6 @@ int32_t npu_host_exec_network(struct npu_client *client, network->cmd_pending = false; ret = -ETIMEDOUT; goto exec_done; } else if (ret == -ERESTARTSYS) { NPU_ERR("Wait for execution done interrupted by signal\n"); network->cmd_pending = false; goto exec_done; } if (network->fw_error) { Loading Loading @@ -2170,7 +2159,7 @@ int32_t npu_host_exec_network_v2(struct npu_client *client, mutex_unlock(&host_ctx->lock); ret = wait_for_completion_interruptible_timeout( ret = wait_for_completion_timeout( &network->cmd_done, (host_ctx->fw_dbg_mode & FW_DBG_MODE_INC_TIMEOUT) ? NW_DEBUG_TIMEOUT : NW_CMD_TIMEOUT); Loading @@ -2183,10 +2172,6 @@ int32_t npu_host_exec_network_v2(struct npu_client *client, network->cmd_pending = false; ret = -ETIMEDOUT; goto free_exec_packet; } else if (ret == -ERESTARTSYS) { NPU_ERR("Wait for execution_v2 done interrupted by signal\n"); network->cmd_pending = false; goto free_exec_packet; } if (network->fw_error) { Loading