PD#138881 disable state tracing when release
authorJiyu Yang <jiyu.yang@amlogic.com>
Thu, 23 Feb 2017 10:35:03 +0000 (18:35 +0800)
committerJiyu Yang <jiyu.yang@amlogic.com>
Thu, 23 Feb 2017 10:44:18 +0000 (18:44 +0800)
Change-Id: Id2dd5a708f7b7f34ab5131053cacb98b5e8c0d6d

mali/Kbuild
mali/common/mali_executor.c
utgard/r5p1/Kbuild
utgard/r6p1/Kbuild
utgard/r6p1/common/mali_executor.c
utgard/r6p2/Kbuild
utgard/r6p2/common/mali_executor.c

index 06b25417b5dbd87c024f9ad597f4dee8a6ae2d24..4692a7a6dd1cd09e576e2d08e3dbbbad2312edf2 100755 (executable)
@@ -264,7 +264,11 @@ ccflags-y += $(EXTRA_DEFINES)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP)
 ccflags-y += -DMALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED=$(MALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS)
+ifdef CONFIG_MALI400_DEBUG
 ccflags-y += -DMALI_STATE_TRACKING=1
+else
+ccflags-y += -DMALI_STATE_TRACKING=0
+endif
 ccflags-y += -DMALI_OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=$(OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB)
 ccflags-y += -DUSING_GPU_UTILIZATION=$(USING_GPU_UTILIZATION)
 ccflags-y += -DMALI_ENABLE_CPU_CYCLES=$(MALI_ENABLE_CPU_CYCLES)
index 68f9003c849e8b91021ebc710e6599acc5fcba07..3658e1c92bb48cc58d2a59c32864cbed9fa3fbe9 100755 (executable)
@@ -2651,6 +2651,7 @@ void mali_executor_running_status_print(void)
                        MALI_PRINT(("\tchild group(%s) running job: %p\n", group->pp_core->hw_core.description, group->pp_running_job));
                        MALI_PRINT(("\tchild group(%s)->status: %d\n", group->pp_core->hw_core.description, group->state));
                        MALI_PRINT(("\tchild group(%s) SW power: %s\n", group->pp_core->hw_core.description, group->power_is_on ? "On" : "Off"));
+#if MALI_STATE_TRACKING
                        if (group->pm_domain) {
                                MALI_PRINT(("\tPower domain: id %u\n", mali_pm_domain_get_id(group->pm_domain)));
                                MALI_PRINT(("\tMask:0x%04x \n", mali_pm_domain_get_mask(group->pm_domain)));
@@ -2658,12 +2659,14 @@ void mali_executor_running_status_print(void)
                                MALI_PRINT(("\tCurrent power status:%s \n", (mali_pm_domain_get_mask(group->pm_domain)& mali_pm_get_current_mask()) ? "On" : "Off"));
                                MALI_PRINT(("\tWanted  power status:%s \n", (mali_pm_domain_get_mask(group->pm_domain)& mali_pm_get_wanted_mask()) ? "On" : "Off"));
                        }
+#endif
 
                        for (i = 0; i < 2; i++) {
                                if (NULL != group->l2_cache_core[i]) {
                                        struct mali_pm_domain *domain;
                                        domain = mali_l2_cache_get_pm_domain(group->l2_cache_core[i]);
                                        MALI_PRINT(("\t L2(index %d) group SW power: %s\n", i, group->l2_cache_core[i]->power_is_on ? "On" : "Off"));
+#if MALI_STATE_TRACKING
                                        if (domain) {
                                                MALI_PRINT(("\tL2 Power domain: id %u\n", mali_pm_domain_get_id(domain)));
                                                MALI_PRINT(("\tL2 Mask:0x%04x \n", mali_pm_domain_get_mask(domain)));
@@ -2671,6 +2674,7 @@ void mali_executor_running_status_print(void)
                                                MALI_PRINT(("\tL2 Current power status:%s \n", (mali_pm_domain_get_mask(domain) & mali_pm_get_current_mask()) ? "On" : "Off"));
                                                MALI_PRINT(("\tL2 Wanted  power status:%s \n", (mali_pm_domain_get_mask(domain) & mali_pm_get_wanted_mask()) ? "On" : "Off"));
                                        }
+#endif
                                }
                        }
                }
