drm/qxl: add some surface memory logging
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 11 Oct 2013 08:01:11 +0000 (10:01 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 03:36:20 +0000 (13:36 +1000)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_kms.c
drivers/gpu/drm/qxl/qxl_ttm.c

index e0ddd5b4e4f328f071f98a94b92431ff090675d7..e5ca498be920a86be9507c94858637aeb0b3c4c6 100644 (file)
@@ -248,9 +248,13 @@ int qxl_device_init(struct qxl_device *qdev,
        qdev->surfaces_mem_slot = setup_slot(qdev, 1,
                (unsigned long)qdev->surfaceram_base,
                (unsigned long)qdev->surfaceram_base + qdev->surfaceram_size);
-       DRM_INFO("main mem slot %d [%lx,%x)\n",
-               qdev->main_mem_slot,
-               (unsigned long)qdev->vram_base, qdev->rom->ram_header_offset);
+       DRM_INFO("main mem slot %d [%lx,%x]\n",
+                qdev->main_mem_slot,
+                (unsigned long)qdev->vram_base, qdev->rom->ram_header_offset);
+       DRM_INFO("surface mem slot %d [%lx,%lx]\n",
+                qdev->surfaces_mem_slot,
+                (unsigned long)qdev->surfaceram_base,
+                (unsigned long)qdev->surfaceram_size);
 
 
        qdev->gc_queue = create_singlethread_workqueue("qxl_gc");
index 037786d7c1dc882d89d73d544460182fdf0df0cf..c7e7e6590c2baeb29485e6a9f31b44f0631fc606 100644 (file)
@@ -516,6 +516,8 @@ int qxl_ttm_init(struct qxl_device *qdev)
                 (unsigned)qdev->vram_size / (1024 * 1024));
        DRM_INFO("qxl: %luM of IO pages memory ready (VRAM domain)\n",
                 ((unsigned)num_io_pages * PAGE_SIZE) / (1024 * 1024));
+       DRM_INFO("qxl: %uM of Surface memory size\n",
+                (unsigned)qdev->surfaceram_size / (1024 * 1024));
        if (unlikely(qdev->mman.bdev.dev_mapping == NULL))
                qdev->mman.bdev.dev_mapping = qdev->ddev->dev_mapping;
        r = qxl_ttm_debugfs_init(qdev);