v3d: request the kernel to flush caches when TMU is dirty

This adapts the v3d driver to the new CL submit ioctl interface that
allows the driver to request a flush of the caches after the render
job has completed. This seems to remove some of the write violation
errors reported by the kernel during CTS and Piglit executions, fixing
some CTS tests and GPU resets along the way.

Fixes CTS tests:
KHR-GLES31.core.shader_image_size.basic-nonMS-fs-float
KHR-GLES31.core.shader_image_size.basic-nonMS-fs-int
KHR-GLES31.core.shader_image_size.basic-nonMS-fs-uint
KHR-GLES31.core.shader_image_size.advanced-nonMS-fs-float
KHR-GLES31.core.shader_image_size.advanced-nonMS-fs-int
KHR-GLES31.core.shader_image_size.advanced-nonMS-fs-uint
KHR-GLES31.core.shader_atomic_counters.advanced-usage-many-draw-calls2
KHR-GLES31.core.shader_atomic_counters.advanced-usage-draw-update-draw
KHR-GLES31.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-int
KHR-GLES31.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std140-matR
KHR-GLES31.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std140-struct
KHR-GLES31.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std430-matC-pad
KHR-GLES31.core.shader_storage_buffer_object.advanced-unsizedArrayLength-fs-std430-vec
22 jobs for !1663 with v3d_l2t_cache_workaround in 18 minutes and 38 seconds (queued for 3 seconds)
latest detached
Status Job ID Name Coverage
  Containers Build
passed debian #567776

00:00:25

 
  Build+Test
passed meson-arm64 #567785

00:03:39

passed meson-armhf #567784

00:02:26

passed meson-clang #567778

00:09:14

passed meson-clover #567782

00:09:58

passed meson-i386 #567786

00:02:29

passed meson-main #567781

00:12:22

passed meson-swr-glvnd #567777

00:06:29

passed meson-vulkan #567783

00:03:02

passed scons-llvm #567788

00:06:00

passed scons-nollvm #567787

00:03:32

passed scons-swr #567779

00:06:31

passed scons-win64 #567780

00:07:02

 
  Test
passed test-llvmpipe-gles2 1/4 #567789

00:03:29

passed test-llvmpipe-gles2 2/4 #567790

00:04:42

passed test-llvmpipe-gles2 3/4 #567791

00:03:49

passed test-llvmpipe-gles2 4/4 #567792

00:04:36

passed test-softpipe-gles2 1/4 #567793

00:01:31

passed test-softpipe-gles2 2/4 #567794

00:01:42

passed test-softpipe-gles2 3/4 #567795

00:01:46

passed test-softpipe-gles2 4/4 #567796

00:01:22

passed test-softpipe-gles3-limited #567797

00:04:49