Skip to content

schedule: zephyr_dma_domain: Conditionally call interrupt_clear_mask() - #7470

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:dma_domain_irq_clear_fix
Apr 24, 2023
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:dma_domain_irq_clear_fix

Conversation

@LaurentiuM1234

Copy link
Copy Markdown
Contributor

There's no need to clear IRQ mask on ARM64 architecture as there's currently no way to mask them. This commit aims to fix the compilation issues that would be caused by calling interrupt_clear_mask() on ARM64-based platforms.

Comment thread src/schedule/zephyr_dma_domain.c Outdated
…ARM64

In the case of ARM64 with GIC, the interrupts are cleared after
the ISR is executed (for reference please see arm_gic_eoi() and
arch/arm64/core/isr_wrapper.S from Zephyr). Thanks to this, we
don't need to clear them explicitly, hence there's no need for
interrupt_clear_mask() to be defined. This commit fixes linkage
problems caused by the fact that interrupt_clear_mask() is not
defined on ARM64.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
@LaurentiuM1234

Copy link
Copy Markdown
Contributor Author

Removed the need to use the ifdefs by adding a macro for interrupt_clear_mask() for ARM64.

@paulstelian97 paulstelian97 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Re-approve, this is much better than the version I previously approved. Good work!

@kv2019i

kv2019i commented Apr 24, 2023

Copy link
Copy Markdown
Collaborator

Feel free to merge, I'll give @iuliana-prodan to re-review as well.

@lgirdwood
lgirdwood merged commit 4a492f5 into thesofproject:main Apr 24, 2023
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.

6 participants