Skip to content
Commit af6c83ae authored by Zhi A Wang's avatar Zhi A Wang Committed by Rodrigo Vivi
Browse files

drm/i915/gvt: fix the usage of ww lock in gvt scheduler.



As the APIs related to ww lock in i915 was changed recently, the usage of
ww lock in GVT-g scheduler needs to be changed accrodingly. We noticed a
deadlock when GVT-g scheduler submits the workload to i915. After some
investigation, it seems the way of how to use ww lock APIs has been
changed. Releasing a ww now requires a explicit i915_gem_ww_ctx_fini().

Fixes: 67f11203 ("drm/i915/gvt: Introduce per object locking in GVT scheduler.")
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarZhi A Wang <zhi.a.wang@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210826143834.25410-1-zhi.a.wang@intel.com


Acked-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
(cherry picked from commit d168cd79)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 5740211e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment