When running ras inject test, it's needed to be aligned with kernel's ras enablement. Change-Id: I7e69a1a3f6ab7a0053f67f7f1dd3fb9af64f478f Signed-off-by: Guchun Chen <guchun.chen@xxxxxxx> --- tests/amdgpu/ras_tests.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/amdgpu/ras_tests.c b/tests/amdgpu/ras_tests.c index d510b644..c1c543c1 100644 --- a/tests/amdgpu/ras_tests.c +++ b/tests/amdgpu/ras_tests.c @@ -861,6 +861,10 @@ static void __amdgpu_ras_ip_inject_test(const struct ras_inject_test_config *ip_ if (block == ARRAY_SIZE(ras_block_string)) break; + /* Ensure RAS feature for the IP block is enabled by kernel */ + if (amdgpu_ras_is_feature_supported(block) <= 0) + break; + ret = amdgpu_ras_query_err_count(block, &old_ue, &old_ce); CU_ASSERT_EQUAL(ret, 0); if (ret) -- 2.17.1 _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx