]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Report amount of usable graphics memory in MiB
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 11 Nov 2012 09:34:45 +0000 (09:34 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Nov 2012 15:10:56 +0000 (16:10 +0100)
...rather than kilo-PTE.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Apply s/Usabel/usable/ bikeshed suggested by Ben Widawsky.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c

index 0aed724c7321628a46d734ae5abf5fec743b570e..35fec1e613462eab1feb0ae585f7bfe6677c0da5 100644 (file)
@@ -682,7 +682,7 @@ int i915_gem_gtt_init(struct drm_device *dev)
        }
 
        /* GMADR is the PCI aperture used by SW to access tiled GFX surfaces in a linear fashion. */
-       DRM_INFO("Memory Usable by graphics device = %dK\n", dev_priv->mm.gtt->gtt_total_entries >> 10);
+       DRM_INFO("Memory usable by graphics device = %dM\n", dev_priv->mm.gtt->gtt_total_entries >> 8);
        DRM_DEBUG_DRIVER("GMADR size = %dM\n", dev_priv->mm.gtt->gtt_mappable_entries >> 8);
        DRM_DEBUG_DRIVER("GTT stolen size = %dM\n", dev_priv->mm.gtt->stolen_size >> 20);