All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: sparclinux@vger.kernel.org
Subject: Re: [PATCH]: Better serial console identification
Date: Thu, 24 May 2007 07:35:28 +0000	[thread overview]
Message-ID: <20070524.003528.104052359.davem@davemloft.net> (raw)
In-Reply-To: <20070520.140354.92582888.davem@davemloft.net>

From: "Tom \"spot\" Callaway" <tcallawa@redhat.com>
Date: Wed, 23 May 2007 16:56:59 -0500

> On Wed, 2007-05-23 at 14:27 -0700, David Miller wrote:
> > From: "Tom \"spot\" Callaway" <tcallawa@redhat.com>
> > Date: Wed, 23 May 2007 14:04:02 -0500
> > 
> > > Just for kicks, I tried passing esp_bus_reset_settle\x10, but it doesn't
> > > change the result at all.
> > > 
> > > I also grabbed a log with esp_debug 47, that log is attached.
> > 
> > Does this fix the problem?
> 
> Nope. No change. Do you want the esp_debug 47 from that?

Tom, can you double check that you ran with my fix applied?
I'm not doubting you, I'll explain why I'm asking this, and
your hunch to mess around with esp_bus_reset_settle was a
good one.

The disk is returning the following sense code:

sshdr->response_code = 0x70;
sshdr->sense_key = 0x06;
sb_len = 18;
sshdr->asc = 0x29;
sshdr->ascq = 0x02;

This means UNIT_ATTENTION with 0x29+0x02 supplemental status.

The UNIT_ATTENTION is fine, but the supplemental status is the kind a
device gives if you try to talk to it too soon after a reset.

Therefore what I am sure is happening is that the ssleep() in
scsi_esp_register() is not waiting long enough, and in fact I think
it's returning immediately.

This would be consistent with a corrupted value of the 'current' task
register which is exactly what my patch would fix.

I went over this serial console change and your trace a few times
and I think it's worth double checking :-)

  parent reply	other threads:[~2007-05-24  7:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-20 21:03 [PATCH]: Better serial console identification David Miller
2007-05-23 18:30 ` Tom "spot" Callaway
2007-05-23 19:04 ` Tom "spot" Callaway
2007-05-23 21:15 ` David Miller
2007-05-23 21:27 ` David Miller
2007-05-23 21:56 ` Tom "spot" Callaway
2007-05-23 21:58 ` Tom "spot" Callaway
2007-05-23 22:57 ` David Miller
2007-05-24  7:35 ` David Miller [this message]
2007-05-24 13:12 ` Tom "spot" Callaway
2007-05-24 23:56 ` David Miller
2007-06-12 14:52 ` Tom "spot" Callaway

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=20070524.003528.104052359.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=sparclinux@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.