diff options
Diffstat (limited to 'sys/dev/pci/drm/radeon/si.c')
-rw-r--r-- | sys/dev/pci/drm/radeon/si.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/radeon/si.c b/sys/dev/pci/drm/radeon/si.c index 14ac1a16333..3627d105acf 100644 --- a/sys/dev/pci/drm/radeon/si.c +++ b/sys/dev/pci/drm/radeon/si.c @@ -1,4 +1,4 @@ -/* $OpenBSD: si.c,v 1.6 2014/01/24 05:04:56 jsg Exp $ */ +/* $OpenBSD: si.c,v 1.7 2014/01/24 05:43:46 jsg Exp $ */ /* * Copyright 2011 Advanced Micro Devices, Inc. * @@ -2431,8 +2431,8 @@ static int si_mc_init(struct radeon_device *rdev) rdev->mc.aper_base = rdev->fb_aper_offset; rdev->mc.aper_size = rdev->fb_aper_size; /* size in MB on si */ - rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; - rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; + rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024ULL * 1024ULL; + rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE) * 1024ULL * 1024ULL; rdev->mc.visible_vram_size = rdev->mc.aper_size; si_vram_gtt_location(rdev, &rdev->mc); radeon_update_bandwidth_info(rdev); |