Commit Graph

1410 Commits

Author SHA1 Message Date
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
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
Liam Girdwood 85f399aadb
Merge pull request #445 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-01 20:42:01 +01:00
Liam Girdwood f574b71f55
Merge pull request #448 from tlauda/topic/smp-fix-ut
ut: fix tests on xtensa-smp
2018-10-01 20:39:02 +01:00
Liam Girdwood c4adc8700f
Merge pull request #442 from thesofproject/topic/suecreek
Add initial support for Intel S1000 aka Suecreek
2018-10-01 20:36:13 +01:00
Liam Girdwood eded228beb gitignore: ignore shared object .so files
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood 41a61bcdc1 sue: Add build support for Sue Creek platform
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood 36b85943a8 sue: dma: Add Sue Creek DMAC platform data.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood 244d30769b sue: platform: Add platform init for Sue Creek
Sue creek has no SRAM windows.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood 630e988a97 sue: scripts: Add sue creek support into buildall
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood c03f120d64 sue: Add initial support for suecreek IPC.
IPC will be via SPI on Suecreek.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood 5b321dd57d sue: Add support for Suecreek platform
Suecreek is Intel S1000 SoC audio DSP. Host connection is via SPI.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:09:58 +01:00
Liam Girdwood 95a6e304cc sue: Add SSP defs for Sue Creek
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 7b64a5fde8 sue: dmic: Add support for sue creek.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 489cfb5f0f sue: dw-dma: Add support for suecreek
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 43cebe0cb0 sue: clocks: Add clock config for suecreek.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 1ea7b575e2 xtensa: boot loader: sue creek has no IMR so use different base address
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 6d4e923955 xtensa: boot: Don't initialise SRAM windows for sue creek
Sue Creek has no SRAM windows so no need to init.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 99473f3200 rimage: add initial support for sue creek.
Build tested.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-10-01 20:03:06 +01:00
Liam Girdwood 4dd67d5754
Merge pull request #447 from tlauda/topic/fix_smp_build_cnl
arch: fix smp build on CNL and ICL
2018-10-01 16:10:14 +01:00
Liam Girdwood 34f7952ee5
Merge pull request #446 from mmaka1/pm-runtime-ext
pm: pm_runtime interface extended
2018-10-01 16:09:42 +01:00
Tomasz Lauda 0e92db32c1 ut: fix tests on xtensa-smp
Fixes UT on xtensa-smp architecture.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-01 16:24:22 +02:00
Tomasz Lauda a55e00c456 arch: fix smp build on CNL and ICL
Fixes building of xtensa-smp architecture on CNL and ICL.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-10-01 15:31:38 +02:00
Marcin Maka eba8bc68c3 pm: pm_runtime interface extended
Now accepts device index and flags.

Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
2018-10-01 15:04:26 +02:00
Seppo Ingalsuo 0f06203ca8 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-01 15:26:12 +03:00
Liam Girdwood 3ae5e6305e
Merge pull request #438 from tlauda/topic/apl-extend-system-heap
memory: apl: extend system heap
2018-09-29 15:55:15 +01:00
Liam Girdwood 6a12fb989c
Merge pull request #439 from tlauda/topic/xtos-remove-debug-write
arch: remove debug write from xtos
2018-09-29 15:46:42 +01:00
Liam Girdwood a97cd4f083
Merge pull request #437 from tlauda/topic/ipc-fix-notifications-again
ipc: fix position notifications (overwritten by merge)
2018-09-28 15:18:40 +01:00
Liam Girdwood dd411603a9
Merge pull request #436 from mmaka1/dma-cleanup
dma: simple i/f to control flow between platform and lib
2018-09-28 15:18:13 +01:00