Merged
fix(machine): Avoid mix+mix gmstack stomping #6909
xuyi_37Add on Oct 13
fix(machine): Avoid mix+mix gmstack stomping #6909
Merged
xuyi_37Add on Oct 13
xuyi_37
xuyi_37Collaborators
Oct 13

fix(machine): Avoid mix+mix gmstack stomping

Related Issue: #3563

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for xuyi_37's contribution.)
xuyi_37xuyi_37Collaborators
Oct 13 Created pull request, commit b45b8b41
atomgit-bot
atomgit-bot
Oct 13 Comments:

变更摘要

本 PR 针对 mix 与 mix 场景下的 gmstack 踩踏问题,调整了 framework/src/interface/machine/device/tilefwk/aicore_entry.h 中 PipeSyncPre 函数的同步指令执行顺序。核心改动是将原先「先 set_intra_block 再 wait_intra_block」的顺序,统一改为「先 wait_intra_block 再 set_intra_block」,从而改变 PIPE_S 上事件的下发与等待时序。

主要改动

  • 调整 MIX_1C2V 分支的同步顺序: 原本先对 Vec0、Vec1 执行 set_intra_block 再执行 wait_intra_block,现改为先等待 EVENT_ID15(Vec0)与 EVENT_ID15 + EVENT_NUMS_PER_AIV(Vec1),再对两者执行 set_intra_block。
  • 调整非 MIX_1C2V 分支的同步顺序: 原本先对 Vec0 执行 set_intra_block(PIPE_S, EVENT_ID15) 再 wait_intra_block,现改为先 wait_intra_block(PIPE_S, EVENT_ID15) 再 set_intra_block。
  • 统一等待优先的时序语义: 两个分支均改为「先等待、后置位」的一致顺序,以配合避免 mix+mix 场景下的 gmstack 踩踏。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Oct 13 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Oct 13 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Oct 13 Comments:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
framework/src/interface/machine ✅ gaoxingwang, jason_yuan_ye (2/2) ✅ gaoxingwang (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robotCollaborators
Oct 13 Comments:

CLA Signature Pass

xuyi_37, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
Oct 13 Set xinweiliu,cam_bxh,dai-zhentao,lululu40888,shi-dingkun,gguuaanngg,codehjp423,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,ym-HW,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,WenboCodes as approver
CANN-robotCANN-robotCollaborators
Oct 13 Set jason_yuan_ye,yinjie27_,tsungl4,gaoxingwang,linjiashu as approver
xuyi_37xuyi_37Collaborators
Oct 13 Associated issue: [Bug-Report|缺陷反馈]: mix+mix 场景下 gmstack 踩踏
xuyi_37
xuyi_37Collaborators
Oct 13 Comments:

compile

likedislike
xuyi_37xuyi_37Collaborators
Oct 13 Pre merge succeeded (commit_id: d80f52598124ccacea1c9ecf371b3b278ed1cc90)
CANN-robot
CANN-robotCollaborators
Oct 13 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Oct 13 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 13 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 13 Added label: ci-pipeline-passed
xuyi_37xuyi_37Collaborators
Oct 14 Modify description of pull request
袁野
袁野Collaborators
Oct 14 Comments:

/lgtm

likedislike
gaoxingwang
gaoxingwangCollaborators
Oct 14 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Oct 14 Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
Oct 14 Merged pull request