diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2014-09-05 03:59:05 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:19 -0400 |
commit | 91ada92f61eeb41026a678b58863acafa7a33674 (patch) | |
tree | e3941d58152a135b87ee6bf57fcfbb543b29a9aa /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | c00c93756a44ee0d01e0b7525d21b338c74df529 (diff) |
gpu: nvgpu: ioctl support flags in gpu characteristics
Expose supported nvgpu ioctls to userspace via bits in the flags field
of nvhost_gpu_characteristics; currently define two bits for special
memory allocation support.
Bug 1539747
Change-Id: I1bc9333b12825d07a00b7a4136ae9d35816a5855
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/495942
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 2ed7b737..7d744f42 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1907,7 +1907,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
1907 | gpu->compression_page_size = g->mm.compression_page_size; | 1907 | gpu->compression_page_size = g->mm.compression_page_size; |
1908 | gpu->pde_coverage_bit_count = g->mm.pde_stride_shift; | 1908 | gpu->pde_coverage_bit_count = g->mm.pde_stride_shift; |
1909 | 1909 | ||
1910 | gpu->flags = 0; | 1910 | gpu->flags = NVHOST_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS |
1911 | | NVHOST_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS; | ||
1911 | 1912 | ||
1912 | if (IS_ENABLED(CONFIG_TEGRA_GK20A) && | 1913 | if (IS_ENABLED(CONFIG_TEGRA_GK20A) && |
1913 | gk20a_platform_has_syncpoints(g->dev)) | 1914 | gk20a_platform_has_syncpoints(g->dev)) |