Commit Graph

1313 Commits

Author SHA1 Message Date
Pan Xiuli 5a2c6bae76 ci: travis: add git tag
Travis CI will checkout to commit and no tag is there. Add a tag in the
travis CI script.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-26 11:34:54 +08:00
Pan Xiuli eb6e9a6a2c scripts: add -l option for host-build-all
Enable host lib install into local folder.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-26 11:31:13 +08:00
Ranjani Sridharan 81eae8886a ipc: set flag to disable memory banks before entering D3
This could potentially lead to power savings when the system
is suspended.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
2018-09-25 20:44:33 +01:00
Liam Girdwood 2460b01627
Merge pull request #414 from tlauda/topic/slave_cores_vecbase
arch: fix level 1 interrupts handling by slave cores
2018-09-25 20:43:06 +01:00
Liam Girdwood 92844ecc3b
Merge pull request #406 from tlauda/topic/remove_us
clk: remove clock microseconds handling
2018-09-25 20:41:40 +01:00
Liam Girdwood c3fd960895
Merge pull request #404 from tlauda/topic/idc_comp_cmd
idc: add IDC_COMP_CMD message
2018-09-25 20:40:36 +01:00
Liam Girdwood 47ddd8191c
Merge pull request #389 from singalsu/eq_iir_add_16_24_data_proposal
EQ IIR: Add support for S16_LE and S24_4LE data
2018-09-25 20:36:02 +01:00
Liam Girdwood 1674061b20 Revert "ci: travis: Add host build to travis."
This reverts commit a28476a2e7.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-09-25 16:25:13 +01:00
Tomasz Lauda c6cc4cc70d arch: fix level 1 interrupts handling by slave cores
Fixes handling of level 1 interrupts by slave cores.
Level 1 interrupts are handled by UserVector, which
for slave cores was set by default to ROM location.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-25 17:16:57 +02:00
Liam Girdwood 3b34b60e81
Merge pull request #405 from tlauda/topic/timer_irq_changes
timer: different handling of TIMER3 for cAVS
2018-09-25 15:17:29 +01:00
Seppo Ingalsuo ed77c60687 EQ IIR: Add support for S16_LE and S24_4LE data
This patch adds processing functions for S16_LE and S24_4LE data.
Existing support was only S32_LE. The lower word length filters are
executed with 32 bit algorithm core with left shifted input to keep the
data in MSB side. The output is shifted, rounded and saturated to the
lower precision.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-09-25 16:58:39 +03:00
Liam Girdwood a28476a2e7 ci: travis: Add host build to travis.
Make sure we build for host as part of CI.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-09-25 14:46:21 +01:00
Tomasz Lauda bb82e336b5 idc: add IDC_COMP_CMD message
Adds implementation for IDC_COMP_CMD message.
It allows to get and set component commands
for the components executed on slave cores.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-25 15:35:18 +02:00
Tomasz Lauda 9815f99d04 timer: different handling of TIMER3 for cAVS
Different handling of TIMER3 for cAVS platforms.
Now we are operating on irq masks on core level,
not on the timer level. It gives us opportunity
to implement multicore work queue.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-25 15:34:33 +02:00
Tomasz Lauda c2fce8fd1c clk: remove clock microseconds handling
Removes clock microseconds handling for scheduling
and work queue. In case of some clocks it is causing
too much of a drift in cycles. We still pass every
delay in microseconds, but handle it as milliseconds.
Microseconds are needed to get delays less then 1 ms.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-25 15:34:02 +02:00
Liam Girdwood e3238d6339
Merge pull request #413 from tlauda/topic/host_trace_functions
host: arch: add new trace functions for host
2018-09-25 11:27:43 +01:00
Tomasz Lauda 601b06a0aa host: arch: add new trace functions for host
Adds new trace functions for host architecture,
which fixes additional build errors.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-25 12:06:04 +02:00
Liam Girdwood 5450a2fcd8
Merge pull request #409 from tlauda/topic/host_build_fix
host: fix build errors
2018-09-24 16:03:19 +01:00
Liam Girdwood 0a97c2bd6f
Merge pull request #410 from jajanusz/ut-fix-after-pr390
test: fix: add log memory section
2018-09-24 15:59:32 +01:00
Janusz Jankowski ccc9296498 test: fix: add log memory section
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-09-24 15:39:37 +02:00
Tomasz Lauda 658ef67d1d host: fix build errors
Fixes building errors for arch host.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-24 10:33:36 +02:00
Liam Girdwood 902662dc0b
Merge pull request #402 from tlauda/topic/idc_task
idc: process IDC message as task
2018-09-21 14:27:02 +01:00
Tomasz Lauda 32bd57dccc idc: process IDC message as task
Processes IDC messages as scheduled tasks.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-21 10:40:12 +02:00
Liam Girdwood 30f8f76288
Merge pull request #400 from tlauda/topic/irq_manual_unmask
interrupt: add possibility for manual irq unmasking
2018-09-21 08:24:57 +01:00
Liam Girdwood 4a61c9566f
Merge pull request #390 from bkokoszx/debugability_v2
debugability: logging: Redesign tracing mechanism to enable proper logging
2018-09-21 08:23:48 +01:00
ArturX Kloniecki 25d2bdf5b5 debugability: logging: Redesign tracing mechanism to enable proper logging.
Declare log_entry structures that are linked to .static_log_entries
section of ELF.
trace_event macros extended to accept additional arguments and unconfined
number of characters.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-09-21 00:24:12 +02:00
Liam Girdwood f79d45c95e
Merge pull request #399 from tlauda/topic/idc_simplify_ppl_trigger
idc: simplify idc_pipeline_trigger
2018-09-20 16:03:06 +01:00
Tomasz Lauda ffa13fcc4d interrupt: add possibility for manual irq unmasking
Adds possibility for interrupt handler to decide,
whether it wants to manually handle unmasking irq
or have it done automatically.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-20 17:00:35 +02:00
Tomasz Lauda 7498774514 idc: simplify idc_pipeline_trigger
Simplifies idc_pipeline_trigger function by reading
component data directly from IPC buffer. This way
we don't need to send unneeded data through IDC.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-09-20 16:44:27 +02:00
Liam Girdwood f9a491f405
Merge pull request #397 from xiulipan/hostfix2
host: do not free the list header in host_reset
2018-09-20 11:49:56 +01:00
Liam Girdwood eb6d587f02
Merge pull request #396 from juimonen/eq_reset_fix
eq: iir: don't destroy eq config in reset
2018-09-20 11:46:31 +01:00
Pan Xiuli 7eae0a4264 host: do not free the list header in host_reset
The CONFIG_DMA_GW only enable with hda_dma, as the create_local_elems is
refined to create elem at every start. Did not need to keep the first
elem.

