Skip to content

Commit 6d44694

Browse files
committed
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: f25a49a ("drm/i915/gvt: Use vgpu_lock to protect per vgpu access") Cc: Colin Xu <[email protected]> Reviewed-by: Colin Xu <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f26a9e9 commit 6d44694

File tree

1 file changed

+2
-2
lines changed
  • drivers/gpu/drm/i915/gvt

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/gvt/vgpu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ static void intel_gvt_update_vgpu_types(struct intel_gvt *gvt)
212212
*/
213213
void intel_gvt_activate_vgpu(struct intel_vgpu *vgpu)
214214
{
215-
mutex_lock(&vgpu->gvt->lock);
215+
mutex_lock(&vgpu->vgpu_lock);
216216
vgpu->active = true;
217-
mutex_unlock(&vgpu->gvt->lock);
217+
mutex_unlock(&vgpu->vgpu_lock);
218218
}
219219

220220
/**

0 commit comments

Comments
 (0)