Commit Graph

2303 Commits

Author SHA1 Message Date
Tomasz Lauda b3bf1ca306 alloc: add system runtime heap
Adds system runtime heap, which should contain
runtime objects created by the kernel part of the code
(drivers, devices etc.) If there will be a need to
separate ring 0 access, this allows us to easily do it
by adding access rights.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-12-05 10:24:15 +00:00
Slawomir Blauciak 44a2c70c53 dma: optional hardware pointer traces
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-12-05 09:44:21 +00:00
Seppo Ingalsuo fac3a776f9 CODEOWNERS: Assign to myself test/audio, eqctl, and tune from tools
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-12-05 09:25:31 +00:00
Pan Xiuli 12e11b7693 scripts: enable tools test build
When pass -t, we will run make tests to build test topology.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-12-04 13:43:51 +00:00
Pan Xiuli 8174738b53 scripts: add rom build option
Enable build rom for the target. Could only use with GCC compiler.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-12-04 13:43:51 +00:00
Marcin Maka 95a3d93bbd tools: logger: turn off colors if the output file is not a tty.
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-12-04 13:37:16 +00:00
Rander Wang 5571da6dc1 topology: hda: change stream format from 32bits to 24bits
For most of hda codecs, 32bits is not supported and 24bits
is a suitable one.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-12-04 13:36:57 +00:00
Rander Wang 15e891202f topology: hda: refine dai setting for hda
This refinement follows commit on WHL

topology: whl: refine topology for hda on whl

    Fix the issue that ipc timeout when simutalously playback
    and capture. Now in FW, playback and capture are supported
    by different dai. So dai index should be different for playback
    and capture in the same be dai, or playback would use the same
    dai as capture

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-12-04 13:36:57 +00:00
Keyon Jie 9b9f8f9521 ipc: apl: add mask check to make sure ipc handle correctly
We have already add interrupt mask check for new message from host,
let's add the symmetric check for reply message also.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-12-04 13:30:39 +00:00
Keyon Jie 06ca708e34 ipc: byt: add mask check to make sure ipc handle correctly
We are missing interrupt mask check, which will lead to error handling
IPC message type(e.g. treat an reply message as an new one), Here add
mask check to fix that.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-12-04 13:30:39 +00:00
Liam Girdwood b3692cd78a
Merge pull request #658 from bardliao/master
[skip ci]github: add bardliao as uapi and ipc owner
2018-12-03 13:49:33 +00:00
Bard liao 5c5ff38ab2 [skip ci]github: add bardliao as uapi and ipc owner
Add bardliao as uapi and ipc owner

Signed-off-by: Bard liao <yung-chuan.liao@linux.intel.com>
2018-12-01 11:12:26 +08:00
Liam Girdwood e94a34fce2
Merge pull request #651 from singalsu/fix_eqs_from_abi_update
EQ: Fix FIR and IIR equalizers for the new user ABI
2018-11-30 16:26:17 +00:00
Seppo Ingalsuo cc6c76f1de Tools: Tune: Update EQ tools for new user ABI plus other cleanup
This patch adds into filter tools retrieving of ABI version from a
single function (a quick solution) and updates all configuration
data tools to apply the user ABI header.

The confusing platform_max_channels struct field is renamed to
channels_in_config (the EQ channel map) that creates many updates. The
EQ response plot title is fixed.

Finally new functions to decode IIR and FIR settings blobs is added.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-30 17:19:59 +02:00
Seppo Ingalsuo d27de3a671 tools: Update eqctl tool and sample configurations for new user ABI
The ext bytes read response parsing needs a fix since it now includes
the ABI header. A warning is printed if max control size is reached.
The example configurations are also updated to contain the header.

