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 support for HiFi4 DSP on openamp_rsc_table sample #60455

Merged

Commits on Jul 26, 2023

  1. soc: xtensa: nxp: add resource_table section in linker script

    Add resource_table section in linker script for nxp_adsp_imx8m
    for inter-process communication.
    
    Signed-off-by: Iuliana Prodan <[email protected]>
    iuliana-prodan committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    bbe3a1a View commit details
    Browse the repository at this point in the history
  2. dts: xtensa: nxp: add nodes for IPC

    Add mailbox and interrupt-controller nodes used for
    inter-process communication.
    
    Add also the dt binding for the interrupt-controller.
    For now, this is used just to fix some compile errors,
    since the mailbox requires an interrupt-controller.
    
    For DSP, we have a direct interrupt line to the core.
    
    Signed-off-by: Iuliana Prodan <[email protected]>
    iuliana-prodan committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    f4752b2 View commit details
    Browse the repository at this point in the history
  3. samples: add support for nxp_adsp_imx8m in openamp_rsc_table

    Add the dts and config overlay for nxp_adsp_imx8m board
    in order to have the openamp_rsc_table sample working on
    HiFi4 DSP from i.MX 8M Plus.
    
    Signed-off-by: Iuliana Prodan <[email protected]>
    iuliana-prodan committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    988872a View commit details
    Browse the repository at this point in the history
  4. samples: openamp_rsc_table: increase stack size

    While testing openamp_rsc_table sample for HiFi4 DSP from
    i.MX8MP, realized the stack is not enough.
    Increase the size based on Thread Analyzer measurements:
    
    *** Booting Zephyr OS build zephyr-v3.4.0-971-g9415baf2c211 ***
    Starting application threads!
    
    OpenAMP[remote]  linux responder demo started
    
    OpenAMP[remote] Linux sample client responder started
    
    OpenAMP[remote] Linux tty responder started
    [00:00:00.020,000] <dbg> openamp_rsc_table: mailbox_notify:
    mailbox_notify: msg received
    
    [00:00:00.024,000] <dbg> openamp_rsc_table: mailbox_notify:
    mailbox_notify: msg received
    
    Thread analyze:
     0x9240c5a0          : STACK: unused 240 usage 1296 / 1536 (84 %); CPU: 10%
          : Total CPU cycles used: 3388523
     0x9240c628          : STACK: unused 240 usage 784 / 1024 (76 %); CPU: 10%
          : Total CPU cycles used: 4086621
     0x9240c6b0          : STACK: unused 408 usage 616 / 1024 (60 %); CPU: 7%
          : Total CPU cycles used: 3553673
     0x9240c738          : STACK: unused 152 usage 872 / 1024 (85 %); CPU: 44%
          : Total CPU cycles used: 25529572
     0x9240c7c0          : STACK: unused 352 usage 672 / 1024 (65 %); CPU: 21%
          : Total CPU cycles used: 13742359
     0x9240c888          : STACK: unused 936 usage 88 / 1024 (8 %); CPU: 0%
          : Total CPU cycles used: 0
     ISR0                : STACK: unused 1536 usage 512 / 2048 (25 %)
    
    Signed-off-by: Iuliana Prodan <[email protected]>
    iuliana-prodan committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    d0fca8e View commit details
    Browse the repository at this point in the history
  5. west: update open-amp repo

    Update open-amp repository with new sha.
    
    Signed-off-by: Iuliana Prodan <[email protected]>
    iuliana-prodan committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    8d1e6a6 View commit details
    Browse the repository at this point in the history