diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-12-02 15:01:08 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-12-11 16:33:22 +0800 |
commit | 6d44694dc7c72e82e0f45d114a9c9e3f3e2aeab7 (patch) | |
tree | 0cb5e5bbc7906e244e814f52e2ede75b11ec9bad /drivers/gpu/drm/i915/gvt | |
parent | f26a9e959a7b1588c59f7a919b41b67175b211d8 (diff) | |
download | linux-6d44694dc7c72e82e0f45d114a9c9e3f3e2aeab7.tar.gz linux-6d44694dc7c72e82e0f45d114a9c9e3f3e2aeab7.tar.bz2 linux-6d44694dc7c72e82e0f45d114a9c9e3f3e2aeab7.zip |
drm/i915/gvt: use vgpu lock for active state setting
Need to align with deactivate, should only use vgpu's lock for
active state setting instead of gvt lock.
Fixes: f25a49ab8ab9 ("drm/i915/gvt: Use vgpu_lock to protect per vgpu access")
Cc: Colin Xu <colin.xu@intel.com>
Reviewed-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20191202070109.73924-2-zhenyuw@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gvt')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/vgpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c index d5a6e4e3d0fd..85bd9bf4f6ee 100644 --- a/drivers/gpu/drm/i915/gvt/vgpu.c +++ b/drivers/gpu/drm/i915/gvt/vgpu.c @@ -212,9 +212,9 @@ static void intel_gvt_update_vgpu_types(struct intel_gvt *gvt) */ void intel_gvt_activate_vgpu(struct intel_vgpu *vgpu) { - mutex_lock(&vgpu->gvt->lock); + mutex_lock(&vgpu->vgpu_lock); vgpu->active = true; - mutex_unlock(&vgpu->gvt->lock); + mutex_unlock(&vgpu->vgpu_lock); } /** |