* underflow field
@ 2003-01-30 23:45 Justin T. Gibbs
2003-02-03 22:49 ` Doug Ledford
0 siblings, 1 reply; 2+ messages in thread
From: Justin T. Gibbs @ 2003-01-30 23:45 UTC (permalink / raw)
To: linux-scsi
I received a recent report of the aic7xxx driver reporting:
(scsi0:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0
(scsi0:A:0:0): Saw underflow (80 of 96 bytes). Treated as error
This is because the aic7xxx driver (and the aic79xx driver) honors
the underflow field. Has this field been deprecated and thus should
be ignored by HBA drivers? If not, why is it that scsi_scan.c doesn't
set underflow to 0 (or maybe 1 in this case) for commands that can have
variable length responses? The above is a fetch of the serial number
from VPD page 0x80.
--
Justin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: underflow field
2003-01-30 23:45 underflow field Justin T. Gibbs
@ 2003-02-03 22:49 ` Doug Ledford
0 siblings, 0 replies; 2+ messages in thread
From: Doug Ledford @ 2003-02-03 22:49 UTC (permalink / raw)
To: Justin T. Gibbs; +Cc: linux-scsi
On Thu, Jan 30, 2003 at 04:45:48PM -0700, Justin T. Gibbs wrote:
> I received a recent report of the aic7xxx driver reporting:
>
> (scsi0:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0
> (scsi0:A:0:0): Saw underflow (80 of 96 bytes). Treated as error
>
> This is because the aic7xxx driver (and the aic79xx driver) honors
> the underflow field. Has this field been deprecated and thus should
> be ignored by HBA drivers? If not, why is it that scsi_scan.c doesn't
> set underflow to 0 (or maybe 1 in this case) for commands that can have
> variable length responses? The above is a fetch of the serial number
> from VPD page 0x80.
Because it was an oversight that needs fixing. When the VPD Inquiry code
was added it should have had a correct underflow initializer and it
doesn't look like it does.
--
Doug Ledford <dledford@redhat.com> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-03 22:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30 23:45 underflow field Justin T. Gibbs
2003-02-03 22:49 ` Doug Ledford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox