projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdd3427
)
drm/amdgpu: fix VM size reporting on Raven
author
Christian König
<
[email protected]
>
Wed, 15 Aug 2018 12:04:47 +0000
(14:04 +0200)
committer
Alex Deucher
<
[email protected]
>
Mon, 27 Aug 2018 16:11:02 +0000
(11:11 -0500)
Raven doesn't have an VCE block and so also no buggy VCE firmware.
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Reviewed-by: Huang Rui <
[email protected]
>
Acked-by: Chunming Zhou <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index a1043b421e3e2decca9b159b1b464f1c84d74af1..0c5d59b89849934521f320353885642c67261860 100644
(file)
--- 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
vm_size -= AMDGPU_VA_RESERVED_SIZE;
/* Older VCE FW versions are buggy and can handle only 40bits */
- if (adev->vce.fw_version < AMDGPU_VCE_FW_53_45)
+ if (adev->vce.fw_version &&
+ adev->vce.fw_version < AMDGPU_VCE_FW_53_45)
vm_size = min(vm_size, 1ULL << 40);
dev_info.virtual_address_offset = AMDGPU_VA_RESERVED_SIZE;