index c1877a2cbc66ca27d2763abd1e8a880e7baf87ba..5e1925452631448aa6917281552402b30177d25f 100755 (executable)
@@ -236,7 +236,11 @@ ccflags-y += $(EXTRA_DEFINES)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP)
 ccflags-y += -DMALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED=$(MALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS)
+ifdef CONFIG_MALI400_DEBUG
 ccflags-y += -DMALI_STATE_TRACKING=1
+else
+ccflags-y += -DMALI_STATE_TRACKING=0
+endif
 ccflags-y += -DMALI_OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=$(OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB)
 ccflags-y += -DUSING_GPU_UTILIZATION=$(USING_GPU_UTILIZATION)
 ccflags-y += -DMALI_ENABLE_CPU_CYCLES=$(MALI_ENABLE_CPU_CYCLES)
index a46e699962363a0d9253cb38fb4cd5128ef65991..1b204472f3a4b3512624ac3efacbf0ff24610c79 100755 (executable)
@@ -263,7 +263,11 @@ ccflags-y += $(EXTRA_DEFINES)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP)
 ccflags-y += -DMALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED=$(MALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS)
+ifdef CONFIG_MALI400_DEBUG
 ccflags-y += -DMALI_STATE_TRACKING=1
+else
+ccflags-y += -DMALI_STATE_TRACKING=0
+endif
 ccflags-y += -DMALI_OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=$(OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB)
 ccflags-y += -DUSING_GPU_UTILIZATION=$(USING_GPU_UTILIZATION)
 ccflags-y += -DMALI_ENABLE_CPU_CYCLES=$(MALI_ENABLE_CPU_CYCLES)
index 550f411602e01105af80c72bbbaac1351ab62190..76bf7012e44ba02b85343a27d2c7476bd56b5507 100755 (executable)
@@ -2646,6 +2646,7 @@ void mali_executor_running_status_print(void)
                        MALI_PRINT(("\tchild group(%s) running job: %p\n", group->pp_core->hw_core.description, group->pp_running_job));
                        MALI_PRINT(("\tchild group(%s)->status: %d\n", group->pp_core->hw_core.description, group->state));
                        MALI_PRINT(("\tchild group(%s) SW power: %s\n", group->pp_core->hw_core.description, group->power_is_on ? "On" : "Off"));
+#if MALI_STATE_TRACKING
                        if (group->pm_domain) {
                                MALI_PRINT(("\tPower domain: id %u\n", mali_pm_domain_get_id(group->pm_domain)));
                                MALI_PRINT(("\tMask:0x%04x \n", mali_pm_domain_get_mask(group->pm_domain)));
@@ -2653,12 +2654,14 @@ void mali_executor_running_status_print(void)
                                MALI_PRINT(("\tCurrent power status:%s \n", (mali_pm_domain_get_mask(group->pm_domain)& mali_pm_get_current_mask()) ? "On" : "Off"));
                                MALI_PRINT(("\tWanted  power status:%s \n", (mali_pm_domain_get_mask(group->pm_domain)& mali_pm_get_wanted_mask()) ? "On" : "Off"));
                        }
+#endif
 
                        for (i = 0; i < 2; i++) {
                                if (NULL != group->l2_cache_core[i]) {
                                        struct mali_pm_domain *domain;
                                        domain = mali_l2_cache_get_pm_domain(group->l2_cache_core[i]);
                                        MALI_PRINT(("\t L2(index %d) group SW power: %s\n", i, group->l2_cache_core[i]->power_is_on ? "On" : "Off"));
+#if MALI_STATE_TRACKING
                                        if (domain) {
                                                MALI_PRINT(("\tL2 Power domain: id %u\n", mali_pm_domain_get_id(domain)));
                                                MALI_PRINT(("\tL2 Mask:0x%04x \n", mali_pm_domain_get_mask(domain)));
@@ -2666,6 +2669,7 @@ void mali_executor_running_status_print(void)
                                                MALI_PRINT(("\tL2 Current power status:%s \n", (mali_pm_domain_get_mask(domain) & mali_pm_get_current_mask()) ? "On" : "Off"));
                                                MALI_PRINT(("\tL2 Wanted  power status:%s \n", (mali_pm_domain_get_mask(domain) & mali_pm_get_wanted_mask()) ? "On" : "Off"));
                                        }
+#endif
                                }
                        }
                }
index 0a571c7f86a8d6c3a2a23203e128154dad9b35fc..aa207c213907d0608d8a35f90a2610f54f67faab 100755 (executable)
@@ -264,7 +264,11 @@ ccflags-y += $(EXTRA_DEFINES)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP)
 ccflags-y += -DMALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED=$(MALI_PP_SCHEDULER_KEEP_SUB_JOB_STARTS_ALIGNED)
 ccflags-y += -DMALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS=$(MALI_PP_SCHEDULER_FORCE_NO_JOB_OVERLAP_BETWEEN_APPS)
+ifdef CONFIG_MALI400_DEBUG
 ccflags-y += -DMALI_STATE_TRACKING=1
+else
+ccflags-y += -DMALI_STATE_TRACKING=0
+endif
 ccflags-y += -DMALI_OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB=$(OS_MEMORY_KERNEL_BUFFER_SIZE_IN_MB)
 ccflags-y += -DUSING_GPU_UTILIZATION=$(USING_GPU_UTILIZATION)
 ccflags-y += -DMALI_ENABLE_CPU_CYCLES=$(MALI_ENABLE_CPU_CYCLES)
index 275c0614dda93b1389f107fcdfe95a46f431cfbe..f17e443a137b79c887c7bc99cbbafe8f57f735ad 100755 (executable)
@@ -2652,6 +2652,7 @@ void mali_executor_running_status_print(void)
                        MALI_PRINT(("\tchild group(%s) running job: %p\n", group->pp_core->hw_core.description, group->pp_running_job));
                        MALI_PRINT(("\tchild group(%s)->status: %d\n", group->pp_core->hw_core.description, group->state));
                        MALI_PRINT(("\tchild group(%s) SW power: %s\n", group->pp_core->hw_core.description, group->power_is_on ? "On" : "Off"));
+#if MALI_STATE_TRACKING
                        if (group->pm_domain) {
                                MALI_PRINT(("\tPower domain: id %u\n", mali_pm_domain_get_id(group->pm_domain)));
                                MALI_PRINT(("\tMask:0x%04x \n", mali_pm_domain_get_mask(group->pm_domain)));
@@ -2659,12 +2660,14 @@ void mali_executor_running_status_print(void)
                                MALI_PRINT(("\tCurrent power status:%s \n", (mali_pm_domain_get_mask(group->pm_domain)& mali_pm_get_current_mask()) ? "On" : "Off"));
                                MALI_PRINT(("\tWanted  power status:%s \n", (mali_pm_domain_get_mask(group->pm_domain)& mali_pm_get_wanted_mask()) ? "On" : "Off"));
                        }
+#endif
 
                        for (i = 0; i < 2; i++) {
                                if (NULL != group->l2_cache_core[i]) {
                                        struct mali_pm_domain *domain;
                                        domain = mali_l2_cache_get_pm_domain(group->l2_cache_core[i]);
                                        MALI_PRINT(("\t L2(index %d) group SW power: %s\n", i, group->l2_cache_core[i]->power_is_on ? "On" : "Off"));
+#if MALI_STATE_TRACKING
                                        if (domain) {
                                                MALI_PRINT(("\tL2 Power domain: id %u\n", mali_pm_domain_get_id(domain)));
                                                MALI_PRINT(("\tL2 Mask:0x%04x \n", mali_pm_domain_get_mask(domain)));
@@ -2672,6 +2675,7 @@ void mali_executor_running_status_print(void)
                                                MALI_PRINT(("\tL2 Current power status:%s \n", (mali_pm_domain_get_mask(domain) & mali_pm_get_current_mask()) ? "On" : "Off"));
                                                MALI_PRINT(("\tL2 Wanted  power status:%s \n", (mali_pm_domain_get_mask(domain) & mali_pm_get_wanted_mask()) ? "On" : "Off"));
                                        }
+#endif
                                }
                        }
                }