mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
467d0b1a19
commit
79658ac5cb
@@ -1834,8 +1834,10 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes();
|
||||
}
|
||||
|
||||
gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS
|
||||
| NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS;
|
||||
gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS;
|
||||
|
||||
if (IS_ENABLED(CONFIG_SYNC))
|
||||
gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS;
|
||||
|
||||
if (g->ops.mm.support_sparse && g->ops.mm.support_sparse(g))
|
||||
gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS;
|
||||
|
||||
Reference in New Issue
Block a user