Commit 36f8c1f9 authored by Chunming Zhou's avatar Chunming Zhou Committed by Alex Deucher

drm/amdgpu: adapt vm size for multi vmpt

Signed-off-by: default avatarChunming Zhou <David1.Zhou@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f7effef8
......@@ -500,6 +500,12 @@ static int gmc_v9_0_vm_init(struct amdgpu_device *adev)
* amdkfd will use VMIDs 8-15
*/
adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
/* Because of four level VMPTs, vm size at least is 256GB.
256TB is OK as well */
if (amdgpu_vm_size < 256) {
DRM_WARN("vm size at least is 256GB!\n");
amdgpu_vm_size = 256;
}
adev->vm_manager.num_level = 1;
amdgpu_vm_manager_init(adev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment