• Chuanxiao Dong's avatar
    drm/i915/gvt: handle workload lifecycle properly · 8f1117ab
    Chuanxiao Dong authored
    Currently i915 has a request replay mechanism which can make sure
    the request can be replayed after a GPU reset. With this mechanism,
    gvt should wait until the GVT request seqno passed before complete
    the current workload. So that there should be a context switch interrupt
    come before gvt free the workload. In this way, workload lifecylce
    matches with the i915 request lifecycle. The workload can only be freed
    after the request is completed.
    
    v2: use gvt_dbg_sched instead of gvt_err to print when wait again
    Signed-off-by: default avatarChuanxiao Dong <chuanxiao.dong@intel.com>
    Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
    8f1117ab
scheduler.c 15.8 KB