Commit Graph

2765 Commits

Author SHA1 Message Date
Janusz Jankowski 1edb31d2d6 rimage: add option to set imr type
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-11 19:07:16 +02:00
Kai Vehmanen 9fa0aef635 tools: logger: ignore end-of-file in trace mode
Change logger behaviour such that in trace (-t) mode logger
only stops if an error is detected. If no error, logger
continues to try and read data from debugfs node.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-04-11 10:29:54 +02:00
Tomasz Lauda fe75426a93 host: remove unused variable
Removes unused variable from host component.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-10 21:57:40 +02:00
Pierre-Louis Bossart 826e361e7a CMake/rimage: add option to use out-of-tree private key
On specific Intel platforms, we have to use a private key which is not
shared with the rest of the world.

Extend xtensa-build-all.sh with an option, and pass the key path
explicitly to cmake if needed.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2019-04-10 15:54:20 +02:00
Adrian Bonislawski 25dd45f443 panic: panicinfo filename OOB fix
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-10 15:52:42 +02:00
Slawomir Blauciak cba12f12a8 soundwire: initial work
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2019-04-10 15:51:13 +02:00
Tomasz Lauda 300b970675 component: add new set_attribute ops
Adds new set_attribute component operations, which
allows to set some custom internal attributes.
Also adds COMP_ATTR_COPY_BLOCKING attribute and
implements it for host component.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-10 14:47:17 +02:00
Tomasz Lauda 3bcfda9ce7 hda-dma: add host blocking copy implementation
Adds implementation of blocking copy mode for Host DMA.
In blocking mode we are waiting for data to be actually
copied by DMA after incrementing pointer. Normally
there is no need to wait since next copy call should
read DMA pointers and calculate how many bytes can be
copied next, but there can be a situation, where we
want to copy as much data as possible as fast as possible
without any delayed scheduling. For this kind of usage
scenario blocking mode can be used without a need to
add any delay nor checking DMA pointers from external
components.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-10 14:47:17 +02:00
Tomasz Lauda eb2e854eb2 hda-dma: unify preload with regular host copy
Unifies preload function with regular host copy.
It's the preparation for blocking copy implementation.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-10 14:47:17 +02:00
Tomasz Lauda df8dc16854 hda-dma: remove HDA_STATE_INIT
Removes HDA_STATE_INIT state as it's no longer
needed and does nothing.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-10 14:47:17 +02:00
Tomasz Lauda 5165ee07a7 dma: rename callback types and copy flags
Renames callback types and copy flags to be more
precise.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-10 14:47:17 +02:00
Marcin Rajwa 8397684e85 memory: fix wrong calculation of remaining free blocks
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>

This patch corrects the calculation of free blocks.
Now, once we allocate all free space, the allocator
will go beyond available space.
2019-04-10 14:46:52 +02:00
Adrian Bonislawski ed6ac05f6b coredump-reader: proper structs alignment with fw data
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-09 12:46:48 +02:00
Adrian Bonislawski faf6696ea3 coredump-reader: fix windowbase and windowstart calculations
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-09 12:46:48 +02:00
Adrian Bonislawski b5ea5da52b coredump: add stack ptr + rewind_frames offset to plat header
+ coredump-reader changes to use new variable
+ moved dump_stack before arch_dump_regs in panic

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-09 12:46:48 +02:00
Janusz Jankowski c93670853f test: pipeline: remove mock for removed scheduler function
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-09 10:47:26 +02:00
Janusz Jankowski adc6cbe1be test: component: add missing header
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-09 10:47:26 +02:00
Janusz Jankowski 426647343f test: selector: remove unused variables
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-09 10:47:26 +02:00
Janusz Jankowski 51ef2db3d2 test: fix kpb compilation with -Werror
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-09 10:47:26 +02:00
Janusz Jankowski cfc78646e6 test: fix mixer compilation with -Werror
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-09 10:47:26 +02:00
Janusz Jankowski 48e6fb29fb test: xtensa: share flags for ut and fw
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-09 10:47:26 +02:00
Marcin Rajwa 18d116b230 GDB: cleanup and comments
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 237f5bcb80 GDB: move Xtensa specific stuff into arch/xtensa/gdb/*
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 02ef4d5392 GDB: fix "step" followed by "continue" issue
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 1cbc83650d GDB: Added support for memory write.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 7f4950e368 GDB: Added support for memory write (binary mode).
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa aae1c4c1d0 GDB: Added support for memory read.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 9e1bed23aa GDB: Added support for register write.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 7bd816e1f9 GDB: Added support for register read.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 17aaabcee4 GDB: Added support for single step.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa 031fc9fc11 GDB: Added the possibility to remove breakpoints.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Marcin Rajwa cbd5b297a9 GDB: Added support for insert breakpoint.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2019-04-08 21:03:15 +02:00
Xun Zhang d9c1c28fd5 scripts: build-tools: exit immediately when return an error value
fix build-tools script to exit immediately when error occurs.

Signed-off-by: Xun Zhang <xun2.zhang@intel.com>
2019-04-08 15:52:48 +02:00
Seppo Ingalsuo 0f0fc0788f Testbench: Update for file component new()
This patch updates the IPC check, allocation and copy for new()
to similar as in normal SOF components. The previous code caused
pipeline_comp_params() in pipeline.c to get uninitialized data.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-08 09:31:39 +02:00
Tomasz Lauda 95b896b084 smp: remove dedicated stacks for medium lvl interrupts
Removes dedicated stacks for medium lvl interrupts
as switching between different levels of irq doesn't
work correctly and requires more complicated
context switch implementation. We already have stack
per core used for runtime and level 1 interrupts and
currently its size is enough to also support other
irq levels (see UP arch).

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-08 09:19:51 +02:00
Seppo Ingalsuo 9c11127deb SRC: Add support for timer based scheduling
This patch adds to SRC for timer based scheduling capability to
determine in copy() the number of frames to process. Due to
potentially high computational load the max amount to process is
limited to just exceed the nominal number of frames per
scheduling rate. It prevents SRC to be preempted due to too long
processing time and cause pipeline xruns in the start of playback
when the buffers contain a large number of frames.

The pre-fill of samples in first copy() is removed since the just
above period length of data processing target avoids the sink
buffer to get too small number of frames for the downstream
pipeline.

The currently happening bad metallic sound with SRC in pipeline
is fixed by this patch.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-05 15:42:22 +01:00
Janusz Jankowski 1795e4a391 testbench: accumulate widgets while parsing
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Janusz Jankowski 18f9b77f5b testbench: open and register comp .so on first use
Component is registered in function added to shared lib's constructors.
We no longer call init found with dlsym, instead we delay delay
dlopen until we want to register comp.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Janusz Jankowski d0a46c26e7 host: schedule: check task_init op before calling
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Janusz Jankowski d3e68f91e4 testbench: remove dai and host
All components should be added after sys_comp_init,
to be able to register themselves.
Dai and host are not used so it's better to just
remove them.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Janusz Jankowski 8a472b8358 component: add init as constructor for .so
Component should register itself when built as shared lib.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Janusz Jankowski 3caeefd824 tools: scripts: update host installation path
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Janusz Jankowski cd7f96fdbc cmake: host: enable traces
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2019-04-05 15:01:44 +01:00
Bartosz Kokoszko f5e78430ff cavs: ssp: generic ssp mclk configuration for cavs
Unification in setting mclk and bclk in ssp_config() for cavs platform.
Now ssp clk information are placed in include/platform/clk-map.h. I've
added also possibility to select PLL Fixed clock as a mclk and bclk
source for cavs platforms.

issue: #560

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-04-05 14:45:39 +01:00
Bartosz Kokoszko 1a89f40b80 driver: ssp: using CONFIG_CAVS define in ssp.h
Refactor by replacing specific CONFIG_{cavs_platform}
defines by CONFIG_CAVS define.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-04-05 14:45:39 +01:00
Adrian Bonislawski 1071076be1 coredump: enhancement of example file
To make it more user-friendly by getting rid of empty prompts in output

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-05 11:25:16 +02:00
Adrian Bonislawski 21e8d5efc5 heap-debug: use the correct functions for heap trace
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:11:42 +01:00
Adrian Bonislawski 5949148b94 coredump-reader: add info to notice user about non-critical warning
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski fc13cff773 coredump-reader: unnecessary comments removed
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski db7a3cfe1b coredump-reader: core header and registers printing separately
To separate them visually for better reading

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00