]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac2a29939226f569be94d9a4ecdeeb94cd3cd9b6
tree5f80ce2157217fe83c3569a484e03c2e15f5e4d7
parent63877f828090529809c16cfd4ca888dc4dc70ee3
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