diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c index 6b41e6aad2227..21fdcee48e184 100644 --- a/drivers/gpu/drm/ttm/ttm_memory.c +++ b/drivers/gpu/drm/ttm/ttm_memory.c @@ -311,9 +311,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->emer_mem = (mem >> 1) + (mem >> 2); - zone->swap_limit = zone->max_mem - (mem >> 3); + zone->max_mem = mem - (mem >> 4); /* 15/16 */ + zone->emer_mem = mem - (mem >> 4); /* 15/16 */ + zone->swap_limit = zone->max_mem; zone->used_mem = 0; zone->glob = glob; glob->zone_kernel = zone;