From: Ryan Harper <ryanh@us.ibm.com>
To: Paul Brook <paul@codesourcery.com>
Cc: Ryan Harper <ryanh@us.ibm.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH 3/4] LSI53C895A: Implement TARGET RESET message
Date: Mon, 8 Dec 2008 17:49:44 -0600 [thread overview]
Message-ID: <20081208234944.GM13481@us.ibm.com> (raw)
In-Reply-To: <200812082336.34006.paul@codesourcery.com>
* Paul Brook <paul@codesourcery.com> [2008-12-08 17:37]:
>
> > Which I figured was because lsi_soft_reset doesn't initialize
> > current_dma_len. I added current_dma_len to soft_reset and now we can
> > probe with out failing, and existing partitions on the device show up,
> > but any further use of the device results in broken behavior.
> >...
> > Because the driver is issueing bus resets, we're clobbering the scratch
> > registers.
>
> In that case I'm still very suspicious of your parch. Why are you clearing
> some of the scratch registers? It sounds like you need to separate a bus
> reset from a hard reset.
Well, what linux calls bus reset is what is currently wired up to
lsi_soft_reset:
if (val & LSI_ISTAT0_SRST) {
lsi_soft_reset(s);
}
That's the only caller of lsi_soft_reset() besides device init. I am
digging deep trying to find out why linux does a bus reset. It happens
after handling a REPORT LUNS command, which if I'm reading scsi-disk.c
right, we return just LUN0 in the list. Linux then walks the results of
the REPORT LUNS command sending inquiry commands to each one.
Since I don't have this pinned down as well as I thought I did, I'd
appreciate any comments on the first 2 patches. The last two patches
are to address a rather uncommon mode of the linux driver so, if the
first two patches are acceptable, I'd like to see those go in.
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com
next prev parent reply other threads:[~2008-12-08 23:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 18:07 [Qemu-devel] [PATCH 0/4] LSI53C895A: Implemented 64-bit Block Moves Ryan Harper
2008-12-08 18:07 ` [Qemu-devel] [PATCH 1/4] LSI53C895A: Rename dmbs register to dbms Ryan Harper
2008-12-10 15:39 ` [Qemu-devel] " Anthony Liguori
2008-12-08 18:07 ` [Qemu-devel] [PATCH 2/4] Add 64-bit Block Move support (Direct & Table Indirect) Ryan Harper
2008-12-10 15:39 ` [Qemu-devel] " Anthony Liguori
2008-12-08 18:07 ` [Qemu-devel] [PATCH 3/4] LSI53C895A: Implement TARGET RESET message Ryan Harper
2008-12-08 18:38 ` Paul Brook
2008-12-08 18:41 ` Ryan Harper
2008-12-08 18:58 ` Ryan Harper
2008-12-08 23:36 ` Paul Brook
2008-12-08 23:49 ` Ryan Harper [this message]
2008-12-08 18:07 ` [Qemu-devel] [PATCH 4/4] LSI53C895A: Don't reset scratch C-R on soft reset Ryan Harper
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=20081208234944.GM13481@us.ibm.com \
--to=ryanh@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=paul@codesourcery.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).