summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon/radeon_gart.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/radeon/radeon_gart.c')
-rw-r--r--sys/dev/pci/drm/radeon/radeon_gart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_gart.c b/sys/dev/pci/drm/radeon/radeon_gart.c
index 7f4dc7bcbe5..9b2dd1420fe 100644
--- a/sys/dev/pci/drm/radeon/radeon_gart.c
+++ b/sys/dev/pci/drm/radeon/radeon_gart.c
@@ -346,8 +346,10 @@ int radeon_gart_init(struct radeon_device *rdev)
/* Compute table size */
rdev->gart.num_cpu_pages = rdev->mc.gtt_size / PAGE_SIZE;
rdev->gart.num_gpu_pages = rdev->mc.gtt_size / RADEON_GPU_PAGE_SIZE;
+#ifdef DRMDEBUG
DRM_INFO("GART: num cpu pages %u, num gpu pages %u\n",
rdev->gart.num_cpu_pages, rdev->gart.num_gpu_pages);
+#endif
/* Allocate pages table */
rdev->gart.pages = malloc(sizeof(void *) * rdev->gart.num_cpu_pages,
M_DRM, M_ZERO | M_WAITOK);