linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: linux-ide@vger.kernel.org, centos-devel@lists.centos.org
Subject: Re: sata_mv error recovery issues
Date: Fri, 25 May 2007 20:27:27 -0400	[thread overview]
Message-ID: <46577EEF.9030704@pobox.com> (raw)
In-Reply-To: <20070404132533.GA2339@xi.wantstofly.org>

Lennert Buytenhek wrote:
> (please CC on replies, I'm not subscribed to linux-ide@)
> 
> Hi,
> 
> sata_mv (driving two 8-port Supermicro AOC-SAT2-MV8 PCI-X adapters) in
> 2.6.18-1.2747.el5 (RHEL/CentOS 5 beta kernel) didn't respond too well
> to one of the attached disks experiencing what seems to be a head crash.
> 
> Apr  4 13:52:20 duality kernel: ata5: Entering mv_eng_timeout
> Apr  4 13:52:20 duality kernel: mmio_base f8980000 ap f7b442dc qc f7b44cf8 scsi_cmnd e719ee00 &cmnd e719ee38
> Apr  4 13:52:30 duality kernel: ata5: no sense translation for status: 0x40
> Apr  4 13:52:30 duality kernel: ata5: translated ATA stat/err 0x40/00 to SCSI SK/ASC/ASCQ 0xb/00/00
> Apr  4 13:52:30 duality kernel: ata5: status=0x40 { DriveReady }
> Apr  4 13:52:30 duality kernel: sd 4:0:0:0: SCSI error: return code = 0x08000002
> Apr  4 13:52:30 duality kernel: sde: Current: sense key: Aborted Command
> Apr  4 13:52:30 duality kernel:     Additional sense: No additional sense information
> Apr  4 13:52:30 duality kernel: end_request: I/O error, dev sde, sector 684432191
> 
> At this point, the machine got into an endless loop where it would
> completely freeze for a couple of seconds every minute or so (busy wait
> in kernel space?), during which time it wouldn't respond to keyboard
> input, ping packets or any other input.
> 
> Every time when it unfroze after being frozen for a couple of seconds,
> it would spit out a similar mv_eng_timeout message as above, and it
> would reply to the ping packets sent to it while it was frozen (i.e. a
> sudden burst of ping reply packets with ping times of 1ms, 1001ms,
> 2001ms, 3001ms, 4001ms, 5001ms etc), which makes me think it was just
> spinning in kernelspace somewhere.
> 
> Apr  4 13:56:02 duality kernel: BUG: soft lockup detected on CPU#3!
> Apr  4 13:56:02 duality kernel:  [<c04051ba>] dump_trace+0x69/0x1af
> Apr  4 13:56:02 duality kernel:  [<c0405318>] show_trace_log_lvl+0x18/0x2c
> Apr  4 13:56:02 duality kernel:  [<c04058cc>] show_trace+0xf/0x11
> Apr  4 13:56:02 duality kernel:  [<c04059c9>] dump_stack+0x15/0x17
> Apr  4 13:56:02 duality kernel:  [<c044d4da>] softlockup_tick+0xa6/0xb4
> Apr  4 13:56:02 duality kernel:  [<c042e32a>] update_process_times+0x39/0x5c
> Apr  4 13:56:02 duality kernel:  [<c04188d4>] smp_apic_timer_interrupt+0x5c/0x64
> Apr  4 13:56:02 duality kernel:  [<c0404a8b>] apic_timer_interrupt+0x1f/0x24
> Apr  4 13:56:02 duality kernel: DWARF2 unwinder stuck at apic_timer_interrupt+0x1f/0x24
> Apr  4 13:56:02 duality kernel: Leftover inexact backtrace:
> Apr  4 13:56:02 duality kernel:  [<c0610468>] _spin_unlock_irqrestore+0x8/0x9
> Apr  4 13:56:02 duality kernel:  [<f88cea77>] mv_eng_timeout+0xac/0x105 [sata_mv]
> Apr  4 13:56:02 duality kernel:  [<f888728d>] scsi_error_handler+0x0/0x9c7 [scsi_mod]
> Apr  4 13:56:02 duality kernel:  [<f88f8fdc>] ata_scsi_error+0x3c6/0x4be [libata]
> Apr  4 13:56:02 duality kernel:  [<f8884217>] __scsi_iterate_devices+0x50/0x58 [scsi_mod]
> Apr  4 13:56:02 duality kernel:  [<f888728d>] scsi_error_handler+0x0/0x9c7 [scsi_mod]
> Apr  4 13:56:02 duality kernel:  [<f888732c>] scsi_error_handler+0x9f/0x9c7 [scsi_mod]
> Apr  4 13:56:02 duality kernel:  [<c041e4f6>] complete+0x2b/0x3d
> Apr  4 13:56:02 duality kernel:  [<f888728d>] scsi_error_handler+0x0/0x9c7 [scsi_mod]
> Apr  4 13:56:02 duality kernel:  [<c0436620>] kthread+0xc0/0xec
> Apr  4 13:56:02 duality kernel:  [<c0436560>] kthread+0x0/0xec
> Apr  4 13:56:02 duality kernel:  [<c0404d63>] kernel_thread_helper+0x7/0x10
> Apr  4 13:56:02 duality kernel:  =======================
> 
> All I/O to the RAID array that this disk was a member of (12 disk 6TB
> software RAID6 array) froze completely.  It did mark the broken disk
> failed, but didn't recover from the failure.  I had to reboot the box
> with the power switch, as '/sbin/reboot -f' via ssh would also get
> stuck in D state.
> 
> Any other info I can give?  I still have the crashed disk in case
> anyone wants me to do some tests with it..

(going through old email that might have not received a reply)

Upstream sata_mv error handling is pretty shabby.

There is a TODO list in the (as-of-X-hours-ago) current git tree, at the 
top of sata_mv.c, that gives you some sort of idea.

There is also preliminary new-EH code in libata-dev.git#mv-eh that you 
are encouraged to test.  It's not upstream because there are still some 
reported problems, but it much improved over what is in upstream.

	Jeff




      parent reply	other threads:[~2007-05-26  0:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-04 13:25 sata_mv error recovery issues Lennert Buytenhek
     [not found] ` <20070404132533.GA2339-mfnYTeDhw6uOVk/H6u/4e9i2O/JbrIOy@public.gmane.org>
2007-04-05  9:35   ` Milan Keršláger
2007-05-26  0:27 ` Jeff Garzik [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=46577EEF.9030704@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=buytenh@wantstofly.org \
    --cc=centos-devel@lists.centos.org \
    --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).