public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: gmack@innerfire.net
Subject: Re: [2.6.21.1] SATA freeze
Date: Mon, 04 Jun 2007 14:59:43 +0200	[thread overview]
Message-ID: <46640CBF.3070409@wpkg.org> (raw)

Fred Moyer wrote:

>> Sounds like SMART is likely disabled on that drive. You can try doing 
>> "smartctl -s on /dev/sda" and see if that will turn it on.
>> 
> 
> Sorry - that last post of mine was brain dead.  Here's the one with 
> (hopefully) useful data.
> 
> app2 ~ # smartctl  -d ata -a /dev/sda
> smartctl version 5.36 [x86_64-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
> 

(...)

>    -- -- -- -- -- -- --
>    84 51 00 b5 c9 73 e0  Error: ICRC, ABRT at LBA = 0x0073c9b5 = 7588277
> 
>    Commands leading to the command that caused the error were:
>    CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
>    -- -- -- -- -- -- -- --  ----------------  --------------------
>    25 00 20 96 c9 73 e0 00      01:25:42.886  READ DMA EXT
>    b0 d0 01 00 4f c2 00 02      01:25:42.868  SMART READ DATA
>    35 00 08 ae b6 42 e0 00      01:25:42.456  WRITE DMA EXT
>    b0 da 00 00 4f c2 00 00      01:25:42.430  SMART RETURN STATUS
>    35 00 08 60 81 04 e0 00      01:25:42.376  WRITE DMA EXT

I was getting very similar SMART results, and kernel errors, when used 
PATA drive and SATA_VIA (no freezes or hangs though):


SCSI device sda: 390721968 512-byte hdwr sectors (200050 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata3.00: cmd b0/da:00:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 0
          res 51/04:00:0b:ff:bf/00:00:00:00:00/00 Emask 0x1 (device error)
ata3.00: configured for UDMA/100
ata3: EH complete
SCSI device sda: write cache: enabled, read cache: enabled, doesn't 
support DPO or FUA
ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata3.00: cmd b0/d0:01:00:4f:c2/00:00:00:00:00/00 tag 0 cdb 0x0 data 512 in
          res 51/04:01:00:4f:c2/00:00:00:00:00/00 Emask 0x1 (device error)
ata3.00: configured for UDMA/100
ata3: EH complete



The problem was that I started smartd with wrong parameters:

DEVICESCAN -a -o on -S on -s (S/../.././10|L/../../6/11)


It was solved when I added "-d sat" to smartd parameters:

DEVICESCAN -d sat -a -o on -S on -s (S/../.././10|L/../../6/11)


 From that time on, smartctl -a /dev/sda gives "normal" output, and no 
more strange kernel errors.

Hopefully, it'll get fixed in smartmontools soon (or is fixed already, 
but not yet mainline).


-- 
Tomasz Chmielewski
http://wpkg.org



             reply	other threads:[~2007-06-04 13:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-04 12:59 Tomasz Chmielewski [this message]
     [not found] <fa.zU1kuoSgByTYCYqY+iCQ5rMJy34@ifi.uio.no>
2007-05-12 18:48 ` [2.6.21.1] SATA freeze Robert Hancock
2007-05-12 19:09   ` Fred Moyer
2007-05-13  1:02     ` Robert Hancock
2007-05-13  1:52       ` Fred Moyer
2007-05-13  1:20   ` Robin H. Johnson
2007-05-13 18:18     ` Jim Paris
     [not found] <fa.nl0Mcy44vzL27dQ8CsLG/+SfNO0@ifi.uio.no>
     [not found] ` <fa.Odn/BmbDLGQp4kzhwqs6TScgkdE@ifi.uio.no>
     [not found]   ` <fa.QtdEc9oISM5NdAmikW4kWhdGDeM@ifi.uio.no>
     [not found]     ` <fa.YyeTl86xaR6Y3MLVL7vUm5SgUzc@ifi.uio.no>
     [not found]       ` <fa.9rF0YSLySQV/+6iXNTOmlASflXA@ifi.uio.no>
2007-05-12 18:34         ` Robert Hancock
     [not found] <fa.Ngs+g4HBWK5JUzEhRMjcVQVR448@ifi.uio.no>
     [not found] ` <fa.xHed6JNWpYYFYmDy7FY+p6HTjPw@ifi.uio.no>
     [not found]   ` <fa.I0i3SlPzvZnxCYuJNFL3tixqEJU@ifi.uio.no>
2007-05-09 23:48     ` Robert Hancock
2007-05-10 11:40       ` Gerhard Mack
  -- strict thread matches above, loose matches on Subject: below --
2007-05-09 18:54 Gerhard Mack
2007-05-09 19:53 ` Jeff Garzik
2007-05-09 21:43   ` Gerhard Mack
2007-05-09 22:58     ` Chuck Ebbert
2007-05-10  8:51     ` Mikael Pettersson
2007-05-10 11:27       ` Gerhard Mack

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=46640CBF.3070409@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=gmack@innerfire.net \
    --cc=linux-kernel@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