base_fw: move SRAM bank details to Intel specific code#9456
Merged
kv2019i merged 1 commit intothesofproject:mainfrom Sep 11, 2024
Merged
Conversation
The SRAM definitions like SRAM_BANK_SIZE and EBB_BANKS_IN_SEGMENT are only used in Intel specific code and not really needed in platform layer that needs to implemented by all platforms. Move these definitions to base_fw_intel.c and clean up related definitions from platform layer. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
kv2019i
commented
Sep 10, 2024
Collaborator
Author
kv2019i
left a comment
There was a problem hiding this comment.
Some inline comments to explain what is removed to help with the review.
| ALIGN((HEAP_SYSTEM_S_SIZE + HEAP_SYS_RUNTIME_S_SIZE + SOF_STACK_SIZE),\ | ||
| SRAM_BANK_SIZE) | ||
| #define SOF_CORE_S_T_SIZE ((CONFIG_CORE_COUNT - 1) * SOF_CORE_S_SIZE) | ||
|
|
Collaborator
Author
There was a problem hiding this comment.
This is no longer needed and needs to be removed now when SRAM_BANK_SIZE is removed.
| #define EBB_BANKS_IN_SEGMENT 32 | ||
| #define PLATFORM_HPSRAM_EBB_COUNT 32 | ||
| #define PLATFORM_LPSRAM_EBB_COUNT 1 | ||
|
|
Collaborator
Author
There was a problem hiding this comment.
This is no longer needed as these definitions are only used in the Intel specific basefw code (so not needed to build for posix).
| /* data cache line alignment */ | ||
| #define PLATFORM_DCACHE_ALIGN DCACHE_LINE_SIZE | ||
|
|
||
| #define SRAM_BANK_SIZE (64 * 1024) |
Collaborator
Author
There was a problem hiding this comment.
This definition is in cavs25/adsp_memory.h in Zephyr, not needed here in SOF codebase. All below stuff is unused stuff that can be removed.
lgirdwood
approved these changes
Sep 10, 2024
softwarecki
approved these changes
Sep 10, 2024
tmleman
approved these changes
Sep 10, 2024
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The SRAM definitions like SRAM_BANK_SIZE and EBB_BANKS_IN_SEGMENT are only used in Intel specific code and not really needed in platform layer that needs to implemented by all platforms. Move these definitions to base_fw_intel.c and clean up related definitions from platform layer.
Relates to #9015