The src_width and dest_width are configured already in Bytes,
here fix it, otherwise 24/32 bit copying with hda-dma may have
problem.
Reported-by: Zhigang Wu <zhigang.wu@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
All other platforms use RZONE_SYS, not sure why CannonLake
should be any different.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
The directions configured in sg_elem are actually dma transfer type,
not playback/capture direction, here correct them.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
rmalloc should also check the buffer heap if no capable memory can be
found in the runtime heap.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Add memeory window for stream region. And position offset binding for
component. Replace IPC position update with memory window update.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add stream region memory window into sof_ipc_window used for position
update.
For APL and CNL, we got a 1 page space for stream region.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add sof_ipc_window for all platforms, and add IPC send after boot
compelted. Also remove the deprecated ready window.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Currently memory heap pools are statically defined in the allocator core
and don't define the capabilities of the memory in each pool.
This patch adds support for different memory capabilities so that users
can allocate memory that complies with any capability requirements for
requested memory.
The patch also moves the memory heap pool mappings to platform specific
code so that platforms can define their own mappings, support multiple
mappings and can move the mappings into different physical memory areas.
mappings
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Add a sanity check to make sure that data/rodata contains expected values
otherwise this can cause unpredictable behaviour that is difficult to
later diagnose.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Compiler cannot check the real type of "void*" pointer.
It is easy to cause pointer conversion error.
So use the pointer of element list of struct dma_sg_elem instead
of void* pointer.
Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
The actual text size will change and the hard code base_fw_text_size_fixup
could not fit the changing size. We should get the fixup size from the
module info just from the memory mapping.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add total text size we used in memory mapping into module info to
help rimage build the right FW binary.
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Liam's previous patch modify the structure variable from instance to
pointer. So it is unnecessary to use "&".
This parameter of parse_page_descriptors() is "void*", so complier
doesn't find this error.
Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Fix HSW handler so that it checks host_pending flag and aligns with
BYT IPC handler wrt trace messages.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Fill all available stack dump space with frames if available and update
any panic code to include passed value.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Initialise DMA trace prior to platform initialisation so that more users
may use trace as part of init.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
dma trace fix
Change the panic code is stack has been smashed. This allows platform
specific handlers to send new panic code to host if stack is smashed.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This patch modifies the build-all script for xtensa platforms
to make it easier to choose platforms
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
On some platforms(e.g. APL, CNL), the external timer(wall clock)
uses the external interrupt bits, here change the common timer
logic to call interrupt APIs, which give a chance to handle for
different cases.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Improve the output from panic to include DSP registers and stack dump.
Export panic codes to UAPI for host driver logging.
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>