<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
Series is:<br>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Rex Zhu <Rex.Zhu@amd.com><br>
<b>Sent:</b> Tuesday, March 13, 2018 6:01 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Zhu, Rex<br>
<b>Subject:</b> [PATCH 1/5] drm/amd/pp: Delete dead code on cz_clockpowergating.c</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Change-Id: Ia4a121435c4860b1703d3647ef7220ee97f52d03<br>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com><br>
---<br>
.../drm/amd/powerplay/hwmgr/cz_clockpowergating.c | 78 ----------------------<br>
.../drm/amd/powerplay/hwmgr/cz_clockpowergating.h | 3 -<br>
2 files changed, 81 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c<br>
index 416abeb..01e5612 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c<br>
@@ -25,84 +25,6 @@<br>
#include "cz_clockpowergating.h"<br>
#include "cz_ppsmc.h"<br>
<br>
-/* PhyID -> Status Mapping in DDI_PHY_GEN_STATUS<br>
- 0 GFX0L (3:0), (27:24),<br>
- 1 GFX0H (7:4), (31:28),<br>
- 2 GFX1L (3:0), (19:16),<br>
- 3 GFX1H (7:4), (23:20),<br>
- 4 DDIL (3:0), (11: 8),<br>
- 5 DDIH (7:4), (15:12),<br>
- 6 DDI2L (3:0), ( 3: 0),<br>
- 7 DDI2H (7:4), ( 7: 4),<br>
-*/<br>
-#define DDI_PHY_GEN_STATUS_VAL(phyID) (1 << ((3 - ((phyID & 0x07)/2))*8 + (phyID & 0x01)*4))<br>
-#define IS_PHY_ID_USED_BY_PLL(PhyID) (((0xF3 & (1 << PhyID)) & 0xFF) ? true : false)<br>
-<br>
-<br>
-int cz_phm_set_asic_block_gating(struct pp_hwmgr *hwmgr, enum PHM_AsicBlock block, enum PHM_ClockGateSetting gating)<br>
-{<br>
- int ret = 0;<br>
-<br>
- switch (block) {<br>
- case PHM_AsicBlock_UVD_MVC:<br>
- case PHM_AsicBlock_UVD:<br>
- case PHM_AsicBlock_UVD_HD:<br>
- case PHM_AsicBlock_UVD_SD:<br>
- if (gating == PHM_ClockGateSetting_StaticOff)<br>
- ret = cz_dpm_powerdown_uvd(hwmgr);<br>
- else<br>
- ret = cz_dpm_powerup_uvd(hwmgr);<br>
- break;<br>
- case PHM_AsicBlock_GFX:<br>
- default:<br>
- break;<br>
- }<br>
-<br>
- return ret;<br>
-}<br>
-<br>
-<br>
-bool cz_phm_is_safe_for_asic_block(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state, enum PHM_AsicBlock block)<br>
-{<br>
- return true;<br>
-}<br>
-<br>
-<br>
-int cz_phm_enable_disable_gfx_power_gating(struct pp_hwmgr *hwmgr, bool enable)<br>
-{<br>
- return 0;<br>
-}<br>
-<br>
-int cz_phm_smu_power_up_down_pcie(struct pp_hwmgr *hwmgr, uint32_t target, bool up, uint32_t args)<br>
-{<br>
- /* TODO */<br>
- return 0;<br>
-}<br>
-<br>
-int cz_phm_initialize_display_phy_access(struct pp_hwmgr *hwmgr, bool initialize, bool accesshw)<br>
-{<br>
- /* TODO */<br>
- return 0;<br>
-}<br>
-<br>
-int cz_phm_get_display_phy_access_info(struct pp_hwmgr *hwmgr)<br>
-{<br>
- /* TODO */<br>
- return 0;<br>
-}<br>
-<br>
-int cz_phm_gate_unused_display_phys(struct pp_hwmgr *hwmgr)<br>
-{<br>
- /* TODO */<br>
- return 0;<br>
-}<br>
-<br>
-int cz_phm_ungate_all_display_phys(struct pp_hwmgr *hwmgr)<br>
-{<br>
- /* TODO */<br>
- return 0;<br>
-}<br>
-<br>
int cz_enable_disable_uvd_dpm(struct pp_hwmgr *hwmgr, bool enable)<br>
{<br>
struct cz_hwmgr *cz_hwmgr = (struct cz_hwmgr *)(hwmgr->backend);<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h<br>
index 92f707b..08d393f 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h<br>
@@ -25,10 +25,7 @@<br>
#define _CZ_CLOCK_POWER_GATING_H_<br>
<br>
#include "cz_hwmgr.h"<br>
-#include "pp_asicblocks.h"<br>
<br>
-extern int cz_phm_set_asic_block_gating(struct pp_hwmgr *hwmgr, enum PHM_AsicBlock block, enum PHM_ClockGateSetting gating);<br>
-extern const struct phm_master_table_header cz_phm_enable_clock_power_gatings_master;<br>
extern void cz_dpm_powergate_vce(struct pp_hwmgr *hwmgr, bool bgate);<br>
extern void cz_dpm_powergate_uvd(struct pp_hwmgr *hwmgr, bool bgate);<br>
extern int cz_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable);<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" id="LPlnk570250" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>