Commit Graph

2316 Commits

Author SHA1 Message Date
Bartosz Kokoszko 8ef2894a38 hda-dma: traces: added host hd-dma traces
Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-12-07 15:51:30 +00:00
Marcin Rajwa acce742819 GDB: Added IPC trigger for GDB debug.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2018-12-07 15:49:56 +00:00
Rander Wang be45dacd42 ipc: apply ipc change on BDW & HSW
this patch follows:

ipc: Fix false positive IPC dropped messages.

On receiving an IPC IRQ the handler currently does not check the
IRQ mask. This means notification received ACKs (i.e. for trace updates)
from the host may be reported as duplicate host command IPCs.

Fix this by checking IPC IRQ mask.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-12-07 15:49:02 +00:00
Slawomir Blauciak 2366d633b5 dma: make sure the blocking link tx wait happens only for playback
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-12-07 15:48:31 +00:00
Pierre-Louis Bossart ddebac091f topology: realign sof-apl-da7219 on sof-glk-da7219
Somehow those two files should only differ on SSP connections and MCLK
ID1, so it's pretty obvious no one has tested this since August...

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
2018-12-07 15:47:52 +00:00
Libin Yang b5d6c71ba4 dw-dma: refine the channel_get messages
The original messages in channel_get are misleading. Refine the messages
to show the right messages.

Signed-off-by: Libin Yang <libin.yang@intel.com>
2018-12-06 15:37:07 +00:00
Jakub Dabek 04fa66ad11 memory: fixed memory leak
Fix for memory leak when freeing continuous blocks.
Untill now only one block was freed since hdr->size was zeroed
at every loop pass and as it was part of loop condition loop has
been fired only once even if there were more than one blocks
to free.

Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-12-06 15:23:21 +00:00
ArturX Kloniecki da5073737c PM: Implement pm init and runtime for CNL.
Power management at platform init and during runtime was implemented
on CNL similarly to implementation on APL.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-12-06 15:22:24 +00:00
Libin Yang 4cd8e68ebd github: add libinyang as lib owner
Add Libin as src/lib owner.

Signed-off-by: Libin Yang <libin.yang@intel.com>
2018-12-06 08:24:22 +00:00
Rander Wang bccd08a9b6 task: remove medium task level on BDW & HSW
There are only two interrupt pins to support task levels, so
only low level and high level are supported on BDW or HSW.

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-12-06 08:23:51 +00:00
Slawomir Blauciak ab52fdc309 dma: ptr trace cleanup
Signed-off-by: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
2018-12-05 19:04:03 +00:00
Adrian Bonislawski 4d6e6a60c2 Log messages extension for trace_*() calls
Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
2018-12-05 15:32:05 +00:00
Ranjani Sridharan 1aa95f8e27 logger: show version numbers with the ABI mismatch error
Show the version numbers along with the ABI mismatch error.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-12-05 11:08:20 +00:00
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