diff options
author | Dave Airlie <airlied@redhat.com> | 2016-03-13 19:42:34 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-03-13 19:46:02 -0400 |
commit | 9b61c0fcdf0cfd20a85d9856d46142e7f297de0a (patch) | |
tree | d4abe6aa3f4e1e088f9da1d0597e078b1fe58912 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 550e3b23a53c88adfa46e64f9d442743e65d47da (diff) | |
parent | 125234dc8b1cc862f52d8bd5b37c36cc59b2cb86 (diff) |
Merge drm-fixes into drm-next.
Nouveau wanted this to avoid some worse conflicts when I merge that.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 0c42a85ca5a5..d0489722fc7e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -85,6 +85,8 @@ extern int amdgpu_vm_debug; | |||
85 | extern int amdgpu_sched_jobs; | 85 | extern int amdgpu_sched_jobs; |
86 | extern int amdgpu_sched_hw_submission; | 86 | extern int amdgpu_sched_hw_submission; |
87 | extern int amdgpu_powerplay; | 87 | extern int amdgpu_powerplay; |
88 | extern unsigned amdgpu_pcie_gen_cap; | ||
89 | extern unsigned amdgpu_pcie_lane_cap; | ||
88 | 90 | ||
89 | #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000 | 91 | #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000 |
90 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ | 92 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
@@ -127,47 +129,6 @@ extern int amdgpu_powerplay; | |||
127 | #define AMDGPU_RESET_VCE (1 << 13) | 129 | #define AMDGPU_RESET_VCE (1 << 13) |
128 | #define AMDGPU_RESET_VCE1 (1 << 14) | 130 | #define AMDGPU_RESET_VCE1 (1 << 14) |
129 | 131 | ||
130 | /* CG block flags */ | ||
131 | #define AMDGPU_CG_BLOCK_GFX (1 << 0) | ||
132 | #define AMDGPU_CG_BLOCK_MC (1 << 1) | ||
133 | #define AMDGPU_CG_BLOCK_SDMA (1 << 2) | ||
134 | #define AMDGPU_CG_BLOCK_UVD (1 << 3) | ||
135 | #define AMDGPU_CG_BLOCK_VCE (1 << 4) | ||
136 | #define AMDGPU_CG_BLOCK_HDP (1 << 5) | ||
137 | #define AMDGPU_CG_BLOCK_BIF (1 << 6) | ||
138 | |||
139 | /* CG flags */ | ||
140 | #define AMDGPU_CG_SUPPORT_GFX_MGCG (1 << 0) | ||
141 | #define AMDGPU_CG_SUPPORT_GFX_MGLS (1 << 1) | ||
142 | #define AMDGPU_CG_SUPPORT_GFX_CGCG (1 << 2) | ||
143 | #define AMDGPU_CG_SUPPORT_GFX_CGLS (1 << 3) | ||
144 | #define AMDGPU_CG_SUPPORT_GFX_CGTS (1 << 4) | ||
145 | #define AMDGPU_CG_SUPPORT_GFX_CGTS_LS (1 << 5) | ||
146 | #define AMDGPU_CG_SUPPORT_GFX_CP_LS (1 << 6) | ||
147 | #define AMDGPU_CG_SUPPORT_GFX_RLC_LS (1 << 7) | ||
148 | #define AMDGPU_CG_SUPPORT_MC_LS (1 << 8) | ||
149 | #define AMDGPU_CG_SUPPORT_MC_MGCG (1 << 9) | ||
150 | #define AMDGPU_CG_SUPPORT_SDMA_LS (1 << 10) | ||
151 | #define AMDGPU_CG_SUPPORT_SDMA_MGCG (1 << 11) | ||
152 | #define AMDGPU_CG_SUPPORT_BIF_LS (1 << 12) | ||
153 | #define AMDGPU_CG_SUPPORT_UVD_MGCG (1 << 13) | ||
154 | #define AMDGPU_CG_SUPPORT_VCE_MGCG (1 << 14) | ||
155 | #define AMDGPU_CG_SUPPORT_HDP_LS (1 << 15) | ||
156 | #define AMDGPU_CG_SUPPORT_HDP_MGCG (1 << 16) | ||
157 | |||
158 | /* PG flags */ | ||
159 | #define AMDGPU_PG_SUPPORT_GFX_PG (1 << 0) | ||
160 | #define AMDGPU_PG_SUPPORT_GFX_SMG (1 << 1) | ||
161 | #define AMDGPU_PG_SUPPORT_GFX_DMG (1 << 2) | ||
162 | #define AMDGPU_PG_SUPPORT_UVD (1 << 3) | ||
163 | #define AMDGPU_PG_SUPPORT_VCE (1 << 4) | ||
164 | #define AMDGPU_PG_SUPPORT_CP (1 << 5) | ||
165 | #define AMDGPU_PG_SUPPORT_GDS (1 << 6) | ||
166 | #define AMDGPU_PG_SUPPORT_RLC_SMU_HS (1 << 7) | ||
167 | #define AMDGPU_PG_SUPPORT_SDMA (1 << 8) | ||
168 | #define AMDGPU_PG_SUPPORT_ACP (1 << 9) | ||
169 | #define AMDGPU_PG_SUPPORT_SAMU (1 << 10) | ||
170 | |||
171 | /* GFX current status */ | 132 | /* GFX current status */ |
172 | #define AMDGPU_GFX_NORMAL_MODE 0x00000000L | 133 | #define AMDGPU_GFX_NORMAL_MODE 0x00000000L |
173 | #define AMDGPU_GFX_SAFE_MODE 0x00000001L | 134 | #define AMDGPU_GFX_SAFE_MODE 0x00000001L |
@@ -592,8 +553,6 @@ struct amdgpu_sa_manager { | |||
592 | uint32_t align; | 553 | uint32_t align; |
593 | }; | 554 | }; |
594 | 555 | ||
595 | struct amdgpu_sa_bo; | ||
596 | |||
597 | /* sub-allocation buffer */ | 556 | /* sub-allocation buffer */ |
598 | struct amdgpu_sa_bo { | 557 | struct amdgpu_sa_bo { |
599 | struct list_head olist; | 558 | struct list_head olist; |
@@ -2357,6 +2316,7 @@ void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *rbo, u32 domain); | |||
2357 | bool amdgpu_ttm_bo_is_amdgpu_bo(struct ttm_buffer_object *bo); | 2316 | bool amdgpu_ttm_bo_is_amdgpu_bo(struct ttm_buffer_object *bo); |
2358 | int amdgpu_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr, | 2317 | int amdgpu_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr, |
2359 | uint32_t flags); | 2318 | uint32_t flags); |
2319 | bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); | ||
2360 | struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); | 2320 | struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm); |
2361 | bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, | 2321 | bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, |
2362 | unsigned long end); | 2322 | unsigned long end); |