[Bug 72742] [ILK/HSW]igt/gem_tiled_swapping randomly causes OOM killer
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jan 15 00:04:24 PST 2014
https://bugs.freedesktop.org/show_bug.cgi?id=72742
lu hua <huax.lu at intel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #3 from lu hua <huax.lu at intel.com> ---
Patch failed at @@ -5060,6 +5060,26 @@ static bool mutex_is_locked_by(struct
mutex *mutex, struct task_struct *task).
Add this patch as following, It still fails with OOM killer.
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -5060,6 +5060,26 @@ static bool mutex_is_locked_by(struct mutex *mutex,
struct task_struct *task)
#endif
}
+static bool
+i915_gem_shrinker_lock(struct drm_device *dev, bool *unlock)
+{
+ *unlock = true;
+ if (mutex_trylock(&dev->struct_mutex))
+ return true;
+
+ if (mutex_is_locked_by(&dev->struct_mutex, current)) {
+ if (to_i915(dev)->mm.shrinker_no_lock_stealing)
+ return false;
+
+ *unlock = false;
+ } else {
+ if (i915_mutex_lock_interruptible(dev))
+ return false;
+ }
+
+ return true;
+}
+
static int num_vma_bound(struct drm_i915_gem_object *obj)
{
struct i915_vma *vma;
--
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: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20140115/de020a7f/attachment.html>
More information about the intel-gfx-bugs
mailing list