aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1919-drm-amdgpu-pp-constify-some-powerplay-tables.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1919-drm-amdgpu-pp-constify-some-powerplay-tables.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1919-drm-amdgpu-pp-constify-some-powerplay-tables.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1919-drm-amdgpu-pp-constify-some-powerplay-tables.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1919-drm-amdgpu-pp-constify-some-powerplay-tables.patch
new file mode 100644
index 00000000..20f38e41
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1919-drm-amdgpu-pp-constify-some-powerplay-tables.patch
@@ -0,0 +1,72 @@
+From 2ae996acc9bb91b4d16c31a4a3207082bee05b8e Mon Sep 17 00:00:00 2001
+From: Dave Airlie <airlied@redhat.com>
+Date: Thu, 28 Sep 2017 06:50:54 +1000
+Subject: [PATCH 1919/4131] drm/amdgpu/pp: constify some powerplay tables
+
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Dave Airlie <airlied@redhat.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c
+index b93a473..40d3d2a 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/rv_hwmgr.c
+@@ -313,37 +313,37 @@ static int rv_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,
+ }
+
+ /* temporary hardcoded clock voltage breakdown tables */
+-DpmClock_t VddDcfClk[]= {
++static const DpmClock_t VddDcfClk[]= {
+ { 300, 2600},
+ { 600, 3200},
+ { 600, 3600},
+ };
+
+-DpmClock_t VddSocClk[]= {
++static const DpmClock_t VddSocClk[]= {
+ { 478, 2600},
+ { 722, 3200},
+ { 722, 3600},
+ };
+
+-DpmClock_t VddFClk[]= {
++static const DpmClock_t VddFClk[]= {
+ { 400, 2600},
+ {1200, 3200},
+ {1200, 3600},
+ };
+
+-DpmClock_t VddDispClk[]= {
++static const DpmClock_t VddDispClk[]= {
+ { 435, 2600},
+ { 661, 3200},
+ {1086, 3600},
+ };
+
+-DpmClock_t VddDppClk[]= {
++static const DpmClock_t VddDppClk[]= {
+ { 435, 2600},
+ { 661, 3200},
+ { 661, 3600},
+ };
+
+-DpmClock_t VddPhyClk[]= {
++static const DpmClock_t VddPhyClk[]= {
+ { 540, 2600},
+ { 810, 3200},
+ { 810, 3600},
+@@ -351,7 +351,7 @@ DpmClock_t VddPhyClk[]= {
+
+ static int rv_get_clock_voltage_dependency_table(struct pp_hwmgr *hwmgr,
+ struct rv_voltage_dependency_table **pptable,
+- uint32_t num_entry, DpmClock_t *pclk_dependency_table)
++ uint32_t num_entry, const DpmClock_t *pclk_dependency_table)
+ {
+ uint32_t table_size, i;
+ struct rv_voltage_dependency_table *ptable;
+--
+2.7.4
+