drm/ttm: Helper function to get TTM mem limit
authorMukul Joshi <mukul.joshi@amd.com>
Tue, 25 Apr 2023 18:11:56 +0000 (14:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:24:43 +0000 (09:24 -0400)
commit1d74159021e9a4e58c422f0b91e2a6fcb884c54f
tree574b55fd934d6b1ddeea85df1abf785dc4d6080c
parent3c4f6507abde5c36e892d63b25296fc6d9b13285
drm/ttm: Helper function to get TTM mem limit

Add a helper function to get TTM memory limit. This is
needed by KFD to set its own internal memory limits.

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/ttm/ttm_tt.c
include/drm/ttm/ttm_tt.h