All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH v2 00/12] enhanced i915 vgpu with PV feature support
@ 2020-10-09  0:04 Xiaolin Zhang
  2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 01/12] drm/i915: introduced vgpu pv capability Xiaolin Zhang
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Xiaolin Zhang @ 2020-10-09  0:04 UTC (permalink / raw)
  To: intel-gvt-dev, intel-gfx; +Cc: chris, zhiyuan.lv

This is new i915 VGPU PV design based on the last year proposal [1].

This is a new series of patch set and discontiued the old series of
patch set due to this new design.

To improve vgpu performance, it could implement some PV optimizations
in different gpu resource domain to reduce the data access overhead
or complexity modeling.

In this patch set, PPGTT and GGTT are identifed as PV optimization from
VGPU memory resource point of view and workloa submisison is identifed
as PV optimization from VGPU compute resource point of view. so 3 PV
features (PV PPGTT, PV GGTT and PV submisison) are designed and implemented
to support VGPU model better. 

To provide the mechanism for PV feature development and implementation,
A simple PV framework is implemented and consisted of 3 sub items:
a. PV capability: it indicateds what kind of PV capability provided by both
guest system and host GVTg subsystem.
b. PV shared memory: this memory is allocated in guest and shared between
guest and host for data exchange, PV command & PV data communication.
c. PV command transport protocol: on top of PV shared memory, it defines
the communication protocol & channel between guest and host to circulate
PV command and PV command data. 

for PV PPGTT, to improve efficiency and reduce the complexity of ppgtt
support, vgpu ppgtt page table operations are implemented in pv fashion
with pv version of bind/unbind for ppgtt vma ops. The pv version of 
ppgtt vma ops use the CTB protocol to communicate pv ppgtt command along 
with data struct pv_vma from guest to GVT and then GVT implement command
handler of PV_CMD_BIND_PPGTT and PV_CMD_UBIND_PPGTT to achieve GVA->HPA
address translation.

for PV GGTT, it is similar with PV PPGGT instead to use PV_CMD_BIND_GGTT
and PV_CMD_UNBIND_GGTT pv command. 

for PV workload submisison, a pv version of workload submission backend
implemented with engine submission data in the shared memory and meanwhile
eliminating execlists csb process and context switch interrupt in
submisision routine to improve efficiency and reduce complexity.

Based on the experiment, small workloads such as glmark2 and Antutu 3D 
benchmark can get benefit for these PV featuers at least 10% performance
gain. for large workload such as media and 3D, it get some benefit,
but not much. 

[1]: https://patchwork.kernel.org/cover/11148059/

v2: addressed v1 comment from Jani Nikula and dim checkpatch issues.

Xiaolin Zhang (12):
  drm/i915: introduced vgpu pv capability
  drm/i915: vgpu shared memory setup for pv support
  drm/i915: vgpu pv command buffer transport protocol
  drm/i915: vgpu ppgtt page table pv support
  drm/i915: vgpu ggtt page table pv support
  drm/i915: vgpu workload submisison pv support
  drm/i915/gvt: GVTg expose pv_caps PVINFO register
  drm/i915/gvt: GVTg handle guest shared_page setup
  drm/i915/gvt: GVTg support vgpu pv CTB protocol
  drm/i915/gvt: GVTg support ppgtt pv operations
  drm/i915/gvt: GVTg support ggtt pv operations
  drm/i915/gvt: GVTg support pv workload submssion

 drivers/gpu/drm/i915/Makefile              |   2 +-
 drivers/gpu/drm/i915/gt/gen8_ppgtt.c       |   4 +-
 drivers/gpu/drm/i915/gt/intel_lrc.c        |   2 +
 drivers/gpu/drm/i915/gvt/gtt.c             | 258 ++++++++++++++
 drivers/gpu/drm/i915/gvt/gtt.h             |   4 +
 drivers/gpu/drm/i915/gvt/gvt.h             |  19 +-
 drivers/gpu/drm/i915/gvt/handlers.c        | 274 ++++++++++++++-
 drivers/gpu/drm/i915/gvt/vgpu.c            |  49 +++
 drivers/gpu/drm/i915/i915_drv.c            |   2 +
 drivers/gpu/drm/i915/i915_drv.h            |   3 +
 drivers/gpu/drm/i915/i915_gem.c            |   4 +-
 drivers/gpu/drm/i915/i915_pvinfo.h         |   9 +-
 drivers/gpu/drm/i915/i915_vgpu.c           | 543 ++++++++++++++++++++++++++++-
 drivers/gpu/drm/i915/i915_vgpu.h           | 125 +++++++
 drivers/gpu/drm/i915/intel_pv_submission.c | 325 +++++++++++++++++
 15 files changed, 1616 insertions(+), 7 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_pv_submission.c

-- 
2.7.4

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2020-10-09 15:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09  0:04 [Intel-gfx] [PATCH v2 00/12] enhanced i915 vgpu with PV feature support Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 01/12] drm/i915: introduced vgpu pv capability Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 02/12] drm/i915: vgpu shared memory setup for pv support Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 03/12] drm/i915: vgpu pv command buffer transport protocol Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 04/12] drm/i915: vgpu ppgtt page table pv support Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 05/12] drm/i915: vgpu ggtt " Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 06/12] drm/i915: vgpu workload submisison " Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 07/12] drm/i915/gvt: GVTg expose pv_caps PVINFO register Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 08/12] drm/i915/gvt: GVTg handle guest shared_page setup Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 09/12] drm/i915/gvt: GVTg support vgpu pv CTB protocol Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 10/12] drm/i915/gvt: GVTg support ppgtt pv operations Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 11/12] drm/i915/gvt: GVTg support ggtt " Xiaolin Zhang
2020-10-09  0:04 ` [Intel-gfx] [PATCH v2 12/12] drm/i915/gvt: GVTg support pv workload submssion Xiaolin Zhang
2020-10-09 11:14 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for enhanced i915 vgpu with PV feature support (rev2) Patchwork
2020-10-09 11:15 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2020-10-09 11:17 ` [Intel-gfx] ✗ Fi.CI.DOCS: " Patchwork
2020-10-09 11:36 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2020-10-09 15:37 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.