From 75e334fceb5605689db18ab93bb9772370f53b52 Mon Sep 17 00:00:00 2001 From: Arto Merilainen Date: Tue, 1 Jul 2014 10:10:36 +0300 Subject: 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 Reviewed-on: http://git-master/r/433058 --- drivers/gpu/nvgpu/gk20a/gk20a.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'drivers') 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) gpu->big_page_size = g->mm.big_page_size; gpu->compression_page_size = g->mm.compression_page_size; 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; return 0; -- cgit v1.2.2