FIFO (minor) create and (major) destroy instabilities on nv50+
Subsystems (3)
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail 0x200 to trigger PGRAPH errors. A modified version only emits NOPs (method 0x100) and represents the no error situation.
For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
drivers/gpu/drm/nouveau/nouveau_channel.c +18 -23
@@ -204,12 +204,14 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,/* disable the fifo caches */ pfifo->reassign (dev, false); + pgraph->fifo_access (dev, false);/* Create a graphics context for new channel */ ret = pgraph->create_context (chan);if (ret) {nouveau_channel_free (chan);return ret; } + pgraph->fifo_access (dev, true);/* Construct inital RAMFC for new channel */ ret = pfifo->create_context (chan);
@@ -284,30 +286,23 @@ nouveau_channel_free(struct nouveau_channel *chan)struct drm_nouveau_private *dev_priv = dev->dev_private;struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;struct nouveau_fifo_engine *pfifo = &dev_priv->engine.fifo; -unsigned long flags; +struct nouveau_fence *fence =NULL ;int ret;NV_INFO (dev,"%s: freeing fifo %d\n" , __func__, chan->id);nouveau_debugfs_channel_fini (chan); -/* Give outstanding push buffers a chance to complete */ -spin_lock_irqsave (&chan->fence.lock, flags); -nouveau_fence_update (chan); -spin_unlock_irqrestore (&chan->fence.lock, flags); -if (chan->fence.sequence != chan->fence.sequence_ack) { -struct nouveau_fence *fence =NULL ; - - ret =nouveau_fence_new (chan, &fence, true); -if (ret ==0 ) { - ret =nouveau_fence_wait (fence,NULL , false, false); -nouveau_fence_unref ((void *)&fence); - } - -if (ret) -NV_ERROR (dev,"Failed to idle channel %d.\n" , chan->id); +/* Unconditionally emit a fence, to be sure it's done. */ + ret =nouveau_fence_new (chan, &fence, true); +if (ret ==0 ) { + ret =nouveau_fence_wait (fence,NULL , false, false); +nouveau_fence_unref ((void *)&fence); } +if (ret) +NV_ERROR (dev,"Failed to idle channel %d.\n" , chan->id); +/* Ensure all outstanding fences are signaled. They should be if the * above attempts at idling were OK, but if we failed this'll tell TTM * we're done with the buffers.
@@ -317,13 +312,6 @@ nouveau_channel_free(struct nouveau_channel *chan)/* Ensure the channel is no longer active on the GPU */ pfifo->reassign (dev, false); -if (pgraph->channel (dev) == chan) { - pgraph->fifo_access (dev, false); - pgraph->unload_context (dev); - pgraph->fifo_access (dev, true); - } - pgraph->destroy_context (chan); -if (pfifo->channel_id (dev) == chan->id) { pfifo->disable (dev); pfifo->unload_context (dev);
@@ -331,6 +319,13 @@ nouveau_channel_free(struct nouveau_channel *chan) } pfifo->destroy_context (chan); +if (pgraph->channel (dev) == chan) { + pgraph->fifo_access (dev, false); + pgraph->unload_context (dev); + pgraph->fifo_access (dev, true); + } + pgraph->destroy_context (chan); + pfifo->reassign (dev, true);/* Release the channel's resources */
drivers/gpu/drm/nouveau/nouveau_drv.c +4 -0
@@ -185,6 +185,10 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state) pfifo->disable (dev); pfifo->unload_context (dev); pgraph->unload_context (dev); +/* This may seem odd, but without it nv50 doesn't resume again. +* It's specifically bit 0 from register 0x00400500 that needs to be set. +*/ + pgraph->fifo_access (dev, true);NV_INFO (dev,"Suspending GPU objects...\n" ); ret =nouveau_gpuobj_suspend (dev);
drivers/gpu/drm/nouveau/nouveau_irq.c +5 -2
@@ -579,11 +579,14 @@ nv50_pgraph_irq_handler(struct drm_device *dev) }if (status &0x00001000 ) { -nv_wr32 (dev,0x400500 ,0x00000000 ); +struct drm_nouveau_private *dev_priv = dev->dev_private; +struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph; + + pgraph->fifo_access (dev, false);nv_wr32 (dev,NV03_PGRAPH_INTR ,NV_PGRAPH_INTR_CONTEXT_SWITCH );nv_wr32 (dev,NV40_PGRAPH_INTR_EN ,nv_rd32 (dev,NV40_PGRAPH_INTR_EN ) & ~NV_PGRAPH_INTR_CONTEXT_SWITCH ); -nv_wr32 (dev,0x400500 ,0x00010001 ); + pgraph->fifo_access (dev, true);nv50_graph_context_switch (dev);
drivers/gpu/drm/nouveau/nv50_fifo.c +24 -3
@@ -89,18 +89,39 @@ static void nv50_fifo_channel_disable(struct drm_device *dev, int channel, bool nt) { struct drm_nouveau_private *dev_priv = dev->dev_private; +struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;uint32_t inst;NV_DEBUG (dev,"ch%d, nt=%d\n" , channel, nt); +if (!nt) { +nv50_fifo_init_thingo (dev); + +nv_wr32 (dev,0x2504 ,nv_rd32 (dev,0x2504 ) |1 ); +if (!nv_wait (0x2504 ,0x11 ,0x11 )) +NV_ERROR (dev,"0x2504 timed out, 0x%08X\n" , +nv_rd32 (dev,0x2504 )); + +/* This is PGRAPH, but the blob does it "here". +* I've seen both cases where the blob only reads and where +* it also writes. I can only assume it's related to the pgraph +* channel. It's done in pgraph unload context if it doesn't +* happen here. +*/ +if (pgraph->channel (dev) == dev_priv->fifos[channel]) { + inst =nv_rd32 (dev,NV50_PGRAPH_CTXCTL_CUR ) + &NV50_PGRAPH_CTXCTL_CUR_INSTANCE ; +nv_wr32 (dev,NV50_PGRAPH_CTXCTL_CUR , inst); + } + +nv_wr32 (dev,0x2504 ,nv_rd32 (dev,0x2504 ) & ~1 ); + } +if (IS_G80 ) inst =NV50_PFIFO_CTX_TABLE_INSTANCE_MASK_G80 ;else inst =NV50_PFIFO_CTX_TABLE_INSTANCE_MASK_G84 ;nv_wr32 (dev,NV50_PFIFO_CTX_TABLE (channel), inst); - -if (!nt) -nv50_fifo_init_thingo (dev); } static void
drivers/gpu/drm/nouveau/nv50_graph.c +41 -12
86 lines not on this page · raw message
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001020736r4b17971ftb5e7c718433df181-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Please do report your successes, and not only failures.
Quoted 31 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001020739y57ad5e81u19df23fd127350bb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Am Samstag, 2. Januar 2010 16:39:55 schrieb Maarten Maathuis:
Quoted 1 line
Please do report your successes, and not only failures.
Hi,
I included it in my openSUSE Build Service project. I think some people will update und try it...
Johannes
Quoted 38 lines · Maarten Maathuis
Quoted 27 lines
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): [email protected]
I hope you did add a note for your victims :-)
Quoted 52 lines · Johannes Obermayr
Am Samstag, 2. Januar 2010 16:39:55 schrieb Maarten Maathuis:
Quoted 1 line
Please do report your successes, and not only failures.
Hi,
I included it in my openSUSE Build Service project. I think some people will update und try it...
Johannes
Quoted 29 lines · Maarten Maathuis
Quoted 27 lines
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 9 lines
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
I've narrowed it down further, the "pgraph->fifo_access" bit is still cleanup (register 0x400500 represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
drivers/gpu/drm/nouveau/nouveau_channel.c +7 -7
@@ -276,13 +276,6 @@ nouveau_channel_free(struct nouveau_channel *chan)/* Ensure the channel is no longer active on the GPU */ pfifo->reassign (dev, false); -if (pgraph->channel (dev) == chan) { - pgraph->fifo_access (dev, false); - pgraph->unload_context (dev); - pgraph->fifo_access (dev, true); - } - pgraph->destroy_context (chan); -if (pfifo->channel_id (dev) == chan->id) { pfifo->disable (dev); pfifo->unload_context (dev);
@@ -290,6 +283,13 @@ nouveau_channel_free(struct nouveau_channel *chan) } pfifo->destroy_context (chan); +if (pgraph->channel (dev) == chan) { + pgraph->fifo_access (dev, false); + pgraph->unload_context (dev); + pgraph->fifo_access (dev, true); + } + pgraph->destroy_context (chan); + pfifo->reassign (dev, true);/* Release the channel's resources */
drivers/gpu/drm/nouveau/nouveau_drv.c +4 -0
@@ -185,6 +185,10 @@ nouveau_pci_suspend(struct pci_dev *pdev, pm_message_t pm_state) pfifo->disable (dev); pfifo->unload_context (dev); pgraph->unload_context (dev); +/* This may seem odd, but without it nv50 doesn't resume again. +* It's specifically bit 0 from register 0x00400500 that needs to be set. +*/ + pgraph->fifo_access (dev, true);NV_INFO (dev,"Suspending GPU objects...\n" ); ret =nouveau_gpuobj_suspend (dev);
drivers/gpu/drm/nouveau/nv50_fifo.c +17 -3
@@ -89,18 +89,32 @@ static void nv50_fifo_channel_disable(struct drm_device *dev, int channel, bool nt) { struct drm_nouveau_private *dev_priv = dev->dev_private; +struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph;uint32_t inst;NV_DEBUG (dev,"ch%d, nt=%d\n" , channel, nt); +if (!nt) { +nv50_fifo_init_thingo (dev); + +/* This is PGRAPH, but the blob does it "here". +* I've seen both cases where the blob only reads and where +* it also writes. I can only assume it's related to the pgraph +* channel. It's done in pgraph unload context if it doesn't +* happen here. +*/ +if (pgraph->channel (dev) == dev_priv->fifos[channel]) { + inst =nv_rd32 (dev,NV50_PGRAPH_CTXCTL_CUR ) + &NV50_PGRAPH_CTXCTL_CUR_INSTANCE ; +nv_wr32 (dev,NV50_PGRAPH_CTXCTL_CUR , inst); + } + } +if (IS_G80 ) inst =NV50_PFIFO_CTX_TABLE_INSTANCE_MASK_G80 ;else inst =NV50_PFIFO_CTX_TABLE_INSTANCE_MASK_G84 ;nv_wr32 (dev,NV50_PFIFO_CTX_TABLE (channel), inst); - -if (!nt) -nv50_fifo_init_thingo (dev); } static void
drivers/gpu/drm/nouveau/nv50_graph.c +15 -8
@@ -275,21 +275,28 @@ nv50_graph_load_context(struct nouveau_channel *chan)int nv50_graph_unload_context (struct drm_device *dev) { -uint32_t inst, fifo =nv_rd32 (dev,0x400500 ); +struct drm_nouveau_private *dev_priv = dev->dev_private; +struct nouveau_pgraph_engine *pgraph = &dev_priv->engine.graph; +struct nouveau_fifo_engine *pfifo = &dev_priv->engine.fifo; +uint32_t inst; - inst =nv_rd32 (dev,NV50_PGRAPH_CTXCTL_CUR ); -if (!(inst &NV50_PGRAPH_CTXCTL_CUR_LOADED )) -return 0 ; - inst &=NV50_PGRAPH_CTXCTL_CUR_INSTANCE ; + inst =nv_rd32 (dev,NV50_PGRAPH_CTXCTL_CUR ) + &NV50_PGRAPH_CTXCTL_CUR_INSTANCE ; -nv_wr32 (dev,0x400500 , fifo & ~1 ); +/* The blob clearly puts this in the "middle" of pfifo context unload, +* but do it here in case it didn't happen in pfifo unload context. +*/ +if (pfifo->channel_id (dev) != pgraph->channel (dev)->id) +nv_wr32 (dev,NV50_PGRAPH_CTXCTL_CUR , inst); + +/* These 3 registers are important for suspend. +* They don't seem to be needed for normal running. +*/ nv_wr32 (dev,0x400784 , inst);nv_wr32 (dev,0x400824 ,nv_rd32 (dev,0x400824 ) |0x20 );nv_wr32 (dev,0x400304 ,nv_rd32 (dev,0x400304 ) |0x01 );nouveau_wait_for_idle (dev); -nv_wr32 (dev,0x400500 , fifo); -nv_wr32 (dev,NV50_PGRAPH_CTXCTL_CUR , inst);return 0 ; }
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001041129t5ac01715oe64f3e827c01340b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 4 lines · Maarten Maathuis
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Quoted 55 lines · Ben Skeggs
Quoted 4 lines · Maarten Maathuis
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001041454w63d62e7fk7dec9aa2922462f8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.
Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
For an identical effect, add a nice mdelay(50) right before the pgraph->fifo_access(dev, false) in nouveau_channel_free().. We have a race.
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 19 lines · Ben Skeggs
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Quoted 8 lines
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
For an identical effect, add a nice mdelay(50) right before the
pgraph->fifo_access(dev, false)innouveau_channel_free().. We have a race.
So what do you propose as the preferred solution?
Quoted 48 lines
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001050041w3cefcaacs287d6c1909c182d0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 25 lines · Maarten Maathuis
Quoted 24 lines · Ben Skeggs
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
Quoted 55 lines
Quoted 3 lines
For an identical effect, add a nice mdelay(50) right before the
pgraph->fifo_access(dev, false)innouveau_channel_free().. We have a race.So what do you propose as the preferred solution?
Quoted 48 lines
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
I've isolated a small part of a mmiotrace, which is one of the few cases where bit28 of 0x40032c is unset. The end is most interesting, the beginning is just to be sure everything is there. Maybe it helps.
W 4 543.049438 3 0xc6100c80 0x50001 0x0 0 R 4 543.049496 3 0xc6100c80 0x50000 0x0 0 R 4 543.049548 3 0xc6400500 0x10010001 0x0 0 R 4 543.049596 3 0xc6400500 0x10010001 0x0 0 W 4 543.049644 3 0xc6400500 0x10010000 0x0 0 R 4 543.049693 3 0xc6400700 0x0 0x0 0 R 4 543.049741 3 0xc6400380 0x0 0x0 0 R 4 543.049797 3 0xc6400384 0x0 0x0 0 R 4 543.049845 3 0xc6400388 0x0 0x0 0 W 4 543.049900 3 0xc6100c80 0x1 0x0 0 R 4 543.049958 3 0xc6100c80 0x0 0x0 0 W 4 543.050009 3 0xc6400500 0x10010001 0x0 0 W 4 543.050150 10 0xc41f04c8 0x1 0x0 0 W 4 543.050175 10 0xc41f04cc 0x4 0x0 0 W 4 543.050282 3 0xc6070000 0x1 0x0 0 R 4 543.050358 3 0xc6070000 0x0 0x0 0 R 4 543.050418 3 0xc661002c 0x370 0x0 0 R 4 543.050462 3 0xc661002c 0x370 0x0 0 W 4 543.050588 10 0xc41f0440 0x1 0x0 0 W 4 543.050614 10 0xc41f0444 0x4 0x0 0 W 4 543.050719 3 0xc6070000 0x1 0x0 0 R 4 543.050793 3 0xc6070000 0x0 0x0 0 W 4 543.050896 10 0xc41f03c0 0x1 0x0 0 W 4 543.050922 10 0xc41f03c4 0x4 0x0 0 W 4 543.051028 3 0xc6070000 0x1 0x0 0 R 4 543.051101 3 0xc6070000 0x0 0x0 0 W 4 543.051227 10 0xc41f05e0 0x1 0x0 0 W 4 543.051253 10 0xc41f05e4 0x4 0x0 0 W 4 543.051360 3 0xc6070000 0x1 0x0 0 R 4 543.051434 3 0xc6070000 0x0 0x0 0 W 4 543.051529 10 0xc41f0200 0x1 0x0 0 W 4 543.051554 10 0xc41f0204 0x4 0x0 0 W 4 543.051659 3 0xc6070000 0x1 0x0 0 R 4 543.051732 3 0xc6070000 0x0 0x0 0 W 4 543.051784 10 0xc439e000 0x7e 0x0 0 W 4 543.051807 10 0xc439e004 0x7e 0x0 0 W 4 543.051829 10 0xc439e008 0x1 0x0 0 W 4 543.051851 10 0xc439e00c 0x2 0x0 0 W 4 543.051926 3 0xc6070000 0x1 0x0 0 R 4 543.051999 3 0xc6070000 0x0 0x0 0 W 4 543.052158 3 0xc60032f4 0x1ff64 0x0 0 W 4 543.052228 3 0xc60032ec 0x4 0x0 0 R 4 543.052296 3 0xc60032ec 0x4 0x0 0 R 4 543.052377 3 0xc6002504 0x0 0x0 0 W 4 543.052451 3 0xc6002504 0x1 0x0 0 R 4 543.052745 3 0xc6000100 0x0 0x0 0 R 4 543.052849 3 0xc6002080 0x0 0x0 0 R 4 543.053007 3 0xc6003220 0xd06191 0x0 0 R 4 543.053075 3 0xc6003250 0x90000001 0x0 0 R 4 543.053154 3 0xc6002504 0x11 0x0 0 R 4 543.053226 3 0xc6002508 0x340 0x0 0 R 4 543.053295 3 0xc6003220 0xd06191 0x0 0 R 4 543.053365 3 0xc6003250 0x90000001 0x0 0 R 4 543.053444 3 0xc6000200 0xdff3d113 0x0 0 R 4 543.053516 3 0xc600251c 0x3f 0x0 0 R 4 543.053581 3 0xc640032c 0x8001fd9a 0x0 0 R 4 543.053630 3 0xc640032c 0x8001fd9a 0x0 0 W 4 543.053678 3 0xc640032c 0x1fd9a 0x0 0 R 4 543.053753 3 0xc60032f0 0x3 0x0 0 W 4 543.053843 3 0xc60032f0 0x7f 0x0 0 R 4 543.053921 3 0xc6003220 0xd06191 0x0 0 W 4 543.053990 3 0xc6003220 0xd06191 0x0 0 R 4 543.054054 3 0xc6002504 0x11 0x0 0 W 4 543.054123 3 0xc6002504 0x10 0x0 0 R 4 543.054195 3 0xc600260c 0x801fd99f 0x0 0 W 4 543.054268 3 0xc600260c 0x1ff68 0x0 0 W 4 543.054371 10 0xc43cdd10 0x0 0x0 0 W 4 543.054393 10 0xc43cdd14 0x0 0x0 0 W 4 543.054415 10 0xc43cdd18 0x0 0x0 0 W 4 543.054437 10 0xc43cdd1c 0x0 0x0 0 W 4 543.054460 10 0xc43cdd20 0x0 0x0 0 W 4 543.054482 10 0xc43cdd24 0x0 0x0 0 W 4 543.054504 10 0xc43cdd28 0x0 0x0 0 W 4 543.054526 10 0xc43cdd2c 0x0 0x0 0 W 4 543.054549 10 0xc43cdd30 0x0 0x0 0 W 4 543.054571 10 0xc43cdd34 0x0 0x0 0 W 4 543.054593 10 0xc43cdd38 0x0 0x0 0 W 4 543.054616 10 0xc43cdd3c 0x0 0x0 0 W 4 543.054638 10 0xc43cdd40 0x0 0x0 0 W 4 543.054660 10 0xc43cdd44 0x0 0x0 0 W 4 543.054823 3 0xc6070000 0x1 0x0 0 R 4 543.054921 3 0xc6070000 0x0 0x0 0
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001051319l27b5a227ua81dabb98d7a6289-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 82 lines · Maarten Maathuis
Quoted 25 lines · Maarten Maathuis
Quoted 24 lines · Ben Skeggs
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
Quoted 55 lines
Quoted 3 lines
For an identical effect, add a nice mdelay(50) right before the
pgraph->fifo_access(dev, false)innouveau_channel_free().. We have a race.So what do you propose as the preferred solution?
Quoted 48 lines
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 3 lines
I've isolated a small part of a mmiotrace, which is one of the few cases where bit28 of
0x40032cis unset. The end is most interesting, the beginning is just to be sure everything is there. Maybe it helps.
I meant to say bit31.
Quoted 84 lines
W 4 543.049438 3
0xc6100c800x500010x00 R 4 543.049496 30xc6100c800x500000x00 R 4 543.049548 30xc64005000x100100010x00 R 4 543.049596 30xc64005000x100100010x00 W 4 543.049644 30xc64005000x100100000x00 R 4 543.049693 30xc64007000x00x00 R 4 543.049741 30xc64003800x00x00 R 4 543.049797 30xc64003840x00x00 R 4 543.049845 30xc64003880x00x00 W 4 543.049900 30xc6100c800x10x00 R 4 543.049958 30xc6100c800x00x00 W 4 543.050009 30xc64005000x100100010x00 W 4 543.050150 100xc41f04c80x10x00 W 4 543.050175 100xc41f04cc0x40x00 W 4 543.050282 30xc60700000x10x00 R 4 543.050358 30xc60700000x00x00 R 4 543.050418 30xc661002c0x3700x00 R 4 543.050462 30xc661002c0x3700x00 W 4 543.050588 100xc41f04400x10x00 W 4 543.050614 100xc41f04440x40x00 W 4 543.050719 30xc60700000x10x00 R 4 543.050793 30xc60700000x00x00 W 4 543.050896 100xc41f03c00x10x00 W 4 543.050922 100xc41f03c40x40x00 W 4 543.051028 30xc60700000x10x00 R 4 543.051101 30xc60700000x00x00 W 4 543.051227 100xc41f05e00x10x00 W 4 543.051253 100xc41f05e40x40x00 W 4 543.051360 30xc60700000x10x00 R 4 543.051434 30xc60700000x00x00 W 4 543.051529 100xc41f02000x10x00 W 4 543.051554 100xc41f02040x40x00 W 4 543.051659 30xc60700000x10x00 R 4 543.051732 30xc60700000x00x00 W 4 543.051784 100xc439e0000x7e0x00 W 4 543.051807 100xc439e0040x7e0x00 W 4 543.051829 100xc439e0080x10x00 W 4 543.051851 100xc439e00c0x20x00 W 4 543.051926 30xc60700000x10x00 R 4 543.051999 30xc60700000x00x00 W 4 543.052158 30xc60032f40x1ff640x00 W 4 543.052228 30xc60032ec0x40x00 R 4 543.052296 30xc60032ec0x40x00 R 4 543.052377 30xc60025040x00x00 W 4 543.052451 30xc60025040x10x00 R 4 543.052745 30xc60001000x00x00 R 4 543.052849 30xc60020800x00x00 R 4 543.053007 30xc60032200xd061910x00 R 4 543.053075 30xc60032500x900000010x00 R 4 543.053154 30xc60025040x110x00 R 4 543.053226 30xc60025080x3400x00 R 4 543.053295 30xc60032200xd061910x00 R 4 543.053365 30xc60032500x900000010x00 R 4 543.053444 30xc60002000xdff3d1130x00 R 4 543.053516 30xc600251c0x3f0x00 R 4 543.053581 30xc640032c0x8001fd9a0x00 R 4 543.053630 30xc640032c0x8001fd9a0x00 W 4 543.053678 30xc640032c0x1fd9a0x00 R 4 543.053753 30xc60032f00x30x00 W 4 543.053843 30xc60032f00x7f0x00 R 4 543.053921 30xc60032200xd061910x00 W 4 543.053990 30xc60032200xd061910x00 R 4 543.054054 30xc60025040x110x00 W 4 543.054123 30xc60025040x100x00 R 4 543.054195 30xc600260c0x801fd99f0x00 W 4 543.054268 30xc600260c0x1ff680x00 W 4 543.054371 100xc43cdd100x00x00 W 4 543.054393 100xc43cdd140x00x00 W 4 543.054415 100xc43cdd180x00x00 W 4 543.054437 100xc43cdd1c0x00x00 W 4 543.054460 100xc43cdd200x00x00 W 4 543.054482 100xc43cdd240x00x00 W 4 543.054504 100xc43cdd280x00x00 W 4 543.054526 100xc43cdd2c0x00x00 W 4 543.054549 100xc43cdd300x00x00 W 4 543.054571 100xc43cdd340x00x00 W 4 543.054593 100xc43cdd380x00x00 W 4 543.054616 100xc43cdd3c0x00x00 W 4 543.054638 100xc43cdd400x00x00 W 4 543.054660 100xc43cdd440x00x00 W 4 543.054823 30xc60700000x10x00 R 4 543.054921 30xc60700000x00x00
Quoted 160 lines · Maarten Maathuis
Quoted 25 lines · Maarten Maathuis
Quoted 24 lines · Ben Skeggs
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
Quoted 55 lines
Quoted 3 lines
For an identical effect, add a nice mdelay(50) right before the
pgraph->fifo_access(dev, false)innouveau_channel_free().. We have a race.So what do you propose as the preferred solution?
Quoted 48 lines
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveauI've isolated a small part of a mmiotrace, which is one of the few cases where bit28 of
0x40032cis unset. The end is most interesting, the beginning is just to be sure everything is there. Maybe it helps.W 4 543.049438 3
0xc6100c800x500010x00 R 4 543.049496 30xc6100c800x500000x00 R 4 543.049548 30xc64005000x100100010x00 R 4 543.049596 30xc64005000x100100010x00 W 4 543.049644 30xc64005000x100100000x00 R 4 543.049693 30xc64007000x00x00 R 4 543.049741 30xc64003800x00x00 R 4 543.049797 30xc64003840x00x00 R 4 543.049845 30xc64003880x00x00 W 4 543.049900 30xc6100c800x10x00 R 4 543.049958 30xc6100c800x00x00 W 4 543.050009 30xc64005000x100100010x00 W 4 543.050150 100xc41f04c80x10x00 W 4 543.050175 100xc41f04cc0x40x00 W 4 543.050282 30xc60700000x10x00 R 4 543.050358 30xc60700000x00x00 R 4 543.050418 30xc661002c0x3700x00 R 4 543.050462 30xc661002c0x3700x00 W 4 543.050588 100xc41f04400x10x00 W 4 543.050614 100xc41f04440x40x00 W 4 543.050719 30xc60700000x10x00 R 4 543.050793 30xc60700000x00x00 W 4 543.050896 100xc41f03c00x10x00 W 4 543.050922 100xc41f03c40x40x00 W 4 543.051028 30xc60700000x10x00 R 4 543.051101 30xc60700000x00x00 W 4 543.051227 100xc41f05e00x10x00 W 4 543.051253 100xc41f05e40x40x00 W 4 543.051360 30xc60700000x10x00 R 4 543.051434 30xc60700000x00x00 W 4 543.051529 100xc41f02000x10x00 W 4 543.051554 100xc41f02040x40x00 W 4 543.051659 30xc60700000x10x00 R 4 543.051732 30xc60700000x00x00 W 4 543.051784 100xc439e0000x7e0x00 W 4 543.051807 100xc439e0040x7e0x00 W 4 543.051829 100xc439e0080x10x00 W 4 543.051851 100xc439e00c0x20x00 W 4 543.051926 30xc60700000x10x00 R 4 543.051999 30xc60700000x00x00 W 4 543.052158 30xc60032f40x1ff640x00 W 4 543.052228 30xc60032ec0x40x00 R 4 543.052296 30xc60032ec0x40x00 R 4 543.052377 30xc60025040x00x00 W 4 543.052451 30xc60025040x10x00 R 4 543.052745 30xc60001000x00x00 R 4 543.052849 30xc60020800x00x00 R 4 543.053007 30xc60032200xd061910x00 R 4 543.053075 30xc60032500x900000010x00 R 4 543.053154 30xc60025040x110x00 R 4 543.053226 30xc60025080x3400x00 R 4 543.053295 30xc60032200xd061910x00 R 4 543.053365 30xc60032500x900000010x00 R 4 543.053444 30xc60002000xdff3d1130x00 R 4 543.053516 30xc600251c0x3f0x00 R 4 543.053581 30xc640032c0x8001fd9a0x00 R 4 543.053630 30xc640032c0x8001fd9a0x00 W 4 543.053678 30xc640032c0x1fd9a0x00 R 4 543.053753 30xc60032f00x30x00 W 4 543.053843 30xc60032f00x7f0x00 R 4 543.053921 30xc60032200xd061910x00 W 4 543.053990 30xc60032200xd061910x00 R 4 543.054054 30xc60025040x110x00 W 4 543.054123 30xc60025040x100x00 R 4 543.054195 30xc600260c0x801fd99f0x00 W 4 543.054268 30xc600260c0x1ff680x00 W 4 543.054371 100xc43cdd100x00x00 W 4 543.054393 100xc43cdd140x00x00 W 4 543.054415 100xc43cdd180x00x00 W 4 543.054437 100xc43cdd1c0x00x00 W 4 543.054460 100xc43cdd200x00x00 W 4 543.054482 100xc43cdd240x00x00 W 4 543.054504 100xc43cdd280x00x00 W 4 543.054526 100xc43cdd2c0x00x00
Quoted 9 lines
W 4 543.054549 10
0xc43cdd300x00x00 W 4 543.054571 100xc43cdd340x00x00 W 4 543.054593 100xc43cdd380x00x00 W 4 543.054616 100xc43cdd3c0x00x00 W 4 543.054638 100xc43cdd400x00x00 W 4 543.054660 100xc43cdd440x00x00 W 4 543.054823 30xc60700000x10x00 R 4 543.054921 30xc60700000x00x00
This chunk comes after it, very similar to the one before it. But i forgot to add it.
W 4 543.055001 3 0xc6100c80 0x50001 0x0 0 R 4 543.055059 3 0xc6100c80 0x50000 0x0 0 R 4 543.055111 3 0xc6400500 0x10010001 0x0 0 R 4 543.055159 3 0xc6400500 0x10010001 0x0 0 W 4 543.055207 3 0xc6400500 0x10010000 0x0 0 R 4 543.055256 3 0xc6400700 0x0 0x0 0 R 4 543.055304 3 0xc6400380 0x0 0x0 0 R 4 543.055352 3 0xc6400384 0x0 0x0 0 R 4 543.055400 3 0xc6400388 0x0 0x0 0 W 4 543.055454 3 0xc6100c80 0x1 0x0 0 R 4 543.055511 3 0xc6100c80 0x0 0x0 0 W 4 543.055562 3 0xc6400500 0x10010001 0x0 0 W 4 543.055657 3 0xc600260c 0x1ff680 0x0 0 W 4 543.055745 3 0xc6000140 0x1 0x0 0 W 4 543.055954 3 0xc6000140 0x0 0x0 0 W 4 543.055996 10 0xc43cdd48 0x0 0x0 0 W 4 543.056019 10 0xc43cdd4c 0x0 0x0 0 W 4 543.056041 10 0xc43cdd50 0x0 0x0 0 W 4 543.056064 10 0xc43cdd54 0x0 0x0 0 W 4 543.056167 3 0xc6070000 0x1 0x0 0 R 4 543.056246 3 0xc6070000 0x0 0x0 0
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001051455y301526cwaa935e8dd1956231-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Patch v5 remains necessary (a simple swap of pfifo and pgraph unload isn't enough) even on a current kernel, the change is that it's now possible to generate pgraph errors without locking up. Without the patch even nop fails in loops, while running under fbcon.
Maarten.
Quoted 196 lines · Maarten Maathuis
Quoted 160 lines · Maarten Maathuis
Quoted 25 lines · Maarten Maathuis
Quoted 24 lines · Ben Skeggs
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
Quoted 55 lines
Quoted 3 lines
For an identical effect, add a nice mdelay(50) right before the
pgraph->fifo_access(dev, false)innouveau_channel_free().. We have a race.So what do you propose as the preferred solution?
Quoted 48 lines
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveauI've isolated a small part of a mmiotrace, which is one of the few cases where bit28 of
0x40032cis unset. The end is most interesting, the beginning is just to be sure everything is there. Maybe it helps.W 4 543.049438 3
0xc6100c800x500010x00 R 4 543.049496 30xc6100c800x500000x00 R 4 543.049548 30xc64005000x100100010x00 R 4 543.049596 30xc64005000x100100010x00 W 4 543.049644 30xc64005000x100100000x00 R 4 543.049693 30xc64007000x00x00 R 4 543.049741 30xc64003800x00x00 R 4 543.049797 30xc64003840x00x00 R 4 543.049845 30xc64003880x00x00 W 4 543.049900 30xc6100c800x10x00 R 4 543.049958 30xc6100c800x00x00 W 4 543.050009 30xc64005000x100100010x00 W 4 543.050150 100xc41f04c80x10x00 W 4 543.050175 100xc41f04cc0x40x00 W 4 543.050282 30xc60700000x10x00 R 4 543.050358 30xc60700000x00x00 R 4 543.050418 30xc661002c0x3700x00 R 4 543.050462 30xc661002c0x3700x00 W 4 543.050588 100xc41f04400x10x00 W 4 543.050614 100xc41f04440x40x00 W 4 543.050719 30xc60700000x10x00 R 4 543.050793 30xc60700000x00x00 W 4 543.050896 100xc41f03c00x10x00 W 4 543.050922 100xc41f03c40x40x00 W 4 543.051028 30xc60700000x10x00 R 4 543.051101 30xc60700000x00x00 W 4 543.051227 100xc41f05e00x10x00 W 4 543.051253 100xc41f05e40x40x00 W 4 543.051360 30xc60700000x10x00 R 4 543.051434 30xc60700000x00x00 W 4 543.051529 100xc41f02000x10x00 W 4 543.051554 100xc41f02040x40x00 W 4 543.051659 30xc60700000x10x00 R 4 543.051732 30xc60700000x00x00 W 4 543.051784 100xc439e0000x7e0x00 W 4 543.051807 100xc439e0040x7e0x00 W 4 543.051829 100xc439e0080x10x00 W 4 543.051851 100xc439e00c0x20x00 W 4 543.051926 30xc60700000x10x00 R 4 543.051999 30xc60700000x00x00 W 4 543.052158 30xc60032f40x1ff640x00 W 4 543.052228 30xc60032ec0x40x00 R 4 543.052296 30xc60032ec0x40x00 R 4 543.052377 30xc60025040x00x00 W 4 543.052451 30xc60025040x10x00 R 4 543.052745 30xc60001000x00x00 R 4 543.052849 30xc60020800x00x00 R 4 543.053007 30xc60032200xd061910x00 R 4 543.053075 30xc60032500x900000010x00 R 4 543.053154 30xc60025040x110x00 R 4 543.053226 30xc60025080x3400x00 R 4 543.053295 30xc60032200xd061910x00 R 4 543.053365 30xc60032500x900000010x00 R 4 543.053444 30xc60002000xdff3d1130x00 R 4 543.053516 30xc600251c0x3f0x00 R 4 543.053581 30xc640032c0x8001fd9a0x00 R 4 543.053630 30xc640032c0x8001fd9a0x00 W 4 543.053678 30xc640032c0x1fd9a0x00 R 4 543.053753 30xc60032f00x30x00 W 4 543.053843 30xc60032f00x7f0x00 R 4 543.053921 30xc60032200xd061910x00 W 4 543.053990 30xc60032200xd061910x00 R 4 543.054054 30xc60025040x110x00 W 4 543.054123 30xc60025040x100x00 R 4 543.054195 30xc600260c0x801fd99f0x00 W 4 543.054268 30xc600260c0x1ff680x00 W 4 543.054371 100xc43cdd100x00x00 W 4 543.054393 100xc43cdd140x00x00 W 4 543.054415 100xc43cdd180x00x00 W 4 543.054437 100xc43cdd1c0x00x00 W 4 543.054460 100xc43cdd200x00x00 W 4 543.054482 100xc43cdd240x00x00 W 4 543.054504 100xc43cdd280x00x00 W 4 543.054526 100xc43cdd2c0x00x00Quoted 9 lines
W 4 543.054549 10
0xc43cdd300x00x00 W 4 543.054571 100xc43cdd340x00x00 W 4 543.054593 100xc43cdd380x00x00 W 4 543.054616 100xc43cdd3c0x00x00 W 4 543.054638 100xc43cdd400x00x00 W 4 543.054660 100xc43cdd440x00x00 W 4 543.054823 30xc60700000x10x00 R 4 543.054921 30xc60700000x00x00This chunk comes after it, very similar to the one before it. But i forgot to add it.
W 4 543.055001 3
0xc6100c800x500010x00 R 4 543.055059 30xc6100c800x500000x00 R 4 543.055111 30xc64005000x100100010x00 R 4 543.055159 30xc64005000x100100010x00 W 4 543.055207 30xc64005000x100100000x00 R 4 543.055256 30xc64007000x00x00 R 4 543.055304 30xc64003800x00x00 R 4 543.055352 30xc64003840x00x00 R 4 543.055400 30xc64003880x00x00 W 4 543.055454 30xc6100c800x10x00 R 4 543.055511 30xc6100c800x00x00 W 4 543.055562 30xc64005000x100100010x00 W 4 543.055657 30xc600260c0x1ff6800x00 W 4 543.055745 30xc60001400x10x00 W 4 543.055954 30xc60001400x00x00 W 4 543.055996 100xc43cdd480x00x00 W 4 543.056019 100xc43cdd4c0x00x00 W 4 543.056041 100xc43cdd500x00x00 W 4 543.056064 100xc43cdd540x00x00 W 4 543.056167 30xc60700000x10x00 R 4 543.056246 30xc60700000x00x00
A message that is not in the archive (sent off-list or not yet received): 6d4bc9fc1001060958q3b7d0d5dka7bcd3843584d6e2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 4 lines · Maarten Maathuis
Patch v5 remains necessary (a simple swap of pfifo and pgraph unload isn't enough) even on a current kernel, the change is that it's now possible to generate pgraph errors without locking up. Without the patch even nop fails in loops, while running under fbcon.
Yes, the commit fixing the ctxprog hang wasn't intended to fix the entire problem. I actually came across that issue while working on something else, it just turns out to be one of the issues that effects channel destruction too.
Adding a simple nouveau_wait_for_idle() after pgraph->fifo_access(dev, false) is enough now to make it work *almost* all the time. Still something else we're not waiting for, mdelay(50) lets me run bitscan-fail in a loop for as long as I like without issue. I don't really have any ideas atm of what it could be yet, but i'd *really* rather fix it properly instead of hiding the problem away...
Ben.
Quoted 200 lines
Maarten.
Quoted 196 lines · Maarten Maathuis
Quoted 160 lines · Maarten Maathuis
Quoted 25 lines · Maarten Maathuis
Quoted 24 lines · Ben Skeggs
Quoted 2 lines · Maarten Maathuis
I forgot to mention that you should run nop from fbcon without X running for reliable lockups.
Yup, that's what I've been doing.
Quoted 7 lines · Ben Skeggs
Quoted 5 lines · Maarten Maathuis
Quoted 4 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Quoted 7 lines
Quoted 7 lines
I played a bit yesterday and have the gr/fifoctx unload ordering swap and queued up already, as well as unconditionally waiting on a fence at channel destroy (not really needed, but served as a bit of a cleanup anyway).
I'll try and look at the rest of the changes.
Mmm OK. The gr/fifoctx swap appears to just achieve a little extra delay before we hit the grctx unload, some of the other changes (the PGRAPH stuff in fifo channel disable specifically) work around the changed ordering.
Quoted 55 lines
Quoted 3 lines
For an identical effect, add a nice mdelay(50) right before the
pgraph->fifo_access(dev, false)innouveau_channel_free().. We have a race.So what do you propose as the preferred solution?
Quoted 48 lines
Ben.
Quoted 43 lines
Quoted 43 lines
Ben.
Quoted 39 lines
Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveauI've isolated a small part of a mmiotrace, which is one of the few cases where bit28 of
0x40032cis unset. The end is most interesting, the beginning is just to be sure everything is there. Maybe it helps.W 4 543.049438 3
0xc6100c800x500010x00 R 4 543.049496 30xc6100c800x500000x00 R 4 543.049548 30xc64005000x100100010x00 R 4 543.049596 30xc64005000x100100010x00 W 4 543.049644 30xc64005000x100100000x00 R 4 543.049693 30xc64007000x00x00 R 4 543.049741 30xc64003800x00x00 R 4 543.049797 30xc64003840x00x00 R 4 543.049845 30xc64003880x00x00 W 4 543.049900 30xc6100c800x10x00 R 4 543.049958 30xc6100c800x00x00 W 4 543.050009 30xc64005000x100100010x00 W 4 543.050150 100xc41f04c80x10x00 W 4 543.050175 100xc41f04cc0x40x00 W 4 543.050282 30xc60700000x10x00 R 4 543.050358 30xc60700000x00x00 R 4 543.050418 30xc661002c0x3700x00 R 4 543.050462 30xc661002c0x3700x00 W 4 543.050588 100xc41f04400x10x00 W 4 543.050614 100xc41f04440x40x00 W 4 543.050719 30xc60700000x10x00 R 4 543.050793 30xc60700000x00x00 W 4 543.050896 100xc41f03c00x10x00 W 4 543.050922 100xc41f03c40x40x00 W 4 543.051028 30xc60700000x10x00 R 4 543.051101 30xc60700000x00x00 W 4 543.051227 100xc41f05e00x10x00 W 4 543.051253 100xc41f05e40x40x00 W 4 543.051360 30xc60700000x10x00 R 4 543.051434 30xc60700000x00x00 W 4 543.051529 100xc41f02000x10x00 W 4 543.051554 100xc41f02040x40x00 W 4 543.051659 30xc60700000x10x00 R 4 543.051732 30xc60700000x00x00 W 4 543.051784 100xc439e0000x7e0x00 W 4 543.051807 100xc439e0040x7e0x00 W 4 543.051829 100xc439e0080x10x00 W 4 543.051851 100xc439e00c0x20x00 W 4 543.051926 30xc60700000x10x00 R 4 543.051999 30xc60700000x00x00 W 4 543.052158 30xc60032f40x1ff640x00 W 4 543.052228 30xc60032ec0x40x00 R 4 543.052296 30xc60032ec0x40x00 R 4 543.052377 30xc60025040x00x00 W 4 543.052451 30xc60025040x10x00 R 4 543.052745 30xc60001000x00x00 R 4 543.052849 30xc60020800x00x00 R 4 543.053007 30xc60032200xd061910x00 R 4 543.053075 30xc60032500x900000010x00 R 4 543.053154 30xc60025040x110x00 R 4 543.053226 30xc60025080x3400x00 R 4 543.053295 30xc60032200xd061910x00 R 4 543.053365 30xc60032500x900000010x00 R 4 543.053444 30xc60002000xdff3d1130x00 R 4 543.053516 30xc600251c0x3f0x00 R 4 543.053581 30xc640032c0x8001fd9a0x00 R 4 543.053630 30xc640032c0x8001fd9a0x00 W 4 543.053678 30xc640032c0x1fd9a0x00 R 4 543.053753 30xc60032f00x30x00 W 4 543.053843 30xc60032f00x7f0x00 R 4 543.053921 30xc60032200xd061910x00 W 4 543.053990 30xc60032200xd061910x00 R 4 543.054054 30xc60025040x110x00 W 4 543.054123 30xc60025040x100x00 R 4 543.054195 30xc600260c0x801fd99f0x00 W 4 543.054268 30xc600260c0x1ff680x00 W 4 543.054371 100xc43cdd100x00x00 W 4 543.054393 100xc43cdd140x00x00 W 4 543.054415 100xc43cdd180x00x00 W 4 543.054437 100xc43cdd1c0x00x00 W 4 543.054460 100xc43cdd200x00x00 W 4 543.054482 100xc43cdd240x00x00 W 4 543.054504 100xc43cdd280x00x00 W 4 543.054526 100xc43cdd2c0x00x00Quoted 9 lines
W 4 543.054549 10
0xc43cdd300x00x00 W 4 543.054571 100xc43cdd340x00x00 W 4 543.054593 100xc43cdd380x00x00 W 4 543.054616 100xc43cdd3c0x00x00 W 4 543.054638 100xc43cdd400x00x00 W 4 543.054660 100xc43cdd440x00x00 W 4 543.054823 30xc60700000x10x00 R 4 543.054921 30xc60700000x00x00This chunk comes after it, very similar to the one before it. But i forgot to add it.
W 4 543.055001 3
0xc6100c800x500010x00 R 4 543.055059 30xc6100c800x500000x00 R 4 543.055111 30xc64005000x100100010x00 R 4 543.055159 30xc64005000x100100010x00 W 4 543.055207 30xc64005000x100100000x00 R 4 543.055256 30xc64007000x00x00 R 4 543.055304 30xc64003800x00x00 R 4 543.055352 30xc64003840x00x00 R 4 543.055400 30xc64003880x00x00 W 4 543.055454 30xc6100c800x10x00 R 4 543.055511 30xc6100c800x00x00 W 4 543.055562 30xc64005000x100100010x00 W 4 543.055657 30xc600260c0x1ff6800x00 W 4 543.055745 30xc60001400x10x00 W 4 543.055954 30xc60001400x00x00 W 4 543.055996 100xc43cdd480x00x00 W 4 543.056019 100xc43cdd4c0x00x00 W 4 543.056041 100xc43cdd500x00x00 W 4 543.056064 100xc43cdd540x00x00 W 4 543.056167 30xc60700000x10x00 R 4 543.056246 30xc60700000x00x00
Lastest patch work for me. NV96
2010/1/4 Maarten Maathuis <[email protected]>:
Quoted 46 lines
I've narrowed it down further, the "
pgraph->fifo_access" bit is still cleanup (register0x400500represents pgraph fifo access), the rest appears needed for the desired effect. The reordering of pfifo and pgraph destroy is needed. As usual, feedback is appreciated.Maarten.
Quoted 27 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
Quoted 4 lines
As always, feedback is appreciated, especially since this is a touchy subject.
Maarten.
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Signature · 2 lines
Jabber/XMPP: [email protected] SIP VoIP: sip:17474537254-rne+wJe3e/u3Jhga2bR/9VaTQe2KTcn/@public.gmane.org
A message that is not in the archive (sent off-list or not yet received): c2673ca61001041442r1cd832cdme5a202b40b173bf0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 1 line · okias
Lastest patch work for me. NV96
NV92 works too.
Quoted 21 lines · Maarten Maathuis
Many people using nv50+ hardware are aware of gpu lockups when a fifo closes under certain conditions. Based on a mmio-trace and some trail and error testing i've come up with a patch that improves the situation on my NV96.
This patch needs testing on NV50+ hardware and regression testing on older hardware, since i did change some of the common codepaths. This is very much a work in progress, and if you have anything to add/correct, please share it.
I've also attached a 2 test apps, once is bitscan-fail from mwk, use it like ./bitscan-fail
0x200to trigger PGRAPH errors. A modified version only emits NOPs (method0x100) and represents the no error situation.For me, i can run the NOP program in loops of 10000 iterations with no problems (i've done so several times), the bitscan-fail survives 10000 iterations sometimes, but can also fail after a few thousand. In comparison, a single run of bitscan-fail could cause a gpu lockup for me in the past.
Quoted 8 lines
Please try the gallium driver, the test apps, suspend to ram. Suspend to ram isn't 100% reliable yet for me (this was always the case after strange experiments/hammering/etc), but should not regress. This goes for older hw as well, whatever worked should still work, but i wouldn't expect serious improvements there.
As always, feedback is appreciated, especially since this is a touchy subject.
I tried patch v5 on nv84. I get similar results for bitscan-fail and nop, i.e. a huge improvement compared to before (with or without X). No apparent regressions on gallium and suspend/resume.