From 3fe2cf5358d021f2f74bd822037e437332721c05 Mon Sep 17 00:00:00 2001
From: "guilbert.lee" <guilbert.lee@lge.com>
Date: Tue, 3 Jan 2017 21:19:17 +0900
Subject: [PATCH] ARM: swordfish: Enable CONFIG_MSM_TZ_LOG

LK allocates QSEE log buffer and shares the address of buffer with TZ.
Linux reserves the QSEE log buffer and inform new memory allocated
to TZ when CONFIG_MSM_TZ_LOG is defined

When CONFIG_MSM_TZ_LOG is not defined on linux kernel, linux kernel
doesn't reserve (carve out) the log buffer and uses the memory allocated
by LK for its own purpose. But, TZ doesn't know linux kernel
use the memory (where log buffer is supposed to locate) and
output QSEE logs and this causes corruption of linux pages located
at the buffer.

Bug: 33764682
Change-Id: Iddcb5f31e48274853f9631482b4088e770db855b
Signed-off-by: guilbert.lee <guilbert.lee@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
---
 arch/arm/configs/swordfish_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/swordfish_defconfig b/arch/arm/configs/swordfish_defconfig
index 459eb220d763..1d99776e144e 100644
--- a/arch/arm/configs/swordfish_defconfig
+++ b/arch/arm/configs/swordfish_defconfig
@@ -406,6 +406,7 @@ CONFIG_IIO=y
 CONFIG_PWM=y
 CONFIG_PWM_QPNP=y
 CONFIG_SENSORS_SSC=y
+CONFIG_MSM_TZ_LOG=y
 CONFIG_EXT3_FS=y
 # CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
 CONFIG_EXT4_FS=y
-- 
GitLab