drm/amdgpu: fix VM size reporting on Raven
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix VM size reporting on Raven
Raven doesn't have an VCE block and so also no buggy VCE firmware.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2 -1
@@ -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 ;
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 20180815120554.1430-1-christian.koenig-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Christian König <[email protected]>
Sent: Wednesday, August 15, 2018 8:05:54 AM
To: [email protected]
Subject: [PATCH] drm/amdgpu: fix VM size reporting on Raven
Raven doesn't have an VCE block and so also no buggy VCE firmware.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2 -1
@@ -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 ;
--
2.17.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
zhoucm1
Acked-by Chunming ZhouQuoted 3 lines · Christian König
Raven doesn't have an VCE block and so also no buggy VCE firmware.
Signed-off-by Christian König <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file · line 626
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2
-1@@ -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 ;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Huang Rui
Reviewed-byQuoted 3 lines · Christian König
Raven doesn't have an VCE block and so also no buggy VCE firmware.
Signed-off-by Christian König <[email protected]>
Quoted 25 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +2
-1@@ -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 ;Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx