]> git.baikalelectronics.ru Git - kernel.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:45:24 +0000 (21:45 -0400)
commita128e8b26816b9986c8ea1122b7649206ce8bb04
treebbc68d9850b0b4540120f33bc1780620963e9f4d
parent1d763b17a9551e08442a0409fba405877d260558
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