diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-01-29 11:40:24 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-31 15:37:28 -0500 |
commit | cb9f8bae1aeacf9da0d5fea2da36baa43e9a586b (patch) | |
tree | 51dfd30eb00d52354dc533fb780bbf80808582fd /drivers/gpu/nvgpu/gp10b | |
parent | 6e5a3451d4cf4f28d1eb9086d46f32210df85986 (diff) |
gpu: nvgpu: Unify querying stream id
Stream ID for gp10b is retrieved directly from DT headers in common
code. Introduce instead a variable to store the stream ID and move the
query to platform_gp10b_tegra.c.
JIRA NVGPU-4
Change-Id: I123024e13e470283bb691883f8f963eb72c997d8
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1648013
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index 7735d1ae..d52a10ad 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -24,8 +24,6 @@ | |||
24 | 24 | ||
25 | #include <trace/events/gk20a.h> | 25 | #include <trace/events/gk20a.h> |
26 | 26 | ||
27 | #include <dt-bindings/memory/tegra-swgroup.h> | ||
28 | |||
29 | #include <nvgpu/ltc.h> | 27 | #include <nvgpu/ltc.h> |
30 | #include <nvgpu/log.h> | 28 | #include <nvgpu/log.h> |
31 | #include <nvgpu/enabled.h> | 29 | #include <nvgpu/enabled.h> |
@@ -299,7 +297,7 @@ void gp10b_ltc_init_fs_state(struct gk20a *g) | |||
299 | gm20b_ltc_init_fs_state(g); | 297 | gm20b_ltc_init_fs_state(g); |
300 | 298 | ||
301 | gk20a_writel(g, ltc_ltca_g_axi_pctrl_r(), | 299 | gk20a_writel(g, ltc_ltca_g_axi_pctrl_r(), |
302 | ltc_ltca_g_axi_pctrl_user_sid_f(TEGRA_SID_GPUB)); | 300 | ltc_ltca_g_axi_pctrl_user_sid_f(g->ltc_streamid)); |
303 | 301 | ||
304 | /* Enable ECC interrupts */ | 302 | /* Enable ECC interrupts */ |
305 | ltc_intr = gk20a_readl(g, ltc_ltcs_ltss_intr_r()); | 303 | ltc_intr = gk20a_readl(g, ltc_ltcs_ltss_intr_r()); |