Re: Sound and VIA

Andre M. Hedrick (hedrick@Astro.Dyer.Vanderbilt.Edu)
Mon, 1 Feb 1999 22:14:46 -0600 (CST)


On Mon, 1 Feb 1999, Sean Connor wrote:

> On Tue, Feb 02, 1999 at 02:39:14AM +0200, Roman Shterenzon wrote:
> > And I've the following problem (sometimes):
> > Feb 2 01:48:03 mapc kernel: Sound: DMA (output) timed out - IRQ/DRQ config error?
> >
> > But not frequently.
>
> Yes, I've seen this, too. I assume it's a driver problem, because it
> didn't appear before about 2.2.0pre7 or so.

This was a result of reverting the multi-mode code back to pre-2.1.122.

Edit ./drivers/block/ide-disk.c and change a stub from 1 to 0.
You will finde it near the bottom of the file.

Or get "Uniform Multi-Platform E-IDE driver Revision: 6.19" at the URL
below that a config option. '2.2.1.uniform-ide-6.19.patch.gz'

> > More important, the UDMA doesn't work:
> > Feb 2 02:06:27 mapc kernel: hda: drive_cmd: status=0x51 { DriveReady
> > SeekComple
> > te Error }
> > Feb 2 02:06:27 mapc kernel: hda: drive_cmd: error=0x04 { DriveStatusError }
> >
> > Then it falls back to DMA-2 mode.
> >
> > Do you think it's related, i.e. the chipset is either buggy, or maybe the
> > driver.

The current driver 0.01 is very limited.

> I can't boot Linux with UDMA enabled by default -- the system hangs either
> late in the kernel initalization or shortly after init is executed. However,
> if I disable UDMA in the kernel, and re-enable it in my init scripts with
> hdparm, it works fine.

Version 0.03 will autotune the host-adapter against the BIOS settings and
the drive's capablities. Read more about how to assign FIFO sizes between
the two hwif's. Default should be equal.

> Other people have been reporting miscellaneous DMA-related problems with
> the VIA chipset as well, so I'd strongly suspect that there's something
> very funky about either it, or the way Linux interacts with it. (Most
> notably, the sound card crashes don't occur under Windows or DOS.)

There are about four/five flavors of this animal and v0.03 will safely
handle two/three. Since they all use the same ID and only vary the
revision to distigush between releases. It is hard because detection
needs to split revision for init-code in ide-pci.c and not in the chipset
driver code.

I am still pondering the bestway to attempt this do the vast amount of
missing information that I would need to secure.

Cheers,
Andre Hedrick
The (NEW) Linux IDE guy
The APC UPS Specialist for Linux

http://www.dyer.vanderbilt.edu/server/udma/
http://www.dyer.vanderbilt.edu/server/apcupsd/apcupsd-3.5.2.bin.tar.gz

You just need a bigger hammer, or learn how to swing the one you have better.
(C) me.....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/