Subject: PR/34202 CVS commit: src/sys/dev/scsipi
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@netbsd.org>
List: netbsd-bugs
Date: 11/30/2006 16:25:02
The following reply was made to PR kern/34202; it has been noted by GNATS.

From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34202 CVS commit: src/sys/dev/scsipi
Date: Thu, 30 Nov 2006 16:23:21 +0000 (UTC)

 Module Name:	src
 Committed By:	christos
 Date:		Thu Nov 30 16:23:21 UTC 2006
 
 Modified Files:
 	src/sys/dev/scsipi: scsipi_all.h scsipi_cd.h scsipi_disk.h
 
 Log Message:
 PR/34202: Dave Huang: Accessing cd device on alpha causes kernel trap
 
 From the PR:
   Since struct scsipi_read_discinfo_data is an odd number of bytes long
   (35 bytes), ti ends up being unaligned. wdc_datain_pio() uses
   bus_space_read_multi_4() to read the response from the drive, and
   since ti is unaligned, it causes an unaligned access fault.
 
 Add __aligned__(4) to all the structures.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.29 -r1.30 src/sys/dev/scsipi/scsipi_all.h
 cvs rdiff -r1.14 -r1.15 src/sys/dev/scsipi/scsipi_cd.h
 cvs rdiff -r1.16 -r1.17 src/sys/dev/scsipi/scsipi_disk.h
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.