Lines Matching full:ee
441 const struct intel_engine_coredump *ee) in error_print_instdone() argument
448 ee->instdone.instdone); in error_print_instdone()
450 if (ee->engine->class != RENDER_CLASS || GRAPHICS_VER(m->i915) <= 3) in error_print_instdone()
454 ee->instdone.slice_common); in error_print_instdone()
459 for_each_ss_steering(iter, ee->engine->gt, slice, subslice) in error_print_instdone()
462 ee->instdone.sampler[slice][subslice]); in error_print_instdone()
464 for_each_ss_steering(iter, ee->engine->gt, slice, subslice) in error_print_instdone()
467 ee->instdone.row[slice][subslice]); in error_print_instdone()
473 for_each_ss_steering(iter, ee->engine->gt, slice, subslice) in error_print_instdone()
476 ee->instdone.geom_svg[slice][subslice]); in error_print_instdone()
480 ee->instdone.slice_common_extra[0]); in error_print_instdone()
482 ee->instdone.slice_common_extra[1]); in error_print_instdone()
526 intel_gpu_error_find_batch(const struct intel_engine_coredump *ee) in intel_gpu_error_find_batch() argument
528 return __find_vma(ee->vma, "batch"); in intel_gpu_error_find_batch()
532 const struct intel_engine_coredump *ee) in error_print_engine() argument
537 err_printf(m, "%s command stream:\n", ee->engine->name); in error_print_engine()
538 err_printf(m, " CCID: 0x%08x\n", ee->ccid); in error_print_engine()
539 err_printf(m, " START: 0x%08x\n", ee->start); in error_print_engine()
540 err_printf(m, " HEAD: 0x%08x [0x%08x]\n", ee->head, ee->rq_head); in error_print_engine()
542 ee->tail, ee->rq_post, ee->rq_tail); in error_print_engine()
543 err_printf(m, " CTL: 0x%08x\n", ee->ctl); in error_print_engine()
544 err_printf(m, " MODE: 0x%08x\n", ee->mode); in error_print_engine()
545 err_printf(m, " HWS: 0x%08x\n", ee->hws); in error_print_engine()
547 (u32)(ee->acthd>>32), (u32)ee->acthd); in error_print_engine()
548 err_printf(m, " IPEIR: 0x%08x\n", ee->ipeir); in error_print_engine()
549 err_printf(m, " IPEHR: 0x%08x\n", ee->ipehr); in error_print_engine()
550 err_printf(m, " ESR: 0x%08x\n", ee->esr); in error_print_engine()
552 error_print_instdone(m, ee); in error_print_engine()
554 batch = intel_gpu_error_find_batch(ee); in error_print_engine()
565 (u32)(ee->bbaddr>>32), (u32)ee->bbaddr); in error_print_engine()
566 err_printf(m, " BB_STATE: 0x%08x\n", ee->bbstate); in error_print_engine()
567 err_printf(m, " INSTPS: 0x%08x\n", ee->instps); in error_print_engine()
569 err_printf(m, " INSTPM: 0x%08x\n", ee->instpm); in error_print_engine()
570 err_printf(m, " FADDR: 0x%08x %08x\n", upper_32_bits(ee->faddr), in error_print_engine()
571 lower_32_bits(ee->faddr)); in error_print_engine()
573 err_printf(m, " RC PSMI: 0x%08x\n", ee->rc_psmi); in error_print_engine()
574 err_printf(m, " FAULT_REG: 0x%08x\n", ee->fault_reg); in error_print_engine()
577 err_printf(m, " NOPID: 0x%08x\n", ee->nopid); in error_print_engine()
578 err_printf(m, " EXCC: 0x%08x\n", ee->excc); in error_print_engine()
579 err_printf(m, " CMD_CCTL: 0x%08x\n", ee->cmd_cctl); in error_print_engine()
580 err_printf(m, " CSCMDOP: 0x%08x\n", ee->cscmdop); in error_print_engine()
581 err_printf(m, " CTX_SR_CTL: 0x%08x\n", ee->ctx_sr_ctl); in error_print_engine()
582 err_printf(m, " DMA_FADDR_HI: 0x%08x\n", ee->dma_faddr_hi); in error_print_engine()
583 err_printf(m, " DMA_FADDR_LO: 0x%08x\n", ee->dma_faddr_lo); in error_print_engine()
586 err_printf(m, " GFX_MODE: 0x%08x\n", ee->vm_info.gfx_mode); in error_print_engine()
592 i, ee->vm_info.pdp[i]); in error_print_engine()
595 ee->vm_info.pp_dir_base); in error_print_engine()
599 for (n = 0; n < ee->num_ports; n++) { in error_print_engine()
601 error_print_request(m, " ", &ee->execlist[n]); in error_print_engine()
812 const struct intel_engine_coredump *ee; in err_print_gt_engines() local
814 for (ee = gt->engine; ee; ee = ee->next) { in err_print_gt_engines()
818 if (ee->guc_capture_node) in err_print_gt_engines()
819 intel_guc_capture_print_engine_node(m, ee); in err_print_gt_engines()
822 ee->engine->name); in err_print_gt_engines()
824 error_print_engine(m, ee); in err_print_gt_engines()
827 err_printf(m, " hung: %u\n", ee->hung); in err_print_gt_engines()
828 err_printf(m, " engine reset count: %u\n", ee->reset_count); in err_print_gt_engines()
829 error_print_context(m, " Active context: ", &ee->context); in err_print_gt_engines()
831 for (vma = ee->vma; vma; vma = vma->next) in err_print_gt_engines()
832 intel_gpu_error_print_vma(m, ee->engine, vma); in err_print_gt_engines()
841 const struct intel_engine_coredump *ee; in __err_print_to_sgl() local
862 for (ee = error->gt ? error->gt->engine : NULL; ee; ee = ee->next) in __err_print_to_sgl()
864 ee->engine->name, in __err_print_to_sgl()
865 ee->context.comm, in __err_print_to_sgl()
866 ee->context.pid); in __err_print_to_sgl()
1053 struct intel_engine_coredump *ee = gt->engine; in cleanup_gt() local
1055 gt->engine = ee->next; in cleanup_gt()
1057 i915_vma_coredump_free(ee->vma); in cleanup_gt()
1058 intel_guc_capture_free_node(ee); in cleanup_gt()
1059 kfree(ee); in cleanup_gt()
1235 static void engine_record_registers(struct intel_engine_coredump *ee) in engine_record_registers() argument
1237 const struct intel_engine_cs *engine = ee->engine; in engine_record_registers()
1241 ee->rc_psmi = ENGINE_READ(engine, RING_PSMI_CTL); in engine_record_registers()
1249 ee->fault_reg = intel_uncore_read(engine->uncore, in engine_record_registers()
1252 ee->fault_reg = intel_gt_mcr_read_any(engine->gt, in engine_record_registers()
1255 ee->fault_reg = intel_uncore_read(engine->uncore, in engine_record_registers()
1258 ee->fault_reg = intel_uncore_read(engine->uncore, in engine_record_registers()
1261 ee->fault_reg = GEN6_RING_FAULT_REG_READ(engine); in engine_record_registers()
1265 ee->esr = ENGINE_READ(engine, RING_ESR); in engine_record_registers()
1266 ee->faddr = ENGINE_READ(engine, RING_DMA_FADD); in engine_record_registers()
1267 ee->ipeir = ENGINE_READ(engine, RING_IPEIR); in engine_record_registers()
1268 ee->ipehr = ENGINE_READ(engine, RING_IPEHR); in engine_record_registers()
1269 ee->instps = ENGINE_READ(engine, RING_INSTPS); in engine_record_registers()
1270 ee->bbaddr = ENGINE_READ(engine, RING_BBADDR); in engine_record_registers()
1271 ee->ccid = ENGINE_READ(engine, CCID); in engine_record_registers()
1273 ee->faddr |= (u64)ENGINE_READ(engine, RING_DMA_FADD_UDW) << 32; in engine_record_registers()
1274 ee->bbaddr |= (u64)ENGINE_READ(engine, RING_BBADDR_UDW) << 32; in engine_record_registers()
1276 ee->bbstate = ENGINE_READ(engine, RING_BBSTATE); in engine_record_registers()
1278 ee->faddr = ENGINE_READ(engine, DMA_FADD_I8XX); in engine_record_registers()
1279 ee->ipeir = ENGINE_READ(engine, IPEIR); in engine_record_registers()
1280 ee->ipehr = ENGINE_READ(engine, IPEHR); in engine_record_registers()
1284 ee->cmd_cctl = ENGINE_READ(engine, RING_CMD_CCTL); in engine_record_registers()
1285 ee->cscmdop = ENGINE_READ(engine, RING_CSCMDOP); in engine_record_registers()
1286 ee->ctx_sr_ctl = ENGINE_READ(engine, RING_CTX_SR_CTL); in engine_record_registers()
1287 ee->dma_faddr_hi = ENGINE_READ(engine, RING_DMA_FADD_UDW); in engine_record_registers()
1288 ee->dma_faddr_lo = ENGINE_READ(engine, RING_DMA_FADD); in engine_record_registers()
1289 ee->nopid = ENGINE_READ(engine, RING_NOPID); in engine_record_registers()
1290 ee->excc = ENGINE_READ(engine, RING_EXCC); in engine_record_registers()
1293 intel_engine_get_instdone(engine, &ee->instdone); in engine_record_registers()
1295 ee->instpm = ENGINE_READ(engine, RING_INSTPM); in engine_record_registers()
1296 ee->acthd = intel_engine_get_active_head(engine); in engine_record_registers()
1297 ee->start = ENGINE_READ(engine, RING_START); in engine_record_registers()
1298 ee->head = ENGINE_READ(engine, RING_HEAD); in engine_record_registers()
1299 ee->tail = ENGINE_READ(engine, RING_TAIL); in engine_record_registers()
1300 ee->ctl = ENGINE_READ(engine, RING_CTL); in engine_record_registers()
1302 ee->mode = ENGINE_READ(engine, RING_MI_MODE); in engine_record_registers()
1332 ee->hws = intel_uncore_read(engine->uncore, mmio); in engine_record_registers()
1335 ee->reset_count = i915_reset_engine_count(&i915->gpu_error, engine); in engine_record_registers()
1340 ee->vm_info.gfx_mode = ENGINE_READ(engine, RING_MODE_GEN7); in engine_record_registers()
1343 ee->vm_info.pp_dir_base = in engine_record_registers()
1346 ee->vm_info.pp_dir_base = in engine_record_registers()
1352 ee->vm_info.pdp[i] = in engine_record_registers()
1355 ee->vm_info.pdp[i] <<= 32; in engine_record_registers()
1356 ee->vm_info.pdp[i] |= in engine_record_registers()
1386 static void engine_record_execlists(struct intel_engine_coredump *ee) in engine_record_execlists() argument
1388 const struct intel_engine_execlists * const el = &ee->engine->execlists; in engine_record_execlists()
1393 record_request(*port++, &ee->execlist[n++]); in engine_record_execlists()
1395 ee->num_ports = n; in engine_record_execlists()
1505 static void add_vma(struct intel_engine_coredump *ee, in add_vma() argument
1509 vma->next = ee->vma; in add_vma()
1510 ee->vma = vma; in add_vma()
1535 static void add_vma_coredump(struct intel_engine_coredump *ee, in add_vma_coredump() argument
1541 add_vma(ee, create_vma_coredump(gt, vma, name, compress)); in add_vma_coredump()
1547 struct intel_engine_coredump *ee; in intel_engine_coredump_alloc() local
1549 ee = kzalloc(sizeof(*ee), gfp); in intel_engine_coredump_alloc()
1550 if (!ee) in intel_engine_coredump_alloc()
1553 ee->engine = engine; in intel_engine_coredump_alloc()
1556 engine_record_registers(ee); in intel_engine_coredump_alloc()
1557 engine_record_execlists(ee); in intel_engine_coredump_alloc()
1560 return ee; in intel_engine_coredump_alloc()
1564 engine_coredump_add_context(struct intel_engine_coredump *ee, in engine_coredump_add_context() argument
1570 ee->simulated |= record_context(&ee->context, ce); in engine_coredump_add_context()
1571 if (ee->simulated) in engine_coredump_add_context()
1586 intel_engine_coredump_add_request(struct intel_engine_coredump *ee, in intel_engine_coredump_add_request() argument
1592 vma = engine_coredump_add_context(ee, rq->context, gfp); in intel_engine_coredump_add_request()
1604 ee->rq_head = rq->head; in intel_engine_coredump_add_request()
1605 ee->rq_post = rq->postfix; in intel_engine_coredump_add_request()
1606 ee->rq_tail = rq->tail; in intel_engine_coredump_add_request()
1612 intel_engine_coredump_add_vma(struct intel_engine_coredump *ee, in intel_engine_coredump_add_vma() argument
1616 const struct intel_engine_cs *engine = ee->engine; in intel_engine_coredump_add_vma()
1622 add_vma(ee, in intel_engine_coredump_add_vma()
1633 add_vma_coredump(ee, engine->gt, engine->status_page.vma, in intel_engine_coredump_add_vma()
1636 add_vma_coredump(ee, engine->gt, engine->wa_ctx.vma, in intel_engine_coredump_add_vma()
1646 struct intel_engine_coredump *ee; in capture_engine() local
1650 ee = intel_engine_coredump_alloc(engine, ALLOW_FAIL, dump_flags); in capture_engine()
1651 if (!ee) in capture_engine()
1660 capture = intel_engine_coredump_add_request(ee, rq, ATOMIC_MAYFAIL); in capture_engine()
1663 capture = engine_coredump_add_context(ee, ce, ATOMIC_MAYFAIL); in capture_engine()
1667 intel_engine_coredump_add_vma(ee, capture, compress); in capture_engine()
1670 intel_guc_capture_get_matching_node(engine->gt, ee, ce); in capture_engine()
1672 kfree(ee); in capture_engine()
1673 ee = NULL; in capture_engine()
1676 return ee; in capture_engine()
1689 struct intel_engine_coredump *ee; in gt_record_engines() local
1694 ee = capture_engine(engine, compress, dump_flags); in gt_record_engines()
1695 if (!ee) in gt_record_engines()
1698 ee->hung = engine->mask & engine_mask; in gt_record_engines()
1700 gt->simulated |= ee->simulated; in gt_record_engines()
1701 if (ee->simulated) { in gt_record_engines()
1703 intel_guc_capture_free_node(ee); in gt_record_engines()
1704 kfree(ee); in gt_record_engines()
1708 ee->next = gt->engine; in gt_record_engines()
1709 gt->engine = ee; in gt_record_engines()
1939 static u32 generate_ecode(const struct intel_engine_coredump *ee) in generate_ecode() argument
1947 return ee ? ee->ipehr ^ ee->instdone.instdone : 0; in generate_ecode()