projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d588f
)
tests/amdgpu/basic_tests.c: change BUFFER_SIZE used in Userptr Test adjust to PAGE_SIZE
author
xinxu@loongson.cn
<xinxu@loongson.cn>
Thu, 8 Aug 2019 08:47:07 +0000
(08:47 +0000)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 26 Nov 2019 02:23:43 +0000
(21:23 -0500)
Userptr Test will fail on PAGE_SIZE bigger than BUFFER_SIZE(8 * 1024)
Signed-off-by: xinxu <xinxu@loongson.cn>
(cherry picked from commit
fb7dfdc5fb58795365b70117c3eb625f2edb8f06
)
tests/amdgpu/basic_tests.c
patch
|
blob
|
history
diff --git
a/tests/amdgpu/basic_tests.c
b/tests/amdgpu/basic_tests.c
index
ab2a672
..
0f4aa5d
100644
(file)
--- a/
tests/amdgpu/basic_tests.c
+++ b/
tests/amdgpu/basic_tests.c
@@
-86,7
+86,7
@@
CU_TestInfo basic_tests[] = {
{ "GPU reset Test", amdgpu_gpu_reset_test },
CU_TEST_INFO_NULL,
};
-#define BUFFER_SIZE (
8 * 1024
)
+#define BUFFER_SIZE (
MAX2(8 * 1024, getpagesize())
)
#define SDMA_PKT_HEADER_op_offset 0
#define SDMA_PKT_HEADER_op_mask 0x000000FF
#define SDMA_PKT_HEADER_op_shift 0