mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-19 20:13:49 -04:00
drm/amdgpu: fix description of vm_size module parameter (v2)
default is 8GB, not 4GB. v2: fix fallback setting when the user provides an invalid input Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -968,13 +968,13 @@ static void amdgpu_check_arguments(struct amdgpu_device *adev)
|
||||
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);
|
||||
amdgpu_vm_size = 4;
|
||||
amdgpu_vm_size = 8;
|
||||
}
|
||||
|
||||
if (amdgpu_vm_size < 1) {
|
||||
dev_warn(adev->dev, "VM size (%d) too small, min is 1GB\n",
|
||||
amdgpu_vm_size);
|
||||
amdgpu_vm_size = 4;
|
||||
amdgpu_vm_size = 8;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -983,7 +983,7 @@ static void amdgpu_check_arguments(struct amdgpu_device *adev)
|
||||
if (amdgpu_vm_size > 1024) {
|
||||
dev_warn(adev->dev, "VM size (%d) too large, max is 1TB\n",
|
||||
amdgpu_vm_size);
|
||||
amdgpu_vm_size = 4;
|
||||
amdgpu_vm_size = 8;
|
||||
}
|
||||
|
||||
/* defines number of bits in page table versus page directory,
|
||||
|
||||
Reference in New Issue
Block a user