Commit Graph

2245 Commits

Author SHA1 Message Date
Lech Betlej bb2663653d Power up only subset of HP SRAM banks on FW init (CannonLake)
In order to reduce power consumption in runtime only subset of HP SRAM
banks have to be powered. The PR covers 2 aspects:
1. Changed memory map to move stack up by 21 memory banks. Buffer heap
size was reduced from ~2.3MB to ~0.9MB.
2. Changed HP SRAM initialization to power up only needed banks and
properly check HW response.

Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
2018-11-23 16:33:34 +01:00
Liam Girdwood 6e14892bb6
Merge pull request #622 from keyonjie/master
IPC: Xrun: fix Xrun stream id error issue
2018-11-23 12:43:10 +00:00
Keyon Jie 1b673c48a0 IPC: Xrun: fix Xrun stream id error issue
As API required, we need transfer stream host comp.id inside hdr cmd,
otherwise, host side can't get information about which stream has Xrun
happened, and reported error as "XRUN for unknown stream, msg_id 0".

This is similar to Position IPC, add comp.id into cmd to fix it.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
2018-11-23 19:33:18 +08:00
Liam Girdwood 96d6c6bc0f
Merge pull request #621 from jajanusz/autoconf-make-roms-optional
autoconf: make roms build optional
2018-11-23 10:54:32 +00:00
Janusz Jankowski 64497f5f64 autoconf: make roms build optional
Use --enable-roms to build ROMs

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-11-23 11:46:38 +01:00
Liam Girdwood e8ef1f21c4
Merge pull request #617 from jajanusz/update-codeowners-makefiles
github: add jajanusz as owner of .ac .am files
2018-11-22 15:21:01 +00:00
Janusz Jankowski 051bfdd04c github: add jajanusz as owner of .ac .am files
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
2018-11-22 15:36:22 +01:00
Liam Girdwood 77e96abba6
Merge pull request #616 from singalsu/add_codeowners_singalsu
CODEOWNERS: Add SRC; EQ, FIR, IIR, tone, and DMIC to singalsu
2018-11-22 14:29:41 +00:00
Liam Girdwood ad3f3e4f77
Merge pull request #134 from mwierzbix/helper-scripts-pretty-macro
shell-scripts: human-readable preprocessor output
2018-11-22 14:23:36 +00:00
Seppo Ingalsuo 87a044f583 CODEOWNERS: Add SRC; EQ, FIR, IIR, tone, and DMIC to singalsu
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
2018-11-22 16:23:08 +02:00
Liam Girdwood 105dd406c6
Merge pull request #614 from tlauda/topic/fix-alloc-free
alloc: fix freeing of uncached pointers
2018-11-22 14:16:06 +00:00
Liam Girdwood 9ab0b6d9ae
Merge pull request #606 from thesofproject/lrg/topic/vm-rom
Build simple ROMs for CI testing of APL etc
2018-11-22 14:02:36 +00:00
Tomasz Lauda 754757ab17 alloc: fix freeing of uncached pointers
Fixes freeing of uncached pointers.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-22 13:55:23 +01:00
Liam Girdwood 8c20df92fa
Merge pull request #612 from thesofproject/github-owners-mwierzbix-add
github: added mwierzbix as owner of preproc
2018-11-22 11:29:28 +00:00
Liam Girdwood b0e3dbd5b4
Merge pull request #610 from lbetlej/fix_in_set_bits_macro
Fixes for macros used for bit masks creation.
2018-11-22 11:25:42 +00:00
Liam Girdwood 4d005d0b2f
Merge pull request #613 from xiulipan/pr/bytfix
Fix BYT issues
2018-11-22 11:23:52 +00:00
Liam Girdwood ace76bc6ec
Merge pull request #607 from xiulipan/pr/etracefix
trace: increase trace pos for each event
2018-11-22 11:05:37 +00:00
Pan Xiuli a9157a7d92 host: fix wrong usage of dma_channel_get
Need not to use stream tag for dw_dma as the comment said

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 18:32:59 +08:00
Pan Xiuli 44ea105c06 ipc: set timer delay to 0 for ipc_get_page_descriptors
Set the timer delay to avoid none init value broke the dma copy.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 18:32:59 +08:00
Pan Xiuli 8845e25f4a dma: enable legacy platform dmac
Add channel number to dmac in legacy platforms, and change the dma_init
function to fit the curruct code framework.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 18:32:59 +08:00
Michal Jerzy Wierzbicki a8e6dbdb80 github: added mwierzbix as owner of preproc
Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-22 11:11:02 +01:00
Michal Jerzy Wierzbicki 044077cb86 shell-scripts: human-readable preprocessor output
Added script I used to read preprocessor output during preprocessor metaprogramming development. Normally it is highly unreadable, this tool makes things a wee bit easier.

Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-22 09:57:58 +01:00
Pan Xiuli ce17a23ab3 trace: increase trace pos for each event
position for trace->pos is not updated, make error trace only show the
newest one. Now update the pos to make all error trace can be seen.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
2018-11-22 13:28:26 +08:00
Liam Girdwood 93540c74eb rom: ci: build xtensa ROM images for CI boot testing.
Some platforms like APL, CNL and ICL have a ROM that read the manifest
and loads the boot loader. This builds a simple ROM so that qemu can
boot APL, CNL and ICL firmware images for CI boot testing.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 20:58:45 +00:00
Lech Betlej 0cc0ab6061 Fixes for macros used for bit masks creation.
Bit mask setting macros for for specific parameters were expanded
in a way that was causing unexpected compiler behaviour. Specifically:
literal 1 was treated as 32bit integer ((1 << ((b_hi)-(b_lo) + 1)) -1)
was expanded to shift the 32bit integer by 32. ((1 << (31 - 0 + 1)) -1)
Macro MASK() was was missing left shift.

