[Sound-open-firmware] [PATCH 1/2] apl: Add text size in module info

Xiuli Pan xiuli.pan at linux.intel.com
Fri Mar 2 08:55:26 CET 2018


From: Pan Xiuli <xiuli.pan at linux.intel.com>

Add total text size we used in memory mapping into module info to
help rimage build the right FW binary.

Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>

---
Test with:
Mininow max rt5651 GP-MRB nocodec
SOF master: 1693b66bb1d804ded975767cc1e5911e6ff9c93c
SOF-Tool master: a02abb799405d0e4ad0d6bb46eacf6fbe958c06e
https://github.com/plbossart/sound/tree/topic/sof-v4.14:
9513a73b981bc1917705671ec54402a7e21672eb
---
 src/include/uapi/manifest.h           | 1 +
 src/platform/apollolake/base_module.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/include/uapi/manifest.h b/src/include/uapi/manifest.h
index ace9883..e83725b 100644
--- a/src/include/uapi/manifest.h
+++ b/src/include/uapi/manifest.h
@@ -102,6 +102,7 @@ struct sof_man_module {
 	struct sof_man_module_type type;
 	uint8_t hash[SOF_MAN_MOD_SHA256_LEN];
 	uint32_t entry_point;
+	uint32_t text_size;
 	uint16_t cfg_offset;
 	uint16_t cfg_count;
 	uint32_t affinity_mask;
diff --git a/src/platform/apollolake/base_module.c b/src/platform/apollolake/base_module.c
index 2f4a6ee..56633c5 100644
--- a/src/platform/apollolake/base_module.c
+++ b/src/platform/apollolake/base_module.c
@@ -46,6 +46,7 @@ struct sof_man_module apl_manifest = {
 			.domain_ll = 1,
 	},
 	.affinity_mask = 3,
+	.text_size = REEF_TEXT_SIZE + L2_VECTOR_SIZE,
 };
 
 /* not used, but stops linker complaining */
-- 
2.7.4



More information about the Sound-open-firmware mailing list