]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gud: Add async_flush module parameter
authorNoralf Trønnes <noralf@tronnes.org>
Sat, 3 Jul 2021 14:13:21 +0000 (16:13 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Thu, 8 Jul 2021 12:34:28 +0000 (14:34 +0200)
commita0356899ebe8ecde0da9c5685cc47154db973a5e
tree1e20ddd7dc8ae2d7d3cf0c2d0e061b3a217cf9b8
parentb3f4ef669357d5b9a2c5e8c33e3967a2070db7f9
drm/gud: Add async_flush module parameter

Provide a way for userspace to choose synchronous flushing/pageflips.
This helps save CPU and power.

It is also useful for test scripts since userspace can know when a flush
has happended and wait before doing the next visual test.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Peter Stuge <peter@stuge.se>
Link: https://patchwork.freedesktop.org/patch/msgid/20210703141321.35494-2-noralf@tronnes.org
drivers/gpu/drm/gud/gud_pipe.c