diff options
author | Maarten Lankhorst <[email protected]> | 2021-08-30 14:09:48 +0200 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2021-09-21 13:36:34 +0300 |
commit | f9b23c157a78c77545099312394d484ce4f35b8b (patch) | |
tree | 394e0f13c74ef91ad39d3bd35fcfc54c8feac5bc /scripts/gdb/linux/utils.py | |
parent | 2566fffd6011df17dfba0b216fe9a154d3eb3f75 (diff) |
drm/i915: Move __i915_gem_free_object to ttm_bo_destroy
When we implement delayed destroy, we may have a second
call to the delete_mem_notify() handler, while free_object()
only should be called once.
Move it to bo->destroy(), to ensure it's only called once.
This fixes some weird memory corruption issues with delayed
destroy when async eviction is used.
Signed-off-by: Maarten Lankhorst <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Fixes: 213d50927763 ("drm/i915/ttm: Introduce a TTM i915 gem object backend")
Cc: Thomas Hellström <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
(cherry picked from commit 48b0961269546716c3232748bf37e64e49fb866c)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions