~canonical-hwe-team/hwe-next/+git/sof:tgl-007

Last commit made on 2020-08-18
Get this branch:
git clone -b tgl-007 https://git.launchpad.net/~canonical-hwe-team/hwe-next/+git/sof

Branch merges

Branch information

Name:
tgl-007
Repository:
lp:~canonical-hwe-team/hwe-next/+git/sof

Recent commits

96a4748... by Mohana Datta Yelugoti <email address hidden> on 2020-08-15

tools: testbench: check for array size mismatch for components

This patch uses the functionality added by the c9e090ccf37 commit
to check for array size mismatch in various components.

Not doing so may result in cases, where we try to write into the
space not allocated leading to segmentation fault.

Signed-off-by: Mohana Datta Yelugoti <email address hidden>

782d4ce... by Mohana Datta Yelugoti <email address hidden> on 2020-08-14

testbench: check array size mismatch while loading topology buffer

This patch uses the functionality added by the c9e090c commit
to check for array size mismatch while loading topology
buffer.

Signed-off-by: Mohana Datta Yelugoti <email address hidden>

d9712ef... by Mohana Datta Yelugoti <email address hidden> on 2020-08-14

testbench: topology:check array size mismatch in filewrite component

This patch uses the functionality added by the c9e090ccf37 commit
to check for array size mismatch in components.

Since, the components are in places other than tplg_parser, the
function which checks for the mismatch has been made an external
function from a static one. The function declaration has been
added to the tplg_parser header files, so that the function can
be used by any code which needs array size checks in components.

Signed-off-by: Mohana Datta Yelugoti <email address hidden>

6c14e76... by Karol Trzcinski <email address hidden> on 2020-06-26

trace: Log FW ABI and hash numbers

This log allows to fully identify source code and check ldc
compatibility with FW by comparing source hash value saved in ldc
file with value received from FW in runtimee.
Without this mechanism it's impossible to
be sure about right connection without booting firmware
(to read fw_ready message content), because value of fw_hash
hasn't been provided in output logs file. This is especially
important during debugging process based on logs received by
client.

Signed-off-by: Karol Trzcinski <email address hidden>

2263a8b... by Karol Trzcinski <email address hidden> on 2020-07-29

cmake: Include GIT_TAG in generated version.h file

GIT_TAG is user readable form of used source code version with
commit identifier, what is important for bugs reproducibility,
so it will be convenient to have this information in output logs.

Signed-off-by: Karol Trzcinski <email address hidden>

901f991... by Karol Trzcinski <email address hidden> on 2020-07-08

logger: Validate by src_hash instead of abi version from fw_ready

ABI version saved in fw_ready doesn't match with DBG_ABI version
saved in ldc file even for proper pair of fw and ldc file.
Moreover ldc file content changes at any log modyfication, what
is not related with DBG_ABI change, so this way of solving this
problem is incorrect.
Introduced src_hash value change solves both problems.

Signed-off-by: Karol Trzcinski <email address hidden>

9f293b0... by Karol Trzcinski <email address hidden> on 2020-07-17

sof: Add `src_hash` to `sof_ipc_fw_version` structure

This field will be used to compare ldc file with loaded fw version,
to assert validity of trace logs. Value used in sof-logger.

Signed-off-by: Karol Trzcinski <email address hidden>

60b737a... by Karol Trzcinski <email address hidden> on 2020-07-17

sof: Calculate source code hash

It may be used to check FW compatibility with ldc file.
It's much better than comparing DBG_ABI because logs content
may be updated without any DBG_ABI change in opposite to source
code hash value.

Signed-off-by: Karol Trzcinski <email address hidden>

b4a6cea... by Keyon Jie <email address hidden> on 2020-07-20

cavs: implement PM runtime dynamic clock switching

Let's select WAKEUP_HOOK for all cAVS platforms, and just do nothing
inside if that's the true.

1. When CONFIG_CAVS_LPRO_ONLY=y, use LPRO only, no clock switching.

2. When CONFIG_CAVS_LPRO_ONLY=n, dynamic clock switching will be
enabled, and the clock switching will be performed during
platform_wait_for_interrupt() only.

In platform_clock_on_waiti(), perform dynamic clock switching if
needed (active_freq_idx will be updated to denote the active non-wfi
clock frequecy index), and then put CORE_HP_CLK to perform possible
HPRO->LPRO switching if CONFIG_CAVS_USE_LPRO_IN_WAITI is selected.

In platform_clock_on_wakeup(), when CONFIG_CAVS_USE_LPRO_IN_WAITI is
selected, get CORE_HP_CLK to perform switching back to HPRO if HPRO
is the saved non-wfi active clock, and no more switching needed.
Otherwise, need to restore the active cpu freq_idx manually.

Signed-off-by: Keyon Jie <email address hidden>

6cdefe7... by Keyon Jie <email address hidden> on 2020-07-21

cAVS: clk: configure default CPU clocks

Define CPU_LPRO_FREQ_IDX, CPU_HPRO_FREQ_IDX and CPU_DEFAULT_IDX for all
cAVS platforms.

Signed-off-by: Keyon Jie <email address hidden>