In order to reduce power consumption in runtime only subset of HP SRAM
banks have to be powered. The PR covers 2 aspects:
1. Changed memory map to move stack up by 21 memory banks. Buffer heap
size was reduced from ~2.3MB to ~0.9MB.
2. Changed HP SRAM initialization to power up only needed banks and
properly check HW response.
Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
As API required, we need transfer stream host comp.id inside hdr cmd,
otherwise, host side can't get information about which stream has Xrun
happened, and reported error as "XRUN for unknown stream, msg_id 0".
This is similar to Position IPC, add comp.id into cmd to fix it.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Add channel number to dmac in legacy platforms, and change the dma_init
function to fit the curruct code framework.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Added script I used to read preprocessor output during preprocessor metaprogramming development. Normally it is highly unreadable, this tool makes things a wee bit easier.
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
position for trace->pos is not updated, make error trace only show the
newest one. Now update the pos to make all error trace can be seen.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Some platforms like APL, CNL and ICL have a ROM that read the manifest
and loads the boot loader. This builds a simple ROM so that qemu can
boot APL, CNL and ICL firmware images for CI boot testing.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Bit mask setting macros for for specific parameters were expanded
in a way that was causing unexpected compiler behaviour. Specifically:
literal 1 was treated as 32bit integer ((1 << ((b_hi)-(b_lo) + 1)) -1)
was expanded to shift the 32bit integer by 32. ((1 << (31 - 0 + 1)) -1)
Macro MASK() was was missing left shift.
Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
sof-apl-hdmi.m4 is no longer needed.
It was used in early stage of HDA enablement as the 1st reference.
Now HDA settings are added to UP2/GLK/WHL platform m4 files.
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Case when w_ptr and r_ptr of dma buffer are equal, means
that buffer is empty. During adding traces to buffer, we
should't lead to that equality.
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
we now using git tag for version number control, but if
we release the code without .git/ folder, the git tag version
number is not present, so will cause compile error.
add the .tarball-version file as the local version number file,
it still can be generated by the autogen.sh from git tag. So
everytime anyone make a git tag should still modify the
.tarball-version file.
Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
Added tool to process coredumps, and to feed gdb commands to examine what caused the dump.
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>