Commit 66cb904
committed
rtos: alloc: Fix SOF_MEM_FLAG_* values
Commit 5821682 ("heap: simplify heap API") changed the heap
API to make it more like Linux kernel API.
For example:
-> rballoc_align(flags, caps, bytes, align)
transformed into:
-> rballoc_align(flags, bytes, align)
So, caps was merged into flags! Causing overrun_permitted to be set and
making a lots of test (e.g SRC, Compress) to fail.
The original `flags` were the SOF_BUF_ flags mostly sent from Linux and
read from topology (e.g SOF_BUF_OVERRUN_PERMITTED,
SOF_BUF_UNDERRUN_PERMITTED).
But the new `flags` SOF_MEM_FLAG_* did not take this into account
and overlap with the older flags.
For now, what we can do is just shift the new flags so that they do not
overlap with the old flags.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>1 parent 42c0875 commit 66cb904
2 files changed
+28
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | | - | |
| 42 | + | |
37 | 43 | | |
38 | | - | |
| 44 | + | |
39 | 45 | | |
40 | | - | |
| 46 | + | |
41 | 47 | | |
42 | | - | |
| 48 | + | |
43 | 49 | | |
44 | | - | |
| 50 | + | |
45 | 51 | | |
46 | | - | |
| 52 | + | |
47 | 53 | | |
48 | | - | |
| 54 | + | |
49 | 55 | | |
50 | | - | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
| 33 | + | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
30 | 36 | | |
31 | | - | |
| 37 | + | |
32 | 38 | | |
33 | | - | |
| 39 | + | |
34 | 40 | | |
35 | | - | |
| 41 | + | |
36 | 42 | | |
37 | | - | |
| 43 | + | |
38 | 44 | | |
39 | | - | |
| 45 | + | |
40 | 46 | | |
41 | | - | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
0 commit comments