Home
last modified time | relevance | path

Searched refs:min_block_size (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c388 u64 vis_usage = 0, max_bytes, cur_size, min_block_size; in amdgpu_vram_mgr_new() local
447 min_block_size = (u64)tbo->page_alignment << PAGE_SHIFT; in amdgpu_vram_mgr_new()
449 min_block_size = mgr->default_page_size; in amdgpu_vram_mgr_new()
451 BUG_ON(min_block_size < mm->chunk_size); in amdgpu_vram_mgr_new()
457 min_block_size = (u64)pages_per_block << PAGE_SHIFT; in amdgpu_vram_mgr_new()
468 min_block_size = size; in amdgpu_vram_mgr_new()
473 } else if (!IS_ALIGNED(size, min_block_size)) { in amdgpu_vram_mgr_new()
474 size = round_up(size, min_block_size); in amdgpu_vram_mgr_new()
481 min_block_size, in amdgpu_vram_mgr_new()