Skip to contentSkip to conversation

drm/amdgpu: one pde of 4 levels at least 512GB

PATCH In review Chunming Zhou 2 participants 2 messages Mar 28, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: one pde of 4 levels at least 512GB

Change-Id I9d764e6e6cf214e64bd79435a8bbb4063260dc11
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +4 -4
index c29a477..b7ec537 100644
@@ -500,11 +500,11 @@ 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.
+	/* Because of four level VMPTs, vm size at least is 512GB.
 	256TB is OK as well */
-	if (amdgpu_vm_size < 256) {
-		DRM_WARN("vm size at least is 256GB!\n");
-		amdgpu_vm_size = 256;
+	if (amdgpu_vm_size < 512) {
+		DRM_WARN("vm size at least is 512GB!\n");
+		amdgpu_vm_size = 512;
 	}
 	adev->vm_manager.num_level = 3;
 	amdgpu_vm_manager_init(adev);
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1490672801-7319-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org

Reviewed-by Junwei Zhang
#2 lore raw
Quoted 2 lines · Chunming Zhou
Change-Id I9d764e6e6cf214e64bd79435a8bbb4063260dc11

For the minimum size, PD is 0

Quoted 15 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
index c29a477..b7ec537 100644
@@ -500,11 +500,11 @@ 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.
+	/* Because of four level VMPTs, vm size at least is 512GB.

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static int gmc_v9_0_vm_init(struct amdgpu_device *adev) · line 510

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +3 -3
  	256TB is OK as well */
-	if (amdgpu_vm_size < 256) {
-		DRM_WARN("vm size at least is 256GB!\n");
-		amdgpu_vm_size = 256;
+	if (amdgpu_vm_size < 512) {
+		DRM_WARN("vm size at least is 512GB!\n");
+		amdgpu_vm_size = 512;
  	}
  	adev->vm_manager.num_level = 3;
  	amdgpu_vm_manager_init(adev);

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx