diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c index a1803fbcc898a..14edd651125ad 100644 --- a/drivers/gpu/drm/ttm/ttm_memory.c +++ b/drivers/gpu/drm/ttm/ttm_memory.c @@ -257,9 +257,9 @@ static int ttm_mem_init_kernel_zone(struct ttm_mem_global *glob, zone->name = "kernel"; zone->zone_mem = mem; - zone->max_mem = mem >> 1; + zone->max_mem = (mem >> 1) + (mem >> 2); zone->emer_mem = (mem >> 1) + (mem >> 2); - zone->swap_limit = zone->max_mem - (mem >> 3); + zone->swap_limit = zone->max_mem; zone->used_mem = 0; zone->glob = glob; glob->zone_kernel = zone; @@ -327,7 +327,8 @@ static int ttm_mem_init_dma32_zone(struct ttm_mem_global *glob, * No special dma32 zone needed. */ - if (mem <= ((uint64_t) 1ULL << 32)) { + /*if (mem <= ((uint64_t) 1ULL << 32)) {*/ + if (1) { kfree(zone); return 0; }