Commit 2f3a187
committed
ASoC: SOF: rework FW ABI version handling on kernel side
The definitions in sof/abi.h have been a verbatim copy of
the firmware header definition.
The header also defines a version and this has caused issues:
- kernel declares one version but as the interface supports
backwards-compatible minor version updates, many firmware
versions can be supported by any one kernel
- a single firmware MINOR version bump can cover multiple
changes to the interface and this can cause complex
dependencies to kernel patch backporting as kernel will
have multiple commits to support extensions identified
by a single MAJOR.MINOR version of firwmare
To improve the situation, move all version information out from the
shared header and define version as part of the implementation. Add
local definitions to ipc.c, topology.c and loader.c. These versions will
be updated when the implementation is updated. E.g. when a new token
type is added to topology parser, the version is updated in topology.c
to reflect this.
BugLink: thesofproject/sof#4986
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 7658378 commit 2f3a187
4 files changed
Lines changed: 23 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 9 | | |
25 | 10 | | |
26 | 11 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 12 | | |
33 | 13 | | |
34 | 14 | | |
| |||
54 | 34 | | |
55 | 35 | | |
56 | 36 | | |
57 | | - | |
58 | | - | |
59 | 37 | | |
60 | 38 | | |
61 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
958 | 964 | | |
959 | 965 | | |
960 | 966 | | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| |||
3595 | 3601 | | |
3596 | 3602 | | |
3597 | 3603 | | |
3598 | | - | |
3599 | | - | |
3600 | | - | |
3601 | | - | |
3602 | | - | |
3603 | | - | |
3604 | | - | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
3605 | 3608 | | |
3606 | 3609 | | |
3607 | 3610 | | |
| |||
0 commit comments