[PATCH] drm/radeon: Make vramlimit parameter actually work.
Alex Deucher
alexdeucher at gmail.com
Fri Aug 19 11:57:02 PDT 2011
2011/8/19 Michel Dänzer <michel at daenzer.net>:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/radeon/radeon_device.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
> index 7cfaa7e..f67d719 100644
> --- a/drivers/gpu/drm/radeon/radeon_device.c
> +++ b/drivers/gpu/drm/radeon/radeon_device.c
> @@ -300,6 +300,8 @@ void radeon_vram_location(struct radeon_device *rdev, struct radeon_mc *mc, u64
> mc->mc_vram_size = mc->aper_size;
> }
> mc->vram_end = mc->vram_start + mc->mc_vram_size - 1;
> + if (radeon_vram_limit && radeon_vram_limit < mc->real_vram_size)
> + mc->real_vram_size = radeon_vram_limit;
> dev_info(rdev->dev, "VRAM: %lluM 0x%016llX - 0x%016llX (%lluM used)\n",
> mc->mc_vram_size >> 20, mc->vram_start,
> mc->vram_end, mc->real_vram_size >> 20);
> --
> 1.7.5.4
>
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
More information about the dri-devel
mailing list