Signed-off-by: Lech Betlej <lech.betlej@linux.intel.com>
2018-11-21 19:38:51 +01:00
Liam Girdwood c0a77679d1 rom: linker: Add linker scripts for ROM platforms.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 17:22:21 +00:00
Liam Girdwood ca1e5d0bba build: clean: Don't delete .bin files during make clean
rom-<plat>.bin files need to stay around for testing after script builds.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 17:16:36 +00:00
Liam Girdwood 7a7934332f
Merge pull request #605 from thesofproject/revert-597-topic/sof-dev-fix-version-number
Revert "scripts: add local version number file"
2018-11-21 17:15:30 +00:00
Liam Girdwood d548d8f3a6
Revert "scripts: add local version number file" 2018-11-21 17:15:14 +00:00
Liam Girdwood 3ce2d070f3
Merge pull request #604 from thesofproject/lrg/topic/github
github: Add initial github owners/reviewers file.
2018-11-21 16:28:02 +00:00
Liam Girdwood feb850d4eb
Merge pull request #600 from thesofproject/lrg/topic/scripts
scripts: xtensa-build-all: Add support for > 1 makefile job
2018-11-21 16:27:18 +00:00
Liam Girdwood 2e8f293e28 github: Add initial github owners/reviewers file.
This file will help github to determine who will review PRs.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 16:25:57 +00:00
Liam Girdwood baf2806626 scripts: xtensa-build-all: Add support for > 1 makefile job
Add -j option to allow setting Makefile jobs.

Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
2018-11-21 15:52:00 +00:00
Liam Girdwood 6da07a9116
Merge pull request #137 from keqiaozhang/icl-tplg
topology: add 4-ch dmic topology for ICL
2018-11-21 15:42:18 +00:00
Liam Girdwood 69d109e489
Merge pull request #136 from mengdonglin/topic/rm-apl-hdmi-only-m4
topology: Remove sof-apl-hdmi.m4
2018-11-21 15:40:27 +00:00
Liam Girdwood e9f33e6482
Merge pull request #603 from tlauda/topic/pm-ctx-ipc-return
ipc: send generic reply for pm_context messages
2018-11-21 15:39:34 +00:00
Liam Girdwood 35fd06df8d
Merge pull request #599 from bkokoszx/dma-buffer-overflow-fix
trace: dma: dma oveflow fix
2018-11-21 15:38:13 +00:00
Liam Girdwood 7d661d3979
Merge pull request #601 from mrajwa/icl_work
DMIC: Added power gating.
2018-11-21 14:57:28 +00:00
Tomasz Lauda 15d0c4c3ea ipc: send generic reply for pm_context messages
Uses generic reply for pm_context ipc messages.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-21 13:51:48 +01:00
Zhang Keqiao 093f6b70da topology: add 4-ch dmic topology for ICL
Signed-off-by: Zhang Keqiao <keqiao.zhang@linux.intel.com>
2018-11-21 16:06:21 +08:00
Mengdong Lin 7e2f4e3b9c topology: Remove sof-apl-hdmi.m4
sof-apl-hdmi.m4 is no longer needed.

It was used in early stage of HDA enablement as the 1st reference.
Now HDA settings are added to UP2/GLK/WHL platform m4 files.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
2018-11-20 19:37:48 -05:00
Marcin Rajwa 04c97d024c DMIC: Added power gating.
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
2018-11-20 22:54:37 +01:00
Liam Girdwood 43081afa6d
Merge pull request #598 from tlauda/topic/issue-531
clk: trace error on wrong clock type
2018-11-20 19:55:43 +00:00
Liam Girdwood 0db8f3d1db
Merge pull request #597 from zhuyingjiang/topic/sof-dev-fix-version-number
scripts: add local version number file
2018-11-20 19:52:05 +00:00
Bartosz Kokoszko c517d01d5a trace: dma: dma oveflow fix
Case when w_ptr and r_ptr of dma buffer are equal, means
that buffer is empty. During adding traces to buffer, we
should't lead to that equality.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
2018-11-20 14:33:17 +01:00
Tomasz Lauda c66c02838b clk: trace error on wrong clock type
Avoids null dereference in clock_set_freq in case
of wrong clock type.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
2018-11-20 10:44:36 +01:00
Zhu Yingjiang 0a433c831e scripts: add local version number file
we now using git tag for version number control, but if
we release the code without .git/ folder, the git tag version
number is not present, so will cause compile error.
add the .tarball-version file as the local version number file,
it still can be generated by the autogen.sh from git tag. So
everytime anyone make a git tag should still modify the
.tarball-version file.

Signed-off-by: Zhu Yingjiang <yingjiang.zhu@linux.intel.com>
2018-11-20 14:32:59 +08:00
Liam Girdwood c70284445a
Merge pull request #131 from mwierzbix/coredumper-initial
Coredumper: initial
2018-11-19 20:02:19 +00:00
Michal Jerzy Wierzbicki 70227d6a89 Coredumper: initial
Added tool to process coredumps, and to feed gdb commands to examine what caused the dump.

Signed-off-by: Michal Jerzy Wierzbicki <michalx.wierzbicki@linux.intel.com>
2018-11-19 17:04:40 +01:00
Liam Girdwood 041a56c541
Merge pull request #593 from lbetlej/LDOCTL_access_cleanup
LDO Control - unification of control macros for LDOCTL bits
2018-11-19 14:38:00 +00:00