mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 05:28:03 +02:00
test/amdgpu: add drm version checking for security suite
Adding drm version checking for security suite. drm version need to be at least 3.37. Acked-by: Huang Rui <ray.huang@amd.com> Acked-by: Leo Liu <leo.liu@amd.com> Signed-off-by: Aaron Liu <aaron.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
238acd6f3d
commit
eb1a17039f
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,14 @@ CU_BOOL suite_security_tests_enable(void)
|
|||
enable = CU_FALSE;
|
||||
}
|
||||
|
||||
if ((major_version < 3) ||
|
||||
((major_version == 3) && (minor_version < 37))) {
|
||||
printf("\n\nDon't support TMZ (trust memory zone), kernel DRM version (%d.%d)\n",
|
||||
major_version, minor_version);
|
||||
printf("is older, security suite disabled\n");
|
||||
enable = CU_FALSE;
|
||||
}
|
||||
|
||||
if (amdgpu_device_deinitialize(device_handle))
|
||||
return CU_FALSE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue