Skip to content

Commit 0e9d7bb

Browse files
Igor Druzhininzhenyw
authored andcommitted
drm/i915/gvt: more locking for ppgtt mm LRU list
When the lock was introduced in commit 72aabfb ("drm/i915/gvt: Add mutual lock for ppgtt mm LRU list") one place got lost. Fixes: 72aabfb ("drm/i915/gvt: Add mutual lock for ppgtt mm LRU list") Signed-off-by: Igor Druzhinin <[email protected]> Reviewed-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c216f12 commit 0e9d7bb

File tree

1 file changed

+4
-0
lines changed
  • drivers/gpu/drm/i915/gvt

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,11 @@ void _intel_vgpu_mm_release(struct kref *mm_ref)
19561956

19571957
if (mm->type == INTEL_GVT_MM_PPGTT) {
19581958
list_del(&mm->ppgtt_mm.list);
1959+
1960+
mutex_lock(&mm->vgpu->gvt->gtt.ppgtt_mm_lock);
19591961
list_del(&mm->ppgtt_mm.lru_list);
1962+
mutex_unlock(&mm->vgpu->gvt->gtt.ppgtt_mm_lock);
1963+
19601964
invalidate_ppgtt_mm(mm);
19611965
} else {
19621966
vfree(mm->ggtt_mm.virtual_ggtt);

0 commit comments

Comments
 (0)