Loading drivers/media/platform/msm/npu/npu_mgr.c +5 −5 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ static int load_fw_nolock(struct npu_device *npu_dev, bool enable) } ret = wait_for_completion_timeout( &host_ctx->npu_power_up_done, NW_CMD_TIMEOUT); &host_ctx->npu_power_up_done, NW_PWR_UP_TIMEOUT); if (!ret) { NPU_ERR("Wait for npu powers up timed out\n"); ret = -ETIMEDOUT; Loading Loading @@ -181,7 +181,7 @@ static int load_fw_nolock(struct npu_device *npu_dev, bool enable) } ret = wait_for_completion_timeout( &host_ctx->fw_shutdown_done, NW_CMD_TIMEOUT); &host_ctx->fw_shutdown_done, NW_RSC_TIMEOUT_MS); if (!ret) { NPU_ERR("Wait for fw shutdown timedout\n"); ret = -ETIMEDOUT; Loading Loading @@ -333,7 +333,7 @@ static int enable_fw_nolock(struct npu_device *npu_dev) } ret = wait_for_completion_timeout( &host_ctx->fw_bringup_done, NW_CMD_TIMEOUT); &host_ctx->fw_bringup_done, NW_RSC_TIMEOUT_MS); if (!ret) { NPU_ERR("Wait for fw bringup timedout\n"); ret = -ETIMEDOUT; Loading Loading @@ -409,7 +409,7 @@ static void disable_fw_nolock(struct npu_device *npu_dev) if (!host_ctx->auto_pil_disable) { ret = wait_for_completion_timeout( &host_ctx->fw_shutdown_done, NW_CMD_TIMEOUT); &host_ctx->fw_shutdown_done, NW_RSC_TIMEOUT_MS); if (!ret) NPU_ERR("Wait for fw shutdown timedout\n"); else Loading Loading @@ -874,7 +874,7 @@ static int host_error_hdlr(struct npu_device *npu_dev, bool force) NPU_INFO("npu subsystem is restarted\n"); ret = wait_for_completion_timeout( &host_ctx->npu_power_up_done, NW_CMD_TIMEOUT); &host_ctx->npu_power_up_done, NW_PWR_UP_TIMEOUT); if (!ret) { NPU_ERR("Wait for npu powers up timed out\n"); ret = -ETIMEDOUT; Loading drivers/media/platform/msm/npu/npu_mgr.h +5 −1 Original line number Diff line number Diff line Loading @@ -18,8 +18,12 @@ * Defines * ------------------------------------------------------------------------- */ #define NW_CMD_TIMEOUT_MS (1000 * 5) /* set for 5 seconds */ #define NW_RSC_TIMEOUT_MS (1000 * 5) /* set for 5 seconds */ #define NW_RSC_TIMEOUT msecs_to_jiffies(NW_RSC_TIMEOUT_MS) #define NW_CMD_TIMEOUT_MS (1000 * 20) /* set for 20 seconds */ #define NW_CMD_TIMEOUT msecs_to_jiffies(NW_CMD_TIMEOUT_MS) #define NW_PWR_UP_TIMEOUT_MS (1000 * 60) /* set for 60 seconds */ #define NW_PWR_UP_TIMEOUT msecs_to_jiffies(NW_PWR_UP_TIMEOUT_MS) #define NW_DEBUG_TIMEOUT_MS (1000 * 60 * 30) /* set for 30 minutes */ #define NW_DEBUG_TIMEOUT msecs_to_jiffies(NW_DEBUG_TIMEOUT_MS) #define NPU_MBOX_IDLE_TIMEOUT_MS 500 /* set for 500ms */ Loading Loading
drivers/media/platform/msm/npu/npu_mgr.c +5 −5 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ static int load_fw_nolock(struct npu_device *npu_dev, bool enable) } ret = wait_for_completion_timeout( &host_ctx->npu_power_up_done, NW_CMD_TIMEOUT); &host_ctx->npu_power_up_done, NW_PWR_UP_TIMEOUT); if (!ret) { NPU_ERR("Wait for npu powers up timed out\n"); ret = -ETIMEDOUT; Loading Loading @@ -181,7 +181,7 @@ static int load_fw_nolock(struct npu_device *npu_dev, bool enable) } ret = wait_for_completion_timeout( &host_ctx->fw_shutdown_done, NW_CMD_TIMEOUT); &host_ctx->fw_shutdown_done, NW_RSC_TIMEOUT_MS); if (!ret) { NPU_ERR("Wait for fw shutdown timedout\n"); ret = -ETIMEDOUT; Loading Loading @@ -333,7 +333,7 @@ static int enable_fw_nolock(struct npu_device *npu_dev) } ret = wait_for_completion_timeout( &host_ctx->fw_bringup_done, NW_CMD_TIMEOUT); &host_ctx->fw_bringup_done, NW_RSC_TIMEOUT_MS); if (!ret) { NPU_ERR("Wait for fw bringup timedout\n"); ret = -ETIMEDOUT; Loading Loading @@ -409,7 +409,7 @@ static void disable_fw_nolock(struct npu_device *npu_dev) if (!host_ctx->auto_pil_disable) { ret = wait_for_completion_timeout( &host_ctx->fw_shutdown_done, NW_CMD_TIMEOUT); &host_ctx->fw_shutdown_done, NW_RSC_TIMEOUT_MS); if (!ret) NPU_ERR("Wait for fw shutdown timedout\n"); else Loading Loading @@ -874,7 +874,7 @@ static int host_error_hdlr(struct npu_device *npu_dev, bool force) NPU_INFO("npu subsystem is restarted\n"); ret = wait_for_completion_timeout( &host_ctx->npu_power_up_done, NW_CMD_TIMEOUT); &host_ctx->npu_power_up_done, NW_PWR_UP_TIMEOUT); if (!ret) { NPU_ERR("Wait for npu powers up timed out\n"); ret = -ETIMEDOUT; Loading
drivers/media/platform/msm/npu/npu_mgr.h +5 −1 Original line number Diff line number Diff line Loading @@ -18,8 +18,12 @@ * Defines * ------------------------------------------------------------------------- */ #define NW_CMD_TIMEOUT_MS (1000 * 5) /* set for 5 seconds */ #define NW_RSC_TIMEOUT_MS (1000 * 5) /* set for 5 seconds */ #define NW_RSC_TIMEOUT msecs_to_jiffies(NW_RSC_TIMEOUT_MS) #define NW_CMD_TIMEOUT_MS (1000 * 20) /* set for 20 seconds */ #define NW_CMD_TIMEOUT msecs_to_jiffies(NW_CMD_TIMEOUT_MS) #define NW_PWR_UP_TIMEOUT_MS (1000 * 60) /* set for 60 seconds */ #define NW_PWR_UP_TIMEOUT msecs_to_jiffies(NW_PWR_UP_TIMEOUT_MS) #define NW_DEBUG_TIMEOUT_MS (1000 * 60 * 30) /* set for 30 minutes */ #define NW_DEBUG_TIMEOUT msecs_to_jiffies(NW_DEBUG_TIMEOUT_MS) #define NPU_MBOX_IDLE_TIMEOUT_MS 500 /* set for 500ms */ Loading