Commit Graph

1437 Commits

Author SHA1 Message Date
Pan Xiuli b3c64f499a scripts: docker: add qmeu docker
Add a docker contains sof xtensa qemu

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:10 +08:00
Pan Xiuli 779d6bce35 scripts: create a folder for sof builder docker
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:10 +08:00
Pan Xiuli 1d6f12cfb5 scripts: add script for qemu check
usage: run this script in the qemu folder

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-12 17:06:03 +08:00
Liam Girdwood 7996f1ac10
Merge pull request #471 from akloniex/redefine-abi-version
abi: Redefine SOF_ABI_VERSION to allow for backward compatibility
2018-10-10 16:16:03 +01:00
Liam Girdwood bad7b99721
Merge pull request #454 from singalsu/eq_fir_add_16_24_data_proposal
EQ FIR: Add support for 16 and 24 bit data
2018-10-10 16:13:38 +01:00
Liam Girdwood 8aff3de2ac
Merge pull request #476 from jajanusz/fix-hda-dgbwp-typo
hda-dma: fix typo - read DGBWP
2018-10-10 16:01:17 +01:00
Liam Girdwood a14bfeb0bb
Merge pull request #474 from bardliao/master
dma-trace: remove specific reply
2018-10-10 16:00:53 +01:00
Seppo Ingalsuo 0c1756c49a EQ FIR: Add support for 16 and 24 bit data
This patch adds to equalizer capability to process 16 and 24 bit
pipelines in addition to 32 bit similarly as IIR. The generic C,
HiFiEP, and HiFi3 versions are updated with the capability.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-10-10 13:20:36 +03:00
Liam Girdwood 1c19a79d71
Merge pull request #475 from xiulipan/pr/travisdivbuild
Travis CI Update Part 1. (Separate platform stage status)
2018-10-10 10:51:35 +01:00
Liam Girdwood 3bb9c837b7
Merge pull request #470 from singalsu/eq_new_simplify_check_first_coefficient_blob_size
EQ: Check in new() coefficient blob size before allocating dev and cd
2018-10-10 10:23:38 +01:00
Liam Girdwood 55054afe84
Merge pull request #464 from singalsu/fix_bug_in_new_1k_alloc_buffers
Memory: Fix bug in previous commit that introduced 1k buffers
2018-10-10 10:20:40 +01:00
Liam Girdwood 2bcafb7e1d
Merge pull request #472 from mmaka1/clk-gating-put
plat: apl: clocks gated back on topology free
2018-10-10 10:13:36 +01:00
Bard liao 1aa421173b dma-trace: remove specific reply
ipc_platform_do_cmd will send a standard reply when ipc_cmd() return 0.
So, we don't need to send a specific reply in ipc_dma_trace_config().

Signed-off-by: Bard liao <bard.liao@intel.com>
2018-10-10 01:55:40 +08:00
Janusz Jankowski d260db7f5b hda-dma: fix typo - read DGBWP
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-10-09 16:27:03 +02:00
Pan Xiuli 0067b1b598 ci: traris: seprate job to show build stage
Seprate build scripts to show build stage of each platforms.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-09 17:42:24 +08:00
Pan Xiuli 173f4d21d0 scripts: add no riamge build options for build all script
Add -lr to let xtensa-build-all.sh do not build rimage.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-09 17:41:15 +08:00
Pan Xiuli 96aa24c2d9 scripts: add rimage build scripts local install
Add local install for rimage-build.sh

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-10-09 17:39:47 +08:00
Seppo Ingalsuo 323c55ae8d EQ: Check in new() coefficient blob size before allocating dev and cd
This patch simplifies new() function code and avoids unnecessary
allocation of component device and data resources if the the coefficient
blob is rejected due to size. The change is identical for FIR and IIR
EQs.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-10-09 11:36:46 +03:00
Marcin Maka 3f3fdf7894 plat: apl: clocks gated back on topology free
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-08 22:18:41 +02:00
ArturX Kloniecki 62ad4b83e9 abi: Redefine SOF_ABI_VERSION to allow for backward compatibility
SOF_ABI_VERSION macro now performs bitshift and addition to compose
final version number out of SOF_ABI_MAJOR, SOF_ABI_MINOR and SOF_ABI_MICRO
components.
Also added SOF_ABI_VERSION_INCOMPATIBLE macro to allow for easier comparison
between FW ABI version and client applications.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-08 19:20:04 +02:00
Liam Girdwood ccaff5c87e
Merge pull request #458 from thesofproject/topic/sgl-array
dma: SG elem lists replaced with arrays
2018-10-08 16:38:10 +01:00
Liam Girdwood ce7f99be29
Merge pull request #466 from tlauda/topic/smp-notifier
notifier: add notifier to core_context
2018-10-08 16:10:33 +01:00
Liam Girdwood b180af8ba7
Merge pull request #452 from mmaka1/clk-gating
plat: apl: clock gating adjusted for dai, dma, and cores
2018-10-08 16:06:26 +01:00
Marcin Maka 1ba7b5e0af plat: apl: clock gating adjusted for dai, dma, and cores
dai clocks ungated and resources allocated on the first use.
dma clocks ungated and resources allocated on the first use.
cores clocks gated in idle.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-08 15:03:45 +02:00
Marcin Maka d5eaa8fcc7 dma: SG elem lists replaced with arrays
Multiple alloctions of SG elements linked as a list
replaced with single allocations of arrays.

- The code flows (esp. cleanup-on-error) are simplified,

- number of 64bytes chunk allocations reduced from 18 to 12 for
  example very basic topology, no increase in other areas
  (2-period sgls still fit),

- more efficient allocation for host page tables on legacy platforms;
  instead of going from a desc array to the list that is copied to
  another list, there is just a single allocation of array moved
  to the destination component.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-08 14:37:53 +02:00
Marcin Maka f42c6573ea tplg: result of the free function propagated
Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-08 14:21:18 +02:00
Tomasz Lauda bebfad8028 notifier: add notifier to core_context
Adds notifier to core_context, which is the first step
of multicore notifier implementation.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-08 12:12:08 +02:00
Liam Girdwood aeb18eefd9
Merge pull request #459 from tlauda/topic/timer-driven-scheduling
schedule: implement timer driven scheduling
2018-10-06 22:27:35 +01:00
Liam Girdwood ec4b726bd1
Merge pull request #462 from akloniex/debugability
logging: Move trace class definitions to uapi/logging.h
2018-10-05 21:34:07 +01:00
Tomasz Lauda b46af7b3db schedule: implement timer driven scheduling
Implements timer driven scheduling by processing
DW DMA data in tasks added to work queue instead
of registering for DW DMA interrupt. Data processing
by default will happen every 1 ms.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-05 15:32:18 +02:00
Seppo Ingalsuo 796596d896 Memory: Fix bug in previous commit that introduced 1k buffers
This patch fixes a regression caused by commit
b5308ee8e6. The HEAP_RUNTIME_SIZE
calculation equation macro missed this buffer totally.

The number of 1k buffers is also increased to four to reach size
that is multiple of 4096 like other buffer pools. Non-4096 size
seems to cause DSP panic.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-10-05 16:26:58 +03:00
Liam Girdwood 0e924219f2
Merge pull request #451 from singalsu/eq_fir_heap_rt_1k_proposal
EQ FIR: memory: Add trace error for alloc fail and add a 1024 size buffer
2018-10-04 15:15:40 +01:00
Liam Girdwood 629358cd18
Merge pull request #460 from tlauda/topic/smp-sys-alloc
alloc: change way of allocation core context for slave cores
2018-10-04 14:27:38 +01:00
ArturX Kloniecki f21b6bd064 logging: Move trace class definitions to uapi/logging.h
Move definitions into header that would be shared between SOF and SOFT.
Paste SOF_ABI_VERSION into FW ready message.
Also remove unused code from uapi/logging.h.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-04 14:39:36 +02:00
Seppo Ingalsuo b5308ee8e6 EQ FIR: memory: Add trace error for alloc fail and add a 1024 size buffer
This patch adds a single 1024 bytes buffer into heap for e.g. rzalloc()
usage. The FIR EQ code didn't trace the allocation failure so it's added
to see better if this happens. The 1k allocation for PCM samples delay
line is quite typical since a 32 bit 100 tap stereo FIR will need 800
bytes.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-10-04 15:11:17 +03:00
Liam Girdwood d467268657
Merge pull request #457 from tlauda/topic/workq-fix-tick
work: new calculation of next tick
2018-10-04 12:26:33 +01:00
Liam Girdwood c53bba881d
Merge pull request #456 from akloniex/debugability
logging: Add proper comments about trace_event macro usage
2018-10-04 12:26:03 +01:00
Tomasz Lauda b561eb8692 alloc: change way of allocation core context for slave cores
Now master core can allocate core context from the system
heap of slave core.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-04 13:04:29 +02:00
ArturX Kloniecki 6ec8bce836 logging: Add proper comments about trace_event macro usage
Reorganize definitions of macros to enhance visibility of trace_event()
macro. Add proper comment about it's usage.
Fill in missing definitions when TRACE is defined 0, to avoid compilation
issues.

Signed-off-by: ArturX Kloniecki <arturx.kloniecki@linux.intel.com>
2018-10-04 10:59:18 +02:00
Liam Girdwood 57744b8742
Merge pull request #453 from tlauda/topic/smp-waiti-fix
cpu: fix panic at core power down
2018-10-03 15:39:09 +01:00
Tomasz Lauda 95f66f9172 work: new calculation of next tick
Changes method of calculation next work queue tick.
Instead of taking actual time of last tick, lets use
time of requested tick. From my experiments, it can
take up to ~40 cycles from requested time
of interrupt until interrupt handler is executed.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-03 14:44:22 +02:00
Tomasz Lauda 62de7e97e0 cpu: fix panic at core power down
Fixes panic at core power down. Panic happened due to
the waiti check, where we expect waiti to be executed
on irq level 0 and cpu power down happens on idc task
irq level. This is OK, because core is going to be
reset anyway.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-03 14:22:55 +02:00
Liam Girdwood af2c4d5376
Merge pull request #450 from tlauda/topic/smp-ppl-fix-cache
pipeline: cache fixes for multicore processing
2018-10-03 13:12:52 +01:00
Tomasz Lauda f35c9d9c65 pipeline: cache fixes for multicore processing
Fixes cache issues with multicore processing of multiple pipelines:
- Changes pipeline_cache method as previous implementation
  could not work, especially for invalidation.
- Allocates dma and dai private data in uncached memory,
  because those resources are shared between different
  pipelines, so potentially also between different cores.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-02 12:47:58 +02:00
Liam Girdwood 7aa627a10a
Merge pull request #440 from mmaka1/dai-cleanup
dai: simple i/f to control flow between platform and lib
2018-10-02 10:19:22 +01:00
Marcin Maka 233805572b dai: hda: array size and initialization based on platform settings
Defined correct hda dai quantities for cavs plaforms.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-02 10:20:32 +02:00
Marcin Maka 1d6643ec0f dai: simple i/f to control flow between platform and lib
A mechanism similar to the one used for dma applied.
Dai initialization moved to separate unit from the main platform
code for cavs.
Optional dynamic discovery and initialization possible before
making available to other fw units via the lib hub.
SSP count cleaned up for cavs (important pre-work
for clock gating).

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-01 22:15:44 +02:00
Liam Girdwood 531c9b54dd
Merge pull request #449 from thesofproject/revert-445-eq_fir_heap_rt_1k_proposal
Revert "EQ FIR: memory: Add trace error for alloc fail and add a 1024 size buffer"
2018-10-01 20:57:44 +01:00
Liam Girdwood 0b2e212c12
Revert "EQ FIR: memory: Add trace error for alloc fail and add a 1024 size buffer" 2018-10-01 20:56:32 +01:00
Liam Girdwood 6327ed5f17 hsw: memory: Add 4k size to HSW/BDW system heap
Needs the extra space to complete booting.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:43:30 +01:00