已合并
feat: 支持关闭 AICPU kernel timeout monitor(#794) #3735
feat: 支持关闭 AICPU kernel timeout monitor(#794) #3735
已合并
pantong创建于 7月21日
pantong
7月21日

Pull Request

描述

支持由 runtime 控制关闭 AICPU kernel timeout monitor,并保证后启动的 custom-sd 接收关闭通知。

主要变更:

  • 新增 CloseAicpuMonitor HWTS kernel,接收 runtime 下发的 monitor 开关。
  • 主 scheduler 和 custom-sd 使用原子开关;monitor 关闭时跳过任务计时启动和超时处理,任务结束仍清理 timer。
  • custom-sd 在 startup response 前注册 CCPU callback;首次启动后,主 scheduler 通过 CCPU_DEVICE + group 30 + EVENT_CCPU_CTRL_MSG 异步下发关闭通知。
  • 通知消息使用 TsdSubEventInfocloseFlag 存放在 priMsg;custom-sd callback 更新本地 monitor 状态。
  • 驱动提交失败时记录错误并阻断 custom 启动,避免主 scheduler 与 custom-sd 的 monitor 状态不一致。
  • AICPU 侧不判断芯片形态,是否调用该能力由 runtime 控制。

变更类型

请选择本次引入的变更类型:

关联的Issue

Closes #794

https://gitcode.com/cann/runtime/issues/794

如何测试

  1. 构建 aicpu_aicpuschedule_utestaicpu_custom_schedule_utest
  2. 运行主调度器全量 UT:1470/1470 通过。
  3. 运行 custom-sd 全量 UT:262/262 通过。
  4. 验证 close/open monitor、group 30 消息路由、callback 注册、异步提交失败拦截和 timer 清理。
  5. 运行 clang-format、OAT 和远端 Git Hook,均通过。

核对清单

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 pantong 的贡献)
Ppantong
7月21日 创建了 pull request,commit 99cfbbdb
Ppantong
7月21日 修改标题为 “feat: 去掉aicpu kernel timeout monitor监控并新增TSD_CAPABILITY_CLOSE_AICPU_MONITOR能力查询”,原标题为“test”
Ppantong
7月21日 修改了pull request 的描述
Ppantong
7月21日 virtual merging failed, update merge request[project_id: 8810053, iid: 3735, target_commit_sha: 99cfbbdbc9b9e21ddc594be77fb638944a8ba83e], message: Conflict detected
Ppantong
7月21日 强制推送  1 个提交:5fd254d7-feat: 去掉aicpu kernel timeout monitor监控并新增TSD_CAPABILITY_CLOSE_AICPU_MONITOR能力查询
此处折叠了584条消息 查看更多
CANN-robotCANN-robot成员
8月7日 添加了label:approved
tingwood成员
8月7日 评论:

/approve
/lgtm

likedislike
CANN-robotCANN-robot成员
8月7日 添加了label:lgtm
CANN-robotCANN-robot成员
8月7日 关闭了关联的issue
CANN-robotCANN-robot成员
8月7日 合入了pull request