Subject: Re: kern/35934 (read(2) from raw disk into unaligned buffer)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 03/11/2007 21:10:06
The following reply was made to PR kern/35934; it has been noted by GNATS.

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, apb@cequrux.com
Subject: Re: kern/35934 (read(2) from raw disk into unaligned buffer)
Date: Sun, 11 Mar 2007 10:19:29 +0100

 On Sat, Mar 10, 2007 at 11:10:05AM +0000, Alan Barrett wrote:
 > The following reply was made to PR kern/35934; it has been noted by GNATS.
 > 
 > From: Alan Barrett <apb@cequrux.com>
 > To: gnats-bugs@netbsd.org, netbsd-bugs@netbsd.org
 > Cc: 
 > Subject: Re: kern/35934 (read(2) from raw disk into unaligned buffer)
 > Date: Sat, 10 Mar 2007 10:56:38 +0200
 > 
 >  On Sat, 10 Mar 2007, ITOH Yasufumi wrote:
 >  > OK, I've committed patch for piixide driver.
 >  > Does it work for you?
 >  > 
 >  > sys/dev/pci/piixide.c	1.37
 >  
 >  Works for me.  Thank you.
 >  
 >  Is the inability to DMA to non-aligned addresses a hardware bug in this
 >  particular controller, or is a documented feature of PCI in general, or
 >  something in between?
 
 I can't check right now, but I suspect it's an issue with most pciide
 controllers. I'd say the right fix should be in sys//dev/ata/ata_wdc.c
 
 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --