Home
last modified time | relevance | path

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

/drivers/gpu/drm/i915/selftests/
Di915_gem_gtt.c119 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in fake_dma_object()
653 obj = i915_gem_object_create_internal(i915, 2 * I915_GTT_PAGE_SIZE); in pot_hole()
665 pot > ilog2(2 * I915_GTT_PAGE_SIZE); in pot_hole()
670 for (addr = round_up(hole_start + I915_GTT_PAGE_SIZE, step) - I915_GTT_PAGE_SIZE; in pot_hole()
671 addr <= round_down(hole_end - 2*I915_GTT_PAGE_SIZE, step) - I915_GTT_PAGE_SIZE; in pot_hole()
1308 total + 2 * I915_GTT_PAGE_SIZE <= ggtt->vm.total; in igt_gtt_reserve()
1309 total += 2 * I915_GTT_PAGE_SIZE) { in igt_gtt_reserve()
1347 vma->node.size != 2*I915_GTT_PAGE_SIZE) { in igt_gtt_reserve()
1350 total, 2*I915_GTT_PAGE_SIZE); in igt_gtt_reserve()
1357 for (total = I915_GTT_PAGE_SIZE; in igt_gtt_reserve()
[all …]
Di915_gem_evict.c56 obj = i915_gem_object_create_internal(i915, I915_GTT_PAGE_SIZE); in populate_ggtt()
152 I915_GTT_PAGE_SIZE, 0, 0, in igt_evict_something()
165 I915_GTT_PAGE_SIZE, 0, 0, in igt_evict_something()
195 obj = i915_gem_object_create_internal(i915, I915_GTT_PAGE_SIZE); in igt_overcommit()
268 .start = I915_GTT_PAGE_SIZE * 2, in igt_evict_for_cache_color()
269 .size = I915_GTT_PAGE_SIZE, in igt_evict_for_cache_color()
284 obj = i915_gem_object_create_internal(i915, I915_GTT_PAGE_SIZE); in igt_evict_for_cache_color()
293 I915_GTT_PAGE_SIZE | flags); in igt_evict_for_cache_color()
300 obj = i915_gem_object_create_internal(i915, I915_GTT_PAGE_SIZE); in igt_evict_for_cache_color()
310 (I915_GTT_PAGE_SIZE * 2) | flags); in igt_evict_for_cache_color()
/drivers/gpu/drm/i915/gvt/
Daperture_gm.c53 start = ALIGN(gvt_hidden_gmadr_base(gvt), I915_GTT_PAGE_SIZE); in alloc_gm()
54 end = ALIGN(gvt_hidden_gmadr_end(gvt), I915_GTT_PAGE_SIZE); in alloc_gm()
59 start = ALIGN(gvt_aperture_gmadr_base(gvt), I915_GTT_PAGE_SIZE); in alloc_gm()
60 end = ALIGN(gvt_aperture_gmadr_end(gvt), I915_GTT_PAGE_SIZE); in alloc_gm()
67 size, I915_GTT_PAGE_SIZE, in alloc_gm()
258 vgpu_aperture_sz(vgpu) = ALIGN(request, I915_GTT_PAGE_SIZE); in alloc_resource()
269 vgpu_hidden_sz(vgpu) = ALIGN(request, I915_GTT_PAGE_SIZE); in alloc_resource()
Dreg.h111 I915_GTT_PAGE_SIZE)
Dscheduler.c169 I915_GTT_PAGE_SIZE - sizeof(*shadow_ring_context)); in populate_shadow_context()
200 I915_GTT_PAGE_SIZE); in populate_shadow_context()
850 I915_GTT_PAGE_SIZE); in update_guest_context()
875 I915_GTT_PAGE_SIZE - sizeof(*shadow_ring_context)); in update_guest_context()
Dcmd_parser.c1500 if (guest_gma >= I915_GTT_PAGE_SIZE) { in cmd_address_audit()
1705 offset = gma & (I915_GTT_PAGE_SIZE - 1); in copy_gma_to_hva()
1707 copy_len = (end_gma - gma) >= (I915_GTT_PAGE_SIZE - offset) ? in copy_gma_to_hva()
1708 I915_GTT_PAGE_SIZE - offset : end_gma - gma; in copy_gma_to_hva()
2772 if (WARN_ON(!IS_ALIGNED(workload->rb_start, I915_GTT_PAGE_SIZE))) in scan_workload()
2818 I915_GTT_PAGE_SIZE))) in scan_wa_ctx()
Dgtt.c903 (I915_GTT_PAGE_SIZE >> pt_entry_size_shift(spt))
1438 for (index = 0; index < (I915_GTT_PAGE_SIZE >> in sync_oos_page()
1491 oos_page->mem, I915_GTT_PAGE_SIZE); in attach_oos_page()
2348 int page_entry_num = I915_GTT_PAGE_SIZE >> in alloc_scratch_pages()
Dhandlers.c1475 if (!intel_gvt_ggtt_validate_range(vgpu, value, I915_GTT_PAGE_SIZE)) { in hws_pga_write()
/drivers/gpu/drm/i915/gt/
Dselftest_context.c107 vaddr += engine->context_size - I915_GTT_PAGE_SIZE; in __live_context_size()
108 memset(vaddr, POISON_INUSE, I915_GTT_PAGE_SIZE); in __live_context_size()
131 if (memchr_inv(vaddr, POISON_INUSE, I915_GTT_PAGE_SIZE)) { in __live_context_size()
186 engine->context_size += I915_GTT_PAGE_SIZE; in live_context_size()
190 engine->context_size -= I915_GTT_PAGE_SIZE; in live_context_size()
Dintel_lrc.c1733 memset(vaddr, POISON_INUSE, I915_GTT_PAGE_SIZE); in set_redzone()
1745 if (memchr_inv(vaddr, POISON_INUSE, I915_GTT_PAGE_SIZE)) in check_redzone()
3356 context_size = round_up(engine->context_size, I915_GTT_PAGE_SIZE); in __execlists_context_alloc()
3364 context_size += I915_GTT_PAGE_SIZE; /* for redzone */ in __execlists_context_alloc()
Dintel_engine_cs.c159 BUILD_BUG_ON(I915_GTT_PAGE_SIZE != PAGE_SIZE); in intel_engine_context_size()
/drivers/gpu/drm/i915/
Di915_gem_evict.c273 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_gem_evict_for_node()
274 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_gem_evict_for_node()
290 start -= I915_GTT_PAGE_SIZE; in i915_gem_evict_for_node()
293 end += I915_GTT_PAGE_SIZE; in i915_gem_evict_for_node()
Di915_gem_gtt.c1181 GEM_BUG_ON(iter->sg->length < I915_GTT_PAGE_SIZE); in gen8_ppgtt_insert_pte()
1184 iter->dma += I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert_pte()
1250 page_size = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert_huge()
1256 rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE)) in gen8_ppgtt_insert_huge()
1281 rem >= (I915_PDES - index) * I915_GTT_PAGE_SIZE))) in gen8_ppgtt_insert_huge()
1342 if (vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
1355 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert()
1608 const unsigned int first_entry = start / I915_GTT_PAGE_SIZE; in gen6_ppgtt_clear_range()
1612 unsigned int num_entries = length / I915_GTT_PAGE_SIZE; in gen6_ppgtt_clear_range()
1650 unsigned first_entry = vma->node.start / I915_GTT_PAGE_SIZE; in gen6_ppgtt_insert_entries()
[all …]
Di915_gem_gtt.h56 #define I915_GTT_PAGE_SIZE I915_GTT_PAGE_SIZE_4K macro
59 #define I915_GTT_PAGE_MASK -I915_GTT_PAGE_SIZE
61 #define I915_GTT_MIN_ALIGNMENT I915_GTT_PAGE_SIZE
152 __for_each_sgt_dma(__dmap, __iter, __sgt, I915_GTT_PAGE_SIZE)
617 #define PIN_OFFSET_MASK (-I915_GTT_PAGE_SIZE)
Di915_vma.c154 GEM_BUG_ON(!IS_ALIGNED(vma->size, I915_GTT_PAGE_SIZE)); in vma_create()
561 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
566 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
572 end = min_t(u64, end, (1ULL << 32) - I915_GTT_PAGE_SIZE); in i915_vma_insert()
573 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
625 vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in i915_vma_insert()
/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c104 GEM_BUG_ON(!IS_ALIGNED(dma_size, I915_GTT_PAGE_SIZE)); in huge_gem_object()
Di915_gem_context.c1175 GEM_BUG_ON(offset < I915_GTT_PAGE_SIZE); in write_to_scratch()
1264 GEM_BUG_ON(offset < I915_GTT_PAGE_SIZE); in read_from_scratch()
1414 vm_total -= I915_GTT_PAGE_SIZE; in igt_vm_isolation()
1431 offset += I915_GTT_PAGE_SIZE; in igt_vm_isolation()
Dhuge_pages.c305 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in fake_huge_pages_object()
/drivers/gpu/drm/i915/gem/
Di915_gem_stolen.c631 WARN_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)) || in i915_gem_object_create_stolen_for_preallocated()