Re: DMA errors on SATA drive in Gentoo 2004.0 using VT8237 chipset

From: Rod Smith (rodsmith_at_nessus.rodsbooks.com)
Date: 04/26/04


Date: Sun, 25 Apr 2004 20:35:13 -0400

In article <qmBic.1024$p72.733@nurse.blueyonder.net>,
        Darkinnit <dislashdot@yahoo.co.uk> writes:
>
> I'm trying to setup a Western Digital 120G SATA drive as my boot drive
> on the Abit KV8-MAX3. The Sata drives are controlled by a VIA VT8237
> chipset.

I've got an MSI K8T Neo-FSR, which also uses the VIA VT8237, and a Maxtor
80GB SATA drive.

> All goes well booting from the Gentoo 2004.0 minimal CD and lsmod shows
> sata_sil, sata_via, and libata as active modules. My SATA drive shows up
> at /dev/hde.

OK, something odd is going on here. There are two drivers for the VIA
VT8237's SATA support:

1) A driver activated in the ATA section of the kernel configuration (the
   VIA82CXXX driver). This is the ATA driver.
2) A driver activated in the SCSI section of the kernel configuration (the
   SATA_VIA driver). This is the libata driver.

Driver #2 makes the drive appear as a SCSI device -- probably /dev/sda for
the first SATA drive, unless you've got real SCSI disks, too. Thus, if the
sata_via driver is showing up in lsmod, that suggests that the system is
using the libata driver rather than the ATA driver; but if that's the
case, the drive should NOT appear as /dev/hde. Furthermore, unless you've
got multiple SATA drives, there's no reason to load an sata_sil driver
(which is for a Silicon Image controller; I suspect your motherboard uses
that for the 3rd through 6th SATA ports on the motherboard).

My hunch is that the system has loaded the ATA driver, which has "grabbed"
the device, but that the kernel and/or module utilities then got
overzealous and loaded the libata drivers for both the Silicon Image and
VIA controllers on top of that, causing the hardware to be driven by two
drivers -- not a good situation. Try unloading the libata drivers
(sata_sil, sata_via, and libata). If that fails, you may be able to burn a
fresh CD-R with those modules missing, just to force matters; or try
installing from some other boot system. When it comes time to build your
Gentoo kernel, be sure to completely omit whichever drivers you're not
using, just to be safe. Either the ATA or the libata drivers should work.

Another option would be to move the SATA drive to another SATA port -- one
controlled by the Silicon Image controller. There are also ATA and libata
drivers for it, but it's conceivable that this conflict situation wouldn't
arise if you use the Silicon Image controller. OTOH, this might complicate
installation in other ways and cause problems for your existing Windows
installation.

-- 
Rod Smith, rodsmith@rodsbooks.com
http://www.rodsbooks.com
Author of books on Linux, FreeBSD, and networking


Relevant Pages

  • Re: CD burner not working with kernel 2.6
    ... > kernel 2.4 on Debian-testing). ... > motherboard does not support booting off of SATA drives directly (No ... > usbcore: registered new driver usbfs ...
    (Debian-User)
  • Re: Xp Pro Will Not Recognize My HDD (but my BIOS will)
    ... It's been my experience with SATA drives that you need to provide Setup with ... a driver during bootup before it will recognize them. ... MS-MVP - Windows Setup / Deployment ... > I have no HDD. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: SATA Drives?
    ... on XP SP2 machines with SATA drives, ... might disappear if I change the storage driver. ... > * I'm suprised it works if the controller is not on the HCL. ...
    (microsoft.public.win2000.setup_deployment)
  • RE: SATA DRIVE
    ... I beg to differ with Andrew, however on the Gigabyte based systems that I have used, also with a single SATA drive it was necessary for a driver file. ... I created a floppy driver disk for the specicif function that was setup in BIOS. ... > If youre simply installing a SATA drive solo,no drivers are needed,the ... > only reason for installing drivers from a floppy is when 2 SATA drives ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: What laptop do you recommend?
    ... The ATA driver is identified as a "GENERIC ATA controller" and the drive is listed as UDMA33, which is either incorrect or it's just using a SATA-PATA bridge internally. ... I also had trouble getting it to attach to an atheros card I was inserting, but I think that was related to the BIOS setting for device resource allocation rather than a kernel problem. ... Once i've had it a little longer I'll drop in on the -multimedia list and see if I can spur a little work on the sound. ...
    (freebsd-questions)