diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c index aad94cd2..3bd01b2b 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GV11B Tegra Platform Interface | 2 | * GV11B Tegra Platform Interface |
3 | * | 3 | * |
4 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/reset.h> | 23 | #include <linux/reset.h> |
24 | #include <linux/hashtable.h> | 24 | #include <linux/hashtable.h> |
25 | #include <linux/clk.h> | 25 | #include <linux/clk.h> |
26 | #include <linux/platform/tegra/emc_bwmgr.h> | ||
27 | 26 | ||
28 | #include <nvgpu/nvhost.h> | 27 | #include <nvgpu/nvhost.h> |
29 | 28 | ||
@@ -35,7 +34,6 @@ | |||
35 | #include "gk20a/gk20a.h" | 34 | #include "gk20a/gk20a.h" |
36 | #include "platform_gk20a.h" | 35 | #include "platform_gk20a.h" |
37 | #include "clk.h" | 36 | #include "clk.h" |
38 | #include "scale.h" | ||
39 | 37 | ||
40 | #include "gp10b/platform_gp10b.h" | 38 | #include "gp10b/platform_gp10b.h" |
41 | #include "platform_gp10b_tegra.h" | 39 | #include "platform_gp10b_tegra.h" |
@@ -130,16 +128,9 @@ static int gv11b_tegra_railgate(struct device *dev) | |||
130 | { | 128 | { |
131 | #ifdef TEGRA194_POWER_DOMAIN_GPU | 129 | #ifdef TEGRA194_POWER_DOMAIN_GPU |
132 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 130 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
133 | struct gk20a_scale_profile *profile = platform->g->scale_profile; | ||
134 | struct gk20a *g = get_gk20a(dev); | 131 | struct gk20a *g = get_gk20a(dev); |
135 | int i; | 132 | int i; |
136 | 133 | ||
137 | /* remove emc frequency floor */ | ||
138 | if (profile) | ||
139 | tegra_bwmgr_set_emc( | ||
140 | (struct tegra_bwmgr_client *)profile->private_data, | ||
141 | 0, TEGRA_BWMGR_SET_EMC_FLOOR); | ||
142 | |||
143 | if (tegra_bpmp_running()) { | 134 | if (tegra_bpmp_running()) { |
144 | nvgpu_log(g, gpu_dbg_info, "bpmp running"); | 135 | nvgpu_log(g, gpu_dbg_info, "bpmp running"); |
145 | if (!tegra_powergate_is_powered(TEGRA194_POWER_DOMAIN_GPU)) { | 136 | if (!tegra_powergate_is_powered(TEGRA194_POWER_DOMAIN_GPU)) { |
@@ -166,7 +157,6 @@ static int gv11b_tegra_unrailgate(struct device *dev) | |||
166 | #ifdef TEGRA194_POWER_DOMAIN_GPU | 157 | #ifdef TEGRA194_POWER_DOMAIN_GPU |
167 | struct gk20a_platform *platform = gk20a_get_platform(dev); | 158 | struct gk20a_platform *platform = gk20a_get_platform(dev); |
168 | struct gk20a *g = get_gk20a(dev); | 159 | struct gk20a *g = get_gk20a(dev); |
169 | struct gk20a_scale_profile *profile = platform->g->scale_profile; | ||
170 | int i; | 160 | int i; |
171 | 161 | ||
172 | if (tegra_bpmp_running()) { | 162 | if (tegra_bpmp_running()) { |
@@ -185,13 +175,6 @@ static int gv11b_tegra_unrailgate(struct device *dev) | |||
185 | } else { | 175 | } else { |
186 | nvgpu_log(g, gpu_dbg_info, "bpmp not running"); | 176 | nvgpu_log(g, gpu_dbg_info, "bpmp not running"); |
187 | } | 177 | } |
188 | |||
189 | /* to start with set emc frequency floor to max rate*/ | ||
190 | if (profile) | ||
191 | tegra_bwmgr_set_emc( | ||
192 | (struct tegra_bwmgr_client *)profile->private_data, | ||
193 | tegra_bwmgr_get_max_emc_rate(), | ||
194 | TEGRA_BWMGR_SET_EMC_FLOOR); | ||
195 | #endif | 178 | #endif |
196 | return ret; | 179 | return ret; |
197 | } | 180 | } |
@@ -215,7 +198,6 @@ struct gk20a_platform gv11b_tegra_platform = { | |||
215 | .ch_wdt_timeout_ms = 5000, | 198 | .ch_wdt_timeout_ms = 5000, |
216 | 199 | ||
217 | .probe = gv11b_tegra_probe, | 200 | .probe = gv11b_tegra_probe, |
218 | .late_probe = gp10b_tegra_late_probe, | ||
219 | .remove = gv11b_tegra_remove, | 201 | .remove = gv11b_tegra_remove, |
220 | 202 | ||
221 | .enable_slcg = false, | 203 | .enable_slcg = false, |
@@ -235,16 +217,6 @@ struct gk20a_platform gv11b_tegra_platform = { | |||
235 | .busy = gk20a_tegra_busy, | 217 | .busy = gk20a_tegra_busy, |
236 | .idle = gk20a_tegra_idle, | 218 | .idle = gk20a_tegra_idle, |
237 | 219 | ||
238 | .clk_round_rate = gp10b_round_clk_rate, | ||
239 | .get_clk_freqs = gp10b_clk_get_freqs, | ||
240 | |||
241 | /* frequency scaling configuration */ | ||
242 | .prescale = gp10b_tegra_prescale, | ||
243 | .postscale = gp10b_tegra_postscale, | ||
244 | .devfreq_governor = "nvhost_podgov", | ||
245 | |||
246 | .qos_notify = gk20a_scale_qos_notify, | ||
247 | |||
248 | .dump_platform_dependencies = gk20a_tegra_debug_dump, | 220 | .dump_platform_dependencies = gk20a_tegra_debug_dump, |
249 | 221 | ||
250 | .soc_name = "tegra19x", | 222 | .soc_name = "tegra19x", |