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
This commit is contained in:
Arto Merilainen
2014-07-01 10:10:36 +03:00
committed by Dan Willemsen
parent 6dc277b783
commit 75e334fceb

View File

@@ -1817,6 +1817,13 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
gpu->big_page_size = g->mm.big_page_size; gpu->big_page_size = g->mm.big_page_size;
gpu->compression_page_size = g->mm.compression_page_size; gpu->compression_page_size = g->mm.compression_page_size;
gpu->pde_coverage_bit_count = g->mm.pde_stride_shift; gpu->pde_coverage_bit_count = g->mm.pde_stride_shift;
gpu->flags = 0;
if (IS_ENABLED(CONFIG_TEGRA_GK20A) &&
gk20a_platform_has_syncpoints(g->dev))
gpu->flags |= NVHOST_GPU_FLAGS_HAS_SYNCPOINTS;
gpu->reserved = 0; gpu->reserved = 0;
return 0; return 0;