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

mt8195 fixups #8691

Merged
merged 3 commits into from
Mar 11, 2024
Merged

mt8195 fixups #8691

merged 3 commits into from
Mar 11, 2024

Conversation

andyross
Copy link
Contributor

@andyross andyross commented Jan 3, 2024

Various fixups required to resurrect builds for mt8195 in main. Split out from #8571 as they should be uncontroversial.

@@ -843,7 +843,6 @@ static int rtnr_prepare(struct comp_dev *dev)
{
struct comp_data *cd = comp_get_drvdata(dev);
struct comp_buffer *sinkb;
struct comp_buffer *sink_c;
Copy link
Collaborator

@marc-hb marc-hb Jan 3, 2024

Choose a reason for hiding this comment

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

(Which... implies that RTNR isn't being built anywhere in CI?)

This code is compiled in the IPC3 stub but I just tested that again and clang version 16 (and others) does not complain about unused variables in that function. Mysteries of compiler warnings...

RTNR is not compiled in app/stub_build_all_ipc4.conf, feel free to add there.

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@Zames-Chang any comments ?

@cujomalainey
Copy link
Member

@Zames-Chang any comments ?

He is from Google, not MTK. We need @thesofproject/mediatek to respond, we will ping through other channels next week if we don't get a response by monday.

#define PLATFORM_TASK_DEFAULT_STACK_SIZE 3072
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

wow, that's a bit heavy-handed, but well, if it works...

Copy link
Contributor Author

@andyross andyross Jan 10, 2024

Choose a reason for hiding this comment

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

It's actually the only place to put a stack size in XTOS SOF. FWIW the same kind of issue exists with the DP scheduler too, which shares a single worker thread for a core and thus has to be sized to the largest stack consumer that it might run, which is likewise done with a global setting, though there AEC was the first consumer so it got an 8k stack in the first version.

@cujomalainey
Copy link
Member

@andyross can we rebase this?

AEC initialization is stack-hungry, needing ~6kb during
initialization.  That happens under the IPC task, not a
component-local stack.  So bump the default for all tasks as that's
the only way to make sure IPC gets it.

(Really this shouldn't be a platform choice, but that's where the
symbol exists)

Signed-off-by: Andy Ross <andyross@google.com>
Add the .dot file header/footer macros.  These are benign if unused,
and it seems like most other devices have them defined.

Signed-off-by: Andy Ross <andyross@google.com>
The mocking layer is an important debugging tool.  It shouldn't be on
by default lest we accidentally build without the real feature.

Signed-off-by: Andy Ross <andyross@google.com>
@andyross
Copy link
Contributor Author

andyross commented Mar 7, 2024

Prune some stale patches that merged via other means. The stack patch is here is still needed to have working AEC. The other two are just hygine.

@lgirdwood
Copy link
Member

@wszypelt @lrudyX not expecting a failure since these are MTK specific changes. Can you confirm good to merge thanks !

@kv2019i kv2019i merged commit 83f69f1 into thesofproject:main Mar 11, 2024
38 of 44 checks passed
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.

8 participants