Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
Pretend unused slots presence in dictionaries from extended manifest#3691
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
6297906e7033107e9fd5dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -85,10 +85,14 @@ const struct ext_man_dbg_abi ext_man_dbg_info | ||||||
| }, | ||||||
| }; | ||||||
| /* increment this value after adding any element to ext_man_config dictionary */ | ||||||
| #define CONFIG_ELEM_CNT (EXT_MAN_CONFIG_LAST_ELEM - 1) | ||||||
| const struct ext_man_config_data ext_man_config | ||||||
| __aligned(EXT_MAN_ALIGN) __section(".fw_metadata") = { | ||||||
| .hdr.type = EXT_MAN_ELEM_CONFIG_DATA, | ||||||
| .hdr.elem_size = ALIGN_UP(sizeof(struct ext_man_config_data), | ||||||
| .hdr.elem_size = ALIGN_UP(sizeof(struct ext_man_config_data) + | ||||||
| sizeof(struct config_elem) * CONFIG_ELEM_CNT, | ||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering here if we can use a linker variable here for CONFIG_ELEM_COUNT as a way to automate this as it may be error prone for developers i.e. something cmake can pass into the linker pre-processor and have the linker set this based on the FW binary build ??? Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ktrzcinx agreed with Liam, we can try to use some trick with
Suggested change
You do not need to update the | ||||||
| EXT_MAN_ALIGN), | ||||||
| .elems = { | ||||||
| {EXT_MAN_CONFIG_IPC_MSG_SIZE, SOF_IPC_MSG_MAX_SIZE}, | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -10,15 +10,17 @@ | ||
| #include <sof/common.h> | ||
| #include <sof/lib/memory.h> | ||
| /* Describes elements counter from ext_man_cavs_config dictionary */ | ||
| #define CAVS_CONFIG_ELEM_CNT (EXT_MAN_CAVS_CONFIG_LAST_ELEM - 1) | ||
| const struct ext_man_cavs_config_data ext_man_cavs_config | ||
| __aligned(EXT_MAN_ALIGN) __section(".fw_metadata") = { | ||
| .hdr.type = EXT_MAN_ELEM_PLATFORM_CONFIG_DATA, | ||
| .hdr.elem_size = ALIGN_UP(sizeof(struct ext_man_cavs_config_data), | ||
| .hdr.elem_size = ALIGN_UP(sizeof(struct ext_man_cavs_config_data) + | ||
| sizeof(struct config_elem) * CAVS_CONFIG_ELEM_CNT, | ||
lgirdwood marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| EXT_MAN_ALIGN), | ||
| .elems = { | ||
| #if CONFIG_CAVS_LPRO_ONLY | ||
| {EXT_MAN_CAVS_CONFIG_LPRO, CONFIG_CAVS_LPRO_ONLY}, | ||
| #endif | ||
| {EXT_MAN_CAVS_CONFIG_LPRO, IS_ENABLED(CONFIG_CAVS_LPRO_ONLY)}, | ||
| {EXT_MAN_CAVS_CONFIG_OUTBOX_SIZE, SRAM_OUTBOX_SIZE}, | ||
| {EXT_MAN_CAVS_CONFIG_INBOX_SIZE, SRAM_INBOX_SIZE}, | ||
| }, | ||
Uh oh!
There was an error while loading. Please reload this page.