drm/amdgpu: optionally do a writeback but don't invalidate TC for IB fences
authorMarek Olšák <marek.olsak@amd.com>
Tue, 3 Apr 2018 17:05:03 +0000 (13:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:32 +0000 (13:43 -0500)
commitd240cd9eddd943dbe0267d081697195ff1e90b65
treeff9648c93738e223b8da42489f5d64aa8caa9895
parent3f188453faf7ba5b59e8064df4afffbc946e25ec
drm/amdgpu: optionally do a writeback but don't invalidate TC for IB fences

There is a new IB flag that enables this new behavior.
Full invalidation is unnecessary for RELEASE_MEM and doesn't make sense
when draw calls from two adjacent gfx IBs run in parallel. This will be
the new default for Mesa.

v2: bump the version

Signed-off-by: Marek Olšák <marek.olsak@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_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/soc15d.h
include/uapi/drm/amdgpu_drm.h