From: James Bottomley <James.Bottomley@steeleye.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Douglas Gilbert <dougg@torque.net>,
Herbert Xu <herbert@gondor.apana.org.au>,
Gene Heskett <gene.heskett@verizon.net>,
SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [ADVANSYS] Add basic highmem/DMA support
Date: 23 Jun 2004 10:51:34 -0500 [thread overview]
Message-ID: <1088005899.1639.9.camel@mulgrave> (raw)
In-Reply-To: <20040623141335.GA23365@infradead.org>
On Wed, 2004-06-23 at 09:13, Christoph Hellwig wrote:
> There were actually two patches to advansys in that timeframe. Although
> it's much more likely that the dma api patch is the culprit can you test
> with the compat code cleanup patch below reversed?:
I've got to say I would bet quite a lot on the DMA API conversion being
the culpret. Also, because the narrow board works and the wide board
doesn't, the fault has got to be in adv_build_req().
There is a logic change in that routine that seems to be a simple
initialisation clean up, but, since it's in a globally visible
structure, could be altering the behaviour. I don't have time to follow
these structures all around the logic, but just see if this makes the
problem go away. (A correct fix, if this is the problem, is going to be
a bit nasty).
James
===== drivers/scsi/advansys.c 1.41 vs edited =====
--- 1.41/drivers/scsi/advansys.c 2004-06-04 06:19:50 -05:00
+++ edited/drivers/scsi/advansys.c 2004-06-23 10:50:01 -05:00
@@ -6615,6 +6615,10 @@
* buffer command.
*/
+ scsiqp->data_cnt = cpu_to_le32(scp->request_bufflen);
+ scsiqp->vdata_addr = scp->request_buffer;
+ scsiqp->data_addr = cpu_to_le32(virt_to_bus(scp->request_buffer));
+
if (scp->use_sg == 0) {
/*
* CDB request of single contiguous buffer.
@@ -6642,10 +6646,6 @@
*/
struct scatterlist *slp;
int use_sg;
-
- scsiqp->data_cnt = 0;
- scsiqp->vdata_addr = 0;
- scsiqp->data_addr = 0;
slp = (struct scatterlist *)scp->request_buffer;
use_sg = dma_map_sg(dev, slp, scp->use_sg, scp->sc_data_direction);
next prev parent reply other threads:[~2004-06-23 15:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-08 0:39 [ADVANSYS] Add basic highmem/DMA support Herbert Xu
2004-05-19 10:38 ` Herbert Xu
2004-05-31 18:02 ` James Bottomley
2004-06-21 8:41 ` Douglas Gilbert
2004-06-21 14:28 ` James Bottomley
2004-06-22 0:35 ` Douglas Gilbert
2004-06-23 6:35 ` Douglas Gilbert
2004-06-23 14:13 ` Christoph Hellwig
2004-06-23 15:51 ` James Bottomley [this message]
2004-06-24 12:09 ` Douglas Gilbert
2004-06-24 13:00 ` James Bottomley
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=1088005899.1639.9.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=dougg@torque.net \
--cc=gene.heskett@verizon.net \
--cc=hch@infradead.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-scsi@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox