diff options
author | Christian König <christian.koenig@amd.com> | 2018-08-15 08:04:47 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-08-27 12:11:02 -0400 |
commit | 09b6f25b55d9c66af7302e1f09ad90aa5b1dfbcb (patch) | |
tree | 86db9088da98b92b07d52d8ea074098e0e783cd9 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
parent | fdd34271a321e20358ba8825c59d367e75f313fa (diff) |
drm/amdgpu: fix VM size reporting on Raven
Raven doesn't have an VCE block and so also no buggy VCE firmware.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c index a1043b421e3e..0c5d59b89849 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |||
@@ -619,7 +619,8 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file | |||
619 | vm_size -= AMDGPU_VA_RESERVED_SIZE; | 619 | vm_size -= AMDGPU_VA_RESERVED_SIZE; |
620 | 620 | ||
621 | /* Older VCE FW versions are buggy and can handle only 40bits */ | 621 | /* Older VCE FW versions are buggy and can handle only 40bits */ |
622 | if (adev->vce.fw_version < AMDGPU_VCE_FW_53_45) | 622 | if (adev->vce.fw_version && |
623 | adev->vce.fw_version < AMDGPU_VCE_FW_53_45) | ||
623 | vm_size = min(vm_size, 1ULL << 40); | 624 | vm_size = min(vm_size, 1ULL << 40); |
624 | 625 | ||
625 | dev_info.virtual_address_offset = AMDGPU_VA_RESERVED_SIZE; | 626 | dev_info.virtual_address_offset = AMDGPU_VA_RESERVED_SIZE; |