aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-01-12 08:52:22 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:17:43 -0500
commit770d13b19fdf365a99e559f1d47f1380910a947d (patch)
treed9c9e2f506facd092fb3c85663d6d08fb1bf50a7 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentda320625de81f508bbe658d57bfa015ff8894de2 (diff)
drm/amdgpu: move struct amdgpu_mc into amdgpu_gmc.h
And rename it to amdgpu_gmc as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Samuel Li <Samuel.Li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
index ed8c3739015b..30d84df20437 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
@@ -42,7 +42,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev)
42 /* Number of tests = 42 /* Number of tests =
43 * (Total GTT - IB pool - writeback page - ring buffers) / test size 43 * (Total GTT - IB pool - writeback page - ring buffers) / test size
44 */ 44 */
45 n = adev->mc.gart_size - AMDGPU_IB_POOL_SIZE*64*1024; 45 n = adev->gmc.gart_size - AMDGPU_IB_POOL_SIZE*64*1024;
46 for (i = 0; i < AMDGPU_MAX_RINGS; ++i) 46 for (i = 0; i < AMDGPU_MAX_RINGS; ++i)
47 if (adev->rings[i]) 47 if (adev->rings[i])
48 n -= adev->rings[i]->ring_size; 48 n -= adev->rings[i]->ring_size;
@@ -142,10 +142,10 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev)
142 "0x%16llx/0x%16llx)\n", 142 "0x%16llx/0x%16llx)\n",
143 i, *vram_start, gart_start, 143 i, *vram_start, gart_start,
144 (unsigned long long) 144 (unsigned long long)
145 (gart_addr - adev->mc.gart_start + 145 (gart_addr - adev->gmc.gart_start +
146 (void*)gart_start - gtt_map), 146 (void*)gart_start - gtt_map),
147 (unsigned long long) 147 (unsigned long long)
148 (vram_addr - adev->mc.vram_start + 148 (vram_addr - adev->gmc.vram_start +
149 (void*)gart_start - gtt_map)); 149 (void*)gart_start - gtt_map));
150 amdgpu_bo_kunmap(vram_obj); 150 amdgpu_bo_kunmap(vram_obj);
151 goto out_lclean_unpin; 151 goto out_lclean_unpin;
@@ -187,10 +187,10 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev)
187 "0x%16llx/0x%16llx)\n", 187 "0x%16llx/0x%16llx)\n",
188 i, *gart_start, vram_start, 188 i, *gart_start, vram_start,
189 (unsigned long long) 189 (unsigned long long)
190 (vram_addr - adev->mc.vram_start + 190 (vram_addr - adev->gmc.vram_start +
191 (void*)vram_start - vram_map), 191 (void*)vram_start - vram_map),
192 (unsigned long long) 192 (unsigned long long)
193 (gart_addr - adev->mc.gart_start + 193 (gart_addr - adev->gmc.gart_start +
194 (void*)vram_start - vram_map)); 194 (void*)vram_start - vram_map));
195 amdgpu_bo_kunmap(gtt_obj[i]); 195 amdgpu_bo_kunmap(gtt_obj[i]);
196 goto out_lclean_unpin; 196 goto out_lclean_unpin;
@@ -200,7 +200,7 @@ static void amdgpu_do_test_moves(struct amdgpu_device *adev)
200 amdgpu_bo_kunmap(gtt_obj[i]); 200 amdgpu_bo_kunmap(gtt_obj[i]);
201 201
202 DRM_INFO("Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x%llx\n", 202 DRM_INFO("Tested GTT->VRAM and VRAM->GTT copy for GTT offset 0x%llx\n",
203 gart_addr - adev->mc.gart_start); 203 gart_addr - adev->gmc.gart_start);
204 continue; 204 continue;
205 205
206out_lclean_unpin: 206out_lclean_unpin: