History log of /external/libdrm/tests/amdgpu/bo_tests.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8a89d5f620967a9086495d15825415ac27bf061a 24-Jan-2017 Alex Xie <AlexBin.Xie@amd.com> amdgpu: A new option to run tests on render node

Tested:
1. As root, tests passed on primary.
2. As root, tests passed on render node.
BO export/import test was skipped
3. As non-privileged user, tests failed on primary as expected.
4. As non-privileged user, tests passed on render node.
BO export/import test was skipped

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/tests/amdgpu/bo_tests.c
e1ee01a7583508a47ae45b514f77383abd83db72 12-Jan-2017 Alex Xie <AlexBin.Xie@amd.com> amdgpu: Provide more specific error message if non-privileged user runs amdgpu_test

Before this change, the error message is:
"WARNING - Suite initialization failed..."
People might think this is a driver problem.

Tested with non-privileged user. Now the error message is like:
...
Error:Permission denied. Hint:Try to run this test program as root.
WARNING - Suite initialization failed for 'Basic Tests'.
...

Tested as root with no regression.

amdgpu_test uses CUnit. CUnit outputs warning message to stdout.
To be consistent, this commit outputs error message to stdout.

v2: Use strerror instead of %m. %m is a GNU C Library extension.
v3: Limit code and commit message within 80 characters per line.
Update commit message.
Remove a space before starting parenthesis in function call.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/tests/amdgpu/bo_tests.c
25784d3af2f37d86fb25ee6cfa4afa6f3448af9b 17-Aug-2015 Michel Dänzer <michel.daenzer@amd.com> tests/amdgpu: Include config.h first

Fixes build failure on 32-bit because _FILE_OFFSET_BITS wasn't defined to
64.

Reviewed-by: Christian König <christian.koenig@amd.com>
/external/libdrm/tests/amdgpu/bo_tests.c
8aeffcc1cf3360fddd97f4a6b6f7300f401142ae 13-Jul-2015 Jammy Zhou <Jammy.Zhou@amd.com> amdgpu: add amdgpu_bo_va_op for va map/unmap support v3

The following interfaces are changed accordingly:
- amdgpu_bo_alloc
- amdgpu_create_bo_from_user_mem

v2: update the interfaces
v3: remove virtual_mc_base_address from amdgpu_bo

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
/external/libdrm/tests/amdgpu/bo_tests.c
3c5fe78801dbadc82cc25f4a63a983fea15d938b 20-Apr-2015 Alex Deucher <alexander.deucher@amd.com> drm: add tests/amdgpu (v3)

This adds some basic unit tests for the new amdgpu driver.

v2: use common util_math.h
v3: implement suggestions from Emil
replace malloc/memset with calloc
make header guards all caps
use posix_memalign rather than mem_align
replace malloc with calloc for pm4 allocations
make CU_SuiteInfo static
fix Makefile.am
fix fd numbering
use drmGetVersion/drmFreeVersion rather than open coding it
close fd, clean up CU registry on error

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
/external/libdrm/tests/amdgpu/bo_tests.c