]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add a UAPI flag for user to call mem_sync
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 28 Apr 2020 05:28:43 +0000 (01:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2020 15:24:21 +0000 (11:24 -0400)
commitd8341d717c9243fc09ae00df948b001de27f6564
treef32256008cedf8988130d2dfbc27252f534e62eb
parent81c25d929386f5120a4ce328a12af998787c1e7b
drm/amdgpu: Add a UAPI flag for user to call mem_sync

When this flag is set in the CS IB flags, it causes
a memory cache flush of the GFX.

v2:
Move new flag to drm_amdgpu_cs_chunk_ib.flags
Bump up UAPI version
Remove condition on job != null to emit mem_sync

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
include/uapi/drm/amdgpu_drm.h