ipc: trace: dma_trace cant use page tables on APL/CNL

Page tables are not used by DMA trace on CNL and APL. Make sure they
are not built in.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2018-01-22 23:28:46 +00:00
parent 46f1220ddc
commit 9053e0455f
1 changed files with 4 additions and 2 deletions

View File

@ -598,13 +598,15 @@ static int ipc_glb_pm_message(uint32_t header)
static int ipc_dma_trace_config(uint32_t header) static int ipc_dma_trace_config(uint32_t header)
{ {
#ifdef CONFIG_HOST_PTABLE
struct intel_ipc_data *iipc = ipc_get_drvdata(_ipc); struct intel_ipc_data *iipc = ipc_get_drvdata(_ipc);
struct sof_ipc_dma_trace_params *params = _ipc->comp_data; struct sof_ipc_dma_trace_params *params = _ipc->comp_data;
#endif
struct sof_ipc_reply reply; struct sof_ipc_reply reply;
int err; int err;
trace_ipc_error("DA1"); trace_ipc_error("DA1");
#ifdef CONFIG_HOST_PTABLE
/* use DMA to read in compressed page table ringbuffer from host */ /* use DMA to read in compressed page table ringbuffer from host */
err = get_page_descriptors(iipc, &params->buffer); err = get_page_descriptors(iipc, &params->buffer);
if (err < 0) { if (err < 0) {
@ -621,7 +623,7 @@ static int ipc_dma_trace_config(uint32_t header)
trace_ipc_error("ePP"); trace_ipc_error("ePP");
goto error; goto error;
} }
#endif
trace_ipc("DAp"); trace_ipc("DAp");
err = dma_trace_enable(&_ipc->dmat); err = dma_trace_enable(&_ipc->dmat);