]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:35 +0000 (10:29 +0200)
commite296bbda68ceb2c6984bc487cb39962583099de9
tree011fb56de29f18c4929b0ae78008818ced48c1d1
parent4de0a3f610a9303a4ddda0153dd7afd27188c10c
drm/amdgpu: Add mem sync flag for IB allocated by SA

[ Upstream commit 5c88e3b86a88f14efa0a3ddd28641c6ff49fb9c4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c