[RFC PATCH v2 0/2] GVT device model split

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Refresh previous attempt to split GVT module.

This trys to move GVT device model in stand alone module. New module
named as "i915_gvt" is created. The purpose is to enable GVT function
once user loads i915_gvt module.

This needs to export several i915 functions currently used by GVT as
in first patch. As GVT requires HW initial MMIO state for vGPU as base
initial state after create, which needs to be got from early stage of
i915 load, this trys to read all GVT tracked registers when i915 init,
and provide for i915_gvt module when host init.

I think we would refactor "kvmgt" module init first. "kvmgt" should
register into GVT as hypervisor interface provider, instead of making
GVT to load it for now. But that still won't split GVT from i915. So
this work takes further to split GVT device model from i915.

Thanks

Zhenyu Wang (2):
  drm/i915: Export current required functions for GVT
  drm/i915: Move GVT device model into separate module

 drivers/gpu/drm/i915/Kconfig              |    2 +-
 drivers/gpu/drm/i915/Makefile             |    4 +-
 drivers/gpu/drm/i915/gvt/Makefile         |    8 +-
 drivers/gpu/drm/i915/gvt/firmware.c       |    2 +-
 drivers/gpu/drm/i915/gvt/gvt.c            |   52 +-
 drivers/gpu/drm/i915/gvt/gvt.h            |    3 +
 drivers/gpu/drm/i915/i915_drv.c           |   43 +-
 drivers/gpu/drm/i915/i915_drv.h           |   10 +-
 drivers/gpu/drm/i915/i915_gem.c           |   11 +
 drivers/gpu/drm/i915/i915_gem_context.c   |    2 +
 drivers/gpu/drm/i915/i915_gem_dmabuf.c    |    1 +
 drivers/gpu/drm/i915/i915_gem_fence_reg.c |    2 +
 drivers/gpu/drm/i915/i915_gem_gtt.c       |    1 +
 drivers/gpu/drm/i915/i915_params.c        |    5 -
 drivers/gpu/drm/i915/i915_params.h        |    3 +-
 drivers/gpu/drm/i915/i915_request.c       |    3 +
 drivers/gpu/drm/i915/i915_vma.c           |    2 +
 drivers/gpu/drm/i915/intel_gvt.c          | 1519 ++++++++++++++++++++-
 drivers/gpu/drm/i915/intel_gvt.h          |   29 +-
 drivers/gpu/drm/i915/intel_ringbuffer.c   |    1 +
 drivers/gpu/drm/i915/intel_runtime_pm.c   |    2 +
 drivers/gpu/drm/i915/intel_uncore.c       |    3 +
 22 files changed, 1575 insertions(+), 133 deletions(-)

-- 
2.19.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux