LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-04-2008, 11:25 PM   #1
emrecio
LQ Newbie
 
Registered: Nov 2005
Location: Seattle, WA, US
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
ATA DMA Errors and SMARTd


So for the last year, every once in a while, I have been getting the following error according to SMARTd (See first code block below). I haven't lost any data yet. SMARTd short and long tests are run every day and week (respectively) and the hard disk is passing the tests. SMARTd says the state of the drive is OK. Nothing freezes, and no sound is made by the disk during these errors.
In the last six months, the errors have increased to once every month or so. In the last month, I've gone from 72 to 95 errors (see second block below)... but all still recoverable, resettable errors. In the last week, I have been receiving 4 or 5 of them each day.
I have ordered two 80gb Caviar SE SATA disks to run as a raid mirror. Just in case this thing is on its last leg. The big question, is ... IS IT? How can I tell if this is on its last leg. Is there anything about the information below that would lead me to believe this?

Code:
Error 96 occurred at disk power-on lifetime: 25788 hours (1074 days + 12 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 08 fd d1 44 e1  Error: ICRC, ABRT at LBA = 0x0144d1fd = 21287421

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 08 fd d1 44 e1 00      23:06:17.563  WRITE DMA
  ca 00 08 cd 74 44 e1 00      23:06:17.563  WRITE DMA
  ca 00 08 cd c6 29 e0 00      23:06:17.563  WRITE DMA
  ca 00 08 53 e2 74 e2 00      23:06:14.938  WRITE DMA
  ca 00 98 bb e1 74 e2 00      23:06:14.938  WRITE DMA
At that time, the following appears in my dmesg/syslog
Code:
Jun  4 22:42:23 moz kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2
Jun  4 22:42:24 moz kernel: ata1.00: BMDMA stat 0x64
Jun  4 22:42:24 moz kernel: ata1.00: cmd ca/00:08:fd:d1:44/00:00:00:00:00/e1 tag 0 cdb 0x0 data 4096 out
Jun  4 22:42:24 moz kernel:          res 51/84:01:04:d2:44/00:00:00:00:00/e1 Emask 0x10 (ATA bus error)
Jun  4 22:42:24 moz kernel: ata1: soft resetting port
Jun  4 22:42:24 moz kernel: ata1.00: Host Protected Area detected:
Jun  4 22:42:24 moz kernel:     current size: 156250000 sectors
Jun  4 22:42:24 moz kernel:     native size: 156368016 sectors
Jun  4 22:42:24 moz kernel: ata1.00: Host Protected Area detected:
Jun  4 22:42:24 moz kernel:     current size: 156250000 sectors
Jun  4 22:42:24 moz kernel:     native size: 156368016 sectors
Jun  4 22:42:24 moz kernel: ata1.00: configured for UDMA/100
Jun  4 22:42:24 moz kernel: ata1: EH complete
Jun  4 22:42:24 moz kernel: sd 0:0:0:0: [sda] 156250000 512-byte hardware sectors (80000 MB)
Jun  4 22:42:24 moz kernel: sd 0:0:0:0: [sda] Write Protect is off
Jun  4 22:42:24 moz kernel: sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
The full Smartctl output:
Code:
smartctl version 5.37 [x86_64-redhat-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint P80 series
Device Model:     SAMSUNG SP0802N
Serial Number:    S00JJ50Y159232
Firmware Version: TK100-28
User Capacity:    80,000,000,000 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 0
Local Time is:    Thu Jun  5 00:19:59 2008 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                 (3000) seconds.
Offline data collection
capabilities:                    (0x1b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        No General Purpose Logging support.
Short self-test routine
recommended polling time:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  50) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   100   100   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   100   100   025    Pre-fail  Always       -       3968
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       158
  5 Reallocated_Sector_Ct   0x0033   100   100   011    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   100   100   051    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   015    Pre-fail  Offline      -       9943
  9 Power_On_Half_Minutes   0x0032   095   095   000    Old_age   Always       -       25790h+12m
 10 Spin_Retry_Count        0x0033   100   100   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0012   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       127
194 Temperature_Celsius     0x0022   133   097   000    Old_age   Always       -       35
195 Hardware_ECC_Recovered  0x001a   100   100   000    Old_age   Always       -       3324511
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   198   000    Old_age   Always       -       35
200 Multi_Zone_Error_Rate   0x000a   100   100   051    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   100   100   051    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 96 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 96 occurred at disk power-on lifetime: 25788 hours (1074 days + 12 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 08 fd d1 44 e1  Error: ICRC, ABRT at LBA = 0x0144d1fd = 21287421

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 08 fd d1 44 e1 00      23:06:17.563  WRITE DMA
  ca 00 08 cd 74 44 e1 00      23:06:17.563  WRITE DMA
  ca 00 08 cd c6 29 e0 00      23:06:17.563  WRITE DMA
  ca 00 08 53 e2 74 e2 00      23:06:14.938  WRITE DMA
  ca 00 98 bb e1 74 e2 00      23:06:14.938  WRITE DMA

Error 95 occurred at disk power-on lifetime: 25777 hours (1074 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 30 d5 31 17 e1  Error: ICRC, ABRT at LBA = 0x011731d5 = 18297301

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 30 d5 31 17 e1 00      10:48:50.625  WRITE DMA
  ca 00 08 6d 30 17 e1 00      10:48:50.625  WRITE DMA
  ca 00 10 3d 30 17 e1 00      10:48:50.625  WRITE DMA
  ca 00 08 2d 30 17 e1 00      10:48:50.625  WRITE DMA
  ca 00 28 fd 2f 17 e1 00      10:48:50.625  WRITE DMA

Error 94 occurred at disk power-on lifetime: 25766 hours (1073 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 f0 ed 17 aa e1  Error: ICRC, ABRT at LBA = 0x01aa17ed = 27924461

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 f0 ed 17 aa e1 00  13d+05:06:46.188  WRITE DMA
  c8 00 08 75 e2 98 e1 00  13d+05:06:42.250  READ DMA
  ca 00 08 ed b4 05 e0 00  13d+05:06:41.188  WRITE DMA
  ca 00 40 ad b4 05 e0 00  13d+05:06:41.188  WRITE DMA
  ca 00 b0 9d 01 aa e1 00  13d+05:06:41.188  WRITE DMA

Error 93 occurred at disk power-on lifetime: 25766 hours (1073 days + 14 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 10 ad a9 ad e1  Error: ICRC, ABRT at LBA = 0x01ada9ad = 28158381

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 10 ad a9 ad e1 00  13d+04:32:05.000  WRITE DMA
  ca 00 08 ed 2f cb e1 00  13d+04:32:00.375  WRITE DMA
  ca 00 08 b5 30 bb e1 00  13d+04:32:00.375  WRITE DMA
  ca 00 08 d5 84 ad e1 00  13d+04:32:00.375  WRITE DMA
  ca 00 08 b5 85 04 e0 00  13d+04:32:00.000  WRITE DMA

Error 92 occurred at disk power-on lifetime: 25758 hours (1073 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 08 1d d0 50 e1  Error: ICRC, ABRT at LBA = 0x0150d01d = 22073373

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ca 00 08 1d d0 50 e1 00  12d+20:41:05.875  WRITE DMA
  ca 00 08 8d 43 1c e1 00  12d+20:41:05.875  WRITE DMA
  ca 00 08 ab 98 74 e2 00  12d+20:41:05.875  WRITE DMA
  ca 00 68 43 98 74 e2 00  12d+20:41:05.875  WRITE DMA
  ca 00 10 b3 6d 95 e4 00  12d+20:41:05.875  WRITE DMA

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     25768         -
# 2  Short offline       Completed without error       00%     25746         -
# 3  Short offline       Completed without error       00%     25723         -
# 4  Short offline       Completed without error       00%     25701         -
# 5  Extended offline    Completed without error       00%     25681         -
# 6  Short offline       Completed without error       00%     25678         -
# 7  Short offline       Completed without error       00%     25656         -
# 8  Short offline       Completed without error       00%     25634         -
# 9  Short offline       Completed without error       00%     25611         -
#10  Short offline       Completed without error       00%     25589         -
#11  Short offline       Completed without error       00%     25566         -
#12  Short offline       Completed without error       00%     25544         -
#13  Extended offline    Completed without error       00%     25524         -
#14  Short offline       Completed without error       00%     25522         -
#15  Short offline       Completed without error       00%     25499         -
#16  Short offline       Completed without error       00%     25477         -
#17  Short offline       Completed without error       00%     25457         -
#18  Short offline       Completed without error       00%     25434         -
#19  Short offline       Completed without error       00%     25412         -
#20  Short offline       Completed without error       00%     25390         -
#21  Extended offline    Completed without error       00%     25370         -

Device does not support Selective Self Tests/Logging
 
Old 06-05-2008, 07:19 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
use hdparm to change dma settings...is it fixed in the bios?

The logic card of the drive may be having/developing problems too.

The drive may become undetectable suddenly and you may still be able to use it as an external usb drive for
quite some time (happens with spinpoint)

But 'ATA Bus errors' of the form may be due to the controllers on main board too

Best

A. Mani
 
  


Reply

Tags
ata, dma, harddisk, harddrive, libata, smartd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ATA 100 HDD reports no DMA Vitalie Ciubotaru Linux - Hardware 2 10-24-2007 01:27 AM
ATA 100 HDD reports no DMA Vitalie Ciubotaru Linux From Scratch 0 08-08-2007 07:56 AM
Smartd Error Message generated by Smartd Daemon Proces rexjenny Red Hat 1 11-29-2006 07:12 PM
Disk (SCSI/SATA/ATA) Host Bus Adapter DMA weshutchins Linux - General 2 08-16-2006 10:18 AM
Hard Disk and DMA Problems with 160GB ATA/100 HDD Shadowman2oo3 Linux - Hardware 4 08-10-2004 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration