aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2025-04-25 11:08:17 -0400
committerAlex Deucher <alexander.deucher@amd.com>2025-12-16 13:28:00 -0500
commit6f744d7976e4910e478d1e46666aef96a71386ad (patch)
tree0e25ab3a60ed8bfbf86e6509d6146a4f0708f812 /drivers/gpu/drm/amd/amdgpu
parent2d1fd547902da8ab4c48f542accf769a15bfce04 (diff)
drm/amdgpu: Enable 5-level page table for GFX 12.1.0
GFX 12.1.0 support 57bit virtual, 52bit physical address, set PDE max_level to 4, min_vm_size to 128PB to enable GPU vm 5-level page tables to support 57bit virtual address. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Acked-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
index e63ad5f18a8e..57aabe0dcfdf 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c
@@ -809,11 +809,11 @@ static int gmc_v12_0_sw_init(struct amdgpu_ip_block *ip_block)
for (i = 0; i < hweight32(adev->aid_mask); i++)
set_bit(AMDGPU_MMHUB0(i), adev->vmhubs_mask);
/*
- * To fulfill 4-level page support,
- * vm size is 256TB (48bit), maximum size,
+ * To fulfill 5-level page support,
+ * vm size is 128PetaByte (57bit), maximum size,
* block size 512 (9bit)
*/
- amdgpu_vm_adjust_size(adev, 256 * 1024, 9, 3, 48);
+ amdgpu_vm_adjust_size(adev, 128 * 1024 * 1024, 9, 4, 57);
break;
default:
break;