Subject: PR/34689 CVS commit: src/sys/dev/scsipi
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: netbsd-bugs
Date: 10/01/2006 20:15:04
The following reply was made to PR kern/34689; it has been noted by GNATS.

From: Reinoud Zandijk <reinoud@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34689 CVS commit: src/sys/dev/scsipi
Date: Sun,  1 Oct 2006 20:10:31 +0000 (UTC)

 Module Name:	src
 Committed By:	reinoud
 Date:		Sun Oct  1 20:10:31 UTC 2006
 
 Modified Files:
 	src/sys/dev/scsipi: atapi_wdc.c
 
 Log Message:
 In gcc4 structures are differently aligned compared to gcc3. Lots of
 structures can thus be misaligned for DMA when declared on stack.
 
 The current atapi code accepts the misaligned dma's only screw's them up.
 This small patch disables DMA for the rare transactions that are
 misaligned. Note that all bulk-transfers are aligned due to page sizes.
 
 See PR kern/34689
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.102 -r1.103 src/sys/dev/scsipi/atapi_wdc.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.