All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerome Glisse <j.glisse@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Hugh@freedesktop.org, Dickins <hughd@google.com>,
	Al Viro <viro@zeniv.linux.org.uk>,
	DRI <dri-devel@lists.freedesktop.org>
Subject: Re: i915 modeset memory corruption issues? (Fwd: Oops in ext3_block_to_path.isra.40+0x26/0x11b)
Date: Mon, 19 Mar 2012 12:16:35 -0400	[thread overview]
Message-ID: <1332173795.2986.2.camel@localhost.localdomain> (raw)
In-Reply-To: <CA+55aFxc42BSQwTxQL8gdxJP7PckgbaTV8nVD3EtyiLGh0SBbw@mail.gmail.com>

On Sat, 2012-03-17 at 14:14 -0700, Linus Torvalds wrote:
> On Sat, Mar 17, 2012 at 1:23 PM, Dave Airlie <airlied@gmail.com> wrote:
> >
> > I did however get a flashback in google to this:
> >
> > http://lists.fedoraproject.org/pipermail/scm-commits/2010-July/456636.html
> >
> > Linus don't think we ever did work out why that worked, I wonder if we
> > lost something after that.
> 
> Hmm. Maybe we should stop making the default gfp_mask be
> GFP_HIGHMEM_MOVABLE (see inode_init_always() in fs/inode.c), and
> instead add the _MOVABLE flag only for mappings that use
> "generic_file_mmap()".
> 
> It does sound a bit scary to just make default mappings use MOVABLE
> pages, when we know that can be incorrect for some cases.
> 
> But that would require that filesystems like ext4 etc that don't just
> use the generic_file_mmap() function would have add do that MOVABLE
> thing on their own. And the *normal* case is certainly that pages are
> movable and putting them in themovable zone should be ok. It's just
> *not* ok if you also map them into some hardware GTT thing or just
> otherwise keep track of the pages directly, like DRI does.
> 
> The other possibility is to just make this a shm thing, since it's
> generally that layer that has the case of "pages allocated with the
> mapping gfp masks". Hugh Dickins clearly tried to make sure that the
> DRM initialization of the gfp mask was honored, but maybe there is
> some case where it is missed. Hugh added a mapping_set_gfp_mask() to
> i915_gem_alloc_object(), but maybe we have i915 shmem mappings that
> get set up through some other path.
> 
> What about the ttm swap storage thing, for example? That also does
> shmem_file_setup(), without limiting the pages. But I don't think i915
> uses ttm, right?

It's not an issue for ttm, as we never us page allocated through shmem
for the hw. We use shmem to swapout buffer object (ttm_tt_swapout func
in ttm_tt.c).

Cheers,
Jerome

  parent reply	other threads:[~2012-03-19 16:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16 16:11 i915 modeset memory corruption issues? (Fwd: Oops in ext3_block_to_path.isra.40+0x26/0x11b) Linus Torvalds
2012-03-16 16:47 ` Dave Airlie
2012-03-16 23:01   ` Keith Packard
2012-03-17  7:41     ` Dave Airlie
2012-03-17 18:59       ` Keith Packard
2012-03-17 19:20         ` Dave Airlie
2012-03-17 20:23           ` Dave Airlie
2012-03-17 20:27             ` Dave Airlie
2012-03-17 21:14             ` Linus Torvalds
2012-03-17 22:09               ` Hugh Dickins
2012-03-17 22:52                 ` Linus Torvalds
2012-03-18  0:43                   ` Keith Packard
2012-03-18  1:44                     ` Hugh Dickins
2012-03-18  3:42                       ` Keith Packard
2012-03-18  5:43                         ` Hugh Dickins
2012-03-18 11:55                           ` Rafael J. Wysocki
2012-03-19 17:58                             ` Hugh Dickins
2012-03-19 17:51                   ` Hugh Dickins
2012-03-19 16:16               ` Jerome Glisse [this message]
2012-03-16 22:52 ` Keith Packard
2012-03-16 23:24   ` Linus Torvalds
2012-03-17  2:55     ` Keith Packard

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=1332173795.2986.2.camel@localhost.localdomain \
    --to=j.glisse@gmail.com \
    --cc=Hugh@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hughd@google.com \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    /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.