Commit e7168cab authored by Dave Airlie's avatar Dave Airlie
Browse files

drm/radeon/kms: fix vram vs aper size check.



Fix this to be correct like the DDX code, looks like a typo
on transfer to the kernel.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 2007d633
......@@ -552,7 +552,7 @@ int radeon_device_init(struct radeon_device *rdev,
* for RN50/M6/M7 - Novell bug 204882 ?
*/
if (rdev->mc.vram_size < rdev->mc.aper_size) {
rdev->mc.aper_size = rdev->mc.vram_size;
rdev->mc.vram_size = rdev->mc.aper_size;
}
/* Add an MTRR for the VRAM */
rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment