On Mon, Jul 29, 2002 at 01:48:35PM -0400, Douglas Gilbert wrote:
> Hence in the development lk 2.5 series there are many stranded
> drivers, including ide-scsi, some of which have been converted "on
> the fly". His is an incomplete list of issues to be addressed
> in lower level (HBA) driver conversions:
> - "eh" interface [mandatory]
> - io_request_lock displaced by host_lock [mandatory]
> - PCI memory/DMA interface
> - driverfs aware
> - autosense for high performance drivers (perhaps all)
>
> As you point out autosense support (at the device level)
> is now mandatory in recent scsi drafts/standards. For
> simplicity of queueing logic, the sense buffer should not
> be left for the mid level to fetch (with a REQUEST SENSE).
It will be mandatory for the LLDD to do autosense. All remnants of code
to perform a follow up request sense operation *will* dissappear from the
mid layer. OTOH, the sense command and sense buffer will be pre-set for
each device so at least the LLDD won't have to build their own command any
longer, they can just change the command pointer from the original command
to the sense command and the data buffer to the sense buffer and reissue
the request.
> I have attempted the conversion on several HBA drivers
> (of which scsi_debug is the only one I maintain). As Ben
> LaHaise has pointed out, I have skipped addressing the
> "PCI memory/DMA interface" so far.
Feel lucky. It's currently pissing me off and I'm thinking of changing
it.
--
Doug Ledford <dledford@xxxxxxxxxx> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|