diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2017-06-15 18:20:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-16 16:58:00 -0400 |
commit | 64dab074fe5e8852b0c981564dc146f39535a81a (patch) | |
tree | b6a1880bab7c3cd31f61a719664fd513cbe71ec6 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 925344ccc91d7a7fd84cab2dece1c34bbd86fd8c (diff) |
drm/amdgpu: don't check the default value for vm size
Avoids printing spurious messages like this:
[ 3.102059] amdgpu 0000:01:00.0: VM size (-1) must be a power of 2
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 875cde414be7..b2c960b2ea82 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -1073,6 +1073,10 @@ def_value: | |||
1073 | 1073 | ||
1074 | static void amdgpu_check_vm_size(struct amdgpu_device *adev) | 1074 | static void amdgpu_check_vm_size(struct amdgpu_device *adev) |
1075 | { | 1075 | { |
1076 | /* no need to check the default value */ | ||
1077 | if (amdgpu_vm_size == -1) | ||
1078 | return; | ||
1079 | |||
1076 | if (!amdgpu_check_pot_argument(amdgpu_vm_size)) { | 1080 | if (!amdgpu_check_pot_argument(amdgpu_vm_size)) { |
1077 | dev_warn(adev->dev, "VM size (%d) must be a power of 2\n", | 1081 | dev_warn(adev->dev, "VM size (%d) must be a power of 2\n", |
1078 | amdgpu_vm_size); | 1082 | amdgpu_vm_size); |