From 01549b81087d7348edc7f1254001cb18ca0da95c Mon Sep 17 00:00:00 2001 From: Abhijit Kulkarni Date: Wed, 11 Aug 2021 14:25:15 -0700 Subject: [PATCH] display: msm: sde: reduce dbg mem usage for tui vm This change adds new config for display driver, to reduce debug memory usage. If this config is enabled, number of entries for event logs and register dumps is reduced. Currently this config is enabled only for TUI VM. Change-Id: I31570d5743f3e8aa3fc079848553a452b8fccd18 Signed-off-by: Abhijit Kulkarni --- config/gki_waipiodisptui.conf | 1 + config/gki_waipiodisptuiconf.h | 1 + msm/sde_dbg.h | 8 ++++---- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config/gki_waipiodisptui.conf b/config/gki_waipiodisptui.conf index 1625ce067d..54f40609ab 100644 --- a/config/gki_waipiodisptui.conf +++ b/config/gki_waipiodisptui.conf @@ -7,3 +7,4 @@ export CONFIG_QCOM_MDSS_PLL=y export CONFIG_DRM_MSM_REGISTER_LOGGING=y export CONFIG_DISPLAY_BUILD=m export CONFIG_DRM_SDE_VM=y +export CONFIG_DRM_LOW_MSM_MEM_FOOTPRINT=y diff --git a/config/gki_waipiodisptuiconf.h b/config/gki_waipiodisptuiconf.h index b89e564fde..a7b1f035c5 100644 --- a/config/gki_waipiodisptuiconf.h +++ b/config/gki_waipiodisptuiconf.h @@ -13,3 +13,4 @@ #define CONFIG_QCOM_MDSS_PLL 1 #define CONFIG_GKI_DISPLAY 1 #define CONFIG_DRM_SDE_VM 1 +#define CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT 1 diff --git a/msm/sde_dbg.h b/msm/sde_dbg.h index 95598e094e..bb0b4439f9 100644 --- a/msm/sde_dbg.h +++ b/msm/sde_dbg.h @@ -118,11 +118,11 @@ enum sde_dbg_dump_context { * entry array access. */ -#if IS_ENABLED(CONFIG_DRM_SDE_VM) +#if IS_ENABLED(CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT) #define SDE_EVTLOG_ENTRY (SDE_EVTLOG_PRINT_ENTRY * 8) #else #define SDE_EVTLOG_ENTRY (SDE_EVTLOG_PRINT_ENTRY * 32) -#endif /* IS_ENABLED(CONFIG_DRM_SDE_VM) */ +#endif /* IS_ENABLED(CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT) */ #define SDE_EVTLOG_MAX_DATA 15 #define SDE_EVTLOG_BUF_MAX 512 @@ -168,11 +168,11 @@ extern struct sde_dbg_evtlog *sde_dbg_base_evtlog; * number must be greater than number of possible writes in at least one * single commit. */ -#if IS_ENABLED(CONFIG_DRM_SDE_VM) +#if IS_ENABLED(CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT) #define SDE_REGLOG_ENTRY 256 #else #define SDE_REGLOG_ENTRY 1024 -#endif /* IS_ENABLED(CONFIG_DRM_SDE_VM) */ +#endif /* IS_ENABLED(CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT) */ struct sde_dbg_reglog_log { s64 time;