[Sound-open-firmware] [PATCH] ipc: trace: dma_trace cant use page tables on APL/CNL

Liam Girdwood liam.r.girdwood at linux.intel.com
Tue Jan 23 17:39:57 CET 2018


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 at linux.intel.com>
---
 src/ipc/intel-ipc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/ipc/intel-ipc.c b/src/ipc/intel-ipc.c
index 5a98e1f..54a0812 100644
--- a/src/ipc/intel-ipc.c
+++ b/src/ipc/intel-ipc.c
@@ -598,13 +598,15 @@ static int ipc_glb_pm_message(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 sof_ipc_dma_trace_params *params = _ipc->comp_data;
+#endif
 	struct sof_ipc_reply reply;
 	int err;
 
 	trace_ipc_error("DA1");
-
+#ifdef CONFIG_HOST_PTABLE
 	/* use DMA to read in compressed page table ringbuffer from host */
 	err = get_page_descriptors(iipc, &params->buffer);
 	if (err < 0) {
@@ -621,7 +623,7 @@ static int ipc_dma_trace_config(uint32_t header)
 		trace_ipc_error("ePP");
 		goto error;
 	}
-
+#endif
 	trace_ipc("DAp");
 
 	err = dma_trace_enable(&_ipc->dmat);
-- 
2.14.1



More information about the Sound-open-firmware mailing list