The patch also includes new IIR and FIR setup for pass-through
configuration (for testing) that configures the EQ component to totally
pass the filter computation.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-30 17:19:26 +02:00
Liam Girdwood 3baca873e3
Merge pull request #650 from tlauda/topic/sys-heap-cache
alloc: access to system heap always using cache
2018-11-30 12:31:16 +00:00
Seppo Ingalsuo 2e4b435302 Tools: Topology: Update EQ related topology files for new user ABI
This patch adds the ABI header into topology EQ data files and updates
the pipe-eq-volume-playback.m4 to include the coefficients from m4
directory like other topology files to prevent duplication of
response data.

The CONTROLBYTES_MAX is decreased to 304 due to larger IPC header size.
The update is not critical since the kernel contains other checks to
cover this. However it's done to avoid confusion.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-30 14:19:37 +02:00
Seppo Ingalsuo 2ddbab14a8 EQ: Fix FIR and IIR equalizers for the new user ABI
This patch contains the bug fixes for the EQ components to make them
work correctly. The topology and tools update is addressed separately. The
matching kernel patch is needed as well.

The first fix is for uapi header file that had left the macros
not updated. It caused the setup blob parsing to fail.

The FIR setup traces are updated to be easy to read with new trace. The
functional change is in get data where the configuration data size
and ABI version are written back to response.

The IIR is changed similarly but in addition the hard coded count
increase is replaced by the macro calculated value from ABI header
file.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-30 14:09:29 +02:00
Tomasz Lauda 2649ec78aa test: alloc: fix system heap alloc tests
Fixes system heap alloc tests, which crashed
due to wrong handling of memory freeing.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-30 10:07:32 +01:00
Tomasz Lauda 5b80e81c78 alloc: access to system heap always using cache
Changes access to system heap to cache only.
System heaps are separated for each core,
so it makes sense to stop using uncache.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-29 13:44:00 +01:00
Liam Girdwood d189651d28
Merge pull request #646 from tlauda/topic/fix-257
rimage: fix possible buffer overflow
2018-11-29 08:36:12 +00:00
Liam Girdwood 920a3bce7e
Merge pull request #647 from xiulipan/pr/owner
github: add xiulipan as some field owner
2018-11-28 14:57:47 +00:00
Liam Girdwood 70928de483
Merge pull request #639 from mrajwa/gdb_support
GDB: Initial commit - added debug vector and init code.
2018-11-28 14:46:11 +00:00
Pan Xiuli e20217abc7 [skip ci]github: add xiulipan as some field owner
Add some field owner and have basic structure for CODEOWNER.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-28 21:09:47 +08:00
Marcin Rajwa a84ccfe0a0 GDB: Initial commit - added debug vector and init code.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2018-11-28 13:16:58 +01:00
Tomasz Lauda 4bd543c337 rimage: fix possible buffer overflow
Fixes possible buffer overflow with strcpy.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-28 12:35:57 +01:00
Liam Girdwood e84770f46a
Merge pull request #643 from keyonjie/master
dw-dma: fix several trace formats issues
2018-11-28 10:12:40 +00:00
Liam Girdwood e082dd816a
Merge pull request #640 from ranj063/codeowner_topology
github: add @ranj063 as topology owner
2018-11-28 10:11:42 +00:00
Liam Girdwood 097c27ab94
Merge pull request #641 from xiulipan/pr/travistoolsupdate
CI: travis: add tools build
2018-11-28 10:10:34 +00:00
Keyon Jie 638d79bd0b dw-dma: fix several trace formats issues
Here fix several trace format issues, and one dma_start confusing logged
to 'put' issue.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-11-28 14:33:40 +08:00
Pan Xiuli 56314cdf9c CI: travis: add tools build
Add tools build into travis CI.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-28 13:34:15 +08:00
Ranjani Sridharan f081a20de9 github: add @ranj063 as topology owner
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-11-27 18:10:02 -08:00
Liam Girdwood 31cde1ce97
Merge pull request #615 from slawblauciak/hda_dma_cleanup
dma: clean up by separating some of host/link specific code
2018-11-27 14:35:58 +00:00
Liam Girdwood 983517e359
Merge pull request #638 from bkokoszx/logger-rimage-headers
logger: include file_format.h directly from rimage
2018-11-27 14:33:57 +00:00
Liam Girdwood bad017ba56
Merge pull request #636 from ranj063/fix/glk-virtual-widget-warnings
Topology: Fix glk virtual widget warnings
2018-11-27 14:30:25 +00:00
Liam Girdwood a3a1a44fca
Merge pull request #635 from RanderWang/link-topology
topology: whl: refine topology for hda on whl
2018-11-27 14:24:19 +00:00
Liam Girdwood 3b84200c36
Merge pull request #634 from RanderWang/link-dma-config
link dma: allocate link dma channel at dai_config
2018-11-27 14:14:29 +00:00
Liam Girdwood 24840b4dcc
Merge pull request #633 from libinyang/host_release_channel
host: release dw-dma channel when pcm free
2018-11-27 13:58:43 +00:00
Bartosz Kokoszko 93f1a2eaa7 logger: include file_format.h directly from rimage
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-11-27 10:43:06 +01:00
Rander Wang 9bebdbf384 link dma: allocate link dma channel at dai_config
Fix capture issue with hda codecs. Now the data captured by
hda codecs is full of zero. It is caused by mismatch of link
dma channel between host and FW.

