Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 13:54:22 +0200
From:      "Daniel Eriksson" <daniel_k_eriksson@telia.com>
To:        "'Ville-Pertti Keinonen'" <will+freebsd-current@will.iki.fi>, <freebsd-current@freebsd.org>
Subject:   RE: ATA driver races with interrupts
Message-ID:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAGD0zkRKtK0+Q+ZKyneRywwEAAAAA@telia.com>
In-Reply-To: <410E74F7.1070000@will.iki.fi>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Ville-Pertti Keinonen wrote:

> Partitions from ad10 and ad12 were mounted on /sata1 and /sata2,=20
> respectively, both containing tens of gigabytes of files.
>=20
> By issuing
>=20
> $ find /sata1 -type f -exec md5 '{}' \; & find /sata2 -type f=20
> -exec md5=20
> '{}' \; &
>=20
> the system would lock up or detach one of the disks in less=20
> than 5 seconds.
>=20
> With the attached version of my patch, it completed successfully.

My system also survives the stress-test after applying the patch, but it
fails to fix all of my problems.

One way for me to reliably mess my system up is to install
/usr/ports/sysutils/smartmontools and then try to enable SMART on both =
the
SATA discs (smartctl -s on /dev/ad20 && smartctl -s on /dev/ad22). This
results in the first channel totally locking up, to the point where not =
even
a reboot unlocks it (BIOS hangs, or if the SATA BIOS is turned off then
FreeBSD hangs when detecting the channel on the controller). Trying to
access the disc results in the process hanging indefinately without =
error
message and with no way to kill it.

The above problem is the same with or without your patch. However, =
without
your patch I usually get an interrupt storm, followed by a detached disc =
and
then a channel lockup. With your patch I get no storm and the disc is =
not
detached (but the channel still locks up hard).

I'm not sure if this is a hardware problem or not. I've tried switching
channels for the two discs (one Maxtor, one Western Digital), but it =
seems
it is always the first channel that locks up. That seems to indicate =
that
it's not a disc problem. It could still be a problem with the =
motherboard.
Unfortunately I don't know how to proceed with troubleshooting this.

/Daniel Eriksson




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAA0VcX9IoJqUaXPS8MjT1PdsKAAAAQAAAAGD0zkRKtK0+Q+ZKyneRywwEAAAAA>