Commit Graph

1498 Commits

Author SHA1 Message Date
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
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
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
Liam Girdwood 98f73a8448
Merge pull request #494 from keyonjie/master
platform: fix dma_get() of ipc fail issue for byt/hsw/cavs
2018-10-18 12:48:27 +01:00
Keyon Jie 8064f7c929 platform: fix dma_get() of ipc fail issue for byt/hsw/cavs
We need to call ipc_init() after dmac_init(), otherwise will faild
at getting dmac for ipc page table tranferring and error happends
as below:

CORE LEVEL COMP_ID TIMESTAMP DELTA FILE_NAME CONTENT
0 1 DMA 85943.645833 85943.648438 dma.c:59 No DMAs installed

Here correct and fix it.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-10-18 18:39:22 +08:00
Liam Girdwood 64129bd0a3
Merge pull request #484 from zhuyingjiang/add_v1_5_manifest_header
Add v1 5 manifest header
2018-10-18 11:19:37 +01:00
Zhu Yingjiang 5aa722e72b rimage: add firmware 1.5 manifest binary descryptor
add the 1.5 version manifest, for skylake and kabylake

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-10-18 14:42:58 +08:00
Zhu Yingjiang f1a40cff1f rimage: add firmware 1.5 manifest header
add manifest for skylake/kabylake, version 1.5

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-10-18 14:41:40 +08:00
Zhu Yingjiang 0a829ea0bb rimage: modify the API to version 1.8
change the define to 1.8
modify the API name to 1.8

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-10-18 14:38:12 +08:00
Zhu Yingjiang e539fa0965 rimage: rename the old css_header and fw_image_manifest
rename css_header to css_header_v1_8
rename fw_image_manifest to fw_image_manifest_v1_8

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-10-18 10:02:38 +08:00
Marcin Maka 550180ae16 dai: ssp: dynamic device descriptor initialization
This is a first step for run-time HW discovery on cavs
platforms.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-17 12:53:10 +02:00
Liam Girdwood b971739a4a
Merge pull request #493 from mmaka1/cfg-mem-wnd
Cfg mem wnd
2018-10-16 13:01:36 +01:00
Liam Girdwood 3fcdb15fb7
Merge pull request #492 from mmaka1/hda-header
dai: hda: added the header for the driver
2018-10-16 12:55:49 +01:00
Ranjani Sridharan 609d8a4e37 eq: update frame fmt and period bytes based on source fmt
update frame fmt and period bytes based on source format during
prepare to be able to handle all three PCM formats.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-10-15 21:34:59 -07:00
Ranjani Sridharan 4c57e2b51f comp: new function to set frame_fmt and period bytes based on source/sink
Add new function to update dev frame format based on source/sink
format. Update volume_prepare() with the new function.

Please note that the new function changes the handling of default
case while setting the frame format. The frame format should be
set to config format only in the case of DAI source/sink type.
For all other cases, it should be set to the dev params frame fmt.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-10-15 21:34:59 -07:00
Ranjani Sridharan 416ca64408 eq: use updated SOF_ABI_VERSION
Use updates SOF_ABI_VERSION instead of EQ specific ABI version.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-10-15 21:34:59 -07:00
Liam Girdwood fda4f1a3ac
Merge pull request #490 from akloniex/fix-trace-error
debugability: Restore error traces always using mbox.
2018-10-15 21:30:16 +01:00
Liam Girdwood ac9bbedecb
Merge pull request #491 from tlauda/topic/idc-comp-cmd-fix
ipc: fix condition for slave core comp cmd
2018-10-15 21:20:50 +01:00
Liam Girdwood af19236513
Merge pull request #486 from dabekjakub/fix_pause_resume
dma: fixed play pause bug
2018-10-15 21:19:05 +01:00
Marcin Maka 62f6742f4e make: cavs: make memory windows a configurable feature
Disabled for Sue configuration.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-15 16:55:30 +02:00
Marcin Maka 101610ea43 plat: cavs: removed unused platform specific ssp defs
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-15 16:55:30 +02:00
ArturX Kloniecki b0150764dc debugability: Restore error traces always using mbox.
Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-15 16:40:53 +02:00
Marcin Maka 802a287d9e dai: hda: added the header for the driver
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-15 15:58:49 +02:00
Tomasz Lauda 1aed447a03 ipc: fix condition for slave core comp cmd
Fixes condition for slave core component command.
It should only be executed on slave core if pipeline
is active. Otherwise master core should handle it.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-15 14:07:59 +02:00
Jakub Dabek 5cb14b3596 dma: fixed play pause bug
Removed status change on dma channel for release trigger.

Signed-off-by: Jakub Dabek <jakub.dabek@linux.intel.com>
2018-10-15 09:55:17 +02:00
Liam Girdwood 1024e946a4
Merge pull request #482 from tlauda/topic/idc-notify
notifier: support for multicore notifications
2018-10-14 20:26:14 +01:00
Liam Girdwood 36db3deefb
Merge pull request #485 from xiulipan/pr/qemu
Travis CI Update Part 2. (Enabel Qemu boot test)
2018-10-14 20:23:37 +01:00