Lines Matching refs:GEM_BUG_ON
112 GEM_BUG_ON(vm == &vm->gt->ggtt->alias->vm); in vma_create()
141 GEM_BUG_ON(range_overflows_t(u64, in vma_create()
147 GEM_BUG_ON(vma->size > obj->base.size); in vma_create()
160 GEM_BUG_ON(!IS_ALIGNED(vma->size, I915_GTT_PAGE_SIZE)); in vma_create()
175 GEM_BUG_ON(!IS_ALIGNED(vma->fence_size, I915_GTT_MIN_ALIGNMENT)); in vma_create()
180 GEM_BUG_ON(!is_power_of_2(vma->fence_alignment)); in vma_create()
277 GEM_BUG_ON(view && !i915_is_ggtt(vm)); in i915_vma_instance()
278 GEM_BUG_ON(!atomic_read(&vm->open)); in i915_vma_instance()
288 GEM_BUG_ON(!IS_ERR(vma) && i915_vma_compare(vma, vm, view)); in i915_vma_instance()
384 GEM_BUG_ON(!drm_mm_node_allocated(&vma->node)); in i915_vma_bind()
385 GEM_BUG_ON(vma->size > vma->node.size); in i915_vma_bind()
405 GEM_BUG_ON(!vma->pages); in i915_vma_bind()
456 GEM_BUG_ON(!i915_vma_is_ggtt(vma)); in i915_vma_pin_iomap()
457 GEM_BUG_ON(!i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND)); in i915_vma_pin_iomap()
500 GEM_BUG_ON(vma->iomap == NULL); in i915_vma_unpin_iomap()
518 GEM_BUG_ON(!obj); in i915_vma_unpin_and_release()
540 GEM_BUG_ON(alignment && !is_power_of_2(alignment)); in i915_vma_misplaced()
562 GEM_BUG_ON(!i915_vma_is_ggtt(vma)); in __i915_vma_set_map_and_fenceable()
563 GEM_BUG_ON(!vma->fence_size); in __i915_vma_set_map_and_fenceable()
592 GEM_BUG_ON(!drm_mm_node_allocated(node)); in i915_gem_valid_gtt_space()
593 GEM_BUG_ON(list_empty(&node->node_list)); in i915_gem_valid_gtt_space()
629 GEM_BUG_ON(i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND | I915_VMA_LOCAL_BIND)); in i915_vma_insert()
630 GEM_BUG_ON(drm_mm_node_allocated(&vma->node)); in i915_vma_insert()
640 GEM_BUG_ON(!IS_ALIGNED(size, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
641 GEM_BUG_ON(!IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_vma_insert()
642 GEM_BUG_ON(!is_power_of_2(alignment)); in i915_vma_insert()
645 GEM_BUG_ON(!IS_ALIGNED(start, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
652 GEM_BUG_ON(!IS_ALIGNED(end, I915_GTT_PAGE_SIZE)); in i915_vma_insert()
706 GEM_BUG_ON(i915_vma_is_ggtt(vma)); in i915_vma_insert()
720 GEM_BUG_ON(vma->node.start < start); in i915_vma_insert()
721 GEM_BUG_ON(vma->node.start + vma->node.size > end); in i915_vma_insert()
723 GEM_BUG_ON(!drm_mm_node_allocated(&vma->node)); in i915_vma_insert()
724 GEM_BUG_ON(!i915_gem_valid_gtt_space(vma, color)); in i915_vma_insert()
734 GEM_BUG_ON(!drm_mm_node_allocated(&vma->node)); in i915_vma_detach()
735 GEM_BUG_ON(i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND | I915_VMA_LOCAL_BIND)); in i915_vma_detach()
761 GEM_BUG_ON(((bound + 1) & I915_VMA_PIN_MASK) == 0); in try_qad_pin()
825 GEM_BUG_ON(atomic_read(&vma->pages_count) < count); in __vma_put_pages()
828 GEM_BUG_ON(vma->pages); in __vma_put_pages()
852 GEM_BUG_ON(!count); in vma_unbind_pages()
873 GEM_BUG_ON(!(flags & (PIN_USER | PIN_GLOBAL))); in i915_vma_pin_ww()
968 GEM_BUG_ON(!vma->pages); in i915_vma_pin_ww()
976 GEM_BUG_ON(bound + I915_VMA_PAGES_ACTIVE < bound); in i915_vma_pin_ww()
981 GEM_BUG_ON(!i915_vma_is_pinned(vma)); in i915_vma_pin_ww()
982 GEM_BUG_ON(!i915_vma_is_bound(vma, flags)); in i915_vma_pin_ww()
983 GEM_BUG_ON(i915_vma_misplaced(vma, size, alignment, flags)); in i915_vma_pin_ww()
1021 GEM_BUG_ON(!i915_vma_is_ggtt(vma)); in i915_ggtt_pin()
1057 GEM_BUG_ON(i915_vma_is_closed(vma)); in __vma_close()
1069 GEM_BUG_ON(!atomic_read(&vma->open_count)); in i915_vma_close()
1102 GEM_BUG_ON(drm_mm_node_allocated(&vma->node)); in i915_vma_release()
1104 GEM_BUG_ON(i915_vma_is_active(vma)); in i915_vma_release()
1162 GEM_BUG_ON(i915_vma_is_pinned(vma)); in __i915_vma_iounmap()
1179 GEM_BUG_ON(!i915_vma_is_map_and_fenceable(vma)); in i915_vma_revoke_mmap()
1180 GEM_BUG_ON(!vma->obj->userfault_count); in i915_vma_revoke_mmap()
1204 GEM_BUG_ON(!i915_vma_is_pinned(vma)); in __i915_vma_move_to_active()
1255 GEM_BUG_ON(!i915_vma_is_active(vma)); in i915_vma_move_to_active()
1261 GEM_BUG_ON(i915_vma_is_pinned(vma)); in __i915_vma_evict()
1288 GEM_BUG_ON(vma->fence); in __i915_vma_evict()
1289 GEM_BUG_ON(i915_vma_has_userfault(vma)); in __i915_vma_evict()
1325 GEM_BUG_ON(i915_vma_is_active(vma)); in __i915_vma_unbind()