Skip to content

drivers: misc: ethos_u: Create the ethos_u_common for every vendor #90787

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

khoa-nguyen-18
Copy link
Contributor

@khoa-nguyen-18 khoa-nguyen-18 commented May 29, 2025

Some vendors require custom procedures to be executed before and after calling the ethosu_init and ethosu_irq_handler APIs from the Ethos-U core driver.

As a solution, I propose separating ethos_u_common for each vendor and ethos_u_arm for specific Arm boards, enabling vendors to self-configure the initialization flow and IRQ handler.

Building sample samples/modules/tflite-micro/tflm_ethosu log:

[307/307] Linking CXX executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       74232 B       512 KB     14.16%
             RAM:       23000 B       512 KB      4.39%
            ITCM:          0 GB       512 KB      0.00%
            SRAM:          0 GB         1 MB      0.00%
            DTCM:          0 GB       512 KB      0.00%
           ISRAM:          0 GB         2 MB      0.00%
 NULL_PTR_DETECT:          0 GB         1 KB      0.00%
            DDR4:      127270 B       256 MB      0.05%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from /home/khoanguyen18/zephyrproject/zephyr/build/zephyr/zephyr.elf for board: mps3

Seperate the `ethos_u_common` for every vendor and `ethos_u_arm`
for sepcific Arm's boards. Enable vendors to self-configure the
init flow and IRQ handler.

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Update Ethos-U driver config for sample app `tflm_ethosu`

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Copy link

Copy link
Contributor

@ccli8 ccli8 left a comment

Choose a reason for hiding this comment

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

It can support other vendor's ethos-u npu.


if ETHOS_U

config ETHOS_U_INIT_PRIORITY
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems this Kconfig is not used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Neural Networks area: Samples Samples platform: ARM Arm Limited Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants