OSDN Git Service

drm/amdgpu: Set GTT size equal to TTM mem limit
authorMukul Joshi <mukul.joshi@amd.com>
Tue, 25 Apr 2023 18:13:36 +0000 (14:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:24:46 +0000 (09:24 -0400)
commitf1f6f48a338cdab96efef712dbef6b1e279583e2
tree3b91d7978fd8f6356c9c985f89dd58d6ede5a0d0
parent1d74159021e9a4e58c422f0b91e2a6fcb884c54f
drm/amdgpu: Set GTT size equal to TTM mem limit

Use the helper function in TTM to get TTM mem limit and
set GTT size to be equal to TTL mem limit.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c