aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2301-drm-amd-powerplay-fix-the-incorrect-type-of-pptable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2301-drm-amd-powerplay-fix-the-incorrect-type-of-pptable.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2301-drm-amd-powerplay-fix-the-incorrect-type-of-pptable.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2301-drm-amd-powerplay-fix-the-incorrect-type-of-pptable.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2301-drm-amd-powerplay-fix-the-incorrect-type-of-pptable.patch
new file mode 100644
index 00000000..f15cf7f4
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2301-drm-amd-powerplay-fix-the-incorrect-type-of-pptable.patch
@@ -0,0 +1,33 @@
+From ecc826b2fea075dc8323a3202cd2a370f66fdc41 Mon Sep 17 00:00:00 2001
+From: Kenneth Feng <Kenneth.Feng@amd.com>
+Date: Thu, 4 Apr 2019 12:50:23 +0800
+Subject: [PATCH 2301/2940] drm/amd/powerplay: fix the incorrect type of
+ pptable
+
+This patch is to fix the incorrect type of pptable, otherwise, the data will be
+totally wrong in parsing phase.
+
+Signed-off-by: Kenneth Feng <Kenneth.Feng@amd.com>
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h b/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h
+index 92c65b80bde2..86cdc3393eac 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h
+@@ -121,7 +121,7 @@ struct smu_11_0_powerplay_table
+ {
+ struct atom_common_table_header header;
+ uint8_t table_revision;
+- uint32_t table_size; //Driver portion table size. The offset to smc_pptable including header size
++ uint16_t table_size; //Driver portion table size. The offset to smc_pptable including header size
+ uint32_t golden_pp_id;
+ uint32_t golden_revision;
+ uint16_t format_id;
+--
+2.17.1
+