Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_region.c59 default_page_size = mem->min_page_size; in __i915_gem_object_create_region()
91 if (default_page_size < mem->min_page_size) in __i915_gem_object_create_region()
124 if (GEM_WARN_ON(!IS_ALIGNED(size, mem->min_page_size)) || in i915_gem_object_create_region_at()
125 GEM_WARN_ON(!IS_ALIGNED(offset, mem->min_page_size))) in i915_gem_object_create_region_at()
H A Di915_gem_stolen.c777 mem->min_page_size); in _i915_gem_object_stolen_init()
899 resource_size_t min_page_size; in i915_gem_stolen_lmem_setup() local
960 min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K : in i915_gem_stolen_lmem_setup()
964 min_page_size, in i915_gem_stolen_lmem_setup()
H A Di915_gem_create.c28 GEM_BUG_ON(!is_power_of_2(mr->min_page_size)); in object_max_page_size()
29 max_page_size = max_t(u32, max_page_size, mr->min_page_size); in object_max_page_size()
H A Di915_gem_object.c698 if (!IS_ALIGNED(obj->base.size, mr->min_page_size)) in i915_gem_object_can_migrate()
/linux/drivers/gpu/drm/xe/
H A Dxe_ttm_vram_mgr.c55 u64 size, remaining_size, min_page_size; in xe_ttm_vram_mgr_new() local
92 min_page_size = mgr->default_page_size; in xe_ttm_vram_mgr_new()
94 min_page_size = (u64)tbo->page_alignment << PAGE_SHIFT; in xe_ttm_vram_mgr_new()
96 if (WARN_ON(min_page_size < mm->chunk_size)) { in xe_ttm_vram_mgr_new()
101 if (WARN_ON(min_page_size > SZ_2G)) { /* FIXME: sg limit */ in xe_ttm_vram_mgr_new()
112 if (WARN_ON(!IS_ALIGNED(size, min_page_size))) { in xe_ttm_vram_mgr_new()
127 min_page_size = size; in xe_ttm_vram_mgr_new()
143 min_page_size, in xe_ttm_vram_mgr_new()
H A Dxe_query.c276 mem_regions->mem_regions[0].min_page_size = PAGE_SIZE; in query_mem_regions()
289 mem_regions->mem_regions[mem_regions->num_mem_regions].min_page_size = in query_mem_regions()
/linux/drivers/gpu/drm/i915/selftests/
H A Dmock_region.c37 obj->mm.region->min_page_size); in mock_region_get_pages()
109 resource_size_t min_page_size, in mock_region_create() argument
120 return intel_memory_region_create(i915, start, size, min_page_size, in mock_region_create()
H A Dmock_region.h18 resource_size_t min_page_size,
/linux/drivers/gpu/drm/i915/
H A Di915_ttm_buddy_manager.c43 u64 min_page_size; in i915_ttm_buddy_man_alloc() local
71 min_page_size = bman->default_page_size; in i915_ttm_buddy_man_alloc()
73 min_page_size = bo->page_alignment << PAGE_SHIFT; in i915_ttm_buddy_man_alloc()
75 GEM_BUG_ON(min_page_size < mm->chunk_size); in i915_ttm_buddy_man_alloc()
76 GEM_BUG_ON(!IS_ALIGNED(size, min_page_size)); in i915_ttm_buddy_man_alloc()
95 min_page_size, in i915_ttm_buddy_man_alloc()
H A Dintel_memory_region.h68 resource_size_t min_page_size; member
96 resource_size_t min_page_size,
H A Dintel_memory_region.c239 resource_size_t min_page_size, in intel_memory_region_create() argument
256 mem->min_page_size = min_page_size; in intel_memory_region_create()
H A Dintel_region_ttm.c91 mem->min_page_size, PAGE_SIZE); in intel_region_ttm_init()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_region_lmem.c207 resource_size_t min_page_size; in setup_lmem() local
258 min_page_size = HAS_64K_PAGES(i915) ? I915_GTT_PAGE_SIZE_64K : in setup_lmem()
263 min_page_size, in setup_lmem()
/linux/drivers/gpu/drm/i915/gem/selftests/
H A Dhuge_pages.c1352 u32 min_page_size, in igt_random_size() argument
1358 GEM_BUG_ON(!is_power_of_2(min_page_size)); in igt_random_size()
1360 GEM_BUG_ON(min_page_size < PAGE_SIZE); in igt_random_size()
1361 GEM_BUG_ON(min_page_size > max_page_size); in igt_random_size()
1365 if (size < min_page_size) in igt_random_size()
1366 size |= min_page_size; in igt_random_size()
1678 addr = round_up(addr, mr->min_page_size); in igt_ppgtt_mixed()
1718 addr = round_up(addr, obj->mm.region->min_page_size); in igt_ppgtt_mixed()
H A Di915_gem_migrate.c60 obj = i915_gem_object_create_region(src_mr, dst_mr->min_page_size, 0, 0); in igt_create_migrate()
H A Di915_gem_mman.c981 mr->min_page_size, in igt_mmap()
1074 if (size == mr->min_page_size) { in igt_fill_mappable()
/linux/include/drm/
H A Ddrm_buddy.h154 u64 min_page_size,
/linux/include/uapi/drm/
H A Dxe_drm.h319 __u32 min_page_size; member
/linux/drivers/gpu/drm/i915/display/
H A Dintel_plane_initial.c160 mem->min_page_size); in initial_plane_vma()
/linux/drivers/infiniband/hw/mlx5/
H A Dmain.c879 u64 min_page_size = 1ull << MLX5_CAP_GEN(mdev, log_pg_sz); in mlx5_ib_query_device() local
1024 props->page_size_cap = ~(min_page_size - 1); in mlx5_ib_query_device()