Re: Reproducible crash under 2.1.86 [solved and fixed]

Andrea Arcangeli (arcangeli@mbox.queen.it)
Tue, 17 Feb 1998 19:37:51 +0100 (CET)


On Tue, 17 Feb 1998, Andrea Arcangeli wrote:

>Please Tuomo test this patch against 2.1.86 (sould work fine also against
>2.1.87). This patch fix fine all my locks.

I forget to remove a disable/enable_dma(). With this patch (that is
against the last one) quake now run perfectly stable too ;-).

Andrea[s] Arcangeli

--- /usr/src/linux/drivers/sound/dmabuf.c Tue Feb 17 16:55:08 1998
+++ linux/drivers/sound/dmabuf.c Tue Feb 17 19:19:17 1998
@@ -659,7 +659,6 @@
{
int chan = dmap->dma;
clear_dma_ff(chan);
- disable_dma(dmap->dma);
pos = get_dma_residue(chan);
pos = dmap->bytes_in_use - pos;

@@ -682,7 +681,6 @@
pos = 0;
if (pos >= dmap->bytes_in_use)
pos = 0;
- enable_dma(dmap->dma);
}
restore_flags(flags);
/* printk( "%04x ", pos); */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu