diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-12-12 06:52:28 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:32 -0400 |
commit | 0bc513fc4618feb5262079b4ef8842ba419d8111 (patch) | |
tree | f1741f426400c9cdaadb46113a62b0a064e38811 /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | e462c6a7ad0ce05775bc15c58963df4a1a5606e8 (diff) |
gpu: nvgpu: Remove gk20a sparse texture & PTE freeing
Remove support for gk20a sparse textures. We're using implementation
from user space, so gk20a code is never invoked.
Also removes ref_cnt for PTEs, so we never free PTEs when unmapping
pages, but only at VM delete time.
Change-Id: I04d7d43d9bff23ee46fd0570ad189faece35dd14
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/663294
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 419b8675..2b8276e3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1786,9 +1786,11 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
1786 | gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes(); | 1786 | gpu->available_big_page_sizes |= g->ops.mm.get_big_page_sizes(); |
1787 | 1787 | ||
1788 | gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS | 1788 | gpu->flags = NVGPU_GPU_FLAGS_SUPPORT_PARTIAL_MAPPINGS |
1789 | | NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS | ||
1790 | | NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS; | 1789 | | NVGPU_GPU_FLAGS_SUPPORT_SYNC_FENCE_FDS; |
1791 | 1790 | ||
1791 | if (g->ops.mm.set_sparse) | ||
1792 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_SPARSE_ALLOCS; | ||
1793 | |||
1792 | if (IS_ENABLED(CONFIG_TEGRA_GK20A) && | 1794 | if (IS_ENABLED(CONFIG_TEGRA_GK20A) && |
1793 | gk20a_platform_has_syncpoints(g->dev)) | 1795 | gk20a_platform_has_syncpoints(g->dev)) |
1794 | gpu->flags |= NVGPU_GPU_FLAGS_HAS_SYNCPOINTS; | 1796 | gpu->flags |= NVGPU_GPU_FLAGS_HAS_SYNCPOINTS; |