aboutsummaryrefslogtreecommitdiffstats
path: root/tests/amdgpu/ras_tests.c
Commit message (Collapse)AuthorAgeFilesLines
* tests/amdgpu: Fix buffer overflow (v3)Luben Tuikov2020-01-081-15/+31
| | | | | | | | | | This patch fixes the following warning: -Wformat-overflow= v2: Use the correct strlcat(3). v3: Use strncat(3) and remove libbsd dependency. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* tests/amdgpu: Fix unused function warning (v2)Luben Tuikov2020-01-081-2/+0
| | | | | | | | | This patch fixes: -Wunused-function v2: Always enable amdgpu_ras_test(). Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* tests/amdgpu: Fix various warnings (v2)Luben Tuikov2020-01-081-127/+114
| | | | | | | | | | | | | | | | | | This patch fixes the following warnings: -Wformat= -Wmaybe-uninitialized -Wmisleading-indentation -Wstringop-truncation -Wunused-function -Wunused-variable It also removes forward declarations and moves global functions to the bottom, keeping locals at the top, in ras_tests.c. v2: Fix compilation. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* Revert "tests/amdgpu: Fix various warnings"Marek Olšák2020-01-071-114/+127
| | | | This reverts commit fb1634583f3ba22c67cad0df7022b6ac48a40c56.
* Revert "tests/amdgpu: Fix unused function warning (v2)"Marek Olšák2020-01-071-0/+2
| | | | This reverts commit 4ff499cd85f86a7b5b28f3449de2fbad1b91c795.
* Revert "tests/amdgpu: Fix buffer overflow (v3)"Marek Olšák2020-01-071-31/+15
| | | | This reverts commit 680542ce086f5d0ba70331f8d350edfae20c534f.
* tests/amdgpu: Fix buffer overflow (v3)Luben Tuikov2020-01-071-15/+31
| | | | | | | | | | This patch fixes the following warning: -Wformat-overflow= v2: Use the correct strlcat(3). v3: Use strncat(3) and remove libbsd dependency. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* tests/amdgpu: Fix unused function warning (v2)Luben Tuikov2020-01-071-2/+0
| | | | | | | | | This patch fixes: -Wunused-function v2: Always enable amdgpu_ras_test(). Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* tests/amdgpu: Fix various warningsLuben Tuikov2020-01-071-127/+114
| | | | | | | | | | | | | | | | This patch fixes the following warnings: -Wformat= -Wmaybe-uninitialized -Wmisleading-indentation -Wstringop-truncation -Wunused-function -Wunused-variable It also removes forward declarations and moves global functions to the bottom, keeping locals at the top, in ras_tests.c. Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
* amdgpu: add ras feature capability check in inject testGuchun Chen2019-09-161-0/+4
| | | | | | | | | | When running ras inject test, it's needed to be aligned with kernel's ras enablement. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: add ras inject unit testGuchun Chen2019-09-161-37/+107
| | | | | | | | | | Both UMC and GFX ras single_correctable inject tests are added. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: remove json package dependenceGuchun Chen2019-09-161-161/+4
| | | | | | | | | | | | Except CUnit library, no additional external library should be needed when compiling amdgpu_test. This will keep this binary self containing. Suggested-by: Christian König <christian.koenig@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* tests/amdgpu/ras: refine ras inject testGuchun Chen2019-08-081-46/+481
| | | | | | | | | | | | Ras inject test framework is invalid with original codes, so refine it to make it work on top of kernel ras inject feature enablement. Signed-off-by: Dennis Li <dennis.li@amd.com> Signed-off-by: Guchun Chen <guchun.chen@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: Fix a structure initialization issuePan, Xinhui2019-04-121-0/+1
| | | | | | | | | struct drmPciBusInfo has been aligned to 6 bytes. So memcmp will access the last byte which is not initialized. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: xinhui pan <xinhui.pan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* drm/amdgpu: support test maskxinhui pan2019-04-041-8/+63
| | | | | | | | | | support per device test mask. Skip inject test on non-server card. Signed-off-by: xinhui pan <xinhui.pan@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
* amdgpu: add ras testsxinhui pan2019-04-041-0/+594
Signed-off-by: xinhui pan <xinhui.pan@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>