Uh oh!
There was an error while loading. Please reload this page.
Pretend unused slots presence in dictionaries from extended manifest - #3691
Conversation
There was a problem hiding this comment.
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 ???
There was a problem hiding this comment.
@ktrzcinx agreed with Liam, we can try to use some trick with enum like
| sizeof(structconfig_elem) *CONFIG_ELEM_CNT, | |
| sizeof(structconfig_elem) *(EXT_MAN_CONFIG_LAST_ELEM-1), |
You do not need to update the EXT_MAN_CONFIG_LAST_ELEM or CONFIG_ELEM_CNT if we add a new type
xiulipan
left a comment
There was a problem hiding this comment.
I think we can keep EXT_MAN_*_LAST_ELEM and calculated the CNT with (LAST_ELEM - 1)
No need to update the CNT anymore if we add new enum.
There was a problem hiding this comment.
@ktrzcinx agreed with Liam, we can try to use some trick with enum like
| sizeof(structconfig_elem) *CONFIG_ELEM_CNT, | |
| sizeof(structconfig_elem) *(EXT_MAN_CONFIG_LAST_ELEM-1), |
You do not need to update the EXT_MAN_CONFIG_LAST_ELEM or CONFIG_ELEM_CNT if we add a new type
Uh oh!
There was an error while loading. Please reload this page.
…ig_data This value shouldn't be included in any ABI header, because it may vary between firmware configurations. This change makes header file more similar to version provided by kernel. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
…ifest This value should be included to output image with proper value instead of including only for some configurations. It will reduce dictionary element counting complexity. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
…_config_data This value shouldn't be included in any ABI header, because it may vary between firmware configurations. This change makes header file more similar to version provided by kernel. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
24c7796 to
7e9fd5dCompare
xiulipan
left a comment
There was a problem hiding this comment.
LGTM not. I am OK to have a more clear define for the COUNT.
Uh oh!
There was an error while loading. Please reload this page.
lgirdwood
commented
Jan 6, 2021
@ktrzcinx can you check internal CI, looks like tests are failing ? |
xiulipan
commented
Jan 7, 2021
@lgirdwood@ktrzcinx I re-check our discussion in #3527 |
xiulipan
commented
Jan 7, 2021
@lgirdwood@ktrzcinx Good to go, simple on-device test did not show issue with GCC FW binary. |
ktrzcinx
commented
Jan 7, 2021
@lgirdwood in internal CI single test is failing with message |
lgirdwood
commented
Jan 7, 2021
@zrombel good to merge, this error is unrelated ? |
zrombel
commented
Jan 7, 2021
It seemed unrelated. I run tests one again to be sure and now it's all green. Good to merge. |
Solution extracted from discussion from #3527