Re: [PATCH 09/12] tests/amdgpu: add atomic_mem cp_packet to verify the secure buffer

2019-11-15 Thread Huang, Ray
On Fri, Nov 15, 2019 at 11:34:52AM +0800, Liu, Aaron wrote: > 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_

Re: [PATCH 09/12] tests/amdgpu: add atomic_mem cp_packet to verify the secure buffer

2019-11-15 Thread Huang, Ray
On Fri, Nov 15, 2019 at 11:34:52AM +0800, Liu, Aaron wrote: > 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_

[PATCH 09/12] tests/amdgpu: add atomic_mem cp_packet to verify the secure buffer

2019-11-14 Thread Aaron Liu
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