All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH 1/2] drm/i915: Remove self-harming shrink_all on get_pages_gtt fail
Date: Mon, 10 Oct 2016 12:49:58 +0100	[thread overview]
Message-ID: <20161010114959.18321-2-chris@chris-wilson.co.uk> (raw)
In-Reply-To: <20161010114959.18321-1-chris@chris-wilson.co.uk>

When we notice the system under memory pressure, we try to evict some
driver pages before asking the VM to shrink all caches. As a final step
in that process, we tried to evict everything, including active buffers.
This is harming ourselves, and we can mix shrinking all caches as well
as our residual buffers (after the first pass of trying to shrink just
our own buffers).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_gem.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 38a183faf9a7..ca1a5a5c6f19 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2246,7 +2246,6 @@ i915_gem_object_get_pages_gtt(struct drm_i915_gem_object *obj)
 			 * our own buffer, now let the real VM do its job and
 			 * go down in flames if truly OOM.
 			 */
-			i915_gem_shrink_all(dev_priv);
 			page = shmem_read_mapping_page(mapping, i);
 			if (IS_ERR(page)) {
 				ret = PTR_ERR(page);
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-10-10 11:50 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 11:49 A couple of GTT page allocation patches Chris Wilson
2016-10-10 11:49 ` Chris Wilson [this message]
2016-10-10 12:52   ` [PATCH 1/2] drm/i915: Remove self-harming shrink_all on get_pages_gtt fail Michał Winiarski
2016-10-10 11:49 ` [PATCH 2/2] drm/i915: Allow compaction upto SWIOTLB max segment size Chris Wilson
2016-10-10 13:30   ` Tvrtko Ursulin
2016-10-10 13:39     ` Tvrtko Ursulin
2016-10-10 13:43     ` Chris Wilson
2016-10-10 14:07       ` Tvrtko Ursulin
2016-10-10 22:27   ` [PATCH v2] " Chris Wilson
2016-10-11  7:55     ` Tvrtko Ursulin
2016-10-12 21:19     ` Konrad Rzeszutek Wilk
2016-10-12 21:51       ` Chris Wilson
2016-10-13 14:09         ` Konrad Rzeszutek Wilk
2016-10-10 17:19 ` ✗ Fi.CI.BAT: warning for series starting with [1/2] drm/i915: Remove self-harming shrink_all on get_pages_gtt fail Patchwork
2016-10-10 22:49 ` ✗ Fi.CI.BAT: warning for series starting with [1/2] drm/i915: Remove self-harming shrink_all on get_pages_gtt fail (rev2) Patchwork
2016-10-11  6:04   ` Saarinen, Jani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161010114959.18321-2-chris@chris-wilson.co.uk \
    --to=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.