On 10/29/2025 4:40 PM, Jeff Hugo wrote:
> On 10/29/2025 1:14 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().
>>
>> Fixes: 48aea7f2a2ef ("accel/ivpu: Fix locking in
>> ivpu_bo_remove_all_bos_from_context()")
>> Signed-off-by: Tomasz Rusinowicz <[email protected]>
>> Signed-off-by: Karol Wachowski <[email protected]>
>
> Reviewed-by: Jeff Hugo <[email protected]

Pushed to drm-misc-next.
-Karol

Reply via email to