From: Andrew Morton <akpm@linux-foundation.org>
To: Dave Airlie <airlied@gmail.com>
Cc: kerolasa@gmail.com, kerolasa@iki.fi,
linux-kernel@vger.kernel.org, dri-devel@lists.sourceforge.net,
Dave Airlie <airlied@linux.ie>,
Laurent Pinchart <laurent.pinchart@skynet.be>
Subject: Re: PROBLEM: kernel BUG at drivers/gpu/drm/drm_fops.c:146!
Date: Thu, 29 Jan 2009 17:20:10 -0800 [thread overview]
Message-ID: <20090129172010.f25fe0ad.akpm@linux-foundation.org> (raw)
In-Reply-To: <21d7e9970901291706t17fc3d9aq753f90db75396639@mail.gmail.com>
On Fri, 30 Jan 2009 11:06:47 +1000 Dave Airlie <airlied@gmail.com> wrote:
> On Fri, Jan 30, 2009 at 10:30 AM, Andrew Morton
> <akpm@linux-foundation.org> wrote:
> > (cc's added)
> >
> > On Wed, 21 Jan 2009 13:27:48 +0100
> > Sami Kerola <kerolasa@iki.fi> wrote:
> >
> >> I compiled the Torvalds git kernel 2.6.29-rc2-00013 and I got an oops.
> >> The oops happens when ever X starts. Initially I was booting with run
> >> level 5 and it hung. I tried to use run level to 3 and an operating
> >> system started just fine. When I type startx the hung happen again.
> >> Please let me know if you need some more information besides oops from
> >> messages file and lspci output.
> >>
> >>
> >> Jan 21 08:53:58 lelux kernel: ------------[ cut here ]------------
> >> Jan 21 08:53:58 lelux kernel: kernel BUG at drivers/gpu/drm/drm_fops.c:146!
> >
> > I assume that 2.6.28 didn't do this?
>
> This is a userspace race between udev and libdrm, I'm not sure we can do
> anything in the kernel other than BUG, maybe we should just WARN instead.
>
> Basically, libdrm creates devices nodes, the initial drm opening gets that, udev
> comes along when the module is loaded and re-creates the device node,
> when AIGLX opens the device
> it can't figure out wtf just happened, as the inode->i_mapping we use
> to store the GEM device mmap ranges is different.
>
> I think building libdrm with --enable-udev is the correct answer, and
> maybe switching this to a WARN so it doesn't blow up.
>
> maybe we shouldn't be storing the inode mapping like this? anyone any
> better idea?
>
hm, I'm a bit surprised to see the drm code using `struct
address_space' and read_mapping_page() and unmap_mapping_range() and
such. I thought those only worked with regular files and pagecache :)
Is it possible to briefly explain what's going on there?
What instance of address_space_operations does ->dev_mapping actually
point at?
next prev parent reply other threads:[~2009-01-30 1:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a6f8318b0901210358w7cced8e9yab86c487b3587d75@mail.gmail.com>
2009-01-21 12:27 ` PROBLEM: kernel BUG at drivers/gpu/drm/drm_fops.c:146! Sami Kerola
2009-01-30 0:30 ` Andrew Morton
2009-01-30 1:06 ` Dave Airlie
2009-01-30 1:17 ` Dan Nicholson
2009-01-30 1:20 ` Andrew Morton [this message]
2009-01-30 1:43 ` Dave Airlie
2009-01-30 3:50 ` Jesse Barnes
2009-01-30 4:44 ` Andrew Morton
2009-01-30 8:42 ` Sami Kerola
2009-01-30 9:13 ` Thomas Hellström
2009-01-30 9:21 ` Andrew Morton
2009-01-30 10:42 ` Thomas Hellström
2009-01-30 16:55 ` Jesse Barnes
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=20090129172010.f25fe0ad.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=airlied@gmail.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.sourceforge.net \
--cc=kerolasa@gmail.com \
--cc=kerolasa@iki.fi \
--cc=laurent.pinchart@skynet.be \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox