|
@@ -409,6 +409,11 @@ int i915_gem_init_stolen(struct drm_i915_private *dev_priv)
|
|
|
|
|
|
mutex_init(&dev_priv->mm.stolen_lock);
|
|
mutex_init(&dev_priv->mm.stolen_lock);
|
|
|
|
|
|
|
|
+ if (intel_vgpu_active(dev_priv)) {
|
|
|
|
+ DRM_INFO("iGVT-g active, disabling use of stolen memory\n");
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
#ifdef CONFIG_INTEL_IOMMU
|
|
#ifdef CONFIG_INTEL_IOMMU
|
|
if (intel_iommu_gfx_mapped && INTEL_GEN(dev_priv) < 8) {
|
|
if (intel_iommu_gfx_mapped && INTEL_GEN(dev_priv) < 8) {
|
|
DRM_INFO("DMAR active, disabling use of stolen memory\n");
|
|
DRM_INFO("DMAR active, disabling use of stolen memory\n");
|