Lines Matching full:vgpu
93 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_status() local
98 status.ldw = vgpu_vreg(vgpu, status_reg); in emulate_execlist_status()
99 status.udw = vgpu_vreg(vgpu, status_reg + 4); in emulate_execlist_status()
117 vgpu_vreg(vgpu, status_reg) = status.ldw; in emulate_execlist_status()
118 vgpu_vreg(vgpu, status_reg + 4) = status.udw; in emulate_execlist_status()
120 gvt_dbg_el("vgpu%d: status reg offset %x ldw %x udw %x\n", in emulate_execlist_status()
121 vgpu->id, status_reg, status.ldw, status.udw); in emulate_execlist_status()
128 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_csb_update() local
139 ctx_status_ptr.dw = vgpu_vreg(vgpu, ctx_status_ptr_reg); in emulate_csb_update()
152 vgpu_vreg(vgpu, offset) = status->ldw; in emulate_csb_update()
153 vgpu_vreg(vgpu, offset + 4) = status->udw; in emulate_csb_update()
156 vgpu_vreg(vgpu, ctx_status_ptr_reg) = ctx_status_ptr.dw; in emulate_csb_update()
159 hwsp_gpa = intel_vgpu_gma_to_gpa(vgpu->gtt.ggtt_mm, in emulate_csb_update()
160 vgpu->hws_pga[execlist->engine->id]); in emulate_csb_update()
162 intel_gvt_write_gpa(vgpu, in emulate_csb_update()
165 intel_gvt_write_gpa(vgpu, in emulate_csb_update()
170 gvt_dbg_el("vgpu%d: w pointer %u reg %x csb l %x csb h %x\n", in emulate_csb_update()
171 vgpu->id, write_pointer, offset, status->ldw, status->udw); in emulate_csb_update()
176 intel_vgpu_trigger_virtual_event(vgpu, in emulate_csb_update()
184 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_ctx_schedule_out() local
257 struct intel_vgpu *vgpu = execlist->vgpu; in get_next_execlist_slot() local
262 status.ldw = vgpu_vreg(vgpu, status_reg); in get_next_execlist_slot()
263 status.udw = vgpu_vreg(vgpu, status_reg + 4); in get_next_execlist_slot()
282 struct intel_vgpu *vgpu = execlist->vgpu; in emulate_execlist_schedule_in() local
372 struct intel_vgpu *vgpu = workload->vgpu; in prepare_execlist_workload() local
373 struct intel_vgpu_submission *s = &vgpu->submission; in prepare_execlist_workload()
394 struct intel_vgpu *vgpu = workload->vgpu; in complete_execlist_workload() local
395 struct intel_vgpu_submission *s = &vgpu->submission; in complete_execlist_workload()
399 struct list_head *next = workload_q_head(vgpu, workload->engine)->next; in complete_execlist_workload()
406 if (workload->status || vgpu->resetting_eng & workload->engine->mask) in complete_execlist_workload()
409 if (!list_empty(workload_q_head(vgpu, workload->engine))) { in complete_execlist_workload()
430 static int submit_context(struct intel_vgpu *vgpu, in submit_context() argument
435 struct intel_vgpu_submission *s = &vgpu->submission; in submit_context()
438 workload = intel_vgpu_create_workload(vgpu, engine, desc); in submit_context()
456 int intel_vgpu_submit_execlist(struct intel_vgpu *vgpu, in intel_vgpu_submit_execlist() argument
459 struct intel_vgpu_submission *s = &vgpu->submission; in intel_vgpu_submit_execlist()
485 ret = submit_context(vgpu, engine, desc[i], i == 0); in intel_vgpu_submit_execlist()
500 static void init_vgpu_execlist(struct intel_vgpu *vgpu, in init_vgpu_execlist() argument
503 struct intel_vgpu_submission *s = &vgpu->submission; in init_vgpu_execlist()
510 execlist->vgpu = vgpu; in init_vgpu_execlist()
516 ctx_status_ptr.dw = vgpu_vreg(vgpu, ctx_status_ptr_reg); in init_vgpu_execlist()
519 vgpu_vreg(vgpu, ctx_status_ptr_reg) = ctx_status_ptr.dw; in init_vgpu_execlist()
522 static void clean_execlist(struct intel_vgpu *vgpu, in clean_execlist() argument
525 struct intel_vgpu_submission *s = &vgpu->submission; in clean_execlist()
529 for_each_engine_masked(engine, vgpu->gvt->gt, engine_mask, tmp) { in clean_execlist()
536 static void reset_execlist(struct intel_vgpu *vgpu, in reset_execlist() argument
542 for_each_engine_masked(engine, vgpu->gvt->gt, engine_mask, tmp) in reset_execlist()
543 init_vgpu_execlist(vgpu, engine); in reset_execlist()
546 static int init_execlist(struct intel_vgpu *vgpu, in init_execlist() argument
549 reset_execlist(vgpu, engine_mask); in init_execlist()