[Bug 101627] [HSW]drv_selftest/mock_requests - ida_remove called for id=1 which is not allocated.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jul 19 13:46:28 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101627

--- Comment #7 from Chris Wilson <chris at chris-wilson.co.uk> ---
Ah, you don't have contexts_lost there because I added it later:

commit b8d0658849d52110c72b44860f86fb4c544de625
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Apr 20 11:52:34 2017 +0100

    drm/i915: Keep a recent cache of freed contexts objects for reuse

    Keep the recently freed context objects for reuse. This allows us to use
    the current GGTT bindings and dma bound pages, avoiding any clflushes as
    required. We mark the objects as purgeable under memory pressure, and
    reap the list of freed objects as soon as the device is idle.

    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/drivers/gpu/drm/i915/selftests/mock_gem_device.c
b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
index d451dfbe9bbb..dda413c95b89 100644
--- a/drivers/gpu/drm/i915/selftests/mock_gem_device.c
+++ b/drivers/gpu/drm/i915/selftests/mock_gem_device.c
@@ -54,6 +54,7 @@ static void mock_device_release(struct drm_device *dev)

        mutex_lock(&i915->drm.struct_mutex);
        mock_device_flush(i915);
+       i915_gem_contexts_lost(i915);
        mutex_unlock(&i915->drm.struct_mutex);

        cancel_delayed_work_sync(&i915->gt.retire_work);


which explains why I haven't it...

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170719/90bd8a3e/attachment.html>


More information about the intel-gfx-bugs mailing list