From 3d57706725671136553ec33d10cfff5f852b6027 Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Mon, 30 Oct 2023 10:08:03 +0800 Subject: [PATCH] loadable module: define a new bit in fw_image_flags The bit 4 is set to force driver reload library on d3 exit Signed-off-by: Rander Wang --- config/mtl.toml | 1 + src/manifest.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/config/mtl.toml b/config/mtl.toml index 18109b4..6713e7b 100644 --- a/config/mtl.toml +++ b/config/mtl.toml @@ -55,6 +55,7 @@ base_offset = "0x2000" [fw_desc.header] name = "ADSPFW" load_offset = "0x40000" +fw_image_flags = "0x12" # BASE_FW (bit 1) + CONTEXT_IS_NOT_SAVED (bit 4) [module] count = 18 diff --git a/src/manifest.c b/src/manifest.c index f058100..c8b5fcc 100644 --- a/src/manifest.c +++ b/src/manifest.c @@ -1463,7 +1463,6 @@ int man_write_fw_ace_v1_5(struct image *image) m->desc.header.build_version = image->fw_ver_build; m->desc.header.feature_mask = 0x2; // -> should be feature mask - to fix - m->desc.header.fw_image_flags = 0x2; // -> should be feature mask - to fix m->desc.header.fw_compat = 0x100000; // -> PUT PROPER STRUCT /* create each module */