summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Balagopalakrishnan <anandb@ti.com>2015-06-08 11:33:34 +0300
committerAnand Balagopalakrishnan <anandb@ti.com>2015-06-08 11:33:34 +0300
commit37e27eb740b27a432ded256250f4edc5b9b2b72d (patch)
treeee5a19bddcdf15576a3b9d5c1481a83eef194a5c
parent872aa64b227cadbc97755a4192919dd5ca637971 (diff)
downloadomap5-sgx-ddk-linux-37e27eb740b27a432ded256250f4edc5b9b2b72d.tar.xz
Truncate the SGX HW recovery traces
SGX HW recovery indicates that GPU has undergone an error in its operations and has recovered through reset. The traces printed during HW recovery slows down the system and is required only for in-depth debugging. By default, disable the dumping of HW recovery traces. Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
-rw-r--r--eurasia_km/eurasiacon/build/linux2/config/core.mk1
-rwxr-xr-xeurasia_km/eurasiacon/build/linux2/omap5430_linux/Makefile2
-rw-r--r--eurasia_km/services4/srvkm/devices/sgx/sgxinit.c5
3 files changed, 8 insertions, 0 deletions
diff --git a/eurasia_km/eurasiacon/build/linux2/config/core.mk b/eurasia_km/eurasiacon/build/linux2/config/core.mk
index aa20e6f..0d7ab16 100644
--- a/eurasia_km/eurasiacon/build/linux2/config/core.mk
+++ b/eurasia_km/eurasiacon/build/linux2/config/core.mk
@@ -461,6 +461,7 @@ $(eval $(call KernelConfigC,PVR_LINUX_MEM_AREA_POOL_MAX_PAGES,$(PVR_LINUX_MEM_AR
$(eval $(call TunableKernelConfigC,PVR_LINUX_MEM_AREA_USE_VMAP,))
$(eval $(call TunableKernelConfigC,PVR_LINUX_MEM_AREA_POOL_ALLOW_SHRINK,))
+$(eval $(call TunableKernelConfigC,TRUNCATE_SGX_HWRECOVERY_DUMP,))
$(eval $(call TunableKernelConfigC,FLIP_TECHNIQUE_FRAMEBUFFER,))
$(eval $(call TunableKernelConfigC,FLIP_TECHNIQUE_OVERLAY,))
diff --git a/eurasia_km/eurasiacon/build/linux2/omap5430_linux/Makefile b/eurasia_km/eurasiacon/build/linux2/omap5430_linux/Makefile
index 9010bbe..594ba06 100755
--- a/eurasia_km/eurasiacon/build/linux2/omap5430_linux/Makefile
+++ b/eurasia_km/eurasiacon/build/linux2/omap5430_linux/Makefile
@@ -89,6 +89,8 @@ endif
# present the frames to the display in the 3PDD
FLIP_TECHNIQUE_FRAMEBUFFER := 1
+TRUNCATE_SGX_HWRECOVERY_DUMP := 1
+
OPTIM := -Os
SYS_CFLAGS := -march=armv7-a
diff --git a/eurasia_km/services4/srvkm/devices/sgx/sgxinit.c b/eurasia_km/services4/srvkm/devices/sgx/sgxinit.c
index 53853ea..0973cfe 100644
--- a/eurasia_km/services4/srvkm/devices/sgx/sgxinit.c
+++ b/eurasia_km/services4/srvkm/devices/sgx/sgxinit.c
@@ -1275,6 +1275,11 @@ IMG_VOID SGXDumpDebugInfo (PVRSRV_SGXDEV_INFO *psDevInfo,
PVR_LOG(("SGX debug (%s)", PVRVERSION_STRING));
+#if defined (TRUNCATE_SGX_HWRECOVERY_DUMP)
+ PVR_LOG(("Truncating SGX HW recovery traces"));
+ return;
+#endif
+
if (bDumpSGXRegs)
{
PVR_DPF((PVR_DBG_ERROR,"SGX Register Base Address (Linear): 0x%08X", (IMG_UINTPTR_T)psDevInfo->pvRegsBaseKM));