<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Evan Quan <evan.quan@amd.com><br>
<b>Sent:</b> Friday, August 31, 2018 3:50:30 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Deucher, Alexander; Quan, Evan; Zhu, Rex<br>
<b>Subject:</b> [PATCH] drm/amd/powerplay: added vega20 overdrive support V3</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Added vega20 overdrive support based on existing OD sysfs<br>
APIs. However, the OD logics are simplified on vega20. So,<br>
the behavior will be a little different and works only on<br>
some limited levels.<br>
<br>
V2: fix typo<br>
    fix commit description<br>
    revise error logs<br>
    add support for clock OD<br>
<br>
V3: separate clock from voltage OD settings<br>
<br>
Change-Id: I403cb38a95863db664cf06d030ac42a19bff6b33<br>
Signed-off-by: Evan Quan <evan.quan@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c        |  45 +++<br>
 .../gpu/drm/amd/include/kgd_pp_interface.h    |   2 +<br>
 .../drm/amd/powerplay/hwmgr/vega20_hwmgr.c    | 289 +++++++++++++++++-<br>
 3 files changed, 335 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c<br>
index e2577518b9c6..262c0ffc9d5d 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c<br>
@@ -474,6 +474,8 @@ static ssize_t amdgpu_set_pp_table(struct device *dev,<br>
  * in each power level within a power state.  The pp_od_clk_voltage is used for<br>
  * this.<br>
  *<br>
+ * < For Vega10 and previous ASICs ><br>
+ *<br>
  * Reading the file will display:<br>
  *<br>
  * - a list of engine clock levels and voltages labeled OD_SCLK<br>
@@ -491,6 +493,44 @@ static ssize_t amdgpu_set_pp_table(struct device *dev,<br>
  * "c" (commit) to the file to commit your changes.  If you want to reset to the<br>
  * default power levels, write "r" (reset) to the file to reset them.<br>
  *<br>
+ *<br>
+ * < For Vega20 ><br>
+ *<br>
+ * Reading the file will display:<br>
+ *<br>
+ * - minimum and maximum engine clock labeled OD_SCLK<br>
+ *<br>
+ * - maximum memory clock labeled OD_MCLK<br>
+ *<br>
+ * - three <frequency, voltage offset> points labeled OD_VDDC_CURVE.<br>
+ *   They can be used to calibrate the sclk voltage curve.<br>
+ *<br>
+ * - a list of valid ranges for sclk, mclk, and voltage curve points<br>
+ *   labeled OD_RANGE<br>
+ *<br>
+ * To manually adjust these settings:<br>
+ *<br>
+ * - First select manual using power_dpm_force_performance_level<br>
+ *<br>
+ * - For clock frequency setting, enter a new value by writing a<br>
+ *   string that contains "s/m index clock" to the file. The index<br>
+ *   should be 0 if to set minimum clock. And 1 if to set maximum<br>
+ *   clock. E.g., "s 0 500" will update minimum sclk to be 500 MHz.<br>
+ *   "m 1 800" will update maximum mclk to be 800Mhz.<br>
+ *<br>
+ *   For sclk voltage curve, enter the new values by writing a<br>
+ *   string that contains "vc point clock voff" to the file. The<br>
+ *   points are indexed by 0, 1 and 2. E.g., "vc 0 300 10" will<br>
+ *   update point1 with clock set as 300Mhz and voltage increased<br>
+ *   by 10mV. "vc 2 1000 -10" will update point3 with clock set<br>
+ *   as 1000Mhz and voltage drop by 10mV.<br>
+ *<br>
+ * - When you have edited all of the states as needed, write "c" (commit)<br>
+ *   to the file to commit your changes<br>
+ *<br>
+ * - If you want to reset to the default power levels, write "r" (reset)<br>
+ *   to the file to reset them<br>
+ *<br>
  */<br>
 <br>
 static ssize_t amdgpu_set_pp_od_clk_voltage(struct device *dev,<br>
@@ -520,6 +560,8 @@ static ssize_t amdgpu_set_pp_od_clk_voltage(struct device *dev,<br>
                 type = PP_OD_RESTORE_DEFAULT_TABLE;<br>
         else if (*buf == 'c')<br>
                 type = PP_OD_COMMIT_DPM_TABLE;<br>
+       else if (!strncmp(buf, "vc", 2))<br>
+               type = PP_OD_EDIT_VDDC_CURVE;<br>
         else<br>
                 return -EINVAL;<br>
 <br>
@@ -527,6 +569,8 @@ static ssize_t amdgpu_set_pp_od_clk_voltage(struct device *dev,<br>
 <br>
         tmp_str = buf_cpy;<br>
 <br>
+       if (type == PP_OD_EDIT_VDDC_CURVE)<br>
+               tmp_str++;<br>
         while (isspace(*++tmp_str));<br>
 <br>
         while (tmp_str[0]) {<br>
@@ -570,6 +614,7 @@ static ssize_t amdgpu_get_pp_od_clk_voltage(struct device *dev,<br>
         if (adev->powerplay.pp_funcs->print_clock_levels) {<br>
                 size = amdgpu_dpm_print_clock_levels(adev, OD_SCLK, buf);<br>
                 size += amdgpu_dpm_print_clock_levels(adev, OD_MCLK, buf+size);<br>
+               size += amdgpu_dpm_print_clock_levels(adev, OD_VDDC_CURVE, buf+size);<br>
                 size += amdgpu_dpm_print_clock_levels(adev, OD_RANGE, buf+size);<br>
                 return size;<br>
         } else {<br>
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
index e23746ba53bf..92780f3fb0b3 100644<br>
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
@@ -94,6 +94,7 @@ enum pp_clock_type {<br>
         PP_PCIE,<br>
         OD_SCLK,<br>
         OD_MCLK,<br>
+       OD_VDDC_CURVE,<br>
         OD_RANGE,<br>
 };<br>
 <br>
@@ -141,6 +142,7 @@ enum {<br>
 enum PP_OD_DPM_TABLE_COMMAND {<br>
         PP_OD_EDIT_SCLK_VDDC_TABLE,<br>
         PP_OD_EDIT_MCLK_VDDC_TABLE,<br>
+       PP_OD_EDIT_VDDC_CURVE,<br>
         PP_OD_RESTORE_DEFAULT_TABLE,<br>
         PP_OD_COMMIT_DPM_TABLE<br>
 };<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
index ececa2f7fe5f..546a6170a220 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c<br>
@@ -2506,11 +2506,207 @@ static int vega20_set_watermarks_for_clocks_ranges(struct pp_hwmgr *hwmgr,<br>
         return 0;<br>
 }<br>
 <br>
+static int vega20_odn_edit_dpm_table(struct pp_hwmgr *hwmgr,<br>
+                                       enum PP_OD_DPM_TABLE_COMMAND type,<br>
+                                       long *input, uint32_t size)<br>
+{<br>
+       struct vega20_hwmgr *data =<br>
+                       (struct vega20_hwmgr *)(hwmgr->backend);<br>
+       struct vega20_od8_single_setting *od8_settings =<br>
+                       data->od8_settings.od8_settings_array;<br>
+       OverDriveTable_t *od_table =<br>
+                       &(data->smc_state_table.overdrive_table);<br>
+       struct pp_clock_levels_with_latency clocks;<br>
+       int32_t input_index, input_clk, input_vol, i;<br>
+       int ret;<br>
+<br>
+       PP_ASSERT_WITH_CODE(input, "NULL user input for clock and voltage",<br>
+                               return -EINVAL);<br>
+<br>
+       switch (type) {<br>
+       case PP_OD_EDIT_SCLK_VDDC_TABLE:<br>
+               if (!(od8_settings[OD8_SETTING_GFXCLK_FMIN].feature_id &&<br>
+                     od8_settings[OD8_SETTING_GFXCLK_FMAX].feature_id)) {<br>
+                       pr_info("Sclk min/max frequency overdrive not supported\n");<br>
+                       return -EOPNOTSUPP;<br>
+               }<br>
+<br>
+               for (i = 0; i < size; i += 2) {<br>
+                       if (i + 2 > size) {<br>
+                               pr_info("invalid number of input parameters %d\n",<br>
+                                       size);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       input_index = input[i];<br>
+                       input_clk = input[i + 1];<br>
+<br>
+                       if (input_index != 0 && input_index != 1) {<br>
+                               pr_info("Invalid index %d\n", input_index);<br>
+                               pr_info("Support min/max sclk frequency setting only which index by 0/1\n");<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       if (input_clk < od8_settings[OD8_SETTING_GFXCLK_FMIN].min_value ||<br>
+                           input_clk > od8_settings[OD8_SETTING_GFXCLK_FMAX].max_value) {<br>
+                               pr_info("clock freq %d is not within allowed range [%d - %d]\n",<br>
+                                       input_clk,<br>
+                                       od8_settings[OD8_SETTING_GFXCLK_FMIN].min_value,<br>
+                                       od8_settings[OD8_SETTING_GFXCLK_FMAX].max_value);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       if (input_index == 0)<br>
+                               od_table->GfxclkFmin = input_clk;<br>
+                       else<br>
+                               od_table->GfxclkFmax = input_clk;<br>
+               }<br>
+<br>
+               break;<br>
+<br>
+       case PP_OD_EDIT_MCLK_VDDC_TABLE:<br>
+               if (!od8_settings[OD8_SETTING_UCLK_FMAX].feature_id) {<br>
+                       pr_info("Mclk max frequency overdrive not supported\n");<br>
+                       return -EOPNOTSUPP;<br>
+               }<br>
+<br>
+               ret = vega20_get_memclocks(hwmgr, &clocks);<br>
+               PP_ASSERT_WITH_CODE(!ret,<br>
+                               "Attempt to get memory clk levels failed!",<br>
+                               return ret);<br>
+<br>
+               for (i = 0; i < size; i += 2) {<br>
+                       if (i + 2 > size) {<br>
+                               pr_info("invalid number of input parameters %d\n",<br>
+                                       size);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       input_index = input[i];<br>
+                       input_clk = input[i + 1];<br>
+<br>
+                       if (input_index != 1) {<br>
+                               pr_info("Invalid index %d\n", input_index);<br>
+                               pr_info("Support max Mclk frequency setting only which index by 1\n");<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       if (input_clk < clocks.data[0].clocks_in_khz / 100 ||<br>
+                           input_clk > od8_settings[OD8_SETTING_UCLK_FMAX].max_value) {<br>
+                               pr_info("clock freq %d is not within allowed range [%d - %d]\n",<br>
+                                       input_clk,<br>
+                                       clocks.data[0].clocks_in_khz / 100,<br>
+                                       od8_settings[OD8_SETTING_UCLK_FMAX].max_value);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       od_table->UclkFmax = input_clk;<br>
+               }<br>
+<br>
+               break;<br>
+<br>
+       case PP_OD_EDIT_VDDC_CURVE:<br>
+               if (!(od8_settings[OD8_SETTING_GFXCLK_FREQ1].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FREQ2].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FREQ3].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE2].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE3].feature_id)) {<br>
+                       pr_info("Voltage curve calibrate not supported\n");<br>
+                       return -EOPNOTSUPP;<br>
+               }<br>
+<br>
+               for (i = 0; i < size; i += 3) {<br>
+                       if (i + 3 > size) {<br>
+                               pr_info("invalid number of input parameters %d\n",<br>
+                                       size);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       input_index = input[i];<br>
+                       input_clk = input[i + 1];<br>
+                       input_vol = input[i + 2];<br>
+<br>
+                       if (input_index > 2) {<br>
+                               pr_info("Setting for point %d is not supported\n",<br>
+                                               input_index + 1);<br>
+                               pr_info("Three supported points index by 0, 1, 2\n");<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       if (input_clk < od8_settings[OD8_SETTING_GFXCLK_FMIN].min_value ||<br>
+                           input_clk > od8_settings[OD8_SETTING_GFXCLK_FMAX].max_value) {<br>
+                               pr_info("clock freq %d is not within allowed range [%d - %d]\n",<br>
+                                       input_clk,<br>
+                                       od8_settings[OD8_SETTING_GFXCLK_FMIN].min_value,<br>
+                                       od8_settings[OD8_SETTING_GFXCLK_FMAX].max_value);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       /* TODO: suppose voltage1/2/3 has the same min/max value */<br>
+                       if (input_vol < od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].min_value ||<br>
+                           input_vol > od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].max_value) {<br>
+                               pr_info("clock voltage offset %d is not within allowed range [%d - %d]\n",<br>
+                                       input_vol,<br>
+                                       od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].min_value,<br>
+                                       od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].max_value);<br>
+                               return -EINVAL;<br>
+                       }<br>
+<br>
+                       switch (input_index) {<br>
+                       case 0:<br>
+                               od_table->GfxclkFreq1 = input_clk;<br>
+                               od_table->GfxclkOffsetVolt1 = input_vol;<br>
+                               break;<br>
+                       case 1:<br>
+                               od_table->GfxclkFreq2 = input_clk;<br>
+                               od_table->GfxclkOffsetVolt2 = input_vol;<br>
+                               break;<br>
+                       case 2:<br>
+                               od_table->GfxclkFreq3 = input_clk;<br>
+                               od_table->GfxclkOffsetVolt3 = input_vol;<br>
+                               break;<br>
+                       }<br>
+               }<br>
+               break;<br>
+<br>
+       case PP_OD_RESTORE_DEFAULT_TABLE:<br>
+               ret = vega20_copy_table_from_smc(hwmgr,<br>
+                               (uint8_t *)od_table,<br>
+                               TABLE_OVERDRIVE);<br>
+               PP_ASSERT_WITH_CODE(!ret,<br>
+                               "Failed to export overdrive table!",<br>
+                               return ret);<br>
+               break;<br>
+<br>
+       case PP_OD_COMMIT_DPM_TABLE:<br>
+               ret = vega20_copy_table_to_smc(hwmgr,<br>
+                               (uint8_t *)od_table,<br>
+                               TABLE_OVERDRIVE);<br>
+               PP_ASSERT_WITH_CODE(!ret,<br>
+                               "Failed to import overdrive table!",<br>
+                               return ret);<br>
+<br>
+               break;<br>
+<br>
+       default:<br>
+               return -EINVAL;<br>
+       }<br>
+<br>
+       return 0;<br>
+}<br>
+<br>
 static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
                 enum pp_clock_type type, char *buf)<br>
 {<br>
-       int i, now, size = 0;<br>
+       struct vega20_hwmgr *data =<br>
+                       (struct vega20_hwmgr *)(hwmgr->backend);<br>
+       struct vega20_od8_single_setting *od8_settings =<br>
+                       data->od8_settings.od8_settings_array;<br>
+       OverDriveTable_t *od_table =<br>
+                       &(data->smc_state_table.overdrive_table);<br>
         struct pp_clock_levels_with_latency clocks;<br>
+       int i, now, size = 0;<br>
         int ret = 0;<br>
 <br>
         switch (type) {<br>
@@ -2551,6 +2747,95 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,<br>
         case PP_PCIE:<br>
                 break;<br>
 <br>
+       case OD_SCLK:<br>
+               if (od8_settings[OD8_SETTING_GFXCLK_FMIN].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FMAX].feature_id) {<br>
+                       size = sprintf(buf, "%s:\n", "OD_SCLK");<br>
+                       size += sprintf(buf + size, "0: %10uMhz\n",<br>
+                               od_table->GfxclkFmin);<br>
+                       size += sprintf(buf + size, "1: %10uMhz\n",<br>
+                               od_table->GfxclkFmax);<br>
+               }<br>
+               break;<br>
+<br>
+       case OD_MCLK:<br>
+               if (od8_settings[OD8_SETTING_UCLK_FMAX].feature_id) {<br>
+                       size = sprintf(buf, "%s:\n", "OD_MCLK");<br>
+                       size += sprintf(buf + size, "1: %10uMhz\n",<br>
+                               od_table->UclkFmax);<br>
+               }<br>
+<br>
+               break;<br>
+<br>
+       case OD_VDDC_CURVE:<br>
+               if (od8_settings[OD8_SETTING_GFXCLK_FREQ1].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FREQ2].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FREQ3].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE2].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE3].feature_id) {<br>
+                       size = sprintf(buf, "%s:\n", "OD_VDDC_CURVE");<br>
+                       size += sprintf(buf + size, "0: %10uMhz %10dmV\n",<br>
+                               od_table->GfxclkFreq1,<br>
+                               od_table->GfxclkOffsetVolt1);<br>
+                       size += sprintf(buf + size, "1: %10uMhz %10dmV\n",<br>
+                               od_table->GfxclkFreq2,<br>
+                               od_table->GfxclkOffsetVolt2);<br>
+                       size += sprintf(buf + size, "2: %10uMhz %10dmV\n",<br>
+                               od_table->GfxclkFreq3,<br>
+                               od_table->GfxclkOffsetVolt3);<br>
+               }<br>
+<br>
+               break;<br>
+<br>
+       case OD_RANGE:<br>
+               size = sprintf(buf, "%s:\n", "OD_RANGE");<br>
+<br>
+               if (od8_settings[OD8_SETTING_GFXCLK_FMIN].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FMAX].feature_id) {<br>
+                       size += sprintf(buf + size, "SCLK: %7uMhz %10uMhz\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FMIN].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FMAX].max_value);<br>
+               }<br>
+<br>
+               if (od8_settings[OD8_SETTING_UCLK_FMAX].feature_id) {<br>
+                       ret = vega20_get_memclocks(hwmgr, &clocks);<br>
+                       PP_ASSERT_WITH_CODE(!ret,<br>
+                                       "Fail to get memory clk levels!",<br>
+                                       return ret);<br>
+<br>
+                       size += sprintf(buf + size, "MCLK: %7uMhz %10uMhz\n",<br>
+                               clocks.data[0].clocks_in_khz / 100,<br>
+                               od8_settings[OD8_SETTING_UCLK_FMAX].max_value);<br>
+               }<br>
+<br>
+               if (od8_settings[OD8_SETTING_GFXCLK_FREQ1].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FREQ2].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_FREQ3].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE2].feature_id &&<br>
+                   od8_settings[OD8_SETTING_GFXCLK_VOLTAGE3].feature_id) {<br>
+                       size += sprintf(buf + size, "VDDC_CURVE_SCLK[0]: %7uMhz %10uMhz\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FREQ1].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FREQ1].max_value);<br>
+                       size += sprintf(buf + size, "VDDC_CURVE_VOFF[0]: %7dmV %11dmV\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_VOLTAGE1].max_value);<br>
+                       size += sprintf(buf + size, "VDDC_CURVE_SCLK[1]: %7uMhz %10uMhz\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FREQ2].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FREQ2].max_value);<br>
+                       size += sprintf(buf + size, "VDDC_CURVE_VOFF[1]: %7dmV %11dmV\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_VOLTAGE2].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_VOLTAGE2].max_value);<br>
+                       size += sprintf(buf + size, "VDDC_CURVE_SCLK[2]: %7uMhz %10uMhz\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FREQ3].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_FREQ3].max_value);<br>
+                       size += sprintf(buf + size, "VDDC_CURVE_VOFF[2]: %7dmV %11dmV\n",<br>
+                               od8_settings[OD8_SETTING_GFXCLK_VOLTAGE3].min_value,<br>
+                               od8_settings[OD8_SETTING_GFXCLK_VOLTAGE3].max_value);<br>
+               }<br>
+<br>
+               break;<br>
         default:<br>
                 break;<br>
         }<br>
@@ -3162,6 +3447,8 @@ static const struct pp_hwmgr_func vega20_hwmgr_funcs = {<br>
                 vega20_get_mclk_od,<br>
         .set_mclk_od =<br>
                 vega20_set_mclk_od,<br>
+       .odn_edit_dpm_table =<br>
+               vega20_odn_edit_dpm_table,<br>
         /* for sysfs to retrive/set gfxclk/memclk */<br>
         .force_clock_level =<br>
                 vega20_force_clock_level,<br>
-- <br>
2.18.0<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</body>
</html>