Re: [Dri-devel] i810 sharing interrupts race condition..
> > I've attached a second patch to > xc/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c that may also > fix the problem but which I haven't tested, yeah you can ignore the patch, but the idea is correct I think, the patch is bogus using variables from places that dont exist :-)... of course what it should do it is more like : --- xc/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c.orig 2003-03-24 15:17:38.0 +1100 +++ xc/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c 2003-03-24 16:21:08.0 +1100 @@ -948,6 +948,12 @@ { ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; I810Ptr pI810 = I810PTR(pScrn); + I810DRIPtr pI810DRI = (I810DRIPtr) pI810->pDRIInfo->devPrivate; + + if (pI810DRI->irq) { + drmCtlUninstHandler(pI810->drmSubFD); + pI810DRI->irq = 0; + } I810CleanupDma(pScrn); --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Dri-devel] i810 sharing interrupts race condition..
I've just had the misfortune of having my NFSROOT system (lots of network interrupts), have its card sharing interrupts with the i810 graphics.. once I run anything 3d the kernel oops.. The attached patch contains the quick fix which is to check in thr irq handler if dev->dev_private is NULL or not before going using it .. also a udelay patch included which I think the DRI tree has but the LK one doesn't(arrgg too many trees :-).. I've attached a second patch to xc/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c that may also fix the problem but which I haven't tested, What happens is the DMA cleanup occurs which frees the private data, and an interrupt comes in from the network card most likely but the i810 driver is let know as the IRQ hasn't been deregistered yet.. This issue also will affect the i830 and gamma (not that anyone cares) but maybe others as well as my DRI tree is old enough at this stage Dave. -- David Airlie, Software Engineer http://www.skynet.ie/~airlied / [EMAIL PROTECTED] pam_smb / Linux DecStation / Linux VAX / ILUG personIndex: drivers/char/drm/i810_dma.c === RCS file: /home/sapphire/saphcvs/kernel-2.4/drivers/char/drm/i810_dma.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 i810_dma.c --- drivers/char/drm/i810_dma.c 26 Feb 2003 01:37:26 - 1.1.1.2 +++ drivers/char/drm/i810_dma.c 24 Mar 2003 04:01:46 - @@ -36,6 +36,7 @@ #include "i810_drv.h" #include/* For task queue support */ #include +#include /* in case we don't have a 2.3.99-pre6 kernel or later: */ #ifndef VM_DONTCOPY @@ -317,7 +318,7 @@ goto out_wait_ring; } - for (i = 0 ; i < 2000 ; i++) ; + udelay(1); } out_wait_ring: @@ -894,19 +895,23 @@ void i810_dma_service(int irq, void *device, struct pt_regs *regs) { drm_device_t *dev = (drm_device_t *)device; - drm_i810_private_t *dev_priv = (drm_i810_private_t *)dev->dev_private; + drm_i810_private_t *dev_priv; u16 temp; - atomic_inc(&dev->counts[_DRM_STAT_IRQ]); - temp = I810_READ16(I810REG_INT_IDENTITY_R); - temp = temp & ~(0x6000); - if(temp != 0) I810_WRITE16(I810REG_INT_IDENTITY_R, + if (dev->dev_private) { + dev_priv = (drm_i810_private_t *)dev->dev_private; + + atomic_inc(&dev->counts[_DRM_STAT_IRQ]); + temp = I810_READ16(I810REG_INT_IDENTITY_R); + temp = temp & ~(0x6000); + if(temp != 0) I810_WRITE16(I810REG_INT_IDENTITY_R, temp); /* Clear all interrupts */ - else - return; + else + return; - queue_task(&dev->tq, &tq_immediate); - mark_bh(IMMEDIATE_BH); + queue_task(&dev->tq, &tq_immediate); + mark_bh(IMMEDIATE_BH); + } } void i810_dma_immediate_bh(void *device) --- xc/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c.orig 2003-03-24 15:17:38.0 +1100 +++ xc/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c 2003-03-24 15:19:00.0 +1100 @@ -949,6 +949,11 @@ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; I810Ptr pI810 = I810PTR(pScrn); + if (info->irq) { + drmCtlUninstHandler(pI810->drmSubFD); + info->irq = 0; + } + I810CleanupDma(pScrn); if (pI810->dcacheHandle)
[Dri-devel] Apply for a online mortgage loan AA 3010PGFd2-465oeeM1843PKGW4-07-27
Fmnlpkgmujtuwjmcdlyrkusjjnxkmukgrnytcpbfkvfvwajklmwpx DON'T MISS THE LOWEST MORTGAGE RATES IN HISTORY! Do you like this? Turn low interest rates into lower house payments! Swap out high-interest debt for a lower monthly payment Mortgage refi rates may be as low as 4.95%! Poor credit not a problem! Act now before they go up! For the best mortgage rates on Planet Earth. Excellent, Poor, or Fair credit ACCEPTED CLICK HERE to check our FREE service today! If you wish no longer wish to receive mailings - click here 62V272Okwo 9512yBlu4-656l12N¬HYÞµéX¬²'²Þu¼¯*m (ZW§è¬(¥éÆz×+iÉ"§v· Ë^®«yú+²)Ýn )à~éÚÛayÈZǨ§)àjp)¦W¢>a¶Úý§l²«qç讧zßÜ&âúÞv*ÞrÚe¶°ÓMõzpëׯzYX§X¬´:âuëÞX¬¶Ë(º·~àzwÛi³ÿåËl²«qç讧zßåËlþX¬¶)ߣ÷kׯz
Re: [Dri-devel] rendering errors with current DRI CVS
Charl P. Botha wrote: Dear list, http://cpbotha.net/thingies/dri_scapula.png shows a surface-rendering of a human scapula (shoulder blade). Notice the strange extra edges that I've indicated with grotesque red arrows. http://cpbotha.net/thingies/dri_scapula_wireframe.png is a wireframe rendering of the exact same data. Notice the distinct absence of these extra edges. This is with current DRI CVS on a Radeon M7. With X 4.3.0, it renders perfectly in both cases, i.e. without the edges. I've also tried with both TCL and VTX disabled, I still get the unwanted edges. The application itself is VTK-based. My guess is that TCL is for some reason disabling itself & this is a fallback. The edges are caused by incorrect copying of vertices in the mesa t&l module when vertex buffers are filled. Somehow this bug has appeared in the mesa in the dri trunk or perhaps is present but not exposed in XFree86. Keith --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Dri-devel] rendering errors with current DRI CVS
Dear list, http://cpbotha.net/thingies/dri_scapula.png shows a surface-rendering of a human scapula (shoulder blade). Notice the strange extra edges that I've indicated with grotesque red arrows. http://cpbotha.net/thingies/dri_scapula_wireframe.png is a wireframe rendering of the exact same data. Notice the distinct absence of these extra edges. This is with current DRI CVS on a Radeon M7. With X 4.3.0, it renders perfectly in both cases, i.e. without the edges. I've also tried with both TCL and VTX disabled, I still get the unwanted edges. The application itself is VTK-based. Does anyone have any ideas? Thanks, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel
[Dri-devel] Alternitif Bitkisel kanser ilaci Carctol Alternative Cancer Healing
Eger kemoterapi yada radyoterapinin yan etkileri ile bogusan bir yakininiz varsa, üzülmeyin ancak bitkisel kanser ilaci Carctol'u yakindan tanimak için zaman ayirarak asagidaki link'e tiklayin. http://www.kanser-tedavisi.com Listeden adinizin silinmesini istiyorsaniz [EMAIL PROTECTED] a bos e posta yollayin. Tesekkürler Hello, if you have got an acquaintance or a friend who is suffering from the side effects of chemotherapy, please visit the site below to see the truths about alternative herb cancer medicine Carctol. http://www.kanser-tedavisi.com/English_homepage.html If you wish to be removed from our list, please send us an email at this address [EMAIL PROTECTED] so that we may remove your name. Thank you. --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel