summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-05-06 18:45:57 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-08-05 13:47:49 -0400
commita4c832117940880c28eec15bfae8040f2a93a733 (patch)
tree42dcb5296c00df6b8f7047a0b2f3622eb2013e5e /tests
parent639c7de955f9a905d4db741ef3cb317edd460211 (diff)
amdgpu: remove AMDGPU_GEM_CREATE_CPU_GTT_UC
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/amdgpu/basic_tests.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index c8c759f4..6654e588 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -146,7 +146,7 @@ static void amdgpu_memory_alloc(void)
bo = gpu_mem_alloc(device_handle,
4096, 4096,
AMDGPU_GEM_DOMAIN_GTT,
- AMDGPU_GEM_CREATE_CPU_GTT_WC,
+ AMDGPU_GEM_CREATE_CPU_GTT_USWC,
&bo_mc);
r = amdgpu_bo_free(bo);
@@ -345,8 +345,7 @@ static void amdgpu_command_submission_sdma_write_linear(void)
uint64_t bo_mc;
volatile uint32_t *bo_cpu;
int i, j, r, loop;
- uint64_t gtt_flags[3] = {0, AMDGPU_GEM_CREATE_CPU_GTT_UC,
- AMDGPU_GEM_CREATE_CPU_GTT_WC};
+ uint64_t gtt_flags[2] = {0, AMDGPU_GEM_CREATE_CPU_GTT_USWC};
pm4 = calloc(pm4_dw, sizeof(*pm4));
CU_ASSERT_NOT_EQUAL(pm4, NULL);
@@ -365,7 +364,7 @@ static void amdgpu_command_submission_sdma_write_linear(void)
CU_ASSERT_NOT_EQUAL(resources, NULL);
loop = 0;
- while(loop < 3) {
+ while(loop < 2) {
/* allocate UC bo for sDMA use */
bo = gpu_mem_alloc(device_handle,
sdma_write_length * sizeof(uint32_t),
@@ -428,8 +427,7 @@ static void amdgpu_command_submission_sdma_const_fill(void)
uint64_t bo_mc;
volatile uint32_t *bo_cpu;
int i, j, r, loop;
- uint64_t gtt_flags[3] = {0, AMDGPU_GEM_CREATE_CPU_GTT_UC,
- AMDGPU_GEM_CREATE_CPU_GTT_WC};
+ uint64_t gtt_flags[2] = {0, AMDGPU_GEM_CREATE_CPU_GTT_USWC};
pm4 = calloc(pm4_dw, sizeof(*pm4));
CU_ASSERT_NOT_EQUAL(pm4, NULL);
@@ -448,7 +446,7 @@ static void amdgpu_command_submission_sdma_const_fill(void)
CU_ASSERT_NOT_EQUAL(resources, NULL);
loop = 0;
- while(loop < 3) {
+ while(loop < 2) {
/* allocate UC bo for sDMA use */
bo = gpu_mem_alloc(device_handle,
sdma_write_length, 4096,
@@ -509,8 +507,7 @@ static void amdgpu_command_submission_sdma_copy_linear(void)
uint64_t bo1_mc, bo2_mc;
volatile unsigned char *bo1_cpu, *bo2_cpu;
int i, j, r, loop1, loop2;
- uint64_t gtt_flags[3] = {0, AMDGPU_GEM_CREATE_CPU_GTT_UC,
- AMDGPU_GEM_CREATE_CPU_GTT_WC};
+ uint64_t gtt_flags[2] = {0, AMDGPU_GEM_CREATE_CPU_GTT_USWC};
pm4 = calloc(pm4_dw, sizeof(*pm4));
CU_ASSERT_NOT_EQUAL(pm4, NULL);
@@ -530,8 +527,8 @@ static void amdgpu_command_submission_sdma_copy_linear(void)
loop1 = loop2 = 0;
/* run 9 circle to test all mapping combination */
- while(loop1 < 3) {
- while(loop2 < 3) {
+ while(loop1 < 2) {
+ while(loop2 < 2) {
/* allocate UC bo1for sDMA use */
bo1 = gpu_mem_alloc(device_handle,
sdma_write_length, 4096,