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

ASoC: SOF: core: Add debug module parameters to set IPC and boot timeout #5189

Conversation

ujfalusi
Copy link
Collaborator

Add two module parameters to override the IPC and boot timeout values if the SOF stack is compiled with debug enabled to allow experimenting with different timeout values without the need to recompile the kernel.

dbaluta
dbaluta previously approved these changes Sep 24, 2024
ranj063
ranj063 previously approved these changes Sep 24, 2024
bardliao
bardliao previously approved these changes Sep 25, 2024
@@ -636,11 +647,23 @@ int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data)
mutex_init(&sdev->ipc_client_mutex);
mutex_init(&sdev->client_event_handler_mutex);

/* set default timeouts if none provided */
/* set IPC timeout */
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ujfalusi there's a checkpatch warning related to the indentation and it looks legit. Do you mind checking? Perhaps moving the new parts after the following if/else to override the default value might be better?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ranj063, yes, probably that is better, I'll do that.

Add two module parameters to override the IPC and boot timeout values if
the SOF stack is compiled with debug enabled to allow experimenting with
different timeout values without the need to recompile the kernel.

Signed-off-by: Peter Ujfalusi <[email protected]>
@ujfalusi ujfalusi dismissed stale reviews from bardliao, ranj063, and dbaluta via 06ec568 September 26, 2024 05:50
@ujfalusi ujfalusi force-pushed the peter/sof/pr/debug-ipc-boot-timeout-01 branch from f8b852f to 06ec568 Compare September 26, 2024 05:50
@ujfalusi
Copy link
Collaborator Author

Changes since v1:

  • Move the timeout override as a separate section with ifdef block - fixes the checkpatch report.

@ujfalusi ujfalusi merged commit 7b8017e into thesofproject:topic/sof-dev Oct 4, 2024
11 of 14 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.

5 participants