From: Linus Torvalds <torvalds@linux-foundation.org>
To: reinette chatre <reinette.chatre@intel.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>,
Eric Anholt <eric@anholt.net>, "Ma, Ling" <ling.ma@intel.com>,
"bugzilla-daemon@bugzilla.kernel.org"
<bugzilla-daemon@bugzilla.kernel.org>
Subject: Re: [Bug #13819] system freeze when switching to console
Date: Tue, 8 Sep 2009 12:19:05 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.2.01.0909081209260.7458@localhost.localdomain> (raw)
In-Reply-To: <alpine.LFD.2.01.0909081039300.7458@localhost.localdomain>
On Tue, 8 Sep 2009, Linus Torvalds wrote:
>
> The code here is
>
> 16: 48 8b 80 00 01 00 00 mov 0x100(%rax),%rax
> 1d: 48 8b 50 08 mov 0x8(%rax),%rdx
> 21: 48 85 d2 test %rdx,%rdx
> 24: 74 11 je 0x37
> 26: 49 8b 44 24 78 mov 0x78(%r12),%rax
> 2b:* 8b 80 84 00 00 00 mov 0x84(%rax),%eax <-- trapping instruction
> 31: 89 82 08 08 00 00 mov %eax,0x808(%rdx)
> 37: f6 45 a0 02 testb $0x2,-0x60(%rbp)
>
> and that "testb $0x2, -0x60(%rbp)" seems to be the
>
> if (iir & I915_USER_INTERRUPT) {
Yeah, that seems to be the right thing.
So the actual faulting instruction is from this:
if (dev->primary->master) {
master_priv = dev->primary->master->driver_priv;
if (master_priv->sarea_priv)
master_priv->sarea_priv->last_dispatch =
READ_BREADCRUMB(dev_priv);
and it looks like %rax starts out being 'dev', then the
mov 0x100(%rax),%rax
means that %rax is now 'dev->primary', and then
mov 0x8(%rax),%rdx
moves 'dev->primary->master' into %rdx. It's not zero, so we then do that
READ_BREADCRUMB(dev_priv), which expands to
READ_HWSP(dev_priv, I915_BREADCRUMB_INDEX)
which in turn is
(((volatile u32*)(dev_priv->hw_status_page))[reg])
and it looks like dev_priv->hw_status_page is NULL.
You can verify this by looking at teh exception address:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000084
and that '84' is I915_BREADCRUMB_INDEX*4 (0x21*4).
And the problem seems to be that we've cleared the hw_status_page pointer
in i915_gem_cleanup_hws():
dev_priv->hw_status_page = NULL;
and we did that in
i915_gem_idle() ->
i915_gem_cleanup_ringbuffer() ->
i915_gem_cleanup_hws()
so now since interrupts are still enabled, you'll get a NULL pointer
dereference.
I think my patch is correct.
Linus
next prev parent reply other threads:[~2009-09-08 19:19 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-06 17:15 2.6.31-rc9: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-09-06 17:15 ` [Bug #13645] NULL pointer dereference at (null) (level2_spare_pgt) Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13836] suspend script fails, related to stdout? Rafael J. Wysocki
2009-09-07 3:28 ` Tomas M.
2009-09-10 21:05 ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13809] oprofile: possible circular locking dependency detected Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13740] X server crashes with 2.6.31-rc2 when options are changed Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13869] Radeon framebuffer (w/o KMS) corruption at boot Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-09-08 16:29 ` reinette chatre
2009-09-08 17:00 ` Linus Torvalds
2009-09-08 17:36 ` reinette chatre
2009-09-08 18:06 ` Linus Torvalds
2009-09-08 18:20 ` Jesse Barnes
2009-09-08 19:26 ` Linus Torvalds
2009-09-08 19:31 ` Jesse Barnes
2009-09-08 22:06 ` Linus Torvalds
2009-09-08 22:11 ` Jesse Barnes
2009-09-08 23:36 ` Linus Torvalds
2009-09-08 23:45 ` Jesse Barnes
2009-09-08 23:05 ` Jesse Barnes
2009-09-08 23:56 ` reinette chatre
2009-09-08 19:19 ` Linus Torvalds [this message]
2009-09-08 22:37 ` reinette chatre
2009-09-08 23:16 ` Jesse Barnes
2009-09-08 23:27 ` reinette chatre
2009-09-08 17:24 ` Jesse Barnes
2009-09-06 17:24 ` [Bug #13733] 2.6.31-rc2: irq 16: nobody cared Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13906] Huawei E169 GPRS connection causes Ooops Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13935] 2.6.31-rcX breaks Apple MightyMouse (Bluetooth version) Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13940] iwlagn and sky2 stopped working, ACPI-related Rafael J. Wysocki
2009-09-06 20:55 ` Ricardo Jorge da Fonseca Marques Ferreira
2009-09-06 21:11 ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13942] Troubles with AoE and uninitialized object Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13943] WARNING: at net/mac80211/mlme.c:2292 with ath5k Rafael J. Wysocki
2009-09-08 19:30 ` Fabio Comolli
2009-09-10 21:09 ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13941] x86 Geode issue Rafael J. Wysocki
2009-09-06 20:30 ` Martin-Éric Racine
2009-09-06 21:12 ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13947] Libertas: Association request to the driver failed Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13950] Oops when USB Serial disconnected while in use Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13987] Received NMI interrupt at resume Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13948] ath5k broken after suspend-to-ram Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14013] hd don't show up Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14018] kernel freezes, inotify problem Rafael J. Wysocki
2009-09-06 21:37 ` Eric Paris
2009-09-06 21:51 ` Rafael J. Wysocki
2009-09-09 5:58 ` Christoph Thielecke
2009-09-06 17:24 ` [Bug #14017] _end symbol missing from Symbol.map Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14058] Oops in fsnotify Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14070] lockdep warning triggered by dup_fd Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14043] System sometimes hangs during boot Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14103] cdc_acm gives I/O error Rafael J. Wysocki
2009-09-09 16:49 ` Stefan Schmidt
2009-09-06 17:24 ` [Bug #14095] Asus EeePC 1005HA-M: Suspend hangs and disables the wireless Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14133] WARNING: at arch/x86/kernel/smp.c:117 native_smp_send_reschedule Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14114] Tuning a saa7134 based card is broken in kernel 2.6.31-rc7 Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14135] NULL pointer dereference in ima_counts_put Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14138] Regression in suspend to ram Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14136] readcd Oops Rafael J. Wysocki
2009-09-07 5:38 ` Bob Tracy
2009-09-10 21:11 ` Rafael J. Wysocki
2009-09-11 5:02 ` Bob Tracy
2009-09-06 17:24 ` [Bug #14137] usb console regressions Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14140] 2.6.31-rc9 breaks gianfar Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14141] order 2 page allocation failures Rafael J. Wysocki
2009-09-09 15:22 ` Mel Gorman
2009-09-10 21:14 ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14139] Output to external monitor is broken Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2009-08-25 20:00 2.6.31-rc7-git2: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-25 20:34 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-08-19 20:20 2.6.31-rc6-git5: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-19 20:26 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-08-19 23:35 ` reinette chatre
2009-08-20 14:55 ` Rafael J. Wysocki
2009-08-09 20:36 2.6.31-rc5-git5: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-09 20:44 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-08-02 18:49 2.6.31-rc5: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-08-02 18:58 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-07-26 20:23 2.6.31-rc4: Reported regressions from 2.6.30 Rafael J. Wysocki
2009-07-26 20:28 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
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=alpine.LFD.2.01.0909081209260.7458@localhost.localdomain \
--to=torvalds@linux-foundation.org \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=eric@anholt.net \
--cc=kernel-testers@vger.kernel.org \
--cc=ling.ma@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=reinette.chatre@intel.com \
--cc=rjw@sisk.pl \
/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