Commit Graph

1622 Commits

Author SHA1 Message Date
ArturX Kloniecki 9af90ce211 debugability: Add components ids to trace_event macros
2 arbitrary IDs may now be passed to specialized versions of
trace_event macro: trace_event_with_ids. Also optimized runtime
stack usage of _trace_event functions.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-11-07 12:33:16 +01:00
Liam Girdwood 40c054ab30
Merge pull request #514 from mrajwa/icl_work
DMIC: Enable power for DMIC for ICL platform.
2018-11-06 19:53:10 +00:00
Marcin Rajwa 18baa47a9d DMIC: Enable power for DMIC for ICL platform.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2018-11-06 17:34:17 +01:00
Liam Girdwood 528870ac94
Merge pull request #528 from singalsu/fix_volume_generic_overflow
Volume: Fix overflow in s16 and s24 output conversions
2018-11-06 14:18:22 +00:00
Liam Girdwood 054a338d8f
Merge pull request #545 from xiulipan/pr/dockersh
Scripts update
2018-11-06 14:05:58 +00:00
Pan Xiuli fbb4053af0 scripts: only update platform that will be build
Keep other platform binary and lst files

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-06 15:39:52 +08:00
Pan Xiuli 0ca1c79d06 scripts: docker: remove -t flag
t flag is used to allocate a pseudo-TTY, but in some cases pseudo-tty is
not support. Removed for more useage.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-06 14:51:26 +08:00
Michal Jerzy Wierzbicki 87dad4adc5 preproc: META_COUNT_VARARGS_BEFORE_COMPILE: bugfix for tokens starting with parenthesis not being counted
; also introduced unit tests to check the issue

Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-06 02:38:16 +01:00
Zhu Yingjiang f1c5a15c8a rimage: add build scripts to build 1.5 image
add to build scripts and Makefiles to build firmware binary
for kbl and skl

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:36:03 +08:00
Zhu Yingjiang 328c4ea6e5 rimage: add 1.5 rimage package API
add API for making 1.5 rimage binary

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:36:02 +08:00
Zhu Yingjiang 7e0a9d8b6f rimage: add 1.5 rimage defines
add 1.5 rimage defines for skl and kbl

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:36:02 +08:00
Zhu Yingjiang 5d6a43c278 rimage: manifest: add manifest APIs
add the 1.5 manifest operation APIs

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:36:02 +08:00
Zhu Yingjiang dc17f286b9 rimage: manifest: add 1.5 manifest define
add 1.5 manifest structure define, macro define, KBL and
SKL 1.5 manifest defines

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 18:35:48 +08:00
Zhu Yingjiang f89a4a5418 rimage: manifest: rename old manifest to 1.8
rename old API and comments print info to 1.8, as for add
1.5 manifest.

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-05 16:19:49 +08:00
Liam Girdwood 33e4b99351
Merge pull request #455 from mwierzbix/debugability
debugability: macro metaprogramming refactor
2018-11-02 16:00:02 +00:00
Seppo Ingalsuo 4fa9a7b386 Volume: Fix overflow in s16 and s24 output conversions
The problem could be heard with extremely loud music content. The
32x32 saturating multiply function works for 32 bit output but
the result will overflow when less number of bits are used from output.

This patch adds to format.h rounded 32x32 multiply inline functions for
saturated s24 and s16 formats. The generic volume function is updated
to utilize them and the code structure is cleaned for easier maintenance
and simpler look.

The format.h file is cleaned up with function parameter indents and
remove of redundant code in saturate function.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-02 15:51:37 +02:00
Michal Jerzy Wierzbicki b284ac32b5 debugability: Macro Metaprogramming Refactor
Added macro functions to make repetitive, nearly identical functions more maintainable via metaprogramming. They generate code in pre-compile, conceptually similar to C++17 if-constexpr.  sof/trace, host/trace: rewrote _trace_event/d+ functions using preproc.h. test/cmocka/include/test_group_generator: rewrote macros to not conflict with new ones. Added unit tests to check whether more advanced and less obvious macros do in fact work.

Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-02 11:44:31 +01:00
Liam Girdwood 43da16962d
Merge pull request #519 from ranj063/dmic_prm
dmic: fix mem alloc for dmic params
2018-10-31 18:38:30 +00:00
Ranjani Sridharan 25d0f01d03 dmic: fix mem alloc for dmic params
The dmic params struct should be allocated in RZONE_RUNTIME
instead of RZONE_SYS so that it can be freed. This
fixes the DSP panic caused while it is freed after setting
the DMIC config.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-10-31 10:27:08 -07:00
Liam Girdwood 66bd59b080
Merge pull request #518 from thesofproject/topic/lrg/allocator-fixes
allocator: Improve rfree() debug and trace
2018-10-30 19:27:52 +00:00
Liam Girdwood 6b45d5c81a
Merge pull request #512 from akloniex/extract-fw_version
debugability: extract fw_version and copy it to .ldc file
2018-10-30 19:25:12 +00:00
ArturX Kloniecki 0f3f9c0807 rimage: debugability: include fw_version in .ldc file
Extract fw_version from fw_ready section of elf and include it in
header of .ldc file to allow verification by sof-logger.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-30 12:21:56 +01:00
Liam Girdwood 04b1ce4883
Merge pull request #517 from mmaka1/hda-size-fixed
dma: hda: Free size computation fixed
2018-10-29 16:50:22 +00:00
Liam Girdwood 62c5684ed6 allocator: Improve rfree() debug and trace
System heap is one time allocate only meant for init and not for freeing.
Panic if someone attempts to free system heap.

Provide pointers and cpu core ID for any failures in trace .

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-29 16:37:25 +00:00
Marcin Maka d7a6b50457 dma: hda: Free size computation fixed
Wrong result may impact pause/release command handlers running unaligned
with work queue tick.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-29 15:49:12 +01:00
ArturX Kloniecki f59e7061d3 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>
2018-10-29 12:54:38 +01:00
Liam Girdwood e10126306a
Merge pull request #513 from thesofproject/revert-505-link-dma-id
Revert "hda: set correct link dma channel"
2018-10-26 16:15:23 +01:00
Liam Girdwood 26bfbfd699
Revert "hda: set correct link dma channel" 2018-10-26 16:14:31 +01:00
Liam Girdwood 3f3d7c0473
Merge pull request #505 from RanderWang/link-dma-id
hda: set correct link dma channel
2018-10-25 16:43:06 +01:00
Liam Girdwood 8db46b4104
Merge pull request #500 from lbetlej/ldo_off_on_power_down
Set SRAM LDO off on power down - additional power gating on D0->D3 path.
2018-10-25 11:18:32 +01:00
Liam Girdwood 61e689c9f0
Merge pull request #498 from bkokoszx/dma-buffer-overflow
dma-trace: handling dma trace buffer overflow
2018-10-25 10:34:22 +01:00
Liam Girdwood 64d9594dad
Merge pull request #503 from singalsu/src_use_32bit_coef_in_testbench
SRC: Use 32 bit filter coefficients in host testbench
2018-10-25 10:04:10 +01:00
Liam Girdwood 818b4dfb1b
Merge pull request #507 from jajanusz/platform-streams-increase
platform: increase max streams count
2018-10-25 10:03:24 +01:00
Liam Girdwood f07af79665
Merge pull request #504 from slawblauciak/dai_dma_sync
Sync DAI HDA DMA start with the internal work queue
2018-10-25 09:40:19 +01:00
Lech Betlej d5c38284a1 Set SRAM LDO off on power down - additional power gating on D0->D3 path.
Added assembly macros to control state of LDO for LP and HP SRAM.
Macros are used during power down procedure to properly handle LDO state.
LDO handling sequence in power down procedure is specific for cAVS 1.5.

Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
2018-10-24 15:04:38 +02:00
Seppo Ingalsuo d5b4f5705f SRC: Use 32 bit filter coefficients in host testbench
This patch adds definition of CONFIG_HOST for SOF host version build
and selects for SRC the better quality and full conversions set in
such case.

The problem with default for gcc was that the conversions set for
non-optimized xtensa gcc is very limited and the quality has been
lowered to save resources. Hence the testbench creates huge amount
of fails without this change. With this patch the SRC test tracks the
quality of coefficients for optimized HiFiEP/HiFi3 version code.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-10-24 15:10:27 +03:00
Janusz Jankowski 480cc17a7c platform: increase max streams count
make max streams and channels count for CNL&ICL
match numbers of APL

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-10-24 13:42:34 +02:00
Bartosz Kokoszko ea52fb043f dma-trace: handling dma trace buffer overflow
In dtrace_add_event function I've added handling
dma trace buffer overflow. If there is not enough
memory, log will be dropped. Amount of dropped entries
is counted and it will be logged.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-10-24 12:12:50 +02:00
Slawomir Blauciak 7d6dc96cca Sync DAI HDA DMA start with the internal work queue
The internal work queue runs independently at a steady rate,
which caused the first DMA copy to be late in relation to DMA start.

Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-10-24 12:07:56 +02:00
Liam Girdwood b793f0c1a0
Merge pull request #483 from ranj063/eq
Eq 16/24/32-bit support
2018-10-24 10:02:45 +01:00
Liam Girdwood 8998135f77
Merge pull request #501 from tlauda/topic/smp-stack
memory: align stack space between xtensa smp and up
2018-10-24 09:49:10 +01:00
Rander Wang 9d62c12823 hda: set correct link dma channel
host dma and link dma work in decouple mode for SOF + HDA codec.
Now allocate host dma and link dma channel in host and set them
in FW individually.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-10-24 15:21:29 +08:00
Pierre Bossart bc50ce1954
Merge pull request #502 from akloniex/update-abi-header
abi: Update abi.h header to accommodate for changes done in krenel repository
2018-10-23 12:47:56 -05:00
ArturX Kloniecki 8b68c2bf78 abi: Update abi.h header to accommodate for changes done in krenel repository
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-23 11:45:53 +02:00
Tomasz Lauda 9bf88f355f memory: align stack space between xtensa smp and up
Aligns stack space, so that xtensa smp implementation
matches xtensa up implementation. It also fixes
problem with stack dump on smp architecture.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-22 14:35:20 +02:00
Liam Girdwood 6baff99f88
Merge pull request #488 from mmaka1/ssp-init
dai: ssp: dynamic device descriptor initialization
2018-10-19 21:16:29 +01:00
Liam Girdwood 459ccd2d65
Merge pull request #496 from mmaka1/ut-trace-fix
test: ut: added more stubs for trace functions
2018-10-18 16:55:46 +01:00
Marcin Maka d08a1e22d1 test: ut: added more stubs for trace functions
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-18 16:29:40 +02:00
Liam Girdwood 079558d3b9
Merge pull request #495 from mmaka1/drv-alloc-fix
alloc: fixed memory leaks in dw-dma
2018-10-18 15:20:26 +01:00
Marcin Maka c7574ef877 alloc: fixed memory leaks in dw-dma
Existing memory leaks in dw-dma in pause/resume scenarios fixed.
Potential leaks in probe/remove scenarios fixed too.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-18 15:27:07 +02:00