Skip to content

Commit f59e706

Browse files
committed
debugability: extract fw_ready message to separate section
This is done in order to place fw_version, part of fw_ready message, in both .ri and .ldc files, for later verification of compatibility of trace logs reported by dsp with .ldc file parsed together by logger. Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
1 parent 3f3d7c0 commit f59e706

10 files changed

Lines changed: 40 additions & 6 deletions

File tree

src/platform/apollolake/apollolake.x.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,8 @@ SECTIONS
567567
*(*.static_log*)
568568
} > static_log_entries_seg :static_log_entries_phdr
569569

570+
.fw_ready : ALIGN(4)
571+
{
572+
KEEP (*(.fw_ready))
573+
} >sof_data :sof_data_phdr
570574
}

src/platform/baytrail/baytrail.x.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,5 +513,9 @@ SECTIONS
513513
{
514514
*(*.static_log*)
515515
} > static_log_entries_seg :static_log_entries_phdr
516-
}
517516

517+
.fw_ready : ALIGN(4)
518+
{
519+
KEEP (*(.fw_ready))
520+
} >sof_data :sof_data_phdr
521+
}

src/platform/baytrail/platform.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
#include <string.h>
5858
#include <version.h>
5959

60-
static const struct sof_ipc_fw_ready ready = {
60+
static const struct sof_ipc_fw_ready ready
61+
__attribute__((section(".fw_ready"))) = {
6162
.hdr = {
6263
.cmd = SOF_IPC_FW_READY,
6364
.size = sizeof(struct sof_ipc_fw_ready),

src/platform/cannonlake/cannonlake.x.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,4 +556,9 @@ SECTIONS
556556
{
557557
*(*.static_log*)
558558
} > static_log_entries_seg :static_log_entries_phdr
559+
560+
.fw_ready : ALIGN(4)
561+
{
562+
KEEP (*(.fw_ready))
563+
} >sof_data :sof_data_phdr
559564
}

src/platform/haswell/broadwell.x.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,5 +513,9 @@ SECTIONS
513513
{
514514
*(*.static_log*)
515515
} > static_log_entries_seg :static_log_entries_phdr
516-
}
517516

517+
.fw_ready : ALIGN(4)
518+
{
519+
KEEP (*(.fw_ready))
520+
} >sof_data :sof_data_phdr
521+
}

src/platform/haswell/haswell.x.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,5 +513,9 @@ SECTIONS
513513
{
514514
*(*.static_log*)
515515
} > static_log_entries_seg :static_log_entries_phdr
516-
}
517516

517+
.fw_ready : ALIGN(4)
518+
{
519+
KEEP (*(.fw_ready))
520+
} >sof_data :sof_data_phdr
521+
}

src/platform/haswell/platform.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
#include <string.h>
5757
#include <version.h>
5858

59-
static const struct sof_ipc_fw_ready ready = {
59+
static const struct sof_ipc_fw_ready ready
60+
__attribute__((section(".fw_ready"))) = {
6061
.hdr = {
6162
.cmd = SOF_IPC_FW_READY,
6263
.size = sizeof(struct sof_ipc_fw_ready),

src/platform/icelake/icelake.x.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,4 +556,9 @@ SECTIONS
556556
{
557557
*(*.static_log*)
558558
} > static_log_entries_seg :static_log_entries_phdr
559+
560+
.fw_ready : ALIGN(4)
561+
{
562+
KEEP (*(.fw_ready))
563+
} >sof_data :sof_data_phdr
559564
}

src/platform/intel/cavs/platform.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
#include <string.h>
5959
#include <version.h>
6060

61-
static const struct sof_ipc_fw_ready ready = {
61+
static const struct sof_ipc_fw_ready ready
62+
__attribute__((section(".fw_ready"))) = {
6263
.hdr = {
6364
.cmd = SOF_IPC_FW_READY,
6465
.size = sizeof(struct sof_ipc_fw_ready),

src/platform/suecreek/suecreek.x.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,4 +555,9 @@ SECTIONS
555555
{
556556
*(*.static_log*)
557557
} > static_log_entries_seg :static_log_entries_phdr
558+
559+
.fw_ready : ALIGN(4)
560+
{
561+
KEEP (*(.fw_ready))
562+
} >sof_data :sof_data_phdr
558563
}

0 commit comments

Comments
 (0)