linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Nicolas STRANSKY <Nico@stransky.cx>
Cc: linux-ide@vger.kernel.org
Subject: Re: libata-tj and SMART
Date: Tue, 16 May 2006 17:11:38 +0900	[thread overview]
Message-ID: <4469893A.10901@gmail.com> (raw)
In-Reply-To: <e4bvsb$s9m$1@sea.gmane.org>

Nicolas STRANSKY wrote:
> Le 05/16/2006 01:13 AM, Tejun Heo a écrit :
> 
> Hi,
> 
>>> I've been using libata-tj for a couple of days and for now it's working
>>> without problem, my SI-3112 is finally working :) Thanks !
>> How does it work w/o libata-tj?
> 
> smartctl and smartd used to work fine. But I was using a different
> controler (Promise PDC20376).
> 
>> Your drive/controller causes HSM violation probably while executing a
>> SMART command (maybe during PIO-in during READ DATA?, maybe we need to
>> dump feature, too).  Can you try 'smartctl -d ata -a /dev/sdx' and
>> report the result and how the kernel acts during that command?
> 
> You can find attached the result of the smartctl. It went fine and there
> was no kernel message associated. But if I try to reproduce smartd
> command, then "smartctl -d ata -a -o on -S on /dev/sda" causes the same
> error I showed in the first post, and smartctl fails with this error:
> Error SMART Enable Auto-save failed: I/O error
> Smartctl: SMART Enable Attribute Autosave Failed.

Hmmm.. That measn SMART ENABLE/DISABLE ATTRIBUTE AUTOSAVE command fails. 
  But weirdly it fails with DRQ (ready for data) bit set, thus 
triggering HSM violation.  My guess is the drive doesn't support that 
command and when it aborts, it sends funky status.  I think you can 
safely ignore the error or remove -S on from smartd configuration.

If you've got some time though, I'd like to see what's really going on. 
  Can you modify #undef ATA_DEBUT to #define ATA_DEBUG in 
include/linux/libata.h and post the kernel messages after issuing above 
command?  Be warned that it will produce a LOT of messages while booting 
if you're using SATA disks for your system, and it can considerably slow 
down booting.

-- 
tejun

  reply	other threads:[~2006-05-16  8:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 22:41 libata-tj and SMART Nicolas STRANSKY
2006-05-15 23:13 ` Tejun Heo
2006-05-16  7:44   ` Nicolas STRANSKY
2006-05-16  8:11     ` Tejun Heo [this message]
2006-05-16  8:36       ` Nicolas STRANSKY
2006-05-17 21:15       ` Nicolas STRANSKY
2006-05-18  4:00         ` Tejun Heo
2006-05-18 15:54           ` Jeff Garzik
2006-05-19  3:43             ` [PATCH 1/1] libata: Fix the HSM error_mask mapping (was: Re: libata-tj and SMART) Albert Lee
2006-05-19  5:22               ` [PATCH 1/1] libata: Fix the HSM error_mask mapping Albert Lee

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=4469893A.10901@gmail.com \
    --to=htejun@gmail.com \
    --cc=Nico@stransky.cx \
    --cc=linux-ide@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 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).