All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: reinette chatre <reinette.chatre@intel.com>,
	"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 16:05:23 -0700	[thread overview]
Message-ID: <20090908160523.715a7412@jbarnes-g45> (raw)
In-Reply-To: <alpine.LFD.2.01.0909081502510.7458@localhost.localdomain>

On Tue, 8 Sep 2009 15:06:21 -0700 (PDT)
Linus Torvalds <torvalds@linux-foundation.org> wrote:
> And now, when I pinpointed exactly where the oops happens, and what
> the cause is, you seem to be trying to hold things up. I wanted to do
> the final 2.6.31 release yesterday, quite frankly I'm not in the
> _least_ interested in excuses, I'm interested in something that at
> least gets us back to the 2.6.30 state that doesn't oops!

Based on the earlier mail I thought this might have been a bigger
problem with the way we handle command submission and completion; but
on looking at things again (both Linus's debugging and your
configuration), I think this is actually a DRI1 & userspace related
issue.  Back in the DRI1 days, the X server told the driver when to
register and unregister its irq handler, and had some responsibility
for making sure it didn't hose things (very easy to do with the old
architecture).  Stuff like this was one of the main reasons we moved
most of the handling of this into the kernel...

We obviously need a kernel fix though; panics like this aren't
acceptable.

This fix is along the lines of Linus's initial suggestion; we
definitely are tearing down some state that the interrupt handler
needs.  And the 2D driver isn't saving us from ourselves like it used
to (previously it would uninstall the IRQ handler before tearing down
the mappings; but with the kernel in charge of those now, we have to
handle it).

This one should disable i915 interrupts (we'll still handle shared ones
just fine as no-ops) at the point where we no longer need them, then
let the DRM core code take care of finally unregistering it.

Ugly, but I'd like to know if it works for you.  Any chance you could
give it a try Reinette?

-- 
Jesse Barnes, Intel Open Source Technology Center

diff --git a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c index 0767521..487d902 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3990,6 +3990,7 @@ i915_gem_idle(struct drm_device *dev)
                return ret;
        }
 
+       i915_driver_irq_uninstall(dev);
        i915_gem_cleanup_ringbuffer(dev);
        mutex_unlock(&dev->struct_mutex);
 


  parent reply	other threads:[~2009-09-08 23:05 UTC|newest]

Thread overview: 129+ 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 ` 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-06 17:24   ` Rafael J. Wysocki
2009-09-07  3:28   ` Tomas M.
2009-09-07  3:28     ` Tomas M.
2009-09-10 21:05     ` Rafael J. Wysocki
2009-09-10 21:05       ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13819] system freeze when switching to console Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-08 16:29   ` reinette chatre
2009-09-08 16:29     ` reinette chatre
2009-09-08 17:00     ` Linus Torvalds
2009-09-08 17:00       ` Linus Torvalds
2009-09-08 17:36       ` reinette chatre
2009-09-08 17:36         ` reinette chatre
2009-09-08 18:06         ` Linus Torvalds
2009-09-08 18:20           ` Jesse Barnes
2009-09-08 18:20             ` Jesse Barnes
2009-09-08 19:26             ` Linus Torvalds
2009-09-08 19:26               ` Linus Torvalds
2009-09-08 19:31               ` Jesse Barnes
2009-09-08 19:31                 ` Jesse Barnes
2009-09-08 22:06                 ` Linus Torvalds
2009-09-08 22:06                   ` Linus Torvalds
2009-09-08 22:11                   ` Jesse Barnes
2009-09-08 22:11                     ` Jesse Barnes
2009-09-08 23:36                     ` Linus Torvalds
2009-09-08 23:36                       ` Linus Torvalds
2009-09-08 23:45                       ` Jesse Barnes
2009-09-08 23:05                   ` Jesse Barnes [this message]
2009-09-08 23:56                     ` reinette chatre
2009-09-08 19:19           ` Linus Torvalds
2009-09-08 19:19             ` Linus Torvalds
2009-09-08 22:37           ` reinette chatre
2009-09-08 22:37             ` reinette chatre
2009-09-08 23:16             ` Jesse Barnes
2009-09-08 23:27               ` reinette chatre
2009-09-08 23:27                 ` reinette chatre
2009-09-08 17:24   ` Jesse Barnes
2009-09-06 17:24 ` [Bug #13809] oprofile: possible circular locking dependency detected 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   ` 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   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13733] 2.6.31-rc2: irq 16: nobody cared Rafael J. Wysocki
2009-09-06 17:24   ` 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 #13906] Huawei E169 GPRS connection causes Ooops Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13940] iwlagn and sky2 stopped working, ACPI-related Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 20:55   ` Ricardo Jorge da Fonseca Marques Ferreira
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 #13943] WARNING: at net/mac80211/mlme.c:2292 with ath5k Rafael J. Wysocki
2009-09-08 19:30   ` Fabio Comolli
2009-09-08 19:30     ` Fabio Comolli
2009-09-10 21:09     ` Rafael J. Wysocki
2009-09-10 21:09       ` 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   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13942] Troubles with AoE and uninitialized object Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13941] x86 Geode issue Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 20:30   ` Martin-Éric Racine
2009-09-06 21:12     ` Rafael J. Wysocki
2009-09-06 21:12       ` 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   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13987] Received NMI interrupt at resume Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #13948] ath5k broken after suspend-to-ram Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14013] hd don't show up Rafael J. Wysocki
2009-09-06 17:24   ` 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:37     ` Eric Paris
2009-09-06 21:51     ` Rafael J. Wysocki
2009-09-09  5:58       ` Christoph Thielecke
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   ` 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 #14058] Oops in fsnotify Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14043] System sometimes hangs during boot 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 #14095] Asus EeePC 1005HA-M: Suspend hangs and disables the wireless Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14103] cdc_acm gives I/O error Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-09 16:49   ` Stefan Schmidt
2009-09-09 16:49     ` Stefan Schmidt
2009-09-06 17:24 ` [Bug #14137] usb console regressions Rafael J. Wysocki
2009-09-06 17:24   ` 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 #14136] readcd Oops Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-07  5:38   ` Bob Tracy
2009-09-10 21:11     ` Rafael J. Wysocki
2009-09-10 21:11       ` Rafael J. Wysocki
2009-09-11  5:02       ` Bob Tracy
2009-09-11  5:02         ` Bob Tracy
2009-09-06 17:24 ` [Bug #14138] Regression in suspend to ram Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14141] order 2 page allocation failures Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-09 15:22   ` Mel Gorman
2009-09-09 15:22     ` Mel Gorman
2009-09-10 21:14     ` Rafael J. Wysocki
2009-09-10 21:14       ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14139] Output to external monitor is broken Rafael J. Wysocki
2009-09-06 17:24   ` Rafael J. Wysocki
2009-09-06 17:24 ` [Bug #14140] 2.6.31-rc9 breaks gianfar 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-25 20:34   ` 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-19 23:35     ` reinette chatre
2009-08-20 14:55     ` Rafael J. Wysocki
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-09 20:44   ` 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
2009-07-26 20:28   ` 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=20090908160523.715a7412@jbarnes-g45 \
    --to=jbarnes@virtuousgeek.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 \
    --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.