Commit c39e6b2
Jyri Sarha
ASoC: SOF: ipc4-topology: Changes to mod init mem data message logic
Start adding struct sof_ipc4_mod_init_ext_memory_data payloads to all
setup messages and not only to Data Processing module instance setup
messages.
The idea is that all non DP module instances within the same pipeline
share the same memory attributes and access the same heap.
The new logic sums heap requirements together and picks the highest
stack requirement of all module instances belonging to a
pipeline. These pipeline specific attributes are sent as struct
sof_ipc4_mod_init_ext_memory_data payload in pipeline's setup message,
with the pipeline_id as the domain_id.
The non Data Processing module instance's setup messages also have
their struct sof_ipc4_mod_init_ext_memory_data payloads. In their
payload the domain_id is set to be same as their pipeline_id, and the
heap- and stack requirements are not set, as they were already sent
with the pipeline setup message.
The Data Processing module instances will also have their struct
sof_ipc4_mod_init_ext_memory_data payloads as before. In their payload
everything is as it was before, all attributes are copied directly
from their topology attributes.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent 617f177 commit c39e6b2
1 file changed
Lines changed: 45 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1311 | 1330 | | |
1312 | 1331 | | |
1313 | 1332 | | |
| |||
2964 | 2983 | | |
2965 | 2984 | | |
2966 | 2985 | | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
2971 | | - | |
2972 | | - | |
2973 | | - | |
2974 | | - | |
2975 | | - | |
2976 | 2986 | | |
2977 | 2987 | | |
2978 | 2988 | | |
| |||
2984 | 2994 | | |
2985 | 2995 | | |
2986 | 2996 | | |
2987 | | - | |
2988 | | - | |
2989 | | - | |
2990 | | - | |
2991 | | - | |
2992 | | - | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
2993 | 3001 | | |
2994 | | - | |
2995 | | - | |
2996 | | - | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
2997 | 3013 | | |
2998 | 3014 | | |
2999 | | - | |
3000 | 3015 | | |
| 3016 | + | |
3001 | 3017 | | |
3002 | 3018 | | |
3003 | 3019 | | |
| |||
3188 | 3204 | | |
3189 | 3205 | | |
3190 | 3206 | | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
3191 | 3217 | | |
3192 | 3218 | | |
3193 | 3219 | | |
| |||
0 commit comments