[9610] drivers: gpu: remove BTS codes in Bifrost r19p0
authorYoojin Park <yoojin1.park@samsung.com>
Thu, 4 Jul 2019 14:18:39 +0000 (23:18 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 30 Aug 2019 07:58:56 +0000 (16:58 +0900)
To avoid buiid error

Change-Id: I9f68bcf381b81528341d34e959c2c33d3ba1b50c
Signed-off-by: Yoojin Park <yoojin1.park@samsung.com>
drivers/gpu/arm/b_r19p0/platform/exynos/gpu_dvfs_api.c
drivers/gpu/arm/b_r19p0/platform/exynos/mali_kbase_platform.c
drivers/gpu/arm/b_r19p0/platform/exynos/mali_kbase_platform.h

index b021f785cc7e8d7038e5f0c595f2f1287a4156af..65e0b499dd599cccdc3f092be1edde73ab8b833c 100644 (file)
@@ -27,9 +27,6 @@
 #include "gpu_dvfs_handler.h"
 #include "gpu_dvfs_governor.h"
 
-#ifdef CONFIG_EXYNOS_BTS
-#include <soc/samsung/bts.h>
-#endif
 
 extern struct kbase_device *pkbdev;
 
@@ -155,15 +152,11 @@ int gpu_set_target_clk_vol(int clk, bool pending_is_allowed)
 #define BS_G3D_PERFORMANCE BS_G3D_PEFORMANCE
 #endif
 
-       /* MALI_SEC_INTEGRATION : for EXYNOS_BTS */
        if (platform->gpu_bts_support) {
-               if (target_clk >= platform->mo_min_clock && !platform->is_set_bts) {
-                       bts_add_scenario(platform->bts_scen_idx);
-                       platform->is_set_bts = 1;
-               } else if (target_clk < platform->mo_min_clock && platform->is_set_bts) {
-                       bts_del_scenario(platform->bts_scen_idx);
-                       platform->is_set_bts = 0;
-               }
+               if (target_clk >= platform->mo_min_clock)
+                       bts_update_scen(BS_G3D_PERFORMANCE, 1); /* GPU IDQ : 0 (max token) */
+               else
+                       bts_update_scen(BS_G3D_PERFORMANCE, 0); /* GPU IDQ : 0x3 (default 12ea) */
        }
 
        mutex_unlock(&platform->gpu_clock_lock);
index 8760b83f2b5508bf28f300651970998b5f438287..9c622baad679f219c1a43c6f6b81362f043e2ba9 100644 (file)
@@ -44,9 +44,6 @@ static gpu_dvfs_info gpu_dvfs_table_default[DVFS_TABLE_ROW_MAX];
 
 #include <linux/of_platform.h>
 
-#ifdef CONFIG_EXYNOS_BTS
-#include <soc/samsung/bts.h>
-#endif
 
 struct kbase_device *pkbdev;
 static int gpu_debug_level;
@@ -327,10 +324,7 @@ static int gpu_dvfs_update_config_data_from_dt(struct kbase_device *kbdev)
 #endif
        gpu_update_config_data_int(np, "gpu_runtime_pm_delay_time", &platform->runtime_pm_delay_time);
 
-#ifdef CONFIG_EXYNOS_BTS
        gpu_update_config_data_int(np, "gpu_mo_min_clock", &platform->mo_min_clock);
-       platform->bts_scen_idx = bts_get_scenindex("g3d_performance");
-#endif
 
        gpu_update_config_data_int(np, "gpu_boost_gpu_min_lock", &platform->boost_gpu_min_lock);
        gpu_update_config_data_int(np, "gpu_boost_egl_min_lock", &platform->boost_egl_min_lock);
index dbd8f18320b86541917ee5767ef5272bf4544122..f02327109de7c910fd00f7417e307cd73d73ca01 100644 (file)
@@ -278,11 +278,7 @@ struct exynos_context {
        int gpu_exception_count[GPU_EXCEPTION_LIST_END];
        int balance_retry_count[BMAX_RETRY_CNT];
        gpu_attribute *attrib;
-#ifdef CONFIG_EXYNOS_BTS
        int mo_min_clock;
-       unsigned int bts_scen_idx;
-       unsigned int is_set_bts; // Check the pair of bts scenario.
-#endif
        int *save_cpu_max_freq;
 
        unsigned int g3d_cmu_cal_id;