diff options
author | Jerome Glisse <jglisse@redhat.com> | 2010-04-07 06:21:31 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-20 00:14:25 -0400 |
commit | 6b8b1786a8c29ce6e32298b93ac8d4a18a2b11c4 (patch) | |
tree | 598bbdcc01d02e4e698d02cc893a12b6391c84a7 /drivers/gpu/drm | |
parent | 0c321c79627189204d7d0bf65ab19f5ac419abed (diff) |
drm/radeon/kms: enable use of unmappable VRAM V2
This patch enable the use of unmappable VRAM thanks to
previous TTM infrastructure change.
V2 update after io_mem_reserve/io_mem_free callback balancing
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreen.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/r600.c | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 5 |
4 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 647a0efdc353..5c7c5c399302 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -475,11 +475,6 @@ int evergreen_mc_init(struct radeon_device *rdev) | |||
475 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; | 475 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; |
476 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; | 476 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE) * 1024 * 1024; |
477 | rdev->mc.visible_vram_size = rdev->mc.aper_size; | 477 | rdev->mc.visible_vram_size = rdev->mc.aper_size; |
478 | /* FIXME remove this once we support unmappable VRAM */ | ||
479 | if (rdev->mc.mc_vram_size > rdev->mc.aper_size) { | ||
480 | rdev->mc.mc_vram_size = rdev->mc.aper_size; | ||
481 | rdev->mc.real_vram_size = rdev->mc.aper_size; | ||
482 | } | ||
483 | r600_vram_gtt_location(rdev, &rdev->mc); | 478 | r600_vram_gtt_location(rdev, &rdev->mc); |
484 | radeon_update_bandwidth_info(rdev); | 479 | radeon_update_bandwidth_info(rdev); |
485 | 480 | ||
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 3ae51ada1abf..3ce549706c2a 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -2001,11 +2001,6 @@ void r100_vram_init_sizes(struct radeon_device *rdev) | |||
2001 | else | 2001 | else |
2002 | rdev->mc.mc_vram_size = rdev->mc.real_vram_size; | 2002 | rdev->mc.mc_vram_size = rdev->mc.real_vram_size; |
2003 | } | 2003 | } |
2004 | /* FIXME remove this once we support unmappable VRAM */ | ||
2005 | if (rdev->mc.mc_vram_size > rdev->mc.aper_size) { | ||
2006 | rdev->mc.mc_vram_size = rdev->mc.aper_size; | ||
2007 | rdev->mc.real_vram_size = rdev->mc.aper_size; | ||
2008 | } | ||
2009 | } | 2004 | } |
2010 | 2005 | ||
2011 | void r100_vga_set_state(struct radeon_device *rdev, bool state) | 2006 | void r100_vga_set_state(struct radeon_device *rdev, bool state) |
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 5509354c7c89..dce41b167f85 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -713,11 +713,6 @@ int r600_mc_init(struct radeon_device *rdev) | |||
713 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); | 713 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); |
714 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE); | 714 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE); |
715 | rdev->mc.visible_vram_size = rdev->mc.aper_size; | 715 | rdev->mc.visible_vram_size = rdev->mc.aper_size; |
716 | /* FIXME remove this once we support unmappable VRAM */ | ||
717 | if (rdev->mc.mc_vram_size > rdev->mc.aper_size) { | ||
718 | rdev->mc.mc_vram_size = rdev->mc.aper_size; | ||
719 | rdev->mc.real_vram_size = rdev->mc.aper_size; | ||
720 | } | ||
721 | r600_vram_gtt_location(rdev, &rdev->mc); | 716 | r600_vram_gtt_location(rdev, &rdev->mc); |
722 | 717 | ||
723 | if (rdev->flags & RADEON_IS_IGP) | 718 | if (rdev->flags & RADEON_IS_IGP) |
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 9f37d2efb0a9..e2089faa9593 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -905,11 +905,6 @@ int rv770_mc_init(struct radeon_device *rdev) | |||
905 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); | 905 | rdev->mc.mc_vram_size = RREG32(CONFIG_MEMSIZE); |
906 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE); | 906 | rdev->mc.real_vram_size = RREG32(CONFIG_MEMSIZE); |
907 | rdev->mc.visible_vram_size = rdev->mc.aper_size; | 907 | rdev->mc.visible_vram_size = rdev->mc.aper_size; |
908 | /* FIXME remove this once we support unmappable VRAM */ | ||
909 | if (rdev->mc.mc_vram_size > rdev->mc.aper_size) { | ||
910 | rdev->mc.mc_vram_size = rdev->mc.aper_size; | ||
911 | rdev->mc.real_vram_size = rdev->mc.aper_size; | ||
912 | } | ||
913 | r600_vram_gtt_location(rdev, &rdev->mc); | 908 | r600_vram_gtt_location(rdev, &rdev->mc); |
914 | radeon_update_bandwidth_info(rdev); | 909 | radeon_update_bandwidth_info(rdev); |
915 | 910 | ||