diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-03-31 17:37:21 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 22:17:37 -0400 |
commit | 9974201d610c7f3cc43e34a9db942da0f71917c4 (patch) | |
tree | 024849097e38631be2d0602b08c86e5afc7b63e8 /drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |
parent | 9f4405aeb532692b215337985fb371e859817a88 (diff) |
gpu: nvgpu: Per-SoC compressible page size
Define smallest compressible page size per SoC, and use that for
determining if a compressible kind should be downgraded to
uncompressed.
Bug 1605769
Change-Id: I7c9991ba0ae82fe533641f045e506c0b01a10d8b
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/724492
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 8ed9d0aa..d8dacad8 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1001,8 +1001,8 @@ static int setup_buffer_kind_and_compression(struct vm_gk20a *vm, | |||
1001 | } | 1001 | } |
1002 | } | 1002 | } |
1003 | /* comptags only supported for suitable kinds, 128KB pagesize */ | 1003 | /* comptags only supported for suitable kinds, 128KB pagesize */ |
1004 | if (unlikely(kind_compressible && | 1004 | if (kind_compressible && |
1005 | (vm->gmmu_page_sizes[pgsz_idx] != vm->big_page_size))) { | 1005 | vm->gmmu_page_sizes[pgsz_idx] < g->ops.fb.compressible_page_size(g)) { |
1006 | /* | 1006 | /* |
1007 | gk20a_warn(d, "comptags specified" | 1007 | gk20a_warn(d, "comptags specified" |
1008 | " but pagesize being used doesn't support it");*/ | 1008 | " but pagesize being used doesn't support it");*/ |