| .. | .. |
|---|
| 24 | 24 | #include "i915_drv.h" |
|---|
| 25 | 25 | #include "i915_vgpu.h" |
|---|
| 26 | 26 | #include "intel_gvt.h" |
|---|
| 27 | +#include "gvt/gvt.h" |
|---|
| 27 | 28 | |
|---|
| 28 | 29 | /** |
|---|
| 29 | 30 | * DOC: Intel GVT-g host support |
|---|
| .. | .. |
|---|
| 147 | 148 | |
|---|
| 148 | 149 | intel_gvt_clean_device(dev_priv); |
|---|
| 149 | 150 | } |
|---|
| 151 | + |
|---|
| 152 | +/** |
|---|
| 153 | + * intel_gvt_resume - GVT resume routine wapper |
|---|
| 154 | + * |
|---|
| 155 | + * @dev_priv: drm i915 private * |
|---|
| 156 | + * |
|---|
| 157 | + * This function is called at the i915 driver resume stage to restore required |
|---|
| 158 | + * HW status for GVT so that vGPU can continue running after resumed. |
|---|
| 159 | + */ |
|---|
| 160 | +void intel_gvt_resume(struct drm_i915_private *dev_priv) |
|---|
| 161 | +{ |
|---|
| 162 | + if (intel_gvt_active(dev_priv)) |
|---|
| 163 | + intel_gvt_pm_resume(dev_priv->gvt); |
|---|
| 164 | +} |
|---|