Skip to content

Update: streamline A5 HBG MIX handoffs and deferred completion - #3208

Open
nalinaly wants to merge 1 commit into
hw-native-sys:mainfrom
nalinaly:update/a5-hbg-mix-progress-8beed5dc8
Open

nalinaly wants to merge 1 commit into
hw-native-sys:mainfrom
nalinaly:update/a5-hbg-mix-progress-8beed5dc8

Conversation

@nalinaly

@nalinaly nalinaly commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Continue eligible A5 HBG MIX publication on AIV0 after an ordinary or MIX return. Reuse worker-local entry and fan-in proofs, and avoid redundant ordering checks when previously completed dependencies cover older lane obligations.
  • Poll deferred conditions on the worker that registered them. Rotate pending groups, retain the verified counter address for a retry, and throttle an idle worker's rereads of the same task seal to one per 500 ticks. The boundary test checks ticks 599 and 600 for a value recorded at tick 100.
  • Update HBG and Percounter L2 scheduling traces and add a six-stage full-wave MIX chain to the seven model workloads in the scheduler benchmark.

Scope and validation

This PR contains the committed local main snapshot through 8beed5dc8. Its 31 commits were folded into one commit on upstream 64b7560b1, which already includes #3189. This supersedes the closed snapshot in #3207.

Verified that the Git tree matches the source commit exactly and that git diff --check passes. The performance table records measurements from the earlier revisions identified in that table.

Local validation passed all 760 tests in the six trace and native protocol Python suites. Five A5 HBG C++ test targets also passed on CPU, covering execution ownership, asynchronous control, admission progress, cluster-owned groups and ordered execution.

Reuse local execution and fan-in state, continue eligible MIX publication
on AIV0 after ordinary and MIX returns, and skip resource-order checks
when completed predecessors prove that earlier obligations are satisfied.
Rate-limit idle workers' rereads of the same task seal to 500 ticks.

Poll deferred groups on their registering worker and reuse a validated
counter address and threshold for pending retries. Update L2 scheduling
and trace output, and add a six-stage full-wave MIX chain to the seven
model benchmarks.
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 109 files, which is 9 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fc0c0d81-9e2c-4c39-8e85-adcbd757d706
Commits

Reviewing files that changed from the base of the PR and between 64b7560 and 2167af6.

Files selected for processing: 109

  • docs/dfx/chip-swimlane-profiling.md
  • docs/investigations/2026-11-a5-hbg-gm-mix-arrival-permit.md
  • docs/investigations/2026-11-a5-hbg-ordinary-entry-floor.md
  • docs/investigations/README.md
  • docs/zh-cn/a5-hbg-aicore-walkthrough/01-initialization.md
  • docs/zh-cn/a5-hbg-aicore-walkthrough/02-ready-execution.md
  • docs/zh-cn/a5-hbg-aicore-walkthrough/03-cooperative-completion.md
  • docs/zh-cn/a5-hbg-aicore-walkthrough/04-native-async.md
  • docs/zh-cn/a5-hbg-aicore-walkthrough/README.md
  • docs/zh-cn/design/a5-hbg-async-completion.md
  • docs/zh-cn/design/a5-hbg-async-completion/interfaces-and-layout.md
  • docs/zh-cn/design/a5-hbg-graph-task/build-execute-separation.md
  • docs/zh-cn/design/a5-hbg-graph-task/data-layout.md
  • docs/zh-cn/design/a5-hbg-graph-task/dependency-counters.md
  • docs/zh-cn/design/a5-hbg-graph-task/protocol.md
  • docs/zh-cn/design/a5-hbg-graph-task/ready-queue-design.md
  • simpler_setup/tools/hbg/native_mix_audit.py
  • simpler_setup/tools/hbg/native_protocol.py
  • simpler_setup/tools/l2_pftrace.py
  • simpler_setup/tools/percounter/scheduler_view.py
  • simpler_setup/tools/swimlane_converter.py
  • src/a5/platform/include/host/scheduler_notification_address.h
  • src/a5/platform/onboard/host/scheduler_done_notifications.cpp
  • src/a5/runtime/host_build_graph/aicore/aicore_executor.cpp
  • src/a5/runtime/host_build_graph/aicore/resident_native_timing.cpp
  • src/a5/runtime/host_build_graph/aicore/resident_ordinary_timing.cpp
  • src/a5/runtime/host_build_graph/aicore/resident_scheduler_impl.h
  • src/a5/runtime/host_build_graph/aicpu/aicore_lifecycle.cpp
  • src/a5/runtime/host_build_graph/aicpu/aicore_scheduler_error.h
  • src/a5/runtime/host_build_graph/aicpu/aicpu_executor.cpp
  • src/a5/runtime/host_build_graph/docs/RUNTIME_LOGIC.md
  • src/a5/runtime/host_build_graph/docs/SUBMIT_BY_CLUSTER.md
  • src/a5/runtime/host_build_graph/host/async_completion_plan.cpp
  • src/a5/runtime/host_build_graph/host/native_graph_plan.cpp
  • src/a5/runtime/host_build_graph/host/runtime_maker.cpp
  • src/a5/runtime/host_build_graph/host/scheduler_protocol_export.h
  • src/a5/runtime/host_build_graph/host/task_catalog_plan.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_async_control.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_async_directory.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_async_finish.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_async_layout.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_async_state.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_cluster_mix.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_completion.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_completion_counter.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_completion_credit.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_dispatch.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_execution_tokens.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_graph.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_graph_binding.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_graph_control.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_issue.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_memory.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_native_graph.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_native_graph_access.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_order.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_prepared_execution.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_prepared_layout.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_protocol.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_ready.h
  • src/a5/runtime/host_build_graph/runtime/scheduler/scheduler_types.h
  • src/a5/runtime/percounter/aicore/entry.cpp
  • src/a5/runtime/percounter/aicore/lane_loop.h
  • src/a5/runtime/percounter/aicpu/steps.cpp
  • src/a5/runtime/percounter/host/state.h
  • src/common/platform/include/host/scheduler_notifications.h
  • src/common/platform/shared/aicpu/chip_swimlane_collector_aicpu.cpp
  • tests/fdwic/dsv41_scheduler/README.md
  • tests/fdwic/dsv41_scheduler/RESULTS.md
  • tests/fdwic/dsv41_scheduler/analyze.py
  • tests/fdwic/dsv41_scheduler/kernels/synthetic/full_wave_mix_chain.cpp
  • tests/fdwic/dsv41_scheduler/kernels/synthetic/full_wave_mix_member.cpp
  • tests/fdwic/dsv41_scheduler/production/full_wave_mix_chain.py
  • tests/fdwic/dsv41_scheduler/production/ideal_bound.py
  • tests/fdwic/dsv41_scheduler/production/list_cases.py
  • tests/fdwic/dsv41_scheduler/production/prepare.py
  • tests/fdwic/dsv41_scheduler/production/run.sh
  • tests/fdwic/dsv41_scheduler/production/runner.cpp
  • tests/fdwic/dsv41_scheduler/production/sync_bound.py
  • tests/fdwic/dsv41_scheduler/production/timing.py
  • tests/fdwic/dsv41_scheduler/production/topology.py
  • tests/fdwic/dsv41_scheduler/tests/test_case_selection.py
  • tests/st/a5/percounter/dfx/chip_swimlane/test_chip_swimlane.py
  • tests/ut/cpp/a5/platform/test_scheduler_notification_cache.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/CMakeLists.txt
  • tests/ut/cpp/a5/runtime/host_build_graph/hbg_scheduler_test_support.h
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_async_control.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_async_directory.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_async_plan.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_async_state.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_cluster_owned_groups.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_error_identity.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_execution_ownership.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_gm_mix.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_gm_mix_startup.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_inline_services.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_native_graph_plan.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_ordered_execution.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_owned_execution.h
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_protocol_export.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_retirement_wiring.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_scheduler_dispatch.cpp
  • tests/ut/cpp/a5/runtime/host_build_graph/test_hbg_task_catalog.cpp
  • tests/ut/cpp/common/host_build_graph/test_hbg_bind_ledger.cpp
  • tests/ut/py/_native_protocol_builder.py
  • tests/ut/py/test_hbg_execution_identity.py
  • tests/ut/py/test_hbg_native_causality.py
  • tests/ut/py/test_hbg_native_protocol.py
  • tests/ut/py/test_swimlane_converter.py

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant