diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3140-drm-amdgpu-powerplay-use-proper-revision-id-for-navi.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3140-drm-amdgpu-powerplay-use-proper-revision-id-for-navi.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3140-drm-amdgpu-powerplay-use-proper-revision-id-for-navi.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3140-drm-amdgpu-powerplay-use-proper-revision-id-for-navi.patch new file mode 100644 index 00000000..92792a83 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3140-drm-amdgpu-powerplay-use-proper-revision-id-for-navi.patch @@ -0,0 +1,32 @@ +From feaacc6c67264e005e2ed8673c7941e9fd3e684b Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Thu, 25 Jul 2019 22:28:58 -0500 +Subject: [PATCH 3140/4256] drm/amdgpu/powerplay: use proper revision id for + navi + +The PCI revision id determines the sku. + +Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> +Reviewed-by: Kevin Wang <kevin1.wang@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c +index c873228bf05f..dbac24e44174 100644 +--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c ++++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c +@@ -1592,7 +1592,7 @@ static int navi10_set_peak_clock_by_device(struct smu_context *smu) + uint32_t sclk_freq = 0, uclk_freq = 0; + uint32_t uclk_level = 0; + +- switch (adev->rev_id) { ++ switch (adev->pdev->revision) { + case 0xf0: /* XTX */ + case 0xc0: + sclk_freq = NAVI10_PEAK_SCLK_XTX; +-- +2.17.1 + |