Selaa lähdekoodia

Merge "display: msm: sde: reduce dbg mem usage for tui vm"

qctecmdr 3 vuotta sitten
vanhempi
sitoutus
0d46a03da7
3 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. 1 0
      config/gki_waipiodisptui.conf
  2. 1 0
      config/gki_waipiodisptuiconf.h
  3. 4 4
      msm/sde_dbg.h

+ 1 - 0
config/gki_waipiodisptui.conf

@@ -7,3 +7,4 @@ export CONFIG_QCOM_MDSS_PLL=y
 export CONFIG_DRM_MSM_REGISTER_LOGGING=y
 export CONFIG_DRM_MSM_REGISTER_LOGGING=y
 export CONFIG_DISPLAY_BUILD=m
 export CONFIG_DISPLAY_BUILD=m
 export CONFIG_DRM_SDE_VM=y
 export CONFIG_DRM_SDE_VM=y
+export CONFIG_DRM_LOW_MSM_MEM_FOOTPRINT=y

+ 1 - 0
config/gki_waipiodisptuiconf.h

@@ -13,3 +13,4 @@
 #define CONFIG_QCOM_MDSS_PLL 1
 #define CONFIG_QCOM_MDSS_PLL 1
 #define CONFIG_GKI_DISPLAY 1
 #define CONFIG_GKI_DISPLAY 1
 #define CONFIG_DRM_SDE_VM 1
 #define CONFIG_DRM_SDE_VM 1
+#define CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT 1

+ 4 - 4
msm/sde_dbg.h

@@ -119,11 +119,11 @@ enum sde_dbg_dump_context {
  * entry array access.
  * 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)
 #define SDE_EVTLOG_ENTRY	(SDE_EVTLOG_PRINT_ENTRY * 8)
 #else
 #else
 #define SDE_EVTLOG_ENTRY	(SDE_EVTLOG_PRINT_ENTRY * 32)
 #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_MAX_DATA 15
 #define SDE_EVTLOG_BUF_MAX 512
 #define SDE_EVTLOG_BUF_MAX 512
@@ -169,11 +169,11 @@ extern struct sde_dbg_evtlog *sde_dbg_base_evtlog;
  * number must be greater than number of possible writes in at least one
  * number must be greater than number of possible writes in at least one
  * single commit.
  * single commit.
  */
  */
-#if IS_ENABLED(CONFIG_DRM_SDE_VM)
+#if IS_ENABLED(CONFIG_DRM_MSM_LOW_MEM_FOOTPRINT)
 #define SDE_REGLOG_ENTRY 256
 #define SDE_REGLOG_ENTRY 256
 #else
 #else
 #define SDE_REGLOG_ENTRY 1024
 #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 {
 struct sde_dbg_reglog_log {
 	s64 time;
 	s64 time;