OSDN Git Service

drm/amdkfd: Update KFD TTM mem limit
authorMukul Joshi <mukul.joshi@amd.com>
Tue, 25 Apr 2023 18:19:05 +0000 (14:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:24:52 +0000 (09:24 -0400)
commit27fb73a0e3aa7478bcb5d2d59d65eec3c68fc165
tree68799c9ad17edb58434e02a8ae1fb958ed65f6d0
parentf1f6f48a338cdab96efef712dbef6b1e279583e2
drm/amdkfd: Update KFD TTM mem limit

Use the helper function in TTM to get TTM memory
limit and set KFD's internal mem limit. This ensures
that KFD's TTM mem limit and actual TTM mem limit are
exactly same.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@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_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c