summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-03-17 08:58:55 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-21 15:08:18 -0400
commit79658ac5cb22cc68a2d24d964379a606086c8b39 (patch)
tree9d3fd65fcdfaa9d50d2cbe897d6f70130c63a29b /drivers/gpu/nvgpu/gk20a/gk20a.c
parent467d0b1a19fd703ee10bc183c15ffef83f71a644 (diff)
gpu: nvgpu: only report SUPPORT_SYNC_FENCE_FDS if enabled
Don't always report in gpu characteristics that NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS is supported, but only if CONFIG_SYNC is enabled. Bug 1853519 Change-Id: Ie7d021aefe97b7a2b04a25957ae678272ad446f7 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1323130 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 0b53bffc..c8e2b19e 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1834,8 +1834,10 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
1834 gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes(); 1834 gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes();
1835 } 1835 }
1836 1836
1837 gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS 1837 gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS;
1838 | NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS; 1838
1839 if (IS_ENABLED(CONFIG_SYNC))
1840 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS;
1839 1841
1840 if (g->ops.mm.support_sparse && g->ops.mm.support_sparse(g)) 1842 if (g->ops.mm.support_sparse && g->ops.mm.support_sparse(g))
1841 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS; 1843 gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS;