summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/i810_dma.c8
-rw-r--r--linux-core/mga_drv.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c
index 51cd043c8..7b0e4475d 100644
--- a/linux-core/i810_dma.c
+++ b/linux-core/i810_dma.c
@@ -429,10 +429,10 @@ static void i810_dma_dispatch_vertex(drm_device_t *dev, drm_buf_t *buf)
int length = buf->used;
int i = 0;
RING_LOCALS;
-
- if (I810_VERBOSE)
- DRM_DEBUG("dispatch vertex addr 0x%lx, length 0x%x nbox %d\n",
- address, length, buf_priv->nbox);
+
+ if (0)
+ printk("dispatch vertex %d addr 0x%lx, length 0x%x nbox %d\n",
+ buf->idx, address, length, buf_priv->nbox);
sarea_priv->last_dispatch = buf_priv->age;
dev_priv->counter++;
diff --git a/linux-core/mga_drv.c b/linux-core/mga_drv.c
index e85cba45b..3bd335c36 100644
--- a/linux-core/mga_drv.c
+++ b/linux-core/mga_drv.c
@@ -482,7 +482,7 @@ int mga_init(void)
}
#ifdef CONFIG_MTRR
dev->agp->agp_mtrr = mtrr_add(dev->agp->agp_info.aper_base,
- dev->agp->agp_info.aper_size,
+ dev->agp->agp_info.aper_size * 1024 * 1024,
MTRR_TYPE_WRCOMB,
1);
#endif
@@ -527,7 +527,7 @@ void mga_cleanup(void)
int retval;
retval = mtrr_del(dev->agp->agp_mtrr,
dev->agp->agp_info.aper_base,
- dev->agp->agp_info.aper_size);
+ dev->agp->agp_info.aper_size * 1024*1024);
DRM_DEBUG("mtrr_del = %d\n", retval);
}
#endif