Commit Graph

2736 Commits

Author SHA1 Message Date
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
Adrian Bonislawski 56682f4d79 coredump-reader: remove isatty() and fixed print when used with piped more
Now it is possible to pipe output with 'more'

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski 2e63ee2144 coredump-reader: make columncount dependent on verbose option in help
This is to notice user that columncount option will work only with verbose

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Adrian Bonislawski 75466d8b2d coredump-reader: remove unnecessary separator + proper permissions
Two separators didnt work correctly

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-04 15:10:42 +01:00
Liam Girdwood 857fb13ea6 github: don't automatically assign features and bugs.
Assignment will be manual via GH issue page.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2019-04-04 11:19:02 +01:00
Xun Zhang cbbc6afd35 tools: test: topology: add argument to fix build error in test tplg
Add one argument in test-tone-playback.m4 to fix the building error
of insufficient PIPELINE_ADD arguments.

Signed-off-by: Xun Zhang <xun2.zhang@intel.com>
2019-04-03 21:39:42 +01:00
Adrian Bonislawski 2ec2c2101b panic: fix faulty panic handling
This commit will change the order of functions in panic_rewind() to fix SOF_IPC_PANIC_STACK in dump_stack().
Thats because arch_dump_regs() function is not able to make a 100% safe return

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-03 21:24:55 +01:00
Marcin Maka cbd3e07031 tools: doc: README converted to README.md
MD content is rendered by GH automatically when listing
tools folder.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-04-02 12:23:13 +01:00
Seppo Ingalsuo d7b36bf3e4 FIR EQ: Add support for timer based scheduling
This patch adds to copy() function capability to handle any number
of frames with circular source and sink buffers. The number of
frames to process is retrieved with new helper function
comp_get_copy_limits().

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo ddc383e9ef FIR EQ: Fix for pipeline PCM format handling plus code cleanup
This patch determines the frame format for component depending on
stream direction. In playback it is determined from source buffer
and in capture from sink buffer. The errors handling in prepare()
is improved.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo 7f617947f0 IIR EQ: Add support for timer based scheduling
This patch adds to copy() function capability to handle any number
of frames with circular source and sink buffers. The number of
frames to process is retrieved with new helper function
comp_get_copy_limits().

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo 5e487e013d IIR EQ: Fix for pipeline PCM format handling plus code cleanup
This patch determines the frame format for component depending on
stream direction. In playback it is determined from source buffer
and in capture from sink buffer. The errors handling in prepare()
is improved.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Seppo Ingalsuo 22ecaa41e1 Component: Add comp_get_copy_limits() function for copy() preparations
This patch adds into component.c/h an utility function and
a data structure to simplify audio component's copy() method code.

The do-nothing function pipeline_xrun() is added to avoid cmocka test
fail due to adding function comp_get_copy_limits().

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-04-02 09:53:29 +01:00
Bard liao ed97bb9418 topology: update HDA index
The index should be 0,1,2 instead of all 0.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
2019-04-02 09:52:25 +01:00
Bartosz Kokoszko acf2bd52d5 codeowners: updated tools/logger codeowners
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2019-04-01 14:56:35 +01:00
Tomasz Lauda c14554349f component: add check if optional comp_ops are available
Adds check if optional comp_ops are available.
This patch also adds assert for mandatory ops.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-01 14:54:43 +01:00
Tomasz Lauda 872a04779e debug: add assert macro
Adds assert macro to easily locate wrong
parameters. If condition is not met we
will panic.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2019-04-01 14:54:43 +01:00
Adrian Bonislawski 592ffdd567 coredump-reader: add README
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-04-01 12:39:46 +01:00
Ranjani Sridharan eac4a73232 scripts: use project root directory instead of relative path
Use the SOF project root directory in get_abi.sh to read the
ABI macros instead of using the relative path.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2019-04-01 10:39:26 +01:00
Marcin Maka ad0ff1f2e5 tools: logger: added less formatted output mode
Activated by '-r' option. Useful for intermediate log
processing when the output is used as an input for another
tool. No headers, tokens separated by single spaces,
component ids concatenated with component name to
still produce a single token if present.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-04-01 11:37:57 +02:00
Liam Girdwood e58aa90483
github: update feature template
Initial feature template
2019-04-01 10:29:14 +01:00
Marcin Maka dc452b2771 cmake: generate map (section header list) file for sof elf
This file is useful to visualize memory map of the fw image
with much more details than using just the aggregated data
available from the .ri file manifest.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2019-04-01 11:27:29 +02:00
Liam Girdwood ef0d90af76
Update issue templates
Initial bug report.
2019-04-01 10:13:02 +01:00
Bard liao 052942c863 topology: add ABI information
We can add ABI information to the Manifest section. So kernel can
check if the topology is compatible with the kernel.

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
2019-03-29 16:55:04 +00:00
Adrian Bonislawski 2302012fe9 coredump-reader: fix fg error when running without colours
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2019-03-29 13:27:53 +01:00
Kai Vehmanen a9cb19ada3 topology: add param check to PIPELINE_*() macros
Abort build if not all mandatory arguments are passed to
the top-level pipeline macros.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Kai Vehmanen 10c641d307 topology: add param check to VIRTUAL_WIDGET()
Abort build if not all mandatory arguments are passed to the
macro.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Kai Vehmanen 90fbcd54f3 topology: add param check to DAI_CONFIG()
Abort build if not all mandatory arguments are passed to the
macro.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Kai Vehmanen 322fe24e95 topology: add param checks to PCM macros
Abort build if not all mandatory arguments are passed to
the macros. This should help to catch invalid usage.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2019-03-29 12:14:05 +00:00
Seppo Ingalsuo a10e69d2f1 EQ: Fix IPC data copy size in new() method in IIR and FIR
The used memcpy_s() has wrong size for destination. It causes the
prepare() method to fail later in component life cycle into sink buffer
resize due to zero config->periods_sink value. This patch fixes the
fail of pipeline instantantion with IIR and FIR EQ components.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2019-03-29 11:01:31 +01:00