]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: drv: Skip BO Backend Initialization on BCM2711
authorMaxime Ripard <maxime@cerno.tech>
Fri, 10 Jun 2022 11:51:43 +0000 (13:51 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 16 Jun 2022 09:07:52 +0000 (11:07 +0200)
commit403fe4ba20783965144799c41a6dac20ac016b1f
treea5f5e1ea6f44bb851b474c646e1168bb97259186
parentf93f4abfde2a57d8429fc3620aa5c0e76910fe61
drm/vc4: drv: Skip BO Backend Initialization on BCM2711

On the BCM2711, we currently call the vc4_bo_cache_init() and
vc4_gem_init() functions. These functions initialize the BO and GEM
backends.

However, this code was initially created to accomodate the requirements
of the GPU on the older SoCs, while the BCM2711 has a separate driver
for it. So let's just skip these calls when we're on a newer hardware.

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