aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2018-03-13 03:27:06 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-03-15 10:58:08 -0400
commit015aae53d095b03981fc8fcc5736000c38d8f53f (patch)
treebbc16e99b8cb3527cbfb39d1c37b38e1ae056813 /drivers/gpu
parent2dac5936e50084e42354c50b3d9723f5f0a2eb63 (diff)
drm/amd/pp: Delete dead code on cz_clockpowergating.c
Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c78
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h3
2 files changed, 0 insertions, 81 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c
index 416abebb8b86..01e56124710e 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.c
@@ -25,84 +25,6 @@
25#include "cz_clockpowergating.h" 25#include "cz_clockpowergating.h"
26#include "cz_ppsmc.h" 26#include "cz_ppsmc.h"
27 27
28/* PhyID -> Status Mapping in DDI_PHY_GEN_STATUS
29 0 GFX0L (3:0), (27:24),
30 1 GFX0H (7:4), (31:28),
31 2 GFX1L (3:0), (19:16),
32 3 GFX1H (7:4), (23:20),
33 4 DDIL (3:0), (11: 8),
34 5 DDIH (7:4), (15:12),
35 6 DDI2L (3:0), ( 3: 0),
36 7 DDI2H (7:4), ( 7: 4),
37*/
38#define DDI_PHY_GEN_STATUS_VAL(phyID) (1 << ((3 - ((phyID & 0x07)/2))*8 + (phyID & 0x01)*4))
39#define IS_PHY_ID_USED_BY_PLL(PhyID) (((0xF3 & (1 << PhyID)) & 0xFF) ? true : false)
40
41
42int cz_phm_set_asic_block_gating(struct pp_hwmgr *hwmgr, enum PHM_AsicBlock block, enum PHM_ClockGateSetting gating)
43{
44 int ret = 0;
45
46 switch (block) {
47 case PHM_AsicBlock_UVD_MVC:
48 case PHM_AsicBlock_UVD:
49 case PHM_AsicBlock_UVD_HD:
50 case PHM_AsicBlock_UVD_SD:
51 if (gating == PHM_ClockGateSetting_StaticOff)
52 ret = cz_dpm_powerdown_uvd(hwmgr);
53 else
54 ret = cz_dpm_powerup_uvd(hwmgr);
55 break;
56 case PHM_AsicBlock_GFX:
57 default:
58 break;
59 }
60
61 return ret;
62}
63
64
65bool cz_phm_is_safe_for_asic_block(struct pp_hwmgr *hwmgr, const struct pp_hw_power_state *state, enum PHM_AsicBlock block)
66{
67 return true;
68}
69
70
71int cz_phm_enable_disable_gfx_power_gating(struct pp_hwmgr *hwmgr, bool enable)
72{
73 return 0;
74}
75
76int cz_phm_smu_power_up_down_pcie(struct pp_hwmgr *hwmgr, uint32_t target, bool up, uint32_t args)
77{
78 /* TODO */
79 return 0;
80}
81
82int cz_phm_initialize_display_phy_access(struct pp_hwmgr *hwmgr, bool initialize, bool accesshw)
83{
84 /* TODO */
85 return 0;
86}
87
88int cz_phm_get_display_phy_access_info(struct pp_hwmgr *hwmgr)
89{
90 /* TODO */
91 return 0;
92}
93
94int cz_phm_gate_unused_display_phys(struct pp_hwmgr *hwmgr)
95{
96 /* TODO */
97 return 0;
98}
99
100int cz_phm_ungate_all_display_phys(struct pp_hwmgr *hwmgr)
101{
102 /* TODO */
103 return 0;
104}
105
106int cz_enable_disable_uvd_dpm(struct pp_hwmgr *hwmgr, bool enable) 28int cz_enable_disable_uvd_dpm(struct pp_hwmgr *hwmgr, bool enable)
107{ 29{
108 struct cz_hwmgr *cz_hwmgr = (struct cz_hwmgr *)(hwmgr->backend); 30 struct cz_hwmgr *cz_hwmgr = (struct cz_hwmgr *)(hwmgr->backend);
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h
index 92f707bc46e7..08d393f7f4dc 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_clockpowergating.h
@@ -25,10 +25,7 @@
25#define _CZ_CLOCK_POWER_GATING_H_ 25#define _CZ_CLOCK_POWER_GATING_H_
26 26
27#include "cz_hwmgr.h" 27#include "cz_hwmgr.h"
28#include "pp_asicblocks.h"
29 28
30extern int cz_phm_set_asic_block_gating(struct pp_hwmgr *hwmgr, enum PHM_AsicBlock block, enum PHM_ClockGateSetting gating);
31extern const struct phm_master_table_header cz_phm_enable_clock_power_gatings_master;
32extern void cz_dpm_powergate_vce(struct pp_hwmgr *hwmgr, bool bgate); 29extern void cz_dpm_powergate_vce(struct pp_hwmgr *hwmgr, bool bgate);
33extern void cz_dpm_powergate_uvd(struct pp_hwmgr *hwmgr, bool bgate); 30extern void cz_dpm_powergate_uvd(struct pp_hwmgr *hwmgr, bool bgate);
34extern int cz_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable); 31extern int cz_enable_disable_vce_dpm(struct pp_hwmgr *hwmgr, bool enable);