[PATCH 0/3] split 3 small locks from big gvt lock

pei.zhang at intel.com pei.zhang at intel.com
Thu Jan 25 07:09:24 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.

Pei Zhang (3):
  drm/i915/gvt: [small locks] use gtt lock to protect gtt list
  drm/i915/gvt: [small locks] use per vgpu lock
  drm/i915/gvt: [small locks] 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