I have the same problem too. 
I ran glxgears for a long time then glxgears got hung. I looked into it and 
found the 915 interrupt handler wasn't called, so 
dev_priv->sarea_priv->last_dispatch is not updated anymore. However the ring 
buffer works fine and the appropriate data had been written into the hardware 
status page. The problem still happened after I unloaded/loaded drm module. But 
this problem doesn't happen on another machine. 
The following patch works fine for me (The IRQ is still disabled).

diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index 5ff8788..b2905bb 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -331,8 +331,10 @@ static int i915_wait_irq(drm_device_t *
        DRM_DEBUG("%s irq_nr=%d breadcrumb=%d\n", __FUNCTION__, irq_nr,
                  READ_BREADCRUMB(dev_priv));

-       if (READ_BREADCRUMB(dev_priv) >= irq_nr)
+       if (READ_BREADCRUMB(dev_priv) >= irq_nr) {
+               dev_priv->sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);
                return 0;
+       }

        dev_priv->sarea_priv->perf_boxes |= I915_BOX_WAIT;

Thanks
Haihao

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Monteiro 
Basto
Sent: 2007年1月30日 0:36
To: Dominik Brodowski
Cc: [EMAIL PROTECTED]; [email protected]; [EMAIL PROTECTED]
Subject: Re: i915 trouble -- IRQ being disabled

anything related with this issue ? 
https://bugs.freedesktop.org/show_bug.cgi?id=9200#c8


On Sun, 2007-01-28 at 22:14 -0500, Dominik Brodowski wrote:
> Hi,
> 
> When I switch from the "X Window System Version 7.1.1" console to a
> terminal, IRQ 10:
> 
>  10:     200000    XT-PIC-XT        uhci_hcd:usb1, ehci_hcd:usb4, yenta, 
> yenta, [EMAIL PROTECTED]:0000:00:02.0
> 
> gets disabled (irq 10: nobody cared). The hardware is
> 
> 00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated 
> Graphics Device (rev 02)
> 
> and I was able to "git bisect" it down to the drm patches which went in
> after 2.6.19 and before 2.6.19-rc1 got released.
> 
> While I have some other issues related to that IRQ line (usb autosuspend
> can causes the IRQ 10 becoming disabled, too), this issue only appeared once
> the drm/i915 patches got merged, so I logically derive that this is a
> separate issue.
> 
> Any ideas? Any debugging you want me to do?
> 
>       Dominik
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> --
> _______________________________________________
> Dri-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dri-devel


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to