drm/i915/gvt: fix the usage of ww lock in gvt scheduler.
authorZhi A Wang <zhi.wang.linux2@gmail.com>
Thu, 26 Aug 2021 14:38:34 +0000 (14:38 +0000)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 13 Sep 2021 13:59:31 +0000 (21:59 +0800)
commitd168cd797982db9db617113644c87b8f5f3cf27e
treeee5c4c490b0c49a887421d2344e362c5e90f67c3
parent71de496cc489b6bae2f51f89da7f28849bf2836e
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: 67f1120381df ("drm/i915/gvt: Introduce per object locking in GVT scheduler.")
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhi A Wang <zhi.a.wang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210826143834.25410-1-zhi.a.wang@intel.com
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c