Commit c1867b0
Jyri Sarha
module_adapter: fix memory API debug check for DP modules
Add dp_thread field to module_resources so that the memory API debug
check accepts allocations from both the IPC thread (rsrc_mngr) and the
DP thread. Update MEM_API_CHECK_THREAD to check both thread IDs.
Also change mod_alloc_ctx allocation from rmalloc to rzalloc to
zero-initialize the structure. The code assumes the dp_thread member
is NULL in case of a non-DP module.
Both threads using the memory tracking features is not a problem
since the memory operations are synchronized with semaphores and
events so that both threads are never doing resource operations at
the same time.
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>1 parent 0f9fa75 commit c1867b0
4 files changed
Lines changed: 10 additions & 3 deletions
File tree
- src
- audio/module_adapter
- module
- include/sof/audio/module_adapter/module
- schedule
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
507 | 511 | | |
508 | 512 | | |
509 | 513 | | |
| |||
0 commit comments