mbox series

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

Message ID 20181126060554.16481-1-zhenyuw@linux.intel.com (mailing list archive)
Headers show
Series GVT device model split | expand

Message

Zhenyu Wang Nov. 26, 2018, 6:05 a.m. UTC
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(-)