linux/drivers/gpu/drm/v3d
Maíra Canal 1fe1c66274
drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later
`args->cfg[4]` is configured in Indirect Dispatch using the number of
batches. Currently, for all V3D tech versions, `args->cfg[4]` equals the
number of batches subtracted by 1. But, for V3D 7.1.6 and later, we must not
subtract 1 from the number of batches.

Implement the fix by checking the V3D tech version and revision.

Fixes several `dEQP-VK.synchronization*` CTS tests related to Indirect Dispatch.

Fixes: 18b8413b25 ("drm/v3d: Create a CPU job extension for a indirect CSD job")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240714145243.1223131-2-mcanal@igalia.com
2024-07-15 12:49:52 -03:00
..
Kconfig drm/v3d: Add support for bcm2711 2022-06-12 22:10:50 -01:00
Makefile drm/v3d: Detach job submissions IOCTLs to a new specific file 2023-12-01 09:34:01 -03:00
v3d_bo.c fix missing vmalloc.h includes 2024-04-25 20:55:49 -07:00
v3d_debugfs.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_drv.c drm/v3d: Add V3D tech revision to the device information 2024-07-15 12:45:59 -03:00
v3d_drv.h drm/v3d: Add V3D tech revision to the device information 2024-07-15 12:45:59 -03:00
v3d_fence.c
v3d_gem.c drm/v3d: Fix race-condition between sysfs/fdinfo and interrupt handler 2024-04-23 19:32:49 -03:00
v3d_irq.c drm/v3d: Create two functions to update all GPU stats variables 2024-04-23 19:32:45 -03:00
v3d_mmu.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_perfmon.c drm/v3d: Fix perfmon build error/warning 2024-06-05 10:44:51 +02:00
v3d_performance_counters.h drm/v3d: Fix perfmon build error/warning 2024-06-05 10:44:51 +02:00
v3d_regs.h drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_sched.c drm/v3d: Fix Indirect Dispatch configuration for V3D 7.1.6 and later 2024-07-15 12:49:52 -03:00
v3d_submit.c drm/v3d: Free the job and assign it to NULL if initialization fails 2024-01-11 11:23:13 -03:00
v3d_sysfs.c drm/v3d: Decouple stats calculation from printing 2024-04-23 19:32:48 -03:00
v3d_trace.h drm/v3d: Create tracepoints to track the CPU job 2023-12-01 09:37:48 -03:00
v3d_trace_points.c