Maxime Ripard 398e7ceae6
drm/vc4: hvs: Remove planes currently allocated before taking down
When the HVS driver is unbound, a lot of memory allocations in the LBM and
DLIST RAM are still assigned to planes that are still allocated.

Thus, we hit a warning when calling drm_mm_takedown() since the memory pool
is not completely free of allocations.

Let's free all the currently live entries before calling drm_mm_takedown().

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220711173939.1132294-17-maxime@cerno.tech
2022-07-13 10:46:07 +02:00
..
2022-07-13 10:33:00 +02:00
2022-07-13 14:17:35 +10:00
2022-06-20 23:53:55 +03:00
2022-07-12 17:01:42 +10:00
2022-06-15 19:12:17 +02:00
2022-07-12 16:50:05 +10:00
2022-07-13 10:33:00 +02:00
2022-06-20 23:53:55 +03:00
2022-06-12 22:10:50 -01:00
2022-07-13 10:54:56 +10:00
2022-06-28 07:56:32 +02:00
2022-05-04 14:09:34 +02:00
2022-07-13 10:54:56 +10:00