On 10/28/2025 1:05 AM, Karol Wachowski wrote:
From: Tomasz Rusinowicz <[email protected]>
Fix 'Memory manager not clean during takedown' warning that occurs
when ivpu_gem_bo_free() removes the BO from the BOs list before it
gets unmapped. Then file_priv_unbind() triggers a warning in
drm_mm_takedown() during context teardown.
Protect the unmapping sequence with bo_list_lock to ensure the BO is
always fully unmapped when removed from the list. This ensures the BO
is either fully unmapped at context teardown time or present on the
list and unmapped by file_priv_unbind().
Should this have a Fixes tag? Sounds like just a splat, but a user
visible one perhaps.
-Jeff