summaryrefslogtreecommitdiff
path: root/linux-core/mga_drv.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-02-14 19:56:10 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-02-14 19:56:10 +0000
commit99f656d561292a2c522df81bceaa77ff902890a7 (patch)
tree3f66bd17645774baa85a7e56cf3683550df26314 /linux-core/mga_drv.c
parent80e9874631832e62a4952a937d291f0e519d858d (diff)
Fix state managment bugsi810-20000214-beta2
Diffstat (limited to 'linux-core/mga_drv.c')
-rw-r--r--linux-core/mga_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/mga_drv.c b/linux-core/mga_drv.c
index e85cba45..3bd335c3 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