Revert "drm/amd/amdgpu: set gtt size according to system memory size only"
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 15 Dec 2017 17:09:16 +0000 (12:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Dec 2017 16:53:24 +0000 (11:53 -0500)
commit24562523688bebc7ec17a88271b4e8c3fc337b74
tree6870c7c1b5637960e8e9f26eb4f4607580554397
parent979311191ee6f350bb7ee04a6db54f182f952840
Revert "drm/amd/amdgpu: set gtt size according to system memory size only"

This reverts commit ba851eed895c76be0eb4260bdbeb7e26f9ccfaa2.
With that change piglit max size tests (running with -t max.*size) are causing
OOM and hard hang on my CZ with 1GB RAM.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c