test/amdgpu: Add emit mem sync flag for test IB
authorJinzhou Su <Jinzhou.Su@amd.com>
Mon, 19 Apr 2021 06:04:22 +0000 (14:04 +0800)
committerJinzhou Su <Jinzhou.Su@amd.com>
Mon, 19 Apr 2021 06:04:22 +0000 (14:04 +0800)
commitc7dc0465cf55f613f1caa085aa762db06cb14974
treebc9d2c75d4873e4dd92fe36c970162c40fc05ba5
parent67a64bb9467e7ea32538e221caab1409662e486c
test/amdgpu: Add emit mem sync flag for test IB

In syncobj test, 3 threads will be created. Sometimes
the first gfx IB and the third sdma IB will use same
physical page. There will be risk that sdma engine will
read gfx IB in the same physical page. So better to flush
the cache before commit the sdma IB.

Signed-off-by: Jinzhou Su <Jinzhou.Su@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/syncobj_tests.c