diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/5280-drm-amdgpu-set-external-rev-id-for-raven2.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/5280-drm-amdgpu-set-external-rev-id-for-raven2.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/5280-drm-amdgpu-set-external-rev-id-for-raven2.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/5280-drm-amdgpu-set-external-rev-id-for-raven2.patch new file mode 100644 index 00000000..7c4b29d9 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/5280-drm-amdgpu-set-external-rev-id-for-raven2.patch @@ -0,0 +1,33 @@ +From c633b6f43155abaaef927d2027ed2f4fdc6d1059 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Fri, 15 Jun 2018 17:28:44 -0500 +Subject: [PATCH 5280/5725] drm/amdgpu: set external rev id for raven2 + +It's different from raven1. + +Signed-off-by: Huang Rui <ray.huang@amd.com> +Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c +index 794cfe4..0a93560 100644 +--- a/drivers/gpu/drm/amd/amdgpu/soc15.c ++++ b/drivers/gpu/drm/amd/amdgpu/soc15.c +@@ -742,7 +742,10 @@ static int soc15_common_early_init(void *handle) + AMD_PG_SUPPORT_CP | + AMD_PG_SUPPORT_RLC_SMU_HS; + +- adev->external_rev_id = 0x1; ++ if (adev->rev_id >= 0x8) ++ adev->external_rev_id = adev->rev_id + 0x81; ++ else ++ adev->external_rev_id = 0x1; + break; + case CHIP_PICASSO: + adev->cg_flags = AMD_CG_SUPPORT_GFX_MGLS | +-- +2.7.4 + |