Signed-off-by: Junwei Zhang <Jerry.Zhang at amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 1ad1113..4af4ea0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -1080,6 +1080,11 @@ static void amdgpu_get_block_size(struct amdgpu_device *adev) static void amdgpu_check_vm_size(struct amdgpu_device *adev) { + if (adev->asic_type >= CHIP_VEGA10) { + amdgpu_vm_size = 1U << 18; /* 256TB */ + return; + } + if (!amdgpu_check_pot_argument(amdgpu_vm_size)) { dev_warn(adev->dev, "VM size (%d) must be a power of 2\n", amdgpu_vm_size); -- 1.9.1