drm/radeon: clean up active vram sizing
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jan 2014 16:26:33 +0000 (11:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jan 2014 20:23:05 +0000 (15:23 -0500)
commit50efa51afddb50a6ab47ee15614fcf180130888c
tree5f80ce2157217fe83c3569a484e03c2e15f5e4d7
parentb9ace36f13c6fc46391c9d40edc648eef3a59ab0
drm/radeon: clean up active vram sizing

If we are not able to properly initialize one of the gpu
engines for buffer paging, we limit vram to the size of
the cpu visible aperture.  We generally either use the gfx
or dma engine to do this.  Clean up the size limiting code
to only adjust the size based on what ring is selected
for buffer paging rather than making assumptions about which
engine is selected for paging.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/cik_sdma.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/ni_dma.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_dma.c
drivers/gpu/drm/radeon/rv770.c
drivers/gpu/drm/radeon/si.c