Either use the proper format or cast up to 64b depending on the case.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
goto free_tiny;
}
- kunit_info(test, "Starting tests, top level PT addr: %llx, special pagetable base addr: %llx\n",
- xe_bo_main_addr(m->eng->vm->pt_root[id]->bo, GEN8_PAGE_SIZE),
- xe_bo_main_addr(m->pt_bo, GEN8_PAGE_SIZE));
+ kunit_info(test, "Starting tests, top level PT addr: %lx, special pagetable base addr: %lx\n",
+ (unsigned long)xe_bo_main_addr(m->eng->vm->pt_root[id]->bo, GEN8_PAGE_SIZE),
+ (unsigned long)xe_bo_main_addr(m->pt_bo, GEN8_PAGE_SIZE));
/* First part of the test, are we updating our pagetable bo with a new entry? */
xe_map_wr(xe, &bo->vmap, GEN8_PAGE_SIZE * (NUM_KERNEL_PDE - 1), u64, 0xdeaddeadbeefbeef);
for (i = parallel_read(xe, map, wq_desc.head);
i != parallel_read(xe, map, wq_desc.tail);
i = (i + sizeof(u32)) % WQ_SIZE)
- drm_printf(p, "\tWQ[%ld]: 0x%08x\n", i / sizeof(u32),
+ drm_printf(p, "\tWQ[%zu]: 0x%08x\n", i / sizeof(u32),
parallel_read(xe, map, wq[i / sizeof(u32)]));
}
}
(u64)xe->mem.vram.size >> 20);
if (xe->mem.vram.size < lmem_size)
drm_warn(&xe->drm, "Restricting VRAM size to PCI resource size (0x%llx->0x%llx)\n",
- lmem_size, xe->mem.vram.size);
+ lmem_size, (u64)xe->mem.vram.size);
#ifdef CONFIG_64BIT
xe->mem.vram.mapping = ioremap_wc(xe->mem.vram.io_start, xe->mem.vram.size);