]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: crtc: Move the BO Handling out of Common Page-Flip Handler
authorMaxime Ripard <maxime@cerno.tech>
Fri, 10 Jun 2022 11:51:46 +0000 (13:51 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 16 Jun 2022 09:07:52 +0000 (11:07 +0200)
commit75161016dc69601ce10dad57dbd6724d17774259
tree57c3f99007295169e223979c9252ea897f522a0d
parent532effb4811d61b347e847aaee8c59bd269b550f
drm/vc4: crtc: Move the BO Handling out of Common Page-Flip Handler

The function vc4_async_page_flip() handles asynchronous page-flips in
the vc4 driver.

However, it mixes some generic code with code that should only be run on
older generations that have the GPU handled by the vc4 driver.

Let's split the generic part out of vc4_async_page_flip() and into a
common function that we be reusable by an handler made for the BCM2711.

Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220610115149.964394-12-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c