Skip to content

Include window offset info in data section when building binaries for AMD platforms ACP_6_3 and ACP_7_0. - #9707

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
saisurya-ch:main
Dec 6, 2024
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
saisurya-ch:main

Conversation

@saisurya-ch

Copy link
Copy Markdown
Member

Include window info in data section when building binaries for AMD platforms ACP_6_3 and ACP_7_0.

@kv2019i kv2019i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ok from Intel point of view, @bhiregoudar feel free to merge. One minor note inline.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ths is a bit odd as there's no BINARY_BUILD Kconfig option defined in the tree. I guess this works,but is not the standard approach.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nnno, let's not do this. All CONFIG_* symbols must have Kconfig entries. It becomes very confusing otherwise. Please add a Kconfig option or make it a generic macro, then of course you cannot define it in *_defconfig. Let me block this for clarification, I stand open for discussion of course

lyakh
lyakh previously requested changes Dec 5, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nnno, let's not do this. All CONFIG_* symbols must have Kconfig entries. It becomes very confusing otherwise. Please add a Kconfig option or make it a generic macro, then of course you cannot define it in *_defconfig. Let me block this for clarification, I stand open for discussion of course

…ries.

Include window info in data section when building binaries for
AMD platforms ACP_6_3 and ACP_7_0.

Signed-off-by: SaiSurya Ch <[email protected]>
@lgirdwood

Copy link
Copy Markdown
Member

@lyakh good for you now ?

Comment thread src/drivers/amd/Kconfig
bool
default n
help
Select this if the platform need firmware binaries.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sorry, not sure I understand the comment correctly. What's the alternative? What does CONFIG_AMD_BINARY_BUILD=n mean? No firmware binaries needed? But SOF is providing such a firmware "binary?" Or do you mean additional binary-only firmware parts?

@saisurya-ch saisurya-ch Dec 6, 2024 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We meant to include the xsram_window in the data section using this config.

By default, xsram_window is present in the .fw_metadata section of rimage. But in a few scenarios, we need this data to be present in the data section of rimage.
We meant binary because, we like to parse few sections of the built rimage and make our own binaries in few cases, for which we need xsram_window to be present in data section rather than the fw_metadata section.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@saisurya-ch maybe you could add a bit of information here in an incremental PR, if I were building SOF for AMD, I wouldn't be sure whether I need this option

@lyakh
lyakh dismissed their stale review December 6, 2024 07:10

The comment has been addressed, thanks. Some documentation text could still be improved, but that isn't critical

@lgirdwood
lgirdwood merged commit 06fabba into thesofproject:main Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants