From 37877f2b04dc8a31a8a08c5774c36fae74198984 Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Fri, 7 Sep 2018 14:34:30 +0200 Subject: [PATCH] platform: cavs: let trace manager to clear mem window Removes zeroing of memory window 3 - it will be now performed in different place. Zeroing here causes removal of some traces at the beginning. Signed-off-by: Tomasz Lauda --- src/platform/intel/cavs/platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/intel/cavs/platform.c b/src/platform/intel/cavs/platform.c index 2489f2e36..45009e8ae 100644 --- a/src/platform/intel/cavs/platform.c +++ b/src/platform/intel/cavs/platform.c @@ -246,12 +246,12 @@ static void platform_memory_windows_init(void) bzero((void *)HP_SRAM_WIN2_BASE, HP_SRAM_WIN2_SIZE); dcache_writeback_region((void *)HP_SRAM_WIN2_BASE, HP_SRAM_WIN2_SIZE); - /* window3, for trace */ + /* window3, for trace + * zeroed by trace initialization + */ io_reg_write(DMWLO(3), HP_SRAM_WIN3_SIZE | 0x7); io_reg_write(DMWBA(3), HP_SRAM_WIN3_BASE | DMWBA_READONLY | DMWBA_ENABLE); - bzero((void *)HP_SRAM_WIN3_BASE, HP_SRAM_WIN3_SIZE); - dcache_writeback_region((void *)HP_SRAM_WIN3_BASE, HP_SRAM_WIN3_SIZE); } #if defined(CONFIG_CANNONLAKE) || defined(CONFIG_ICELAKE)