Lines Matching refs:GEM_BUG_ON
120 GEM_BUG_ON(vm == &vm->gt->ggtt->alias->vm); in vma_create()
147 GEM_BUG_ON(range_overflows_t(u64, in vma_create()
153 GEM_BUG_ON(vma->size > obj->base.size); in vma_create()
166 GEM_BUG_ON(!IS_ALIGNED(vma->size, I915_GTT_PAGE_SIZE)); in vma_create()
189 GEM_BUG_ON(!IS_ALIGNED(vma->fence_size, I915_GTT_MIN_ALIGNMENT)); in vma_create()
194 GEM_BUG_ON(!is_power_of_2(vma->fence_alignment)); in vma_create()
293 GEM_BUG_ON(view && !i915_is_ggtt_or_dpt(vm)); in i915_vma_instance()
294 GEM_BUG_ON(!kref_read(&vm->ref)); in i915_vma_instance()
304 GEM_BUG_ON(!IS_ERR(vma) && i915_vma_compare(vma, vm, view)); in i915_vma_instance()
439 GEM_BUG_ON(!drm_mm_node_allocated(&vma->node)); in i915_vma_bind()
440 GEM_BUG_ON(vma->size > vma->node.size); in i915_vma_bind()
466 GEM_BUG_ON(!atomic_read(&vma->pages_count)); in i915_vma_bind()
559 GEM_BUG_ON(!i915_vma_is_ggtt(vma)); in i915_vma_pin_iomap()
560 GEM_BUG_ON(!i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND)); in i915_vma_pin_iomap()
561 GEM_BUG_ON(i915_vma_verify_bind_complete(vma)); in i915_vma_pin_iomap()
614 GEM_BUG_ON(vma->iomap == NULL); in i915_vma_unpin_iomap()
632 GEM_BUG_ON(!obj); in i915_vma_unpin_and_release()
654 GEM_BUG_ON(alignment && !is_power_of_2(alignment)); in i915_vma_misplaced()
676 GEM_BUG_ON(!i915_vma_is_ggtt(vma)); in __i915_vma_set_map_and_fenceable()
677 GEM_BUG_ON(!vma->fence_size); in __i915_vma_set_map_and_fenceable()
706 GEM_BUG_ON(!drm_mm_node_allocated(node)); in i915_gem_valid_gtt_space()
707 GEM_BUG_ON(list_empty(&node->node_list)); in i915_gem_valid_gtt_space()
744 GEM_BUG_ON(i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND | I915_VMA_LOCAL_BIND)); in i915_vma_insert()
745 GEM_BUG_ON(drm_mm_node_allocated(&vma->node)); in i915_vma_insert()
755 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
756 GEM_BUG_ON(!IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_vma_insert()
757 GEM_BUG_ON(!is_power_of_2(alignment)); in i915_vma_insert()
760 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
767 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
830 GEM_BUG_ON(i915_vma_is_ggtt(vma)); in i915_vma_insert()
844 GEM_BUG_ON(vma->node.start < start); in i915_vma_insert()
845 GEM_BUG_ON(vma->node.start + vma->node.size > end); in i915_vma_insert()
847 GEM_BUG_ON(!drm_mm_node_allocated(&vma->node)); in i915_vma_insert()
848 GEM_BUG_ON(!i915_gem_valid_gtt_space(vma, color)); in i915_vma_insert()
858 GEM_BUG_ON(!drm_mm_node_allocated(&vma->node)); in i915_vma_detach()
859 GEM_BUG_ON(i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND | I915_VMA_LOCAL_BIND)); in i915_vma_detach()
890 GEM_BUG_ON(((bound + 1) & I915_VMA_PIN_MASK) == 0); in try_qad_pin()
1076 GEM_BUG_ON(!iter); in remap_contiguous_pages()
1239 GEM_BUG_ON(!i915_gem_object_has_pinned_pages(vma->obj)); in __i915_vma_get_pages()
1243 GEM_BUG_ON(vma->ggtt_view.type); in __i915_vma_get_pages()
1318 GEM_BUG_ON(atomic_read(&vma->pages_count) < count); in __vma_put_pages()
1348 GEM_BUG_ON(!count); in vma_unbind_pages()
1364 GEM_BUG_ON(!ww); in i915_vma_pin_ww()
1369 GEM_BUG_ON(!(flags & (PIN_USER | PIN_GLOBAL))); in i915_vma_pin_ww()
1481 GEM_BUG_ON(!vma->pages); in i915_vma_pin_ww()
1490 GEM_BUG_ON(bound + I915_VMA_PAGES_ACTIVE < bound); in i915_vma_pin_ww()
1496 GEM_BUG_ON(!i915_vma_is_pinned(vma)); in i915_vma_pin_ww()
1498 GEM_BUG_ON(!i915_vma_is_bound(vma, flags)); in i915_vma_pin_ww()
1499 GEM_BUG_ON(i915_vma_misplaced(vma, size, alignment, flags)); in i915_vma_pin_ww()
1575 GEM_BUG_ON(!i915_vma_is_ggtt(vma)); in i915_ggtt_pin()
1605 GEM_BUG_ON(i915_vma_is_closed(vma)); in __vma_close()
1617 GEM_BUG_ON(!atomic_read(&vma->open_count)); in i915_vma_close()
1648 GEM_BUG_ON(drm_mm_node_allocated(&vma->node)); in force_unbind()
1656 GEM_BUG_ON(i915_vma_is_active(vma)); in release_references()
1776 GEM_BUG_ON(i915_vma_is_pinned(vma)); in __i915_vma_iounmap()
1793 GEM_BUG_ON(!i915_vma_is_map_and_fenceable(vma)); in i915_vma_revoke_mmap()
1794 GEM_BUG_ON(!vma->obj->userfault_count); in i915_vma_revoke_mmap()
1836 GEM_BUG_ON(!vma->pages); in _i915_vma_move_to_active()
1891 GEM_BUG_ON(!i915_vma_is_active(vma)); in _i915_vma_move_to_active()
1900 GEM_BUG_ON(i915_vma_is_pinned(vma)); in __i915_vma_evict()
1928 GEM_BUG_ON(vma->fence); in __i915_vma_evict()
1929 GEM_BUG_ON(i915_vma_has_userfault(vma)); in __i915_vma_evict()
1997 GEM_BUG_ON(i915_vma_is_active(vma)); in __i915_vma_unbind()