diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0157-drm-amdgpu-fix-VM-size-reporting-on-Raven.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0157-drm-amdgpu-fix-VM-size-reporting-on-Raven.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0157-drm-amdgpu-fix-VM-size-reporting-on-Raven.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0157-drm-amdgpu-fix-VM-size-reporting-on-Raven.patch new file mode 100644 index 00000000..12ceeb86 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0157-drm-amdgpu-fix-VM-size-reporting-on-Raven.patch @@ -0,0 +1,36 @@ +From 6d6d00c044d8b06fe2e60bee35c1a8dd65ff5768 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Wed, 15 Aug 2018 14:04:47 +0200 +Subject: [PATCH 0157/2940] drm/amdgpu: fix VM size reporting on Raven +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +index 4b97d47252a2..d641798316f6 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +@@ -663,7 +663,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 + |