Skip to content

Commit 03224b1

Browse files
abonislawskimarc-hb
authored andcommitted
rimage: mtl: fix key slot setup based on imr type
Clean cherry-pick from separate rimage repo https://github.com/thesofproject/rimage/commits/stable-v2.7 This will properly setup partition_usage field and remove fixed 0x23 value from mtl toml Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com> (cherry picked from commit fbea59358d06ffa86645cdf4ce0996e352742eb5)
1 parent 20705ad commit 03224b1

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

tools/rimage/config/lnl.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ length = "0x0" # calculated by rimage
4444

4545
[signed_pkg]
4646
name = "ADSP"
47-
partition_usage = "0x23"
4847
[[signed_pkg.module]]
4948
name = "ADSP.met"
5049

tools/rimage/src/adsp_config.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,9 +1087,7 @@ static int parse_signed_pkg_ace_v1_5(const toml_table_t *toml, struct parse_ctx
10871087
if (ret < 0)
10881088
return ret;
10891089

1090-
out->partition_usage = parse_uint32_hex_key(signed_pkg, &ctx, "partition_usage", 0, &ret);
1091-
if (ret < 0)
1092-
return ret;
1090+
out->partition_usage = 0x20 + image->imr_type;
10931091

10941092
/* check everything parsed, expect 1 more array */
10951093
ctx.array_cnt += 1;

tools/rimage/src/rimage.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,6 @@ int main(int argc, char *argv[])
191191
}
192192

193193
if (image.adsp->man_ace_v1_5) {
194-
if (imr_type_override)
195-
image.adsp->man_ace_v1_5->adsp_file_ext.imr_type = image.imr_type;
196194
image.adsp->man_ace_v1_5->css.reserved0 = pv_bit;
197195
}
198196

0 commit comments

Comments
 (0)