Use list_for_item_safe to delete all item in list. The old way will
delete and free the list header with belongs to the host_data. Free
the list header will directly free host_data and make the second run
fail if the memory is alloced again.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-20 18:11:08 +08:00
Jaska Uimonen 6b07e980d5 eq: iir: don't destroy eq config in reset
Remove freeing of config data in reset. If pm is
not enabled, stopping the stream causes component
reset in firmware. When you start a new stream the
eq parameters are gone and defaults will be used.
When pm is enabled this is not a problem because
component is recreated from swidget in kernel side.

Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
2018-09-20 09:25:08 +03:00
Liam Girdwood d7404c587e host: fix build for host library target.
Fixed size warnings in io.h and missing scheduler API.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-09-19 20:58:48 +01:00
Liam Girdwood 3366b8daf6
Merge pull request #393 from jajanusz/tests-pipeline-fix
test: pipeline: update mocks
2018-09-19 20:31:35 +01:00
Janusz Jankowski ae8a2be46c test: pipeline: update mocks
added missing new symbols - schedule_task_cancel

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-09-19 11:28:52 +02:00
Liam Girdwood 009447234c
Merge pull request #383 from mmaka1/smp-heap
memory: heap reorg for smp
2018-09-19 08:43:00 +01:00
Marcin Maka 13cdfbc6d5 dma: old unused mm context save/restore ops removed
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-09-18 19:44:29 +02:00
Liam Girdwood e4e3cb131c
Merge pull request #388 from mmaka1/hda-get-free
dma: hda: get-free-size simplified
2018-09-18 13:50:37 +01:00
Liam Girdwood f560916155
Merge pull request #387 from mmaka1/dai-dir-fix
dai: hda: fixed swapped direction flags
2018-09-18 13:15:54 +01:00
Liam Girdwood 102b7ad1e8
Merge pull request #386 from xiulipan/merge12_3
Merge stable 1.2 (part 3) scheduler and BYT part into master
2018-09-18 13:14:36 +01:00
Liam Girdwood 504c2ccd7f
Merge pull request #385 from zhigang-wu/topic/master-typo-err
sof: fix the spelling error
2018-09-18 12:53:51 +01:00
Marcin Maka 49f2175731 dma: hda: get-free-size simplified
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-09-18 11:45:11 +02:00
Marcin Maka 22b2492a49 dai: hda: fixed swapped direction flags
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-09-18 11:30:41 +02:00
Pan Xiuli 5b39370e1e scheduler: refine schedule_edf function to handle multiple task
There will be new task added in schedule_edf function, refine the
function to handle multiple task.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-18 16:28:54 +08:00
Pan Xiuli cc4e8c8205 task: clear interrupt earlier
list_item_for_safe is safe for item deletion, but when a new item is
appended to the list. It seems the item could not be go through.
To fix this limitation, move interrupt clear to make sure every IRQ is
handled.
Do not try to handle two task with one IRQ handler.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-09-18 16:26:23 +08:00
Rander Wang edef72f314 dma: fix dma issue on BYT
It is caused by the change of removing dai waiting after stop.
dma should not be stopped in dai_comp_trigger if HW LLI is not
enable. At this time DMA is still working and it can't be stopped
DMA engine would stop the channel automatically after each transfer.
So just query channel status to stop dma on BYT

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-09-18 16:25:01 +08:00
Rander Wang a2f0dd0931 wait: add a function to wait for a register ready by pulling method
The register status is checked by polling its value in request time

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-09-18 16:24:52 +08:00
Rander Wang 3b966f3d57 ipc: remove waiti running in IRQ level higher than passive level
waiti would cause FW panic if it is called in irq level
higher than passive level

Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
2018-09-18 16:24:33 +08:00
Wu Zhigang 90d3956780 sof: fix the spelling error
fix the spelling error.

Signed-off-by: Wu Zhigang <zhigang.wu@linux.intel.com>
2018-09-18 14:01:01 +08:00