|
@@ -4822,6 +4822,15 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
|
|
|
|
|
|
mutex_lock(&dev_priv->drm.struct_mutex);
|
|
|
|
|
|
+ /*
|
|
|
+ * We need to fallback to 4K pages since gvt gtt handling doesn't
|
|
|
+ * support huge page entries - we will need to check either hypervisor
|
|
|
+ * mm can support huge guest page or just do emulation in gvt.
|
|
|
+ */
|
|
|
+ if (intel_vgpu_active(dev_priv))
|
|
|
+ mkwrite_device_info(dev_priv)->page_sizes =
|
|
|
+ I915_GTT_PAGE_SIZE_4K;
|
|
|
+
|
|
|
dev_priv->mm.unordered_timeline = dma_fence_context_alloc(1);
|
|
|
|
|
|
if (!i915_modparams.enable_execlists) {
|