mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-06-03 10:38:23 +02:00
Secure buffer is only able to be read with trusted ip block. So we need use GFX ip to read it back instead of CPU. Steps: 1. use write_data packet to write 0xdeadbeaf to secure buffer, 2. use atmoic_mem packet and ATOMIC_CMPSWAP_RTN_32 opcode to compare the cmp_data(0xdeadbeaf) to the written data which has been encrypted. If the result is equal, then overwrite the src_data(0x12345678) to the secure buffer and return directly. Otherwise loop again until gfx timeout and the secure buffer data unchanged. 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> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> |
||
|---|---|---|
| .. | ||
| .editorconfig | ||
| amdgpu_test.c | ||
| amdgpu_test.h | ||
| basic_tests.c | ||
| bo_tests.c | ||
| cs_tests.c | ||
| deadlock_tests.c | ||
| decode_messages.h | ||
| frame.h | ||
| meson.build | ||
| ras_tests.c | ||
| security_tests.c | ||
| syncobj_tests.c | ||
| uvd_enc_tests.c | ||
| uve_ib.h | ||
| vce_ib.h | ||
| vce_tests.c | ||
| vcn_tests.c | ||
| vm_tests.c | ||