Re: [PATCH] "killing" sg_last(), and discussion

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff Garzik
Date: Wednesday, October 31, 2007 - 3:29 am

Boaz Harrosh wrote:

The whole qc->pad_len etc. machinery was added because it solved 
problems in the field with ATAPI devices.  So sr or some userland 
application is sending lengths that are not padded to 32-bit boundary, 
probably because plenty of trivial commands can send or return odd 
amounts of data.

This used to be irrelevant, but now with SATA, even PIO data xfer 
(normally what is used for non-READ/WRITE CDBs) must be 32-bit aligned 
because both SATA DMA and SATA PIO are converted into dword-based SATA 
FIS's on the wire.

	Jeff



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] "killing" sg_last(), and discussion, Jeff Garzik, (Wed Oct 31, 1:49 am)
Re: [PATCH] "killing" sg_last(), and discussion, Jeff Garzik, (Wed Oct 31, 3:29 am)