diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2016-02-05 10:56:22 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-08 10:37:47 -0500 |
| commit | e3b04bc790ecd6d08d4699bc60b4f5a76f7f7b6b (patch) | |
| tree | 978c74715ed01a721fad2e78ef825d2abdd7c29b /drivers/gpu/drm/amd/include | |
| parent | b118af7012f9bd4bdbda12681ce66f91aabffd3f (diff) | |
drma/dmgpu: move cg and pg flags into shared headers
So they can be used by powerplay.
Reviewed-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/include')
| -rw-r--r-- | drivers/gpu/drm/amd/include/amd_shared.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 1195d06f55bc..dbf7e6413cab 100644 --- a/drivers/gpu/drm/amd/include/amd_shared.h +++ b/drivers/gpu/drm/amd/include/amd_shared.h | |||
| @@ -85,6 +85,38 @@ enum amd_powergating_state { | |||
| 85 | AMD_PG_STATE_UNGATE, | 85 | AMD_PG_STATE_UNGATE, |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | /* CG flags */ | ||
| 89 | #define AMD_CG_SUPPORT_GFX_MGCG (1 << 0) | ||
| 90 | #define AMD_CG_SUPPORT_GFX_MGLS (1 << 1) | ||
| 91 | #define AMD_CG_SUPPORT_GFX_CGCG (1 << 2) | ||
| 92 | #define AMD_CG_SUPPORT_GFX_CGLS (1 << 3) | ||
| 93 | #define AMD_CG_SUPPORT_GFX_CGTS (1 << 4) | ||
| 94 | #define AMD_CG_SUPPORT_GFX_CGTS_LS (1 << 5) | ||
| 95 | #define AMD_CG_SUPPORT_GFX_CP_LS (1 << 6) | ||
| 96 | #define AMD_CG_SUPPORT_GFX_RLC_LS (1 << 7) | ||
| 97 | #define AMD_CG_SUPPORT_MC_LS (1 << 8) | ||
| 98 | #define AMD_CG_SUPPORT_MC_MGCG (1 << 9) | ||
| 99 | #define AMD_CG_SUPPORT_SDMA_LS (1 << 10) | ||
| 100 | #define AMD_CG_SUPPORT_SDMA_MGCG (1 << 11) | ||
| 101 | #define AMD_CG_SUPPORT_BIF_LS (1 << 12) | ||
| 102 | #define AMD_CG_SUPPORT_UVD_MGCG (1 << 13) | ||
| 103 | #define AMD_CG_SUPPORT_VCE_MGCG (1 << 14) | ||
| 104 | #define AMD_CG_SUPPORT_HDP_LS (1 << 15) | ||
| 105 | #define AMD_CG_SUPPORT_HDP_MGCG (1 << 16) | ||
| 106 | |||
| 107 | /* PG flags */ | ||
| 108 | #define AMD_PG_SUPPORT_GFX_PG (1 << 0) | ||
| 109 | #define AMD_PG_SUPPORT_GFX_SMG (1 << 1) | ||
| 110 | #define AMD_PG_SUPPORT_GFX_DMG (1 << 2) | ||
| 111 | #define AMD_PG_SUPPORT_UVD (1 << 3) | ||
| 112 | #define AMD_PG_SUPPORT_VCE (1 << 4) | ||
| 113 | #define AMD_PG_SUPPORT_CP (1 << 5) | ||
| 114 | #define AMD_PG_SUPPORT_GDS (1 << 6) | ||
| 115 | #define AMD_PG_SUPPORT_RLC_SMU_HS (1 << 7) | ||
| 116 | #define AMD_PG_SUPPORT_SDMA (1 << 8) | ||
| 117 | #define AMD_PG_SUPPORT_ACP (1 << 9) | ||
| 118 | #define AMD_PG_SUPPORT_SAMU (1 << 10) | ||
| 119 | |||
| 88 | enum amd_pm_state_type { | 120 | enum amd_pm_state_type { |
| 89 | /* not used for dpm */ | 121 | /* not used for dpm */ |
| 90 | POWER_STATE_TYPE_DEFAULT, | 122 | POWER_STATE_TYPE_DEFAULT, |
