mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 11:04:44 +08:00
drm/i915/gvt: Stop checking for impossible interrupts from a kthread
The kthread will not be interrupted, don't even bother checking. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
This commit is contained in:
parent
0eb742d7af
commit
f460c251ea
@ -423,12 +423,7 @@ static int workload_thread(void *priv)
|
|||||||
/*
|
/*
|
||||||
* Always take i915 big lock first
|
* Always take i915 big lock first
|
||||||
*/
|
*/
|
||||||
ret = i915_mutex_lock_interruptible(&gvt->dev_priv->drm);
|
mutex_lock(&gvt->dev_priv->drm.struct_mutex);
|
||||||
if (ret < 0) {
|
|
||||||
gvt_err("i915 submission is not available, retry\n");
|
|
||||||
schedule_timeout(1);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
gvt_dbg_sched("ring id %d will dispatch workload %p\n",
|
gvt_dbg_sched("ring id %d will dispatch workload %p\n",
|
||||||
workload->ring_id, workload);
|
workload->ring_id, workload);
|
||||||
@ -447,7 +442,7 @@ static int workload_thread(void *priv)
|
|||||||
workload->ring_id, workload);
|
workload->ring_id, workload);
|
||||||
|
|
||||||
workload->status = i915_wait_request(workload->req,
|
workload->status = i915_wait_request(workload->req,
|
||||||
I915_WAIT_INTERRUPTIBLE | I915_WAIT_LOCKED,
|
I915_WAIT_LOCKED,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
if (workload->status != 0)
|
if (workload->status != 0)
|
||||||
gvt_err("fail to wait workload, skip\n");
|
gvt_err("fail to wait workload, skip\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user