]> 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)
commit7442b15e4adc3766d45cdf573fb867ed28390ba4
tree57c3f99007295169e223979c9252ea897f522a0d
parentfc27db5c14a0578c4c70be6d1078ae8f78861cac
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