]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Replace wait_for macros to remove use of msleep
authorJames Hughes <james.hughes@raspberrypi.com>
Mon, 17 Feb 2020 15:31:45 +0000 (15:31 +0000)
committerEric Anholt <eric@anholt.net>
Thu, 5 Mar 2020 06:15:27 +0000 (22:15 -0800)
commit0d313c3c27994bece050a28c6fe47f18038573b6
tree312662a816ec48e039e1a22f9602ccf430cff42a
parent6e37e58f5437fb4675426180ce69a30a7ed58b5a
drm/vc4: Replace wait_for macros to remove use of msleep

The wait_for macro's for Broadcom VC4 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 v3d patch in case this tickles modesetting bugs (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
drivers/gpu/drm/vc4/vc4_drv.h