All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luben Tuikov <luben@splentec.com>
To: Douglas Gilbert <dougg@torque.net>
Cc: tonyb@cybernetics.com, linux-scsi@vger.kernel.org,
	linux-ide@vger.kernel.org
Subject: Re: ide-scsi data transfer residuals
Date: Tue, 16 Jul 2002 14:00:53 -0400	[thread overview]
Message-ID: <3D345F55.B8A2B21D@splentec.com> (raw)
In-Reply-To: 3D265179.BB1444E1@torque.net

Douglas Gilbert wrote:
> 
> Of the drivers that support "resid" most given a scatter
> gather list will use the sum of the element lengths instead
> of bufflen. Unfortunately that sum can be larger the bufflen
> due to padding and alignment requirements of the most backward
> DMA engines out there (I was burnt by the aha1542 ISA card).

And aic7xxx ``supports'' only that kind of ``residual'' ONLY
for SCSI READ, but is seems to use scsi_cmnd::bufflen for SCSI
WRITE.

Anyway, I consider this a bug as all data was read after a READ but by
setting scsi_cmd::resid in the low-level device driver (aic7xxx)
nothing works (fs layer)...

> IOW HBA driver writers, please use bufflen.

This message should probably be put somewhere right in
scsi_cmnd definition.

-- 
Luben

  parent reply	other threads:[~2002-07-16 18:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05 14:07 ide-scsi data transfer residuals Tony Battersby
2002-07-06  2:10 ` Douglas Gilbert
2002-07-06  2:10 ` Douglas Gilbert
2002-07-08 19:33   ` Tony Battersby
2002-07-16 18:00   ` Luben Tuikov
2002-07-16 18:00   ` Luben Tuikov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-07-08 16:17 Martin Peschke3
2002-07-08 16:17 Martin Peschke3
2002-07-05 14:07 Tony Battersby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D345F55.B8A2B21D@splentec.com \
    --to=luben@splentec.com \
    --cc=dougg@torque.net \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=tonyb@cybernetics.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.