All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel-/w4YWyX8dFk@public.gmane.org>
To: Heinz Diehl <htd-iEI8Y0CNJBYdnm+yROfE0A@public.gmane.org>
Cc: Daniel Vetter <daniel-/w4YWyX8dFk@public.gmane.org>,
	Chris Wilson
	<chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>,
	dri-devel
	<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
	intel-gfx
	<intel-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: i915 freakout with latest 3.7 git
Date: Tue, 11 Dec 2012 11:22:26 +0100	[thread overview]
Message-ID: <20121211102225.GP11556@phenom.ffwll.local> (raw)
In-Reply-To: <20121208130648.GA3311-iEI8Y0CNJBYdnm+yROfE0A@public.gmane.org>

On Sat, Dec 08, 2012 at 02:06:48PM +0100, Heinz Diehl wrote:
> On 07.12.2012, Daniel Vetter wrote: 
> 
> [....]
> 
> I did a "git bisect" betweeb 3.6 and 3.7-rc8 and ended up with
> this. Unfortunately, git can't revert this patch on top of master, sp
> I have not been able to test if a revert will cure the problem.
> 
> After reading on the net that Peter (Lekensteyn) already ended up with
> bisecting the same patch and it didn't work for him reverting it on
> top of 3-7-rc4, I'm somewhat clueless..
> 
> What else can I do to help finding the cause?

Can you please test the patch at

https://bugs.freedesktop.org/attachment.cgi?id=70111

That one should disable all effects of the unbound tracking, since a
revert of the below commit conflicts.

Thanks, Daniel
> 
> Heinz
> 
> 
> [root@wildsau linux-git]# git bisect good
> 6c085a728cf000ac1865d66f8c9b52935558b328 is the first bad commit
> commit 6c085a728cf000ac1865d66f8c9b52935558b328
> Author: Chris Wilson <chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
> Date:   Mon Aug 20 11:40:46 2012 +0200
> 
>     drm/i915: Track unbound pages
>     
>     When dealing with a working set larger than the GATT, or even the
>     mappable aperture when touching through the GTT, we end up with
>     evicting
>     objects only to rebind them at a new offset again later. Moving an
>     object into and out of the GTT requires clflushing the pages, thus
>     causing a double-clflush penalty for rebinding.
>     
>     To avoid having to clflush on rebinding, we can track the pages as
>     they
>     are evicted from the GTT and only relinquish those pages on memory
>     pressure.
>     
>     As usual, if it were not for the handling of out-of-memory
>     condition and
>     having to manually shrink our own bo caches, it would be a net
>     reduction
>     of code. Alas.
>     
>     Note: The patch also contains a few changes to the last-hope
>     evict_everything logic in i916_gem_execbuffer.c - we no longer try
>     to
>     only evict the purgeable stuff in a first try (since that's
>     superflous
>     and only helps in OOM corner-cases, not fragmented-gtt trashing
>     situations).
>     
>     Also, the extraction of the get_pages retry loop from bind_to_gtt
>     (and
>     other callsites) to get_pages should imo have been a separate
>     patch.
>     
>     v2: Ditch the newly added put_pages (for unbound objects only) in
>     i915_gem_reset. A quick irc discussion hasn't revealed any
>     important
>     reason for this, so if we need this, I'd like to have a git
>     blame'able
>     explanation for it.
>     
>     v3: Undo the s/drm_malloc_ab/kmalloc/ in get_pages that Chris
>     noticed.
>     
>     Signed-off-by: Chris Wilson <chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org>
>     [danvet: Split out code movements and rant a bit in the commit
>     message
>     with a few Notes. Done v2]
>     Signed-off-by: Daniel Vetter <daniel.vetter-/w4YWyX8dFk@public.gmane.org>
> 
> :040000 040000 c4f02e0d05a570d0baf9d2f19a6c276c06a55142
> df93a56308637e3840353c3c9425ec96c3422dcc M	drivers
> [root@wildsau linux-git]# 
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

  parent reply	other threads:[~2012-12-11 10:22 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-03 17:39 i915 freakout with latest 3.7 git Heinz Diehl
2012-12-03 17:42 ` devendra.aaru
2012-12-04  8:36   ` Heinz Diehl
2012-12-04  9:27     ` Dave Airlie
2012-12-04  9:40       ` Daniel Vetter
2012-12-04  9:40         ` Daniel Vetter
2012-12-04 12:35         ` Heinz Diehl
2012-12-04 12:35           ` Heinz Diehl
2012-12-04 12:58           ` Daniel Vetter
2012-12-06 12:45             ` Heinz Diehl
2012-12-04 20:41           ` Lekensteyn
2012-12-04 20:51             ` Daniel Vetter
2012-12-04 21:14               ` Heinz Diehl
     [not found]               ` <20121207170704.GA24395@fancy-poultry.org>
     [not found]                 ` <CAKMK7uHNn9b1TdUaUn=4DFhF=zBtZToOtF2uSRf2doVCTOdzaQ@mail.gmail.com>
     [not found]                   ` <20121207204406.GA26309@fritha.org>
     [not found]                     ` <20121207204406.GA26309-iEI8Y0CNJBYdnm+yROfE0A@public.gmane.org>
2012-12-07 21:08                       ` Daniel Vetter
     [not found]                         ` <CAKMK7uEd_KY+FS9UKqRcFnKuUo5_8TnWnAVgLm7ogtbKU7OVNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-12-07 21:53                           ` Chris Wilson
     [not found]                             ` <f5ae8a$7ojl8o-vB7d4uKqMByEUgXnM9ftUFDQ4js95KgL@public.gmane.org>
2012-12-08 14:30                               ` Heinz Diehl
     [not found]                                 ` <20121208143053.GA3376-iEI8Y0CNJBYdnm+yROfE0A@public.gmane.org>
2012-12-11 10:24                                   ` Chris Wilson
     [not found]                                     ` <84c8a8$6tcpes-zyQnk7H6ZEMLll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2012-12-11 15:34                                       ` Heinz Diehl
2012-12-08 13:06                           ` Heinz Diehl
     [not found]                             ` <20121208130648.GA3311-iEI8Y0CNJBYdnm+yROfE0A@public.gmane.org>
2012-12-11 10:22                               ` Daniel Vetter [this message]
     [not found]                                 ` <20121211102225.GP11556-dv86pmgwkMBes7Z6vYuT8azUEOm+Xw19@public.gmane.org>
2012-12-11 16:11                                   ` Heinz Diehl
2012-12-04 21:08             ` Heinz Diehl
2012-12-04 22:09               ` Lekensteyn
2012-12-04 22:21                 ` Daniel Vetter
2012-12-06  9:35                   ` Heinz Diehl
2012-12-06 16:24                     ` Heinz Diehl
2012-12-06 18:21                       ` Heinz Diehl
2012-12-05  6:35                 ` Heinz Diehl

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=20121211102225.GP11556@phenom.ffwll.local \
    --to=daniel-/w4ywyx8dfk@public.gmane.org \
    --cc=chris-Y6uKTt2uX1cEflXRtASbqLVCufUGDwFn@public.gmane.org \
    --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=htd-iEI8Y0CNJBYdnm+yROfE0A@public.gmane.org \
    --cc=intel-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.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.