From: Douglas Gilbert <dgilbert@interlog.com>
To: Grzegorz Nosek <root@localdomain.pl>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: smartctl on aic94xx causes a kernel warning in libata
Date: Fri, 23 Jan 2009 21:35:10 -0500 [thread overview]
Message-ID: <497A7E5E.50505@interlog.com> (raw)
In-Reply-To: <20090123194410.GA8639@megiteam.pl>
Grzegorz Nosek wrote:
> Hi,
>
> This is a trivially reproducible (in my setup at least) WARN_ON that
> triggers whenever I run smartctl on a SATA disk connected via an aic94xx
> controller (Adaptec AIC-9410W SAS (Razor ASIC RAID)=20 (rev 09)).
>
> The kernel is (as far as device drivers are concerned) vanilla
> 2.6.27.12.
>
> Other than the warning and the fact that smartctl requires '-T
> permissive' to show the disk status, I can't see any negative effects.
>
> (please keep cc'd)
>
> Best regards,
> Grzegorz Nosek
>
> *** smartctl -a /dev/sdb (without -T permissive) ***
>
> smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
> Home page is http://smartmontools.sourceforge.net/
>
> === START OF INFORMATION SECTION ===
> Device Model: ST3500630NS
> Serial Number: 9QG93FV5
> Firmware Version: 3.AEK
> User Capacity: 500,107,862,016 bytes
> Device is: Not in smartctl database [for details use: -P showall]
> ATA Version is: 7
> ATA Standard is: Exact ATA specification draft version not indicated
> Local Time is: Fri Jan 23 20:17:30 2009 CET
> SMART support is: Available - device has SMART capability.
> SMART support is: Enabled
>
> Error SMART Status command failed
> Please get assistance from http://smartmontools.sourceforge.net/
> Values from ATA status return descriptor are:
> 00 09 0c 00 00 00 00 00 00 00 00 00 00 00 00
> A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
Putting my smartmontools hat on that SAT ATA status
return descriptor for an ATA SMART RETURN STATUS
command looks broken, most likely not correctly "wired"
as the payload is zeros. Using a LSI SAS controller
(which implements SAT in firmware) here is what the
response should look like:
Values from ATA Return Descriptor are:
00 09 0c 00 00 00 00 00 00 00 4f 00 c2 00 50
assuming the disk is healthy. [And if it was unhealthy
then 4f -> f4 and c2 -> 2c (t13 dyslexic humour ?).]
To my knowledge that usage of the ATA SMART RETURN
status command is the only occasion when smartctl
needs to read the ATA registers _after_ command completion.
Doug Gilbert
prev parent reply other threads:[~2009-01-24 2:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-23 19:44 smartctl on aic94xx causes a kernel warning in libata Grzegorz Nosek
2009-01-24 2:35 ` Douglas Gilbert [this message]
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=497A7E5E.50505@interlog.com \
--to=dgilbert@interlog.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=root@localdomain.pl \
/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