]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add graphics cache rinse packet for sdma
authorJinzhou Su <Jinzhou.Su@amd.com>
Mon, 12 Apr 2021 07:45:31 +0000 (15:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:44 +0000 (16:32 -0400)
commitb481929ed8a3217b0b319e32c7666950a02f19a5
tree80e1f08bceafd75e2d69052e71b31ae77aeb8ed8
parent458937430f913b2292e50c2bf24b42e21ff5a543
drm/amdgpu: Add graphics cache rinse packet for sdma

Add emit mem sync callback for sdma_v5_2

In amdgpu sync object test, three threads created jobs
to send GFX IB and SDMA IB in sequence. After the first
GFX thread joined, sometimes the third thread will reuse
the same physical page to store the SDMA IB. There will
be a risk that SDMA will read GFX IB in the previous physical
page. So it's better to flush the cache before commit sdma IB.

Signed-off-by: Jinzhou Su <Jinzhou.Su@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c