Lines Matching full:order
15 pr_err("block info: header=%llx, state=%u, order=%d, offset=%llx size=%llx root=%s buddy=%s\n", in __igt_dump_block()
202 unsigned int order; in igt_check_mm() local
218 order = i915_buddy_block_order(root); in igt_check_mm()
221 if (order != mm->max_order) { in igt_check_mm()
222 pr_err("max order root missing\n"); in igt_check_mm()
242 block = list_first_entry_or_null(&mm->free_list[order], in igt_check_mm()
246 pr_err("root mismatch at order=%u\n", order); in igt_check_mm()
307 int *order; in igt_buddy_alloc_smoke() local
320 order = i915_random_order(mm.max_order + 1, &prng); in igt_buddy_alloc_smoke()
321 if (!order) in igt_buddy_alloc_smoke()
326 int max_order = order[i]; in igt_buddy_alloc_smoke()
329 int order; in igt_buddy_alloc_smoke() local
340 order = max_order; in igt_buddy_alloc_smoke()
345 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_smoke()
349 pr_info("buddy_alloc hit -ENOMEM with order=%d\n", in igt_buddy_alloc_smoke()
350 order); in igt_buddy_alloc_smoke()
352 if (order--) { in igt_buddy_alloc_smoke()
357 pr_err("buddy_alloc with order=%d failed(%d)\n", in igt_buddy_alloc_smoke()
358 order, err); in igt_buddy_alloc_smoke()
366 if (i915_buddy_block_order(block) != order) { in igt_buddy_alloc_smoke()
367 pr_err("buddy_alloc order mismatch\n"); in igt_buddy_alloc_smoke()
400 kfree(order); in igt_buddy_alloc_smoke()
412 unsigned int order; in igt_buddy_alloc_pessimistic() local
418 * order within. This should leave the mm with exactly one in igt_buddy_alloc_pessimistic()
429 for (order = 0; order < max_order; order++) { in igt_buddy_alloc_pessimistic()
430 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_pessimistic()
432 pr_info("buddy_alloc hit -ENOMEM with order=%d\n", in igt_buddy_alloc_pessimistic()
433 order); in igt_buddy_alloc_pessimistic()
451 for (order = max_order; order--; ) { in igt_buddy_alloc_pessimistic()
452 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_pessimistic()
454 pr_info("buddy_alloc unexpectedly succeeded at order %d, it should be full!", in igt_buddy_alloc_pessimistic()
455 order); in igt_buddy_alloc_pessimistic()
467 order = 1; in igt_buddy_alloc_pessimistic()
472 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_pessimistic()
474 pr_info("buddy_alloc (realloc) hit -ENOMEM with order=%d\n", in igt_buddy_alloc_pessimistic()
475 order); in igt_buddy_alloc_pessimistic()
480 order++; in igt_buddy_alloc_pessimistic()
486 pr_info("buddy_alloc (realloc) hit -ENOMEM with order=%d\n", in igt_buddy_alloc_pessimistic()
505 int order; in igt_buddy_alloc_optimistic() local
509 * Create a mm with one block of each order available, and in igt_buddy_alloc_optimistic()
522 for (order = 0; order <= max_order; order++) { in igt_buddy_alloc_optimistic()
523 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_optimistic()
525 pr_info("buddy_alloc hit -ENOMEM with order=%d\n", in igt_buddy_alloc_optimistic()
526 order); in igt_buddy_alloc_optimistic()
556 int order, top; in igt_buddy_alloc_pathological() local
561 * order within. This should leave the mm with exactly one in igt_buddy_alloc_pathological()
581 for (order = top; order--; ) { in igt_buddy_alloc_pathological()
582 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_pathological()
584 pr_info("buddy_alloc hit -ENOMEM with order=%d, top=%d\n", in igt_buddy_alloc_pathological()
585 order, top); in igt_buddy_alloc_pathological()
603 pr_info("buddy_alloc unexpectedly succeeded at top-order %d/%d, it should be full!", in igt_buddy_alloc_pathological()
614 for (order = 1; order <= max_order; order++) { in igt_buddy_alloc_pathological()
615 block = i915_buddy_alloc(&mm, order); in igt_buddy_alloc_pathological()
617 pr_info("buddy_alloc unexpectedly succeeded at order %d, it should be full!", in igt_buddy_alloc_pathological()
618 order); in igt_buddy_alloc_pathological()