gpu: nvgpu: Allow compression on 64k pages

Allow compression always when page size matches the big page
size for the context.

Bug 1558739

Change-Id: I27b0aed06c24d69bd1555626b9affb1149536615
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/590422
This commit is contained in:
Terje Bergstrom
2014-10-27 15:43:16 +02:00
committed by Dan Willemsen
parent abfc843557
commit 4f6dddcf78

View File

@@ -1007,7 +1007,7 @@ static int setup_buffer_kind_and_compression(struct vm_gk20a *vm,
}
/* comptags only supported for suitable kinds, 128KB pagesize */
if (unlikely(kind_compressible &&
(vm->gmmu_page_sizes[pgsz_idx] != 128*1024))) {
(vm->gmmu_page_sizes[pgsz_idx] != vm->big_page_size))) {
/*
gk20a_warn(d, "comptags specified"
" but pagesize being used doesn't support it");*/