WSL2-Linux-Kernel/drivers/gpu/drm/v3d
James Hughes 9daee6141c drm/v3d: Replace wait_for macros to remove use of msleep
The wait_for macro's for Broadcom V3D driver used msleep, which is
inappropriate due to its inaccuracy at low values (minimum wait time
is about 30ms on the Raspberry Pi).  This sleep was triggering in
v3d_clean_caches(), causing us to only be able to dispatch ~33 compute
jobs per second.

This patch replaces the macro with the one from the Intel i915 version
which uses usleep_range to provide more accurate waits.

v2: Split from the vc4 patch so that we can confidently apply to
    stable (by anholt)

Signed-off-by: James Hughes <james.hughes@raspberrypi.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200217153145.13780-1-james.hughes@raspberrypi.com
Link: https://github.com/raspberrypi/linux/issues/3460
Fixes: 57692c94dc ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
2020-03-04 22:15:34 -08:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
v3d_bo.c drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap 2019-10-17 13:59:16 +02:00
v3d_debugfs.c drm/v3d: drop use of drmP.h 2019-07-17 12:52:20 +02:00
v3d_drv.c drm/scheduler: rework entity creation 2019-12-18 16:09:12 -05:00
v3d_drv.h drm/v3d: Replace wait_for macros to remove use of msleep 2020-03-04 22:15:34 -08:00
v3d_fence.c
v3d_gem.c Linux 5.4-rc7 2019-11-14 05:53:10 +10:00
v3d_irq.c drm/v3d: drop use of drmP.h 2019-07-17 12:52:20 +02:00
v3d_mmu.c drm/v3d: Fix and extend MMU error handling. 2019-05-16 09:24:52 -07:00
v3d_regs.h drm/v3d: Fix and extend MMU error handling. 2019-05-16 09:24:52 -07:00
v3d_sched.c
v3d_trace.h
v3d_trace_points.c