amdgpu: only enable security tests on raven family

It's the only asic with support at the moment.

Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
main
Alex Deucher 2020-05-27 17:33:10 -04:00
parent 253e0383a3
commit ce1387b591
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ CU_BOOL suite_security_tests_enable(void)
&minor_version, &device_handle)) &minor_version, &device_handle))
return CU_FALSE; return CU_FALSE;
if (device_handle->info.family_id < AMDGPU_FAMILY_RV) { if (device_handle->info.family_id != AMDGPU_FAMILY_RV) {
printf("\n\nDon't support TMZ (trust memory zone), security suite disabled\n"); printf("\n\nDon't support TMZ (trust memory zone), security suite disabled\n");
enable = CU_FALSE; enable = CU_FALSE;
} }