<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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"><span>Reviewed-by: Evan Quan <evan.quan@amd.com></span><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>发件人:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> 代表 Rex Zhu <Rex.Zhu@amd.com><br>
<b>发送时间:</b> 2018年4月13日 16:19:14<br>
<b>收件人:</b> amd-gfx@lists.freedesktop.org<br>
<b>抄送:</b> Zhu, Rex<br>
<b>主题:</b> [PATCH 2/2] drm/amd/pp: Remove dead interface</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Signed-off-by: Rex Zhu <Rex.Zhu@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h        |  6 ------<br>
 drivers/gpu/drm/amd/include/kgd_pp_interface.h |  5 -----<br>
 drivers/gpu/drm/amd/powerplay/amd_powerplay.c  | 30 --------------------------<br>
 3 files changed, 41 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h<br>
index 19d8bf5..354c6dc 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h<br>
@@ -349,12 +349,6 @@ enum amdgpu_pcie_gen {<br>
                 ((adev)->powerplay.pp_funcs->set_clockgating_by_smu(\<br>
                         (adev)->powerplay.pp_handle, msg_id))<br>
 <br>
-#define amdgpu_dpm_notify_smu_memory_info(adev, virtual_addr_low, \<br>
-                       virtual_addr_hi, mc_addr_low, mc_addr_hi, size) \<br>
-               ((adev)->powerplay.pp_funcs->notify_smu_memory_info)( \<br>
-                       (adev)->powerplay.pp_handle, virtual_addr_low, \<br>
-                       virtual_addr_hi, mc_addr_low, mc_addr_hi, size)<br>
-<br>
 #define amdgpu_dpm_get_power_profile_mode(adev, buf) \<br>
                 ((adev)->powerplay.pp_funcs->get_power_profile_mode(\<br>
                         (adev)->powerplay.pp_handle, buf))<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 1bec907..01969b1 100644<br>
--- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
+++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h<br>
@@ -239,11 +239,6 @@ struct amd_pm_funcs {<br>
         int (*load_firmware)(void *handle);<br>
         int (*wait_for_fw_loading_complete)(void *handle);<br>
         int (*set_clockgating_by_smu)(void *handle, uint32_t msg_id);<br>
-       int (*notify_smu_memory_info)(void *handle, uint32_t virtual_addr_low,<br>
-                                       uint32_t virtual_addr_hi,<br>
-                                       uint32_t mc_addr_low,<br>
-                                       uint32_t mc_addr_hi,<br>
-                                       uint32_t size);<br>
         int (*set_power_limit)(void *handle, uint32_t n);<br>
         int (*get_power_limit)(void *handle, uint32_t *limit, bool default_limit);<br>
 /* export to DC */<br>
diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c<br>
index 0cdfa41..b1e916f 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c<br>
@@ -935,35 +935,6 @@ static int pp_dpm_switch_power_profile(void *handle,<br>
         return 0;<br>
 }<br>
 <br>
-static int pp_dpm_notify_smu_memory_info(void *handle,<br>
-                                       uint32_t virtual_addr_low,<br>
-                                       uint32_t virtual_addr_hi,<br>
-                                       uint32_t mc_addr_low,<br>
-                                       uint32_t mc_addr_hi,<br>
-                                       uint32_t size)<br>
-{<br>
-       struct pp_hwmgr *hwmgr = handle;<br>
-       int ret = 0;<br>
-<br>
-       if (!hwmgr || !hwmgr->pm_en)<br>
-               return -EINVAL;<br>
-<br>
-       if (hwmgr->hwmgr_func->notify_cac_buffer_info == NULL) {<br>
-               pr_info("%s was not implemented.\n", __func__);<br>
-               return -EINVAL;<br>
-       }<br>
-<br>
-       mutex_lock(&hwmgr->smu_lock);<br>
-<br>
-       ret = hwmgr->hwmgr_func->notify_cac_buffer_info(hwmgr, virtual_addr_low,<br>
-                                       virtual_addr_hi, mc_addr_low, mc_addr_hi,<br>
-                                       size);<br>
-<br>
-       mutex_unlock(&hwmgr->smu_lock);<br>
-<br>
-       return ret;<br>
-}<br>
-<br>
 static int pp_set_power_limit(void *handle, uint32_t limit)<br>
 {<br>
         struct pp_hwmgr *hwmgr = handle;<br>
@@ -1230,7 +1201,6 @@ static int pp_set_mmhub_powergating_by_smu(void *handle)<br>
         .get_vce_clock_state = pp_dpm_get_vce_clock_state,<br>
         .switch_power_profile = pp_dpm_switch_power_profile,<br>
         .set_clockgating_by_smu = pp_set_clockgating_by_smu,<br>
-       .notify_smu_memory_info = pp_dpm_notify_smu_memory_info,<br>
         .get_power_profile_mode = pp_get_power_profile_mode,<br>
         .set_power_profile_mode = pp_set_power_profile_mode,<br>
         .odn_edit_dpm_table = pp_odn_edit_dpm_table,<br>
-- <br>
1.9.1<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>