tests/amdgpu: add device handle as input param for exec_cs_helper and write_linear_he...
authorHuang Rui <ray.huang@amd.com>
Fri, 16 Aug 2019 11:02:51 +0000 (19:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Oct 2020 17:46:11 +0000 (13:46 -0400)
commit0cefd4cecdd8163d500765712de604b7f36cfe7e
tree6c36467ff08b2fda0857a796b41abd7a640f6e88
parent76ceb8b80649572cd8dffd06da14da8588246e84
tests/amdgpu: add device handle as input param for exec_cs_helper and write_linear_helper (v4)

This patch is to add add device handle as input param for exec_cs_helper
and write_linear_helper.

Because they are needed in security tests.

v2: fix typo that basic tests should be un-secure.
v3: refine the function implementation.
v4: remove amdgpu_cs_ctx_create3 calling.

Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/amdgpu_test.h
tests/amdgpu/basic_tests.c