]> 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)
commit5fb44c5005a69b476524e7726e50f8373683f1ed
tree5f80ce2157217fe83c3569a484e03c2e15f5e4d7
parenteb4bda400d5a942b05d5dfe0db23af657ddc0975
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