summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2014-07-01 03:10:36 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:10:23 -0400
commit75e334fceb5605689db18ab93bb9772370f53b52 (patch)
tree5bb60eae3134bf5374cc508aef4cdc53016ebec2 /drivers
parent6dc277b783bca9170c43c725884878ba63ce64da (diff)
gpu: nvgpu: Support probing host1x link from apps
This patch adds support to check if the host1x link exists and is supported using the gpu characteristics ioctl. Bug 1459653 Change-Id: I832eea217ed7f007e341dfde5769887e0882d6bb Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Reviewed-on: http://git-master/r/433058
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 3388a2ff..629423c0 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1817,6 +1817,13 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
1817 gpu->big_page_size = g->mm.big_page_size; 1817 gpu->big_page_size = g->mm.big_page_size;
1818 gpu->compression_page_size = g->mm.compression_page_size; 1818 gpu->compression_page_size = g->mm.compression_page_size;
1819 gpu->pde_coverage_bit_count = g->mm.pde_stride_shift; 1819 gpu->pde_coverage_bit_count = g->mm.pde_stride_shift;
1820
1821 gpu->flags = 0;
1822
1823 if (IS_ENABLED(CONFIG_TEGRA_GK20A) &&
1824 gk20a_platform_has_syncpoints(g->dev))
1825 gpu->flags |= NVHOST_GPU_FLAGS_HAS_SYNCPOINTS;
1826
1820 gpu->reserved = 0; 1827 gpu->reserved = 0;
1821 1828
1822 return 0; 1829 return 0;