-
Notifications
You must be signed in to change notification settings - Fork 349
Tools: Testbench: Add IPC4 support #9483
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3292b73
platform: library: Add missing include task.h to ll_schedule
singalsu be9f075
Lib: Dai-legacy: Add chmap and channel_copy members to struct dai_data
singalsu 21b5571
IPC4: Add missing header include to alh.h
singalsu 7bf5d3d
IPC: IPC4: Skip ipc_wait_for_compound_msg() for CONFIG_LIBRARY
singalsu bbd3865
IPC: IPC4: Initialize IPC reply to zero ipc_cmd()
singalsu 634d192
IPC: IPC4: Remove unused function process_dma_index()
singalsu 77616b6
IPC: IPC4: Add File and dcblock to UUID map
singalsu 3c3ebc4
Audio: Component: Add module headers to component.h for testbench
singalsu 3645e6d
Audio: Crossover: Fix IPC4 testbench build
singalsu fe6b8d8
Audio: TDFB: Fix flexible array members in control notification
singalsu ea2fdda
Audio: Volume: Remove two unused variables from peakvolume
singalsu e3f13a8
Tools: Testbench: Rename files with IPC3
singalsu c7b090a
Tools: Testbench: Clean up header files
singalsu 8129566
Tools: Testbench: Cleanup and move common and IPC3 specific functions
singalsu 8db545f
Tools: Testbench: Error if filename is empty in file component
singalsu 5b3f6ec
Tools: Testbench: Add IPC4 support
singalsu 088893e
Tools: Testbench: Rename common_test C source files to utils
singalsu 2a0284f
Tools: Testbench: Add README.md text
singalsu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -534,6 +534,17 @@ static void ipc_compound_msg_done(uint32_t msg_id, int error) | |
| } | ||
| } | ||
|
|
||
| #if CONFIG_LIBRARY | ||
| /* There is no parallel execution in testbench for scheduler and pipelines, so the result would | ||
| * be always IPC4_FAILURE. Therefore the compound messages handling is simplified. The pipeline | ||
| * triggers will require an explicit scheduler call to get the components to desired state. | ||
| */ | ||
| static int ipc_wait_for_compound_msg(void) | ||
| { | ||
| atomic_set(&msg_data.delayed_reply, 0); | ||
| return IPC4_SUCCESS; | ||
| } | ||
| #else | ||
| static int ipc_wait_for_compound_msg(void) | ||
| { | ||
| int try_count = 30; | ||
|
|
@@ -550,6 +561,7 @@ static int ipc_wait_for_compound_msg(void) | |
|
|
||
| return IPC4_SUCCESS; | ||
| } | ||
| #endif | ||
|
|
||
| const struct ipc4_pipeline_set_state_data *ipc4_get_pipeline_data_wrapper(void) | ||
| { | ||
|
|
@@ -1603,7 +1615,7 @@ void ipc_cmd(struct ipc_cmd_hdr *_hdr) | |
| /* FW sends an ipc message to host if request bit is clear */ | ||
| if (in->primary.r.rsp == SOF_IPC4_MESSAGE_DIR_MSG_REQUEST) { | ||
| struct ipc *ipc = ipc_get(); | ||
| struct ipc4_message_reply reply; | ||
| struct ipc4_message_reply reply = {{0}}; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This kind of stuff could have been in a separate PR btw.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can take it to separate if this review pass takes longer than few days. |
||
|
|
||
| /* Process flow and time stamp for IPC4 msg processed on secondary core : | ||
| * core 0 (primary core) core x (secondary core) | ||
|
|
||
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.