diff options
author | Jesse Zhang <jesse.zhang@amd.com> | 2023-10-31 10:40:51 +0800 |
---|---|---|
committer | Vitaly Prosyak <vitaly.prosyak@amd.com> | 2023-11-06 20:30:38 -0500 |
commit | 6edf8b6808de2bde968415926d2b55817f7ea1de (patch) | |
tree | bc097b72751922f2935a1424996b04ceef3976c6 /tests/amdgpu | |
parent | 0485a4bf66f69aaf7244a3e689402b522f636780 (diff) |
tests/amd_security: add secure write test for gfx
To verify writes in Trusted Memory Zone(TMZ),
add secure writing and verify the results of gfx.
V3:
- Improve description and coding style.
Encoding using helpers for high and low 32 bits (Kamil)
- Add i-g-t for the subject and
replace the "_" with spaces in igt_describe(Kamil)
- rename new method 'atomic' to 'write_linear_atomic'(Vitaly)
- use macro 'lower_32_bits' based Kamil's suggestion (Vitaly)
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Diffstat (limited to 'tests/amdgpu')
-rw-r--r-- | tests/amdgpu/amd_security.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/amdgpu/amd_security.c b/tests/amdgpu/amd_security.c index 1a7eba9eb..d1146a7ce 100644 --- a/tests/amdgpu/amd_security.c +++ b/tests/amdgpu/amd_security.c @@ -351,17 +351,22 @@ igt_main igt_skip_on(!is_security_tests_enable(device, &gpu_info, major, minor)); } - igt_describe("amdgpu_security_alloc_buf_test"); + igt_describe("amdgpu security alloc buf test"); igt_subtest("amdgpu-security-alloc-buf-test") amdgpu_security_alloc_buf_test(device); - igt_describe("amdgpu_command_submission_write_linear_helper"); - igt_subtest("write-linear-helper-secure") + igt_describe("amdgpu sdma command submission write linear helper"); + igt_subtest("sdma-write-linear-helper-secure") amdgpu_command_submission_write_linear_helper(device, get_ip_block(device, AMDGPU_HW_IP_DMA), is_secure); + igt_describe("amdgpu gfx command submission write linear helper"); + igt_subtest("gfx-write-linear-helper-secure") + amdgpu_command_submission_write_linear_helper(device, + get_ip_block(device, AMDGPU_HW_IP_GFX), is_secure); + /* dynamic test based on sdma_info.available rings */ - igt_describe("amdgpu_secure_bounce"); + igt_describe("amdgpu secure bounce"); igt_subtest("amdgpu-secure-bounce") amdgpu_secure_bounce(device, fd, &sdma_info, get_ip_block(device, AMDGPU_HW_IP_DMA), is_secure); |