drm/amdgpu: Add mem sync flag for IB allocated by SA
authorJinzhou Su <Jinzhou.Su@amd.com>
Tue, 20 Apr 2021 08:17:14 +0000 (16:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:45:24 +0000 (21:45 -0400)
commit5c88e3b86a88f14efa0a3ddd28641c6ff49fb9c4
treebbc68d9850b0b4540120f33bc1780620963e9f4d
parentceb47e0d84d9d327ef3cd7091fb54f612394f189
drm/amdgpu: Add mem sync flag for IB allocated by SA

The buffer of SA bo will be used by many cases. So it's better
to invalidate the cache of indirect buffer allocated by SA before
commit the IB.

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