Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new pass to create DMA chains inside controlcode #974

Merged
merged 39 commits into from
Dec 11, 2024

Conversation

Yu-Zhewen
Copy link
Contributor

@Yu-Zhewen Yu-Zhewen commented Dec 9, 2024

Adds support for creating chains on half_dma_cpy_nd. After further lowering, the entire chain can share one push_to_queue and dma_wait ops. Refactored from #931

@Yu-Zhewen Yu-Zhewen marked this pull request as ready for review December 9, 2024 19:56
@Yu-Zhewen Yu-Zhewen requested a review from jtuyls December 11, 2024 14:19
/// - Chain X: [0] (the newly added BD ID).
/// - Chain Y: [] (emptied after breaking).
void checkForChainsToBeBroken(
int32_t currBdId, const DmaChain &currDmaChain,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change
int32_t currBdId, const DmaChain &currDmaChain,
uint32_t currBdId, const DmaChain &currDmaChain,

Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yu-Zhewen Yu-Zhewen merged commit 362f041 into main Dec 11, 2024
8 checks passed
@Yu-Zhewen Yu-Zhewen deleted the zhewen_insertDmaChain branch December 11, 2024 22:24
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.

2 participants