drm/i915: dmesg output for VT-d testing
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 31 Mar 2014 14:23:04 +0000 (16:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Apr 2014 09:24:02 +0000 (11:24 +0200)
Our validation guys want to have a positive proof that the gfx driver
is indeed using VT-d, since setting up a gfx stack, especially in
early bring-up and by people not versed in linux gfx is a bit tricky.
So provide just that.

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index b31cde1d5979bcdebeb6bb7123dd5c6809780681..cb6401fe96370be862bc4aa1e3ce39629a1022f7 100644 (file)
@@ -1961,6 +1961,10 @@ int i915_gem_gtt_init(struct drm_device *dev)
                 gtt->base.total >> 20);
        DRM_DEBUG_DRIVER("GMADR size = %ldM\n", gtt->mappable_end >> 20);
        DRM_DEBUG_DRIVER("GTT stolen size = %zdM\n", gtt->stolen_size >> 20);
+#ifdef CONFIG_INTEL_IOMMU
+       if (intel_iommu_gfx_mapped)
+               DRM_INFO("VT-d active for gfx access\n");
+#endif
 
        return 0;
 }
This page took 0.033149 seconds and 5 git commands to generate.