[PATCH 0/3 - small lock v3] split 3 small locks from big gvt lock
pei.zhang at intel.com
pei.zhang at intel.com
Thu Feb 1 00:25:17 UTC 2018
From: Pei Zhang <pei.zhang at intel.com>
This serial patches will split out 3 small locks from the original big gvt lock, which are:
1. per-vGPU lock, it will protect the per-vGPU data and logic, especially the vGPU trap emulation path.
2. schedule lock, it will protect the context schedule logic. Protect the gvt scheudler structure and vGPU's schedule data.
3. gtt lock, it's used to protect the gvt global gtt oos lists.
While the 3 new locks are used, the origianl gvt lock will be rarely used. One usage example is to protect the available vGPU list.
V3: update to latest code base
V2: fix 2 places lock scope error
Pei Zhang (3):
drm/i915/gvt: use gtt lock to protect gtt list
drm/i915/gvt: use per vgpu lock
drm/i915/gvt: use scheduler lock
drivers/gpu/drm/i915/gvt/display.c | 11 +++----
drivers/gpu/drm/i915/gvt/gtt.c | 56 ++++++++++++++++++++++++++++-----
drivers/gpu/drm/i915/gvt/gvt.c | 7 ++---
drivers/gpu/drm/i915/gvt/gvt.h | 18 +++++++++++
drivers/gpu/drm/i915/gvt/handlers.c | 2 ++
drivers/gpu/drm/i915/gvt/mmio.c | 12 +++----
drivers/gpu/drm/i915/gvt/sched_policy.c | 41 ++++++++++++++++++++----
drivers/gpu/drm/i915/gvt/scheduler.c | 21 ++++++++-----
drivers/gpu/drm/i915/gvt/vgpu.c | 56 +++++++++++++++------------------
9 files changed, 154 insertions(+), 70 deletions(-)
--
2.7.4
More information about the intel-gvt-dev
mailing list