All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Krzysztof Błaszkowski" <kb@sysmikro.com.pl>
To: dgilbert@interlog.com
Cc: eric@andante.org, linux-scsi@vger.kernel.org, Krzysztof.b@id-7.com
Subject: Re: does scsi_io_completion need to dump sense data for ata pass through (ck_cond = 1) ?
Date: Wed, 23 Dec 2009 00:11:44 +0100	[thread overview]
Message-ID: <200912230011.44703.kb@sysmikro.com.pl> (raw)
In-Reply-To: <4B312181.30000@interlog.com>

On Tuesday 22 December 2009 20:44, Douglas Gilbert wrote:
> Krzysztof Błaszkowski wrote:
> > Hello Eric,
> >
> > I think it is not necessary and current behavior of kernel like 2.6.31
> > confuses QA people.
> > They need explanation that message like below:
> >
> > sd 5:0:1:0: [sdb] Sense Key : Recovered Error [current] [descriptor]
> > Descriptor sense data with sense descriptors (in hex):
> >         72 01 00 1d 00 00 00 0e 09 0c 00 00 00 00 00 00
> >         00 00 00 00 00 50
> > sd 5:0:1:0: [sdb] Add. Sense: ATA pass through information available
> >
> > stands for that sense data contains ata registers file and the command
> > was executed properly.
> >
> > Here is additional condition i used in scsi_io_completion() which
> > suppresses this message. Is it okay ?
>
> Close but I would like to see a filter on the additional
> sense code ATA PASS-THROUGH INFORMATION AVAILABLE [0x0, 0x1d].
> There is nothing in SAT that precludes the return of a RECOVERED
> ERROR sense code for a read on a SATA disk that was recovered
> after some extra work (for example).

of course but is it good idea to log sense data if:
- it is created on demand by application. (sat-2 ch 12.2.2 and .3)
- it doesn't contain some failure status

?

> With that filter in place there is no need to filter on the command.

right but OTOH if filter used asc/ascq then it would filter out all commands 
even these with some failures. 

i am not sure if this is really what you want to have, ie block all dumps of 
ATA PASS-THROUGH sense data.

>
> IOWs just filter on sense code RECOVERED ERROR and additional
> sense code ATA PASS-THROUGH INFORMATION AVAILABLE. SAT and SAT-2
> compliant implementations should then dump less to the log.

i would say that asc/ascq filter will stop logging all SAT/SAT-2 check 
conditions instead of "less".

that improvement i sent has better "granularity".

>
> Doug Gilbert

Krzysztof Blaszkowski
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-12-22 23:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 18:17 does scsi_io_completion need to dump sense data for ata pass through (ck_cond = 1) ? Krzysztof Błaszkowski
2009-12-22 19:44 ` Douglas Gilbert
2009-12-22 23:11   ` Krzysztof Błaszkowski [this message]
2009-12-23  5:45     ` Douglas Gilbert
2009-12-23 11:16       ` Krzysztof Błaszkowski
2009-12-27 19:56       ` Eric Youngdale

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=200912230011.44703.kb@sysmikro.com.pl \
    --to=kb@sysmikro.com.pl \
    --cc=Krzysztof.b@id-7.com \
    --cc=dgilbert@interlog.com \
    --cc=eric@andante.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.