aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0386-drm-amd-powerplay-use-pp_endian.h-for-Tonga.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0386-drm-amd-powerplay-use-pp_endian.h-for-Tonga.patch')
-rw-r--r--common/recipes-kernel/linux/files/0386-drm-amd-powerplay-use-pp_endian.h-for-Tonga.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0386-drm-amd-powerplay-use-pp_endian.h-for-Tonga.patch b/common/recipes-kernel/linux/files/0386-drm-amd-powerplay-use-pp_endian.h-for-Tonga.patch
new file mode 100644
index 00000000..5c47c4d2
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0386-drm-amd-powerplay-use-pp_endian.h-for-Tonga.patch
@@ -0,0 +1,50 @@
+From 28a97bd5b656923b1bf9959872620ae7a612908d Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 6 Jan 2016 13:02:10 -0500
+Subject: [PATCH 0386/1110] drm/amd/powerplay: use pp_endian.h for Tonga
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Drop local versions of these macros.
+
+Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
+Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h | 12 +-----------
+ 1 file changed, 1 insertion(+), 11 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h
+index 49168d2..f88d3bb 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h
+@@ -28,6 +28,7 @@
+ #include "ppatomctrl.h"
+ #include "ppinterrupt.h"
+ #include "tonga_powertune.h"
++#include "pp_endian.h"
+
+ #define TONGA_MAX_HARDWARE_POWERLEVELS 2
+ #define TONGA_DYNCLK_NUMBER_OF_TREND_COEFFICIENTS 15
+@@ -386,17 +387,6 @@ typedef struct tonga_hwmgr tonga_hwmgr;
+
+ #define TONGA_UNUSED_GPIO_PIN 0x7F
+
+-#define PP_HOST_TO_SMC_UL(X) cpu_to_be32(X)
+-#define PP_SMC_TO_HOST_UL(X) be32_to_cpu(X)
+-
+-#define PP_HOST_TO_SMC_US(X) cpu_to_be16(X)
+-#define PP_SMC_TO_HOST_US(X) be16_to_cpu(X)
+-
+-#define CONVERT_FROM_HOST_TO_SMC_UL(X) ((X) = PP_HOST_TO_SMC_UL(X))
+-#define CONVERT_FROM_SMC_TO_HOST_UL(X) ((X) = PP_SMC_TO_HOST_UL(X))
+-
+-#define CONVERT_FROM_HOST_TO_SMC_US(X) ((X) = PP_HOST_TO_SMC_US(X))
+-
+ int tonga_hwmgr_init(struct pp_hwmgr *hwmgr);
+ int tonga_update_vce_dpm(struct pp_hwmgr *hwmgr, const void *input);
+ int tonga_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate);
+--
+2.7.4
+