From: Douglas Gilbert <dougg@torque.net>
To: James Bottomley <James.Bottomley@steeleye.com>
Cc: 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: Wed, 23 Jun 2004 16:35:17 +1000 [thread overview]
Message-ID: <40D924A5.5020705@torque.net> (raw)
In-Reply-To: <1087828082.1797.17.camel@mulgrave>
[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]
James Bottomley wrote:
> On Mon, 2004-06-21 at 03:41, Douglas Gilbert wrote:
>
>>I just tested it in lk 2.6.7-bk2 and the advansys driver is
>>broken. The disk access light stays on for several seconds
>>while it tries to read the partition table after which it
>>announces "unknown partition table". Since my rootfs is on
>>that disk it's all downhill from there.
>
>
> To be sure: the inquiry goes through and produces the correct result,
> and the read capacity, but then the read partition table fails?
>
> If so, I think that sounds like a failure in the use_sg != 0 path.
Here are some more datapoints. There are at least 3 categories
of adapters handled by the advansys driver:
- ISA: broken in lk 2.6 series
- PCI narrow (8 bit SCSI bus e.g. ABP-940U): working in 2.6.7-bk2
- PCI wide (16 bit SCSI bus, e.g. ASB-3940U2W): broken in 2.6.7-bk2
but was working in lk 2.6.7
By playing around with the U2W adapter I found that it does
work when use_sg==0 but the returned data becomes incorrect
30 bytes into the transfer when use_sg==2. It is almost as if
the scatter gather DMA kicks off ok then stalls taking
several seconds to complete (with no timeout).
This was tested with:
sg_dd if=/dev/sg1 of=t bs=512 count=63
sg_dd if=/dev/sg1 of=tt bs=512 count=65
Since the sg driver bypasses scatter gather when the transfer
is <= 32 KB then the first sg_dd works and the second one
fails as described above.
Any suggestions for further testing?
Attached is a small patch to bump the version number
and fix the compile error when ADVANSYS_DEBUG is
defined.
Doug Gilbert
[-- Attachment #2: advansys_267bk2deb --]
[-- Type: text/plain, Size: 739 bytes --]
--- linux/drivers/scsi/advansys.c 2004-06-22 16:56:10.000000000 +1000
+++ linux/drivers/scsi/advansys.c267bk2deb 2004-06-23 16:28:45.599854928 +1000
@@ -1,4 +1,4 @@
-#define ASC_VERSION "3.3GJ" /* AdvanSys Driver Version */
+#define ASC_VERSION "3.3K" /* AdvanSys Driver Version */
/*
* advansys.c - Linux Host Driver for AdvanSys SCSI Adapters
@@ -9198,9 +9198,7 @@
" timeout_per_command %d, timeout_total %d, timeout %d\n",
s->timeout_per_command, s->timeout_total, s->timeout);
- printk(
-" internal_timeout %u, flags %u\n",
- s->internal_timeout, s->flags);
+ printk(" internal_timeout %u\n", s->internal_timeout);
printk(
" scsi_done 0x%lx, done 0x%lx, host_scribble 0x%lx, result 0x%x\n",
next prev parent reply other threads:[~2004-06-23 6:35 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 [this message]
2004-06-23 14:13 ` Christoph Hellwig
2004-06-23 15:51 ` James Bottomley
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=40D924A5.5020705@torque.net \
--to=dougg@torque.net \
--cc=James.Bottomley@steeleye.com \
--cc=gene.heskett@verizon.net \
--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 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.