]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit43c8546bcd854806736d8a635a0d696504dd4c21
treef32256008cedf8988130d2dfbc27252f534e62eb
parentd35745bbec0958ec09a6580dea537828a571c632
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