aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2350-drm-amd-powerplay-Rename-WM_COUNT-to-avoid-redeclara.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2350-drm-amd-powerplay-Rename-WM_COUNT-to-avoid-redeclara.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2350-drm-amd-powerplay-Rename-WM_COUNT-to-avoid-redeclara.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2350-drm-amd-powerplay-Rename-WM_COUNT-to-avoid-redeclara.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2350-drm-amd-powerplay-Rename-WM_COUNT-to-avoid-redeclara.patch
new file mode 100644
index 00000000..e715286e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2350-drm-amd-powerplay-Rename-WM_COUNT-to-avoid-redeclara.patch
@@ -0,0 +1,56 @@
+From 42908264ed81c2fb4bfbba0a1296a941d51afd9e Mon Sep 17 00:00:00 2001
+From: "Le.Ma" <Le.Ma@amd.com>
+Date: Tue, 24 Oct 2017 10:30:28 +0800
+Subject: [PATCH 2350/4131] drm/amd/powerplay: Rename WM_COUNT to avoid
+ redeclaration for dkms build
+
+Another declaration is defined in dm_pp_smu.h.
+
+Change-Id: I4bd9584a2121cdd5ff5547caddc646b07e27af31
+Signed-off-by: Le.Ma <Le.Ma@amd.com>
+Reviewed-by: Xiaojie Yuan <Xiaojie.Yuan@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/inc/smu10_driver_if.h | 4 ++--
+ drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu10_driver_if.h b/drivers/gpu/drm/amd/powerplay/inc/smu10_driver_if.h
+index dea8fe9..1c04cf6 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/smu10_driver_if.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/smu10_driver_if.h
+@@ -62,11 +62,11 @@ typedef struct {
+ typedef enum {
+ WM_SOCCLK = 0,
+ WM_DCFCLK,
+- WM_COUNT,
++ WM_COUNT_PP,
+ } WM_CLOCK_e;
+
+ typedef struct {
+- WatermarkRowGeneric_t WatermarkRow[WM_COUNT][NUM_WM_RANGES];
++ WatermarkRowGeneric_t WatermarkRow[WM_COUNT_PP][NUM_WM_RANGES];
+ uint32_t MmHubPadding[7];
+ } Watermarks_t;
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h b/drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h
+index 2818c98..0255184 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/smu9_driver_if.h
+@@ -339,12 +339,12 @@ typedef struct {
+ typedef enum {
+ WM_SOCCLK = 0,
+ WM_DCEFCLK,
+- WM_COUNT,
++ WM_COUNT_PP,
+ } WM_CLOCK_e;
+
+ typedef struct {
+ /* Watermarks */
+- WatermarkRowGeneric_t WatermarkRow[WM_COUNT][NUM_WM_RANGES];
++ WatermarkRowGeneric_t WatermarkRow[WM_COUNT_PP][NUM_WM_RANGES];
+
+ uint32_t MmHubPadding[7]; /* SMU internal use */
+ } Watermarks_t;
+--
+2.7.4
+