From: bugzilla-daemon@bugzilla.kernel.org
To: linux-scsi@vger.kernel.org
Subject: [Bug 15007] SCSI host adapter's scatter-gather list size Issue
Date: Thu, 14 Jan 2010 11:12:22 GMT [thread overview]
Message-ID: <201001141112.o0EBCMeL017653@demeter.kernel.org> (raw)
In-Reply-To: <bug-15007-11613@http.bugzilla.kernel.org/>
http://bugzilla.kernel.org/show_bug.cgi?id=15007
--- Comment #3 from Anonymous Emailer <anonymous@kernel-bugs.osdl.org> 2010-01-14 11:12:21 ---
Reply-To: fujita.tomonori@lab.ntt.co.jp
On Thu, 14 Jan 2010 10:54:44 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=15007
>
>
>
>
>
> --- Comment #2 from nick cheng <nick.cheng@areca.com.tw> 2010-01-14 10:54:42 ---
> Thanks for reply.
> I am sure that hardware and firmware can handle 1024 scatter gather
> entries.
> I can not limit the AP to dispatch a write command with 128 sg entries.
> I just execute mkfs.ext3 /dev/sdX and print it out as the sg entry number is
> 128. I found the 128th entry indeed has no data.
So 'no data sg entry' is the cause of hardware reset?
>From a quick look at the driver, I found one bug about scatter-gather
handling.
static int arcmsr_build_ccb(struct AdapterControlBlock *acb,struct
CommandControlBlock *ccb,struct scsi_cmnd *pcmd)
{
(snip)...
arccdbsize += sizeof(struct SG32ENTRY);
}else{
struct SG64ENTRY *pdma_sg = (struct SG64ENTRY *)psge;
pdma_sg->addresshigh = address_hi;
pdma_sg->address = address_lo;
pdma_sg->length = length|cpu_to_le32(IS_SG64_ADDR);
psge += sizeof(struct SG64ENTRY);
arccdbsize += sizeof(struct SG64ENTRY);
}
sl++;
The last line doesn't work. Use sl = sg_next(sl); Using
scsi_for_each_sg() is even better (as the driver in mainline
does). With this bug, 129th sg entry is broken. If your analysis is
correct, there should be other bugs..
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
next prev parent reply other threads:[~2010-01-14 11:12 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-08 11:07 [Bug 15007] New: SCSI host adapter's scatter-gather list size Issue bugzilla-daemon
2010-01-08 11:11 ` [Bug 15007] " bugzilla-daemon
2010-01-14 8:25 ` [Bug 15007] New: " FUJITA Tomonori
2010-01-14 8:25 ` [Bug 15007] " bugzilla-daemon
2010-01-14 10:54 ` bugzilla-daemon
2010-01-14 11:12 ` FUJITA Tomonori
2010-01-14 11:12 ` bugzilla-daemon [this message]
2010-01-14 12:27 ` bugzilla-daemon
2010-01-14 12:49 ` FUJITA Tomonori
2010-01-14 12:49 ` bugzilla-daemon
2010-01-15 2:49 ` bugzilla-daemon
2010-01-18 4:18 ` FUJITA Tomonori
2010-01-15 12:23 ` bugzilla-daemon
2010-01-18 4:18 ` FUJITA Tomonori
2010-01-18 4:18 ` bugzilla-daemon
2010-01-18 4:18 ` bugzilla-daemon
2010-01-18 9:42 ` bugzilla-daemon
2010-01-18 9:45 ` bugzilla-daemon
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=201001141112.o0EBCMeL017653@demeter.kernel.org \
--to=bugzilla-daemon@bugzilla.kernel.org \
--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.