Subject: Re: Faulty disk or faulty controller?
To: Quentin Garnier <>
From: Manuel Bouyer <>
List: tech-kern
Date: 07/19/2006 22:44:29
On Mon, Jul 10, 2006 at 01:53:16PM +0200, Quentin Garnier wrote:
> Hi,
> I have a machine that sometimes gets into a state where it doesn't stop
> spitting the following message on the console:
> siside0:0: unable to load xfer table DMA map for drive 0, error=22
> wd0g: DMA error reading fsbn 8065451336 of 8065451336-8066850000 (wd0 bn 8082378743; cn 8018232 tn 14 sn 
> 5), retrying
> The numbers vary depending on which sector is being accessed, and
> eventually I can get a segfault in wdc_ata_bio_intr.
> What could be happening?  I'm not convinced the disk has a problem.
> Thanks for any insight.

22 is EINVAL. bus_dma() gets a memory buffer it doesn't like. Now you need
to find why it doesn't like it. It can also be a bug in bus_dma

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference