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

[hw,dma,rtl] Set interrupt only when transition to done / error #23854

Closed
wants to merge 1 commit into from

Conversation

Razer6
Copy link
Member

@Razer6 Razer6 commented Jun 30, 2024

Previously, clearing the DONE or ERROR interrupt before clearing STATUS.done would raise the same interrupt a second time, which could bring FW out of sync.

With this change, the DONE and ERROR interrupt are only sent once when transitioning into the DONE or ERROR state.

/cc @neeraj-rv @sameo

Copy link
Contributor

@alees24 alees24 left a comment

Choose a reason for hiding this comment

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

This change will cause the 'dma_done' and 'dma_error' interrupt to become asserted as soon as the DMA controller leaves its Idle state. I think you want to set the intr_state bits only when the 'set' clause of '...status.done.de' or '...status.error.de' is true.

@Razer6
Copy link
Member Author

Razer6 commented Aug 2, 2024

Thats true indeed, lets AND the .d signal to it

Previously, clearing the DONE or ERROR interrupt before clearing STATUS.done
would lead to raise the same interrupt a second time, which could bring FW
out of sync.

With this change, the DONE and ERROR interrupt are only sent once, when
transitioning into the DONE or ERROR state.

Signed-off-by: Robert Schilling <[email protected]>
@Razer6
Copy link
Member Author

Razer6 commented Nov 12, 2024

This PR is not necessary anymore because we switched to status-type interrupts.

@Razer6 Razer6 closed this Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants