All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Packard <keithp@keithp.com>
To: Linus Torvalds <torvalds@linux-foundation.org>,
	Dave Airlie <airlied@linux.ie>,
	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: Fri, 16 Mar 2012 15:52:22 -0700	[thread overview]
Message-ID: <867gykduqh.fsf@sumi.keithp.com> (raw)
In-Reply-To: <CA+55aFzThuvtB51+nN=-iQF9GWGJ1gDPL_Qy_38WSmJ5F6Z_5g@mail.gmail.com>

<#part sign=pgpmime>
On Fri, 16 Mar 2012 09:11:54 -0700, Linus Torvalds <torvalds@linux-foundation.org> wrote:

>  I don't know if these kinds of things have been forwarded to you, but
> there's apparently been several things like this going on - with the
> finger pointing to the i915 driver apparently clearing random memory.
> Often the end result seems to be list corruption or a NULL pointer
> dereference in the filesystem layer.

Yikes! I've been participating in the hibernation thread, but
I hadn't heard about this other random memory corruption.

We had a theory about hibernation -- unflushed FB writes that go astray
when the pages underneath the GTT get reassigned when switching from the
boot kernel to the resumed kernel.

Something similar could be happening at other times though? A graphics
page is freed with writes outstanding, the GTT entry is cleared and the
page allocated to something in the filesystem, but before the GTT entry
update is recognized by the GPU, and before pending writes are flushed,
the data gets written through the GTT to the middle of the file system
structure. That stretches the bounds of credibility though; you'd have
to have unflushed data *and* an unflushed GTT write, neither of which is
supposed to happen.

> So it might be the culprit. As the reason of the corruption is not yet
> understood, it might be that suspend/resume cycle is not necessary
> pre-requisite for this to trigger, it might just make it more likely.

That opens up a much broader scope of code that might contain problems...

-- 
keith.packard@intel.com

  parent reply	other threads:[~2012-03-16 22:52 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
2012-03-16 22:52 ` Keith Packard [this message]
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=867gykduqh.fsf@sumi.keithp.com \
    --to=keithp@keithp.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=torvalds@linux-foundation.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.