Now host allocates link dma channel at dai config loading stage,
and sends it to FW to allocate link dma channel at dai_config
function

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-11-27 16:58:23 +08:00
Ranjani Sridharan 6ff198df7c topology: glk: fix virtual widget warnings
Modify hard-coded virtual widgets to prevent kernel
warnings generated by the machine driver. No need to
add virtual_dapm_routes. Just adding the required virtual
widgets suffices to suppress the warnings.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-11-27 00:10:01 -08:00
Ranjani Sridharan f9b8e08f75 topology: modify virtual_widget definition
Modify virtual_widget macro definition to take type as
an input so it can used for different types and update
its users.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-11-27 00:08:53 -08:00
Rander Wang f9c23243d6 topology: whl: refine topology for hda on whl
Fix the issue that ipc timeout when simutalously playback
and capture. Now in FW, playback and capture are supported
by different dai. So dai index should be different for playback
and capture in the same be dai, or playback would use the same
dai as capture

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-11-27 13:59:45 +08:00
Libin Yang 3362f9b339 host: release dw-dma channel when pcm free
On byt-like platform, sof should release dw-dma channel which is got
in set_params(). And in host_free(), it should not release any channel
as host doesn't get any channel in host_new()

Signed-off-by: Libin Yang <libin.yang@intel.com>
2018-11-27 10:26:15 +08:00
Liam Girdwood 443233c9a0
Merge pull request #623 from lbetlej/move_stack_to_pg_sram
Power up only subset of HP SRAM banks on FW init (CannonLake)
2018-11-26 20:12:41 +00:00
Liam Girdwood 25217514d7
Merge pull request #627 from bkokoszx/logger-abi-verification
tools: logger: logger abi verification
2018-11-26 20:10:50 +00:00
Bartosz Kokoszko 221064d463 tools: logger: abi verification addition
I've added abi_version verification. Be default logger verify: abi
in *.ldc file with logger abi version. Additionally, logger can verify
abi in "/sys/kernel/debug/sof/fw_version" (with -e flag) or in
ver_file (with -v ver_file) with logger abi version.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-11-26 18:06:55 +01:00
Bartosz Kokoszko 159cea157f tools: logger: removed uapi dependency
Logger now includes uapi directly from FW code.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-11-26 18:06:26 +01:00
Liam Girdwood 3e23513881
Merge pull request #584 from singalsu/dmic_ipc_add_params
IPC: DMIC: Add clock start and clock change time delay parameters
2018-11-26 14:59:24 +00:00
Liam Girdwood e610edca7c
Merge pull request #626 from ranj063/host-owner
github: add ranj063 as owner of src/host
2018-11-26 14:54:48 +00:00