OSDN Git Service

amdgpu: Add memory over allocation test.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 13 Nov 2017 17:01:42 +0000 (12:01 -0500)
committerChristian König <christian.koenig@amd.com>
Tue, 14 Nov 2017 13:26:25 +0000 (14:26 +0100)
commit9ad9b7e91ee8af621bb80bb80ecd0f76eba7c51c
tree165cb471720c314f64111361a908f2944c26a0f2
parent818a0d4245801edd9a85ea95429bac4eb6ec2ef8
amdgpu: Add memory over allocation test.

Allocates 1 TB of memory. Test is disabled by default
since it's triggers OOM killer.

v2:
FIx the test to only alloc the BO and assert if return value
not equal to -ENOMEM and remove test disable on start.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
tests/amdgpu/bo_tests.c